tinker-token-usage 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,227 @@
1
+ var dZ=Object.defineProperty;var pZ=(e,t,r)=>t in e?dZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Zo=(e,t,r)=>pZ(e,typeof t!="symbol"?t+"":t,r);function gZ(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();function Ch(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M4={exports:{}},sS={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var yZ=Symbol.for("react.transitional.element"),mZ=Symbol.for("react.fragment");function D4(e,t,r){var n=null;if(r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),"key"in t){r={};for(var a in t)a!=="key"&&(r[a]=t[a])}else r=t;return t=r.ref,{$$typeof:yZ,type:e,key:n,ref:t!==void 0?t:null,props:r}}sS.Fragment=mZ;sS.jsx=D4;sS.jsxs=D4;M4.exports=sS;var W=M4.exports;function Qt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var _Z={};function lS(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:_Z}var L4=Object.assign,a0=Object.getOwnPropertyDescriptor,xi=Object.defineProperty,uS=Object.prototype,hT=[];Object.freeze(hT);var E4={};Object.freeze(E4);var SZ=typeof Proxy<"u",bZ=Object.toString();function O4(){SZ||Qt("Proxy not available")}function R4(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var uc=function(){};function Ga(e){return typeof e=="function"}function Au(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function fS(e){return e!==null&&typeof e=="object"}function Mo(e){if(!fS(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===bZ}function I4(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Up(e,t,r){xi(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function P4(e,t,r){xi(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function Ku(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return fS(n)&&n[r]===!0}}function Ah(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function xZ(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),n=Object.getPrototypeOf(r);return n===null}function no(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var N4=typeof Object.getOwnPropertySymbols<"u";function wZ(e){var t=Object.keys(e);if(!N4)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(n){return uS.propertyIsEnumerable.call(e,n)})):t}var Wc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:N4?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function k4(e){return e===null?null:typeof e=="object"?""+e:e}function go(e,t){return uS.hasOwnProperty.call(e,t)}var TZ=Object.getOwnPropertyDescriptors||function(t){var r={};return Wc(t).forEach(function(n){r[n]=a0(t,n)}),r};function bn(e,t){return!!(e&t)}function xn(e,t,r){return r?e|=t:e&=~t,e}function uR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function CZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MZ(n.key),n)}}function Mh(e,t,r){return t&&CZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fc(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=DZ(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mu(){return Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mu.apply(null,arguments)}function z4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vT(e,t)}function vT(e,t){return vT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},vT(e,t)}function AZ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function MZ(e){var t=AZ(e,"string");return typeof t=="symbol"?t:t+""}function DZ(e,t){if(e){if(typeof e=="string")return uR(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uR(e,t):void 0}}var ci=Symbol("mobx-stored-annotations");function wi(e){function t(r,n){if(Yp(n))return e.decorate_20223_(r,n);Fp(r,n,e)}return Object.assign(t,e)}function Fp(e,t,r){go(e,ci)||Up(e,ci,Mu({},e[ci])),NZ(r)||(e[ci][t]=r)}function LZ(e){return go(e,ci)||Up(e,ci,Mu({},e[ci])),e[ci]}function Yp(e){return typeof e=="object"&&typeof e.kind=="string"}var Ot=Symbol("mobx administration"),al=function(){function e(r){r===void 0&&(r="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=te.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return J4(this)},t.reportChanged=function(){ua(),tG(this),fa()},t.toString=function(){return this.name_},Mh(e,[{key:"isBeingObserved",get:function(){return bn(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=xn(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return bn(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=xn(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return bn(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=xn(this.flags_,e.diffValueMask_,n===1)}}])}();al.isBeingObservedMask_=1;al.isPendingUnobservationMask_=2;al.diffValueMask_=4;var QD=Ku("Atom",al);function B4(e,t,r){t===void 0&&(t=uc),r===void 0&&(r=uc);var n=new al(e);return t!==uc&&V$(n,t),r!==uc&&iG(n,r),n}function EZ(e,t){return mG(e,t)}function OZ(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var i0={structural:EZ,default:OZ};function Du(e,t,r){return fG(e)?e:Array.isArray(e)?Tr.array(e,{name:r}):Mo(e)?Tr.object(e,void 0,{name:r}):Ah(e)?Tr.map(e,{name:r}):no(e)?Tr.set(e,{name:r}):typeof e=="function"&&!Xc(e)&&!Xd(e)?I4(e)?Zc(e):Wd(r,e):e}function RZ(e,t,r){if(e==null||gS(e)||pS(e)||Ju(e)||si(e))return e;if(Array.isArray(e))return Tr.array(e,{name:r,deep:!1});if(Mo(e))return Tr.object(e,void 0,{name:r,deep:!1});if(Ah(e))return Tr.map(e,{name:r,deep:!1});if(no(e))return Tr.set(e,{name:r,deep:!1})}function cS(e){return e}function IZ(e,t){return mG(e,t)?t:e}var PZ="override";function NZ(e){return e.annotationType_===PZ}function jp(e,t){return{annotationType_:e,options_:t,make_:kZ,extend_:zZ,decorate_20223_:BZ}}function kZ(e,t,r,n){var a;if((a=this.options_)!=null&&a.bound)return this.extend_(e,t,r,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(Xc(r.value))return 1;var i=V4(e,this,t,r,!1);return xi(n,t,i),2}function zZ(e,t,r,n){var a=V4(e,this,t,r);return e.defineProperty_(t,a,n)}function BZ(e,t){var r=t.kind,n=t.name,a=t.addInitializer,i=this,o=function(u){var f,c,h,v;return Lu((f=(c=i.options_)==null?void 0:c.name)!=null?f:n.toString(),u,(h=(v=i.options_)==null?void 0:v.autoAction)!=null?h:!1)};if(r=="field")return function(l){var u,f=l;return Xc(f)||(f=o(f)),(u=i.options_)!=null&&u.bound&&(f=f.bind(this),f.isMobxAction=!0),f};if(r=="method"){var s;return Xc(e)||(e=o(e)),(s=this.options_)!=null&&s.bound&&a(function(){var l=this,u=l[n].bind(l);u.isMobxAction=!0,l[n]=u}),e}Qt("Cannot apply '"+i.annotationType_+"' to '"+String(n)+"' (kind: "+r+"):"+(`
11
+ '`+i.annotationType_+"' can only be used on properties with a function value."))}function VZ(e,t,r,n){t.annotationType_,n.value}function V4(e,t,r,n,a){var i,o,s,l,u,f,c;a===void 0&&(a=ut.safeDescriptors),VZ(e,t,r,n);var h=n.value;if((i=t.options_)!=null&&i.bound){var v;h=h.bind((v=e.proxy_)!=null?v:e.target_)}return{value:Lu((o=(s=t.options_)==null?void 0:s.name)!=null?o:r.toString(),h,(l=(u=t.options_)==null?void 0:u.autoAction)!=null?l:!1,(f=t.options_)!=null&&f.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function G4(e,t){return{annotationType_:e,options_:t,make_:GZ,extend_:HZ,decorate_20223_:UZ}}function GZ(e,t,r,n){var a;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((a=this.options_)!=null&&a.bound&&(!go(e.target_,t)||!Xd(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(Xd(r.value))return 1;var i=H4(e,this,t,r,!1,!1);return xi(n,t,i),2}function HZ(e,t,r,n){var a,i=H4(e,this,t,r,(a=this.options_)==null?void 0:a.bound);return e.defineProperty_(t,i,n)}function UZ(e,t){var r,n=t.name,a=t.addInitializer;return Xd(e)||(e=Zc(e)),(r=this.options_)!=null&&r.bound&&a(function(){var i=this,o=i[n].bind(i);o.isMobXFlow=!0,i[n]=o}),e}function FZ(e,t,r,n){t.annotationType_,n.value}function H4(e,t,r,n,a,i){i===void 0&&(i=ut.safeDescriptors),FZ(e,t,r,n);var o=n.value;if(Xd(o)||(o=Zc(o)),a){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function JD(e,t){return{annotationType_:e,options_:t,make_:YZ,extend_:jZ,decorate_20223_:WZ}}function YZ(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function jZ(e,t,r,n){return XZ(e,this,t,r),e.defineComputedProperty_(t,Mu({},this.options_,{get:r.get,set:r.set}),n)}function WZ(e,t){var r=this,n=t.name,a=t.addInitializer;return a(function(){var i=tf(this)[Ot],o=Mu({},r.options_,{get:e,context:this});o.name||(o.name="ObservableObject."+n.toString()),i.values_.set(n,new Ha(o))}),function(){return this[Ot].getObservablePropValue_(n)}}function XZ(e,t,r,n){t.annotationType_,n.get}function hS(e,t){return{annotationType_:e,options_:t,make_:ZZ,extend_:$Z,decorate_20223_:qZ}}function ZZ(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function $Z(e,t,r,n){var a,i;return KZ(e,this),e.defineObservableProperty_(t,r.value,(a=(i=this.options_)==null?void 0:i.enhancer)!=null?a:Du,n)}function qZ(e,t){var r=this,n=t.kind,a=t.name,i=new WeakSet;function o(s,l){var u,f,c=tf(s)[Ot],h=new hu(l,(u=(f=r.options_)==null?void 0:f.enhancer)!=null?u:Du,"ObservableObject."+a.toString(),!1);c.values_.set(a,h),i.add(s)}if(n=="accessor")return{get:function(){return i.has(this)||o(this,e.get.call(this)),this[Ot].getObservablePropValue_(a)},set:function(l){return i.has(this)||o(this,l),this[Ot].setObservablePropValue_(a,l)},init:function(l){return i.has(this)||o(this,l),l}}}function KZ(e,t,r,n){t.annotationType_}var QZ="true",JZ=U4();function U4(e){return{annotationType_:QZ,options_:e,make_:t$,extend_:e$,decorate_20223_:r$}}function t$(e,t,r,n){var a,i;if(r.get)return vS.make_(e,t,r,n);if(r.set){var o=Xc(r.set)?r.set:Lu(t.toString(),r.set);return n===e.target_?e.defineProperty_(t,{configurable:ut.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(xi(n,t,{configurable:!0,set:o}),2)}if(n!==e.target_&&typeof r.value=="function"){var s;if(I4(r.value)){var l,u=(l=this.options_)!=null&&l.autoBind?Zc.bound:Zc;return u.make_(e,t,r,n)}var f=(s=this.options_)!=null&&s.autoBind?Wd.bound:Wd;return f.make_(e,t,r,n)}var c=((a=this.options_)==null?void 0:a.deep)===!1?Tr.ref:Tr;if(typeof r.value=="function"&&(i=this.options_)!=null&&i.autoBind){var h;r.value=r.value.bind((h=e.proxy_)!=null?h:e.target_)}return c.make_(e,t,r,n)}function e$(e,t,r,n){var a,i;if(r.get)return vS.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:ut.safeDescriptors?e.isPlainObject_:!0,set:Lu(t.toString(),r.set)},n);if(typeof r.value=="function"&&(a=this.options_)!=null&&a.autoBind){var o;r.value=r.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((i=this.options_)==null?void 0:i.deep)===!1?Tr.ref:Tr;return s.extend_(e,t,r,n)}function r$(e,t){Qt("'"+this.annotationType_+"' cannot be used as a decorator")}var n$="observable",a$="observable.ref",i$="observable.shallow",o$="observable.struct",F4={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(F4);function Eg(e){return e||F4}var dT=hS(n$),s$=hS(a$,{enhancer:cS}),l$=hS(i$,{enhancer:RZ}),u$=hS(o$,{enhancer:IZ}),Y4=wi(dT);function Og(e){return e.deep===!0?Du:e.deep===!1?cS:c$(e.defaultDecorator)}function f$(e){var t;return e?(t=e.defaultDecorator)!=null?t:U4(e):void 0}function c$(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:Du}function j4(e,t,r){if(Yp(t))return dT.decorate_20223_(e,t);if(Au(t)){Fp(e,t,dT);return}return fG(e)?e:Mo(e)?Tr.object(e,t,r):Array.isArray(e)?Tr.array(e,t):Ah(e)?Tr.map(e,t):no(e)?Tr.set(e,t):typeof e=="object"&&e!==null?e:Tr.box(e,t)}L4(j4,Y4);var h$={box:function(t,r){var n=Eg(r);return new hu(t,Og(n),n.name,!0,n.equals)},array:function(t,r){var n=Eg(r);return(ut.useProxies===!1||n.proxy===!1?fq:tq)(t,Og(n),n.name)},map:function(t,r){var n=Eg(r);return new hG(t,Og(n),n.name)},set:function(t,r){var n=Eg(r);return new vG(t,Og(n),n.name)},object:function(t,r,n){return il(function(){return sG(ut.useProxies===!1||(n==null?void 0:n.proxy)===!1?tf({},n):$$({},n),t,r)})},ref:wi(s$),shallow:wi(l$),deep:Y4,struct:wi(u$)},Tr=L4(j4,h$),W4="computed",v$="computed.struct",pT=JD(W4),d$=JD(v$,{equals:i0.structural}),vS=function(t,r){if(Yp(r))return pT.decorate_20223_(t,r);if(Au(r))return Fp(t,r,pT);if(Mo(t))return wi(JD(W4,t));var n=Mo(r)?r:{};return n.get=t,n.name||(n.name=t.name||""),new Ha(n)};Object.assign(vS,pT);vS.struct=wi(d$);var fR,cR,o0=0,p$=1,g$=(fR=(cR=a0(function(){},"name"))==null?void 0:cR.configurable)!=null?fR:!1,hR={value:"action",configurable:!0,writable:!1,enumerable:!1};function Lu(e,t,r,n){r===void 0&&(r=!1);function a(){return y$(e,r,t,n||this,arguments)}return a.isMobxAction=!0,a.toString=function(){return t.toString()},g$&&(hR.value=e,xi(a,"name",hR)),a}function y$(e,t,r,n,a){var i=m$(e,t);try{return r.apply(n,a)}catch(o){throw i.error_=o,o}finally{_$(i)}}function m$(e,t,r,n){var a=!1,i=0,o=ut.trackingDerivation,s=!t||!o;ua();var l=ut.allowStateChanges;s&&(Qu(),l=t2(!0));var u=r2(!0),f={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:a,startTime_:i,actionId_:p$++,parentActionId_:o0};return o0=f.actionId_,f}function _$(e){o0!==e.actionId_&&Qt(30),o0=e.parentActionId_,e.error_!==void 0&&(ut.suppressReactionErrors=!0),e2(e.prevAllowStateChanges_),hd(e.prevAllowStateReads_),fa(),e.runAsAction_&&yo(e.prevDerivation_),ut.suppressReactionErrors=!1}function t2(e){var t=ut.allowStateChanges;return ut.allowStateChanges=e,t}function e2(e){ut.allowStateChanges=e}var hu=function(e){function t(n,a,i,o,s){var l;return i===void 0&&(i="ObservableValue"),s===void 0&&(s=i0.default),l=e.call(this,i)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=a,l.name_=i,l.equals=s,l.value_=a(n,void 0,i),l}z4(t,e);var r=t.prototype;return r.dehanceValue=function(a){return this.dehancer!==void 0?this.dehancer(a):a},r.set=function(a){this.value_,a=this.prepareNewValue_(a),a!==ut.UNCHANGED&&this.setNewValue_(a)},r.prepareNewValue_=function(a){if(na(this)){var i=aa(this,{object:this,type:Ti,newValue:a});if(!i)return ut.UNCHANGED;a=i.newValue}return a=this.enhancer(a,this.value_,this.name_),this.equals(this.value_,a)?ut.UNCHANGED:a},r.setNewValue_=function(a){var i=this.value_;this.value_=a,this.reportChanged(),Pa(this)&&Na(this,{type:Ti,object:this,newValue:a,oldValue:i})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(a){return Wp(this,a)},r.observe_=function(a,i){return i&&a({observableKind:"value",debugObjectName:this.name_,object:this,type:Ti,newValue:this.value_,oldValue:void 0}),Xp(this,a)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return k4(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(al),Ha=function(){function e(r){this.dependenciesState_=te.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=te.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new l0(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=s0.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||Qt(31),this.derivation=r.get,this.name_=r.name||"ComputedValue",r.set&&(this.setter_=Lu("ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?i0.structural:i0.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){T$(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing&&Qt(32,this.name_,this.derivation),ut.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)gT(this)&&(this.warnAboutUntrackedRead_(),ua(),this.value_=this.computeValue_(!1),fa());else if(J4(this),gT(this)){var n=ut.trackingContext;this.keepAlive_&&!n&&(ut.trackingContext=this),this.trackAndCompute()&&w$(this),ut.trackingContext=n}var a=this.value_;if(gm(a))throw a.cause;return a},t.set=function(n){if(this.setter_){this.isRunningSetter&&Qt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter=!1}}else Qt(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,a=this.dependenciesState_===te.NOT_TRACKING_,i=this.computeValue_(!0),o=a||gm(n)||gm(i)||!this.equals_(n,i);return o&&(this.value_=i),o},t.computeValue_=function(n){this.isComputing=!0;var a=t2(!1),i;if(n)i=X4(this,this.derivation,this.scope_);else if(ut.disableErrorBoundaries===!0)i=this.derivation.call(this.scope_);else try{i=this.derivation.call(this.scope_)}catch(o){i=new l0(o)}return e2(a),this.isComputing=!1,i},t.suspend_=function(){this.keepAlive_||(yT(this),this.value_=void 0)},t.observe_=function(n,a){var i=this,o=!0,s=void 0;return P$(function(){var l=i.get();if(!o||a){var u=Qu();n({observableKind:"computed",debugObjectName:i.name_,type:Ti,object:i,newValue:l,oldValue:s}),yo(u)}o=!1,s=l})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return k4(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Mh(e,[{key:"isComputing",get:function(){return bn(this.flags_,e.isComputingMask_)},set:function(n){this.flags_=xn(this.flags_,e.isComputingMask_,n)}},{key:"isRunningSetter",get:function(){return bn(this.flags_,e.isRunningSetterMask_)},set:function(n){this.flags_=xn(this.flags_,e.isRunningSetterMask_,n)}},{key:"isBeingObserved",get:function(){return bn(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=xn(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return bn(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=xn(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return bn(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=xn(this.flags_,e.diffValueMask_,n===1)}}])}();Ha.isComputingMask_=1;Ha.isRunningSetterMask_=2;Ha.isBeingObservedMask_=4;Ha.isPendingUnobservationMask_=8;Ha.diffValueMask_=16;var dS=Ku("ComputedValue",Ha),te;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(te||(te={}));var s0;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(s0||(s0={}));var l0=function(t){this.cause=void 0,this.cause=t};function gm(e){return e instanceof l0}function gT(e){switch(e.dependenciesState_){case te.UP_TO_DATE_:return!1;case te.NOT_TRACKING_:case te.STALE_:return!0;case te.POSSIBLY_STALE_:{for(var t=r2(!0),r=Qu(),n=e.observing_,a=n.length,i=0;i<a;i++){var o=n[i];if(dS(o)){if(ut.disableErrorBoundaries)o.get();else try{o.get()}catch{return yo(r),hd(t),!0}if(e.dependenciesState_===te.STALE_)return yo(r),hd(t),!0}}return $4(e),yo(r),hd(t),!1}}}function X4(e,t,r){var n=r2(!0);$4(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++ut.runId;var a=ut.trackingDerivation;ut.trackingDerivation=e,ut.inBatch++;var i;if(ut.disableErrorBoundaries===!0)i=t.call(r);else try{i=t.call(r)}catch(o){i=new l0(o)}return ut.inBatch--,ut.trackingDerivation=a,S$(e),hd(n),i}function S$(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=te.UP_TO_DATE_,a=0,i=e.unboundDepsCount_,o=0;o<i;o++){var s=r[o];s.diffValue===0&&(s.diffValue=1,a!==o&&(r[a]=s),a++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(r.length=a,e.newObserving_=null,i=t.length;i--;){var l=t[i];l.diffValue===0&&K4(l,e),l.diffValue=0}for(;a--;){var u=r[a];u.diffValue===1&&(u.diffValue=0,x$(u,e))}n!==te.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function yT(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)K4(t[r],e);e.dependenciesState_=te.NOT_TRACKING_}function Z4(e){var t=Qu();try{return e()}finally{yo(t)}}function Qu(){var e=ut.trackingDerivation;return ut.trackingDerivation=null,e}function yo(e){ut.trackingDerivation=e}function r2(e){var t=ut.allowStateReads;return ut.allowStateReads=e,t}function hd(e){ut.allowStateReads=e}function $4(e){if(e.dependenciesState_!==te.UP_TO_DATE_){e.dependenciesState_=te.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=te.UP_TO_DATE_}}var ym=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},mm=!0,q4=!1,ut=function(){var e=lS();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(mm=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new ym().version&&(mm=!1),mm?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ym):(setTimeout(function(){q4||Qt(35)},1),new ym)}();function b$(){if((ut.pendingReactions.length||ut.inBatch||ut.isRunningReactions)&&Qt(36),q4=!0,mm){var e=lS();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),ut=new ym}}function x$(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function K4(e,t){e.observers_.delete(t),e.observers_.size===0&&Q4(e)}function Q4(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,ut.pendingUnobservations.push(e))}function ua(){ut.inBatch++}function fa(){if(--ut.inBatch===0){eG();for(var e=ut.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof Ha&&r.suspend_())}ut.pendingUnobservations=[]}}function J4(e){var t=ut.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&ut.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&ut.inBatch>0&&Q4(e),!1)}function tG(e){e.lowestObserverState_!==te.STALE_&&(e.lowestObserverState_=te.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===te.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=te.STALE_}))}function w$(e){e.lowestObserverState_!==te.STALE_&&(e.lowestObserverState_=te.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===te.POSSIBLY_STALE_?t.dependenciesState_=te.STALE_:t.dependenciesState_===te.UP_TO_DATE_&&(e.lowestObserverState_=te.UP_TO_DATE_)}))}function T$(e){e.lowestObserverState_===te.UP_TO_DATE_&&(e.lowestObserverState_=te.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===te.UP_TO_DATE_&&(t.dependenciesState_=te.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Do=function(){function e(r,n,a,i){r===void 0&&(r="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=te.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=s0.NONE,this.name_=r,this.onInvalidate_=n,this.errorHandler_=a,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,ut.pendingReactions.push(this),eG())},t.runReaction_=function(){if(!this.isDisposed){ua(),this.isScheduled=!1;var n=ut.trackingContext;if(ut.trackingContext=this,gT(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(a){this.reportExceptionInDerivation_(a)}}ut.trackingContext=n,fa()}},t.track=function(n){if(!this.isDisposed){ua(),this.isRunning=!0;var a=ut.trackingContext;ut.trackingContext=this;var i=X4(this,n,void 0);ut.trackingContext=a,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&yT(this),gm(i)&&this.reportExceptionInDerivation_(i.cause),fa()}},t.reportExceptionInDerivation_=function(n){var a=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(ut.disableErrorBoundaries)throw n;var i="[mobx] uncaught error in '"+this+"'";ut.suppressReactionErrors||console.error(i,n),ut.globalReactionErrorHandlers.forEach(function(o){return o(n,a)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(ua(),yT(this),fa()))},t.getDisposer_=function(n){var a=this,i=function o(){a.dispose(),n==null||n.removeEventListener==null||n.removeEventListener("abort",o)};return n==null||n.addEventListener==null||n.addEventListener("abort",i),i[Ot]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(i[Symbol.dispose]=i),i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){},Mh(e,[{key:"isDisposed",get:function(){return bn(this.flags_,e.isDisposedMask_)},set:function(n){this.flags_=xn(this.flags_,e.isDisposedMask_,n)}},{key:"isScheduled",get:function(){return bn(this.flags_,e.isScheduledMask_)},set:function(n){this.flags_=xn(this.flags_,e.isScheduledMask_,n)}},{key:"isTrackPending",get:function(){return bn(this.flags_,e.isTrackPendingMask_)},set:function(n){this.flags_=xn(this.flags_,e.isTrackPendingMask_,n)}},{key:"isRunning",get:function(){return bn(this.flags_,e.isRunningMask_)},set:function(n){this.flags_=xn(this.flags_,e.isRunningMask_,n)}},{key:"diffValue",get:function(){return bn(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=xn(this.flags_,e.diffValueMask_,n===1)}}])}();Do.isDisposedMask_=1;Do.isScheduledMask_=2;Do.isTrackPendingMask_=4;Do.isRunningMask_=8;Do.diffValueMask_=16;var C$=100,mT=function(t){return t()};function eG(){ut.inBatch>0||ut.isRunningReactions||mT(A$)}function A$(){ut.isRunningReactions=!0;for(var e=ut.pendingReactions,t=0;e.length>0;){++t===C$&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,a=r.length;n<a;n++)r[n].runReaction_()}ut.isRunningReactions=!1}var u0=Ku("Reaction",Do);function M$(e){var t=mT;mT=function(n){return e(function(){return t(n)})}}function vd(){return!1}function D$(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var rG="action",L$="action.bound",nG="autoAction",E$="autoAction.bound",O$="<unnamed action>",_T=jp(rG),R$=jp(L$,{bound:!0}),ST=jp(nG,{autoAction:!0}),I$=jp(E$,{autoAction:!0,bound:!0});function aG(e){var t=function(n,a){if(Ga(n))return Lu(n.name||O$,n,e);if(Ga(a))return Lu(n,a,e);if(Yp(a))return(e?ST:_T).decorate_20223_(n,a);if(Au(a))return Fp(n,a,e?ST:_T);if(Au(n))return wi(jp(e?nG:rG,{name:n,autoAction:e}))};return t}var cc=aG(!1);Object.assign(cc,_T);var Wd=aG(!0);Object.assign(Wd,ST);cc.bound=wi(R$);Wd.bound=wi(I$);function Xc(e){return Ga(e)&&e.isMobxAction===!0}function P$(e,t){var r,n,a,i;t===void 0&&(t=E4);var o=(r=(n=t)==null?void 0:n.name)!=null?r:"Autorun",s=!t.scheduler&&!t.delay,l;if(s)l=new Do(o,function(){this.track(c)},t.onError,t.requiresObservable);else{var u=k$(t),f=!1;l=new Do(o,function(){f||(f=!0,u(function(){f=!1,l.isDisposed||l.track(c)}))},t.onError,t.requiresObservable)}function c(){e(l)}return(a=t)!=null&&(a=a.signal)!=null&&a.aborted||l.schedule_(),l.getDisposer_((i=t)==null?void 0:i.signal)}var N$=function(t){return t()};function k$(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:N$}var z$="onBO",B$="onBUO";function V$(e,t,r){return oG(z$,e,t,r)}function iG(e,t,r){return oG(B$,e,t,r)}function oG(e,t,r,n){var a=h0(t),i=Ga(n)?n:r,o=e+"L";return a[o]?a[o].add(i):a[o]=new Set([i]),function(){var s=a[o];s&&(s.delete(i),s.size===0&&delete a[o])}}var G$="never",Rg="always",H$="observed";function U$(e){e.isolateGlobalState===!0&&b$();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(ut.useProxies=t===Rg?!0:t===G$?!1:typeof Proxy<"u"),t==="ifavailable"&&(ut.verifyProxies=!0),r!==void 0){var n=r===Rg?Rg:r===H$;ut.enforceActions=n,ut.allowStateChanges=!(n===!0||n===Rg)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(a){a in e&&(ut[a]=!!e[a])}),ut.allowStateReads=!ut.observableRequiresReaction,e.reactionScheduler&&M$(e.reactionScheduler)}function sG(e,t,r,n){var a=TZ(t);return il(function(){var i=tf(e,n)[Ot];Wc(a).forEach(function(o){i.extend_(o,a[o],r&&o in r?r[o]:!0)})}),e}function F$(e,t){return lG(h0(e,t))}function lG(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Y$(e.observing_).map(lG)),t}function Y$(e){return Array.from(new Set(e))}var j$=0;function uG(){this.message="FLOW_CANCELLED"}uG.prototype=Object.create(Error.prototype);var k1=G4("flow"),W$=G4("flow.bound",{bound:!0}),Zc=Object.assign(function(t,r){if(Yp(r))return k1.decorate_20223_(t,r);if(Au(r))return Fp(t,r,k1);var n=t,a=n.name||"<unnamed flow>",i=function(){var s=this,l=arguments,u=++j$,f=cc(a+" - runid: "+u+" - init",n).apply(s,l),c,h=void 0,v=new Promise(function(d,p){var g=0;c=p;function y(S){h=void 0;var b;try{b=cc(a+" - runid: "+u+" - yield "+g++,f.next).call(f,S)}catch(x){return p(x)}_(b)}function m(S){h=void 0;var b;try{b=cc(a+" - runid: "+u+" - yield "+g++,f.throw).call(f,S)}catch(x){return p(x)}_(b)}function _(S){if(Ga(S==null?void 0:S.then)){S.then(_,p);return}return S.done?d(S.value):(h=Promise.resolve(S.value),h.then(y,m))}y(void 0)});return v.cancel=cc(a+" - runid: "+u+" - cancel",function(){try{h&&vR(h);var d=f.return(void 0),p=Promise.resolve(d.value);p.then(uc,uc),vR(p),c(new uG)}catch(g){c(g)}}),v};return i.isMobXFlow=!0,i},k1);Zc.bound=wi(W$);function vR(e){Ga(e.cancel)&&e.cancel()}function Xd(e){return(e==null?void 0:e.isMobXFlow)===!0}function X$(e,t){return e?gS(e)||!!e[Ot]||QD(e)||u0(e)||dS(e):!1}function fG(e){return X$(e)}function ao(e,t){t===void 0&&(t=void 0),ua();try{return e.apply(t)}finally{fa()}}function xf(e){return e[Ot]}var Z$={has:function(t,r){return xf(t).has_(r)},get:function(t,r){return xf(t).get_(r)},set:function(t,r,n){var a;return Au(r)?(a=xf(t).set_(r,n,!0))!=null?a:!0:!1},deleteProperty:function(t,r){var n;return Au(r)?(n=xf(t).delete_(r,!0))!=null?n:!0:!1},defineProperty:function(t,r,n){var a;return(a=xf(t).defineProperty_(r,n))!=null?a:!0},ownKeys:function(t){return xf(t).ownKeys_()},preventExtensions:function(t){Qt(13)}};function $$(e,t){var r,n;return O4(),e=tf(e,t),(n=(r=e[Ot]).proxy_)!=null?n:r.proxy_=new Proxy(e,Z$)}function na(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Wp(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),R4(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function aa(e,t){var r=Qu();try{for(var n=[].concat(e.interceptors_||[]),a=0,i=n.length;a<i&&(t=n[a](t),t&&!t.type&&Qt(14),!!t);a++);return t}finally{yo(r)}}function Pa(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Xp(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),R4(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function Na(e,t){var r=Qu(),n=e.changeListeners_;if(n){n=n.slice();for(var a=0,i=n.length;a<i;a++)n[a](t);yo(r)}}function q$(e,t,r){return il(function(){var n,a=tf(e,r)[Ot];(n=t)!=null||(t=LZ(e)),Wc(t).forEach(function(i){return a.make_(i,t[i])})}),e}var z1=Symbol("mobx-keys");function K$(e,t,r){return Mo(e)?sG(e,e,t,r):(il(function(){var n=tf(e,r)[Ot];if(!e[z1]){var a=Object.getPrototypeOf(e),i=new Set([].concat(Wc(e),Wc(a)));i.delete("constructor"),i.delete(Ot),Up(a,z1,i)}e[z1].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}),e)}var dR="splice",Ti="update",Q$=1e4,J$={get:function(t,r){var n=t[Ot];return r===Ot?n:r==="length"?n.getArrayLength_():typeof r=="string"&&!isNaN(r)?n.get_(parseInt(r)):go(f0,r)?f0[r]:t[r]},set:function(t,r,n){var a=t[Ot];return r==="length"&&a.setArrayLength_(n),typeof r=="symbol"||isNaN(r)?t[r]=n:a.set_(parseInt(r),n),!0},preventExtensions:function(){Qt(15)}},n2=function(){function e(r,n,a,i){r===void 0&&(r="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=a,this.legacyMode_=i,this.atom_=new al(r),this.enhancer_=function(o,s){return n(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return Wp(this,n)},t.observe_=function(n,a){return a===void 0&&(a=!1),a&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Xp(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&Qt("Out of range: "+n);var a=this.values_.length;if(n!==a)if(n>a){for(var i=new Array(n-a),o=0;o<n-a;o++)i[o]=void 0;this.spliceWithArray_(a,0,i)}else this.spliceWithArray_(n,a-n)},t.updateArrayLength_=function(n,a){n!==this.lastKnownLength_&&Qt(16),this.lastKnownLength_+=a,this.legacyMode_&&a>0&&yG(n+a+1)},t.spliceWithArray_=function(n,a,i){var o=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?a=s-n:a==null?a=0:a=Math.max(0,Math.min(a,s-n)),i===void 0&&(i=hT),na(this)){var l=aa(this,{object:this.proxy_,type:dR,index:n,removedCount:a,added:i});if(!l)return hT;a=l.removedCount,i=l.added}if(i=i.length===0?i:i.map(function(c){return o.enhancer_(c,void 0)}),this.legacyMode_){var u=i.length-a;this.updateArrayLength_(s,u)}var f=this.spliceItemsIntoValues_(n,a,i);return(a!==0||i.length!==0)&&this.notifyArraySplice_(n,i,f),this.dehanceValues_(f)},t.spliceItemsIntoValues_=function(n,a,i){if(i.length<Q$){var o;return(o=this.values_).splice.apply(o,[n,a].concat(i))}else{var s=this.values_.slice(n,n+a),l=this.values_.slice(n+a);this.values_.length+=i.length-a;for(var u=0;u<i.length;u++)this.values_[n+u]=i[u];for(var f=0;f<l.length;f++)this.values_[n+i.length+f]=l[f];return s}},t.notifyArrayChildUpdate_=function(n,a,i){var o=!this.owned_&&vd(),s=Pa(this),l=s||o?{observableKind:"array",object:this.proxy_,type:Ti,debugObjectName:this.atom_.name_,index:n,newValue:a,oldValue:i}:null;this.atom_.reportChanged(),s&&Na(this,l)},t.notifyArraySplice_=function(n,a,i){var o=!this.owned_&&vd(),s=Pa(this),l=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:dR,index:n,removed:i,added:a,removedCount:i.length,addedCount:a.length}:null;this.atom_.reportChanged(),s&&Na(this,l)},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn("[mobx] Out of bounds read: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,a){var i=this.values_;if(this.legacyMode_&&n>i.length&&Qt(17,n,i.length),n<i.length){this.atom_;var o=i[n];if(na(this)){var s=aa(this,{type:Ti,object:this.proxy_,index:n,newValue:a});if(!s)return;a=s.newValue}a=this.enhancer_(a,o);var l=a!==o;l&&(i[n]=a,this.notifyArrayChildUpdate_(n,a,o))}else{for(var u=new Array(n+1-i.length),f=0;f<u.length-1;f++)u[f]=void 0;u[u.length-1]=a,this.spliceWithArray_(i.length,0,u)}},e}();function tq(e,t,r,n){return r===void 0&&(r="ObservableArray"),n===void 0&&(n=!1),O4(),il(function(){var a=new n2(r,t,n,!1);P4(a.values_,Ot,a);var i=new Proxy(a.values_,J$);return a.proxy_=i,e&&e.length&&a.spliceWithArray_(0,0,e),i})}var f0={clear:function(){return this.splice(0)},replace:function(t){var r=this[Ot];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];var o=this[Ot];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,r)}return o.spliceWithArray_(t,r,a)},spliceWithArray:function(t,r,n){return this[Ot].spliceWithArray_(t,r,n)},push:function(){for(var t=this[Ot],r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[Ot].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Ot],r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return ut.trackingDerivation&&Qt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ut.trackingDerivation&&Qt(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[Ot],n=r.dehanceValues_(r.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};Se("at",Gn);Se("concat",Gn);Se("flat",Gn);Se("includes",Gn);Se("indexOf",Gn);Se("join",Gn);Se("lastIndexOf",Gn);Se("slice",Gn);Se("toString",Gn);Se("toLocaleString",Gn);Se("toSorted",Gn);Se("toSpliced",Gn);Se("with",Gn);Se("every",Xa);Se("filter",Xa);Se("find",Xa);Se("findIndex",Xa);Se("findLast",Xa);Se("findLastIndex",Xa);Se("flatMap",Xa);Se("forEach",Xa);Se("map",Xa);Se("some",Xa);Se("toReversed",Xa);Se("reduce",cG);Se("reduceRight",cG);function Se(e,t){typeof Array.prototype[e]=="function"&&(f0[e]=t(e))}function Gn(e){return function(){var t=this[Ot];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function Xa(e){return function(t,r){var n=this,a=this[Ot];a.atom_.reportObserved();var i=a.dehanceValues_(a.values_);return i[e](function(o,s){return t.call(r,o,s,n)})}}function cG(e){return function(){var t=this,r=this[Ot];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),a=arguments[0];return arguments[0]=function(i,o,s){return a(i,o,s,t)},n[e].apply(n,arguments)}}var eq=Ku("ObservableArrayAdministration",n2);function pS(e){return fS(e)&&eq(e[Ot])}var rq={},ps="add",c0="delete",hG=function(){function e(r,n,a){var i=this;n===void 0&&(n=Du),a===void 0&&(a="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Ot]=rq,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=a,Ga(Map)||Qt(18),il(function(){i.keysAtom_=B4("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,r&&i.merge(r)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var a=this;if(!ut.trackingDerivation)return this.has_(n);var i=this.hasMap_.get(n);if(!i){var o=i=new hu(this.has_(n),cS,"ObservableMap.key?",!1);this.hasMap_.set(n,o),iG(o,function(){return a.hasMap_.delete(n)})}return i.get()},t.set=function(n,a){var i=this.has_(n);if(na(this)){var o=aa(this,{type:i?Ti:ps,object:this,newValue:a,name:n});if(!o)return this;a=o.newValue}return i?this.updateValue_(n,a):this.addValue_(n,a),this},t.delete=function(n){var a=this;if(this.keysAtom_,na(this)){var i=aa(this,{type:c0,object:this,name:n});if(!i)return!1}if(this.has_(n)){var o=vd(),s=Pa(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:c0,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return ao(function(){var u;a.keysAtom_.reportChanged(),(u=a.hasMap_.get(n))==null||u.setNewValue_(!1);var f=a.data_.get(n);f.setNewValue_(void 0),a.data_.delete(n)}),s&&Na(this,l),!0}return!1},t.updateValue_=function(n,a){var i=this.data_.get(n);if(a=i.prepareNewValue_(a),a!==ut.UNCHANGED){var o=vd(),s=Pa(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:Ti,object:this,oldValue:i.value_,name:n,newValue:a}:null;i.setNewValue_(a),s&&Na(this,l)}},t.addValue_=function(n,a){var i=this;this.keysAtom_,ao(function(){var u,f=new hu(a,i.enhancer_,"ObservableMap.key",!1);i.data_.set(n,f),a=f.value_,(u=i.hasMap_.get(n))==null||u.setNewValue_(!0),i.keysAtom_.reportChanged()});var o=vd(),s=Pa(this),l=s||o?{observableKind:"map",debugObjectName:this.name_,type:ps,object:this,name:n,newValue:a}:null;s&&Na(this,l)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,a=this.keys();return pR({next:function(){var o=a.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:n.get(l)}}})},t.entries=function(){var n=this,a=this.keys();return pR({next:function(){var o=a.next(),s=o.done,l=o.value;return{done:s,value:s?void 0:[l,n.get(l)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(n,a){for(var i=fc(this),o;!(o=i()).done;){var s=o.value,l=s[0],u=s[1];n.call(a,u,l,this)}},t.merge=function(n){var a=this;return Ju(n)&&(n=new Map(n)),ao(function(){Mo(n)?wZ(n).forEach(function(i){return a.set(i,n[i])}):Array.isArray(n)?n.forEach(function(i){var o=i[0],s=i[1];return a.set(o,s)}):Ah(n)?(xZ(n)||Qt(19,n),n.forEach(function(i,o){return a.set(o,i)})):n!=null&&Qt(20,n)}),this},t.clear=function(){var n=this;ao(function(){Z4(function(){for(var a=fc(n.keys()),i;!(i=a()).done;){var o=i.value;n.delete(o)}})})},t.replace=function(n){var a=this;return ao(function(){for(var i=nq(n),o=new Map,s=!1,l=fc(a.data_.keys()),u;!(u=l()).done;){var f=u.value;if(!i.has(f)){var c=a.delete(f);if(c)s=!0;else{var h=a.data_.get(f);o.set(f,h)}}}for(var v=fc(i.entries()),d;!(d=v()).done;){var p=d.value,g=p[0],y=p[1],m=a.data_.has(g);if(a.set(g,y),a.data_.has(g)){var _=a.data_.get(g);o.set(g,_),m||(s=!0)}}if(!s)if(a.data_.size!==o.size)a.keysAtom_.reportChanged();else for(var S=a.data_.keys(),b=o.keys(),x=S.next(),w=b.next();!x.done;){if(x.value!==w.value){a.keysAtom_.reportChanged();break}x=S.next(),w=b.next()}a.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,a){return Xp(this,n)},t.intercept_=function(n){return Wp(this,n)},Mh(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Ju=Ku("ObservableMap",hG);function pR(e){return e[Symbol.toStringTag]="MapIterator",i2(e)}function nq(e){if(Ah(e)||Ju(e))return e;if(Array.isArray(e))return new Map(e);if(Mo(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return Qt(21,e)}var aq={},vG=function(){function e(r,n,a){var i=this;n===void 0&&(n=Du),a===void 0&&(a="ObservableSet"),this.name_=void 0,this[Ot]=aq,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=a,Ga(Set)||Qt(22),this.enhancer_=function(o,s){return n(o,s,a)},il(function(){i.atom_=B4(i.name_),r&&i.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;ao(function(){Z4(function(){for(var a=fc(n.data_.values()),i;!(i=a()).done;){var o=i.value;n.delete(o)}})})},t.forEach=function(n,a){for(var i=fc(this),o;!(o=i()).done;){var s=o.value;n.call(a,s,s,this)}},t.add=function(n){var a=this;if(this.atom_,na(this)){var i=aa(this,{type:ps,object:this,newValue:n});if(!i)return this;n=i.newValue}if(!this.has(n)){ao(function(){a.data_.add(a.enhancer_(n,void 0)),a.atom_.reportChanged()});var o=!1,s=Pa(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:ps,object:this,newValue:n}:null;s&&Na(this,l)}return this},t.delete=function(n){var a=this;if(na(this)){var i=aa(this,{type:c0,object:this,oldValue:n});if(!i)return!1}if(this.has(n)){var o=!1,s=Pa(this),l=s||o?{observableKind:"set",debugObjectName:this.name_,type:c0,object:this,oldValue:n}:null;return ao(function(){a.atom_.reportChanged(),a.data_.delete(n)}),s&&Na(this,l),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=this.values();return gR({next:function(){var i=n.next(),o=i.value,s=i.done;return s?{value:void 0,done:s}:{value:[o,o],done:s}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,a=this.data_.values();return gR({next:function(){var o=a.next(),s=o.value,l=o.done;return l?{value:void 0,done:l}:{value:n.dehanceValue_(s),done:l}}})},t.intersection=function(n){if(no(n)&&!si(n))return n.intersection(this);var a=new Set(this);return a.intersection(n)},t.union=function(n){if(no(n)&&!si(n))return n.union(this);var a=new Set(this);return a.union(n)},t.difference=function(n){return new Set(this).difference(n)},t.symmetricDifference=function(n){if(no(n)&&!si(n))return n.symmetricDifference(this);var a=new Set(this);return a.symmetricDifference(n)},t.isSubsetOf=function(n){return new Set(this).isSubsetOf(n)},t.isSupersetOf=function(n){return new Set(this).isSupersetOf(n)},t.isDisjointFrom=function(n){if(no(n)&&!si(n))return n.isDisjointFrom(this);var a=new Set(this);return a.isDisjointFrom(n)},t.replace=function(n){var a=this;return si(n)&&(n=new Set(n)),ao(function(){Array.isArray(n)?(a.clear(),n.forEach(function(i){return a.add(i)})):no(n)?(a.clear(),n.forEach(function(i){return a.add(i)})):n!=null&&Qt("Cannot initialize set from "+n)}),this},t.observe_=function(n,a){return Xp(this,n)},t.intercept_=function(n){return Wp(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Mh(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),si=Ku("ObservableSet",vG);function gR(e){return e[Symbol.toStringTag]="SetIterator",i2(e)}var yR=Object.create(null),mR="remove",dG=function(){function e(r,n,a,i){n===void 0&&(n=new Map),i===void 0&&(i=JZ),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=r,this.values_=n,this.name_=a,this.defaultAnnotation_=i,this.keysAtom_=new al("ObservableObject.keys"),this.isPlainObject_=Mo(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,a){var i=this.values_.get(n);if(i instanceof Ha)return i.set(a),!0;if(na(this)){var o=aa(this,{type:Ti,object:this.proxy_||this.target_,name:n,newValue:a});if(!o)return null;a=o.newValue}if(a=i.prepareNewValue_(a),a!==ut.UNCHANGED){var s=Pa(this),l=!1,u=s||l?{type:Ti,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:i.value_,name:n,newValue:a}:null;i.setNewValue_(a),s&&Na(this,u)}return!0},t.get_=function(n){return ut.trackingDerivation&&!go(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,a,i){return i===void 0&&(i=!1),go(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,a):i?Reflect.set(this.target_,n,a):(this.target_[n]=a,!0):this.extend_(n,{value:a,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},t.has_=function(n){if(!ut.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var a=this.pendingKeys_.get(n);return a||(a=new hu(n in this.target_,cS,"ObservableObject.key?",!1),this.pendingKeys_.set(n,a)),a.get()},t.make_=function(n,a){if(a===!0&&(a=this.defaultAnnotation_),a!==!1){if(!(n in this.target_)){var i;if((i=this.target_[ci])!=null&&i[n])return;Qt(1,a.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==uS;){var s=a0(o,n);if(s){var l=a.make_(this,n,s,o);if(l===0)return;if(l===1)break}o=Object.getPrototypeOf(o)}SR(this,a,n)}},t.extend_=function(n,a,i,o){if(o===void 0&&(o=!1),i===!0&&(i=this.defaultAnnotation_),i===!1)return this.defineProperty_(n,a,o);var s=i.extend_(this,n,a,o);return s&&SR(this,i,n),s},t.defineProperty_=function(n,a,i){i===void 0&&(i=!1),this.keysAtom_;try{ua();var o=this.delete_(n);if(!o)return o;if(na(this)){var s=aa(this,{object:this.proxy_||this.target_,name:n,type:ps,newValue:a.value});if(!s)return null;var l=s.newValue;a.value!==l&&(a=Mu({},a,{value:l}))}if(i){if(!Reflect.defineProperty(this.target_,n,a))return!1}else xi(this.target_,n,a);this.notifyPropertyAddition_(n,a.value)}finally{fa()}return!0},t.defineObservableProperty_=function(n,a,i,o){o===void 0&&(o=!1),this.keysAtom_;try{ua();var s=this.delete_(n);if(!s)return s;if(na(this)){var l=aa(this,{object:this.proxy_||this.target_,name:n,type:ps,newValue:a});if(!l)return null;a=l.newValue}var u=_R(n),f={configurable:ut.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,n,f))return!1}else xi(this.target_,n,f);var c=new hu(a,i,"ObservableObject.key",!1);this.values_.set(n,c),this.notifyPropertyAddition_(n,c.value_)}finally{fa()}return!0},t.defineComputedProperty_=function(n,a,i){i===void 0&&(i=!1),this.keysAtom_;try{ua();var o=this.delete_(n);if(!o)return o;if(na(this)){var s=aa(this,{object:this.proxy_||this.target_,name:n,type:ps,newValue:void 0});if(!s)return null}a.name||(a.name="ObservableObject.key"),a.context=this.proxy_||this.target_;var l=_R(n),u={configurable:ut.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(i){if(!Reflect.defineProperty(this.target_,n,u))return!1}else xi(this.target_,n,u);this.values_.set(n,new Ha(a)),this.notifyPropertyAddition_(n,void 0)}finally{fa()}return!0},t.delete_=function(n,a){if(a===void 0&&(a=!1),this.keysAtom_,!go(this.target_,n))return!0;if(na(this)){var i=aa(this,{object:this.proxy_||this.target_,name:n,type:mR});if(!i)return null}try{var o;ua();var s=Pa(this),l=!1,u=this.values_.get(n),f=void 0;if(!u&&(s||l)){var c;f=(c=a0(this.target_,n))==null?void 0:c.value}if(a){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(u&&(this.values_.delete(n),u instanceof hu&&(f=u.value_),tG(u)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(o=o.get(n))==null||o.set(n in this.target_),s||l){var h={type:mR,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:f,name:n};s&&Na(this,h)}}finally{fa()}return!0},t.observe_=function(n,a){return Xp(this,n)},t.intercept_=function(n){return Wp(this,n)},t.notifyPropertyAddition_=function(n,a){var i,o=Pa(this),s=!1;if(o||s){var l=o||s?{type:ps,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:a}:null;o&&Na(this,l)}(i=this.pendingKeys_)==null||(i=i.get(n))==null||i.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Wc(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function tf(e,t){var r;if(go(e,Ot))return e;var n=(r=t==null?void 0:t.name)!=null?r:"ObservableObject",a=new dG(e,new Map,String(n),f$(t));return Up(e,Ot,a),e}var iq=Ku("ObservableObjectAdministration",dG);function _R(e){return yR[e]||(yR[e]={get:function(){return this[Ot].getObservablePropValue_(e)},set:function(r){return this[Ot].setObservablePropValue_(e,r)}})}function gS(e){return fS(e)?iq(e[Ot]):!1}function SR(e,t,r){var n;(n=e.target_[ci])==null||delete n[r]}var oq=gG(0),sq=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),B1=0,pG=function(){};function lq(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}lq(pG,Array.prototype);var a2=function(e){function t(n,a,i,o){var s;return i===void 0&&(i="ObservableArray"),o===void 0&&(o=!1),s=e.call(this)||this,il(function(){var l=new n2(i,a,o,!0);l.proxy_=s,P4(s,Ot,l),n&&n.length&&s.spliceWithArray(0,0,n),sq&&Object.defineProperty(s,"0",oq)}),s}z4(t,e);var r=t.prototype;return r.concat=function(){this[Ot].atom_.reportObserved();for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return Array.prototype.concat.apply(this.slice(),i.map(function(s){return pS(s)?s.slice():s}))},r[Symbol.iterator]=function(){var n=this,a=0;return i2({next:function(){return a<n.length?{value:n[a++],done:!1}:{done:!0,value:void 0}}})},Mh(t,[{key:"length",get:function(){return this[Ot].getArrayLength_()},set:function(a){this[Ot].setArrayLength_(a)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(pG);Object.entries(f0).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&Up(a2.prototype,t,r)});function gG(e){return{enumerable:!1,configurable:!0,get:function(){return this[Ot].get_(e)},set:function(r){this[Ot].set_(e,r)}}}function uq(e){xi(a2.prototype,""+e,gG(e))}function yG(e){if(e>B1){for(var t=B1;t<e+100;t++)uq(t);B1=e}}yG(1e3);function fq(e,t,r){return new a2(e,t,r)}function h0(e,t){if(typeof e=="object"&&e!==null){if(pS(e))return t!==void 0&&Qt(23),e[Ot].atom_;if(si(e))return e.atom_;if(Ju(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||Qt(25,t,bT(e)),r}if(gS(e)){if(!t)return Qt(26);var n=e[Ot].values_.get(t);return n||Qt(27,t,bT(e)),n}if(QD(e)||dS(e)||u0(e))return e}else if(Ga(e)&&u0(e[Ot]))return e[Ot];Qt(28)}function cq(e,t){if(e||Qt(29),QD(e)||dS(e)||u0(e)||Ju(e)||si(e))return e;if(e[Ot])return e[Ot];Qt(24,e)}function bT(e,t){var r;if(t!==void 0)r=h0(e,t);else{if(Xc(e))return e.name;gS(e)||Ju(e)||si(e)?r=cq(e):r=h0(e)}return r.name_}function il(e){var t=Qu(),r=t2(!0);ua();try{return e()}finally{fa(),e2(r),yo(t)}}var bR=uS.toString;function mG(e,t,r){return r===void 0&&(r=-1),xT(e,t,r)}function xT(e,t,r,n,a){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;if(i!=="function"&&i!=="object"&&typeof t!="object")return!1;var o=bR.call(e);if(o!==bR.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=xR(e),t=xR(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var l=e.constructor,u=t.constructor;if(l!==u&&!(Ga(l)&&l instanceof l&&Ga(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],a=a||[];for(var f=n.length;f--;)if(n[f]===e)return a[f]===t;if(n.push(e),a.push(t),s){if(f=e.length,f!==t.length)return!1;for(;f--;)if(!xT(e[f],t[f],r-1,n,a))return!1}else{var c=Object.keys(e),h=c.length;if(Object.keys(t).length!==h)return!1;for(var v=0;v<h;v++){var d=c[v];if(!(go(t,d)&&xT(e[d],t[d],r-1,n,a)))return!1}}return n.pop(),a.pop(),!0}function xR(e){return pS(e)?e.slice():Ah(e)||Ju(e)||no(e)||si(e)?Array.from(e.entries()):e}var wR,hq=((wR=lS().Iterator)==null?void 0:wR.prototype)||{};function i2(e){return e[Symbol.iterator]=vq,Object.assign(Object.create(hq),e)}function vq(){return this}["Symbol","Map","Set"].forEach(function(e){var t=lS();typeof t[e]>"u"&&Qt("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:D$,extras:{getDebugName:bT},$mobx:Ot});var _G={exports:{}},Vt={};/**
12
+ * @license React
13
+ * react.production.js
14
+ *
15
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */var o2=Symbol.for("react.transitional.element"),dq=Symbol.for("react.portal"),pq=Symbol.for("react.fragment"),gq=Symbol.for("react.strict_mode"),yq=Symbol.for("react.profiler"),mq=Symbol.for("react.consumer"),_q=Symbol.for("react.context"),Sq=Symbol.for("react.forward_ref"),bq=Symbol.for("react.suspense"),xq=Symbol.for("react.memo"),SG=Symbol.for("react.lazy"),wq=Symbol.for("react.activity"),TR=Symbol.iterator;function Tq(e){return e===null||typeof e!="object"?null:(e=TR&&e[TR]||e["@@iterator"],typeof e=="function"?e:null)}var bG={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xG=Object.assign,wG={};function Dh(e,t,r){this.props=e,this.context=t,this.refs=wG,this.updater=r||bG}Dh.prototype.isReactComponent={};Dh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Dh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TG(){}TG.prototype=Dh.prototype;function s2(e,t,r){this.props=e,this.context=t,this.refs=wG,this.updater=r||bG}var l2=s2.prototype=new TG;l2.constructor=s2;xG(l2,Dh.prototype);l2.isPureReactComponent=!0;var CR=Array.isArray;function wT(){}var Te={H:null,A:null,T:null,S:null},CG=Object.prototype.hasOwnProperty;function u2(e,t,r){var n=r.ref;return{$$typeof:o2,type:e,key:t,ref:n!==void 0?n:null,props:r}}function Cq(e,t){return u2(e.type,t,e.props)}function f2(e){return typeof e=="object"&&e!==null&&e.$$typeof===o2}function Aq(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var AR=/\/+/g;function V1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Aq(""+e.key):t.toString(36)}function Mq(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(wT,wT):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function rc(e,t,r,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case o2:case dq:o=!0;break;case SG:return o=e._init,rc(o(e._payload),t,r,n,a)}}if(o)return a=a(e),o=n===""?"."+V1(e,0):n,CR(a)?(r="",o!=null&&(r=o.replace(AR,"$&/")+"/"),rc(a,t,r,"",function(u){return u})):a!=null&&(f2(a)&&(a=Cq(a,r+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(AR,"$&/")+"/")+o)),t.push(a)),1;o=0;var s=n===""?".":n+":";if(CR(e))for(var l=0;l<e.length;l++)n=e[l],i=s+V1(n,l),o+=rc(n,t,r,i,a);else if(l=Tq(e),typeof l=="function")for(e=l.call(e),l=0;!(n=e.next()).done;)n=n.value,i=s+V1(n,l++),o+=rc(n,t,r,i,a);else if(i==="object"){if(typeof e.then=="function")return rc(Mq(e),t,r,n,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function Ig(e,t,r){if(e==null)return e;var n=[],a=0;return rc(e,n,"","",function(i){return t.call(r,i,a++)}),n}function Dq(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var MR=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Lq={map:Ig,forEach:function(e,t,r){Ig(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ig(e,function(){t++}),t},toArray:function(e){return Ig(e,function(t){return t})||[]},only:function(e){if(!f2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Vt.Activity=wq;Vt.Children=Lq;Vt.Component=Dh;Vt.Fragment=pq;Vt.Profiler=yq;Vt.PureComponent=s2;Vt.StrictMode=gq;Vt.Suspense=bq;Vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Te;Vt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Te.H.useMemoCache(e)}};Vt.cache=function(e){return function(){return e.apply(null,arguments)}};Vt.cacheSignal=function(){return null};Vt.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=xG({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!CG.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(n[i]=t[i]);var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];n.children=o}return u2(e.type,a,n)};Vt.createContext=function(e){return e={$$typeof:_q,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:mq,_context:e},e};Vt.createElement=function(e,t,r){var n,a={},i=null;if(t!=null)for(n in t.key!==void 0&&(i=""+t.key),t)CG.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(a[n]=t[n]);var o=arguments.length-2;if(o===1)a.children=r;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];a.children=s}if(e&&e.defaultProps)for(n in o=e.defaultProps,o)a[n]===void 0&&(a[n]=o[n]);return u2(e,i,a)};Vt.createRef=function(){return{current:null}};Vt.forwardRef=function(e){return{$$typeof:Sq,render:e}};Vt.isValidElement=f2;Vt.lazy=function(e){return{$$typeof:SG,_payload:{_status:-1,_result:e},_init:Dq}};Vt.memo=function(e,t){return{$$typeof:xq,type:e,compare:t===void 0?null:t}};Vt.startTransition=function(e){var t=Te.T,r={};Te.T=r;try{var n=e(),a=Te.S;a!==null&&a(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(wT,MR)}catch(i){MR(i)}finally{t!==null&&r.types!==null&&(t.types=r.types),Te.T=t}};Vt.unstable_useCacheRefresh=function(){return Te.H.useCacheRefresh()};Vt.use=function(e){return Te.H.use(e)};Vt.useActionState=function(e,t,r){return Te.H.useActionState(e,t,r)};Vt.useCallback=function(e,t){return Te.H.useCallback(e,t)};Vt.useContext=function(e){return Te.H.useContext(e)};Vt.useDebugValue=function(){};Vt.useDeferredValue=function(e,t){return Te.H.useDeferredValue(e,t)};Vt.useEffect=function(e,t){return Te.H.useEffect(e,t)};Vt.useEffectEvent=function(e){return Te.H.useEffectEvent(e)};Vt.useId=function(){return Te.H.useId()};Vt.useImperativeHandle=function(e,t,r){return Te.H.useImperativeHandle(e,t,r)};Vt.useInsertionEffect=function(e,t){return Te.H.useInsertionEffect(e,t)};Vt.useLayoutEffect=function(e,t){return Te.H.useLayoutEffect(e,t)};Vt.useMemo=function(e,t){return Te.H.useMemo(e,t)};Vt.useOptimistic=function(e,t){return Te.H.useOptimistic(e,t)};Vt.useReducer=function(e,t,r){return Te.H.useReducer(e,t,r)};Vt.useRef=function(e){return Te.H.useRef(e)};Vt.useState=function(e){return Te.H.useState(e)};Vt.useSyncExternalStore=function(e,t,r){return Te.H.useSyncExternalStore(e,t,r)};Vt.useTransition=function(){return Te.H.useTransition()};Vt.version="19.2.4";_G.exports=Vt;var z=_G.exports;const Ea=Ch(z),AG=gZ({__proto__:null,default:Ea},[z]);if(!z.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!q$)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var MG={exports:{}},Jr={};/**
20
+ * @license React
21
+ * react-dom.production.js
22
+ *
23
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */var Eq=z;function DG(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function $o(){}var $r={d:{f:$o,r:function(){throw Error(DG(522))},D:$o,C:$o,L:$o,m:$o,X:$o,S:$o,M:$o},p:0,findDOMNode:null},Oq=Symbol.for("react.portal");function Rq(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Oq,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}var dd=Eq.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function yS(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Jr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$r;Jr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(DG(299));return Rq(e,t,null,r)};Jr.flushSync=function(e){var t=dd.T,r=$r.p;try{if(dd.T=null,$r.p=2,e)return e()}finally{dd.T=t,$r.p=r,$r.d.f()}};Jr.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,$r.d.C(e,t))};Jr.prefetchDNS=function(e){typeof e=="string"&&$r.d.D(e)};Jr.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,n=yS(r,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?$r.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:a,fetchPriority:i}):r==="script"&&$r.d.X(e,{crossOrigin:n,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Jr.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=yS(t.as,t.crossOrigin);$r.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&$r.d.M(e)};Jr.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,n=yS(r,t.crossOrigin);$r.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Jr.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=yS(t.as,t.crossOrigin);$r.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else $r.d.m(e)};Jr.requestFormReset=function(e){$r.d.r(e)};Jr.unstable_batchedUpdates=function(e,t){return e(t)};Jr.useFormState=function(e,t,r){return dd.H.useFormState(e,t,r)};Jr.useFormStatus=function(){return dd.H.useHostTransitionStatus()};Jr.version="19.2.4";function LG(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LG)}catch(e){console.error(e)}}LG(),MG.exports=Jr;var ef=MG.exports;const Iq=Ch(ef);function Pq(e){e()}function Nq(e){e||(e=Pq),U$({reactionScheduler:e})}function kq(e){return F$(e)}var zq=1e4,Bq=1e4,Vq=function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(n){n===void 0&&(n=zq),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var a=Date.now();r.registrations.forEach(function(i,o){a-i.registeredAt>=n&&(r.finalize(i.value),r.registrations.delete(o))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){this.registrations.set(n,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Bq))}}),e}(),Gq=typeof FinalizationRegistry<"u"?FinalizationRegistry:Vq,TT=new Gq(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),EG={exports:{}},OG={};/**
28
+ * @license React
29
+ * use-sync-external-store-shim.production.js
30
+ *
31
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
32
+ *
33
+ * This source code is licensed under the MIT license found in the
34
+ * LICENSE file in the root directory of this source tree.
35
+ */var $c=z;function Hq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uq=typeof Object.is=="function"?Object.is:Hq,Fq=$c.useState,Yq=$c.useEffect,jq=$c.useLayoutEffect,Wq=$c.useDebugValue;function Xq(e,t){var r=t(),n=Fq({inst:{value:r,getSnapshot:t}}),a=n[0].inst,i=n[1];return jq(function(){a.value=r,a.getSnapshot=t,G1(a)&&i({inst:a})},[e,r,t]),Yq(function(){return G1(a)&&i({inst:a}),e(function(){G1(a)&&i({inst:a})})},[e]),Wq(r),r}function G1(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Uq(e,r)}catch{return!0}}function Zq(e,t){return t()}var $q=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zq:Xq;OG.useSyncExternalStore=$c.useSyncExternalStore!==void 0?$c.useSyncExternalStore:$q;EG.exports=OG;var RG=EG.exports;function DR(e){e.reaction=new Do("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function qq(e,t){t===void 0&&(t="observed");var r=Ea.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(s){return TT.unregister(n),n.onStoreChange=s,n.reaction||(DR(n),n.stateVersion=Symbol()),function(){var l;n.onStoreChange=null,(l=n.reaction)===null||l===void 0||l.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var a=r.current;a.reaction||(DR(a),TT.register(r,a,a)),Ea.useDebugValue(a.reaction,kq),RG.useSyncExternalStore(a.subscribe,a.getSnapshot,a.getSnapshot);var i,o;if(a.reaction.track(function(){try{i=e()}catch(s){o=s}}),o)throw o;return i}var H1,U1,IG=typeof Symbol=="function"&&Symbol.for,Kq=(U1=(H1=Object.getOwnPropertyDescriptor(function(){},"name"))===null||H1===void 0?void 0:H1.configurable)!==null&&U1!==void 0?U1:!1,LR=IG?Symbol.for("react.forward_ref"):typeof z.forwardRef=="function"&&z.forwardRef(function(e){return null}).$$typeof,ER=IG?Symbol.for("react.memo"):typeof z.memo=="function"&&z.memo(function(e){return null}).$$typeof;function Zp(e,t){var r;if(ER&&e.$$typeof===ER)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=(r=void 0)!==null&&r!==void 0?r:!1,a=e,i=e.displayName||e.name;if(LR&&e.$$typeof===LR&&(n=!0,a=e.render,typeof a!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o=function(s,l){return qq(function(){return a(s,l)},i)};return o.displayName=e.displayName,Kq&&Object.defineProperty(o,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(o.contextTypes=e.contextTypes),n&&(o=z.forwardRef(o)),o=z.memo(o),Jq(e,o),o}var Qq={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Jq(e,t){Object.keys(e).forEach(function(r){Qq[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}var F1;Nq(ef.unstable_batchedUpdates);F1=TT.finalizeAllImmediately;const Pt=e=>typeof e=="string",sv=()=>{let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r},OR=e=>e==null?"":""+e,tK=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},eK=/###/g,RR=e=>e&&e.indexOf("###")>-1?e.replace(eK,"."):e,IR=e=>!e||Pt(e),pd=(e,t,r)=>{const n=Pt(t)?t.split("."):t;let a=0;for(;a<n.length-1;){if(IR(e))return{};const i=RR(n[a]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return IR(e)?{}:{obj:e,k:RR(n[a])}},PR=(e,t,r)=>{const{obj:n,k:a}=pd(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let i=t[t.length-1],o=t.slice(0,t.length-1),s=pd(e,o,Object);for(;s.obj===void 0&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),s=pd(e,o,Object),s!=null&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},rK=(e,t,r,n)=>{const{obj:a,k:i}=pd(e,t,Object);a[i]=a[i]||[],a[i].push(r)},v0=(e,t)=>{const{obj:r,k:n}=pd(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},nK=(e,t,r)=>{const n=v0(e,r);return n!==void 0?n:v0(t,r)},PG=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?Pt(e[n])||e[n]instanceof String||Pt(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):PG(e[n],t[n],r):e[n]=t[n]);return e},wf=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var aK={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const iK=e=>Pt(e)?e.replace(/[&<>"'\/]/g,t=>aK[t]):e;class oK{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const sK=[" ",",","?","!",";"],lK=new oK(20),uK=(e,t,r)=>{t=t||"",r=r||"";const n=sK.filter(o=>t.indexOf(o)<0&&r.indexOf(o)<0);if(n.length===0)return!0;const a=lK.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!a.test(e);if(!i){const o=e.indexOf(r);o>0&&!a.test(e.substring(0,o))&&(i=!0)}return i},CT=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const n=t.split(r);let a=e;for(let i=0;i<n.length;){if(!a||typeof a!="object")return;let o,s="";for(let l=i;l<n.length;++l)if(l!==i&&(s+=r),s+=n[l],o=a[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<n.length-1)continue;i+=l-i+1;break}a=o}return a},Zd=e=>e==null?void 0:e.replace("_","-"),fK={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,n;(n=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||n.call(r,console,t)}};class d0{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||fK,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(Pt(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new d0(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new d0(this.logger,t)}}var hi=new d0;class mS{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,i])=>{for(let o=0;o<i;o++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,i])=>{for(let o=0;o<i;o++)a.apply(a,[t,...r])})}}class NR extends mS{constructor(t,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n,a={}){var u,f;const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,o=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):Pt(n)&&i?s.push(...n.split(i)):s.push(n)));const l=v0(this.data,s);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!o||!Pt(n)?l:CT((f=(u=this.data)==null?void 0:u[t])==null?void 0:f[r],n,i)}addResource(t,r,n,a,i={silent:!1}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,r];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(s=t.split("."),a=r,r=s[1]),this.addNamespaces(r),PR(this.data,s,a),i.silent||this.emit("added",t,r,n,a)}addResources(t,r,n,a={silent:!1}){for(const i in n)(Pt(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,i,o={silent:!1,skipCopy:!1}){let s=[t,r];t.indexOf(".")>-1&&(s=t.split("."),a=n,n=r,r=s[1]),this.addNamespaces(r);let l=v0(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?PG(l,n,i):l={...l,...n},PR(this.data,s,l),o.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}}var NG={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(i=>{var o;t=((o=this.processors[i])==null?void 0:o.process(t,r,n,a))??t}),t}};const kG=Symbol("i18next/PATH_KEY");function cK(){const e=[],t=Object.create(null);let r;return t.get=(n,a)=>{var i;return(i=r==null?void 0:r.revoke)==null||i.call(r),a===kG?e:(e.push(a),r=Proxy.revocable(n,t),r.proxy)},Proxy.revocable(Object.create(null),t).proxy}function AT(e,t){const{[kG]:r}=e(cK());return r.join((t==null?void 0:t.keySeparator)??".")}const kR={},Y1=e=>!Pt(e)&&typeof e!="boolean"&&typeof e!="number";class p0 extends mS{constructor(t,r={}){super(),tK(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=hi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){const n={...r};if(t==null)return!1;const a=this.resolve(t,n);if((a==null?void 0:a.res)===void 0)return!1;const i=Y1(a.res);return!(n.returnObjects===!1&&i)}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const o=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!uK(t,n,a);if(o&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:Pt(i)?[i]:i};const u=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(a)}return{key:t,namespaces:Pt(i)?[i]:i}}translate(t,r,n){let a=typeof r=="object"?{...r}:r;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=AT(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const i=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],a),u=l[l.length-1];let f=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const c=a.lng||this.language,h=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode")return h?i?{res:`${u}${f}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:`${u}${f}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:s;const v=this.resolve(t,a);let d=v==null?void 0:v.res;const p=(v==null?void 0:v.usedKey)||s,g=(v==null?void 0:v.exactUsedKey)||s,y=["[object Number]","[object Function]","[object RegExp]"],m=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,S=a.count!==void 0&&!Pt(a.count),b=p0.hasDefaultValue(a),x=S?this.pluralResolver.getSuffix(c,a.count,a):"",w=a.ordinal&&S?this.pluralResolver.getSuffix(c,a.count,{ordinal:!1}):"",T=S&&!a.ordinal&&a.count===0,C=T&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${x}`]||a[`defaultValue${w}`]||a.defaultValue;let A=d;_&&!d&&b&&(A=C);const M=Y1(A),E=Object.prototype.toString.apply(A);if(_&&A&&M&&y.indexOf(E)<0&&!(Pt(m)&&Array.isArray(A))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,A,{...a,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(v.res=L,v.usedParams=this.getUsedParamsDetails(a),v):L}if(o){const L=Array.isArray(A),R=L?[]:{},P=L?g:p;for(const O in A)if(Object.prototype.hasOwnProperty.call(A,O)){const N=`${P}${o}${O}`;b&&!d?R[O]=this.translate(N,{...a,defaultValue:Y1(C)?C[O]:void 0,joinArrays:!1,ns:l}):R[O]=this.translate(N,{...a,joinArrays:!1,ns:l}),R[O]===N&&(R[O]=A[O])}d=R}}else if(_&&Pt(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,t,a,n));else{let L=!1,R=!1;!this.isValidLookup(d)&&b&&(L=!0,d=C),this.isValidLookup(d)||(R=!0,d=s);const O=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&R?void 0:d,N=b&&C!==d&&this.options.updateMissing;if(R||L||N){if(this.logger.log(N?"updateKey":"missingKey",c,u,s,N?C:d),o){const H=this.resolve(s,{...a,keySeparator:!1});H&&H.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let I=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let H=0;H<k.length;H++)I.push(k[H]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(a.lng||this.language):I.push(a.lng||this.language);const B=(H,U,X)=>{var st;const q=b&&X!==d?X:O;this.options.missingKeyHandler?this.options.missingKeyHandler(H,u,U,q,N,a):(st=this.backendConnector)!=null&&st.saveMissing&&this.backendConnector.saveMissing(H,u,U,q,N,a),this.emit("missingKey",H,u,U,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?I.forEach(H=>{const U=this.pluralResolver.getSuffixes(H,a);T&&a[`defaultValue${this.options.pluralSeparator}zero`]&&U.indexOf(`${this.options.pluralSeparator}zero`)<0&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(X=>{B([H],s+X,a[`defaultValue${X}`]||C)})}):B(I,s,C))}d=this.extendTranslation(d,t,a,v,n),R&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${u}${f}${s}`),(R||L)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${f}${s}`:s,L?d:void 0,a))}return i?(v.res=d,v.usedParams=this.getUsedParamsDetails(a),v):d}extendTranslation(t,r,n,a,i){var l,u;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const f=Pt(t)&&(((u=n==null?void 0:n.interpolation)==null?void 0:u.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(f){const v=t.match(this.interpolator.nestingRegexp);c=v&&v.length}let h=n.replace&&!Pt(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,n.lng||this.language||a.usedLng,n),f){const v=t.match(this.interpolator.nestingRegexp),d=v&&v.length;c<d&&(n.nest=!1)}!n.lng&&a&&a.res&&(n.lng=this.language||a.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,(...v)=>(i==null?void 0:i[0])===v[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${r[0]}`),null):this.translate(...v,r),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,s=Pt(o)?[o]:o;return t!=null&&(s!=null&&s.length)&&n.applyPostProcessor!==!1&&(t=NG.handle(s,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t,r={}){let n,a,i,o,s;return Pt(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),f=u.key;a=f;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const h=r.count!==void 0&&!Pt(r.count),v=h&&!r.ordinal&&r.count===0,d=r.context!==void 0&&(Pt(r.context)||typeof r.context=="number")&&r.context!=="",p=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);c.forEach(g=>{var y,m;this.isValidLookup(n)||(s=g,!kR[`${p[0]}-${g}`]&&((y=this.utils)!=null&&y.hasLoadedNamespace)&&!((m=this.utils)!=null&&m.hasLoadedNamespace(s))&&(kR[`${p[0]}-${g}`]=!0,this.logger.warn(`key "${a}" for languages "${p.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(_=>{var x;if(this.isValidLookup(n))return;o=_;const S=[f];if((x=this.i18nFormat)!=null&&x.addLookupKeys)this.i18nFormat.addLookupKeys(S,f,_,g,r);else{let w;h&&(w=this.pluralResolver.getSuffix(_,r.count,r));const T=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(r.ordinal&&w.indexOf(C)===0&&S.push(f+w.replace(C,this.options.pluralSeparator)),S.push(f+w),v&&S.push(f+T)),d){const A=`${f}${this.options.contextSeparator||"_"}${r.context}`;S.push(A),h&&(r.ordinal&&w.indexOf(C)===0&&S.push(A+w.replace(C,this.options.pluralSeparator)),S.push(A+w),v&&S.push(A+T))}}let b;for(;b=S.pop();)this.isValidLookup(n)||(i=b,n=this.getResource(_,g,b,r))}))})}),{res:n,usedKey:a,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n,a={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(t={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!Pt(t.replace);let a=n?t.replace:t;if(n&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const i of r)delete a[i]}return a}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}class zR{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hi.create("languageUtils")}getScriptPartFromCode(t){if(t=Zd(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Zd(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(Pt(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const a=this.getScriptPartFromCode(n);if(this.isSupportedCode(a))return r=a;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),Pt(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),a=[],i=o=>{o&&(this.isSupportedCode(o)?a.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return Pt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):Pt(t)&&i(this.formatLanguageCode(t)),n.forEach(o=>{a.indexOf(o)<0&&i(this.formatLanguageCode(o))}),a}}const BR={zero:0,one:1,two:2,few:3,many:4,other:5},VR={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class hK{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=hi.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){const n=Zd(t==="dev"?"en":t),a=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),VR;if(!t.match(/-|_/))return VR;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,r)}return this.pluralRulesCache[i]=o,o}needsPlural(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r,n={}){return this.getSuffixes(t,n).map(a=>`${r}${a}`)}getSuffixes(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((a,i)=>BR[a]-BR[i]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,r,n={}){const a=this.getRule(t,n);return a?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}}const GR=(e,t,r,n=".",a=!0)=>{let i=nK(e,t,r);return!i&&a&&Pt(r)&&(i=CT(e,r,n),i===void 0&&(i=CT(t,r,n))),i},j1=e=>e.replace(/\$/g,"$$$$");class HR{constructor(t={}){var r;this.logger=hi.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.format)||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:a,prefix:i,prefixEscaped:o,suffix:s,suffixEscaped:l,formatSeparator:u,unescapeSuffix:f,unescapePrefix:c,nestingPrefix:h,nestingPrefixEscaped:v,nestingSuffix:d,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:m}=t.interpolation;this.escape=r!==void 0?r:iK,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?wf(i):o||"{{",this.suffix=s?wf(s):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=h?wf(h):v||wf("$t("),this.nestingSuffix=d?wf(d):p||wf(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=m!==void 0?m:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>(r==null?void 0:r.source)===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,n,a){var v;let i,o,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=d=>{if(d.indexOf(this.formatSeparator)<0){const m=GR(r,l,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,n,{...a,...r,interpolationkey:d}):m}const p=d.split(this.formatSeparator),g=p.shift().trim(),y=p.join(this.formatSeparator).trim();return this.format(GR(r,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),y,n,{...a,...r,interpolationkey:g})};this.resetRegExp();const f=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,c=((v=a==null?void 0:a.interpolation)==null?void 0:v.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>j1(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?j1(this.escape(d)):j1(d)}].forEach(d=>{for(s=0;i=d.regex.exec(t);){const p=i[1].trim();if(o=u(p),o===void 0)if(typeof f=="function"){const y=f(t,i,a);o=Pt(y)?y:""}else if(a&&Object.prototype.hasOwnProperty.call(a,p))o="";else if(c){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${t}`),o="";else!Pt(o)&&!this.useRawValueToEscape&&(o=OR(o));const g=d.safeValue(o);if(t=t.replace(i[0],g),c?(d.regex.lastIndex+=o.length,d.regex.lastIndex-=i[0].length):d.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r,n={}){let a,i,o;const s=(l,u)=>{const f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;const c=l.split(new RegExp(`${f}[ ]*{`));let h=`{${c[1]}`;l=c[0],h=this.interpolate(h,o);const v=h.match(/'/g),d=h.match(/"/g);(((v==null?void 0:v.length)??0)%2===0&&!d||d.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(p){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,p),`${l}${f}${h}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];o={...n},o=o.replace&&!Pt(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(u!==-1&&(l=a[1].slice(u).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),a[1]=a[1].slice(0,u)),i=r(s.call(this,a[1].trim(),o),o),i&&a[0]===t&&!Pt(i))return i;Pt(i)||(i=OR(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((f,c)=>this.format(f,c,n.lng,{...n,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}}const vK=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(o=>{if(o){const[s,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),f=s.trim();r[f]||(r[f]=u),u==="false"&&(r[f]=!1),u==="true"&&(r[f]=!0),isNaN(u)||(r[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},UR=e=>{const t={};return(r,n,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const o=n+JSON.stringify(i);let s=t[o];return s||(s=e(Zd(n),a),t[o]=s),s(r)}},dK=e=>(t,r,n)=>e(Zd(r),n)(t);class pK{constructor(t={}){this.logger=hi.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const n=r.cacheInBuiltFormats?UR:dK;this.formats={number:n((a,i)=>{const o=new Intl.NumberFormat(a,{...i});return s=>o.format(s)}),currency:n((a,i)=>{const o=new Intl.NumberFormat(a,{...i,style:"currency"});return s=>o.format(s)}),datetime:n((a,i)=>{const o=new Intl.DateTimeFormat(a,{...i});return s=>o.format(s)}),relativetime:n((a,i)=>{const o=new Intl.RelativeTimeFormat(a,{...i});return s=>o.format(s,i.range||"day")}),list:n((a,i)=>{const o=new Intl.ListFormat(a,{...i});return s=>o.format(s)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=UR(r)}format(t,r,n,a={}){const i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{var c;const{formatName:u,formatOptions:f}=vK(l);if(this.formats[u]){let h=s;try{const v=((c=a==null?void 0:a.formatParams)==null?void 0:c[a.interpolationkey])||{},d=v.locale||v.lng||a.locale||a.lng||n;h=this.formats[u](s,d,{...f,...a,...v})}catch(v){this.logger.warn(v)}return h}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const gK=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class yK extends mS{constructor(t,r,n,a={}){var i,o;super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=hi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(o=(i=this.backend)==null?void 0:i.init)==null||o.call(i,n,a.backend,a)}queueLoad(t,r,n,a){const i={},o={},s={},l={};return t.forEach(u=>{let f=!0;r.forEach(c=>{const h=`${u}|${c}`;!n.reload&&this.store.hasResourceBundle(u,c)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,f=!1,o[h]===void 0&&(o[h]=!0),i[h]===void 0&&(i[h]=!0),l[c]===void 0&&(l[c]=!0)))}),f||(s[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const a=t.split("|"),i=a[0],o=a[1];r&&this.emit("failedLoading",i,o,r),!r&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const s={};this.queue.forEach(l=>{rK(l.loaded,[i],o),gK(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{s[u]||(s[u]={});const f=l.loaded[u];f.length&&f.forEach(c=>{s[u][c]===void 0&&(s[u][c]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n,a=0,i=this.retryTimeout,o){if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:a,wait:i,callback:o});return}this.readingCalls++;const s=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&f&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,i*2,o)},i);return}o(u,f)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(t,r);u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}return}return l(t,r,s)}prepareLoading(t,r,n={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Pt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Pt(r)&&(r=[r]);const i=this.queueLoad(t,r,n,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(o=>{this.loadOne(o)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t,r=""){const n=t.split("|"),a=n[0],i=n[1];this.read(a,i,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${r}loading namespace ${i} for language ${a} failed`,o),!o&&s&&this.logger.log(`${r}loaded namespace ${i} for language ${a}`,s),this.loaded(t,o,s)})}saveMissing(t,r,n,a,i,o={},s=()=>{}){var l,u,f,c,h;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((c=(f=this.services)==null?void 0:f.utils)!=null&&c.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((h=this.backend)!=null&&h.create){const v={...o,isUpdate:i},d=this.backend.create.bind(this.backend);if(d.length<6)try{let p;d.length===5?p=d(t,r,n,a,v):p=d(t,r,n,a),p&&typeof p.then=="function"?p.then(g=>s(null,g)).catch(s):s(null,p)}catch(p){s(p)}else d(t,r,n,a,s,v)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}const W1=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Pt(e[1])&&(t.defaultValue=e[1]),Pt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),FR=e=>{var t,r;return Pt(e.ns)&&(e.ns=[e.ns]),Pt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Pt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Pg=()=>{},mK=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})},_K=e=>{var t,r,n,a,i,o,s,l,u;return!!(((n=(r=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:r.name)==null?void 0:n.indexOf("Locize"))>0||((s=(o=(i=(a=e==null?void 0:e.modules)==null?void 0:a.backend)==null?void 0:i.constructor)==null?void 0:o.name)==null?void 0:s.indexOf("Locize"))>0||(u=(l=e==null?void 0:e.options)==null?void 0:l.backend)!=null&&u.backends&&e.options.backend.backends.some(f=>{var c,h,v;return((c=f==null?void 0:f.name)==null?void 0:c.indexOf("Locize"))>0||((v=(h=f==null?void 0:f.constructor)==null?void 0:h.name)==null?void 0:v.indexOf("Locize"))>0}))};class gd extends mS{constructor(t={},r){if(super(),this.options=FR(t),this.services={},this.logger=hi,this.modules={external:[]},mK(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(Pt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=W1();this.options={...n,...this.options,...FR(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!_K(this)&&typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");const a=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?hi.init(a(this.modules.logger),this.options):hi.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=pK;const f=new zR(this.options);this.store=new NR(this.options.resources,this.options);const c=this.services;c.logger=hi,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new hK(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(c.formatter=a(u),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new HR(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new yK(a(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(v,...d)=>{this.emit(v,...d)}),this.modules.languageDetector&&(c.languageDetector=a(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=a(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new p0(this.services,this.options),this.translator.on("*",(v,...d)=>{this.emit(v,...d)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Pg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...f)=>this.store[u](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...f)=>(this.store[u](...f),this)});const s=sv(),l=()=>{const u=(f,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(c),r(f,c)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,r=Pg){var i,o;let n=r;const a=Pt(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(o=(i=this.options.preload)==null?void 0:i.forEach)==null||o.call(i,u=>l(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(t,r,n){const a=sv();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Pg),this.services.backendConnector.reload(t,r,i=>{a.resolve(),n(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&NG.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;const n=sv();this.emit("languageChanging",t);const a=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===t&&(a(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,n.resolve((...u)=>this.t(...u)),r&&r(s,(...u)=>this.t(...u))},o=s=>{var f,c;!t&&!s&&this.services.languageDetector&&(s=[]);const l=Pt(s)?s:s&&s[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Pt(s)?[s]:s);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),(c=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||c.call(f,u)),this.loadResources(u,h=>{i(h,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),n}getFixedT(t,r,n){const a=(i,o,...s)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([i,o].concat(s)):l={...o},l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||a.keyPrefix);const u=this.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(i)?f=i.map(c=>(typeof c=="function"&&(c=AT(c,{...this.options,...o})),`${l.keyPrefix}${u}${c}`)):(typeof i=="function"&&(i=AT(i,{...this.options,...o})),f=l.keyPrefix?`${l.keyPrefix}${u}${i}`:i),this.t(f,l)};return Pt(t)?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(...t){var r;return(r=this.translator)==null?void 0:r.translate(...t)}exists(...t){var r;return(r=this.translator)==null?void 0:r.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(s,l)=>{const u=this.services.backendConnector.state[`${s}|${l}`];return u===-1||u===0||u===2};if(r.precheck){const s=r.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,t)&&(!a||o(i,t)))}loadNamespaces(t,r){const n=sv();return this.options.ns?(Pt(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=sv();Pt(t)&&(t=[t]);const a=this.options.preload||[],i=t.filter(o=>a.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return i.length?(this.options.preload=a.concat(i),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}dir(t){var a,i;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const s=o.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new zR(W1());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){const n=new gd(t,r);return n.createInstance=gd.createInstance,n}cloneInstance(t={},r=Pg){const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new gd(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const s=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((f,c)=>(f[c]={...l[u][c]},f),l[u]),l),{});i.store=new NR(s,a),i.services.resourceStore=i.store}if(t.interpolation){const l={...W1().interpolation,...this.options.interpolation,...t.interpolation},u={...a,interpolation:l};i.services.interpolator=new HR(u)}return i.translator=new p0(i.services,a),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(a,r),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ur=gd.createInstance();Ur.createInstance;Ur.dir;Ur.init;Ur.loadResources;Ur.reloadResources;Ur.use;Ur.changeLanguage;Ur.getFixedT;Ur.t;Ur.exists;Ur.setDefaultNamespace;Ur.hasLoadedNamespace;Ur.loadNamespaces;Ur.loadLanguages;const SK=(e,t,r,n)=>{var i,o,s,l;const a=[r,{code:t,...n||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);Eu(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(l=(s=e==null?void 0:e.services)==null?void 0:s.logger)!=null&&l.warn?e.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},YR={},zG=(e,t,r,n)=>{Eu(r)&&YR[r]||(Eu(r)&&(YR[r]=new Date),SK(e,t,r,n))},BG=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},MT=(e,t,r)=>{e.loadNamespaces(t,BG(e,r))},jR=(e,t,r,n)=>{if(Eu(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return MT(e,r,n);r.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,BG(e,n))},bK=(e,t,r={})=>!t.languages||!t.languages.length?(zG(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(n,a)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e))return!1}}),Eu=e=>typeof e=="string",xK=e=>typeof e=="object"&&e!==null,wK=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,TK={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},CK=e=>TK[e],AK=e=>e.replace(wK,CK);let DT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:AK,transDefaultProps:void 0};const MK=(e={})=>{DT={...DT,...e}},DK=()=>DT;let VG;const LK=e=>{VG=e},EK=()=>VG,OK={type:"3rdParty",init(e){MK(e.options.react),LK(e)}},RK=z.createContext();class IK{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const PK=(e,t)=>Eu(t)?t:xK(t)&&Eu(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,NK={t:PK,ready:!1},kK=()=>()=>{},GG=(e,t={})=>{var C,A,M;const{i18n:r}=t,{i18n:n,defaultNS:a}=z.useContext(RK)||{},i=r||n||EK();i&&!i.reportNamespaces&&(i.reportNamespaces=new IK),i||zG(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const o=z.useMemo(()=>{var E;return{...DK(),...(E=i==null?void 0:i.options)==null?void 0:E.react,...t}},[i,t]),{useSuspense:s,keyPrefix:l}=o,u=a||((C=i==null?void 0:i.options)==null?void 0:C.defaultNS),f=Eu(u)?[u]:u||["translation"],c=z.useMemo(()=>f,f);(M=(A=i==null?void 0:i.reportNamespaces)==null?void 0:A.addUsedNamespaces)==null||M.call(A,c);const h=z.useRef(0),v=z.useCallback(E=>{if(!i)return kK;const{bindI18n:L,bindI18nStore:R}=o,P=()=>{h.current+=1,E()};return L&&i.on(L,P),R&&i.store.on(R,P),()=>{L&&L.split(" ").forEach(O=>i.off(O,P)),R&&R.split(" ").forEach(O=>i.store.off(O,P))}},[i,o]),d=z.useRef(),p=z.useCallback(()=>{if(!i)return NK;const E=!!(i.isInitialized||i.initializedStoreOnce)&&c.every(I=>bK(I,i,o)),L=t.lng||i.language,R=h.current,P=d.current;if(P&&P.ready===E&&P.lng===L&&P.keyPrefix===l&&P.revision===R)return P;const N={t:i.getFixedT(L,o.nsMode==="fallback"?c:c[0],l),ready:E,lng:L,keyPrefix:l,revision:R};return d.current=N,N},[i,c,l,o,t.lng]),[g,y]=z.useState(0),{t:m,ready:_}=RG.useSyncExternalStore(v,p,p);z.useEffect(()=>{if(i&&!_&&!s){const E=()=>y(L=>L+1);t.lng?jR(i,t.lng,c,E):MT(i,c,E)}},[i,t.lng,c,_,s,g]);const S=i||{},b=z.useRef(null),x=z.useRef(),w=E=>{const L=Object.getOwnPropertyDescriptors(E);L.__original&&delete L.__original;const R=Object.create(Object.getPrototypeOf(E),L);if(!Object.prototype.hasOwnProperty.call(R,"__original"))try{Object.defineProperty(R,"__original",{value:E,writable:!1,enumerable:!1,configurable:!1})}catch{}return R},T=z.useMemo(()=>{const E=S,L=E==null?void 0:E.language;let R=E;E&&(b.current&&b.current.__original===E?x.current!==L?(R=w(E),b.current=R,x.current=L):R=b.current:(R=w(E),b.current=R,x.current=L));const P=[m,R,_];return P.t=m,P.i18n=R,P.ready=_,P},[m,S,_,S.resolvedLanguage,S.language,S.languages]);if(i&&s&&!_)throw new Promise(E=>{const L=()=>E();t.lng?jR(i,t.lng,c,L):MT(i,c,L)});return T};var LT={exports:{}},ET={exports:{}},OT={exports:{}},RT={exports:{}},IT={exports:{}};(function(e,t){var r=Object.prototype.toString;t=function(n){return r.call(n)},e.exports=t})(IT,IT.exports);var rf=IT.exports;(function(e,t){var r=rf;t=function(n){return r(n)==="[object Number]"},e.exports=t})(RT,RT.exports);var c2=RT.exports,PT={exports:{}};(function(e,t){var r=rf;t=function(n){var a=r(n);return a==="[object Function]"||a==="[object GeneratorFunction]"||a==="[object AsyncFunction]"},e.exports=t})(PT,PT.exports);var Lh=PT.exports;(function(e,t){var r=c2,n=Lh,a=Math.pow(2,53)-1;t=function(i){if(!i)return!1;var o=i.length;return r(o)&&o>=0&&o<=a&&!n(i)},e.exports=t})(OT,OT.exports);var _S=OT.exports,NT={exports:{}},kT={exports:{}};(function(e,t){var r=Object.prototype.hasOwnProperty;t=function(n,a){return r.call(n,a)},e.exports=t})(kT,kT.exports);var h2=kT.exports;(function(e,t){var r=h2;Object.keys?t=Object.keys:t=function(n){var a=[];for(var i in n)r(n,i)&&a.push(i);return a},e.exports=t})(NT,NT.exports);var nf=NT.exports,zT={exports:{}},BT={exports:{}};(function(e,t){t=function(r){return r===void 0},e.exports=t})(BT,BT.exports);var SS=BT.exports;(function(e,t){var r=SS;t=function(n,a,i){if(r(a))return n;switch(i??3){case 1:return function(o){return n.call(a,o)};case 3:return function(o,s,l){return n.call(a,o,s,l)};case 4:return function(o,s,l,u){return n.call(a,o,s,l,u)}}return function(){return n.apply(a,arguments)}},e.exports=t})(zT,zT.exports);var HG=zT.exports;(function(e,t){var r=_S,n=nf,a=HG;t=function(i,o,s){o=a(o,s);var l,u;if(r(i))for(l=0,u=i.length;l<u;l++)o(i[l],l,i);else{var f=n(i);for(l=0,u=f.length;l<u;l++)o(i[f[l]],f[l],i)}return i},e.exports=t})(ET,ET.exports);var $p=ET.exports,VT={exports:{}};(function(e,t){var r=rf;t=function(n){return r(n)==="[object String]"},e.exports=t})(VT,VT.exports);var bS=VT.exports,GT={exports:{}};(function(e,t){var r=rf;Array.isArray?t=Array.isArray:t=function(n){return r(n)==="[object Array]"},e.exports=t})(GT,GT.exports);var af=GT.exports,HT={exports:{}};(function(e,t){t=function(r){var n=typeof r;return!!r&&(n==="function"||n==="object")},e.exports=t})(HT,HT.exports);var of=HT.exports;(function(e,t){var r=$p,n=bS,a=c2,i=af,o=of;t=function(){var s=[];return r(arguments,function(l){if(l){if(n(l)||a(l))return s.push(l);if(i(l))return s.push(t.apply(null,l));o(l)&&r(l,function(u,f){u&&s.push(f)})}}),s.join(" ")},e.exports=t})(LT,LT.exports);var zK=LT.exports;const Vr=Ch(zK);var UT={exports:{}},FT={exports:{}};(function(e,t){Date.now?t=Date.now:t=function(){return new Date().getTime()},e.exports=t})(FT,FT.exports);var BK=FT.exports;(function(e,t){var r=BK;t=function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:250;function o(){return new Promise(function(s,l){try{s(n())}catch(u){l(u)}})}return new Promise(function(s,l){var u=r(),f=function(){o().then(function(c){var h=r()-u;c?s(c):a&&h>=a?l(Error("Wait timed out after ".concat(a," ms"))):setTimeout(f,i)},l)};f()})},e.exports=t})(UT,UT.exports);var VK=UT.exports;const GK=Ch(VK);var YT={exports:{}},jT={exports:{}},WT={exports:{}},XT={exports:{}},ZT={exports:{}},$T={exports:{}};(function(e,t){var r=SS,n=$p;t=function(a,i){return function(o){return n(arguments,function(s,l){if(l!==0){var u=a(s);n(u,function(f){(!i||r(o[f]))&&(o[f]=s[f])})}}),o}},e.exports=t})($T,$T.exports);var v2=$T.exports,qT={exports:{}},KT={exports:{}};(function(e,t){var r=of,n=Lh,a=Object.getPrototypeOf,i={}.constructor;t=function(o){if(r(o)){if(a)return a(o);var s=o.__proto__;if(s||s===null)return s;if(n(o.constructor))return o.constructor.prototype;if(o instanceof i)return i.prototype}},e.exports=t})(KT,KT.exports);var HK=KT.exports,QT={exports:{}},JT={exports:{}},tC={exports:{}},eC={exports:{}},rC={exports:{}};(function(e,t){var r=nf,n=v2;t=n(r),e.exports=t})(rC,rC.exports);var UK=rC.exports,nC={exports:{}};(function(e,t){var r=nf;t=function(n,a){var i=r(a),o=i.length;if(n==null)return!o;n=Object(n);for(var s=0;s<o;s++){var l=i[s];if(a[l]!==n[l]||!(l in n))return!1}return!0},e.exports=t})(nC,nC.exports);var FK=nC.exports;(function(e,t){var r=UK,n=FK;t=function(a){return a=r({},a),function(i){return n(i,a)}},e.exports=t})(eC,eC.exports);var YK=eC.exports,aC={exports:{}};(function(e,t){t=function(r){return r},e.exports=t})(aC,aC.exports);var jK=aC.exports,iC={exports:{}},oC={exports:{}},sC={exports:{}};(function(e,t){var r=h2,n=af;t=function(o,s){if(n(o))return o;if(s&&r(s,o))return[o];var l=[];return o.replace(a,function(u,f,c,h){l.push(c?h.replace(i,"$1"):f||u)}),l};var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=t})(sC,sC.exports);var WK=sC.exports;(function(e,t){var r=SS,n=WK;t=function(a,i){i=n(i,a);var o;for(o=i.shift();!r(o);){if(a=a[o],a==null)return;o=i.shift()}return a},e.exports=t})(oC,oC.exports);var UG=oC.exports;(function(e,t){var r=af,n=UG;t=function(i){return r(i)?function(o){return n(o,i)}:a(i)};function a(i){return function(o){return o==null?void 0:o[i]}}e.exports=t})(iC,iC.exports);var XK=iC.exports;(function(e,t){var r=Lh,n=of,a=af,i=HG,o=YK,s=jK,l=XK;t=function(u,f,c){return u==null?s:r(u)?i(u,f,c):n(u)&&!a(u)?o(u):l(u)},e.exports=t})(tC,tC.exports);var FG=tC.exports;(function(e,t){var r=FG,n=$p;t=function(a,i,o){var s=[];return i=r(i,o),n(a,function(l,u,f){i(l,u,f)&&s.push(l)}),s},e.exports=t})(JT,JT.exports);var ZK=JT.exports;(function(e,t){var r=ZK;t=function(a,i){return i=i||n,r(a,function(o,s,l){for(var u=l.length;++s<u;)if(i(o,l[s]))return!1;return!0})};function n(a,i){return a===i}e.exports=t})(QT,QT.exports);var $K=QT.exports;(function(e,t){var r=nf,n=HK,a=$K,i=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;t=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=l.prototype,f=u===void 0?!0:u,c=l.unenumerable,h=c===void 0?!1:c,v=l.symbol,d=v===void 0?!1:v,p=[];if((h||d)&&i){var g=r;h&&i&&(g=i);do p=p.concat(g(s)),d&&o&&(p=p.concat(o(s)));while(f&&(s=n(s))&&s!==Object.prototype);p=a(p)}else if(f)for(var y in s)p.push(y);else p=r(s);return p},e.exports=t})(qT,qT.exports);var YG=qT.exports;(function(e,t){var r=v2,n=YG;t=r(n),e.exports=t})(ZT,ZT.exports);var jG=ZT.exports,lC={exports:{}},uC={exports:{}};(function(e,t){var r=FG,n=nf,a=_S;t=function(i,o,s){o=r(o,s);for(var l=!a(i)&&n(i),u=(l||i).length,f=Array(u),c=0;c<u;c++){var h=l?l[c]:c;f[c]=o(i[h],h,i)}return f},e.exports=t})(uC,uC.exports);var qK=uC.exports;(function(e,t){var r=_S,n=qK,a=af,i=bS;t=function(o){return o?a(o)?o:r(o)&&!i(o)?n(o):[o]:[]},e.exports=t})(lC,lC.exports);var d2=lC.exports,fC={exports:{}},cC={exports:{}};(function(e,t){var r=of;t=function(a){if(!r(a))return{};if(n)return n(a);function i(){}return i.prototype=a,new i};var n=Object.create;e.exports=t})(cC,cC.exports);var KK=cC.exports;(function(e,t){var r=KK;t=function(n,a){n.prototype=r(a.prototype)},e.exports=t})(fC,fC.exports);var QK=fC.exports,hC={exports:{}};(function(e,t){var r=Lh;t=typeof wx<"u"&&r(wx.openLocation),e.exports=t})(hC,hC.exports);var JK=hC.exports;(function(e,t){var r=jG,n=d2,a=QK,i=UG,o=JK;t=function(u,f){return l.extend(u,f)};function s(u,f,c){c=c||{};var h=f.className||i(f,"initialize.name")||"";delete f.className;var v=function(){var d=n(arguments);return this.initialize?this.initialize.apply(this,d)||this:this};if(!o)try{v=new Function("toArr","return function "+h+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(n)}catch{}return a(v,u),v.prototype.constructor=v,v.extend=function(d,p){return s(v,d,p)},v.inherits=function(d){a(v,d)},v.methods=function(d){return r(v.prototype,d),v},v.statics=function(d){return r(v,d),v},v.methods(f).statics(c),v}var l=t.Base=s(Object,{className:"Base",callSuper:function(u,f,c){var h=u.prototype[f];return h.apply(this,c)},toString:function(){return this.constructor.name}});e.exports=t})(XT,XT.exports);var tQ=XT.exports,vC={exports:{}};(function(e,t){t=function(r,n,a){var i=r.length;n==null?n=0:n<0?n=Math.max(i+n,0):n=Math.min(n,i),a==null?a=i:a<0?a=Math.max(i+a,0):a=Math.min(a,i);for(var o=[];n<a;)o.push(r[n++]);return o},e.exports=t})(vC,vC.exports);var eQ=vC.exports,dC={exports:{}},pC={exports:{}},gC={exports:{}};(function(e,t){t=function(r,n){return n=n==null?r.length-1:+n,function(){var a=Math.max(arguments.length-n,0),i=new Array(a),o;for(o=0;o<a;o++)i[o]=arguments[o+n];switch(n){case 0:return r.call(this,i);case 1:return r.call(this,arguments[0],i);case 2:return r.call(this,arguments[0],arguments[1],i)}var s=new Array(n+1);for(o=0;o<n;o++)s[o]=arguments[o];return s[n]=i,r.apply(this,s)}},e.exports=t})(gC,gC.exports);var rQ=gC.exports;(function(e,t){var r=rQ,n=d2;t=r(function(a,i){return function(){var o=[];return o=o.concat(i),o=o.concat(n(arguments)),a.apply(this,o)}}),e.exports=t})(pC,pC.exports);var nQ=pC.exports,yC={exports:{}};(function(e,t){t=function(r,n){var a;return function(){return--r>0&&(a=n.apply(this,arguments)),r<=1&&(n=null),a}},e.exports=t})(yC,yC.exports);var aQ=yC.exports;(function(e,t){var r=nQ,n=aQ;t=r(n,2),e.exports=t})(dC,dC.exports);var iQ=dC.exports,mC={exports:{}};(function(e,t){var r=of,n=af,a=jG;t=function(i){return r(i)?n(i)?i.slice():a({},i):i},e.exports=t})(mC,mC.exports);var oQ=mC.exports;(function(e,t){var r=tQ,n=h2,a=$p,i=eQ,o=iQ,s=oQ;t=r({initialize:function(){this._events=this._events||{}},on:function(l,u){return this._events[l]=this._events[l]||[],this._events[l].push(u),this},off:function(l,u){var f=this._events;if(n(f,l)){var c=f[l].indexOf(u);return c>-1&&f[l].splice(c,1),this}},once:function(l,u){return this.on(l,o(u)),this},emit:function(l){var u=this;if(n(this._events,l)){var f=i(arguments,1),c=s(this._events[l]);return a(c,function(h){return h.apply(u,f)},this),this}},removeAllListeners:function(l){return l?delete this._events[l]:this._events={},this}},{mixin:function(l){a(["on","off","once","emit","removeAllListeners"],function(u){l[u]=t.prototype[u]}),l._events=l._events||{}}}),e.exports=t})(WT,WT.exports);var sQ=WT.exports;(function(e,t){var r=sQ,n=bS,a=of,i=$p,o=d2;t=r.extend({initialize:function(l){this.callSuper(r,"initialize",arguments),this._data=l||{},this.save(this._data)},set:function(s,l){var u;n(s)?(u={},u[s]=l):a(s)&&(u=s);var f=this;i(u,function(c,h){var v=f._data[h];f._data[h]=c,f.emit("change",h,c,v)}),this.save(this._data)},get:function(s){var l=this._data;if(n(s))return l[s];var u={};return i(s,function(f){u[f]=l[f]}),u},remove:function(s){s=o(s);var l=this._data;i(s,function(u){delete l[u]}),this.save(l)},clear:function(){this._data={},this.save(this._data)},each:function(s){i(this._data,s)},save:function(s){this._data=s}}),e.exports=t})(jT,jT.exports);var lQ=jT.exports,_C={exports:{}},SC={exports:{}};(function(e,t){var r=nf;t={getItem:function(l){return(a[l]?n[l]:this[l])||null},setItem:function(l,u){a[l]?n[l]=u:this[l]=u},removeItem:function(l){a[l]?delete n[l]:delete this[l]},key:function(l){var u=i();return l>=0&&l<u.length?u[l]:null},clear:function(){for(var l=o(),u=0,f;f=l[u];u++)delete this[f];l=s();for(var c=0,h;h=l[c];c++)delete n[h]}},Object.defineProperty(t,"length",{enumerable:!1,configurable:!0,get:function(){return i().length}});var n={},a={getItem:1,setItem:1,removeItem:1,key:1,clear:1,length:1};function i(){return o().concat(s())}function o(){return r(t).filter(function(l){return!a[l]})}function s(){return r(n)}e.exports=t})(SC,SC.exports);var uQ=SC.exports;(function(e,t){var r=uQ;t=function(n){n=n||"local";var a;switch(n){case"local":a=window.localStorage;break;case"session":a=window.sessionStorage;break}try{var i="test-localStorage-"+Date.now();a.setItem(i,i);var o=a.getItem(i);if(a.removeItem(i),o!==i)throw new Error}catch{return r}return a},e.exports=t})(_C,_C.exports);var fQ=_C.exports,bC={exports:{}},xC={exports:{}};(function(e,t){var r=rf;t=function(n){return r(n)==="[object Arguments]"},e.exports=t})(xC,xC.exports);var cQ=xC.exports;(function(e,t){var r=_S,n=af,a=bS,i=cQ,o=nf;t=function(s){return s==null?!0:r(s)&&(n(s)||a(s)||i(s))?s.length===0:o(s).length===0},e.exports=t})(bC,bC.exports);var hQ=bC.exports,wC={exports:{}},TC={exports:{}},CC={exports:{}};(function(e,t){var r=c2;t=function(n){return r(n)&&n!==+n},e.exports=t})(CC,CC.exports);var vQ=CC.exports,AC={exports:{}},MC={exports:{}};(function(e,t){t=function(r){return r==null?"":r.toString()},e.exports=t})(MC,MC.exports);var WG=MC.exports;(function(e,t){var r=WG;t=function(n){return r(n).toLocaleLowerCase()},e.exports=t})(AC,AC.exports);var dQ=AC.exports,DC={exports:{}};(function(e,t){var r=Lh;t=function(n){return n==null?!1:n._isBuffer?!0:n.constructor&&r(n.constructor.isBuffer)&&n.constructor.isBuffer(n)},e.exports=t})(DC,DC.exports);var pQ=DC.exports;(function(e,t){var r=rf,n=vQ,a=dQ,i=pQ;t=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u;return s===null&&(u="Null"),s===void 0&&(u="Undefined"),n(s)&&(u="NaN"),i(s)&&(u="Buffer"),u||(u=r(s).match(o),u&&(u=u[1])),u?l?a(u):u:""};var o=/^\[object\s+(.*?)]$/;e.exports=t})(TC,TC.exports);var gQ=TC.exports,LC={exports:{}};(function(e,t){t=function(r){return r.length<1?r:r[0].toUpperCase()+r.slice(1)},e.exports=t})(LC,LC.exports);var yQ=LC.exports,EC={exports:{}};(function(e,t){var r=rf;t=function(n){return r(n)==="[object RegExp]"},e.exports=t})(EC,EC.exports);var mQ=EC.exports;(function(e,t){var r=gQ,n=yQ,a=WG,i=SS,o=Lh,s=mQ;t=function(u,f){return JSON.stringify(u,l(),f)};function l(){var u=[],f=[];return function(c,h){if(u.length>0){var v=u.indexOf(this);v>-1?(u.splice(v+1),f.splice(v,1/0,c)):(u.push(this),f.push(c));var d=u.indexOf(h);d>-1&&(u[0]===h?h="[Circular ~]":h="[Circular ~."+f.slice(0,d).join(".")+"]")}else u.push(h);return s(h)||o(h)?h="["+n(r(h))+" "+a(h)+"]":i(h)&&(h=null),h}}e.exports=t})(wC,wC.exports);var _Q=wC.exports,OC={exports:{}};(function(e,t){var r=v2,n=YG;t=r(n,!0),e.exports=t})(OC,OC.exports);var SQ=OC.exports;(function(e,t){var r=lQ,n=fQ,a=hQ,i=_Q,o=SQ,s=of,l=n("local");t=r.extend({initialize:function(f,c){this._name=f,c=c||{};var h=l.getItem(f);try{h=JSON.parse(h)}catch{h={}}s(h)||(h={}),c=o(h,c),this.callSuper(r,"initialize",[c])},save:function(u){if(a(u))return l.removeItem(this._name);l.setItem(this._name,i(u))}}),e.exports=t})(YT,YT.exports);var bQ=YT.exports;const xQ=Ch(bQ),WR=new xQ("tinker-token-usage"),XR="dataSource";class wQ{constructor(){Zo(this,"isDark",!1);Zo(this,"dataSource","claude-code");Zo(this,"usageData",{total:{inputTokens:0,outputTokens:0,cacheCreationTokens:0,cacheReadTokens:0,totalTokens:0,sessionCount:0},byDay:[]});Zo(this,"loading",!1);Zo(this,"error",null);Zo(this,"dateRange",(()=>{const t=new Date().toISOString().split("T")[0];return{start:t,end:t}})());Zo(this,"seriesVisibility",{inputTokens:!0,outputTokens:!0,totalTokens:!1,sessionCount:!0});K$(this),this.loadFromStorage(),this.init()}loadFromStorage(){const t=WR.get(XR);(t==="claude-code"||t==="codex")&&(this.dataSource=t)}async init(){await GK(()=>typeof tokenUsage<"u"),this.initTheme(),this.loadUsageData()}setIsDark(t){this.isDark=t}async initTheme(){try{const t=await tinker.getTheme();this.isDark=t==="dark",tinker.on("changeTheme",async()=>{const r=await tinker.getTheme();this.setIsDark(r==="dark")})}catch(t){console.error("Failed to initialize theme:",t)}}setDataSource(t){this.dataSource=t,WR.set(XR,t)}async switchDataSource(t){this.setDataSource(t),await this.loadUsageData()}setUsageData(t){this.usageData=t}setLoading(t){this.loading=t}setError(t){this.error=t}setDateRange(t,r){this.dateRange={start:t,end:r}}toggleSeriesVisibility(t){Object.values(this.seriesVisibility).filter(n=>n).length===1&&this.seriesVisibility[t]||(this.seriesVisibility[t]=!this.seriesVisibility[t])}get filteredStats(){var a;if(!this.usageData||!this.dateRange)return((a=this.usageData)==null?void 0:a.total)||null;const{start:t,end:r}=this.dateRange,n=this.usageData.byDay.filter(i=>i.date>=t&&i.date<=r);return n.length===0?this.usageData.total:{inputTokens:n.reduce((i,o)=>i+o.inputTokens,0),outputTokens:n.reduce((i,o)=>i+o.outputTokens,0),cacheCreationTokens:n.reduce((i,o)=>i+o.cacheCreationTokens,0),cacheReadTokens:n.reduce((i,o)=>i+o.cacheReadTokens,0),totalTokens:n.reduce((i,o)=>i+o.totalTokens,0),sessionCount:n.reduce((i,o)=>i+o.sessionCount,0)}}async loadUsageData(){this.setLoading(!0),this.setError(null);try{const t=await tokenUsage.getUsage(this.dataSource);if(this.setUsageData(t),t.byDay&&t.byDay.length>0){const r=t.byDay[0].date,n=t.byDay[t.byDay.length-1].date;this.setDateRange(r,n)}}catch(t){console.error("Failed to load token usage data:",t),this.setError(t instanceof Error?t.message:"Unknown error occurred");const r=new Date().toISOString().split("T")[0];this.setUsageData({total:{inputTokens:0,outputTokens:0,cacheCreationTokens:0,cacheReadTokens:0,totalTokens:0,sessionCount:0},byDay:[]}),this.setDateRange(r,r)}finally{this.setLoading(!1)}}async refresh(){await this.loadUsageData()}}const Ie=new wQ,pe={background:{primary:"bg-gradient-to-br from-neutral-50 via-neutral-100 to-neutral-50 dark:from-neutral-950 dark:via-neutral-900 dark:to-neutral-950",card:"bg-white/80 dark:bg-neutral-900/80 backdrop-blur-xl",hover:"hover:bg-neutral-50 dark:hover:bg-neutral-800/50"},text:{primary:"text-neutral-900 dark:text-neutral-100",secondary:"text-neutral-700 dark:text-neutral-300",white:"text-white"},border:{card:"border border-neutral-300 dark:border-neutral-700"},gradient:{blue:"from-blue-500 to-blue-600 dark:from-blue-400 dark:to-blue-500",green:"from-green-500 to-green-600 dark:from-green-400 dark:to-green-500",purple:"from-purple-500 to-purple-600 dark:from-purple-400 dark:to-purple-500",orange:"from-orange-500 to-orange-600 dark:from-orange-400 dark:to-orange-500"},button:{primary:{base:"bg-gradient-to-br from-[#df754f] to-[#d66638] dark:from-[#f08a65] dark:to-[#df754f]",hover:"hover:scale-105 active:scale-95",disabled:"disabled:from-neutral-300 disabled:to-neutral-400 dark:disabled:from-neutral-700 dark:disabled:to-neutral-800 disabled:shadow-none disabled:cursor-not-allowed disabled:scale-100",transition:"transition-all duration-200"}},select:{trigger:{focus:"focus:outline-none focus:ring-2 focus:ring-[#df754f] dark:focus:ring-[#f08a65]"},item:{highlighted:"data-[highlighted]:bg-[#df754f] dark:data-[highlighted]:bg-[#f08a65] data-[highlighted]:text-white"}},error:{background:"bg-gradient-to-br from-red-50 to-red-100/50 dark:from-red-950/30 dark:to-red-900/20",border:"border border-red-200 dark:border-red-800/50",icon:{background:"bg-red-100 dark:bg-red-900/30",border:"border border-red-200 dark:border-red-800",text:"text-red-600 dark:text-red-400"},text:{title:"text-red-900 dark:text-red-300",content:"text-red-800 dark:text-red-400"}}},au=e=>e.toLocaleString(),TQ=(e,t)=>{try{return new Date(e).toLocaleDateString(t,{month:"short",day:"numeric"})}catch{return e}},Ng=({label:e,value:t,color:r="blue",isActive:n=!0,onClick:a})=>{const i={blue:pe.gradient.blue,green:pe.gradient.green,purple:pe.gradient.purple,orange:pe.gradient.orange};return W.jsxs("div",{onClick:a,className:Vr(pe.background.card,"rounded-lg p-2",pe.border.card,a&&"cursor-pointer transition-all duration-200",a&&pe.background.hover),children:[W.jsx("div",{className:"text-[10px] font-medium text-neutral-500 dark:text-neutral-400 tracking-wider mb-1",children:e}),W.jsx("div",{className:Vr("text-xl font-bold",n?"bg-gradient-to-br bg-clip-text text-transparent":"text-neutral-500 dark:text-neutral-400",n&&i[r]),children:t})]})},CQ=Zp(()=>{const{error:e}=Ie;return e?W.jsx("div",{className:Vr("mb-4 p-4 rounded-lg",pe.error.background,pe.error.border),children:W.jsxs("div",{className:"flex items-start gap-4",children:[W.jsx("div",{className:Vr("flex-shrink-0 w-10 h-10 flex items-center justify-center rounded-full",pe.error.icon.background,pe.error.icon.border),children:W.jsx("svg",{className:Vr("w-5 h-5",pe.error.icon.text),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),W.jsxs("div",{className:"flex-1",children:[W.jsx("h3",{className:Vr("font-bold mb-2",pe.error.text.title),children:"Error loading data"}),W.jsx("p",{className:Vr("text-sm font-mono",pe.error.text.content),children:e})]})]})}):null});/**
36
+ * @license lucide-react v0.564.0 - ISC
37
+ *
38
+ * This source code is licensed under the ISC license.
39
+ * See the LICENSE file in the root directory of this source tree.
40
+ */const XG=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
41
+ * @license lucide-react v0.564.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const AQ=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
46
+ * @license lucide-react v0.564.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */const MQ=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
51
+ * @license lucide-react v0.564.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const ZR=e=>{const t=MQ(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
56
+ * @license lucide-react v0.564.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */var DQ={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
61
+ * @license lucide-react v0.564.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const LQ=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
66
+ * @license lucide-react v0.564.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const EQ=z.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:o,...s},l)=>z.createElement("svg",{ref:l,...DQ,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:XG("lucide",a),...!i&&!LQ(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,f])=>z.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
71
+ * @license lucide-react v0.564.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const p2=(e,t)=>{const r=z.forwardRef(({className:n,...a},i)=>z.createElement(EQ,{ref:i,iconNode:t,className:XG(`lucide-${AQ(ZR(e))}`,`lucide-${e}`,n),...a}));return r.displayName=ZR(e),r};/**
76
+ * @license lucide-react v0.564.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const OQ=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$R=p2("check",OQ);/**
81
+ * @license lucide-react v0.564.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const RQ=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],IQ=p2("chevron-down",RQ);/**
86
+ * @license lucide-react v0.564.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const PQ=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],NQ=p2("refresh-cw",PQ),kQ=Zp(()=>{const{loading:e}=Ie;return W.jsx("button",{onClick:()=>Ie.refresh(),disabled:e,className:Vr("p-1 rounded-md",pe.button.primary.base,pe.text.white,pe.button.primary.hover,pe.button.primary.disabled,pe.button.primary.transition),children:W.jsx(NQ,{className:Vr("w-4 h-4",e&&"animate-spin")})})});var RC=function(e,t){return RC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},RC(e,t)};function ZG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");RC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var wn=function(){return wn=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},wn.apply(this,arguments)};function g2(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function qR(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(f){try{u(n.next(f))}catch(c){o(c)}}function l(f){try{u(n.throw(f))}catch(c){o(c)}}function u(f){f.done?i(f.value):a(f.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function KR(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(f){return l([u,f])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(f){u=[6,f],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function zQ(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}/*! *****************************************************************************
91
+ Copyright (c) Microsoft Corporation.
92
+
93
+ Permission to use, copy, modify, and/or distribute this software for any
94
+ purpose with or without fee is hereby granted.
95
+
96
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
97
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
98
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
99
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
100
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
101
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
102
+ PERFORMANCE OF THIS SOFTWARE.
103
+ ***************************************************************************** */var IC=function(e,t){return IC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},IC(e,t)};function G(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");IC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var BQ=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),VQ=function(){function e(){this.browser=new BQ,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),It=new VQ;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(It.wxa=!0,It.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?It.worker=!0:!It.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(It.node=!0,It.svgSupported=!0):GQ(navigator.userAgent,It);function GQ(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var y2=12,$G="sans-serif",Lo=y2+"px "+$G,HQ=20,UQ=100,FQ="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function YQ(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-HQ)/UQ;t[n]=a}return t}var jQ=YQ(FQ),cn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=cn.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Lo),e.measureText(r);r=r||"",n=n||Lo;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||y2,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=jQ[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function qG(e){for(var t in cn)e[t]&&(cn[t]=e[t])}var KG=pa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),QG=pa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Eh=Object.prototype.toString,xS=Array.prototype,WQ=xS.forEach,XQ=xS.filter,m2=xS.slice,ZQ=xS.map,QR=(function(){}).constructor,kg=QR?QR.prototype:null,_2="__proto__",$Q=2311;function S2(){return $Q++}function wS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ct(e){if(e==null||typeof e!="object")return e;var t=e,r=Eh.call(e);if(r==="[object Array]"){if(!Oc(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=ct(e[n])}}else if(QG[r]){if(!Oc(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!KG[r]&&!Oc(e)&&!Ou(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==_2&&(t[o]=ct(e[o]))}return t}function xt(e,t,r){if(!dt(t)||!dt(e))return r?ct(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==_2){var a=e[n],i=t[n];dt(i)&&dt(a)&&!Y(i)&&!Y(a)&&!Ou(i)&&!Ou(a)&&!PC(i)&&!PC(a)&&!Oc(i)&&!Oc(a)?xt(a,i,r):(r||!(n in e))&&(e[n]=ct(t[n]))}return e}function TS(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=xt(r,e[n],t);return r}function F(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==_2&&(e[r]=t[r]);return e}function vt(e,t,r){for(var n=Nt(t),a=0,i=n.length;a<i;a++){var o=n[a];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var qQ=cn.createCanvas;function bt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function b2(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Ee(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else vt(e,t,r)}function Er(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function D(e,t,r){if(e&&t)if(e.forEach&&e.forEach===WQ)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function j(e,t,r){if(!e)return[];if(!t)return CS(e);if(e.map&&e.map===ZQ)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function pa(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function Ft(e,t,r){if(!e)return[];if(!t)return CS(e);if(e.filter&&e.filter===XQ)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function ol(e,t,r){if(e&&t){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function Nt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function KQ(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(m2.call(arguments)))}}var J=kg&&ft(kg.bind)?kg.call.bind(kg.bind):KQ;function St(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(m2.call(arguments)))}}function Y(e){return Array.isArray?Array.isArray(e):Eh.call(e)==="[object Array]"}function ft(e){return typeof e=="function"}function Q(e){return typeof e=="string"}function g0(e){return Eh.call(e)==="[object String]"}function Bt(e){return typeof e=="number"}function dt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function PC(e){return!!KG[Eh.call(e)]}function Kr(e){return!!QG[Eh.call(e)]}function Ou(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function qp(e){return e.colorStops!=null}function JG(e){return e.image!=null}function tH(e){return Eh.call(e)==="[object RegExp]"}function Dr(e){return e!==e}function yr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function ot(e,t){return e??t}function un(e,t,r){return e??t??r}function CS(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return m2.apply(e,t)}function Kp(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Or(e,t){if(!e)throw new Error(t)}function Mn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var eH="__ec_primitive__";function $d(e){e[eH]=!0}function Oc(e){return e[eH]}var QQ=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return Nt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),rH=typeof Map=="function";function JQ(){return rH?new Map:new QQ}var nH=function(){function e(t){var r=Y(t);this.data=JQ();var n=this;t instanceof e?t.each(a):t&&D(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return rH?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function it(e){return new nH(e)}function qc(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function Qp(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&F(r,t),r}function x2(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function nt(e,t){return e.hasOwnProperty(t)}function De(){}var yd=180/Math.PI,tJ=Number.EPSILON||Math.pow(2,-52);const eJ=Object.freeze(Object.defineProperty({__proto__:null,EPSILON:tJ,HashMap:nH,RADIAN_TO_DEGREE:yd,assert:Or,bind:J,clone:ct,concatArray:qc,createCanvas:qQ,createHashMap:it,createObject:Qp,curry:St,defaults:vt,disableUserSelect:x2,each:D,eqNaN:Dr,extend:F,filter:Ft,find:ol,guid:S2,hasOwn:nt,indexOf:bt,inherits:b2,isArray:Y,isArrayLike:Er,isBuiltInObject:PC,isDom:Ou,isFunction:ft,isGradientObject:qp,isImagePatternObject:JG,isNumber:Bt,isObject:dt,isPrimitive:Oc,isRegExp:tH,isString:Q,isStringSafe:g0,isTypedArray:Kr,keys:Nt,logError:wS,map:j,merge:xt,mergeAll:TS,mixin:Ee,noop:De,normalizeCssArray:Kp,reduce:pa,retrieve:yr,retrieve2:ot,retrieve3:un,setAsPrimitive:$d,slice:CS,trim:Mn},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
104
+ Copyright (c) Microsoft Corporation.
105
+
106
+ Permission to use, copy, modify, and/or distribute this software for any
107
+ purpose with or without fee is hereby granted.
108
+
109
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
110
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
111
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
112
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
113
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
114
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
115
+ PERFORMANCE OF THIS SOFTWARE.
116
+ ***************************************************************************** */var NC=function(e,t){return NC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},NC(e,t)};function ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");NC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function sl(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function kr(e,t){return e[0]=t[0],e[1]=t[1],e}function Ci(e){return[e[0],e[1]]}function AS(e,t,r){return e[0]=t,e[1]=r,e}function kC(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function y0(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function gs(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function qd(e){return Math.sqrt(w2(e))}var rJ=qd;function w2(e){return e[0]*e[0]+e[1]*e[1]}var nJ=w2;function aJ(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function iJ(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function oJ(e,t){return e[0]*t[0]+e[1]*t[1]}function md(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function sf(e,t){var r=qd(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function m0(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var so=m0;function aH(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ds=aH;function sJ(e,t){return e[0]=-t[0],e[1]=-t[1],e}function _d(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Le(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function lo(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function uo(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const lJ=Object.freeze(Object.defineProperty({__proto__:null,add:kC,applyTransform:Le,clone:Ci,copy:kr,create:sl,dist:so,distSquare:Ds,distance:m0,distanceSquare:aH,div:iJ,dot:oJ,len:qd,lenSquare:w2,length:rJ,lengthSquare:nJ,lerp:_d,max:uo,min:lo,mul:aJ,negate:sJ,normalize:sf,scale:md,scaleAndAdd:y0,set:AS,sub:gs},Symbol.toStringTag,{value:"Module"}));var Tf=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),uJ=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Tf(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new Tf(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Tf(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Tf(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Tf(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Tf(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Sa=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}(),fJ=Math.log(2);function zC(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/fJ);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,v=0;h<s;h++){var d=1<<h;d&a||(c+=(v%2?-1:1)*e[r][h]*zC(e,t-1,f,u,a|d,i),v++)}return i[o]=c,c}function JR(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=zC(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*zC(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var _0="___zrEVENTSAVED",X1=[];function cJ(e,t,r,n,a){return BC(X1,t,n,a,!0)&&BC(e,r,X1[0],X1[1])}function hJ(e,t){e&&r(e),t&&r(t);function r(n){var a=n[_0];a&&(a.clearMarkers&&a.clearMarkers(),delete n[_0])}}function BC(e,t,r,n,a){if(t.getBoundingClientRect&&It.domSupported&&!iH(t)){var i=t[_0]||(t[_0]={}),o=vJ(t,i),s=dJ(o,i,a);if(s)return s(e,r,n),!0}return!1}function vJ(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){D(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function dJ(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),c=2*u,h=f.left,v=f.top;o.push(h,v),l=l&&i&&h===i[c]&&v===i[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?JR(s,o):JR(o,s))}function iH(e){return e.nodeName.toUpperCase()==="CANVAS"}var pJ=/([&<>"'])/g,gJ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Br(e){return e==null?"":(e+"").replace(pJ,function(t,r){return gJ[r]})}var yJ=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z1=[],mJ=It.browser.firefox&&+It.browser.version.split(".")[0]<39;function VC(e,t,r,n){return r=r||{},n?tI(e,t,r):mJ&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):tI(e,t,r),r}function tI(e,t,r){if(It.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(iH(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(BC(Z1,e,n,a)){r.zrX=Z1[0],r.zrY=Z1[1];return}}r.zrX=r.zrY=0}function T2(e){return e||window.event}function Xn(e,t,r){if(t=T2(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&VC(e,o,t,r)}else{VC(e,t,t,r);var i=_J(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&yJ.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function _J(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function GC(e,t,r,n){e.addEventListener(t,r,n)}function SJ(e,t,r,n){e.removeEventListener(t,r,n)}var Eo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function eI(e){return e.which===2||e.which===3}var bJ=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=VC(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in $1)if($1.hasOwnProperty(r)){var n=$1[r](this._track,t);if(n)return n}},e}();function rI(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function xJ(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var $1={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=rI(n)/rI(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=xJ(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function sr(){return[1,0,0,1,0,0]}function Jp(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function tg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ka(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Ua(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Yo(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(r),c=Math.cos(r);return e[0]=a*c+s*f,e[1]=-a*f+s*c,e[2]=i*c+l*f,e[3]=-i*f+c*l,e[4]=c*(o-n[0])+f*(u-n[1])+n[0],e[5]=c*(u-n[1])-f*(o-n[0])+n[1],e}function MS(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function ga(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function oH(e){var t=sr();return tg(t,e),t}const wJ=Object.freeze(Object.defineProperty({__proto__:null,clone:oH,copy:tg,create:sr,identity:Jp,invert:ga,mul:ka,rotate:Yo,scale:MS,translate:Ua},Symbol.toStringTag,{value:"Module"}));var gt=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}(),iu=Math.min,hc=Math.max,HC=Math.abs,nI=["x","y"],TJ=["width","height"],yl=new gt,ml=new gt,_l=new gt,Sl=new gt,mn=sH(),Xv=mn.minTv,UC=mn.maxTv,Sd=[0,0],yt=function(){function e(t,r,n,a){e.set(this,t,r,n,a)}return e.set=function(t,r,n,a,i){return a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),t.x=r,t.y=n,t.width=a,t.height=i,t},e.prototype.union=function(t){var r=iu(t.x,this.x),n=iu(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hc(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=hc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=sr();return Ua(i,i,[-r.x,-r.y]),MS(i,i,[n,a]),Ua(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,a){n&&gt.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(CJ,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(AJ,r.x,r.y,r.width,r.height));var s=!!n;mn.reset(a,s);var l=mn.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,h=t.y+t.height-l,v=r.x+l,d=r.x+r.width-l,p=r.y+l,g=r.y+r.height-l;if(u>f||c>h||v>d||p>g)return!1;var y=!(f<v||d<u||h<p||g<c);return(s||i)&&(Sd[0]=1/0,Sd[1]=0,aI(u,f,v,d,0,s,i,o),aI(c,h,p,g,1,s,i,o),s&&gt.copy(n,y?mn.useDir?mn.dirMinTv:Xv:UC)),y},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}yl.x=_l.x=r.x,yl.y=Sl.y=r.y,ml.x=Sl.x=r.x+r.width,ml.y=_l.y=r.y+r.height,yl.transform(n),Sl.transform(n),ml.transform(n),_l.transform(n),t.x=iu(yl.x,ml.x,_l.x,Sl.x),t.y=iu(yl.y,ml.y,_l.y,Sl.y);var l=hc(yl.x,ml.x,_l.x,Sl.x),u=hc(yl.y,ml.y,_l.y,Sl.y);t.width=l-t.x,t.height=u-t.y},e}(),CJ=new yt(0,0,0,0),AJ=new yt(0,0,0,0);function aI(e,t,r,n,a,i,o,s){var l=HC(t-r),u=HC(n-e),f=iu(l,u),c=nI[a],h=nI[1-a],v=TJ[a];t<r||n<e?l<u?(i&&(UC[c]=-l),s&&(o[c]=t,o[v]=0)):(i&&(UC[c]=u),s&&(o[c]=e,o[v]=0)):(o&&(o[c]=hc(e,r),o[v]=iu(t,n)-o[c]),i&&(f<Sd[0]||mn.useDir)&&(Sd[0]=iu(f,Sd[0]),(l<u||!mn.bidirectional)&&(Xv[c]=l,Xv[h]=0,mn.useDir&&mn.calcDirMTV()),(l>=u||!mn.bidirectional)&&(Xv[c]=-u,Xv[h]=0,mn.useDir&&mn.calcDirMTV())))}function sH(){var e=0,t=new gt,r=new gt,n={minTv:new gt,maxTv:new gt,useDir:!1,dirMinTv:new gt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=hc(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(e),u=Math.cos(e),f=l*i.y+u*i.x;if(a(f)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,a(r.x)&&a(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function a(i){return HC(i)<1e-10}return n}var lH="silent";function MJ(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:DJ}}function DJ(){Eo(this.event)}var LJ=function(e){ve(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Sa),lv=function(){function e(t,r){this.x=t,this.y=r}return e}(),EJ=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q1=new yt(0,0,0,0),uH=function(e){ve(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new lv(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new LJ,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new uJ(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(EJ,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=fH(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new lv(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new lv(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=MJ(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new lv(r,n);if(iI(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new yt(r-u,n-u,l,l),c=i.length-1;c>=0;c--){var h=i[c];h!==a&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(q1.copy(h.getBoundingRect()),h.transform&&q1.applyTransform(h.transform),q1.intersect(f)&&s.push(h))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<p;y+=d){var m=r+g*Math.cos(y),_=n+g*Math.sin(y);if(iI(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new bJ);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new lv;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Sa);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){uH.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=fH(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||so(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function OJ(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?lH:!0}return!1}function iI(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=OJ(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==lH)){t.target=o;break}}}function fH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var cH=32,uv=7;function RJ(e){for(var t=0;e>=cH;)t|=e&1,e>>=1;return e+t}function oI(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;IJ(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function IJ(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function sI(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function K1(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(e,t[r+f])>0?o=f+1:l=f}return l}function Q1(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(e,t[r+f])<0?l=f:o=f+1}return l}function PJ(e,t){var r=uv,n,a,i=0,o=[];n=[],a=[];function s(v,d){n[i]=v,a[i]=d,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=a[v],g=n[v+1],y=a[v+1];a[v]=p+y,v===i-3&&(n[v+1]=n[v+2],a[v+1]=a[v+2]),i--;var m=Q1(e[g],e,d,p,0,t);d+=m,p-=m,p!==0&&(y=K1(e[d+p-1],e,g,y,y-1,t),y!==0&&(p<=y?c(d,p,g,y):h(d,p,g,y)))}function c(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=e[v+y];var m=0,_=p,S=v;if(e[S++]=e[_++],--g===0){for(y=0;y<d;y++)e[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[m];return}for(var b=r,x,w,T;;){x=0,w=0,T=!1;do if(t(e[_],o[m])<0){if(e[S++]=e[_++],w++,x=0,--g===0){T=!0;break}}else if(e[S++]=o[m++],x++,w=0,--d===1){T=!0;break}while((x|w)<b);if(T)break;do{if(x=Q1(e[_],o,m,d,0,t),x!==0){for(y=0;y<x;y++)e[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){T=!0;break}}if(e[S++]=e[_++],--g===0){T=!0;break}if(w=K1(o[m],e,_,g,0,t),w!==0){for(y=0;y<w;y++)e[S+y]=e[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(e[S++]=o[m++],--d===1){T=!0;break}b--}while(x>=uv||w>=uv);if(T)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[S+y]=o[m+y]}}function h(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=e[p+y];var m=v+d-1,_=g-1,S=p+g-1,b=0,x=0;if(e[S--]=e[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)e[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)e[x+y]=e[b+y];e[S]=o[_];return}for(var w=r;;){var T=0,C=0,A=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],T++,C=0,--d===0){A=!0;break}}else if(e[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<w);if(A)break;do{if(T=d-Q1(o[_],e,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,x=S+1,b=m+1,y=T-1;y>=0;y--)e[x+y]=e[b+y];if(d===0){A=!0;break}}if(e[S--]=o[_--],--g===1){A=!0;break}if(C=g-K1(e[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y<C;y++)e[x+y]=o[b+y];if(g<=1){A=!0;break}}if(e[S--]=e[m--],--d===0){A=!0;break}w--}while(T>=uv||C>=uv);if(A)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)e[x+y]=e[b+y];e[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)e[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _m(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<cH){i=oI(e,r,n,t),sI(e,r,n,r+i,t);return}var o=PJ(e,t),s=RJ(a);do{if(i=oI(e,r,n,t),i<s){var l=a;l>s&&(l=s),sI(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var Tn=1,Zv=2,nc=4,lI=!1;function J1(){lI||(lI=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function uI(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var NJ=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=uI}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,_m(n,uI)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),i=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||a)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=a,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var v=c[h];t.__dirty&&(v.__dirty|=Tn),this._updateAndAddDisplayable(v,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(J1(),d.z=0),isNaN(d.z2)&&(J1(),d.z2=0),isNaN(d.zlevel)&&(J1(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=bt(this._roots,t);a>=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),S0;S0=It.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var bd={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-bd.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?bd.bounceIn(e*2)*.5:bd.bounceOut(e*2-1)*.5+.5}},zg=Math.pow,Ls=Math.sqrt,b0=1e-8,hH=1e-4,fI=Ls(3),Bg=1/3,li=sl(),Qn=sl(),Rc=sl();function ys(e){return e>-b0&&e<b0}function vH(e){return e>b0||e<-b0}function ar(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function cI(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function x0(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,v=0;if(ys(f)&&ys(c))if(ys(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[v++]=d)}else{var p=c*c-4*f*h;if(ys(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y)}else if(p>0){var m=Ls(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-zg(-_,Bg):_=zg(_,Bg),S<0?S=-zg(-S,Bg):S=zg(S,Bg);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[v++]=d)}else{var b=(2*f*s-3*o*c)/(2*Ls(f*f*f)),x=Math.acos(b)/3,w=Ls(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+fI*Math.sin(x)))/(3*o),C=(-s+w*(T-fI*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[v++]=d),y>=0&&y<=1&&(i[v++]=y),C>=0&&C<=1&&(i[v++]=C)}}return v}function dH(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(ys(o)){if(vH(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(ys(f))a[0]=-i/(2*o);else if(f>0){var c=Ls(f),u=(-i+c)/(2*o),h=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function Ws(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function pH(e,t,r,n,a,i,o,s,l,u,f){var c,h=.005,v=1/0,d,p,g,y;li[0]=l,li[1]=u;for(var m=0;m<1;m+=.05)Qn[0]=ar(e,r,a,o,m),Qn[1]=ar(t,n,i,s,m),g=Ds(li,Qn),g<v&&(c=m,v=g);v=1/0;for(var _=0;_<32&&!(h<hH);_++)d=c-h,p=c+h,Qn[0]=ar(e,r,a,o,d),Qn[1]=ar(t,n,i,s,d),g=Ds(Qn,li),d>=0&&g<v?(c=d,v=g):(Rc[0]=ar(e,r,a,o,p),Rc[1]=ar(t,n,i,s,p),y=Ds(Rc,li),p<=1&&y<v?(c=p,v=y):h*=.5);return f&&(f[0]=ar(e,r,a,o,c),f[1]=ar(t,n,i,s,c)),Ls(v)}function kJ(e,t,r,n,a,i,o,s,l){for(var u=e,f=t,c=0,h=1/l,v=1;v<=l;v++){var d=v*h,p=ar(e,r,a,o,d),g=ar(t,n,i,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function dr(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function FC(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function zJ(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(ys(i)){if(vH(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(ys(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=Ls(f),u=(-o+c)/(2*i),h=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),h>=0&&h<=1&&(a[l++]=h)}}return l}function gH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Kd(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function yH(e,t,r,n,a,i,o,s,l){var u,f=.005,c=1/0;li[0]=o,li[1]=s;for(var h=0;h<1;h+=.05){Qn[0]=dr(e,r,a,h),Qn[1]=dr(t,n,i,h);var v=Ds(li,Qn);v<c&&(u=h,c=v)}c=1/0;for(var d=0;d<32&&!(f<hH);d++){var p=u-f,g=u+f;Qn[0]=dr(e,r,a,p),Qn[1]=dr(t,n,i,p);var v=Ds(Qn,li);if(p>=0&&v<c)u=p,c=v;else{Rc[0]=dr(e,r,a,g),Rc[1]=dr(t,n,i,g);var y=Ds(Rc,li);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=dr(e,r,a,u),l[1]=dr(t,n,i,u)),Ls(c)}function BJ(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,v=dr(e,r,a,h),d=dr(t,n,i,h),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var VJ=/cubic-bezier\(([0-9,\.e ]+)\)/;function C2(e){var t=e&&VJ.exec(e);if(t){var r=t[1].split(","),n=+Mn(r[0]),a=+Mn(r[1]),i=+Mn(r[2]),o=+Mn(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:x0(0,n,i,1,l,s)&&ar(0,a,o,1,s[0])}}}var GJ=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||De,this.ondestroy=t.ondestroy||De,this.onrestart=t.onrestart||De,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ft(t)?t:bd[t]||C2(t)},e}(),mH=function(){function e(t){this.value=t}return e}(),HJ=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new mH(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Kc=function(){function e(t){this._list=new HJ,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new mH(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),hI={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 za(e){return e=Math.round(e),e<0?0:e>255?255:e}function UJ(e){return e=Math.round(e),e<0?0:e>360?360:e}function Qd(e){return e<0?0:e>1?1:e}function Sm(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?za(parseFloat(t)/100*255):za(parseInt(t,10))}function mo(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Qd(parseFloat(t)/100):Qd(parseFloat(t))}function tb(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ms(e,t,r){return e+(t-e)*r}function Wn(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function YC(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var _H=new Kc(20),Vg=null;function Cf(e,t){Vg&&YC(Vg,t),Vg=_H.put(e,Vg||t.slice())}function Gr(e,t){if(e){t=t||[];var r=_H.get(e);if(r)return YC(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in hI)return YC(t,hI[n]),Cf(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Wn(t,0,0,0,1);return}return Wn(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Cf(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Wn(t,0,0,0,1);return}return Wn(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Cf(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Wn(t,+u[0],+u[1],+u[2],1):Wn(t,0,0,0,1);f=mo(u.pop());case"rgb":if(u.length>=3)return Wn(t,Sm(u[0]),Sm(u[1]),Sm(u[2]),u.length===3?f:mo(u[3])),Cf(e,t),t;Wn(t,0,0,0,1);return;case"hsla":if(u.length!==4){Wn(t,0,0,0,1);return}return u[3]=mo(u[3]),jC(u,t),Cf(e,t),t;case"hsl":if(u.length!==3){Wn(t,0,0,0,1);return}return jC(u,t),Cf(e,t),t;default:return}}Wn(t,0,0,0,1)}}function jC(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=mo(e[1]),a=mo(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Wn(t,za(tb(o,i,r+1/3)*255),za(tb(o,i,r)*255),za(tb(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function FJ(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,c=((i-r)/6+o/2)/o,h=((i-n)/6+o/2)/o;t===i?l=h-c:r===i?l=1/3+f-h:n===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function w0(e,t){var r=Gr(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ca(r,r.length===4?"rgba":"rgb")}}function YJ(e){var t=Gr(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function xd(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=za(ms(o[0],s[0],l)),r[1]=za(ms(o[1],s[1],l)),r[2]=za(ms(o[2],s[2],l)),r[3]=Qd(ms(o[3],s[3],l)),r}}var jJ=xd;function A2(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Gr(t[a]),s=Gr(t[i]),l=n-a,u=ca([za(ms(o[0],s[0],l)),za(ms(o[1],s[1],l)),za(ms(o[2],s[2],l)),Qd(ms(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var WJ=A2;function _o(e,t,r,n){var a=Gr(e);if(e)return a=FJ(a),t!=null&&(a[0]=UJ(ft(t)?t(a[0]):t)),r!=null&&(a[1]=mo(ft(r)?r(a[1]):r)),n!=null&&(a[2]=mo(ft(n)?n(a[2]):n)),ca(jC(a),"rgba")}function Jd(e,t){var r=Gr(e);if(r&&t!=null)return r[3]=Qd(t),ca(r,"rgba")}function ca(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function tp(e,t){var r=Gr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function XJ(){return ca([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var vI=new Kc(100);function T0(e){if(Q(e)){var t=vI.get(e);return t||(t=w0(e,-.1),vI.put(e,t)),t}else if(qp(e)){var r=F({},e);return r.colorStops=j(e.colorStops,function(n){return{offset:n.offset,color:w0(n.color,-.1)}}),r}return e}const ZJ=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:xd,fastMapToColor:jJ,lerp:A2,lift:w0,liftColor:T0,lum:tp,mapToColor:WJ,modifyAlpha:Jd,modifyHSL:_o,parse:Gr,parseCssFloat:mo,parseCssInt:Sm,random:XJ,stringify:ca,toHex:YJ},Symbol.toStringTag,{value:"Module"}));var C0=Math.round;function ep(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Gr(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var dI=1e-4;function _s(e){return e<dI&&e>-dI}function Gg(e){return C0(e*1e3)/1e3}function WC(e){return C0(e*1e4)/1e4}function $J(e){return"matrix("+Gg(e[0])+","+Gg(e[1])+","+Gg(e[2])+","+Gg(e[3])+","+WC(e[4])+","+WC(e[5])+")"}var qJ={left:"start",right:"end",center:"middle",middle:"middle"};function KJ(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function QJ(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function JJ(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function SH(e){return e&&!!e.image}function ttt(e){return e&&!!e.svgElement}function M2(e){return SH(e)||ttt(e)}function bH(e){return e.type==="linear"}function xH(e){return e.type==="radial"}function wH(e){return e&&(e.type==="linear"||e.type==="radial")}function DS(e){return"url(#"+e+")"}function TH(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function CH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*yd,a=ot(e.scaleX,1),i=ot(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+C0(o*yd)+"deg, "+C0(s*yd)+"deg)"),l.join(" ")}var ett=function(){return It.hasGlobalWindow&&ft(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),XC=Array.prototype.slice;function to(e,t,r){return(t-e)*r+e}function eb(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=to(t[i],r[i],n);return e}function rtt(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=to(t[o][s],r[o][s],n)}return e}function Hg(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function pI(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function ntt(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function att(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:XC.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function wd(e){if(Er(e)){var t=e.length;if(Er(e[0])){for(var r=[],n=0;n<t;n++)r.push(XC.call(e[n]));return r}return XC.call(e)}return e}function bm(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function itt(e){return Er(e&&e[0])?2:1}var Ug=0,xm=1,AH=2,$v=3,ZC=4,$C=5,gI=6;function yI(e){return e===ZC||e===$C}function Fg(e){return e===xm||e===AH}var fv=[0,0,0,0],ott=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=gI,l=r;if(Er(r)){var u=itt(r);s=u,(u===1&&!Bt(r[0])||u===2&&!Bt(r[0][0]))&&(o=!0)}else if(Bt(r)&&!Dr(r))s=Ug;else if(Q(r))if(!isNaN(+r))s=Ug;else{var f=Gr(r);f&&(l=f,s=$v)}else if(qp(r)){var c=F({},l);c.colorStops=j(r.colorStops,function(v){return{offset:v.offset,color:Gr(v.color)}}),bH(r)?s=ZC:xH(r)&&(s=$C),l=c}i===0?this.valType=s:(s!==this.valType||s===gI)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=ft(n)?n:bd[n]||C2(n)),a.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Fg(a),u=yI(a),f=0;f<i;f++){var c=n[f],h=c.value,v=o.value;c.percent=c.time/t,s||(l&&f!==i-1?att(h,v,a):u&&ntt(h.colorStops,v.colorStops))}if(!s&&a!==$C&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<i;f++)a===Ug?n[f].additiveValue=n[f].value-d:a===$v?n[f].additiveValue=Hg([],n[f].value,d,-1):Fg(a)&&(n[f].additiveValue=a===xm?Hg([],n[f].value,d,-1):pI([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===$v,f,c=this._lastFr,h=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-v.percent,y=g===0?1:h((r-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?fv:t[l];if((Fg(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Fg(i))i===xm?eb(m,v[a],d[a],y):rtt(m,v[a],d[a],y);else if(yI(i)){var _=v[a],S=d[a],b=i===ZC;t[l]={type:b?"linear":"radial",x:to(_.x,S.x,y),y:to(_.y,S.y,y),colorStops:j(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:to(w.offset,C.offset,y),color:bm(eb([],w.color,C.color,y))}}),global:S.global},b?(t[l].x2=to(_.x2,S.x2,y),t[l].y2=to(_.y2,S.y2,y)):t[l].r=to(_.r,S.r,y)}else if(u)eb(m,v[a],d[a],y),n||(t[l]=bm(m));else{var x=to(v[a],d[a],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Ug?t[n]=t[n]+a:r===$v?(Gr(t[n],fv),Hg(fv,fv,a,1),t[n]=bm(fv)):r===xm?Hg(t[n],t[n],a,1):r===AH&&pI(t[n],t[n],a,1)},e}(),D2=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){wS("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Nt(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new ott(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===$v&&u&&(u=bm(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,wd(u),a),this._trackKeys.push(s)}l.addKeyframe(t,wd(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new GJ({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,v);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return j(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=wd(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Nt(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function vc(){return new Date().getTime()}var stt=function(e){ve(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=vc()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(S0(n),!r._paused&&r.update())}S0(n)},t.prototype.start=function(){this._running||(this._time=vc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new D2(r,n.loop);return this.addAnimator(a),a},t}(Sa),ltt=300,rb=It.domSupported,nb=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=j(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),mI={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_I=!1;function qC(e){var t=e.pointerType;return t==="pen"||t==="touch"}function utt(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ab(e){e&&(e.zrByTouch=!0)}function ftt(e,t){return Xn(e.dom,new ctt(e,t),!0)}function MH(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var ctt=function(){function e(t,r){this.stopPropagation=De,this.stopImmediatePropagation=De,this.preventDefault=De,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Aa={mousedown:function(e){e=Xn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Xn(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Xn(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Xn(this.dom,e);var t=e.toElement||e.relatedTarget;MH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){_I=!0,e=Xn(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){_I||(e=Xn(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Xn(this.dom,e),ab(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Aa.mousemove.call(this,e),Aa.mousedown.call(this,e)},touchmove:function(e){e=Xn(this.dom,e),ab(e),this.handler.processGesture(e,"change"),Aa.mousemove.call(this,e)},touchend:function(e){e=Xn(this.dom,e),ab(e),this.handler.processGesture(e,"end"),Aa.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<ltt&&Aa.click.call(this,e)},pointerdown:function(e){Aa.mousedown.call(this,e)},pointermove:function(e){qC(e)||Aa.mousemove.call(this,e)},pointerup:function(e){Aa.mouseup.call(this,e)},pointerout:function(e){qC(e)||Aa.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){Aa[e]=function(t){t=Xn(this.dom,t),this.trigger(e,t)}});var KC={pointermove:function(e){qC(e)||KC.mousemove.call(this,e)},pointerup:function(e){KC.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function htt(e,t){var r=t.domHandlers;It.pointerEventsSupported?D(nb.pointer,function(n){wm(t,n,function(a){r[n].call(e,a)})}):(It.touchEventsSupported&&D(nb.touch,function(n){wm(t,n,function(a){r[n].call(e,a),utt(t)})}),D(nb.mouse,function(n){wm(t,n,function(a){a=T2(a),t.touching||r[n].call(e,a)})}))}function vtt(e,t){It.pointerEventsSupported?D(mI.pointer,r):It.touchEventsSupported||D(mI.mouse,r);function r(n){function a(i){i=T2(i),MH(e,i.target)||(i=ftt(e,i),t.domHandlers[n].call(e,i))}wm(t,n,a,{capture:!0})}}function wm(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,GC(e.domTarget,t,r,n)}function ib(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&SJ(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var SI=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),dtt=function(e){ve(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new SI(r,Aa),rb&&(a._globalHandlerScope=new SI(document,KC)),htt(a,a._localHandlerScope),a}return t.prototype.dispose=function(){ib(this._localHandlerScope),rb&&ib(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,rb&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?vtt(this,n):ib(n)}},t}(Sa),DH=1;It.hasGlobalWindow&&(DH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var A0=DH,QC=.4,JC="#333",tA="#ccc",ptt="#eee",bI=Jp,xI=5e-5;function bl(e){return e>xI||e<-xI}var xl=[],Af=[],ob=sr(),sb=Math.abs,fo=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return bl(this.rotation)||bl(this.x)||bl(this.y)||bl(this.scaleX-1)||bl(this.scaleY-1)||bl(this.skewX)||bl(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(bI(n),this.invTransform=null);return}n=n||sr(),r?this.getLocalTransform(n):bI(n),t&&(r?ka(n,t,n):tg(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(xl);var n=xl[0]<0?-1:1,a=xl[1]<0?-1:1,i=((xl[0]-n)*r+n)/xl[0]||0,o=((xl[1]-a)*r+a)/xl[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||sr(),ga(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||sr(),ka(Af,t.invTransform,r),r=Af);var n=this.originX,a=this.originY;(n||a)&&(ob[4]=n,ob[5]=a,ka(Af,r,ob),Af[4]-=n,Af[5]-=a,r=Af),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&Le(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Le(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&sb(t[0]-1)>1e-10&&sb(t[3]-1)>1e-10?Math.sqrt(sb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){M0(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;r[4]=-d*i-h*p*o,r[5]=-p*o-v*d*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=v*i,r[2]=h*o,u&&Yo(r,r,u),r[4]+=n+f,r[5]+=a+c,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Oi=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function M0(e,t){for(var r=0;r<Oi.length;r++){var n=Oi[r];e[n]=t[n]}}function Ai(e){Yg||(Yg=new Kc(100)),e=e||Lo;var t=Yg.get(e);return t||(t={font:e,strWidthCache:new Kc(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:cn.measureText("国",e).width,asciiCharWidth:cn.measureText("a",e).width},Yg.put(e,t)),t}var Yg;function gtt(e){if(!(lb>=wI)){e=e||Lo;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=cn.measureText(String.fromCharCode(n),e).width;var a=+new Date-r;return a>16?lb=wI:a>2&&lb++,t}}var lb=0,wI=5;function LH(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=gtt(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function Mi(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=cn.measureText(t,e.font).width,r.put(t,n)),n}function TI(e,t,r,n){var a=Mi(Ai(t),e),i=eg(t),o=Qc(0,a,r),s=vu(0,i,n),l=new yt(o,s,a,i);return l}function LS(e,t,r,n){var a=((e||"")+"").split(`
117
+ `),i=a.length;if(i===1)return TI(a[0],t,r,n);for(var o=new yt(0,0,0,0),s=0;s<a.length;s++){var l=TI(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Qc(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function vu(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function eg(e){return Ai(e).stWideCharWidth}function Fa(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function D0(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=Fa(n[0],r.width),u+=Fa(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=c,e}var ub="__zr_normal__",fb=Oi.concat(["ignore"]),ytt=pa(Oi,function(e,t){return e[t]=!0,e},{ignore:!1}),Mf={},mtt=new yt(0,0,0,0),jg=[],ES=function(){function e(t){this.id=S2(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(r);var f=n.position!=null,c=n.autoOverflowArea,h=void 0;if((c||f)&&(h=mtt,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),a||h.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Mf,n,h):D0(Mf,n,h),i.x=Mf.x,i.y=Mf.y,o=Mf.align,s=Mf.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,p=void 0;v==="center"?(d=h.width*.5,p=h.height*.5):(d=Fa(v[0],h.width),p=Fa(v[1],h.height)),u=!0,i.originX=-i.x+d+(a?0:h.x),i.originY=-i.y+p+(a?0:h.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new yt(0,0,0,0);i.getLocalTransform(jg),ga(jg,jg),yt.copy(m,h),m.applyTransform(jg)}else y.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,b=void 0,x=void 0;_&&this.canBeInsideText()?(S=n.insideFill,b=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),x=!0)):(S=n.outsideFill,b=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==y.fill||b!==y.stroke||x!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=b,y.autoStroke=x,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Tn,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tA:JC},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Gr(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,ca(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},F(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(dt(t))for(var n=t,a=Nt(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==ub)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,fb)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(ub,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===ub,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(bt(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){wS("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,r,n,f),h&&h.useState(t,r,n,f),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Tn),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&a.push(f)}var c=a[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,h),g&&g.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Tn)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=bt(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=bt(a,t),o=bt(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];F(r,i),i.textConfig&&(n=n||{},F(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=F({},a?this.textConfig:n.textConfig),F(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<fb.length;f++){var c=fb[f],h=i&&ytt[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!i)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new fo,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),F(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Tn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this,i=new D2(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=bt(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){cb(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){cb(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=cb(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Tn;function r(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Ee(ES,Sa);Ee(ES,fo);function cb(e,t,r,n,a){r=r||{};var i=[];EH(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(d,p){r.during(p)});for(var h=0;h<i.length;h++){var v=i[h];f&&v.done(f),c&&v.aborted(c),r.force&&v.duration(r.duration),v.start(r.easing)}return i}function hb(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function _tt(e){return Er(e[0])}function Stt(e,t,r){if(Er(t[r]))if(Er(e[r])||(e[r]=[]),Kr(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),hb(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(_tt(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?hb(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else hb(i,a,o);i.length=a.length}else e[r]=t[r]}function btt(e,t){return e===t||Er(e)&&Er(t)&&xtt(e,t)}function xtt(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function EH(e,t,r,n,a,i,o,s){for(var l=Nt(n),u=a.duration,f=a.delay,c=a.additive,h=a.setToFinal,v=!dt(i),d=e.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&r[y]!=null&&(v||i[y]))if(dt(m)&&!Er(m)&&!qp(m)){if(t){s||(r[y]=m,e.updateDuringAnimation(t));continue}EH(e,y,r[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(r[y]=m,e.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var x=b.stopTracks(p);if(x){var w=bt(d,b);d.splice(w,1)}}}if(a.force||(p=Ft(p,function(M){return!btt(n[M],r[M])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},h&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=r[y],h?T[y]=n[y]:r[y]=n[y]}}else if(h){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=wd(r[y]),Stt(r,n,y)}}var b=new D2(r,!1,!1,c?Ft(d,function(E){return E.targetName===t}):null);b.targetName=t,a.scope&&(b.scope=a.scope),h&&T&&b.whenWithKeys(0,T,p),A&&b.whenWithKeys(0,A,p),b.whenWithKeys(u??500,s?C:n,p).delay(f||0),e.addAnimator(b,t),o.push(b)}}var ht=function(e){ve(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=bt(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=bt(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new yt(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(yt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(ES);ht.prototype.type="group";/*!
118
+ * ZRender, a high performance 2d drawing library.
119
+ *
120
+ * Copyright (c) 2013, Baidu Inc.
121
+ * All rights reserved.
122
+ *
123
+ * LICENSE
124
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
125
+ */var Tm={},ou={};function wtt(e){delete ou[e]}function Ttt(e){if(!e)return!1;if(typeof e=="string")return tp(e,1)<QC;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=tp(t[a].color,1);return r/=n,r<QC}return!1}var Ctt=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new NJ,o=n.renderer||"canvas";Tm[o]||(o=Nt(Tm)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Tm[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!It.node&&!It.worker&&!l?new dtt(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?It.touchEventsSupported:!!f,h=44,v;c&&(v=ot(n.pointerSize,h)),this.handler=new uH(i,s,u,s.root,v),this.animation=new stt({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Ttt(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=vc();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=vc();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof ht&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,wtt(this.id))},e}();function eA(e,t){var r=new Ctt(S2(),e,t);return ou[r.id]=r,r}function Att(e){e.dispose()}function Mtt(){for(var e in ou)ou.hasOwnProperty(e)&&ou[e].dispose();ou={}}function Dtt(e){return ou[e]}function OH(e,t){Tm[e]=t}var rA;function RH(e){if(typeof rA=="function")return rA(e)}function IH(e){rA=e}var Ltt="6.0.0";const Ett=Object.freeze(Object.defineProperty({__proto__:null,dispose:Att,disposeAll:Mtt,getElementSSRData:RH,getInstance:Dtt,init:eA,registerPainter:OH,registerSSRDataGetter:IH,version:Ltt},Symbol.toStringTag,{value:"Module"}));var CI=1e-4,PH=20;function Ott(e){return e.replace(/^\s+|\s+$/g,"")}var Rn=Math.min,ke=Math.max,vi=Math.abs;function Yt(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}var K=Rtt;function Rtt(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return L0(e,t,r)}function L0(e,t,r){return Q(e)?Ott(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function ze(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),PH),e=(+e).toFixed(t),r?e:+e}function Dn(e){return e.sort(function(t,r){return t-r}),e}function Ra(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return NH(e)}function NH(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function L2(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(vi(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Itt(e,t,r){if(!e[t])return 0;var n=kH(e,r);return n[t]||0}function kH(e,t){var r=pa(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=j(e,function(v){return(isNaN(v)?0:v)/r*n*100}),i=n*100,o=j(a,function(v){return Math.floor(v)}),s=pa(o,function(v,d){return v+d},0),l=j(a,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return j(o,function(v){return v/n})}function Ptt(e,t){var r=Math.max(Ra(e),Ra(t)),n=e+t;return r>PH?n:ze(n,r)}var nA=9007199254740991;function E2(e){var t=Math.PI*2;return(e%t+t)%t}function Jc(e){return e>-CI&&e<CI}var Ntt=/^(?:(\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 Bi(e){if(e instanceof Date)return e;if(Q(e)){var t=Ntt.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function zH(e){return Math.pow(10,OS(e))}function OS(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function O2(e,t){var r=OS(e),n=Math.pow(10,r),a=e/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Cm(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function aA(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var a=e[n].interval,i=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-r),t=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(n,1):n++}return e;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ri(e){var t=parseFloat(e);return t==e&&(t!==0||!Q(e)||e.indexOf("x")<=0)?t:NaN}function R2(e){return!isNaN(Ri(e))}function BH(){return Math.round(Math.random()*9)}function VH(e,t){return t===0?e:VH(t,e%t)}function AI(e,t){return e==null?t:t==null?e:e*t/VH(e,t)}var ktt="[ECharts] ",ztt=typeof console<"u"&&console.warn&&console.log;function Btt(e,t,r){ztt&&console[e](ktt+t)}function GH(e,t){Btt("error",e)}function jt(e){throw new Error(e)}function MI(e,t,r){return(t-e)*r+e}var HH="series\0",UH="\0_ec_\0";function ne(e){return e instanceof Array?e:e==null?[]:[e]}function Ru(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var DI=["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 Oh(e){return dt(e)&&!Y(e)&&!(e instanceof Date)?e.value:e}function Vtt(e){return dt(e)&&!(e instanceof Array)}function FH(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=it();D(t,function(l,u){if(!dt(l)){t[u]=null;return}});var s=Gtt(e,o,r);return(n||a)&&Htt(s,e,o,t),n&&Utt(s,t),n||a?Ftt(s,t,a):i&&Ytt(s,t),jtt(s),s}function Gtt(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||rp(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function Htt(e,t,r,n){D(n,function(a,i){if(!(!a||a.id==null)){var o=Td(a.id),s=r.get(o);if(s!=null){var l=e[s];Or(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function Utt(e,t){D(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!rp(r)&&!rp(i)&&YH("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function Ftt(e,t,r){D(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||rp(a.existing)||a.existing&&n.id!=null&&!YH("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function Ytt(e,t){D(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function jtt(e){var t=it();D(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),D(e,function(r){var n=r.newOption;Or(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),D(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(dt(i)){if(o.name=i.name!=null?Td(i.name):a?a.name:HH+n,a)o.id=Td(a.id);else if(i.id!=null)o.id=Td(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function YH(e,t,r){var n=Qe(t[e],null),a=Qe(r[e],null);return n!=null&&a!=null&&n===a}function Td(e){return Qe(e,"")}function Qe(e,t){return e==null?t:Q(e)?e:Bt(e)||g0(e)?e+"":t}function I2(e){var t=e.name;return!!(t&&t.indexOf(HH))}function rp(e){return e&&e.id!=null&&Td(e.id).indexOf(UH)===0}function Wtt(e){return UH+e}function Xtt(e,t,r){D(e,function(n){var a=n.newOption;dt(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Ztt(t,a,n.existing,r))})}function Ztt(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function $tt(e,t){var r={},n={};return a(e||[],r),a(t||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=Qe(o[u].seriesId,null);if(c==null)return;for(var h=ne(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[c]||(s[c]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Iu(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Y(t.dataIndex)?j(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Y(t.name)?j(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Mt(){var e="__ec_inner_"+qtt++;return function(t){return t[e]||(t[e]={})}}var qtt=BH();function Ic(e,t,r){var n=P2(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=Rh(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function P2(e,t){var r;if(Q(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=it(),i={},o=!1;return D(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&bt(t.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Me={useDefault:!0,enableAll:!1,enableNone:!1},Ktt={useDefault:!1,enableAll:!0,enableNone:!0};function Rh(e,t,r,n){n=n||Me;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s}function jH(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Qtt(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Jtt(e){return e==="auto"?It.domSupported?"html":"richText":e||"html"}function iA(e,t){var r=it(),n=[];return D(e,function(a){var i=t(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function WH(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Bt(n)){var o=MI(r||0,n,a);return ze(o,i?Math.max(Ra(r||0),Ra(n)):t)}else{if(Q(n))return a<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=e.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=MI(v,d,a);s[c]=ze(o,i?Math.max(Ra(v),Ra(d)):t)}}return s}}var Es=function(){function e(){}return e.prototype.reset=function(t,r,n,a){return this._list=t,this._step=a=a||1,this._idx=r,this._end=n??(a>0?t.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},e}();function vb(e){e.option=e.parentModel=e.ecModel=null}var tet=".",wl="___EC__COMPONENT__CONTAINER___",XH="___EC__EXTENDED_CLASS___";function di(e){var t={main:"",sub:""};if(e){var r=e.split(tet);t.main=r[0]||"",t.sub=r[1]||""}return t}function eet(e){Or(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function ret(e){return!!(e&&e[XH])}function N2(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return net(n)?a=function(i){G(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},b2(a,this)),F(a.prototype,r),a[XH]=!0,a.extend=this.extend,a.superCall=oet,a.superApply=set,a.superClass=n,a}}function net(e){return ft(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function ZH(e,t){e.extend=t.extend}var aet=Math.round(Math.random()*10);function iet(e){var t=["__\0is_clz",aet++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function oet(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function set(e,t,r){return this.superClass.prototype[t].apply(e,r)}function RS(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){eet(a),n.prototype.type=a;var i=di(a);if(!i.sub)t[i.main]=n;else if(i.sub!==wl){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[wl]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=di(n),i=[],o=t[a.main];return o&&o[wl]?D(o,function(s,l){l!==wl&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=di(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return D(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=di(n),i=t[a.main];return i&&i[wl]};function r(n){var a=t[n.main];return(!a||!a[wl])&&(a=t[n.main]={},a[wl]=!0),a}}function Pu(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&bt(a,l)>=0||i&&bt(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var uet=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],fet=Pu(uet),cet=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return fet(this,t,r)},e}(),oA=new Kc(50);function het(e){if(typeof e=="string"){var t=oA.get(e);return t&&t.image}else return e}function k2(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=oA.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!IS(t)&&i.pending.push(o)):(t=cn.loadImage(e,LI,LI),t.__zrImageSrc=e,oA.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function LI(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function IS(e){return e&&e.width&&e.height}var db=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function vet(e,t,r,n,a){var i={};return $H(i,e,t,r,n,a),i.text}function $H(e,t,r,n,a,i){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
126
+ `);i=qH(r,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)KH(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join(`
127
+ `),e.isTruncated=s}function qH(e,t,r,n){n=n||{};var a=F({},n);r=ot(r,"..."),a.maxIterations=ot(n.maxIterations,2);var i=a.minChar=ot(n.minChar,0),o=a.fontMeasureInfo=Ai(t),s=o.asciiCharWidth;a.placeholder=ot(n.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<i&&l>=s;u++)l-=s;var f=Mi(o,r);return f>l&&(r="",f=0),l=e-f,a.ellipsis=r,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=e,a}function KH(e,t,r){var n=r.containerWidth,a=r.contentWidth,i=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=Mi(i,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?det(t,a,i):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=Mi(i,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function det(e,t,r){for(var n=0,a=0,i=e.length;a<i&&n<t;a++)n+=LH(r,e.charCodeAt(a));return a}function pet(e,t,r,n){var a=z2(e),i=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=i==="truncate",c=eg(u),h=ot(t.lineHeight,c),v=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&r!=null&&(p=r-s);var g=t.height;g==null&&n!=null&&(g=n-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=a?QH(a,t.font,p,i==="breakAll",0).lines:[]:y=a?a.split(`
128
+ `):[];var m=y.length*h;if(g==null&&(g=m),m>g&&v){var _=Math.floor(g/h);d=d||y.length>_,y=y.slice(0,_),m=y.length*h}if(a&&f&&p!=null)for(var S=qH(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},x=0;x<y.length;x++)KH(b,y[x],S),y[x]=b.textLine,d=d||b.isTruncated;for(var w=g,T=0,C=Ai(u),x=0;x<y.length;x++)T=Math.max(Mi(C,y[x]),T);p==null&&(p=T);var A=p;return w+=l,A+=s,{lines:y,height:g,outerWidth:A,outerHeight:w,lineHeight:h,calculatedLineHeight:c,contentWidth:T,contentHeight:m,width:p,isTruncated:d}}var get=function(){function e(){}return e}(),EI=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),yet=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function met(e,t,r,n,a){var i=new yet,o=z2(e);if(!o)return i;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-l);var c=t.height;c==null&&n!=null&&(c=n-u);for(var h=t.overflow,v=(h==="break"||h==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:h==="breakAll"}:null,d=db.lastIndex=0,p;(p=db.exec(o))!=null;){var g=p.index;g>d&&pb(i,o.substring(d,g),t,v),pb(i,p[2],t,v,p[1]),d=db.lastIndex}d<o.length&&pb(i,o.substring(d,o.length),t,v);var y=[],m=0,_=0,S=h==="truncate",b=t.lineOverflow==="truncate",x={};function w(Dt,lt,rt){Dt.width=lt,Dt.lineHeight=rt,m+=rt,_=Math.max(_,lt)}t:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],A=0,M=0,E=0;E<C.tokens.length;E++){var L=C.tokens[E],R=L.styleName&&t.rich[L.styleName]||{},P=L.textPadding=R.padding,O=P?P[1]+P[3]:0,N=L.font=R.font||t.font;L.contentHeight=eg(N);var I=ot(R.height,L.contentHeight);if(L.innerHeight=I,P&&(I+=P[0]+P[2]),L.height=I,L.lineHeight=un(R.lineHeight,t.lineHeight,I),L.align=R&&R.align||a,L.verticalAlign=R&&R.verticalAlign||"middle",b&&c!=null&&m+L.lineHeight>c){var k=i.lines.length;E>0?(C.tokens=C.tokens.slice(0,E),w(C,M,A),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<k;break t}var B=R.width,H=B==null||B==="auto";if(typeof B=="string"&&B.charAt(B.length-1)==="%")L.percentWidth=B,y.push(L),L.contentWidth=Mi(Ai(N),L.text);else{if(H){var U=R.backgroundColor,X=U&&U.image;X&&(X=het(X),IS(X)&&(L.width=Math.max(L.width,X.width*I/X.height)))}var q=S&&f!=null?f-M:null;q!=null&&q<L.width?!H||q<O?(L.text="",L.width=L.contentWidth=0):($H(x,L.text,q-O,N,t.ellipsis,{minChar:t.truncateMinChar}),L.text=x.text,i.isTruncated=i.isTruncated||x.isTruncated,L.width=L.contentWidth=Mi(Ai(N),L.text)):L.contentWidth=Mi(Ai(N),L.text)}L.width+=O,M+=L.width,R&&(A=Math.max(A,L.lineHeight))}w(C,M,A)}i.outerWidth=i.width=ot(f,_),i.outerHeight=i.height=ot(c,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var T=0;T<y.length;T++){var L=y[T],st=L.percentWidth;L.width=parseInt(st,10)/100*i.width}return i}function pb(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,f,c;if(n){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Fa(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
129
+ `),u=!0),n.accumWidth=d}else{var p=QH(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,c=p.linesWidths,f=p.lines}}f||(f=t.split(`
130
+ `));for(var g=Ai(l),y=0;y<f.length;y++){var m=f[y],_=new get;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=c?c[y]:Mi(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new EI)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(m||!b||i)&&S.push(_)}else s.push(new EI([_]))}}function _et(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var bet=pa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function xet(e){return _et(e)?!!bet[e]:!0}function QH(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=Ai(t),h=0;h<e.length;h++){var v=e.charAt(h);if(v===`
131
+ `){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=LH(c,v.charCodeAt(0)),p=n?!1:!xet(v);if(i.length?f+d>r:a+f+d>r){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=d)):p?(i.push(l),o.push(u),l=v,u=d):(i.push(v),o.push(d));continue}f+=d,p?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function OI(e,t,r,n,a,i){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;yt.set(RI,Qc(r,o,a),vu(n,s,i),o,s),yt.intersect(t,RI,null,II);var l=II.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=Qc(l.x,l.width,a,!0),e.baseY=vu(l.y,l.height,i,!0)}}var RI=new yt(0,0,0,0),II={outIntersectRect:{},clamp:!0};function z2(e){return e!=null?e+="":e=""}function wet(e){var t=z2(e.text),r=e.font,n=Mi(Ai(r),t),a=eg(r);return sA(e,n,a,null)}function sA(e,t,r,n){var a=new yt(Qc(e.x||0,t,e.textAlign),vu(e.y||0,r,e.textBaseline),t,r),i=n??(JH(e)?e.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function JH(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var lA="__zr_style_"+Math.round(Math.random()*10),du={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},PS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};du[lA]=!0;var PI=["z","z2","invisible"],Tet=["invisible"],ya=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Nt(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Cet(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new yt(0,0,0,0)),n?yt.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new yt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:F(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Zv,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Zv)},t.prototype.styleUpdated=function(){this.__dirty&=~Zv},t.prototype.createStyle=function(r){return Qp(du,r)},t.prototype.useStyle=function(r){r[lA]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[lA]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,PI)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Nt(f),h=0;h<c.length;h++){var v=c[h];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=Nt(u),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?Tet:PI,h=0;h<p.length;h++){var v=p[h];n&&n[v]!=null?this[v]=n[v]:l&&a[v]!=null&&(this[v]=a[v])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return F(r,n),r},t.prototype.getAnimationStyleProps=function(){return PS},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Tn|Zv}(),t}(ES),gb=new yt(0,0,0,0),yb=new yt(0,0,0,0);function Cet(e,t,r){return gb.copy(e.getBoundingRect()),e.transform&&gb.applyTransform(e.transform),yb.width=t,yb.height=r,!gb.intersect(yb)}var on=Math.min,sn=Math.max,mb=Math.sin,_b=Math.cos,Tl=Math.PI*2,Wg=sl(),Xg=sl(),Zg=sl();function NS(e,t,r){if(e.length!==0){for(var n=e[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],a=on(a,n[0]),i=sn(i,n[0]),o=on(o,n[1]),s=sn(s,n[1]);t[0]=a,t[1]=o,r[0]=i,r[1]=s}}function NI(e,t,r,n,a,i){a[0]=on(e,r),a[1]=on(t,n),i[0]=sn(e,r),i[1]=sn(t,n)}var kI=[],zI=[];function Aet(e,t,r,n,a,i,o,s,l,u){var f=dH,c=ar,h=f(e,r,a,o,kI);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<h;v++){var d=c(e,r,a,o,kI[v]);l[0]=on(d,l[0]),u[0]=sn(d,u[0])}h=f(t,n,i,s,zI);for(var v=0;v<h;v++){var p=c(t,n,i,s,zI[v]);l[1]=on(p,l[1]),u[1]=sn(p,u[1])}l[0]=on(e,l[0]),u[0]=sn(e,u[0]),l[0]=on(o,l[0]),u[0]=sn(o,u[0]),l[1]=on(t,l[1]),u[1]=sn(t,u[1]),l[1]=on(s,l[1]),u[1]=sn(s,u[1])}function Met(e,t,r,n,a,i,o,s){var l=gH,u=dr,f=sn(on(l(e,r,a),1),0),c=sn(on(l(t,n,i),1),0),h=u(e,r,a,f),v=u(t,n,i,c);o[0]=on(e,a,h),o[1]=on(t,i,v),s[0]=sn(e,a,h),s[1]=sn(t,i,v)}function Det(e,t,r,n,a,i,o,s,l){var u=lo,f=uo,c=Math.abs(a-i);if(c%Tl<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Wg[0]=_b(a)*r+e,Wg[1]=mb(a)*n+t,Xg[0]=_b(i)*r+e,Xg[1]=mb(i)*n+t,u(s,Wg,Xg),f(l,Wg,Xg),a=a%Tl,a<0&&(a=a+Tl),i=i%Tl,i<0&&(i=i+Tl),a>i&&!o?i+=Tl:a<i&&o&&(a+=Tl),o){var h=i;i=a,a=h}for(var v=0;v<i;v+=Math.PI/2)v>a&&(Zg[0]=_b(v)*r+e,Zg[1]=mb(v)*n+t,u(s,Zg,s),f(l,Zg,l))}var oe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Cl=[],Al=[],Ka=[],qo=[],Qa=[],Ja=[],Sb=Math.min,bb=Math.max,Ml=Math.cos,Dl=Math.sin,Yi=Math.abs,uA=Math.PI,as=uA*2,xb=typeof Float32Array<"u",cv=[];function wb(e){var t=Math.round(e/uA*1e8)/1e8;return t%2*uA}function kS(e,t){var r=wb(e[0]);r<0&&(r+=as);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=as?a=r+as:t&&r-a>=as?a=r-as:!t&&r>a?a=r+(as-wb(r-a)):t&&r<a&&(a=r-(as-wb(a-r))),e[0]=r,e[1]=a}var Ii=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Yi(n/A0/t)||0,this._uy=Yi(n/A0/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(oe.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Yi(t-this._xi),a=Yi(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(oe.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(oe.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(oe.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),cv[0]=a,cv[1]=i,kS(cv,o),a=cv[0],i=cv[1];var s=i-a;return this.addData(oe.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=Ml(i)*n+t,this._yi=Dl(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(oe.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(oe.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&xb&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();var o=this.data;if(xb&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<r;i++)for(var l=t[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,xb&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Ka[0]=Ka[1]=Qa[0]=Qa[1]=Number.MAX_VALUE,qo[0]=qo[1]=Ja[0]=Ja[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case oe.M:r=a=t[o++],n=i=t[o++],Qa[0]=a,Qa[1]=i,Ja[0]=a,Ja[1]=i;break;case oe.L:NI(r,n,t[o],t[o+1],Qa,Ja),r=t[o++],n=t[o++];break;case oe.C:Aet(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Qa,Ja),r=t[o++],n=t[o++];break;case oe.Q:Met(r,n,t[o++],t[o++],t[o],t[o+1],Qa,Ja),r=t[o++],n=t[o++];break;case oe.A:var u=t[o++],f=t[o++],c=t[o++],h=t[o++],v=t[o++],d=t[o++]+v;o+=1;var p=!t[o++];l&&(a=Ml(v)*c+u,i=Dl(v)*h+f),Det(u,f,c,h,v,d,p,Qa,Ja),r=Ml(d)*c+u,n=Dl(d)*h+f;break;case oe.R:a=r=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];NI(a,i,a+g,i+y,Qa,Ja);break;case oe.Z:r=a,n=i;break}lo(Ka,Ka,Qa),uo(qo,qo,Ja)}return o===0&&(Ka[0]=Ka[1]=qo[0]=qo[1]=0),new yt(Ka[0],Ka[1],qo[0]-Ka[0],qo[1]-Ka[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<r;){var v=t[h++],d=h===1;d&&(i=t[h],o=t[h+1],s=i,l=o);var p=-1;switch(v){case oe.M:i=s=t[h++],o=l=t[h++];break;case oe.L:{var g=t[h++],y=t[h++],m=g-i,_=y-o;(Yi(m)>n||Yi(_)>a||h===r-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case oe.C:{var S=t[h++],b=t[h++],g=t[h++],y=t[h++],x=t[h++],w=t[h++];p=kJ(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case oe.Q:{var S=t[h++],b=t[h++],g=t[h++],y=t[h++];p=BJ(i,o,S,b,g,y,10),i=g,o=y;break}case oe.A:var T=t[h++],C=t[h++],A=t[h++],M=t[h++],E=t[h++],L=t[h++],R=L+E;h+=1,d&&(s=Ml(E)*A+T,l=Dl(E)*M+C),p=bb(A,M)*Sb(as,Math.abs(L)),i=Ml(R)*A+T,o=Dl(R)*M+C;break;case oe.R:{s=i=t[h++],l=o=t[h++];var P=t[h++],O=t[h++];p=P*2+O*2;break}case oe.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,h,v=r<1,d,p,g=0,y=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=r*p,!m)))t:for(var x=0;x<o;){var w=n[x++],T=x===1;switch(T&&(u=n[x],f=n[x+1],s=u,l=f),w!==oe.L&&_>0&&(t.lineTo(S,b),_=0),w){case oe.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case oe.L:{c=n[x++],h=n[x++];var C=Yi(c-u),A=Yi(h-f);if(C>a||A>i){if(v){var M=d[y++];if(g+M>m){var E=(m-g)/M;t.lineTo(u*(1-E)+c*E,f*(1-E)+h*E);break t}g+=M}t.lineTo(c,h),u=c,f=h,_=0}else{var L=C*C+A*A;L>_&&(S=c,b=h,_=L)}break}case oe.C:{var R=n[x++],P=n[x++],O=n[x++],N=n[x++],I=n[x++],k=n[x++];if(v){var M=d[y++];if(g+M>m){var E=(m-g)/M;Ws(u,R,O,I,E,Cl),Ws(f,P,N,k,E,Al),t.bezierCurveTo(Cl[1],Al[1],Cl[2],Al[2],Cl[3],Al[3]);break t}g+=M}t.bezierCurveTo(R,P,O,N,I,k),u=I,f=k;break}case oe.Q:{var R=n[x++],P=n[x++],O=n[x++],N=n[x++];if(v){var M=d[y++];if(g+M>m){var E=(m-g)/M;Kd(u,R,O,E,Cl),Kd(f,P,N,E,Al),t.quadraticCurveTo(Cl[1],Al[1],Cl[2],Al[2]);break t}g+=M}t.quadraticCurveTo(R,P,O,N),u=O,f=N;break}case oe.A:var B=n[x++],H=n[x++],U=n[x++],X=n[x++],q=n[x++],st=n[x++],Dt=n[x++],lt=!n[x++],rt=U>X?U:X,et=Yi(U-X)>.001,at=q+st,$=!1;if(v){var M=d[y++];g+M>m&&(at=q+st*(m-g)/M,$=!0),g+=M}if(et&&t.ellipse?t.ellipse(B,H,U,X,Dt,q,at,lt):t.arc(B,H,rt,q,at,lt),$)break t;T&&(s=Ml(q)*U+B,l=Dl(q)*X+H),u=Ml(at)*U+B,f=Dl(at)*X+H;break;case oe.R:s=u=n[x],l=f=n[x+1],c=n[x++],h=n[x++];var tt=n[x++],kt=n[x++];if(v){var M=d[y++];if(g+M>m){var Tt=m-g;t.moveTo(c,h),t.lineTo(c+Sb(Tt,tt),h),Tt-=tt,Tt>0&&t.lineTo(c+tt,h+Sb(Tt,kt)),Tt-=kt,Tt>0&&t.lineTo(c+bb(tt-Tt,0),h+kt),Tt-=tt,Tt>0&&t.lineTo(c,h+bb(kt-Tt,0));break t}g+=M}t.rect(c,h,tt,kt);break;case oe.Z:if(v){var M=d[y++];if(g+M>m){var E=(m-g)/M;t.lineTo(u*(1-E)+s*E,f*(1-E)+l*E);break t}g+=M}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=oe,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function ss(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var f=l*i-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function Let(e,t,r,n,a,i,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>i+c&&f>s+c||f<t-c&&f<n-c&&f<i-c&&f<s-c||u>e+c&&u>r+c&&u>a+c&&u>o+c||u<e-c&&u<r-c&&u<a-c&&u<o-c)return!1;var h=pH(e,t,r,n,a,i,o,s,u,f,null);return h<=c/2}function tU(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var f=yH(e,t,r,n,a,i,s,l,null);return f<=u/2}var BI=Math.PI*2;function Ln(e){return e%=BI,e<0&&(e+=BI),e}var hv=Math.PI*2;function Eet(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-a)%hv<1e-4)return!0;if(i){var c=n;n=Ln(a),a=Ln(c)}else n=Ln(n),a=Ln(a);n>a&&(a+=hv);var h=Math.atan2(l,s);return h<0&&(h+=hv),h>=n&&h<=a||h+hv>=n&&h+hv<=a}function eo(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===a?1/0:l>a?s:0}var Ko=Ii.CMD,Ll=Math.PI*2,Oet=1e-4;function Ret(e,t){return Math.abs(e-t)<Oet}var Wr=[-1,-1,-1],$n=[-1,-1];function Iet(){var e=$n[0];$n[0]=$n[1],$n[1]=e}function Pet(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=x0(t,n,i,s,u,Wr);if(f===0)return 0;for(var c=0,h=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=Wr[p],y=g===0||g===1?.5:1,m=ar(e,r,a,o,g);m<l||(h<0&&(h=dH(t,n,i,s,$n),$n[1]<$n[0]&&h>1&&Iet(),v=ar(t,n,i,s,$n[0]),h>1&&(d=ar(t,n,i,s,$n[1]))),h===2?g<$n[0]?c+=v<t?y:-y:g<$n[1]?c+=d<v?y:-y:c+=s<d?y:-y:g<$n[0]?c+=v<t?y:-y:c+=s<v?y:-y)}return c}function Net(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=zJ(t,n,i,s,Wr);if(l===0)return 0;var u=gH(t,n,i);if(u>=0&&u<=1){for(var f=0,c=dr(t,n,i,u),h=0;h<l;h++){var v=Wr[h]===0||Wr[h]===1?.5:1,d=dr(e,r,a,Wr[h]);d<o||(Wr[h]<u?f+=c<t?v:-v:f+=i<c?v:-v)}return f}else{var v=Wr[0]===0||Wr[0]===1?.5:1,d=dr(e,r,a,Wr[0]);return d<o?0:i<t?v:-v}}function ket(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Wr[0]=-l,Wr[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Ll-1e-4){n=0,a=Ll;var f=i?1:-1;return o>=Wr[0]+e&&o<=Wr[1]+e?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=Ll,a+=Ll);for(var h=0,v=0;v<2;v++){var d=Wr[v];if(d+e>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Ll+p),(p>=n&&p<=a||p+Ll>=n&&p+Ll<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function eU(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,f=0,c=0,h,v,d=0;d<o;){var p=i[d++],g=d===1;switch(p===Ko.M&&d>1&&(r||(s+=eo(l,u,f,c,n,a))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case Ko.M:f=i[d++],c=i[d++],l=f,u=c;break;case Ko.L:if(r){if(ss(l,u,i[d],i[d+1],t,n,a))return!0}else s+=eo(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ko.C:if(r){if(Let(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=Pet(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ko.Q:if(r){if(tU(l,u,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=Net(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case Ko.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],x=i[d++];d+=1;var w=!!(1-i[d++]);h=Math.cos(b)*_+y,v=Math.sin(b)*S+m,g?(f=h,c=v):s+=eo(l,u,h,v,n,a);var T=(n-y)*S/_+y;if(r){if(Eet(y,m,S,b,b+x,w,t,T,a))return!0}else s+=ket(y,m,S,b,b+x,w,T,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case Ko.R:f=l=i[d++],c=u=i[d++];var C=i[d++],A=i[d++];if(h=f+C,v=c+A,r){if(ss(f,c,h,c,t,n,a)||ss(h,c,h,v,t,n,a)||ss(h,v,f,v,t,n,a)||ss(f,v,f,c,t,n,a))return!0}else s+=eo(h,c,h,v,n,a),s+=eo(f,v,f,c,n,a);break;case Ko.Z:if(r){if(ss(l,u,f,c,t,n,a))return!0}else s+=eo(l,u,f,c,n,a);l=f,u=c;break}}return!r&&!Ret(u,c)&&(s+=eo(l,u,f,c,n,a)||0),s!==0}function zet(e,t,r){return eU(e,0,!1,t,r)}function Bet(e,t,r,n){return eU(e,t,!0,r,n)}var E0=vt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},du),Vet={style:vt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},PS.style)},Tb=Oi.concat(["invisible","culling","z","z2","zlevel","parent"]),Et=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<Tb.length;++s)a[Tb[s]]=this[Tb[s]];a.__dirty|=Tn}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Nt(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?F(this.style,s):this.useStyle(s):o==="shape"?F(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Q(r)){var n=tp(r,0);return n>.5?JC:n>.2?ptt:tA}else if(r)return tA}return JC},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Q(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=tp(r,0)<QC;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~nc},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Ii(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&nc)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Bet(s,l/u,r,n)))return!0}if(this.hasFill())return zet(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=nc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:F(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&nc)},t.prototype.createStyle=function(r){return Qp(E0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=F({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=F({},a.shape),F(u,n.shape)):(u=F({},i?this.shape:a.shape),F(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=F({},this.shape);for(var f={},c=Nt(u),h=0;h<c.length;h++){var v=c[h];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return Vet},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){ve(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ct(r.style)},o.prototype.getDefaultShape=function(){return ct(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Tn|Zv|nc}(),t}(ya),Get=vt({strokeFirst:!0,font:Lo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},E0),th=function(e){ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return JH(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Qp(Get,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=wet(this.style)),this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ya);th.prototype.type="tspan";var Het=vt({x:0,y:0},du),Uet={style:vt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},PS.style)};function Fet(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var cr=function(e){ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Qp(Het,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=Fet(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Uet},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new yt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ya);cr.prototype.type="image";function Yet(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+f,n+i),f!==0&&e.arc(r+f,n+i-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var dc=Math.round;function zS(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(dc(n*2)===dc(a*2)&&(e.x1=e.x2=En(n,s,!0)),dc(i*2)===dc(o*2)&&(e.y1=e.y2=En(i,s,!0))),e}}function rU(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=En(n,s,!0),e.y=En(a,s,!0),e.width=Math.max(En(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(En(a+o,s,!1)-e.y,o===0?0:1)),e}}function En(e,t,r){if(!t)return e;var n=dc(e*2);return(n+dc(t))%2===0?n/2:(n+(r?1:-1))/2}var jet=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Wet={},Ct=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new jet},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=rU(Wet,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?Yet(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Et);Ct.prototype.type="rect";var VI={fill:"#000"},GI=2,ti={},Xet={style:vt({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},PS.style)},zt=function(e){ve(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=VI,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,qet(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new yt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||VI},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return F(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=Nt(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},F(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return Xet},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Lo,a=r.padding,i=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||i.align||"left",u=r.verticalAlign||i.verticalAlign||"top";OI(ti,i.overflowRect,o,s,l,u),o=ti.baseX,s=ti.baseY;var f=XI(r),c=pet(f,r,ti.outerWidth,ti.outerHeight),h=Cb(r),v=!!r.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,y=c.lineHeight;this.isTruncated=!!c.isTruncated;var m=o,_=vu(s,c.contentHeight,u);if(h||a){var S=Qc(o,p,l),b=vu(s,d,u);h&&this._renderBackground(r,r,S,b,p,d)}_+=y/2,a&&(m=WI(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var x=0,w=!1,T=!1,C=jI("fill"in r?r.fill:(T=!0,i.fill)),A=YI("stroke"in r?r.stroke:!v&&(!i.autoStroke||T)?(x=GI,w=!0,i.stroke):null),M=r.textShadowBlur>0,E=0;E<g.length;E++){var L=this._getOrCreateChild(th),R=L.createStyle();L.useStyle(R),R.text=g[E],R.x=m,R.y=_,R.textAlign=l,R.textBaseline="middle",R.opacity=r.opacity,R.strokeFirst=!0,M&&(R.shadowBlur=r.textShadowBlur||0,R.shadowColor=r.textShadowColor||"transparent",R.shadowOffsetX=r.textShadowOffsetX||0,R.shadowOffsetY=r.textShadowOffsetY||0),R.stroke=A,R.fill=C,A&&(R.lineWidth=r.lineWidth||x,R.lineDash=r.lineDash,R.lineDashOffset=r.lineDashOffset||0),R.font=n,UI(R,r),_+=y,L.setBoundingRect(sA(R,c.contentWidth,c.calculatedLineHeight,w?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,a=r.align||n.align,i=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;OI(ti,n.overflowRect,o,s,a,i),o=ti.baseX,s=ti.baseY;var l=XI(r),u=met(l,r,ti.outerWidth,ti.outerHeight,a),f=u.width,c=u.outerWidth,h=u.outerHeight,v=r.padding;this.isTruncated=!!u.isTruncated;var d=Qc(o,c,a),p=vu(s,h,i),g=d,y=p;v&&(g+=v[3],y+=v[0]);var m=g+f;Cb(r)&&this._renderBackground(r,r,d,p,c,h);for(var _=!!r.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],x=b.tokens,w=x.length,T=b.lineHeight,C=b.width,A=0,M=g,E=m,L=w-1,R=void 0;A<w&&(R=x[A],!R.align||R.align==="left");)this._placeToken(R,r,T,y,M,"left",_),C-=R.width,M+=R.width,A++;for(;L>=0&&(R=x[L],R.align==="right");)this._placeToken(R,r,T,y,E,"right",_),C-=R.width,E-=R.width,L--;for(M+=(f-(M-g)-(m-E)-C)/2;A<=L;)R=x[A],this._placeToken(R,r,T,y,M+R.width/2,"center",_),M+=R.width,A++;y+=T}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=i+a/2;f==="top"?c=i+r.height/2:f==="bottom"&&(c=i+a-r.height/2);var h=!r.isLineHolder&&Cb(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=WI(o,s,d),c-=r.height/2-d[0]-r.innerHeight/2);var p=this._getOrCreateChild(th),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,b=jI("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=YI("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=GI,S=!0,y.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Lo,g.opacity=un(u.opacity,n.opacity,1),UI(g,u),x&&(g.lineWidth=un(u.lineWidth,n.lineWidth,_),g.lineDash=ot(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),b&&(g.fill=b),p.setBoundingRect(sA(g,r.contentWidth,r.contentHeight,S?0:null))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,v=r.borderRadius,d=this,p,g;if(h||r.lineHeight||u&&f){p=this._getOrCreateChild(Ct),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(h){var m=p.style;m.fill=l||null,m.fillOpacity=ot(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(cr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ot(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=un(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return aU(r)&&(n=[r.fontStyle,r.fontWeight,nU(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Mn(n)||r.textFont||r.font},t}(ya),Zet={left:!0,right:1,center:1},$et={top:1,bottom:1,middle:1},HI=["fontStyle","fontWeight","fontSize","fontFamily"];function nU(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?y2+"px":e+"px"}function UI(e,t){for(var r=0;r<HI.length;r++){var n=HI[r],a=t[n];a!=null&&(e[n]=a)}}function aU(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function qet(e){return FI(e),D(e.rich,FI),e}function FI(e){if(e){e.font=zt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Zet[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||$et[r]?r:"top";var n=e.padding;n&&(e.padding=Kp(e.padding))}}function YI(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function jI(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function WI(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function XI(e){var t=e.text;return t!=null&&(t+=""),t}function Cb(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var mt=Mt(),fA=function(e,t,r,n){if(n){var a=mt(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=mt(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},ZI=1,$I={},iU=Mt(),B2=Mt(),V2=0,rg=1,BS=2,Qr=["emphasis","blur","select"],np=["normal","emphasis","blur","select"],Ih=10,Ket=9,pu="highlight",Am="downplay",O0="select",cA="unselect",R0="toggleSelect",G2="selectchanged";function Df(e){return e!=null&&e!=="none"}function VS(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function oU(e){VS(e,"emphasis",BS)}function sU(e){e.hoverState===BS&&VS(e,"normal",V2)}function H2(e){VS(e,"blur",rg)}function lU(e){e.hoverState===rg&&VS(e,"normal",V2)}function Qet(e){e.selected=!0}function Jet(e){e.selected=!1}function qI(e,t,r){t(e,r)}function jo(e,t,r){qI(e,t,r),e.isGroup&&e.traverse(function(n){qI(n,t,r)})}function I0(e,t){switch(t){case"emphasis":e.hoverState=BS;break;case"normal":e.hoverState=V2;break;case"blur":e.hoverState=rg;break;case"select":e.selected=!0}}function trt(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function ert(e,t,r,n){var a=r&&bt(r,"select")>=0,i=!1;if(e instanceof Et){var o=iU(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Df(s)||Df(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=F({},n),u=F({},u),u.fill=s):!Df(u.fill)&&Df(s)?(i=!0,n=F({},n),u=F({},u),u.fill=T0(s)):!Df(u.stroke)&&Df(l)&&(i||(n=F({},n),u=F({},u)),u.stroke=T0(l)),n.style=u}}if(n&&n.z2==null){i||(n=F({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??Ih)}return n}function rrt(e,t,r){if(r&&r.z2==null){r=F({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Ket)}return r}function nrt(e,t,r){var n=bt(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:trt(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=F({},r),o=F({opacity:n?a:i.opacity*.1},o),r.style=o),r}function Ab(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return ert(this,e,t,r);if(e==="blur")return nrt(this,e,r);if(e==="select")return rrt(this,e,r)}return r}function Nu(e){e.stateProxy=Ab;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ab),r&&(r.stateProxy=Ab)}function KI(e,t){!hU(e,t)&&!e.__highByOuter&&jo(e,oU)}function QI(e,t){!hU(e,t)&&!e.__highByOuter&&jo(e,sU)}function Oo(e,t){e.__highByOuter|=1<<(t||0),jo(e,oU)}function Ro(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&jo(e,sU)}function uU(e){jo(e,H2)}function U2(e){jo(e,lU)}function fU(e){jo(e,Qet)}function cU(e){jo(e,Jet)}function hU(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vU(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=B2(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){lU(u)}),s&&r.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function hA(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&U2(h)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||H2(g)}),Er(t))i(u.getData(),t);else if(dt(t))for(var d=Nt(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),B2(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function vA(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){B2(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){H2(i)})}}}function art(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=Iu(a,t);i=(Y(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=mt(o);hA(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);f!=null&&hA(n,f,c,r)}}}function F2(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(mt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function irt(e,t,r){var n=mt(e),a=F2(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&vA(n.componentMainType,n.componentIndex,r),D(i,function(s){return KI(s,t)})):(hA(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&vA(n.componentMainType,n.componentIndex,r),KI(e,t))}function ort(e,t,r){vU(r);var n=mt(e),a=F2(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?D(a,function(i){return QI(i,t)}):QI(e,t)}function srt(e,t,r){if(pA(t)){var n=t.dataType,a=e.getData(n),i=Iu(a,t);Y(i)||(i=[i]),e[t.type===R0?"toggleSelect":t.type===O0?"select":"unselect"](i,n)}}function JI(e){var t=e.getAllData();D(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?fU(i):cU(i)})})}function lrt(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();D(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Os(e,t,r){su(e,!0),jo(e,Nu),dA(e,t,r)}function urt(e){su(e,!1)}function ye(e,t,r,n){n?urt(e):Os(e,t,r)}function dA(e,t,r){var n=mt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var tP=["emphasis","blur","select"],frt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function tr(e,t,r,n){r=r||"itemStyle";for(var a=0;a<tP.length;a++){var i=tP[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[frt[r]]()}}function su(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function ap(e){return!!(e&&e.__highDownDispatcher)}function crt(e,t,r){var n=mt(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function hrt(e){var t=$I[e];return t==null&&ZI<=32&&(t=$I[e]=ZI++),t}function pA(e){var t=e.type;return t===O0||t===cA||t===R0}function eP(e){var t=e.type;return t===pu||t===Am}function vrt(e){var t=iU(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Lf=Ii.CMD,drt=[[],[],[]],rP=Math.sqrt,prt=Math.atan2;function dU(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,f=Lf.M,c=Lf.C,h=Lf.L,v=Lf.R,d=Lf.A,p=Lf.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case f:i=1;break;case h:i=1;break;case c:i=3;break;case p:i=2;break;case d:var g=t[4],y=t[5],m=rP(t[0]*t[0]+t[1]*t[1]),_=rP(t[2]*t[2]+t[3]*t[3]),S=prt(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=g,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case v:u[0]=r[o++],u[1]=r[o++],Le(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Le(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var b=drt[l];b[0]=r[o++],b[1]=r[o++],Le(b,b,t),r[s++]=b[0],r[s++]=b[1]}}e.increaseVersion()}}var Mb=Math.sqrt,$g=Math.sin,qg=Math.cos,vv=Math.PI;function nP(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function gA(e,t){return(e[0]*t[0]+e[1]*t[1])/(nP(e)*nP(t))}function aP(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(gA(e,t))}function iP(e,t,r,n,a,i,o,s,l,u,f){var c=l*(vv/180),h=qg(c)*(e-r)/2+$g(c)*(t-n)/2,v=-1*$g(c)*(e-r)/2+qg(c)*(t-n)/2,d=h*h/(o*o)+v*v/(s*s);d>1&&(o*=Mb(d),s*=Mb(d));var p=(a===i?-1:1)*Mb((o*o*(s*s)-o*o*(v*v)-s*s*(h*h))/(o*o*(v*v)+s*s*(h*h)))||0,g=p*o*v/s,y=p*-s*h/o,m=(e+r)/2+qg(c)*g-$g(c)*y,_=(t+n)/2+$g(c)*g+qg(c)*y,S=aP([1,0],[(h-g)/o,(v-y)/s]),b=[(h-g)/o,(v-y)/s],x=[(-1*h-g)/o,(-1*v-y)/s],w=aP(b,x);if(gA(b,x)<=-1&&(w=vv),gA(b,x)>=1&&(w=0),w<0){var T=Math.round(w/vv*1e6)/1e6;w=vv*2+T%2*vv}f.addData(u,m,_,o,s,S,w,c,i)}var grt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,yrt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mrt(e){var t=new Ii;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=Ii.CMD,l=e.match(grt);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,v=f.match(yrt)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=r,C=n,A=void 0,M=void 0;switch(c){case"l":r+=v[g++],n+=v[g++],h=s.L,t.addData(h,r,n);break;case"L":r=v[g++],n=v[g++],h=s.L,t.addData(h,r,n);break;case"m":r+=v[g++],n+=v[g++],h=s.M,t.addData(h,r,n),a=r,i=n,c="l";break;case"M":r=v[g++],n=v[g++],h=s.M,t.addData(h,r,n),a=r,i=n,c="L";break;case"h":r+=v[g++],h=s.L,t.addData(h,r,n);break;case"H":r=v[g++],h=s.L,t.addData(h,r,n);break;case"v":n+=v[g++],h=s.L,t.addData(h,r,n);break;case"V":n=v[g++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),r=v[g-2],n=v[g-1];break;case"c":h=s.C,t.addData(h,v[g++]+r,v[g++]+n,v[g++]+r,v[g++]+n,v[g++]+r,v[g++]+n),r+=v[g-2],n+=v[g-1];break;case"S":y=r,m=n,A=t.len(),M=t.data,o===s.C&&(y+=r-M[A-4],m+=n-M[A-3]),h=s.C,T=v[g++],C=v[g++],r=v[g++],n=v[g++],t.addData(h,y,m,T,C,r,n);break;case"s":y=r,m=n,A=t.len(),M=t.data,o===s.C&&(y+=r-M[A-4],m+=n-M[A-3]),h=s.C,T=r+v[g++],C=n+v[g++],r+=v[g++],n+=v[g++],t.addData(h,y,m,T,C,r,n);break;case"Q":T=v[g++],C=v[g++],r=v[g++],n=v[g++],h=s.Q,t.addData(h,T,C,r,n);break;case"q":T=v[g++]+r,C=v[g++]+n,r+=v[g++],n+=v[g++],h=s.Q,t.addData(h,T,C,r,n);break;case"T":y=r,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=r-M[A-4],m+=n-M[A-3]),r=v[g++],n=v[g++],h=s.Q,t.addData(h,y,m,r,n);break;case"t":y=r,m=n,A=t.len(),M=t.data,o===s.Q&&(y+=r-M[A-4],m+=n-M[A-3]),r+=v[g++],n+=v[g++],h=s.Q,t.addData(h,y,m,r,n);break;case"A":_=v[g++],S=v[g++],b=v[g++],x=v[g++],w=v[g++],T=r,C=n,r=v[g++],n=v[g++],h=s.A,iP(T,C,r,n,x,w,_,S,b,h,t);break;case"a":_=v[g++],S=v[g++],b=v[g++],x=v[g++],w=v[g++],T=r,C=n,r+=v[g++],n+=v[g++],h=s.A,iP(T,C,r,n,x,w,_,S,b,h,t);break}}(c==="z"||c==="Z")&&(h=s.Z,t.addData(h),r=a,n=i),o=h}return t.toStatic(),t}var pU=function(e){ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Et);function gU(e){return e.setData!=null}function yU(e,t){var r=mrt(e),n=F({},t);return n.buildPath=function(a){var i=gU(a);if(i&&a.canSave()){a.appendPath(r);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&r.rebuildPath(o,1)}},n.applyTransform=function(a){dU(r,a),this.dirtyShape()},n}function mU(e,t){return new pU(yU(e,t))}function _rt(e,t){var r=yU(e,t),n=function(a){ve(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(pU);return n}function Srt(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new Et(t);return o.createPathProxy(),o.buildPath=function(s){if(gU(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Y2(e,t){t=t||{};var r=new Et;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?dU(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var brt=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Vi=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new brt},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Et);Vi.prototype.type="circle";var xrt=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),ng=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new xrt},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),r.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),r.closePath()},t}(Et);ng.prototype.type="ellipse";var _U=Math.PI,Db=_U*2,El=Math.sin,Ef=Math.cos,wrt=Math.acos,Nr=Math.atan2,oP=Math.abs,Cd=Math.sqrt,qv=Math.max,ei=Math.min,Ca=1e-4;function Trt(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,h=c*l-f*u;if(!(h*h<Ca))return h=(f*(t-i)-c*(e-a))/h,[e+h*l,t+h*u]}function Kg(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/Cd(s*s+l*l),f=u*l,c=-u*s,h=e+f,v=t+c,d=r+f,p=n+c,g=(h+d)/2,y=(v+p)/2,m=d-h,_=p-v,S=m*m+_*_,b=a-i,x=h*p-d*v,w=(_<0?-1:1)*Cd(qv(0,b*b*S-x*x)),T=(x*_-m*w)/S,C=(-x*m-_*w)/S,A=(x*_+m*w)/S,M=(-x*m+_*w)/S,E=T-g,L=C-y,R=A-g,P=M-y;return E*E+L*L>R*R+P*P&&(T=A,C=M),{cx:T,cy:C,x0:-f,y0:-c,x1:T*(a/b-1),y1:C*(a/b-1)}}function Crt(e){var t;if(Y(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Art(e,t){var r,n=qv(t.r,0),a=qv(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,h=!!t.clockwise,v=oP(u-l),d=v>Db&&v%Db;if(d>Ca&&(v=d),!(n>Ca))e.moveTo(f,c);else if(v>Db-Ca)e.moveTo(f+n*Ef(l),c+n*El(l)),e.arc(f,c,n,l,u,!h),a>Ca&&(e.moveTo(f+a*Ef(u),c+a*El(u)),e.arc(f,c,a,u,l,h));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,A=void 0,M=void 0,E=void 0,L=void 0,R=void 0,P=n*Ef(l),O=n*El(l),N=a*Ef(u),I=a*El(u),k=v>Ca;if(k){var B=t.cornerRadius;B&&(r=Crt(B),p=r[0],g=r[1],y=r[2],m=r[3]);var H=oP(n-a)/2;if(_=ei(H,y),S=ei(H,m),b=ei(H,p),x=ei(H,g),C=w=qv(_,S),A=T=qv(b,x),(w>Ca||T>Ca)&&(M=n*Ef(u),E=n*El(u),L=a*Ef(l),R=a*El(l),v<_U)){var U=Trt(P,O,L,R,M,E,N,I);if(U){var X=P-U[0],q=O-U[1],st=M-U[0],Dt=E-U[1],lt=1/El(wrt((X*st+q*Dt)/(Cd(X*X+q*q)*Cd(st*st+Dt*Dt)))/2),rt=Cd(U[0]*U[0]+U[1]*U[1]);C=ei(w,(n-rt)/(lt+1)),A=ei(T,(a-rt)/(lt-1))}}}if(!k)e.moveTo(f+P,c+O);else if(C>Ca){var et=ei(y,C),at=ei(m,C),$=Kg(L,R,P,O,n,et,h),tt=Kg(M,E,N,I,n,at,h);e.moveTo(f+$.cx+$.x0,c+$.cy+$.y0),C<w&&et===at?e.arc(f+$.cx,c+$.cy,C,Nr($.y0,$.x0),Nr(tt.y0,tt.x0),!h):(et>0&&e.arc(f+$.cx,c+$.cy,et,Nr($.y0,$.x0),Nr($.y1,$.x1),!h),e.arc(f,c,n,Nr($.cy+$.y1,$.cx+$.x1),Nr(tt.cy+tt.y1,tt.cx+tt.x1),!h),at>0&&e.arc(f+tt.cx,c+tt.cy,at,Nr(tt.y1,tt.x1),Nr(tt.y0,tt.x0),!h))}else e.moveTo(f+P,c+O),e.arc(f,c,n,l,u,!h);if(!(a>Ca)||!k)e.lineTo(f+N,c+I);else if(A>Ca){var et=ei(p,A),at=ei(g,A),$=Kg(N,I,M,E,a,-at,h),tt=Kg(P,O,L,R,a,-et,h);e.lineTo(f+$.cx+$.x0,c+$.cy+$.y0),A<T&&et===at?e.arc(f+$.cx,c+$.cy,A,Nr($.y0,$.x0),Nr(tt.y0,tt.x0),!h):(at>0&&e.arc(f+$.cx,c+$.cy,at,Nr($.y0,$.x0),Nr($.y1,$.x1),!h),e.arc(f,c,a,Nr($.cy+$.y1,$.cx+$.x1),Nr(tt.cy+tt.y1,tt.cx+tt.x1),h),et>0&&e.arc(f+tt.cx,c+tt.cy,et,Nr(tt.y1,tt.x1),Nr(tt.y0,tt.x0),!h))}else e.lineTo(f+N,c+I),e.arc(f,c,a,u,l,h)}e.closePath()}}}var Mrt=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Rr=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Mrt},t.prototype.buildPath=function(r,n){Art(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Et);Rr.prototype.type="sector";var Drt=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Ph=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Drt},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(Et);Ph.prototype.type="ring";function Lrt(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,v=e.length;h<v;h++)lo(f,f,e[h]),uo(c,c,e[h]);lo(f,f,n[0]),uo(c,c,n[1])}for(var h=0,v=e.length;h<v;h++){var d=e[h];if(r)l=e[h?h-1:v-1],u=e[(h+1)%v];else if(h===0||h===v-1){a.push(Ci(e[h]));continue}else l=e[h-1],u=e[h+1];gs(i,u,l),md(i,i,t);var p=m0(d,l),g=m0(d,u),y=p+g;y!==0&&(p/=y,g/=y),md(o,i,-p),md(s,i,g);var m=kC([],d,o),_=kC([],d,s);n&&(uo(m,m,f),lo(m,m,c),uo(_,_,f),lo(_,_,c)),a.push(m),a.push(_)}return r&&a.push(a.shift()),a}function SU(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=Lrt(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var Ert=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ir=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ert},t.prototype.buildPath=function(r,n){SU(r,n,!0)},t}(Et);Ir.prototype.type="polygon";var Ort=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),_r=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ort},t.prototype.buildPath=function(r,n){SU(r,n,!1)},t}(Et);_r.prototype.type="polyline";var Rrt={},Irt=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Be=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Irt},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=zS(Rrt,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Et);Be.prototype.type="line";var tn=[],Prt=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function sP(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?cI:ar)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?cI:ar)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?FC:dr)(e.x1,e.cpx1,e.x2,t),(r?FC:dr)(e.y1,e.cpy1,e.y2,t)]}var Nh=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Prt},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(a,i),f==null||c==null?(h<1&&(Kd(a,l,o,h,tn),l=tn[1],o=tn[2],Kd(i,u,s,h,tn),u=tn[1],s=tn[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Ws(a,l,f,o,h,tn),l=tn[1],f=tn[2],o=tn[3],Ws(i,u,c,s,h,tn),u=tn[1],c=tn[2],s=tn[3]),r.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(r){return sP(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=sP(this.shape,r,!0);return sf(n,n)},t}(Et);Nh.prototype.type="bezier-curve";var Nrt=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ag=function(e){ve(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Nrt},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+a,c*o+i),r.arc(a,i,o,s,l,!u)},t}(Et);ag.prototype.type="arc";var ig=function(e){ve(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Et.prototype.getBoundingRect.call(this)},t}(Et),bU=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),lf=function(e){ve(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(bU),j2=function(e){ve(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(bU),Lb=Math.min,krt=Math.max,Qg=Math.abs,Ol=[0,0],Rl=[0,0],vr=sH(),Jg=vr.minTv,ty=vr.maxTv,xU=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new gt;for(var n=0;n<2;n++)this._axes[n]=new gt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);gt.sub(a[0],n[1],n[0]),gt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r,n){var a=!0,i=!r;return r&&gt.set(r,0,0),vr.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(a=!1,i)||!i&&!vr.negativeSize&&gt.copy(r,a?vr.useDir?vr.dirMinTv:Jg:ty),a},e.prototype._intersectCheckOneSide=function(t,r,n,a){for(var i=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Ol),t._getProjMinMaxOnAxis(o,r._corners,Rl),vr.negativeSize||Ol[1]<Rl[0]||Ol[0]>Rl[1]){if(i=!1,vr.negativeSize||n)return i;var l=Qg(Rl[0]-Ol[1]),u=Qg(Ol[0]-Rl[1]);Lb(l,u)>ty.len()&&(l<u?gt.scale(ty,s,-l*a):gt.scale(ty,s,u*a))}else if(!n){var l=Qg(Rl[0]-Ol[1]),u=Qg(Ol[0]-Rl[1]);(vr.useDir||Lb(l,u)<Jg.len())&&((l<u||!vr.bidirectional)&&(gt.scale(Jg,s,l*a),vr.useDir&&vr.calcDirMTV()),(l>=u||!vr.bidirectional)&&(gt.scale(Jg,s,-u*a),vr.useDir&&vr.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(a)+i[t];s=Lb(f,s),l=krt(f,l)}n[0]=s+vr.touchThreshold,n[1]=l-vr.touchThreshold,vr.negativeSize=n[1]<n[0]},e}(),zrt=[],wU=function(e){ve(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new yt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(zrt)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(ya),TU=Mt();function kh(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=ot(n.duration,200),f=ot(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),ft(c)&&(c=c(r,a)),ft(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function W2(e,t,r,n,a,i,o){var s=!1,l;ft(a)?(o=i,i=a,a=null):dt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=kh(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function Ht(e,t,r,n,a,i){W2("update",e,t,r,n,a,i)}function fe(e,t,r,n,a,i){W2("enter",e,t,r,n,a,i)}function Pc(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function Xs(e,t,r,n,a,i){Pc(e)||W2("leave",e,t,r,n,a,i)}function lP(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Xs(e,{style:{opacity:0}},t,r,n)}function So(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||lP(a,t,r,n)}):lP(e,t,r,n)}function ma(e){TU(e).oldStyle=e.style}function Brt(e){return TU(e).oldStyle}var yA={},_t=["x","y"],Fe=["width","height"];function CU(e){return Et.extend(e)}var Vrt=_rt;function AU(e,t){return Vrt(e,t)}function ba(e,t){yA[e]=t}function ip(e){if(yA.hasOwnProperty(e))return yA[e]}function eh(e,t,r,n){var a=mU(e,t);return r&&(n==="center"&&(r=MU(r,a.getBoundingRect())),Z2(a,r)),a}function X2(e,t,r){var n=new cr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(MU(t,i))}}});return n}function MU(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Cn=Srt;function Z2(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function rh(e,t){return zS(e,e,{lineWidth:t}),e}function Grt(e,t){return rU(e,e,t),e}var Mm=En;function Rs(e,t){for(var r=Jp([]);e&&e!==t;)ka(r,e.getLocalTransform(),r),e=e.parent;return r}function Ba(e,t,r){return t&&!Er(t)&&(t=fo.getLocalTransform(t)),r&&(t=ga([],t)),Le([],e,t)}function GS(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:vi(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:vi(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=Ba(i,t,r),vi(i[0])>vi(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function uP(e){return!e.isGroup}function Hrt(e){return e.shape!=null}function og(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){uP(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Hrt(o)&&(s.shape=ct(o.shape)),s}var i=n(e);t.traverse(function(o){if(uP(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Ht(o,l,r,mt(o).dataIndex)}}})}function $2(e,t){return j(e,function(r){var n=r[0];n=ke(n,t.x),n=Rn(n,t.x+t.width);var a=r[1];return a=ke(a,t.y),a=Rn(a,t.y+t.height),[n,a]})}function DU(e,t){var r=ke(e.x,t.x),n=Rn(e.x+e.width,t.x+t.width),a=ke(e.y,t.y),i=Rn(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function zh(e,t,r){var n=F({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),vt(a,r),new cr(n)):eh(e.replace("path://",""),n,r,"center")}function Kv(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(LU(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function LU(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,h=Eb(f,c,l,u);if(Urt(h))return!1;var v=e-a,d=t-i,p=Eb(v,d,l,u)/h;if(p<0||p>1)return!1;var g=Eb(v,d,f,c)/h;return!(g<0||g>1)}function Eb(e,t,r,n){return e*n-r*t}function Urt(e){return e<=1e-6&&e>=-1e-6}function ku(e,t,r,n,a){return t==null||(Bt(t)?me[0]=me[1]=me[2]=me[3]=t:(me[0]=t[0],me[1]=t[1],me[2]=t[2],me[3]=t[3]),n&&(me[0]=ke(0,me[0]),me[1]=ke(0,me[1]),me[2]=ke(0,me[2]),me[3]=ke(0,me[3])),r&&(me[0]=-me[0],me[1]=-me[1],me[2]=-me[2],me[3]=-me[3]),fP(e,me,"x","width",3,1,a&&a[0]||0),fP(e,me,"y","height",0,2,a&&a[1]||0)),e}var me=[0,0,0,0];function fP(e,t,r,n,a,i,o){var s=t[i]+t[a],l=e[n];e[n]+=s,o=ke(0,Rn(o,l)),e[n]<o?(e[n]=o,e[r]+=t[a]>=0?-t[a]:t[i]>=0?l+t[i]:vi(s)>1e-8?(l-o)*t[a]/s:0):e[r]-=t[a]}function Wo(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=Q(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&D(Nt(l),function(f){nt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=mt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:vt({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function mA(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function ll(e,t){if(e)if(Y(e))for(var r=0;r<e.length;r++)mA(e[r],t);else mA(e,t)}function q2(e){return!e||vi(e[1])<ey&&vi(e[2])<ey||vi(e[0])<ey&&vi(e[3])<ey}var ey=1e-5;function op(e,t){return e?yt.copy(e,t):t.clone()}function K2(e,t){return t?tg(e||sr(),t):void 0}function zu(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function EU(e){var t=-1/0,r=1/0;mA(e,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function HS(e,t,r){OU(e,t,r,-1/0)}function OU(e,t,r,n){if(e.ignoreModelZ)return n;var a=e.getTextContent(),i=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l<s.length;l++)n=ke(OU(s[l],t,r,n),n);else e.z=t,e.zlevel=r,n=ke(e.z2||0,n);if(a&&(a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+2)),i){var u=e.textGuideLineConfig;i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}ba("circle",Vi);ba("ellipse",ng);ba("sector",Rr);ba("ring",Ph);ba("polygon",Ir);ba("polyline",_r);ba("rect",Ct);ba("line",Be);ba("bezierCurve",Nh);ba("arc",ag);const uf=Object.freeze(Object.defineProperty({__proto__:null,Arc:ag,BezierCurve:Nh,BoundingRect:yt,Circle:Vi,CompoundPath:ig,Ellipse:ng,Group:ht,Image:cr,IncrementalDisplayable:wU,Line:Be,LinearGradient:lf,OrientedBoundingRect:xU,Path:Et,Point:gt,Polygon:Ir,Polyline:_r,RadialGradient:j2,Rect:Ct,Ring:Ph,Sector:Rr,Text:zt,WH:Fe,XY:_t,applyTransform:Ba,calcZ2Range:EU,clipPointsByRect:$2,clipRectByRect:DU,createIcon:zh,ensureCopyRect:op,ensureCopyTransform:K2,expandOrShrinkRect:ku,extendPath:AU,extendShape:CU,getShapeClass:ip,getTransform:Rs,groupTransition:og,initProps:fe,isBoundingRectAxisAligned:q2,isElementRemoved:Pc,lineLineIntersect:LU,linePolygonIntersect:Kv,makeImage:X2,makePath:eh,mergePath:Cn,registerShape:ba,removeElement:Xs,removeElementWithFadeOut:So,resizePath:Z2,retrieveZInfo:zu,setTooltipConfig:Wo,subPixelOptimize:Mm,subPixelOptimizeLine:rh,subPixelOptimizeRect:Grt,transformDirection:GS,traverseElements:ll,traverseUpdateZ:HS,updateProps:Ht},Symbol.toStringTag,{value:"Module"}));var US={};function RU(e,t){for(var r=0;r<Qr.length;r++){var n=Qr[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function _A(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ft(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<Qr.length;u++){var f=Qr[u],c=t[f];l[f]=ot(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function ur(e,t,r,n){r=r||US;for(var a=e instanceof zt,i=!1,o=0;o<np.length;o++){var s=t[np[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new zt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=_A(r,t),f=t.normal,c=!!f.getShallow("show"),h=ee(f,n&&n.normal,r,!1,!a);h.text=u.normal,a||e.setTextConfig(P0(f,r,!1));for(var o=0;o<Qr.length;o++){var v=Qr[o],s=t[v];if(s){var d=l.ensureState(v),p=!!ot(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=ee(s,n&&n[v],r,!0,!a),d.style.text=u[v],!a){var g=e.ensureState(v);g.textConfig=P0(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(Bh(l).setLabelText=function(y){var m=_A(r,t,y);RU(l,m)})}else l&&(l.ignore=!0);e.dirty()}function er(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Qr.length;n++){var a=Qr[n];r[a]=e.getModel([a,t])}return r}function ee(e,t,r,n,a){var i={};return Frt(i,e,r,n,a),t&&F(i,t),i}function P0(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=ot(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function Frt(e,t,r,n,a){r=r||US;var i=t.ecModel,o=i&&i.option.textStyle,s=Yrt(t),l;if(s){l={};var u="richInheritPlainLabel",f=ot(t.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=t.getModel(["rich",c]);dP(l[c]={},h,o,t,f,r,n,a,!1,!0)}}l&&(e.rich=l);var v=t.get("overflow");v&&(e.overflow=v);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var p=e,g=t.get("minMargin");if(g!=null)g=Bt(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=pc.minMargin;else{var y=t.get("textMargin");y!=null&&(p.margin=Kp(y),p.__marginType=pc.textMargin)}dP(e,t,o,null,null,r,n,a,!0,!1)}function Yrt(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||US).rich;if(r){t=t||{};for(var n=Nt(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var cP=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],hP=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],vP=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function dP(e,t,r,n,a,i,o,s,l,u){r=!o&&r||US;var f=i&&i.inheritColor,c=t.getShallow("color"),h=t.getShallow("textBorderColor"),v=ot(t.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||r.color,h=h||r.textBorderColor),c!=null&&(e.fill=c),h!=null&&(e.stroke=h);var d=ot(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var p=ot(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var g=ot(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(e.opacity=v),!o&&!s&&e.fill==null&&i.inheritColor&&(e.fill=i.inheritColor);for(var y=0;y<cP.length;y++){var m=cP[y],_=a!==!1&&n?un(t.getShallow(m),n.getShallow(m),r[m]):ot(t.getShallow(m),r[m]);_!=null&&(e[m]=_)}for(var y=0;y<hP.length;y++){var m=hP[y],_=t.getShallow(m);_!=null&&(e[m]=_)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<vP.length;y++){var m=vP[y],_=t.getShallow(m);_!=null&&(e[m]=_)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function Q2(e,t){var r=t&&t.getModel("textStyle");return Mn([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Bh=Mt();function IU(e,t,r,n){if(e){var a=Bh(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function PU(e,t,r,n,a){var i=Bh(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ot(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=WH(r,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=_A({labelDataIndex:t,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);RU(e,h)}e.percent=0,(i.prevValue==null?fe:Ht)(e,{percent:1},n,t,null,u)}var pc={minMargin:1,textMargin:2},jrt=["textStyle","color"],Ob=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Rb=new zt,Wrt=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(jrt):null)},e.prototype.getFont=function(){return Q2({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ob.length;n++)r[Ob[n]]=this.getShallow(Ob[n]);return Rb.useStyle(r),Rb.update(),Rb.getBoundingRect()},e}(),NU=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Xrt=Pu(NU),Zrt=function(){function e(){}return e.prototype.getLineStyle=function(t){return Xrt(this,t)},e}(),kU=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],$rt=Pu(kU),qrt=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return $rt(this,t,r)},e}(),Lt=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){xt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(ct(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!It.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();N2(Lt);iet(Lt);Ee(Lt,Zrt);Ee(Lt,qrt);Ee(Lt,cet);Ee(Lt,Wrt);var Krt=Math.round(Math.random()*10);function Vh(e){return[e||"",Krt++].join("_")}function Qrt(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=di(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=di(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function Jrt(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(D(i,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),D(d.successor,p?y:g)}D(h,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){h[m]=!0,g(m)}};function r(i){var o={},s=[];return D(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),D(c,function(h){bt(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);bt(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return D(i,function(l){bt(o,l)>=0&&s.push(l)}),s}}function ul(e,t){return xt(xt({},e,!0),t,!0)}const tnt={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:". "}}}},ent={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var N0="ZH",J2="EN",Nc=J2,Dm={},tL={},zU=It.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Nc).toUpperCase();return e.indexOf(N0)>-1?N0:Nc}():Nc;function eL(e,t){e=e.toUpperCase(),tL[e]=new Lt(t),Dm[e]=t}function rnt(e){if(Q(e)){var t=Dm[e.toUpperCase()]||{};return e===N0||e===J2?ct(t):xt(ct(t),ct(Dm[Nc]),!1)}else return xt(ct(e),ct(Dm[Nc]),!1)}function SA(e){return tL[e]}function nnt(){return tL[Nc]}eL(J2,tnt);eL(N0,ent);var bA=null;function ant(e){bA||(bA=e)}function Ue(){return bA}var rL=1e3,nL=rL*60,Ad=nL*60,ia=Ad*24,pP=ia*365,int={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Lm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},ont="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ry="{yyyy}-{MM}-{dd}",gP={year:"{yyyy}",month:"{yyyy}-{MM}",day:ry,hour:ry+" "+Lm.hour,minute:ry+" "+Lm.minute,second:ry+" "+Lm.second,millisecond:ont},gn=["year","month","day","hour","minute","second","millisecond"],snt=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function lnt(e){return!Q(e)&&!ft(e)?unt(e):e}function unt(e){e=e||{};var t={},r=!0;return D(gn,function(n){r&&(r=e[n]==null)}),D(gn,function(n,a){var i=e[n];t[n]={};for(var o=null,s=a;s>=0;s--){var l=gn[s],u=dt(i)&&!Y(i)?i[l]:i,f=void 0;Y(u)?(f=u.slice(),o=f[0]||""):Q(u)?(o=u,f=[o]):(o==null?o=Lm[n]:int[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function Xr(e,t){return e+="","0000".substr(0,t-e.length)+e}function Md(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function fnt(e){return e===Md(e)}function cnt(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function sg(e,t,r,n){var a=Bi(e),i=a[BU(r)](),o=a[aL(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[iL(r)](),u=a["get"+(r?"UTC":"")+"Day"](),f=a[oL(r)](),c=(f-1)%12+1,h=a[sL(r)](),v=a[lL(r)](),d=a[uL(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof Lt?n:SA(n||zU)||nnt(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Xr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Xr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Xr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Xr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Xr(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Xr(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Xr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Xr(d,3)).replace(/{S}/g,d+"")}function hnt(e,t,r,n,a){var i=null;if(Q(r))i=r;else if(ft(r)){var o={time:e.time,level:e.time.level},s=Ue();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),i=r(e.value,t,o)}else{var l=e.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=gc(e.value,a);i=r[f][f][0]}}return sg(new Date(e.value),i,a,n)}function gc(e,t){var r=Bi(e),n=r[aL(t)]()+1,a=r[iL(t)](),i=r[oL(t)](),o=r[sL(t)](),s=r[lL(t)](),l=r[uL(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function k0(e,t,r){switch(t){case"year":e[VU(r)](0);case"month":e[GU(r)](1);case"day":e[HU(r)](0);case"hour":e[UU(r)](0);case"minute":e[FU(r)](0);case"second":e[YU(r)](0)}return e}function BU(e){return e?"getUTCFullYear":"getFullYear"}function aL(e){return e?"getUTCMonth":"getMonth"}function iL(e){return e?"getUTCDate":"getDate"}function oL(e){return e?"getUTCHours":"getHours"}function sL(e){return e?"getUTCMinutes":"getMinutes"}function lL(e){return e?"getUTCSeconds":"getSeconds"}function uL(e){return e?"getUTCMilliseconds":"getMilliseconds"}function vnt(e){return e?"setUTCFullYear":"setFullYear"}function VU(e){return e?"setUTCMonth":"setMonth"}function GU(e){return e?"setUTCDate":"setDate"}function HU(e){return e?"setUTCHours":"setHours"}function UU(e){return e?"setUTCMinutes":"setMinutes"}function FU(e){return e?"setUTCSeconds":"setSeconds"}function YU(e){return e?"setUTCMilliseconds":"setMilliseconds"}function dnt(e,t,r,n,a,i,o,s){var l=new zt({style:{text:e,font:t,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function fL(e){if(!R2(e))return Q(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function cL(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Gh=Kp;function xA(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Mn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Bi(e):e;if(isNaN(+l)){if(s)return"-"}else return sg(l,n,r)}if(t==="ordinal")return g0(e)?a(e):Bt(e)&&i(e)?e+"":"-";var u=Ri(e);return i(u)?fL(u):g0(e)?a(e):typeof e=="boolean"?e+"":"-"}var yP=["a","b","c","d","e","f","g"],Ib=function(e,t){return"{"+e+(t??"")+"}"};function hL(e,t,r){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=yP[i];e=e.replace(Ib(o),Ib(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(Ib(yP[l],s),r?Br(u):u)}return e}function pnt(e,t,r){return D(t,function(n,a){e=e.replace("{"+a+"}",n)}),e}function jU(e,t){var r=Q(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Br(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Br(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function gnt(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
132
+ yyyy`);var n=Bi(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),f=n[a+"Seconds"](),c=n[a+"Milliseconds"]();return e=e.replace("MM",Xr(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Xr(i%100+"",2)).replace("dd",Xr(s,2)).replace("d",s).replace("hh",Xr(l,2)).replace("h",l).replace("mm",Xr(u,2)).replace("m",u).replace("ss",Xr(f,2)).replace("s",f).replace("SSS",Xr(c,3)),e}function ynt(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Bu(e,t){return t=t||"transparent",Q(e)?e:dt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function z0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Em={},Pb={},Hh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(Em),this._normalMasterList=n(Pb);function n(a,i){var o=[];return D(a,function(s,l){var u=s.create(t,r);o=o.concat(u||[])}),o}},e.prototype.update=function(t,r){D(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){Em[t]=r;return}Pb[t]=r},e.get=function(t){return Pb[t]||Em[t]},e}();function mnt(e){return!!Em[e]}var wA={coord:1,coord2:2};function _nt(e){WU.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var WU=it();function Snt(e){var t=e.getShallow("coord",!0),r=wA.coord;if(t==null){var n=WU.get(e.type);n&&n.getCoord2&&(r=wA.coord2,t=n.getCoord2(e))}return{coord:t,from:r}}var ui={none:0,dataCoordSys:1,boxCoordSys:2};function XU(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),a=ui.none;if(r){var i=e.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=ui.dataCoordSys,i||(a=ui.none)):n==="box"&&(a=ui.boxCoordSys,!i&&!mnt(r)&&(a=ui.none))}return{coordSysType:r,kind:a}}function lg(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,a=e.isDefaultDataCoordSys;e.allowNotFound;var i=XU(t),o=i.kind,s=i.coordSysType;if(a&&o!==ui.dataCoordSys&&(o=ui.dataCoordSys,s=r),o===ui.none||s!==r)return!1;var l=n(r,t);return l?(o===ui.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var ZU=function(e,t){var r=t.getReferringComponents(e,Me).models[0];return r&&r.coordinateSystem},Om=D,$U=["left","right","top","bottom","width","height"],lu=[["width","left","right"],["height","top","bottom"]];function vL(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(e==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+r,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=v+r:o=d+r)})}var gu=vL;St(vL,"vertical");St(vL,"horizontal");function qU(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function bnt(e,t){var r=rr(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),a,i;if(r.type===Qv.point)i=r.refPoint,a=de(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=Y(o)?o:[o,o];a=de(n,r.refContainer),i=r.boxCoordFrom===wA.coord2?r.refPoint:[K(s[0],a.width)+a.x,K(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function KU(e,t){var r=bnt(e,t),n=r.viewRect,a=r.center,i=e.get("radius");Y(i)||(i=[0,i]);var o=K(n.width,t.getWidth()),s=K(n.height,t.getHeight()),l=Math.min(o,s),u=K(i[0],l/2),f=K(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function de(e,t,r){r=Gh(r||0);var n=t.width,a=t.height,i=K(e.left,n),o=K(e.top,a),s=K(e.right,n),l=K(e.bottom,a),u=K(e.width,n),f=K(e.height,a),c=r[2]+r[0],h=r[1]+r[3],v=e.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-f/2-r[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new yt((t.x||0)+i+r[3],(t.y||0)+o+r[0],u,f);return d.margin=r,d}function QU(e,t,r){var n=e.getShallow("preserveAspect",!0);if(!n)return t;var a=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(a))<1e-9)return t;var i=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=n==="cover";return a>r&&!l||a<r&&l?(s.width=t.height*r,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/r,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),de(s,t)}var Qv={rect:1,point:2};function rr(e,t,r){var n,a,i,o=e.boxCoordinateSystem,s;if(o){var l=Snt(e),u=l.coord,f=l.from;if(o.dataToLayout){i=Qv.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Qv.point,s=f,a=o.dataToPoint(u))}return i==null&&(i=Qv.rect),i===Qv.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function FS(e,t,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new yt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=de(vt({width:u.width,height:u.height},t),r,n),h=o?c.x-u.x:0,v=s?c.y-u.y:0;return l==="raw"?(i.x=h,i.y=v):(i.x+=h,i.y+=v),i===e&&e.markRedraw(),!0}function xnt(e,t){return e[lu[t][0]]!=null||e[lu[t][1]]!=null&&e[lu[t][2]]!=null}function sp(e){var t=e.layoutMode||e.constructor.layoutMode;return dt(t)?t:t?{type:t}:null}function Pi(e,t,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var a=o(lu[0],0),i=o(lu[1],1);l(lu[0],e,a),l(lu[1],e,i);function o(u,f){var c={},h=0,v={},d=0,p=2;if(Om(u,function(m){v[m]=e[m]}),Om(u,function(m){nt(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),n[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g<u.length;g++){var y=u[g];if(!nt(c,y)&&nt(e,y)){c[y]=e[y];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Om(u,function(h){f[h]=c[h]})}}function ff(e){return JU({},e)}function JU(e,t){return t&&e&&Om($U,function(r){nt(t,r)&&(e[r]=t[r])}),e}var wnt=Mt(),At=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=Vh("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=sp(this),i=a?ff(r):{},o=n.getTheme();xt(r,o.get(this.mainType)),xt(r,this.getDefaultOption()),a&&Pi(r,i,a)},t.prototype.mergeOption=function(r,n){xt(this.option,r,!0);var a=sp(this);a&&Pi(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!ret(r))return r.defaultOption;var n=wnt(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=xt(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return Rh(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){return qU(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Lt);ZH(At,Lt);RS(At);Qrt(At);Jrt(At,Tnt);function Tnt(e){var t=[];return D(At.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=j(t,function(r){return di(r).main}),e!=="dataset"&&bt(t,"dataset")<=0&&t.unshift("dataset"),t}var V={color:{},darkColor:{},size:{}},Re=V.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};F(Re,{primary:Re.neutral80,secondary:Re.neutral70,tertiary:Re.neutral60,quaternary:Re.neutral50,disabled:Re.neutral20,border:Re.neutral30,borderTint:Re.neutral20,borderShade:Re.neutral40,background:Re.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Re.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Re.neutral70,axisLineTint:Re.neutral40,axisTick:Re.neutral70,axisTickMinor:Re.neutral60,axisLabel:Re.neutral70,axisSplitLine:Re.neutral15,axisMinorSplitLine:Re.neutral05});for(var Il in Re)if(Re.hasOwnProperty(Il)){var mP=Re[Il];Il==="theme"?V.darkColor.theme=Re.theme.slice():Il==="highlight"?V.darkColor.highlight="rgba(255,231,130,0.4)":Il.indexOf("accent")===0?V.darkColor[Il]=_o(mP,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):V.darkColor[Il]=_o(mP,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}V.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var tF="";typeof navigator<"u"&&(tF=navigator.platform||"");var Of="rgba(0, 0, 0, 0.2)",eF=V.color.theme[0],Cnt=_o(eF,null,null,.9);const Ant={darkMode:"auto",colorBy:"series",color:V.color.theme,gradientColor:[Cnt,eF],aria:{decal:{decals:[{color:Of,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Of,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Of,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Of,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Of,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Of,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:tF.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 rF=it(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Hn="original",Sr="arrayRows",Un="objectRows",Za="keyedColumns",Is="typedArray",nF="unknown",Va="column",cf="row",br={Must:1,Might:2,Not:3},aF=Mt();function Mnt(e){aF(e).datasetMap=it()}function iF(e,t,r){var n={},a=pL(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=aF(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,f,c;e=e.slice(),D(e,function(p,g){var y=dt(p)?p:e[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});D(e,function(p,g){var y=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(n[y],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(n[y],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function dL(e,t,r){var n={},a=pL(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Un||i===Za)&&D(o,function(f,c){(dt(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},h=[],v=0,d=Math.min(5,r);v<d;v++){var p=sF(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var g=p===br.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&h[f.n]===br.Not)&&(f.n=v),y(f)&&h[f.n]!==br.Not)return f;g||(p===br.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function pL(e){var t=e.get("data",!0);if(!t)return Rh(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Me).models[0]}function Dnt(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Rh(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Me).models}function oF(e,t){return sF(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function sF(e,t,r,n,a,i){var o,s=5;if(Kr(e))return br.Not;var l,u;if(n){var f=n[i];dt(f)?(l=f.name,u=f.type):Q(f)&&(l=f)}if(u!=null)return u==="ordinal"?br.Must:br.Not;if(t===Sr){var c=e;if(r===cf){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[a+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[a+v];if(d&&(o=S(d[i]))!=null)return o}}else if(t===Un){var p=e;if(!l)return br.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Za){var y=e;if(!l)return br.Not;var h=y[l];if(!h||Kr(h))return br.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===Hn)for(var m=e,v=0;v<m.length&&v<s;v++){var g=m[v],_=Oh(g);if(!Y(_))return br.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=Q(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?br.Might:br.Not;if(x&&b!=="-")return br.Must}return br.Not}var TA=it();function Lnt(e,t){Or(TA.get(e)==null&&t),TA.set(e,t)}function Ent(e,t,r){var n=TA.get(t);if(!n)return r;var a=n(e);return a?r.concat(a):r}var _P=Mt(),Ont=Mt(),gL=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=ne(this.get("color",!0)),i=this.get("colorLayer",!0);return lF(this,_P,a,i,t,r,n)},e.prototype.clearColorPalette=function(){Int(this,_P)},e}();function CA(e,t,r,n){var a=ne(e.get(["aria","decal","decals"]));return lF(e,Ont,a,null,t,r,n)}function Rnt(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function lF(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?r:Rnt(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function Int(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ny,dv,SP,bP="\0_ec_inner",Pnt=1,yL=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Lt(i),this._locale=new Lt(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=TP(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,TP(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?SP(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&D(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=it(),u=n&&n.replaceMergeMainTypeMap;Mnt(this),D(r,function(c,h){c!=null&&(At.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?ct(c):xt(a[h],c,!0))}),u&&u.each(function(c,h){At.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),At.topologicalTravel(s,At.getAllClassMainTypes(),f,this);function f(c){var h=Ent(this,c,ne(r[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=FH(v,h,d);Xtt(p,c,At),a[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;D(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",C=At.getClass(c,S.keyInfo.subType,!T);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=F({componentIndex:b},S.keyInfo);x=new C(w,this,this,A),F(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),a[c]=g,i.set(c,y),o.set(c,m),c==="series"&&ny(this)}this._seriesIndices||ny(this)},t.prototype.getOption=function(){var r=ct(this.option);return D(r,function(n,a){if(At.hasClass(a)){for(var i=ne(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!rp(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[bP],r},t.prototype.setTheme=function(r){this._theme=new Lt(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],D(ne(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=xP("id",i,s):o!=null?l=xP("name",o,s):l=Ft(s,function(u){return!!u}),wP(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):Ft(this._componentsMap.get(a),function(u){return!!u});return l(wP(o,r));function s(u){var f=a+"Index",c=a+"Id",h=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:a,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?Ft(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ft(r)){var o=n,s=r;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=Q(r)?i.get(r):dt(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Qe(r,null);return Ft(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Ft(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Ft(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){dv(this),D(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){dv(this),D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return D(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return dv(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){dv(this);var a=[];D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=it(a)},t.prototype.restoreData=function(r){ny(this);var n=this._componentsMap,a=[];n.each(function(i,o){At.hasClass(o)&&a.push(o)}),At.topologicalTravel(a,At.getAllClassMainTypes(),function(i){D(n.get(i),function(o){o&&(i!=="series"||!Nnt(o,r))&&o.restoreData()})})},t.internalField=function(){ny=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=it(n)},dv=function(r){},SP=function(r,n){r.option={},r.option[bP]=Pnt,r._componentsMap=it({series:[]}),r._componentsCount=it();var a=n.aria;dt(a)&&a.enabled==null&&(a.enabled=!0),knt(n,r._theme.option),xt(n,Ant,!1),r._mergeOption(n,null)}}(),t}(Lt);function Nnt(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function knt(e,t){var r=e.color&&!e.colorLayer;D(t,function(n,a){a==="colorLayer"&&r||a==="color"&&e.color||At.hasClass(a)||(typeof n=="object"?e[a]=e[a]?xt(e[a],n,!1):ct(n):e[a]==null&&(e[a]=n))})}function xP(e,t,r){if(Y(t)){var n=it();return D(t,function(i){if(i!=null){var o=Qe(i,null);o!=null&&n.set(i,!0)}}),Ft(r,function(i){return i&&n.get(i[e])})}else{var a=Qe(t,null);return Ft(r,function(i){return i&&a!=null&&i[e]===a})}}function wP(e,t){return t.hasOwnProperty("subType")?Ft(e,function(r){return r&&r.subType===t.subType}):e}function TP(e){var t=it();return e&&D(ne(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Ee(yL,gL);var znt=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],uF=function(){function e(t){D(znt,function(r){this[r]=J(t[r],t)},this)}return e}(),Bnt=/^(min|max)?(.+)$/,Vnt=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(D(ne(t.series),function(o){o&&o.data&&Kr(o.data)&&$d(o.data)}),D(ne(t.dataset),function(o){o&&o.source&&Kr(o.source)&&$d(o.source)})),t=ct(t);var a=this._optionBackup,i=Gnt(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ct(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=ct(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)Hnt(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Fnt(o,this._currentMediaIndices)&&(s=j(o,function(f){return ct(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},e}();function Gnt(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(e.options=e.media=null),i=e),f&&Y(u)&&D(u,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),h(i),D(l,function(v){return h(v)}),D(n,function(v){return h(v.option)});function h(v){D(t,function(d){d(v,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function Hnt(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return D(e,function(i,o){var s=o.match(Bnt);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Unt(n[u],i,l)||(a=!1)}}),a}function Unt(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Fnt(e,t){return e.join(",")===t.join(",")}var wa=D,lp=dt,CP=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=CP.length;r<n;r++){var a=CP[r],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?xt(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?xt(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function zr(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,vt(e[t],n)):e[t]=n),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function Jv(e){zr(e,"itemStyle"),zr(e,"lineStyle"),zr(e,"areaStyle"),zr(e,"label"),zr(e,"labelLine"),zr(e,"upperLabel"),zr(e,"edgeLabel")}function Ge(e,t){var r=lp(e)&&e[t],n=lp(r)&&r.textStyle;if(n)for(var a=0,i=DI.length;a<i;a++){var o=DI[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Zn(e){e&&(Jv(e),Ge(e,"label"),e.emphasis&&Ge(e.emphasis,"label"))}function Ynt(e){if(lp(e)){Nb(e),Jv(e),Ge(e,"label"),Ge(e,"upperLabel"),Ge(e,"edgeLabel"),e.emphasis&&(Ge(e.emphasis,"label"),Ge(e.emphasis,"upperLabel"),Ge(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Nb(t),Zn(t));var r=e.markLine;r&&(Nb(r),Zn(r));var n=e.markArea;n&&Zn(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!Kr(i))for(var o=0;o<i.length;o++)Zn(i[o]);D(e.categories,function(u){Jv(u)})}if(a&&!Kr(a))for(var o=0;o<a.length;o++)Zn(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Zn(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Y(l[o])?(Zn(l[o][0]),Zn(l[o][1])):Zn(l[o]);e.type==="gauge"?(Ge(e,"axisLabel"),Ge(e,"title"),Ge(e,"detail")):e.type==="treemap"?(zr(e.breadcrumb,"itemStyle"),D(e.levels,function(u){Jv(u)})):e.type==="tree"&&Jv(e.leaves)}}function ji(e){return Y(e)?e:e?[e]:[]}function AP(e){return(Y(e)?e[0]:e)||{}}function jnt(e,t){wa(ji(e.series),function(n){lp(n)&&Ynt(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),wa(r,function(n){wa(ji(e[n]),function(a){a&&(Ge(a,"axisLabel"),Ge(a.axisPointer,"label"))})}),wa(ji(e.parallel),function(n){var a=n&&n.parallelAxisDefault;Ge(a,"axisLabel"),Ge(a&&a.axisPointer,"label")}),wa(ji(e.calendar),function(n){zr(n,"itemStyle"),Ge(n,"dayLabel"),Ge(n,"monthLabel"),Ge(n,"yearLabel")}),wa(ji(e.radar),function(n){Ge(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),wa(ji(e.geo),function(n){lp(n)&&(Zn(n),wa(ji(n.regions),function(a){Zn(a)}))}),wa(ji(e.timeline),function(n){Zn(n),zr(n,"label"),zr(n,"itemStyle"),zr(n,"controlStyle",!0);var a=n.data;Y(a)&&D(a,function(i){dt(i)&&(zr(i,"label"),zr(i,"itemStyle"))})}),wa(ji(e.toolbox),function(n){zr(n,"iconStyle"),wa(n.feature,function(a){zr(a,"iconStyle")})}),Ge(AP(e.axisPointer),"label"),Ge(AP(e.tooltip).axisPointer,"label")}function Wnt(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function Xnt(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=r)}function MP(e){e&&D(Znt,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Znt=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],$nt=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],kb=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function pv(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<kb.length;r++){var n=kb[r][1],a=kb[r][0];t[n]!=null&&(t[a]=t[n])}}function DP(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function LP(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function qnt(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function fF(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&fF(e[r].children,t)}function cF(e,t){jnt(e,t),e.series=ne(e.series),D(e.series,function(r){if(dt(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),DP(r.label);var a=r.data;if(a&&!Kr(a))for(var i=0;i<a.length;i++)DP(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Wnt(r,"pointer.color");o!=null&&Xnt(r,"itemStyle.color",o)}else if(n==="bar"){pv(r),pv(r.backgroundStyle),pv(r.emphasis);var a=r.data;if(a&&!Kr(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(pv(a[i]),pv(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),LP(r),fF(r.data,LP)}else n==="graph"||n==="sankey"?qnt(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&vt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),MP(r)}}),e.dataRange&&(e.visualMap=e.dataRange),D($nt,function(r){var n=e[r];n&&(Y(n)||(n=[n]),D(n,function(a){MP(a)}))})}function Knt(e){var t=it();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&r.reverse(),D(r,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),Qnt(r)}})}function Qnt(e){D(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=Ptt(h,m),p=m;break}}}return n[0]=h,n[1]=p,n})})}var YS=function(){function e(t){this.data=t.data||(t.sourceFormat===Za?{}:[]),this.sourceFormat=t.sourceFormat||nF,this.seriesLayoutBy=t.seriesLayoutBy||Va,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&oF(this,n)===br.Must&&(a.type="ordinal")}}return e}();function mL(e){return e instanceof YS}function AA(e,t,r){r=r||hF(e);var n=t.seriesLayoutBy,a=tat(e,r,n,t.sourceHeader,t.dimensions),i=new YS({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ct(t)});return i}function _L(e){return new YS({data:e,sourceFormat:Kr(e)?Is:Hn})}function Jnt(e){return new YS({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ct(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function hF(e){var t=nF;if(Kr(e))t=Is;else if(Y(e)){e.length===0&&(t=Sr);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(Y(a)||Kr(a)){t=Sr;break}else if(dt(a)){t=Un;break}}}}else if(dt(e)){for(var i in e)if(nt(e,i)&&Er(e[i])){t=Za;break}}return t}function tat(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:EP(a),startIndex:o,dimensionsDetectedCount:i};if(t===Sr){var s=e;n==="auto"||n==null?OP(function(u){u!=null&&u!=="-"&&(Q(u)?o==null&&(o=1):o=0)},r,s,10):o=Bt(n)?n:n?1:0,!a&&o===1&&(a=[],OP(function(u,f){a[f]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===cf?s.length:s[0]?s[0].length:null}else if(t===Un)a||(a=eat(e));else if(t===Za)a||(a=[],D(e,function(u,f){a.push(f)}));else if(t===Hn){var l=Oh(e[0]);i=Y(l)&&l.length||1}return{startIndex:o,dimensionsDefine:EP(a),dimensionsDetectedCount:i}}function eat(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Nt(r)}function EP(e){if(e){var t=it();return j(e,function(r,n){r=dt(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function OP(e,t,r,n){if(t===cf)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function vF(e){var t=e.sourceFormat;return t===Un||t===Za}var Pl,Nl,kl,zl,RP,IP,dF=function(){function e(t,r){var n=mL(t)?t:_L(t);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Is&&(this._offset=0,this._dimSize=r,this._data=a),IP(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;IP=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=RP[SL(u,f)];if(F(o,v),u===Is)o.getItem=r,o.count=a,o.fillStorage=n;else{var d=pF(u,f);o.getItem=J(d,null,s,c,h);var p=gF(u,f);o.count=J(p,null,s,c,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[h],m=0;m<g;m++){var _=f[m*c+h];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};RP=(t={},t[Sr+"_"+Va]={pure:!0,appendData:i},t[Sr+"_"+cf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Un]={pure:!0,appendData:i},t[Za]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Hn]={appendData:i},t[Is]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),ay=function(e){Y(e)||GH("series.data or dataset.source must be an array.")};Pl={},Pl[Sr+"_"+Va]=ay,Pl[Sr+"_"+cf]=ay,Pl[Un]=ay,Pl[Za]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&GH("dimension name must not be null/undefined.")}},Pl[Hn]=ay;var PP=function(e,t,r,n){return e[n]},rat=(Nl={},Nl[Sr+"_"+Va]=function(e,t,r,n){return e[n+t]},Nl[Sr+"_"+cf]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Nl[Un]=PP,Nl[Za]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?e[s]:null;i[o]=l?l[n]:null}return i},Nl[Hn]=PP,Nl);function pF(e,t){var r=rat[SL(e,t)];return r}var NP=function(e,t,r){return e.length},nat=(kl={},kl[Sr+"_"+Va]=function(e,t,r){return Math.max(0,e.length-t)},kl[Sr+"_"+cf]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},kl[Un]=NP,kl[Za]=function(e,t,r){var n=r[0].name,a=n!=null?e[n]:null;return a?a.length:0},kl[Hn]=NP,kl);function gF(e,t){var r=nat[SL(e,t)];return r}var zb=function(e,t,r){return e[t]},aat=(zl={},zl[Sr]=zb,zl[Un]=function(e,t,r){return e[r]},zl[Za]=zb,zl[Hn]=function(e,t,r){var n=Oh(e);return n instanceof Array?n[t]:n},zl[Is]=zb,zl);function yF(e){var t=aat[e];return t}function SL(e,t){return e===Sr?e+"_"+t:e}function nh(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return yF(i)(n,o,s)}else{var l=n;return i===Hn&&(l=Oh(n)),l}}}}var iat=/\{@(.+?)\}/g,jS=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&Y(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ft(i))return l.status=r,l.dimensionIndex=a,i(l);if(Q(i)){var f=hL(i,l);return f.replace(iat,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=nh(s,t,d);if(o&&Y(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return nh(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function kP(e){var t,r;return dt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Dd(e){return new oat(e)}var oat=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v<d)){var p=this._progress;if(Y(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){zP.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:zP.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Y(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),zP=function(){var e,t,r,n,a,i={reset:function(l,u,f,c){t=l,e=u,r=f,n=c,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function Ps(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Bt(e)&&e!=null&&e!=="-"&&(e=+Bi(e)),e==null||e===""?NaN:Number(e))}var sat=it({number:function(e){return parseFloat(e)},time:function(e){return+Bi(e)},trim:function(e){return Q(e)?Mn(e):e}});function mF(e){return sat.get(e)}var _F={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},lat=function(){function e(t,r){if(!Bt(r)){var n="";jt(n)}this._opFn=_F[t],this._rvalFloat=Ri(r)}return e.prototype.evaluate=function(t){return Bt(t)?this._opFn(t,this._rvalFloat):this._opFn(Ri(t),this._rvalFloat)},e}(),SF=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Bt(t)?t:Ri(t),a=Bt(r)?r:Ri(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Q(t),l=Q(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),uat=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Ri(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Ri(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function fat(e,t){return e==="eq"||e==="ne"?new uat(e==="eq",t):nt(_F,e)?new lat(e,t):null}var cat=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ps(t,r)},e}();function hat(e,t){var r=new cat,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Va&&jt(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";nt(l,y)&&jt(_),l[y]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var c=pF(a,Va);t.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,i,s,p)},r.getRawData=J(vat,null,e)),r.cloneRawData=J(dat,null,e);var h=gF(a,Va);r.count=J(h,null,n,i,s);var v=yF(a);r.retrieveValue=function(p,g){var y=c(n,i,s,p);return d(y,g)};var d=r.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return r.getDimensionInfo=J(pat,null,s,l),r.cloneAllDimensionInfo=J(gat,null,s),r}function vat(e){var t=e.sourceFormat;if(!bL(t)){var r="";jt(r)}return e.data}function dat(e){var t=e.sourceFormat,r=e.data;if(!bL(t)){var n="";jt(n)}if(t===Sr){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===Un){for(var a=[],i=0,o=r.length;i<o;i++)a.push(F({},r[i]));return a}}function pat(e,t,r){if(r!=null){if(Bt(r)||!isNaN(r)&&!nt(t,r))return e[r];if(nt(t,r))return t[r]}}function gat(e){return ct(e)}var bF=it();function yat(e){e=ct(e);var t=e.type,r="";t||jt(r);var n=t.split(":");n.length!==2&&jt(r);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,bF.set(t,e)}function mat(e,t,r){var n=ne(e),a=n.length,i="";a||jt(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=_at(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function _at(e,t,r,n){var a="";t.length||jt(a),dt(e)||jt(a);var i=e.type,o=bF.get(i);o||jt(a);var s=j(t,function(u){return hat(u,o)}),l=ne(o.transform({upstream:s[0],upstreamList:s,config:ct(e.config)}));return j(l,function(u,f){var c="";dt(u)||jt(c),u.data||jt(c);var h=hF(u.data);bL(h)||jt(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:Va,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Va,sourceHeader:0,dimensions:u.dimensions};return AA(u.data,v,null)})}function bL(e){return e===Sr||e===Un}var WS="undefined",Sat=typeof Uint32Array===WS?Array:Uint32Array,bat=typeof Uint16Array===WS?Array:Uint16Array,xF=typeof Int32Array===WS?Array:Int32Array,BP=typeof Float64Array===WS?Array:Float64Array,wF={float:BP,int:xF,ordinal:Array,number:Array,time:BP},Bb;function Rf(e){return e>65535?Sat:bat}function If(){return[1/0,-1/0]}function xat(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function VP(e,t,r,n,a){var i=wF[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(n)}var MA=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=it()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Bb[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],vF(a),this._dimensions=j(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new wF[r||"float"](this._rawCount),this._rawExtent[i]=If(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=If());for(var l=i[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<i;u++){var f=a[u];VP(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=a[d],p=Bb.arrayRows.call(this,t[v]||c,f.property,v,d);n[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=j(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=If()),VP(i,f,c.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,l);else for(var h=[],v=t;v<r;v++){h=a.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=Rf(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Rf(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],c=n._chunks,h=0;h<a;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=r(h);else if(l===1){var p=c[f][d];v=r(p,h)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=h,v=r.apply(null,s)}v&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=Nt(t),i=a.length;if(!i)return this;var o=r.count(),s=Rf(r._rawCount),l=new s(o),u=0,f=a[0],c=t[f][0],h=t[f][1],v=r._chunks,d=!1;if(!r._indices){var p=0;if(i===1){for(var g=v[a[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],y=0;y<n;y++){var m=g[y],x=_[y];(m>=c&&m<=h||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var w=r.getRawIndex(y),m=v[a[0]][w];(m>=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=r.getRawIndex(y),C=0;C<i;C++){var A=a[C],m=v[A][w];(m<t[A][0]||m>t[A][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(y))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=If();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=a[r[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=r[f],g=d[f],y=u[p],m=a[p];m&&(m[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,v=new(Rf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=g-p;var x=d,w=Math.min(d+l,o),T=d-1,C=i[u];f=-1,h=x;for(var A=-1,M=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){M++,A<0&&(A=S);continue}c=Math.abs((T-y)*(b-C)-(T-_)*(m-C)),c>f&&(f=c,h=S)}M>0&&M<w-x&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),a=n._chunks,i=Math.floor(1/r),o=a[t],s=this.count(),l=new(Rf(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<h&&(h=m,c=f+g),m>d&&(d=m,v=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),c=i._rawExtent[t]=If(),h=new(Rf(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=If();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&pa(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?xat(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ct(this._extent),t._rawExtent=ct(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,i){return Ps(r[i],this._dimensions[i])}Bb={arrayRows:t,objectRows:function(r,n,a,i){return Ps(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Ps(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}(),TF=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(iy(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Kr(s)?Is:Hn,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=ot(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=ot(c.sourceHeader,h.sourceHeader),p=ot(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[AA(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[AA(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&HP(i)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&HP(c),s.push(f),l.push(u._getVersionSign())}),n?o=mat(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[Jnt(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];iy(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new MA,s.initData(new dF(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(iy(t)){var r=pL(t);return r?[r.getSourceManager()]:[]}else return j(Dnt(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(iy(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function GP(e){var t=e.option.transform;t&&$d(e.option.transform)}function iy(e){return e.mainType==="series"}function HP(e){throw new Error(e)}var wat="line-height:1";function CF(e){var t=e.lineHeight;return t==null?wat:"line-height:"+Br(t+"")+"px"}function AF(e,t){var r=e.color||V.color.tertiary,n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||V.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Br(n+"")+"px;color:"+Br(r)+";font-weight:"+Br(a+""),valueStyle:"font-size:"+Br(o+"")+"px;color:"+Br(i)+";font-weight:"+Br(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var Tat=[0,10,20,30],Cat=["",`
133
+ `,`
134
+
135
+ `,`
136
+
137
+
138
+ `];function je(e,t){return t.type=e,t}function DA(e){return e.type==="section"}function MF(e){return DA(e)?Aat:Mat}function DF(e){if(DA(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return D(e.blocks,function(a){var i=DF(a);i>=t&&(t=i+ +(n&&(!i||DA(a)&&!a.noHeader)))}),t}return 0}function Aat(e,t,r,n){var a=t.noHeader,i=Dat(DF(t)),o=[],s=t.blocks||[];Or(!s||Y(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(nt(u,l)){var f=new SF(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,g){var y=t.valueFormatter,m=MF(p)(y?F(F({},e),{valueFormatter:y}):e,p,g>0?i.html:0,n);m!=null&&o.push(m)});var c=e.renderMode==="richText"?o.join(i.richText):LA(n,o.join(""),a?r:i.html);if(a)return c;var h=xA(t.header,"ordinal",e.useUTC),v=AF(n,e.renderMode).nameStyle,d=CF(n);return e.renderMode==="richText"?LF(e,h,v)+i.richText+c:LA(n,'<div style="'+v+";"+d+';">'+Br(h)+"</div>"+c,r)}function Mat(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=Y(S)?S:[S],j(S,function(b,x){return xA(b,Y(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||V.color.secondary,a),h=i?"":xA(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=AF(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":LF(e,h,m))+(o?"":Oat(e,d,p,g,_)):LA(n,(s?"":c)+(i?"":Lat(h,!s,m))+(o?"":Eat(d,p,g,_)),r)}}function UP(e,t,r,n,a,i){if(e){var o=MF(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function Dat(e){return{html:Tat[e],richText:Cat[e]}}function LA(e,t,r){var n='<div style="clear:both"></div>',a="margin: "+r+"px 0 0",i=CF(e);return'<div style="'+a+";"+i+';">'+t+n+"</div>"}function Lat(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Br(e)+"</span>"}function Eat(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Y(e)?e:[e],'<span style="'+i+";"+n+'">'+j(e,function(o){return Br(o)}).join("&nbsp;&nbsp;")+"</span>"}function LF(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Oat(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,i)}function EF(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Bu(n)}function OF(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Vb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=BH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=jU({color:r,type:t,renderMode:n,markerId:a});return Q(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Y(r)?D(r,function(i){return F(n,i)}):F(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function RF(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=Y(s),u=EF(t,r),f,c,h,v;if(o>1||l&&!o){var d=Rat(s,t,r,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=nh(a,r,i[0]),c=p.type}else v=f=l?s[0]:s;var g=I2(t),y=g&&t.name||"",m=a.getName(r),_=n?y:m;return je("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[je("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Mn(_),value:f,valueType:c,dataIndex:r})].concat(h||[])})}function Rat(e,t,r,n,a){var i=t.getData(),o=pa(e,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(c){f(nh(i,r,c),c)}):D(e,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(je("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Qo=Mt();function oy(e,t){return e.getName(t)||e.getId(t)}var Rm="__universalTransitionEnabled",Jt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Dd({count:Pat,reset:Nat}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=Qo(this).sourceManager=new TF(this);i.prepareSource();var o=this.getInitialData(r,a);YP(o,this),this.dataTask.context.data=o,Qo(this).dataBeforeProcessed=o,FP(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=sp(this),i=a?ff(r):{},o=this.subType;At.hasClass(o)&&(o+="Series"),xt(r,n.getTheme().get(this.subType)),xt(r,this.getDefaultOption()),Ru(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Pi(r,i,a)},t.prototype.mergeOption=function(r,n){r=xt(this.option,r,!0),this.fillDataTextStyle(r.data);var a=sp(this);a&&Pi(this.option,r,a);var i=Qo(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);YP(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Qo(this).dataBeforeProcessed=o,FP(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Kr(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Ru(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=EA(this);if(n){var a=n.context.data;return r==null||!a.getLinkedData?a:a.getLinkedData(r)}else return Qo(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=EA(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}Qo(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return it(r)},t.prototype.getSourceManager=function(){return Qo(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Qo(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);var f=[],c=1/0,h=-1,v=0;return o.each(n,function(d,p){var g=l.dataToCoord(d),y=u-g,m=Math.abs(y);m<=i&&((m<c||m===c&&y>=0&&h<0)&&(c=m,h=y,v=0),y===h&&(f[v++]=p))}),f.length=v,f},t.prototype.formatTooltip=function(r,n,a){return RF({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(It.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=gL.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=oy(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Nt(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[oy(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Rm])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){dt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=oy(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=oy(r,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=r.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return At.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(At);Ee(Jt,jS);Ee(Jt,gL);ZH(Jt,At);function FP(e){var t=e.name;I2(e)||(e.name=Iat(e)||t)}function Iat(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function Pat(e){return e.model.getRawData().count()}function Nat(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),kat}function kat(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function YP(e,t){D(qc(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,St(zat,t))})}function zat(e,t){var r=EA(e);return r&&r.setOutputEnd((t||this).count()),t}function EA(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}var ie=function(){function e(){this.group=new ht,this.uid=Vh("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();N2(ie);RS(ie);function Uh(){var e=Mt();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var IF=Mt(),Bat=Uh(),Kt=function(){function e(){this.group=new ht,this.uid=Vh("viewChart"),this.renderTask=Dd({plan:Vat,reset:Gat}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&WP(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&WP(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){ll(this.group,t)},e.markUpdateMethod=function(t,r){IF(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function jP(e,t,r){e&&ap(e)&&(t==="emphasis"?Oo:Ro)(e,r)}function WP(e,t,r){var n=Iu(e,t),a=t&&t.highlightKey!=null?hrt(t.highlightKey):null;n!=null?D(ne(n),function(i){jP(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){jP(i,r,a)})}N2(Kt);RS(Kt);function Vat(e){return Bat(e.model)}function Gat(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&IF(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),Hat[l]}var Hat={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},B0="\0__throttleOriginMethod",XP="\0__throttleRate",ZP="\0__throttleType";function XS(e,t,r){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var p=f||t,g=f||r;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function Fh(e,t,r,n){var a=e[t];if(a){var i=a[B0]||a,o=a[ZP],s=a[XP];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=XS(i,r,n==="debounce"),a[B0]=i,a[ZP]=n,a[XP]=r}return a}}function up(e,t){var r=e[t];r&&r[B0]&&(r.clear&&r.clear(),e[t]=r[B0])}var $P=Mt(),qP={itemStyle:Pu(kU,!0),lineStyle:Pu(NU,!0)},Uat={lineStyle:"stroke",itemStyle:"fill"};function PF(e,t){var r=e.visualStyleMapper||qP[t];return r||(console.warn("Unknown style type '"+t+"'."),qP.itemStyle)}function NF(e,t){var r=e.visualDrawType||Uat[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Fat={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=PF(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=NF(e,n),u=o[l],f=ft(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ft(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||ft(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=e.getDataParams(d),g=F({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},gv=new Lt,Yat={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=PF(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){gv.option=l[n];var u=a(gv),f=o.ensureUniqueItemVisual(s,"style");F(f,u),gv.option.decal&&(o.setItemVisual(s,"decal",gv.option.decal),gv.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},jat={performRawSeries:!0,overallReset:function(e){var t=it();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),$P(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=$P(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=NF(r,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=r.getColorFromPalette(v,o,d)}})}})}},sy=Math.PI;function Wat(e,t){t=t||{},vt(t,{text:"loading",textColor:V.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:V.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ht,n=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new zt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Ct({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new ag({shape:{startAngle:-sy/2,endAngle:-sy/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:sy*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:sy*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var kF=function(){function e(t,r,n,a){this._stageTaskMap=it(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=it();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Or(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;D(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=it(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Dd({plan:Kat,reset:Qat,count:tit}));v.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||Dd({reset:Xat});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=it(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";Or(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):(c=!1,D(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(h=!0,Dd({reset:Zat,onDirty:qat})));y.context={model:p,overallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return ft(t)&&(t={overallReset:t,seriesType:eit(t)}),t.uid=Vh("stageHandler"),r&&(t.visualType=r),t},e}();function Xat(e){e.overallReset(e.ecModel,e.api,e.payload)}function Zat(e){return e.overallProgress&&$at}function $at(){this.agent.dirty(),this.getDownstream().dirty()}function qat(){this.agent&&this.agent.dirty()}function Kat(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Qat(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ne(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?j(t,function(r,n){return zF(n)}):Jat}var Jat=zF(0);function zF(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function tit(e){return e.data.count()}function eit(e){V0=null;try{e(fp,BF)}catch{}return V0}var fp={},BF={},V0;VF(fp,yL);VF(BF,uF);fp.eachSeriesByType=fp.eachRawSeriesByType=function(e){V0=e};fp.eachComponent=function(e){e.mainType==="series"&&e.subType&&(V0=e.subType)};function VF(e,t){for(var r in t.prototype)e[r]=De}var pt=V.darkColor,rit=pt.background,yv=function(){return{axisLine:{lineStyle:{color:pt.axisLine}},splitLine:{lineStyle:{color:pt.axisSplitLine}},splitArea:{areaStyle:{color:[pt.backgroundTint,pt.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:pt.axisMinorSplitLine}},axisLabel:{color:pt.axisLabel},axisName:{}}},KP={label:{color:pt.secondary},itemStyle:{borderColor:pt.borderTint},dividerLineStyle:{color:pt.border}},GF={darkMode:!0,color:pt.theme,backgroundColor:rit,axisPointer:{lineStyle:{color:pt.border},crossStyle:{color:pt.borderShade},label:{color:pt.tertiary}},legend:{textStyle:{color:pt.secondary},pageTextStyle:{color:pt.tertiary}},textStyle:{color:pt.secondary},title:{textStyle:{color:pt.primary},subtextStyle:{color:pt.quaternary}},toolbox:{iconStyle:{borderColor:pt.accent50}},tooltip:{backgroundColor:pt.neutral20,defaultBorderColor:pt.border,textStyle:{color:pt.tertiary}},dataZoom:{borderColor:pt.accent10,textStyle:{color:pt.tertiary},brushStyle:{color:pt.backgroundTint},handleStyle:{color:pt.neutral00,borderColor:pt.accent20},moveHandleStyle:{color:pt.accent40},emphasis:{handleStyle:{borderColor:pt.accent50}},dataBackground:{lineStyle:{color:pt.accent30},areaStyle:{color:pt.accent20}},selectedDataBackground:{lineStyle:{color:pt.accent50},areaStyle:{color:pt.accent30}}},visualMap:{textStyle:{color:pt.secondary},handleStyle:{borderColor:pt.neutral30}},timeline:{lineStyle:{color:pt.accent10},label:{color:pt.tertiary},controlStyle:{color:pt.accent30,borderColor:pt.accent30}},calendar:{itemStyle:{color:pt.neutral00,borderColor:pt.neutral20},dayLabel:{color:pt.tertiary},monthLabel:{color:pt.secondary},yearLabel:{color:pt.secondary}},matrix:{x:KP,y:KP,backgroundColor:{borderColor:pt.axisLine},body:{itemStyle:{borderColor:pt.borderTint}}},timeAxis:yv(),logAxis:yv(),valueAxis:yv(),categoryAxis:yv(),line:{symbol:"circle"},graph:{color:pt.theme},gauge:{title:{color:pt.secondary},axisLine:{lineStyle:{color:[[1,pt.neutral05]]}},axisLabel:{color:pt.axisLabel},detail:{color:pt.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:pt.background}},radar:function(){var e=yv();return e.axisName={color:pt.axisLabel},e.axisLine.lineStyle.color=pt.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:pt.neutral20,textStyle:{color:pt.secondary}},emphasis:{itemStyle:{color:pt.neutral30}}}},sunburst:{itemStyle:{borderColor:pt.background}},map:{itemStyle:{borderColor:pt.border,areaColor:pt.neutral10},label:{color:pt.tertiary},emphasis:{label:{color:pt.primary},itemStyle:{areaColor:pt.highlight}},select:{label:{color:pt.primary},itemStyle:{areaColor:pt.highlight}}},geo:{itemStyle:{borderColor:pt.border,areaColor:pt.neutral10},emphasis:{label:{color:pt.primary},itemStyle:{areaColor:pt.highlight}},select:{label:{color:pt.primary},itemStyle:{color:pt.highlight}}}};GF.categoryAxis.splitLine.show=!1;var nit=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(Q(t)){var i=di(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),OA=["symbol","symbolSize","symbolRotate","symbolOffset"],QP=OA.concat(["symbolKeepAspect"]),ait={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<OA.length;o++){var s=OA[o],l=e.get(s);ft(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(F({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Nt(a);function f(c,h){for(var v=e.getRawValue(h),d=e.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,a[g](v,d))}}return{dataEach:i?f:null}}},iit={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<QP.length;s++){var l=QP[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function xL(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function ug(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function HF(e,t,r,n){switch(r){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function UF(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}D([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=F({},a),o.dispatchAction(F(a,{type:n[1],seriesIndex:r(i,a)}))})})}function Pf(e,t,r,n,a){var i=e+t;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=Iu(c,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:Y(h)?c.getName(h[0]):c.getName(h),selected:Q(l)?l:F({},l)})}})}function oit(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Pf("map","selectchanged",t,a,n),Pf("pie","selectchanged",t,a,n)):n.fromAction==="select"?(Pf("map","selected",t,a,n),Pf("pie","selected",t,a,n)):n.fromAction==="unselect"&&(Pf("map","unselected",t,a,n),Pf("pie","unselected",t,a,n))})}function uu(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var sit=Math.round(Math.random()*9),lit=typeof Object.defineProperty=="function",uit=function(){function e(){this._id="__ec_inner_"+sit++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return lit?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),fit=Et.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),cit=Et.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),hit=Et.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-c*v,l+s+h*v,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+c*v,l+s+h*v,r-f,l+s),e.closePath()}}),vit=Et.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),dit={line:Be,rect:Ct,roundRect:Ct,square:Ct,circle:Vi,diamond:cit,pin:hit,arrow:vit,triangle:fit},pit={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},G0={};D(dit,function(e,t){G0[t]=new e});var git=Et.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=D0(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=G0[n];a||(n="rect",a=G0[n]),pit[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function yit(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||V.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Ve(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=X2(e.slice(8),new yt(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=eh(e.slice(7),{},new yt(t,r,n,a),o?"center":"cover"):l=new git({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=yit,i&&l.setColor(i),l}function Yh(e){return Y(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function hf(e,t){if(e!=null)return Y(e)||(e=[e,e]),[K(e[0],t[0])||0,K(ot(e[1],e[0]),t[1])||0]}function fu(e){return isFinite(e)}function mit(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=fu(n)?n:0,a=fu(a)?a:1,i=fu(i)?i:0,o=fu(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function _it(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=fu(o)?o:.5,s=fu(s)?s:.5,l=l>=0&&fu(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function RA(e,t,r){for(var n=t.type==="radial"?_it(e,t,r):mit(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function Sit(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function ly(e){return parseInt(e,10)}function yc(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||ly(s[n])||ly(e.style[n]))-(ly(s[i])||0)-(ly(s[o])||0)|0}function bit(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Bt(e)?[e]:Y(e)?e:null}function wL(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&bit(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=j(r,function(i){return i/a}),n/=a)}return[r,n]}var xit=new Ii(!0);function H0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function JP(e){return typeof e=="string"&&e!=="none"}function U0(e){var t=e.fill;return t!=null&&t!=="none"}function tN(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function eN(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function IA(e,t,r){var n=k2(t.image,t.__image,r);if(IS(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*yd),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function wit(e,t,r,n){var a,i=H0(r),o=U0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||xit,c=t.__dirty;if(!n){var h=r.fill,v=r.stroke,d=o&&!!h.colorStops,p=i&&!!v.colorStops,g=o&&!!h.image,y=i&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=c?RA(e,h,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=c?RA(e,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=c||!t.__canvasFillPattern?IA(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=c||!t.__canvasStrokePattern?IA(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),d?e.fillStyle=m:g&&(S?e.fillStyle=S:o=!1),p?e.strokeStyle=_:y&&(b?e.strokeStyle=b:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;e.setLineDash&&r.lineDash&&(a=wL(t),T=a[0],C=a[1]);var A=!0;(u||c&nc)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=C),n||(r.strokeFirst?(i&&eN(e,r),o&&tN(e,r)):(o&&tN(e,r),i&&eN(e,r))),T&&e.setLineDash([])}function Tit(e,t,r){var n=t.__image=k2(r.image,t.__image,t,t.onload);if(!(!n||!IS(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;e.drawImage(n,u,f,c,h,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function Cit(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||Lo,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=wL(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(H0(r)&&e.strokeText(a,r.x,r.y),U0(r)&&e.fillText(a,r.x,r.y)):(U0(r)&&e.fillText(a,r.x,r.y),H0(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var rN=["shadowBlur","shadowOffsetX","shadowOffsetY"],nN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function FF(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ln(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?du.opacity:o}(n||t.blend!==r.blend)&&(i||(ln(e,a),i=!0),e.globalCompositeOperation=t.blend||du.blend);for(var s=0;s<rN.length;s++){var l=rN[s];(n||t[l]!==r[l])&&(i||(ln(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(ln(e,a),i=!0),e.shadowColor=t.shadowColor||du.shadowColor),i}function aN(e,t,r,n,a){var i=cp(t,a.inHover),o=n?null:r&&cp(r,a.inHover)||{};if(i===o)return!1;var s=FF(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(ln(e,a),s=!0),JP(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(ln(e,a),s=!0),JP(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(ln(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ln(e,a),s=!0),e.lineWidth=u)}for(var f=0;f<nN.length;f++){var c=nN[f],h=c[0];(n||i[h]!==o[h])&&(s||(ln(e,a),s=!0),e[h]=i[h]||c[1])}return s}function Ait(e,t,r,n,a){return FF(e,cp(t,a.inHover),r&&cp(r,a.inHover),n,a)}function YF(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function Mit(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),YF(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function Dit(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var iN=1,oN=2,sN=3,lN=4;function Lit(e){var t=U0(e),r=H0(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ln(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function cp(e,t){return t&&e.__hoverStyle||e.style}function TL(e,t){cu(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function cu(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Tn,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||Sit(i,o))&&(o&&o.length&&(ln(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(ln(e,r),e.save(),Mit(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof Et&&t.autoBatch&&Lit(t.style);s||Dit(a,u.transform)?(ln(e,r),YF(e,t)):f||ln(e,r);var c=cp(t,r.inHover);t instanceof Et?(r.lastDrawType!==iN&&(l=!0,r.lastDrawType=iN),aN(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),wit(e,t,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof th?(r.lastDrawType!==sN&&(l=!0,r.lastDrawType=sN),aN(e,t,u,l,r),Cit(e,t,c)):t instanceof cr?(r.lastDrawType!==oN&&(l=!0,r.lastDrawType=oN),Ait(e,t,u,l,r),Tit(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==lN&&(l=!0,r.lastDrawType=lN),Eit(e,t,r)),f&&n&&ln(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Eit(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cu(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cu(e,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Gb=new uit,uN=new Kc(100),fN=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ah(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&Gb.delete(e);var i=Gb.get(e);if(i)return i;var o=vt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,Gb.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<fN.length;++h){var v=o[fN[h]];if(v!=null&&!Y(v)&&!Q(v)&&!Bt(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=uN.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=WF(o.dashArrayX),y=Oit(o.dashArrayY),m=jF(o.symbol),_=Rit(g),S=XF(y),b=!a&&cn.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),T;b&&(b.width=w.width*r,b.height=w.height*r,T=b.getContext("2d")),A(),c&&uN.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var M=1,E=0,L=_.length;E<L;++E)M=AI(M,_[E]);for(var R=1,E=0,L=m.length;E<L;++E)R=AI(R,m[E].length);M*=R;var P=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var M=0,E=0;E<y.length;++E)M+=y[E];if(M<=0)return;for(var L=-S,R=0,P=0,O=0;L<w.height;){if(R%2===0){for(var N=P/2%m.length,I=0,k=0,B=0;I<w.width*2;){for(var H=0,E=0;E<g[O].length;++E)H+=g[O][E];if(H<=0)break;if(k%2===0){var U=(1-o.symbolSize)*.5,X=I+g[O][k]*U,q=L+y[R]*U,st=g[O][k]*o.symbolSize,Dt=y[R]*o.symbolSize,lt=B/2%m[N].length;rt(X,q,st,Dt,m[N][lt])}I+=g[O][k],++B,++k,k===g[O].length&&(k=0)}++O,O===g.length&&(O=0)}L+=y[R],++P,++R,R===y.length&&(R=0)}function rt(et,at,$,tt,kt){var Tt=a?1:r,Ut=Ve(kt,et*Tt,at*Tt,$*Tt,tt*Tt,o.color,o.symbolKeepAspect);if(a){var Wt=n.painter.renderOneToVNode(Ut);Wt&&x.children.push(Wt)}else TL(T,Ut)}}}}function jF(e){if(!e||e.length===0)return[["rect"]];if(Q(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Q(e[r])){t=!1;break}if(t)return jF([e]);for(var n=[],r=0;r<e.length;++r)Q(e[r])?n.push([e[r]]):n.push(e[r]);return n}function WF(e){if(!e||e.length===0)return[[0,0]];if(Bt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Bt(e[n])){r=!1;break}if(r)return WF([e]);for(var a=[],n=0;n<e.length;++n)if(Bt(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=j(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function Oit(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Bt(e)){var t=Math.ceil(e);return[t,t]}var r=j(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Rit(e){return j(e,function(t){return XF(t)})}function XF(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function Iit(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=ah(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=ah(a,t)}}})}var Ma=new Sa,ZF={};function Pit(e,t){ZF[e]=t}function $F(e){return ZF[e]}var qF={};function KF(e,t){qF[e]=t}function Nit(e){return qF[e]}var kit="6.0.0",zit={zrender:"6.0.0"},Bit=1,Vit=800,Git=900,Hit=1e3,Uit=2e3,Fit=5e3,QF=1e3,Yit=1100,CL=2e3,JF=3e3,jit=4e3,ZS=4500,Wit=4600,Xit=5e3,Zit=6e3,t6=7e3,e6={PROCESSOR:{FILTER:Hit,SERIES_FILTER:Vit,STATISTIC:Fit},VISUAL:{LAYOUT:QF,PROGRESSIVE_LAYOUT:Yit,GLOBAL:CL,CHART:JF,POST_CHART_LAYOUT:Wit,COMPONENT:jit,BRUSH:Xit,CHART_ITEM:ZS,ARIA:Zit,DECAL:t6}},Xe="__flagInMainProcess",uy="__mainProcessVersion",hr="__pendingUpdate",Hb="__needsUpdateStatus",cN=/^[a-zA-Z0-9_]+$/,Ub="__connectUpdateStatus",hN=0,$it=1,qit=2;function r6(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return a6(this,e,t)}}function n6(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return a6(this,e,t)}}function a6(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Sa.prototype[t].apply(e,r)}var i6=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Sa),o6=i6.prototype;o6.on=n6("on");o6.off=n6("off");var Bl,Fb,fy,Wi,cy,Yb,jb,Nf,kf,vN,dN,Wb,pN,hy,gN,s6,Fn,yN,zf,F0=function(e){G(t,e);function t(r,n,a){var i=e.call(this,new nit)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i._dom=r;var o="canvas",s="auto",l=!1;i[uy]=1,a.ssr&&IH(function(h){var v=mt(h),d=v.dataIndex;if(d!=null){var p=it();return p.set("series_index",v.seriesIndex),p.set("data_index",d),v.ssrType&&p.set("ssr_type",v.ssrType),p}});var u=i._zr=eA(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:ot(a.useDirtyRect,l),useCoarsePointer:ot(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=XS(J(u.flush,u),17),i._updateTheme(n),i._locale=rnt(a.locale||zU),i._coordSysMgr=new Hh;var f=i._api=gN(i);function c(h,v){return h.__prio-v.__prio}return _m(j0,c),_m(kA,c),i._scheduler=new kF(i,f,kA,j0),i._messageCenter=new i6,i._initEvents(),i.resize=J(i.resize,i),u.animation.on("frame",i._onframe,i),vN(u,i),dN(u,i),$d(i),i}return t.prototype._onframe=function(){if(!this._disposed){yN(this);var r=this._scheduler;if(this[hr]){var n=this[hr].silent;this[Xe]=!0,zf(this);try{Bl(this),Wi.update.call(this,null,this[hr].updateParams)}catch(l){throw this[Xe]=!1,this[hr]=null,l}this._zr.flush(),this[Xe]=!1,this[hr]=null,Nf.call(this,n),kf.call(this,n)}else if(r.unfinished){var a=Bit,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Yb(this,i),r.performVisualTasks(i),hy(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(!this[Xe]){if(this._disposed){this.id;return}var i,o,s;if(dt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Xe]=!0,zf(this),!this._model||n){var l=new Vnt(this._api),u=this._theme,f=this._model=new yL;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},zA);var c={seriesTransition:s,optionChanged:!0};if(a)this[hr]={silent:i,updateParams:c},this[Xe]=!1,this.getZr().wakeUp();else{try{Bl(this),Wi.update.call(this,null,c)}catch(h){throw this[hr]=null,this[Xe]=!1,h}this._ssr||this._zr.flush(),this[hr]=null,this[Xe]=!1,Nf.call(this,i),kf.call(this,i)}}},t.prototype.setTheme=function(r,n){if(!this[Xe]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[hr]&&(i==null&&(i=this[hr].silent),o=this[hr].updateParams,this[hr]=null),this[Xe]=!0,zf(this);try{this._updateTheme(r),a.setTheme(this._theme),Bl(this),Wi.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Xe]=!1,s}this[Xe]=!1,Nf.call(this,i),kf.call(this,i)}}},t.prototype._updateTheme=function(r){Q(r)&&(r=l6[r]),r&&(r=ct(r),r&&cF(r,!0),this._theme=r)},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||It.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;D(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(W0[a]){var l=s,u=s,f=-s,c=-s,h=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();D(yu,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ct(r)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=cn.createCanvas(),y=eA(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return D(h,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ct({shape:{x:0,y:0,width:d,height:p},style:{fill:r.connectedBackgroundColor}})),D(h,function(_){var S=new cr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,a){return cy(this,"convertToPixel",r,n,a)},t.prototype.convertToLayout=function(r,n,a){return cy(this,"convertToLayout",r,n,a)},t.prototype.convertFromPixel=function(r,n,a){return cy(this,"convertFromPixel",r,n,a)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=Ic(a,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=Ic(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?xL(s,l,n):ug(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(Kit,function(a){var i=function(o){var s=r.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&uu(l,function(p){var g=mt(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=F({},g.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=a,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},r.trigger(a,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;D(NA,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),oit(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&jH(this.getDom(),ML,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete yu[n.id]},t.prototype.resize=function(r){if(!this[Xe]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[hr]&&(i==null&&(i=this[hr].silent),a=!0,this[hr]=null),this[Xe]=!0,zf(this);try{a&&Bl(this),Wi.update.call(this,{type:"resize",animation:F({duration:0},r&&r.animation)})}catch(o){throw this[Xe]=!1,o}this[Xe]=!1,Nf.call(this,i),kf.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(dt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!BA[r]){var a=BA[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=F({},r);return n.type=PA[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(dt(n)||(n={silent:!!n}),!!Y0[r.type]&&this._model){if(this[Xe]){this._pendingActions.push(r);return}var a=n.silent;jb.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&It.browser.weChat&&this._throttledZrFlush(),Nf.call(this,a),kf.call(this,a)}},t.prototype.updateLabelLayout=function(){Ma.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Bl=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Fb(c,!0),Fb(c,!1),h.plan()},Fb=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(x,w){x!=="series"&&S(w)}):v.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!w&&g[T];if(!C){var A=di(x.type),M=h?ie.getClass(A.main,A.sub):Kt.getClass(A.sub);C=new M,C.init(v,m),g[T]=C,p.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(C,x,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},fy=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){D([].concat(c._componentsViews).concat(c._chartsViews),b);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=it(),D(ne(_),function(x){var w=Qe(x,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;if(!w)if(eP(v))if(x instanceof Jt)v.type===pu&&!v.notBlur&&!x.get(["emphasis","disabled"])&&art(x,v,c._api);else{var T=F2(x.mainType,x.componentIndex,v.name,c._api),C=T.focusSelf,A=T.dispatchers;v.type===pu&&C&&!v.notBlur&&vA(x.mainType,x.componentIndex,c._api),A&&D(A,function(M){v.type===pu?Oo(M):Ro(M)})}else pA(v)&&x instanceof Jt&&(srt(x,v,c._api),JI(x),Fn(c))},c),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;w||b(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,g,c._api,v)}},Wi={prepareAndUpdate:function(c){Bl(this),Wi.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(c),y.restoreData(v,c),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,c),Yb(this,v),g.update(v,d),n(v),y.performVisualTasks(v,c);var m=v.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Wb(this,v,d,c,h),Ma.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=it();v.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,c);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),hy(this,v,d,c,{},g),Ma.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Kt.markUpdateMethod(c,"updateView"),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Wb(this,h,this._api,c,{}),Ma.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Kt.markUpdateMethod(c,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),Ma.trigger("afterupdate",v,this._api))},updateLayout:function(c){Wi.update.call(this,c)}};function r(c,h,v,d,p){if(c._disposed){c.id;return}for(var g=c._model,y=c._coordSysMgr.getCoordinateSystems(),m,_=Ic(g,v),S=0;S<y.length;S++){var b=y[S];if(b[h]&&(m=b[h](g,_,d,p))!=null)return m}}cy=r,Yb=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},jb=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=Y0[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&di(m[0]);this[Xe]=!0,zf(this);var b=[c],x=!1;c.batch&&(x=!0,b=j(c.batch,function(O){return O=vt(F({},O),c),O.batch=null,O}));var w=[],T,C=[],A=y.nonRefinedEventType,M=pA(c),E=eP(c);if(E&&vU(this._api),D(b,function(O){var N=y.action(O,d,v._api);if(y.refineEvent?C.push(N):T=N,T=T||F({},O),T.type=A,w.push(T),E){var I=P2(c),k=I.queryOptionMap,B=I.mainTypeSpecified,H=B?k.keys()[0]:"series";fy(v,_,O,H),Fn(v)}else M?(fy(v,_,O,"series"),Fn(v)):S&&fy(v,_,O,S.main,S.sub)}),_!=="none"&&!E&&!M&&!S)try{this[hr]?(Bl(this),Wi.update.call(this,c),this[hr]=null):Wi[_].call(this,c)}catch(O){throw this[Xe]=!1,O}if(x?T={type:A,escapeConnect:g,batch:w}:T=w[0],this[Xe]=!1,!h){var L=void 0;if(y.refineEvent){var R=y.refineEvent(C,c,d,this._api).eventContent;Or(dt(R)),L=vt({type:y.refinedEventType},R),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var P=this._messageCenter;P.trigger(T.type,T),L&&P.trigger(L.type,L)}},Nf=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();jb.call(this,v,c)}},kf=function(c){!c&&this.trigger("updated")},vN=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[hr]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},dN=function(c,h){c.on("mouseover",function(v){var d=v.target,p=uu(d,ap);p&&(irt(p,v,h._api),Fn(h))}).on("mouseout",function(v){var d=v.target,p=uu(d,ap);p&&(ort(p,v,h._api),Fn(h))}).on("click",function(v){var d=v.target,p=uu(d,function(m){return mt(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=mt(p);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function a(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=h.concat(v),g,y;_m(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Wb=function(c,h,v,d,p){a(h),pN(c,h,v,d,p),D(c._chartsViews,function(g){g.__alive=!1}),hy(c,h,v,d,p),D(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},pN=function(c,h,v,d,p,g){D(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,v,d),l(m,y),f(m,y)})},hy=function(c,h,v,d,p,g){var y=c._scheduler;p=F(p||{},{updatedSeries:h.getSeries()}),Ma.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),JI(_)}),y.unfinished=m||y.unfinished,Ma.trigger("series:layoutlabels",h,v,p),Ma.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,h),Ma.trigger("series:afterupdate",h,v,p)},Fn=function(c){c[Hb]=!0,c.getZr().wakeUp()},zf=function(c){c[uy]=(c[uy]+1)%1e3},yN=function(c){c[Hb]&&(c.getZr().storage.traverse(function(h){Pc(h)||i(h)}),c[Hb]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===BS&&c.states.emphasis?h.push("emphasis"):c.hoverState===rg&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!It.node&&!It.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=c._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=zu(c);h.eachRendered(function(d){return HS(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!Pc(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Pc(y))return;if(y instanceof Et&&vrt(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}gN=function(c){return new(function(h){G(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Oo(d,p),Fn(c)},v.prototype.leaveEmphasis=function(d,p){Ro(d,p),Fn(c)},v.prototype.enterBlur=function(d){uU(d),Fn(c)},v.prototype.leaveBlur=function(d){U2(d),Fn(c)},v.prototype.enterSelect=function(d){fU(d),Fn(c)},v.prototype.leaveSelect=function(d){cU(d),Fn(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return c[uy]},v}(uF))(c)},s6=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Ub]=d}}D(PA,function(v,d){c._messageCenter.on(d,function(p){if(W0[c.group]&&c[Ub]!==hN){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];D(yu,function(m){m!==c&&m.group===c.group&&y.push(m)}),h(y,hN),D(y,function(m){m[Ub]!==$it&&m.dispatchAction(g)}),h(y,qit)}})})}}(),t}(Sa),AL=F0.prototype;AL.on=r6("on");AL.off=r6("off");AL.one=function(e,t,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var Kit=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Y0={},PA={},NA={},kA=[],zA=[],j0=[],l6={},BA={},yu={},W0={},Qit=+new Date-0,Jit=+new Date-0,ML="_echarts_instance_";function tot(e,t,r){var n=!(r&&r.ssr);if(n){var a=DL(e);if(a)return a}var i=new F0(e,t,r);return i.id="ec_"+Qit++,yu[i.id]=i,n&&jH(e,ML,i.id),s6(i),Ma.trigger("afterinit",i),i}function eot(e){if(Y(e)){var t=e;e=null,D(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+Jit++,D(t,function(r){r.group=e})}return W0[e]=!0,e}function u6(e){W0[e]=!1}var rot=u6;function not(e){Q(e)?e=yu[e]:e instanceof F0||(e=DL(e)),e instanceof F0&&!e.isDisposed()&&e.dispose()}function DL(e){return yu[Qtt(e,ML)]}function aot(e){return yu[e]}function LL(e,t){l6[e]=t}function EL(e){bt(zA,e)<0&&zA.push(e)}function OL(e,t){RL(kA,e,t,Uit)}function f6(e){$S("afterinit",e)}function c6(e){$S("afterupdate",e)}function $S(e,t){Ma.on(e,t)}function $a(e,t,r){var n,a,i,o,s;ft(t)&&(r=t,t=""),dt(e)?(n=e.type,a=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),i=e.refineEvent):(n=e,a=t);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;Y0[n]||(Or(cN.test(n)&&cN.test(a)),i&&Or(a!==n),Y0[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:r,refineEvent:i},NA[a]=1,i&&s&&(NA[u]=1),PA[u]=n)}function h6(e,t){Hh.register(e,t)}function iot(e){var t=Hh.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function oot(e,t){KF(e,t)}function v6(e,t){RL(j0,e,t,QF,"layout")}function fl(e,t){RL(j0,e,t,JF,"visual")}var mN=[];function RL(e,t,r,n,a){if((ft(t)||dt(t))&&(r=t,t=n),!(bt(mN,r)>=0)){mN.push(r);var i=kF.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function IL(e,t){BA[e]=t}function sot(e){qG({createCanvas:e})}function d6(e,t,r){var n=$F("registerMap");n&&n(e,t,r)}function lot(e){var t=$F("getMap");return t&&t(e)}var p6=yat;fl(CL,Fat);fl(ZS,Yat);fl(ZS,jat);fl(CL,ait);fl(ZS,iit);fl(t6,Iit);EL(cF);OL(Git,Knt);IL("default",Wat);$a({type:pu,event:pu,update:pu},De);$a({type:Am,event:Am,update:Am},De);$a({type:O0,event:G2,update:O0,action:De,refineEvent:PL,publishNonRefinedEvent:!0});$a({type:cA,event:G2,update:cA,action:De,refineEvent:PL,publishNonRefinedEvent:!0});$a({type:R0,event:G2,update:R0,action:De,refineEvent:PL,publishNonRefinedEvent:!0});function PL(e,t,r,n){return{eventContent:{selected:lrt(r),isFromClick:t.isFromClick||!1}}}LL("default",{});LL("dark",GF);var uot={},_N=[],fot={registerPreprocessor:EL,registerProcessor:OL,registerPostInit:f6,registerPostUpdate:c6,registerUpdateLifecycle:$S,registerAction:$a,registerCoordinateSystem:h6,registerLayout:v6,registerVisual:fl,registerTransform:p6,registerLoading:IL,registerMap:d6,registerImpl:Pit,PRIORITY:e6,ComponentModel:At,ComponentView:ie,SeriesModel:Jt,ChartView:Kt,registerComponentModel:function(e){At.registerClass(e)},registerComponentView:function(e){ie.registerClass(e)},registerSeriesModel:function(e){Jt.registerClass(e)},registerChartView:function(e){Kt.registerClass(e)},registerCustomSeries:function(e,t){KF(e,t)},registerSubTypeDefaulter:function(e,t){At.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){OH(e,t)}};function wt(e){if(Y(e)){D(e,function(t){wt(t)});return}bt(_N,e)>=0||(_N.push(e),ft(e)&&(e={install:e}),e.install(fot))}function mv(e){return e==null?0:e.length||1}function SN(e){return e}var Io=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||SN,this._newKeyGetter=a||SN,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=mv(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=mv(u),h=mv(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=mv(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=mv(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),cot=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function hot(e,t){var r={},n=r.encode={},a=it(),i=[],o=[],s={};D(e.dimensions,function(h){var v=e.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Xb(n,d)[p]=h,v.isExtraCoord||(a.set(d,1),vot(v.type)&&(i[0]=h),Xb(s,d)[p]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}rF.each(function(g,y){var m=Xb(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};a.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=j(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new cot(s,t),r}function Xb(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function X0(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function vot(e){return!(e==="ordinal"||e==="time")}var Im=function(){function e(t){this.otherDims={},t!=null&&F(this,t)}return e}(),dot=Mt(),pot={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},g6=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=_6(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ot(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=vF(this.source),n=!S6(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=pot[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function y6(e){return e instanceof g6}function m6(e){for(var t=it(),r=0;r<(e||[]).length;r++){var n=e[r],a=dt(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function _6(e){var t=dot(e);return t.dimNameMap||(t.dimNameMap=m6(e.dimensionsDefine))}function S6(e){return e>30}var _v=dt,Jo=j,got=typeof Int32Array>"u"?Array:Int32Array,yot="e\0\0",bN=-1,mot=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],_ot=["_approximateExtent"],xN,vy,Sv,bv,Zb,xv,$b,Hr=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;y6(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=Q(c)?new Im({name:c}):c instanceof Im?c:new Im(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]);var p=f;Bt(h.storeDimIndex)&&(p=h.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),a&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=it();D(o,function(y){g.set(i[y].storeDimIndex,y)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Bt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof MA&&(i=t),!i){var o=this.dimensions,s=mL(t)||Er(t)?new dF(t,o.length):t;i=new MA;var l=Jo(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=hot(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&$b(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Is&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Hn;if(l&&!a.pure)for(var u=[],f=t;f<r;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&Vtt(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=Qe(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=Qe(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)$b(this,f);xN(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){_v(t)?F(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Sv(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return vy(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return Y(t)?a.getValues(Jo(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],a=n&&n[r];return a==null||isNaN(a)?bN:a},e.prototype.each=function(t,r,n){ft(t)&&(n=r,r=t,t=[]);var a=n||this,i=Jo(bv(t),this._getStoreDimIndex,this);this._store.each(i,a?J(r,a):r)},e.prototype.filterSelf=function(t,r,n){ft(t)&&(n=r,r=t,t=[]);var a=n||this,i=Jo(bv(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?J(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=Nt(t);return D(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ft(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=Jo(bv(t),this._getStoreDimIndex,this),s=xv(this);return s._store=this._store.map(o,i?J(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=n||a||this,o=Jo(bv(t),this._getStoreDimIndex,this);this._store.modify(o,i?J(r,i):r)},e.prototype.downSample=function(t,r,n,a){var i=xv(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.minmaxDownSample=function(t,r){var n=xv(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=xv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Lt(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Io(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return vy(t,n)},function(n){return vy(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},_v(t)?F(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),Y(i)?i=i.slice():_v(i)&&(i=F({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,_v(r)?F(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){_v(t)?F(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?F(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;fA(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Jo(this.dimensions,this._getDimInfo,this),this.hostModel)),Zb(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ft(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(CS(arguments)))})},e.internalField=function(){xN=function(t){var r=t._invertedIndicesMap;D(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new got(o.categories.length);for(var l=0;l<n.length;l++)n[l]=bN;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Sv=function(t,r,n){return Qe(t._getCategory(r,n),null)},vy=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Sv(t,t._idDimIdx,r)),n==null&&(n=yot+r),n},bv=function(t){return Y(t)||(t=t!=null?[t]:[]),t},xv=function(t){var r=new e(t._schema?t._schema:Jo(t.dimensions,t._getDimInfo,t),t.hostModel);return Zb(r,t),r},Zb=function(t,r){D(mot.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,D(_ot,function(n){t[n]=ct(r[n])}),t._calculationInfo=F({},r._calculationInfo)},$b=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=Sv(t,i,r)),l==null&&o!=null&&(a[r]=l=Sv(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[r]=l}}}(),e}();function Sot(e,t){return jh(e,t).dimensions}function jh(e,t){mL(e)||(e=_L(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=it(),i=[],o=xot(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&S6(o),l=n===e.dimensionsDefine,u=l?_6(e):m6(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var c=it(f),h=new xF(o),v=0;v<h.length;v++)h[v]=-1;function d(C){var A=h[C];if(A<0){var M=n[C],E=dt(M)?M:{name:M},L=new Im,R=E.name;R!=null&&u.get(R)!=null&&(L.name=L.displayName=R),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var P=i.length;return h[C]=P,L.storeDimIndex=C,i.push(L),L}return i[A]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(C,A){var M=ne(C).slice();if(M.length===1&&!Q(M[0])&&M[0]<0){c.set(A,!1);return}var E=c.set(A,[]);D(M,function(L,R){var P=Q(L)?u.get(L):L;P!=null&&P<o&&(E[R]=P,g(d(P),A,R))})});var p=0;D(r,function(C){var A,M,E,L;if(Q(C))A=C,L={};else{L=C,A=L.name;var R=L.ordinalMeta;L.ordinalMeta=null,L=F({},L),L.ordinalMeta=R,M=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var P=c.get(A);if(P!==!1){if(P=ne(P),!P.length)for(var O=0;O<(M&&M.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&P.push(p++)}D(P,function(N,I){var k=d(N);if(l&&L.type!=null&&(k.type=L.type),g(vt(k,L),A,I),k.name==null&&M){var B=M[I];!dt(B)&&(B={name:B}),k.name=k.displayName=B.name,k.defaultTooltip=B.defaultTooltip}E&&vt(k.otherDims,E)})}});function g(C,A,M){rF.get(A)!=null?C.otherDims[A]=M:(C.coordDim=A,C.coordDimIndex=M,a.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)D(i,function(C){b(C)}),i.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),T=w.coordDim;T==null&&(w.coordDim=wot(S,a,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(oF(e,x)===br.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return bot(i),new g6({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function bot(e){for(var t=it(),r=0;r<e.length;r++){var n=e[r],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function xot(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(i){var o;dt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function wot(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Tot=function(){function e(t){this.coordSysDims=[],this.axisMap=it(),this.categoryAxisMap=it(),this.coordSysName=t}return e}();function Cot(e){var t=e.get("coordinateSystem"),r=new Tot(t),n=Aot[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Aot={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",Me).models[0],i=e.getReferringComponents("yAxis",Me).models[0];t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Bf(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Bf(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",Me).models[0];t.coordSysDims=["single"],r.set("single",a),Bf(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",Me).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Bf(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Bf(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Bf(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,r,n){var a=e.getReferringComponents("matrix",Me).models[0];t.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");r.set("x",i),r.set("y",o),n.set("x",i),n.set("y",o)}};function Bf(e){return e.get("type")==="category"}function b6(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;Mot(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,c,h;if(D(i,function(m,_){Q(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;D(i,function(m){m.coordDim===v&&p++});var g={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,d),y.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function Mot(e){return!y6(e.schema)}function Po(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function NL(e,t){return Po(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Dot(e,t){var r=e.get("coordinateSystem"),n=Hh.get(r),a;return t&&t.coordSysDims&&(a=j(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=X0(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function Lot(e,t,r){var n,a;return r&&D(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function Gi(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=_L(e)):(a=n.getSource(),i=a.sourceFormat===Hn);var o=Cot(t),s=Dot(t,o),l=r.useEncodeDefaulter,u=ft(l)?l:l?St(iF,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=jh(a,f),h=Lot(c.dimensions,r.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=b6(t,{schema:c,store:v}),p=new Hr(c,t);p.setCalculationInfo(d);var g=h!=null&&Eot(a)?function(y,m,_,S){return S===h?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function Eot(e){if(e.sourceFormat===Hn){var t=Oot(e.data||[]);return!Y(Oh(t))}}function Oot(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function VA(e){return e.type==="interval"||e.type==="log"}function Rot(e,t,r,n,a){var i={},o=i.interval=O2(t/r,!0);n!=null&&o<n&&(o=i.interval=n),a!=null&&o>a&&(o=i.interval=a);var s=i.intervalPrecision=hp(o),l=i.niceTickExtent=[ze(Math.ceil(e[0]/o)*o,s),ze(Math.floor(e[1]/o)*o,s)];return Iot(l,e),i}function qb(e){var t=Math.pow(10,OS(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,ze(r*t)}function hp(e){return Ra(e)+2}function wN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Iot(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),wN(e,0,t),wN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function kL(e,t){return e>=t[0]&&e<=t[1]}var Pot=function(){function e(){this.normalize=TN,this.scale=CN}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=J(t.normalize,t),this.scale=J(t.scale,t)):(this.normalize=TN,this.scale=CN)},e}();function TN(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function CN(e,t){return e*(t[1]-t[0])+t[0]}function GA(e,t,r){var n=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/n,Math.log(r?t[1]:Math.max(0,t[1]))/n]}var cl=function(){function e(t){this._calculator=new Pot,this._setting=t||{},this._extent=[1/0,-1/0];var r=Ue();r&&(this._brkCtx=r.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(t){var r=Ue();r&&this._innerSetBreak(r.parseAxisBreakOption(t,J(this.parse,this)))},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();RS(cl);var Not=0,vp=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Not,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&j(n,kot);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Q(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=it(this.categories))},e}();function kot(e){return dt(e)&&e.value!=null?e.value:e+""}var ih=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new vp({})),Y(a)&&(a=new vp({categories:j(a,function(i){return dt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Q(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return kL(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a.push(f),i[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(cl);cl.registerClass(ih);var ts=ze,No=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return kL(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=hp(r)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=Ue(),l=[];if(!n)return l;if(r.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;a[0]<i[0]&&(r.expandToNicedExtent?l.push({value:ts(i[0]-n,o)}):l.push({value:a[0]}));for(var f=function(d,p){return Math.round((p-d)/n)},c=i[0];c<=i[1];){if(l.push({value:c}),c=ts(c+n,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(c,f);h>=0&&(c=ts(c+h*n,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return a[1]>v&&(r.expandToNicedExtent?l.push({value:ts(v+n,o)}):l.push({value:a[1]})),s&&s.pruneTicksByBreak(r.pruneByBreak,l,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),r.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),a=[],i=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,h=c/r,v=hp(h);u<r-1;){var d=ts(l.value+(u+1)*h,v);d>i[0]&&d<i[1]&&f.push(d),u++}var p=Ue();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(g){return g},this._interval,i),a.push(f)}}return a},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Ra(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=ts(r.value,a,!0);return fL(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=Rot(i,o,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=ts(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=ts(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(cl);cl.registerClass(No);var x6=typeof Float32Array<"u",zot=x6?Float32Array:Array;function pi(e){return Y(e)?x6?new Float32Array(e):e:new zot(e)}var HA="__ec_stack_";function w6(e){return e.get("stack")||HA+e.seriesIndex}function zL(e){return e.dim+e.index}function Bot(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(vt({bandWidth:a,axisKey:n,stackId:HA+i},e));for(var o=A6(t),s=[],i=0;i<e.count;i++){var l=o[n][HA+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function T6(e,t){var r=[];return t.eachSeriesByType(e,function(n){L6(n)&&r.push(n)}),r}function Vot(e){var t={};D(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);t[h]?t[h].push(y):t[h]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function C6(e){var t=Vot(e),r=[];return D(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=K(n.get("barWidth"),s),p=K(n.get("barMaxWidth"),s),g=K(n.get("barMinWidth")||(E6(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:zL(i),stackId:w6(n)})}),A6(r)}function A6(e){var t={};D(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var h=n.barMinWidth;h&&(l[u].minWidth=h);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return D(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Nt(i).length;s=Math.max(35-l*4,15)+"%"}var u=K(s,o),f=K(n.gap,1),c=n.remainedWidth,h=n.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),D(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(y.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;D(i,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;D(i,function(y,m){r[a][m]=r[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),r}function Got(e,t,r){if(e&&t){var n=e[zL(t)];return n}}function M6(e,t){var r=T6(e,t),n=C6(r);D(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w6(a),u=n[zL(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function D6(e){return{seriesType:e,plan:Uh(),reset:function(t){if(L6(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),f=r.getCalculationInfo("stackResultDimension"),c=Po(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=Hot(a,i),d=E6(t),p=t.get("barMinHeight")||0,g=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&pi(b*3),w=d&&l&&pi(b*3),T=d&&pi(b),C=n.master.getRect(),A=h?C.width:C.height,M,E=S.getStore(),L=0;(M=_.next())!=null;){var R=E.get(c?g:o,M),P=E.get(s,M),O=v,N=void 0;c&&(N=+R-E.get(o,M));var I=void 0,k=void 0,B=void 0,H=void 0;if(h){var U=n.dataToPoint([R,P]);if(c){var X=n.dataToPoint([N,P]);O=X[0]}I=O,k=U[1]+m,B=U[0]-O,H=y,Math.abs(B)<p&&(B=(B<0?-1:1)*p)}else{var U=n.dataToPoint([P,R]);if(c){var X=n.dataToPoint([P,N]);O=X[1]}I=U[0]+m,k=O,B=y,H=U[1]-O,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}d?(x[L]=I,x[L+1]=k,x[L+2]=h?B:H,w&&(w[L]=h?C.x:I,w[L+1]=h?k:C.y,w[L+2]=A),T[M]=M):S.setItemLayout(M,{x:I,y:k,width:B,height:H}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function L6(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function E6(e){return e.pipelineContext&&e.pipelineContext.large}function Hot(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var Uot=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},BL=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return sg(r.value,gP[cnt(Md(this._minLevelUnit))]||gP.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return hnt(r,n,a,o,i)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,a=this._extent,i=Ue(),o=[];if(!n)return o;var s=this.getSetting("useUTC");if(i&&r.breakTicks==="only_break")return Ue().addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var l=gc(a[1],s);o.push({value:a[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=$ot(this._minLevelUnit,this._approxInterval,s,a,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(u);var f=gc(a[1],s);o.push({value:a[1],time:{level:0,upperTimeUnit:f,lowerTimeUnit:f}});var c=this.getSetting("useUTC"),h=gn.length-1,v=0;return D(o,function(d){h=Math.min(h,bt(gn,d.time.upperTimeUnit)),v=Math.max(v,d.time.level)}),i&&Ue().pruneTicksByBreak(r.pruneByBreak,o,this._brkCtx.breaks,function(d){return d.value},this._approxInterval,this._extent),i&&r.breakTicks!=="none"&&Ue().addBreaksToTicks(o,this._brkCtx.breaks,this._extent,function(d){for(var p=Math.max(bt(gn,gc(d.vmin,c)),bt(gn,gc(d.vmax,c))),g=0,y=0;y<gn.length;y++)if(!O6(gn[y],d.vmin,d.vmax,c)){g=y;break}var m=Math.min(g,h),_=Math.max(m,p);return{level:v,lowerTimeUnit:gn[_],upperTimeUnit:gn[m]}}),o},t.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=ia,n[1]+=ia),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-ia}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var o=dy.length,s=Math.min(Uot(dy,this._approxInterval,0,o),o-1);this._interval=dy[s][1],this._intervalPrecision=hp(this._interval),this._minLevelUnit=dy[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return Bt(r)?r:+Bi(r)},t.prototype.contain=function(r){return kL(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t}(No),dy=[["second",rL],["minute",nL],["hour",Ad],["quarter-day",Ad*6],["half-day",Ad*12],["day",ia*1.2],["half-week",ia*3.5],["week",ia*7],["month",ia*31],["quarter",ia*95],["half-year",pP/2],["year",pP]];function O6(e,t,r,n){return k0(new Date(t),e,n).getTime()===k0(new Date(r),e,n).getTime()}function Fot(e,t){return e/=ia,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Yot(e){var t=30*ia;return e/=t,e>6?6:e>3?3:e>2?2:1}function jot(e){return e/=Ad,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function AN(e,t){return e/=t?nL:rL,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Wot(e){return O2(e,!0)}function Xot(e,t,r){var n=Math.max(0,bt(gn,t)-1);return k0(new Date(e),gn[n],r).getTime()}function Zot(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function $ot(e,t,r,n,a,i){var o=1e4,s=snt,l=0;function u(L,R,P,O,N,I,k){for(var B=Zot(N,L),H=R,U=new Date(H);H<P&&H<=n[1]&&(k.push({value:H}),!(l++>o));)if(U[N](U[O]()+L),H=U.getTime(),i){var X=i.calcNiceTickMultiple(H,B);X>0&&(U[N](U[O]()+X*L),H=U.getTime())}k.push({value:H,notAdd:!0})}function f(L,R,P){var O=[],N=!R.length;if(!O6(Md(L),n[0],n[1],r)){N&&(R=[{value:Xot(n[0],L,r)},{value:n[1]}]);for(var I=0;I<R.length-1;I++){var k=R[I].value,B=R[I+1].value;if(k!==B){var H=void 0,U=void 0,X=void 0,q=!1;switch(L){case"year":H=Math.max(1,Math.round(t/ia/365)),U=BU(r),X=vnt(r);break;case"half-year":case"quarter":case"month":H=Yot(t),U=aL(r),X=VU(r);break;case"week":case"half-week":case"day":H=Fot(t),U=iL(r),X=GU(r),q=!0;break;case"half-day":case"quarter-day":case"hour":H=jot(t),U=oL(r),X=HU(r);break;case"minute":H=AN(t,!0),U=sL(r),X=UU(r);break;case"second":H=AN(t,!1),U=lL(r),X=FU(r);break;case"millisecond":H=Wot(t),U=uL(r),X=YU(r);break}B>=n[0]&&k<=n[1]&&u(H,k,B,U,X,q,O),L==="year"&&P.length>1&&I===0&&P.unshift({value:P[0].value-H})}}for(var I=0;I<O.length;I++)P.push(O[I])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var g=Md(s[p]);if(fnt(s[p])){f(s[p],c[c.length-1]||[],h);var y=s[p+1]?Md(s[p+1]):null;if(g!==y){if(h.length){d=v,h.sort(function(L,R){return L.value-R.value});for(var m=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(m.push(h[_]),S>=n[0]&&S<=n[1]&&v++)}var b=a/t;if(v>b*1.5&&d>b/1.5||(c.push(m),v>b||e===s[p]))break}h=[]}}}for(var x=Ft(j(c,function(L){return Ft(L,function(R){return R.value>=n[0]&&R.value<=n[1]&&!R.notAdd})}),function(L){return L.length>0}),w=[],T=x.length-1,p=0;p<x.length;++p)for(var C=x[p],A=0;A<C.length;++A){var M=gc(C[A].value,r);w.push({value:C[A].value,time:{level:T-p,upperTimeUnit:M,lowerTimeUnit:M}})}w.sort(function(L,R){return L.value-R.value});for(var E=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&E.push(w[p]);return E}cl.registerClass(BL);var UA=ze,qot=Math.floor,Kot=Math.ceil,py=Math.pow,gy=Math.log,R6=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new No,r}return t.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),a=this._originalScale.getExtent(),i=e.prototype.getTicks.call(this,r),o=this.base,s=this._originalScale._innerGetBreaks(),l=Ue();return j(i,function(u){var f=u.value,c=null,h=py(o,f);f===n[0]&&this._fixMin?c=a[0]:f===n[1]&&this._fixMax&&(c=a[1]);var v;if(l){var d=l.getTicksLogTransformBreak(u,o,s,yy);v=d.vBreak,c==null&&(c=d.brkRoundingCriterion)}return c!=null&&(h=yy(h,c)),{value:h,break:v}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var a=GA(this.base,[r,n]);e.prototype.setExtent.call(this,a[0],a[1])},t.prototype.getExtent=function(){var r=this.base,n=e.prototype.getExtent.call(this);n[0]=py(r,n[0]),n[1]=py(r,n[1]);var a=this._originalScale.getExtent();return this._fixMin&&(n[0]=yy(n[0],a[0])),this._fixMax&&(n[1]=yy(n[1],a[1])),n},t.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var a=GA(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(a)},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(!(!isFinite(a)||a<=0)){var i=zH(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[UA(Kot(n[0]/i)*i),UA(qot(n[1]/i)*i)];this._interval=i,this._intervalPrecision=hp(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=gy(r)/gy(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=gy(r)/gy(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),py(this.base,r)},t.prototype.setBreaksFromOption=function(r){var n=Ue();if(n){var a=n.logarithmicParseBreaksFromOption(r,this.base,J(this.parse,this)),i=a.parsedOriginal,o=a.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t}(No);function yy(e,t){return UA(e,Ra(t))}cl.registerClass(R6);var Qot=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=r.get("min",!0);i==null&&(i=r.get("startValue",!0));var o=this._modelMinRaw=i;ft(o)?this._modelMinNum=my(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=my(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(ft(s)?this._modelMaxNum=my(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=my(t,s)),a)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=Y(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Fa(u[0],1),Fa(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Dr(s)||Dr(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){this[tst[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Jot[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Jot={min:"_determinedMin",max:"_determinedMax"},tst={min:"_dataMin",max:"_dataMax"};function I6(e,t,r){var n=e.rawExtentInfo;return n||(n=new Qot(e,t,r),e.rawExtentInfo=n,n)}function my(e,t){return t==null?null:Dr(t)?NaN:e.parse(t)}function P6(e,t){var r=e.type,n=I6(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=T6("bar",o),l=!1;if(D(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=C6(s),f=est(a,i,t,u);a=f.min,i=f.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function est(e,t,r,n){var a=r.axis.getExtent(),i=Math.abs(a[1]-a[0]),o=Got(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;D(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function Vu(e,t){var r=t,n=P6(e,r),a=n.extent,i=r.get("splitNumber");e instanceof R6&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setBreaksFromOption(k6(r)),e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function fg(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new ih({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new BL({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(cl.getClass(t)||No)}}function rst(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Wh(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=lnt(t);return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}else{if(Q(t))return function(a){var i=e.scale.getLabel(a),o=t.replace("{value}",i??"");return o};if(ft(t)){if(e.type==="category")return function(a,i){return t(Z0(e,a),a.value-e.scale.getExtent()[0],null)};var n=Ue();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),t(Z0(e,a),i,o)}}else return function(a){return e.scale.getLabel(a)}}}function Z0(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function VL(e){var t=e.get("interval");return t??"auto"}function N6(e){return e.type==="category"&&VL(e.getLabelModel())===0}function $0(e,t){var r={};return D(e.mapDimensionsAll(t),function(n){r[NL(e,n)]=!0}),Nt(r)}function nst(e,t,r){t&&D($0(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}function oh(e){return e==="middle"||e==="center"}function dp(e){return e.getShallow("show")}function k6(e){var t=e.get("breaks",!0);if(t!=null)return!Ue()||!ast(e.axis)?void 0:t}function ast(e){return(e.dim==="x"||e.dim==="y"||e.dim==="z"||e.dim==="single")&&e.type!=="category"}var Xh=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function ist(e){return Gi(null,e)}var ost={isDimensionStacked:Po,enableDataStack:b6,getStackedDimension:NL};function sst(e,t){var r=t;t instanceof Lt||(r=new Lt(t));var n=fg(r);return n.setExtent(e[0],e[1]),Vu(n,r),n}function lst(e){Ee(e,Xh)}function ust(e,t){return t=t||{},ee(e,null,null,t.state!=="normal")}const fst=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Sot,createList:ist,createScale:sst,createSymbol:Ve,createTextStyle:ust,dataStack:ost,enableHoverEmphasis:Os,getECData:mt,getLayoutRect:de,mixinAxisModelCommonMethods:lst},Symbol.toStringTag,{value:"Module"}));var cst=1e-8;function MN(e,t){return Math.abs(e-t)<cst}function tu(e,t,r){var n=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];n+=eo(a[0],a[1],o[0],o[1],t,r),a=o}var s=e[0];return(!MN(a[0],s[0])||!MN(a[1],s[1]))&&(n+=eo(a[0],a[1],s[0],s[1],t,r)),n!==0}var hst=[];function Kb(e,t){for(var r=0;r<e.length;r++)Le(e[r],e[r],t)}function DN(e,t,r,n){for(var a=0;a<e.length;a++){var i=e[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(lo(t,t,i),uo(r,r,i))}}function vst(e){for(var t=0,r=0,n=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],f=i*u-l*o;t+=f,r+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var z6=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),LN=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),EN=function(){function e(t){this.type="linestring",this.points=t}return e}(),B6=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return vst(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?DN(s.exterior,a,i,r):D(s.points,function(l){DN(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new yt(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(tu(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(tu(u[f],r[0],r[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new yt(r,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var h=f[c];h.type==="polygon"?(Kb(h.exterior,u),D(h.interiors,function(v){Kb(v,u)})):D(h.points,function(v){Kb(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(z6),dst=function(e){G(t,e);function t(r,n){var a=e.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Jp(hst),o=r;o&&!o.isGeoSVGGraphicRoot;)ka(i,o.getLocalTransform(),i),o=o.parent;return ga(i,i),Le(a,a,i),a},t}(z6);function pst(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return D(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=V6(s,o,r);break;case"Polygon":Qb(s,o,r);break;case"MultiLineString":Qb(s,o,r);break;case"MultiPolygon":D(s,function(l,u){return Qb(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function Qb(e,t,r){for(var n=0;n<e.length;n++)e[n]=V6(e[n],t[n],r)}function V6(e,t,r){for(var n=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/r,l/r])}return n}function FA(e,t){return e=pst(e),j(Ft(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new LN(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new LN(l[0],l.slice(1)))});break;case"LineString":i.push(new EN([a.coordinates]));break;case"MultiLineString":i.push(new EN(a.coordinates))}var s=new B6(n[t||"name"],i,n.cp);return s.properties=n,s})}const gst=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:nA,asc:Dn,getPercentWithPrecision:Itt,getPixelPrecision:L2,getPrecision:Ra,getPrecisionSafe:NH,isNumeric:R2,isRadianAroundZero:Jc,linearMap:Yt,nice:O2,numericToNumber:Ri,parseDate:Bi,parsePercent:K,quantile:Cm,quantity:zH,quantityExponent:OS,reformIntervals:aA,remRadian:E2,round:ze},Symbol.toStringTag,{value:"Module"})),yst=Object.freeze(Object.defineProperty({__proto__:null,format:sg,parse:Bi,roundTime:k0},Symbol.toStringTag,{value:"Module"})),mst=Object.freeze(Object.defineProperty({__proto__:null,Arc:ag,BezierCurve:Nh,BoundingRect:yt,Circle:Vi,CompoundPath:ig,Ellipse:ng,Group:ht,Image:cr,IncrementalDisplayable:wU,Line:Be,LinearGradient:lf,Polygon:Ir,Polyline:_r,RadialGradient:j2,Rect:Ct,Ring:Ph,Sector:Rr,Text:zt,clipPointsByRect:$2,clipRectByRect:DU,createIcon:zh,extendPath:AU,extendShape:CU,getShapeClass:ip,getTransform:Rs,initProps:fe,makeImage:X2,makePath:eh,mergePath:Cn,registerShape:ba,resizePath:Z2,updateProps:Ht},Symbol.toStringTag,{value:"Module"})),_st=Object.freeze(Object.defineProperty({__proto__:null,addCommas:fL,capitalFirst:ynt,encodeHTML:Br,formatTime:gnt,formatTpl:hL,getTextRect:dnt,getTooltipMarker:jU,normalizeCssArray:Gh,toCamelCase:cL,truncateText:vet},Symbol.toStringTag,{value:"Module"})),Sst=Object.freeze(Object.defineProperty({__proto__:null,bind:J,clone:ct,curry:St,defaults:vt,each:D,extend:F,filter:Ft,indexOf:bt,inherits:b2,isArray:Y,isFunction:ft,isObject:dt,isString:Q,map:j,merge:xt,reduce:pa},Symbol.toStringTag,{value:"Module"}));var bst=Mt(),Ld=Mt(),Ya={estimate:1,determine:2};function q0(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function G6(e,t){var r=j(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function xst(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=Wh(e),a=e.scale.getExtent(),i=G6(e,r),o=Ft(i,function(s){return s>=a[0]&&s<=a[1]});return{labels:j(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?Tst(e,t):Ast(e)}function wst(e,t,r){var n=e.getTickModel().get("customValues");if(n){var a=e.scale.getExtent(),i=G6(e,n);return{ticks:Ft(i,function(o){return o>=a[0]&&o<=a[1]})}}return e.type==="category"?Cst(e,t):{ticks:j(e.scale.getTicks(r),function(o){return o.value})}}function Tst(e,t){var r=e.getLabelModel(),n=H6(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function H6(e,t,r){var n=Dst(e),a=VL(t),i=r.kind===Ya.estimate;if(!i){var o=F6(n,a);if(o)return o}var s,l;ft(a)?s=W6(e,a):(l=a==="auto"?Lst(e,r):a,s=j6(e,l));var u={labels:s,labelCategoryInterval:l};return i?r.out.noPxChangeTryDetermine.push(function(){return YA(n,a,u),!0}):YA(n,a,u),u}function Cst(e,t){var r=Mst(e),n=VL(t),a=F6(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ft(n))i=W6(e,n,!0);else if(n==="auto"){var s=H6(e,e.getLabelModel(),q0(Ya.determine));o=s.labelCategoryInterval,i=j(s.labels,function(l){return l.tickValue})}else o=n,i=j6(e,o,!0);return YA(r,n,{ticks:i,tickCategoryInterval:o})}function Ast(e){var t=e.scale.getTicks(),r=Wh(e);return{labels:j(t,function(n,a){return{formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var Mst=U6("axisTick"),Dst=U6("axisLabel");function U6(e){return function(r){return Ld(r)[e]||(Ld(r)[e]={list:[]})}}function F6(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function YA(e,t,r){return e.list.push({key:t,value:r}),r}function Lst(e,t){if(t.kind===Ya.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Ld(e).autoInterval=r,!0}),r}var n=Ld(e).autoInterval;return n??(Ld(e).autoInterval=e.calculateCategoryInterval(t))}function Est(e,t){var r=t.kind,n=Rst(e),a=Wh(e),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=e.dataToCoord(c+1)-e.dataToCoord(c),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,g=0;c<=s[1];c+=u){var y=0,m=0,_=LS(a({value:c}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/v,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(r===Ya.estimate)return t.out.noPxChangeTryDetermine.push(J(Ost,null,e,x,l)),x;var w=Y6(e,x,l);return w??x}function Ost(e,t,r){return Y6(e,t,r)==null}function Y6(e,t,r){var n=bst(e.model),a=e.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-r)<=1&&i>t&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=a[0],n.axisExtent1=a[1]}function Rst(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function j6(e,t,r){var n=Wh(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=N6(e),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function W6(e,t,r){var n=e.scale,a=Wh(e),i=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var ON=[0,1],xa=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return L2(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(a.parse(t)),this.onBand&&a.type==="ordinal"&&(n=n.slice(),RN(n,a.count())),Yt(t,ON,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),RN(n,a.count()));var i=Yt(t,n,ON,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=wst(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=n.ticks,i=j(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Ist(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=j(n,function(i){return j(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(t){return t=t||q0(Ya.determine),xst(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(t){return t=t||q0(Ya.determine),Est(this,t)},e}();function RN(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function Ist(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;D(t,function(v){v.coord-=u/2,v.onBand=!0});var f=e.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&h(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&h(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function h(v,d){return v=ze(v),d=ze(d),c?v>d:v<d}}function Pst(e){var t=At.extend(e);return At.registerClass(t),t}function Nst(e){var t=ie.extend(e);return ie.registerClass(t),t}function kst(e){var t=Jt.extend(e);return Jt.registerClass(t),t}function zst(e){var t=Kt.extend(e);return Kt.registerClass(t),t}var wv=Math.PI*2,Vl=Ii.CMD,Bst=["top","right","bottom","left"];function Vst(e,t,r,n,a){var i=r.width,o=r.height;switch(e){case"top":n.set(r.x+i/2,r.y-t),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+t),a.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+t,r.y+o/2),a.set(1,0);break}}function Gst(e,t,r,n,a,i,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*r+e,c=s*r+t;if(Math.abs(n-a)%wv<1e-4)return l[0]=f,l[1]=c,u-r;if(i){var h=n;n=Ln(a),a=Ln(h)}else n=Ln(n),a=Ln(a);n>a&&(a+=wv);var v=Math.atan2(s,o);if(v<0&&(v+=wv),v>=n&&v<=a||v+wv>=n&&v+wv<=a)return l[0]=f,l[1]=c,u-r;var d=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(a)+e,y=r*Math.sin(a)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function K0(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,f=r-e,c=n-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=e+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function X6(e,t,r,n,a,i,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(a,e),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var La=[];function Hst(e,t,r){var n=X6(t.x,t.y,t.width,t.height,e.x,e.y,La);return r.set(La[0],La[1]),n}function Ust(e,t,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=e.x,h=e.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],a=f[v+1],i=n,o=a);var p=u;switch(d){case Vl.M:i=f[v++],o=f[v++],n=i,a=o;break;case Vl.L:p=K0(n,a,f[v],f[v+1],c,h,La,!0),n=f[v++],a=f[v++];break;case Vl.C:p=pH(n,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,La),n=f[v++],a=f[v++];break;case Vl.Q:p=yH(n,a,f[v++],f[v++],f[v],f[v+1],c,h,La),n=f[v++],a=f[v++];break;case Vl.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(i=s,o=l);var w=(c-g)*_/m+g;p=Gst(g,y,_,S,S+b,x,w,h,La),n=Math.cos(S+b)*m+g,a=Math.sin(S+b)*_+y;break;case Vl.R:i=n=f[v++],o=a=f[v++];var T=f[v++],C=f[v++];p=X6(i,o,T,C,c,h,La);break;case Vl.Z:p=K0(n,a,i,o,c,h,La,!0),n=i,a=o;break}p<u&&(u=p,r.set(La[0],La[1]))}return u}var Ia=new gt,le=new gt,Pe=new gt,gi=new gt,fi=new gt;function IN(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var a=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||Bst,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=e.getComputedTransform(),c=f&&ga([],f),h=t.get("length2")||0;u&&Pe.copy(u);for(var v=0;v<o.length;v++){var d=o[v];Vst(d,0,s,Ia,gi),gt.scaleAndAdd(le,Ia,gi,h),le.transform(c);var p=e.getBoundingRect(),g=u?u.distance(le):e instanceof Et?Ust(le,e.path,Pe):Hst(le,p,Pe);g<l&&(l=g,le.transform(f),Pe.transform(f),Pe.toArray(i[0]),le.toArray(i[1]),Ia.toArray(i[2]))}Z6(i,t.get("minTurnAngle")),r.setShape({points:i})}}}var Q0=[],Zr=new gt;function Z6(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ia.fromArray(e[0]),le.fromArray(e[1]),Pe.fromArray(e[2]),gt.sub(gi,Ia,le),gt.sub(fi,Pe,le);var r=gi.len(),n=fi.len();if(!(r<.001||n<.001)){gi.scale(1/r),fi.scale(1/n);var a=gi.dot(fi),i=Math.cos(t);if(i<a){var o=K0(le.x,le.y,Pe.x,Pe.y,Ia.x,Ia.y,Q0,!1);Zr.fromArray(Q0),Zr.scaleAndAdd(fi,o/Math.tan(Math.PI-t));var s=Pe.x!==le.x?(Zr.x-le.x)/(Pe.x-le.x):(Zr.y-le.y)/(Pe.y-le.y);if(isNaN(s))return;s<0?gt.copy(Zr,le):s>1&&gt.copy(Zr,Pe),Zr.toArray(e[1])}}}}function Fst(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Ia.fromArray(e[0]),le.fromArray(e[1]),Pe.fromArray(e[2]),gt.sub(gi,le,Ia),gt.sub(fi,Pe,le);var n=gi.len(),a=fi.len();if(!(n<.001||a<.001)){gi.scale(1/n),fi.scale(1/a);var i=gi.dot(t),o=Math.cos(r);if(i<o){var s=K0(le.x,le.y,Pe.x,Pe.y,Ia.x,Ia.y,Q0,!1);Zr.fromArray(Q0);var l=Math.PI/2,u=Math.acos(fi.dot(t)),f=l+u-r;if(f>=l)gt.copy(Zr,Pe);else{Zr.scaleAndAdd(fi,s/Math.tan(Math.PI/2-f));var c=Pe.x!==le.x?(Zr.x-le.x)/(Pe.x-le.x):(Zr.y-le.y)/(Pe.y-le.y);if(isNaN(c))return;c<0?gt.copy(Zr,le):c>1&&gt.copy(Zr,Pe)}Zr.toArray(e[1])}}}}function Jb(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function Yst(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=so(n[0],n[1]),i=so(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=_d([],n[1],n[0],o/a),l=_d([],n[1],n[2],o/i),u=_d([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function GL(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<np.length;l++){var u=np[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:ot(a.states[u]&&a.states[u].ignore,s);if(v||!ot(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&Jb(n,!0,u,f);continue}n||(n=new _r,e.setTextGuideLine(n),!c&&(s||!o)&&Jb(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Jb(n,!1,u,f)}}if(n){vt(n.style,r),n.style.fill=null;var p=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=Yst}}function HL(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Qr.length;n++){var a=Qr[n];r[a]=e.getModel([a,t])}return r}var PN=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],jst=1,J0=2,$6=jst|J0;function t_(e,t,r){r=r||$6,t?e.dirty|=r:e.dirty&=~r}function q6(e,t){return t=t||$6,e.dirty==null||!!(e.dirty&t)}function Ni(e){if(e)return q6(e)&&K6(e,e.label,e),e}function K6(e,t,r){var n=t.getComputedTransform();e.transform=K2(e.transform,n);var a=e.localRect=op(e.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=pc.textMargin);for(var c=0;c<4;c++)tx[c]=f===pc.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===pc.textMargin&&ku(a,tx,!1,!1);var h=e.rect=op(e.rect,a);return n&&h.applyTransform(n),f===pc.minMargin&&ku(h,tx,!1,!1),e.axisAligned=q2(n),(e.label=e.label||{}).ignore=t.ignore,t_(e,!1),t_(e,!0,J0),e}var tx=[0,0,0,0];function Wst(e,t,r){return e.transform=K2(e.transform,r),e.localRect=op(e.localRect,t),e.rect=op(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=q2(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function jA(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var a=e.obb;a&&a.fromBoundingRect(e.localRect,r)}}function WA(e,t){for(var r=0;r<PN.length;r++){var n=PN[r];e[n]==null&&(e[n]=t[n])}return Ni(e)}function NN(e){var t=e.obb;return(!t||q6(e,J0))&&(e.obb=t=t||new xU,t.fromBoundingRect(e.localRect,e.transform),t_(e,!1,J0)),t}function XA(e,t,r,n,a){var i=e.length,o=_t[t],s=Fe[t];if(i<2)return!1;e.sort(function(w,T){return w.rect[o]-T.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var h=e[c],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0),l=v[o]+v[s]}var d=e[0],p=e[i-1],g,y;m(),g<0&&b(-g,.8),y<0&&b(y,.8),m(),_(g,y,1),_(y,g,-1),m(),g<0&&x(-g),y<0&&x(y);function m(){g=d.rect[o]-r,y=n-p.rect[o]-p.rect[s]}function _(w,T,C){if(w<0){var A=Math.min(T,-w);if(A>0){S(A*C,0,i);var M=A+w;M<0&&b(-M*C,1)}else b(-w*C,1)}}function S(w,T,C){w!==0&&(f=!0);for(var A=T;A<C;A++){var M=e[A],E=M.rect;E[o]+=w,M.label[o]+=w}}function b(w,T){for(var C=[],A=0,M=1;M<i;M++){var E=e[M-1].rect,L=Math.max(e[M].rect[o]-E[o]-E[s],0);C.push(L),A+=L}if(A){var R=Math.min(Math.abs(w)/A,T);if(w>0)for(var M=0;M<i-1;M++){var P=C[M]*R;S(P,0,M+1)}else for(var M=i-1;M>0;M--){var P=C[M-1]*R;S(-P,M,i)}}}function x(w){var T=w<0?-1:1;w=Math.abs(w);for(var C=Math.ceil(w/(i-1)),A=0;A<i-1;A++)if(T>0?S(C,0,A+1):S(-C,i-A-1,i),w-=C,w<=0)return}return f}function Xst(e){for(var t=0;t<e.length;t++){var r=e[t],n=r.defaultAttr,a=r.labelLine;r.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function Q6(e){var t=[];e.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<e.length;n++){var a=Ni(e[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<t.length;l++)if(qS(a,t[l],null,{touchThreshold:.05})){s=!0;break}s?(r(i),o&&r(o)):t.push(a)}}}function qS(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:NN(e).intersect(NN(t),r,n)}function Zst(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function $st(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:Zst(n&&n.shape.points)}}var kN=["align","verticalAlign","width","height","fontSize"],Yr=new fo,ex=Mt(),qst=Mt();function _y(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];t[a]!=null&&(e[a]=t[a])}}var Sy=["x","y","rotation"],Kst=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();yt.applyTransform(f,f,u),u?Yr.setLocalTransform(u):(Yr.x=Yr.y=Yr.rotation=Yr.originX=Yr.originY=0,Yr.scaleX=Yr.scaleY=1),Yr.rotation=Ln(Yr.rotation);var c=a.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();yt.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:r,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Yr.x,y:Yr.y,scaleX:Yr.scaleX,scaleY:Yr.scaleY,rotation:Yr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(ft(a)||Nt(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=mt(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function a(_,S){return function(){IN(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;ft(o.layoutOptionOrCb)?f=o.layoutOptionOrCb($st(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=K(f.x,r),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=K(f.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=ex(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<kN.length;p++){var g=kN[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),a=[];D(this._labelList,function(l){l.defaultAttr.ignore||a.push(WA({},l))});var i=Ft(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ft(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});XA(i,0,0,r),XA(o,1,0,n);var s=Ft(a,function(l){return l.layoutOption.hideOverlap});Xst(s),Q6(s)},e.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=ex(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),a=mt(t),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");GL(t,HL(s),l),IN(t,c)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Pc(t))){var i=ex(n),o=i.oldLayout,s=mt(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(bt(h,"select")>=0&&n.attr(i.oldLayoutSelect),bt(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Ht(n,u,r,l)}else if(n.attr(u),!Bh(n).valueAnimation){var c=ot(n.style.opacity,1);n.style.opacity=0,fe(n,{style:{opacity:c}},r,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};_y(v,u,Sy),_y(v,n.states.select,Sy)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};_y(d,u,Sy),_y(d,n.states.emphasis,Sy)}PU(n,l,f,r,r)}if(a&&!a.ignore&&!a.invisible){var i=qst(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Ht(a,{shape:p},r)):(a.setShape(p),a.style.strokePercent=0,fe(a,{style:{strokePercent:1}},r)),i.oldLayout=p}},e}(),rx=Mt();function Qst(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var a=rx(r).labelManager;a||(a=rx(r).labelManager=new Kst),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var a=rx(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var nx=Math.sin,ax=Math.cos,J6=Math.PI,Gl=Math.PI*2,Jst=180/J6,t8=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){this._add("C",t,r,n,a,i,o)},e.prototype.quadraticCurveTo=function(t,r,n,a){this._add("Q",t,r,n,a)},e.prototype.arc=function(t,r,n,a,i,o){this.ellipse(t,r,n,n,0,a,i,o)},e.prototype.ellipse=function(t,r,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),h=_s(c-Gl)||(f?u>=Gl:-u>=Gl),v=u>0?u%Gl:u%Gl+Gl,d=!1;h?d=!0:_s(c)?d=!1:d=v>=J6==!!f;var p=t+n*ax(o),g=r+a*nx(o);this._start&&this._add("M",p,g);var y=Math.round(i*Jst);if(h){var m=1/this._p,_=(f?1:-1)*(Gl-m);this._add("A",n,a,y,1,+f,t+n*ax(o+_),r+a*nx(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=t+n*ax(s),b=r+a*nx(s);this._add("A",n,a,y,+d,+f,S,b)}},e.prototype.rect=function(t,r,n,a){this._add("M",t,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,a,i,o,s,l,u){for(var f=[],c=this._p,h=1;h<arguments.length;h++){var v=arguments[h];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*c)/c)}this._d.push(t+f.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),UL="none",tlt=Math.round;function elt(e){var t=e.fill;return t!=null&&t!==UL}function rlt(e){var t=e.stroke;return t!=null&&t!==UL}var ZA=["lineCap","miterLimit","lineJoin"],nlt=j(ZA,function(e){return"stroke-"+e.toLowerCase()});function alt(e,t,r,n){var a=t.opacity==null?1:t.opacity;if(r instanceof cr){e("opacity",a);return}if(elt(t)){var i=ep(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;o<1&&e("fill-opacity",o)}else e("fill",UL);if(rlt(t)){var s=ep(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,c=t.strokeFirst;if(u!==1&&e("stroke-width",u),c&&e("paint-order",c?"stroke":"fill"),f<1&&e("stroke-opacity",f),t.lineDash){var h=wL(r),v=h[0],d=h[1];v&&(d=tlt(d||0),e("stroke-dasharray",v.join(",")),(d||n)&&e("stroke-dashoffset",d))}for(var p=0;p<ZA.length;p++){var g=ZA[p];if(t[g]!==E0[g]){var y=t[g]||E0[g];y&&e(nlt[p],y)}}}}var e8="http://www.w3.org/2000/svg",r8="http://www.w3.org/1999/xlink",ilt="http://www.w3.org/2000/xmlns/",olt="http://www.w3.org/XML/1998/namespace",zN="ecmeta_";function n8(e){return document.createElementNS(e8,e)}function or(e,t,r,n,a){return{tag:e,attrs:r||{},children:n,text:a,key:t}}function slt(e,t){var r=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+e+" "+r.join(" ")+">"}function llt(e){return"</"+e+">"}function FL(e,t){t=t||{};var r=t.newline?`
139
+ `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return slt(o,s)+(o!=="style"?Br(l):l||"")+(i?""+r+j(i,function(u){return n(u)}).join(r)+r:"")+llt(o)}return n(e)}function ult(e,t,r){r=r||{};var n=r.newline?`
140
+ `:"",a=" {"+n,i=n+"}",o=j(Nt(e),function(l){return l+a+j(Nt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+i}).join(n),s=j(Nt(t),function(l){return"@keyframes "+l+a+j(Nt(t[l]),function(u){return u+a+j(Nt(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function $A(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function BN(e,t,r,n){return or("svg","root",{width:e,height:t,xmlns:e8,"xmlns:xlink":r8,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var flt=0;function a8(){return flt++}var VN={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Yl="transform-origin";function clt(e,t,r){var n=F({},e.shape);F(n,t),e.buildPath(r,n);var a=new t8;return a.reset(TH(e)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function hlt(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Yl]=r+"px "+n+"px")}var vlt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function i8(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function dlt(e,t,r){var n=e.shape.paths,a={},i,o;if(D(n,function(l){var u=$A(r.zrId);u.animation=!0,KS(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=Nt(f),v=h.length;if(v){o=h[v-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=i8(a,r);return i.replace(o,s)}}function GN(e){return Q(e)?VN[e]?"cubic-bezier("+VN[e]+")":C2(e)?e:"":""}function KS(e,t,r,n){var a=e.animators,i=a.length,o=[];if(e instanceof ig){var s=dlt(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],h=GN(f.getClip().easing),v=f.getDelay();h?c.push(h):c.push("linear"),v&&c.push(v/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function C(rt,et,at){for(var $=rt.getTracks(),tt=rt.getMaxTime(),kt=0;kt<$.length;kt++){var Tt=$[kt];if(Tt.needsAnimate()){var Ut=Tt.keyframes,Wt=Tt.propName;if(at&&(Wt=at(Wt)),Wt)for(var be=0;be<Ut.length;be++){var Fr=Ut[be],nr=Math.round(Fr.time/tt*100)+"%",gl=GN(Fr.easing),bf=Fr.rawValue;(Q(bf)||Bt(bf))&&(et[nr]=et[nr]||{},et[nr][Wt]=Fr.rawValue,gl&&(et[nr][T]=gl))}}}}for(var A=0;A<S;A++){var M=_[A],E=M.targetName;E?E==="shape"&&C(M,x):!n&&C(M,b)}for(var L in b){var R={};M0(R,e),F(R,b[L]);var P=CH(R),O=b[L][T];w[L]=P?{transform:P}:{},hlt(w[L],R),O&&(w[L][T]=O)}var N,I=!0;for(var L in x){w[L]=w[L]||{};var k=!N,O=x[L][T];k&&(N=new Ii);var B=N.len();N.reset(),w[L].d=clt(e,x[L],N);var H=N.len();if(!k&&B!==H){I=!1;break}O&&(w[L][T]=O)}if(!I)for(var L in w)delete w[L].d;if(!n)for(var A=0;A<S;A++){var M=_[A],E=M.targetName;E==="style"&&C(M,w,function($){return vlt[$]})}for(var U=Nt(w),X=!0,q,A=1;A<U.length;A++){var st=U[A-1],Dt=U[A];if(w[st][Yl]!==w[Dt][Yl]){X=!1;break}q=w[st][Yl]}if(X&&q){for(var L in w)w[L][Yl]&&delete w[L][Yl];t[Yl]=q}if(Ft(U,function(rt){return Nt(w[rt]).length>0}).length){var lt=i8(w,r);return lt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+a8();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function plt(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};HN(n,t,r)}else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=a.fill;if(!i){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(i=T0(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&e.transform?e.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),HN(n,t,r)}}function HN(e,t,r,n){var a=JSON.stringify(e),i=r.cssStyleCache[a];i||(i=r.zrId+"-cls-"+a8(),r.cssStyleCache[a]=i,r.cssNodes["."+i+":hover"]=e),t.class=t.class?t.class+" "+i:i}var pp=Math.round;function o8(e){return e&&Q(e.src)}function s8(e){return e&&ft(e.toDataURL)}function YL(e,t,r,n){alt(function(a,i){var o=a==="fill"||a==="stroke";o&&wH(i)?u8(t,e,a,n):o&&M2(i)?f8(r,e,a,n):e[a]=i,o&&n.ssr&&i==="none"&&(e["pointer-events"]="visible")},t,r,!1),xlt(r,e,n)}function jL(e,t){var r=RH(t);r&&(r.each(function(n,a){n!=null&&(e[(zN+a).toLowerCase()]=n+"")}),t.isSilent()&&(e[zN+"silent"]="true"))}function UN(e){return _s(e[0]-1)&&_s(e[1])&&_s(e[2])&&_s(e[3]-1)}function glt(e){return _s(e[4])&&_s(e[5])}function WL(e,t,r){if(t&&!(glt(t)&&UN(t))){var n=1e4;e.transform=UN(t)?"translate("+pp(t[4]*n)/n+" "+pp(t[5]*n)/n+")":$J(t)}}function FN(e,t,r){for(var n=e.points,a=[],i=0;i<n.length;i++)a.push(pp(n[i][0]*r)/r),a.push(pp(n[i][1]*r)/r);t.points=a.join(" ")}function YN(e){return!e.smooth}function ylt(e){var t=j(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=r[o[0]];s!=null&&(n[o[1]]=pp(s*a)/a)}}}var mlt={circle:[ylt(["cx","cy","r"])],polyline:[FN,YN],polygon:[FN,YN]};function _lt(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function l8(e,t){var r=e.style,n=e.shape,a=mlt[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&TH(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&_lt(e))&&!(l<1)){s=e.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var h=e.path;c&&(h.beginPath(),e.buildPath(h,e.shape),e.pathUpdated());var v=h.getVersion(),d=e,p=d.__svgPathBuilder;(d.__svgPathVersion!==v||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new t8),p.reset(u),h.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=v,d.__svgPathStrokePercent=l),i.d=p.getStr()}return WL(i,e.transform),YL(i,r,e,t),jL(i,e),t.animation&&KS(e,i,t),t.emphasis&&plt(e,i,t),or(s,e.id+"",i)}function Slt(e,t){var r=e.style,n=r.image;if(n&&!Q(n)&&(o8(n)?n=n.src:s8(n)&&(n=n.toDataURL())),!!n){var a=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),WL(l,e.transform),YL(l,r,e,t),jL(l,e),t.animation&&KS(e,l,t),or("image",e.id+"",l)}}function blt(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||Lo,i=r.x||0,o=KJ(r.y||0,eg(a),r.textBaseline),s=qJ[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(aU(r)){var u="",f=r.fontStyle,c=nU(r.fontSize);if(!parseFloat(c))return;var h=r.fontFamily||$G,v=r.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),WL(l,e.transform),YL(l,r,e,t),jL(l,e),t.animation&&KS(e,l,t),or("text",e.id+"",l,void 0,n)}}function jN(e,t){if(e instanceof Et)return l8(e,t);if(e instanceof cr)return Slt(e,t);if(e instanceof th)return blt(e,t)}function xlt(e,t,r){var n=e.style;if(QJ(n)){var a=JJ(e),i=r.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,h=n.shadowBlur,v=ep(n.shadowColor),d=v.opacity,p=v.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=or("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[or("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}t.filter=DS(o)}}function u8(e,t,r,n){var a=e[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(bH(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(xH(a))i="radialGradient",o.cx=ot(a.x,.5),o.cy=ot(a.y,.5),o.r=ot(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=WC(s[u].offset)*100+"%",h=s[u].color,v=ep(h),d=v.color,p=v.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(or("stop",u+"",g))}var y=or(i,"",o,l),m=FL(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=or(i,S,o,l)),t[r]=DS(S)}function f8(e,t,r,n){var a=e.style[r],i=e.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(SH(a)){var h=a.imageWidth,v=a.imageHeight,d=void 0,p=a.image;if(Q(p)?d=p:o8(p)?d=p.src:s8(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Or(h,g),Or(v,g)}else if(h==null||v==null){var y=function(A,M){if(A){var E=A.elm,L=h||M.width,R=v||M.height;A.tag==="pattern"&&(u?(R=1,L/=i.width):f&&(L=1,R/=i.height)),A.attrs.width=L,A.attrs.height=R,E&&(E.setAttribute("width",L),E.setAttribute("height",R))}},m=k2(d,null,e,function(A){l||y(x,A),y(c,A)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}c=or("image","img",{href:d,width:h,height:v}),o.width=h,o.height=v}else a.svgElement&&(c=ct(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=CH(a);b&&(o.patternTransform=b);var x=or("pattern","",o,[c]),w=FL(x),T=n.patternCache,C=T[w];C||(C=n.zrId+"-p"+n.patternIdx++,T[w]=C,o.id=C,x=n.defs[C]=or("pattern",C,o,[c])),t[r]=DS(C)}}function wlt(e,t,r){var n=r.clipPathCache,a=r.defs,i=n[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[e.id]=i,a[i]=or("clipPath",i,o,[l8(e,r)])}t["clip-path"]=DS(i)}function WN(e){return document.createTextNode(e)}function eu(e,t,r){e.insertBefore(t,r)}function XN(e,t){e.removeChild(t)}function ZN(e,t){e.appendChild(t)}function c8(e){return e.parentNode}function h8(e){return e.nextSibling}function ix(e,t){e.textContent=t}var $N=58,Tlt=120,Clt=or("","");function qA(e){return e===void 0}function oi(e){return e!==void 0}function Alt(e,t,r){for(var n={},a=t;a<=r;++a){var i=e[a].key;i!==void 0&&(n[i]=a)}return n}function td(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function gp(e){var t,r=e.children,n=e.tag;if(oi(n)){var a=e.elm=n8(n);if(XL(Clt,e),Y(r))for(t=0;t<r.length;++t){var i=r[t];i!=null&&ZN(a,gp(i))}else oi(e.text)&&!dt(e.text)&&ZN(a,WN(e.text))}else e.elm=WN(e.text);return e.elm}function v8(e,t,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&eu(e,gp(i),t)}}function e_(e,t,r,n){for(;r<=n;++r){var a=t[r];if(a!=null)if(oi(a.tag)){var i=c8(a.elm);XN(i,a.elm)}else XN(e,a.elm)}}function XL(e,t){var r,n=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(r in i){var o=i[r],s=a[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==Tlt?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(ilt,r,o):r.charCodeAt(3)===$N?n.setAttributeNS(olt,r,o):r.charCodeAt(5)===$N?n.setAttributeNS(r8,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function Mlt(e,t,r){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=r.length-1,u=r[0],f=r[l],c,h,v,d;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=r[++a]:f==null?f=r[--l]:td(o,u)?(ac(o,u),o=t[++n],u=r[++a]):td(s,f)?(ac(s,f),s=t[--i],f=r[--l]):td(o,f)?(ac(o,f),eu(e,o.elm,h8(s.elm)),o=t[++n],f=r[--l]):td(s,u)?(ac(s,u),eu(e,s.elm,o.elm),s=t[--i],u=r[++a]):(qA(c)&&(c=Alt(t,n,i)),h=c[u.key],qA(h)?eu(e,gp(u),o.elm):(v=t[h],v.tag!==u.tag?eu(e,gp(u),o.elm):(ac(v,u),t[h]=void 0,eu(e,v.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(d=r[l+1]==null?null:r[l+1].elm,v8(e,d,r,a,l)):e_(e,t,n,i))}function ac(e,t){var r=t.elm=e.elm,n=e.children,a=t.children;e!==t&&(XL(e,t),qA(t.text)?oi(n)&&oi(a)?n!==a&&Mlt(r,n,a):oi(a)?(oi(e.text)&&ix(r,""),v8(r,null,a,0,a.length-1)):oi(n)?e_(r,n,0,n.length-1):oi(e.text)&&ix(r,""):e.text!==t.text&&(oi(n)&&e_(r,n,0,n.length-1),ix(r,t.text)))}function Dlt(e,t){if(td(e,t))ac(e,t);else{var r=e.elm,n=c8(r);gp(t),n!==null&&(eu(n,t.elm,h8(r)),e_(n,[e],0,0))}return t}var Llt=0,Elt=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=qN(),this.configLayer=qN(),this.storage=r,this._opts=n=F({},n),this.root=t,this._id="zr"+Llt++,this._oldVNode=BN(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=n8("svg");XL(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Dlt(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return jN(t,$A(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=$A(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Olt(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=or("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=j(Nt(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(or("defs","defs",{},u)),t.animation){var f=ult(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=or("style","stl",{},[],f);o.push(c)}}return BN(n,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},FL(this.renderToVNode({animation:ot(t.cssAnimation,!0),emphasis:ot(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ot(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var a=t.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=t[f];if(!c.invisible){var h=c.__clipPaths,v=h&&h.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(h&&l&&h[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<v;y++){var m={};wlt(h[y],m,r);var _=or("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=h;var S=jN(c,r);S&&(s?s.children:n).push(S)}}},e.prototype.resize=function(t,r){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),a&&i&&(i.style.display="none",t=yc(a,0,n),r=yc(a,1,n),i.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,i){var o=i.style;o.width=t+"px",o.height=r+"px"}if(M2(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=ett(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function qN(e){return function(){}}function Olt(e,t,r,n){var a;if(r&&r!=="none")if(a=or("rect","bg",{width:e,height:t,x:"0",y:"0"}),wH(r))u8({fill:r},a.attrs,"fill",n);else if(M2(r))f8({style:{fill:r},dirty:De,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",n);else{var i=ep(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}function Rlt(e){e.registerPainter("svg",Elt)}function KN(e,t,r){var n=cn.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}var ox=function(e){ve(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||A0,typeof r=="string"?o=KN(r,n,a):dt(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(x2(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=KN("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new yt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new yt(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var C=new yt(0,0,0,0);C.copy(T),C.union(m),o[w]=C,S=!0;break}else if(l){u.copy(m),u.union(T);var A=m.width*m.height,M=T.width*T.height,E=u.width*u.height,L=E-A-M;L<b&&(b=L,x=w)}}if(l&&(o[x].union(m),S=!0),!S){var _=new yt(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var v=h.shouldBePainted(a,i,!0,!0),d=h.__isRendered&&(h.__dirty&Tn||!v)?h.getPrevPaintRect():null;d&&f(d);var p=v&&(h.__dirty&Tn||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],v=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var y=c+1;y<o.length;)o[c].intersect(o[y])?(g=!0,o[c].union(o[y]),o.splice(y,1)):y++;c++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c));var v=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(qp(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||RA(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else JG(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=IA(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&D(a,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(Sa),QN=1e5,Hl=314159,by=.01,Ilt=.001;function Plt(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Nlt(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var klt=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=F({},n||{}),this.dpr=n.devicePixelRatio||A0,this._singleCanvas=i,this.root=t;var o=t.style;o&&(x2(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=t,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var v=new ox(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Hl]=v,v.zlevel=Hl,s.push(Hl),this._domRoot=t}else{this._width=yc(t,0,n),this._height=yc(t,1,n);var u=this._domRoot=Nlt(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(QN)),i||(i=n.ctx,i.save()),cu(i,s,a,o===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(QN)},e.prototype.paintOne=function(t,r){TL(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;S0(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Hl).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var f=!0,c=!1,h=function(p){var g=i[p],y=g.ctx,m=o&&g.createRepaintRects(t,r,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,b=S&&Date.now(),x=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(_===g.__startIndex){var w=t[_];(!w.incremental||!w.notClear||n)&&g.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(L){var R={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<g.__endIndex;T++){var P=t[T];if(P.__inHover&&(c=!0),a._doPaintEl(P,g,o,L,R,T===g.__endIndex-1),S){var O=Date.now()-b;if(O>15)break}}R.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var A=v.dpr,M=0;M<m.length;++M){var E=m[M];y.save(),y.beginPath(),y.rect(E.x*A,E.y*A,E.width*A,E.height*A),y.clip(),C(E),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<i.length;d++)h(d);return It.wxa&&D(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},e.prototype._doPaintEl=function(t,r,n,a,i,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(cu(s,t,i,o),t.setPrevPaintRect(l))}else cu(s,t,i,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Hl);var n=this._layers[t];return n||(n=new ox("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?xt(n,this._layerConfig[t],!0):this._layerConfig[t-by]&&xt(n,this._layerConfig[t-by],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&Plt(r)){if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(r,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(r,o,i)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(r,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function r(c){i&&(i.__endIndex!==c&&(i.__dirty=!0),i.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+Ilt,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?by:0),this._needsManuallyCompositing),f.__builtin__||wS("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),i=f),a.__dirty&Tn&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?xt(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+by){var o=this._layers[i];xt(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];a&&(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(bt(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=yc(i,0,a),r=yc(i,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Hl).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Hl].dom;var r=new ox("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];cu(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function zlt(e){e.registerPainter("canvas",klt)}var Blt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return Gi(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new ht,a=Ve("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Ve(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=V.color.neutral00,u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Jt);function sh(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=nh(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(nh(e,t,r[o]));return i.join(" ")}}function d8(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var cg=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o,s){this.removeAll();var l=Ve(r,-1,-1,2,2,null,s);l.attr({z2:ot(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=Vlt,this._symbolType=r,this.add(l)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Oo(this.childAt(0))},t.prototype.downplay=function(){Ro(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=t.getSymbolZ2(r,n),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var h=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):Ht(v,d,s,n),ma(v)}if(this._updateCommon(r,n,l,a,i),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,fe(v,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,v,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||r.hasItemOption){var m=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=er(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=hf(r.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=r.getItemVisual(n,"style"),w=x.fill;if(s instanceof cr){var T=s.style;s.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(F({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;ur(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:E,inheritColor:w,defaultOpacity:x.opacity});function E(P){return M?r.getName(P):sh(r,P)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R,this.setSymbolScale(1),ye(this,h,v,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=mt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Xs(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Xs(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Yh(r.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},t}(ht);function Vlt(e,t){this.parent.drift(e,t)}function sx(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function JN(e){return e!=null&&!dt(e)&&(e={isIgnore:e}),e||{}}function tk(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:er(t),cursorStyle:t.get("cursor")}}var hg=function(){function e(t){this.group=new ht,this._SymbolCtor=t||cg}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=JN(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=tk(t),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var h=f(c);if(sx(t,h,c,r)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!sx(t,d,c,r)){n.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):Ht(v,y,a)}n.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=tk(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=JN(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(sx(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){ll(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();function p8(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=Glt(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=j(e.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return Po(t,c[0])&&(h=!0,c[0]=v),Po(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Glt(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Bt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function g8(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function Hlt(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function Ult(e,t,r,n,a,i,o,s){for(var l=Hlt(e,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],g=p8(a,t,o),y=e.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var T=y[x],C=y[x+1],A=m[w],M=m[w+1];(isNaN(T)||isNaN(C))&&(T=A,C=M),u.push(T,C),f.push(A,M),c.push(r[x],r[x+1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var E=S.idx,L=g.dataDimsForPoint,R=a.dataToPoint([t.get(L[0],E),t.get(L[1],E)]);w=E*2,u.push(R[0],R[1]),f.push(m[w],m[w+1]);var P=g8(g,a,t,E);c.push(P[0],P[1]),h.push(n[w],n[w+1]),p.push(t.getRawIndex(E));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(st,Dt){return p[st]-p[Dt]});for(var O=u.length,N=pi(O),I=pi(O),k=pi(O),B=pi(O),H=[],_=0;_<d.length;_++){var U=d[_],X=_*2,q=U*2;N[X]=u[q],N[X+1]=u[q+1],I[X]=f[q],I[X+1]=f[q+1],k[X]=c[q],k[X+1]=c[q+1],B[X]=h[q],B[X+1]=h[q+1],H[_]=v[U]}return{current:N,next:I,stackedOnCurrent:k,stackedOnNext:B,status:H}}var es=Math.min,rs=Math.max;function mu(e,t){return isNaN(e)||isNaN(t)}function KA(e,t,r,n,a,i,o,s,l){for(var u,f,c,h,v,d,p=r,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=a||p<0)break;if(mu(y,m)){if(l){p+=i;continue}break}if(p===r)e[i>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g<n;)g++,b+=i,p+=i,x=t[b*2],w=t[b*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;mu(x,w)&&T<n;)T++,b+=i,x=t[b*2],w=t[b*2+1];var C=.5,A=0,M=0,E=void 0,L=void 0;if(T>=n||mu(x,w))v=y,d=m;else{A=x-u,M=w-f;var R=y-u,P=x-y,O=m-f,N=w-m,I=void 0,k=void 0;if(s==="x"){I=Math.abs(R),k=Math.abs(P);var B=A>0?1:-1;v=y-B*I*o,d=m,E=y+B*k*o,L=m}else if(s==="y"){I=Math.abs(O),k=Math.abs(N);var H=M>0?1:-1;v=y,d=m-H*I*o,E=y,L=m+H*k*o}else I=Math.sqrt(R*R+O*O),k=Math.sqrt(P*P+N*N),C=k/(k+I),v=y-A*o*(1-C),d=m-M*o*(1-C),E=y+A*o*C,L=m+M*o*C,E=es(E,rs(x,y)),L=es(L,rs(w,m)),E=rs(E,es(x,y)),L=rs(L,es(w,m)),A=E-y,M=L-m,v=y-A*I/k,d=m-M*I/k,v=es(v,rs(u,y)),d=es(d,rs(f,m)),v=rs(v,es(u,y)),d=rs(d,es(f,m)),A=y-v,M=m-d,E=y+A*k/I,L=m+M*k/I}e.bezierCurveTo(c,h,v,d,y,m),c=E,h=L}else e.lineTo(y,m)}u=y,f=m,p+=i}return g}var y8=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Flt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new y8},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&mu(a[o*2-2],a[o*2-1]);o--);for(;i<o&&mu(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=KA(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Ii.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(r-s)/(v-s):(r-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[r,S]:[S,r]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?x0(s,v,p,y,r,f):x0(l,d,g,m,r,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?ar(l,d,g,m,w):ar(s,v,p,y,w);return u?[r,S]:[S,r]}}s=y,l=m;break}}},t}(Et),Ylt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(y8),m8=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new Ylt},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&mu(a[s*2-2],a[s*2-1]);s--);for(;o<s&&mu(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=KA(r,a,o,s,s,1,n.smooth,l,n.connectNulls);KA(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(Et);function _8(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Ct({shape:{x:o,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=ft(a)?function(g){a(g,c)}:null;fe(c,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return c}function S8(e,t,r){var n=e.getArea(),a=ze(n.r0,1),i=ze(n.r,1),o=new Rr({shape:{cx:ze(e.cx,1),cy:ze(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,fe(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function vg(e,t,r,n,a){if(e){if(e.type==="polar")return S8(e,t,r);if(e.type==="cartesian2d")return _8(e,t,r,n,a)}else return null;return null}function Zs(e,t){return e.type===t}function ek(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function rk(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function nk(e,t){var r=rk(e),n=r[0],a=r[1],i=rk(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function ak(e){return Bt(e)?e:e?.5:0}function jlt(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=pi(n*2),i=0;i<n;i++){var o=g8(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function ns(e,t,r,n,a){var i=r.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(a){for(l=0;l<e.length;l+=2){var v=t||e;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(e[l],e[l+1])}e=h}for(l=0;l<e.length-2;l+=2)switch(c[0]=e[l+2],c[1]=e[l+3],f[0]=e[l],f[1]=e[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function Wlt(e,t){var r=[],n=e.length,a,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=A2(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function Xlt(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=j(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=Wlt(u,a==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,y=g-p;if(y<.001)return"transparent";D(h,function(_){_.offset=(_.coord-p)/y}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new lf(0,0,0,0,h,!0);return m[a]=p,m[a+"2"]=g,m}}}function Zlt(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&$lt(i,t))){var o=t.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function $lt(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(cg.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function qlt(e,t){return isNaN(e)||isNaN(t)}function Klt(e){for(var t=e.length/2;t>0&&qlt(e[t*2-2],e[t*2-1]);t--);return t-1}function ik(e,t){return[e[t*2],e[t*2+1]]}function Qlt(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function b8(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Qr.length;t++)if(e.get([Qr[t],"endLabel","show"]))return!0;return!1}function lx(e,t,r,n){if(Zs(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=b8(n)?function(v,d){e._endLabelOnDuring(v,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=_8(t,r,n,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return S8(t,r,n)}function Jlt(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var tut=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new ht,n=new hg;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=J(this._changePolyState,this)},t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&r.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=p8(i,s,_),b=m&&jlt(i,s,S),x=r.get("showSymbol"),w=r.get("connectNulls"),T=x&&!c&&Zlt(r,s,i),C=this._data;C&&C.eachItemGraphicEl(function(st,Dt){st.__temp&&(o.remove(st),C.setItemGraphicEl(Dt,null))}),x||v.remove(),o.add(g);var A=c?!1:r.get("step"),M;i&&i.getArea&&r.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var E=Xlt(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&A===this._step))x&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(st){return[f[st*2],f[st*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,M),A&&(b&&(b=ns(b,f,i,A,w)),f=ns(f,null,i,A,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,Bu(E)),g.setClipPath(lx(this,i,!0,r));else{m&&!p?p=this._newPolygon(f,b):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(r,i,Bu(E));var L=g.getClipPath();if(L){var R=lx(this,i,!1,r);fe(L,{shape:R.shape},r)}else g.setClipPath(lx(this,i,!0,r));x&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(st){return[f[st*2],f[st*2+1]]}}),(!ek(this._stackedOnPoints,b)||!ek(this._points,f))&&(y?this._doUpdateAnimation(s,b,i,a,A,_,w):(A&&(b&&(b=ns(b,f,i,A,w)),f=ns(f,null,i,A,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var P=r.getModel("emphasis"),O=P.get("focus"),N=P.get("blurScope"),I=P.get("disabled");if(d.useStyle(vt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),tr(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var k=d.getState("emphasis").style;k.lineWidth=+d.style.lineWidth+1}mt(d).seriesIndex=r.seriesIndex,ye(d,O,N,I);var B=ak(r.get("smooth")),H=r.get("smoothMonotone");if(d.setShape({smooth:B,smoothMonotone:H,connectNulls:w}),p){var U=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(vt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(X=ak(U.get("smooth"))),p.setShape({smooth:B,stackedOnSmooth:X,smoothMonotone:H,connectNulls:w}),tr(p,r,"areaStyle"),mt(p).seriesIndex=r.seriesIndex,ye(p,O,N,I)}var q=this._changePolyState;s.eachItemGraphicEl(function(st){st&&(st.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,d),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){mt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=Iu(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=r.get("zlevel")||0,v=r.get("z")||0;u=new cg(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Kt.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Iu(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Kt.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;I0(this._polyline,r),n&&I0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Flt({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new m8({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");ft(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=ft(c)?c(null):c;r.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=a;i?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=ft(c)?c(d):f*w+h,C=p.getSymbolPath(),A=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(b8(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new zt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=Klt(l);f>=0&&(ur(s,er(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?d8(o,v):sh(o,c)},enableTextSetter:!0},Jlt(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=Qlt(c,S,w),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!v){var E=ik(c,C[0]);u.attr({x:E[0]+b,y:E[1]+x}),o&&(M=h.getRawValue(C[0]))}else{var E=f.getPointOn(S,w);E&&u.attr({x:E[0]+b,y:E[1]+x});var L=h.getRawValue(C[0]),R=h.getRawValue(C[1]);o&&(M=WH(a,d,L,R,T.t))}i.lastFrameIndex=C[0]}else{var P=r===1||i.lastFrameIndex>0?C[0]:0,E=ik(c,P);o&&(M=h.getRawValue(P)),u.attr({x:E[0]+b,y:E[1]+x})}if(o){var O=Bh(u);typeof O.setLabelText=="function"&&O.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,h=Ult(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,g=h.stackedOnNext;if(o&&(d=ns(h.stackedOnCurrent,h.current,a,o,l),v=ns(h.current,null,a,o,l),g=ns(h.stackedOnNext,h.next,a,o,l),p=ns(h.next,null,a,o,l)),nk(v,p)>3e3||f&&nk(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:p}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),Ht(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Ht(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=r.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,A=m[T].ptIdx*2;C.x=w[A],C.y=w[A+1],C.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Kt);function dg(e,t){return{seriesType:e,plan:Uh(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(a){var s=j(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Po(n,s[0])&&(s[0]=u),Po(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&pi(p*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var x=f.get(c,_);b=a.dataToPoint(x,null,m)}else y[0]=f.get(c,_),y[1]=f.get(h,_),b=a.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",g)}}}}}}var eut={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},rut=function(e){return Math.round(e.length/2)};function x8(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var d=void 0;Q(i)?d=eut[i]:ft(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,rut))}}}}}function nut(e){e.registerChartView(tut),e.registerSeriesModel(Blt),e.registerLayout(dg("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,x8("line"))}var yp=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Gi(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)D(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,w=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(w===g){_=x;break}else if(w<g)m=x;else if(m!=null&&w>g){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+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",defaultBarGap:"10%"},t}(Jt);Jt.registerClass(yp);var aut=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Gi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ul(yp.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:V.color.primary,borderWidth:2}},realtimeSort:!1}),t}(yp),iut=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),r_=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new iut},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(r.moveTo(p*o+a,g*o+i),r.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!h)):r.moveTo(p*s+a,g*s+i),r.arc(a,i,s,f,c,!h),r.arc(y*u+a,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&r.arc(a,i,o,c,f,h)},t}(Et);function out(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return D0(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=r?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),x=c+h*S(p),w="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(y),x=c+(v-l)*S(y),w="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(y),x=c+(v+l)*S(y),w="center",T="bottom";break;case"startAngle":b=f+d*_(p)+xy(p,l+m,!1),x=c+d*S(p)+wy(p,l+m,!1),w="right",T="middle";break;case"insideStartAngle":b=f+d*_(p)+xy(p,-l+m,!1),x=c+d*S(p)+wy(p,-l+m,!1),w="left",T="middle";break;case"middle":b=f+d*_(y),x=c+d*S(y),w="center",T="middle";break;case"endArc":b=f+(h+l)*_(y),x=c+(h+l)*S(y),w="center",T="bottom";break;case"insideEndArc":b=f+(h-l)*_(y),x=c+(h-l)*S(y),w="center",T="top";break;case"endAngle":b=f+d*_(g)+xy(g,l+m,!0),x=c+d*S(g)+wy(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":b=f+d*_(g)+xy(g,-l+m,!0),x=c+d*S(g)+wy(g,-l+m,!0),w="right",T="middle";break;default:return D0(n,a,i)}return n=n||{},n.x=b,n.y=x,n.align=w,n.verticalAlign=T,n}}function sut(e,t,r,n){if(Bt(n)){e.setTextConfig({rotation:n});return}else if(Y(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function xy(e,t,r){return t*Math.sin(e)*(r?-1:1)}function wy(e,t,r){return t*Math.cos(e)*(r?1:-1)}function yi(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Y(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:j(n,function(i){return Fa(i,a)})}}var ux=Math.max,fx=Math.min;function lut(e,t){var r=e.getArea&&e.getArea();if(Zs(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var uut=function(e){G(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){ll(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=r.isAnimationEnabled()?r:null,v=fut(r,u);v&&this._enableRealtimeSort(v,s,a);var d=r.get("clip",!0)||v,p=lut(u,s);o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function T(M){var E=Ty[u.type](s,M);if(!E)return null;var L=yut(u,c,E);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[M]=L,L}s.diff(l).add(function(M){var E=s.getItemModel(M),L=Ty[u.type](s,M,E);if(L&&(y&&T(M),!(!s.hasValue(M)||!fk[u.type](L)))){var R=!1;d&&(R=ok[u.type](p,L));var P=sk[u.type](r,s,M,L,c,h,f.model,!1,g);v&&(P.forceLabelAnimation=!0),ck(P,s,M,E,L,r,c,u.type==="polar"),x?P.attr({shape:L}):v?lk(v,h,P,L,M,c,!1,!1):fe(P,{shape:L},r,M),s.setItemGraphicEl(M,P),o.add(P),P.ignore=R}}).update(function(M,E){var L=s.getItemModel(M),R=Ty[u.type](s,M,L);if(R){if(y){var P=void 0;b.length===0?P=T(E):(P=b[E],P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[M]=P);var O=Ty[u.type](s,M),N=T8(c,O,u);Ht(P,{shape:N},h,M)}var I=l.getItemGraphicEl(E);if(!s.hasValue(M)||!fk[u.type](R)){o.remove(I);return}var k=!1;d&&(k=ok[u.type](p,R),k&&o.remove(I));var B=I&&(I.type==="sector"&&g||I.type==="sausage"&&!g);if(B&&(I&&So(I,r,E),I=null),I?ma(I):I=sk[u.type](r,s,M,R,c,h,f.model,!0,g),v&&(I.forceLabelAnimation=!0),w){var H=I.getTextContent();if(H){var U=Bh(H);U.prevValue!=null&&(U.prevValue=U.value)}}else ck(I,s,M,L,R,r,c,u.type==="polar");x?I.attr({shape:R}):v?lk(v,h,I,R,M,c,!0,w):Ht(I,{shape:R},r,M,null),s.setItemGraphicEl(M,I),I.ignore=k,o.add(I)}}).remove(function(M){var E=l.getItemGraphicEl(M);E&&So(E,r,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ht);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),vk(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),vk(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&vg(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:j(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){So(i,r,mt(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Kt),ok={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=ux(t.x,e.x),s=fx(t.x+t.width,a),l=ux(t.y,e.y),u=fx(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>a?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=fx(t.r,e.r),i=ux(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},sk={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new Ct({shape:F({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?r_:Rr,f=new u({shape:n,z2:1});f.name="item";var c=w8(a);if(f.calculateTextPosition=out(c,{isRoundCap:u===r_}),i){var h=f.shape,v=a?"r":"endAngle",d={};h[v]=a?n.r0:n.startAngle,d[v]=n[v],(s?Ht:fe)(f,{shape:d},i)}return f}};function fut(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function lk(e,t,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ht:fe)(r,{shape:l},t,a,null);var f=t?e.baseAxis.model:null;(o?Ht:fe)(r,{shape:u},f,a)}function uk(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var cut=["x","y","width","height"],hut=["cx","cy","r","startAngle","endAngle"],fk={cartesian2d:function(e){return!uk(e,cut)},polar:function(e){return!uk(e,hut)}},Ty={cartesian2d:function(e,t,r){var n=e.getItemLayout(t);if(!n)return null;var a=r?dut(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function vut(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function w8(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function ck(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var f=e.shape,c=yi(n.getModel("itemStyle"),f,!0);F(f,c),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var h=n.getShallow("cursor");h&&e.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",d=er(n);ur(e,d,{labelFetcher:i,labelDataIndex:r,defaultText:sh(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=e.getTextContent();if(s&&p){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,sut(e,g==="outside"?v:g,w8(o),n.get(["label","rotate"]))}IU(p,d,i.getRawValue(r),function(m){return d8(t,m)});var y=n.getModel(["emphasis"]);ye(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),tr(e,n),vut(a)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function dut(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var put=function(){function e(){}return e}(),hk=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new put},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],r.rect(s[0],s[1],l[0],l[1])},t}(Et);function vk(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new hk({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var c=new hk({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(a.getVisual("style")),c.style.stroke=null,mt(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",dk),c.on("mousemove",dk)),r&&r.push(c)}var dk=XS(function(e){var t=this,r=gut(t,e.offsetX,e.offsetY);mt(t).dataIndex=r>=0?r:null},30,!1);function gut(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function T8(e,t,r){if(Zs(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function yut(e,t,r){var n=e.type==="polar"?Rr:Ct;return new n({shape:T8(t,r,e),silent:!0,z2:0})}function mut(e){e.registerChartView(uut),e.registerSeriesModel(aut),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,St(M6,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D6("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,x8("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var pk=Math.PI*2,Cy=Math.PI/180;function _ut(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=KU(n,r),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,h=-n.get("startAngle")*Cy,v=n.get("endAngle"),d=n.get("padAngle")*Cy;v=v==="auto"?h-pk:-v*Cy;var p=n.get("minAngle")*Cy,g=p+d,y=0;a.each(i,function(N){!isNaN(N)&&y++});var m=a.getSum(i),_=Math.PI/(m||y)*2,S=n.get("clockwise"),b=n.get("roseType"),x=n.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[h,v],A=T*d/2;kS(C,!S),h=C[0],v=C[1];var M=C8(n);M.startAngle=h,M.endAngle=v,M.clockwise=S,M.cx=s,M.cy=l,M.r=u,M.r0=f;var E=Math.abs(v-h),L=E,R=0,P=h;if(a.setLayout({viewRect:c,r:u}),a.each(i,function(N,I){var k;if(isNaN(N)){a.setItemLayout(I,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?k=m===0&&x?_:N*_:k=E/y,k<g?(k=g,L-=g):R+=N;var B=P+T*k,H=0,U=0;d>k?(H=P+T*k/2,U=H):(H=P+A,U=B-A),a.setItemLayout(I,{angle:k,startAngle:H,endAngle:U,clockwise:S,cx:s,cy:l,r0:f,r:b?Yt(N,w,[f,u]):u}),P=B}),L<pk&&y)if(L<=.001){var O=E/y;a.each(i,function(N,I){if(!isNaN(N)){var k=a.getItemLayout(I);k.angle=O;var B=0,H=0;O<d?(B=h+T*(I+1/2)*O,H=B):(B=h+T*I*O+A,H=h+T*(I+1)*O-A),k.startAngle=B,k.endAngle=H}})}else _=L/R,P=h,a.each(i,function(N,I){if(!isNaN(N)){var k=a.getItemLayout(I),B=k.angle===g?g:N*_,H=0,U=0;B<d?(H=P+T*B/2,U=H):(H=P+A,U=P+T*B-A),k.startAngle=H,k.endAngle=U,P+=T*B}})})}var C8=Mt();function Zh(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Sut=Math.PI/180;function gk(e,t,r,n,a,i,o,s,l,u){if(e.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-r),b=n+_.len,x=b*b,w=Math.sqrt(Math.abs((1-S*S/y)*x)),T=t+(w+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;A8(_,A,!0),_.label.x=T}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>r?y:g,b=Math.abs(_.label.y-r);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,w=n+_.len,T=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=T,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var h=e.length,v=0;v<h;v++)if(e[v].position==="outer"&&e[v].labelAlignTo==="labelLine"){var d=e[v].label.x-u;e[v].linePoints[1][0]+=d,e[v].label.x=u}XA(e,1,l,l+o)&&c(e)}function but(e,t,r,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<e.length;h++){var v=e[h].label;cx(e[h])||(v.x<t?(f=Math.min(f,v.x),l.push(e[h])):(c=Math.max(c,v.x),u.push(e[h])))}for(var h=0;h<e.length;h++){var d=e[h];if(!cx(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=f-o-d.bleedMargin:g=o+a-c-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+a-v.x-d.bleedMargin,d.targetTextWidth=g,A8(d,g,!1)}}gk(u,t,r,n,1,a,i,o,s,c),gk(l,t,r,n,-1,a,i,o,s,f);for(var h=0;h<e.length;h++){var d=e[h];if(!cx(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];y?v.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+a-d.edgeDistance-b-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function A8(e,t,r){if(e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,v=t<f?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}M8(i,n)}}}function M8(e,t){yk.rect=e,K6(yk,t,xut)}var xut={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},yk={};function cx(e){return e.position==="center"}function wut(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*Sut,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),A=w.getTextGuideLine(),M=t.getItemModel(x),E=M.getModel("label"),L=E.get("position")||M.get(["emphasis","label","position"]),R=E.get("distanceToLabelLine"),P=E.get("alignTo"),O=K(E.get("edgeDistance"),u),N=E.get("bleedMargin");N==null&&(N=Math.min(u,h)>200?10:2);var I=M.getModel("labelLine"),k=I.get("length");k=K(k,u);var B=I.get("length2");if(B=K(B,u),Math.abs(T.endAngle-T.startAngle)<o){D(C.states,v),C.ignore=!0,A&&(D(A.states,v),A.ignore=!0);return}if(d(C)){var H=(T.startAngle+T.endAngle)/2,U=Math.cos(H),X=Math.sin(H),q,st,Dt,lt;n=T.cx,a=T.cy;var rt=L==="inside"||L==="inner";if(L==="center")q=T.cx,st=T.cy,lt="center";else{var et=(rt?(T.r+T.r0)/2*U:T.r*U)+n,at=(rt?(T.r+T.r0)/2*X:T.r*X)+a;if(q=et+U*3,st=at+X*3,!rt){var $=et+U*(k+l-T.r),tt=at+X*(k+l-T.r),kt=$+(U<0?-1:1)*B,Tt=tt;P==="edge"?q=U<0?f+O:f+u-O:q=kt+(U<0?-R:R),st=Tt,Dt=[[et,at],[$,tt],[kt,Tt]]}lt=rt?"center":P==="edge"?U>0?"right":"left":U>0?"left":"right"}var Ut=Math.PI,Wt=0,be=E.get("rotate");if(Bt(be))Wt=be*(Ut/180);else if(L==="center")Wt=0;else if(be==="radial"||be===!0){var Fr=U<0?-H+Ut:-H;Wt=Fr}else if(be==="tangential"&&L!=="outside"&&L!=="outer"){var nr=Math.atan2(U,X);nr<0&&(nr=Ut*2+nr);var gl=X>0;gl&&(nr=Ut+nr),Wt=nr-Ut}if(i=!!Wt,C.x=q,C.y=st,C.rotation=Wt,C.setStyle({verticalAlign:"middle"}),rt){C.setStyle({align:lt});var N1=C.states.select;N1&&(N1.x+=C.x,N1.y+=C.y)}else{var bf=new yt(0,0,0,0);M8(bf,C),r.push({label:C,labelLine:A,position:L,len:k,len2:B,minTurnAngle:I.get("minTurnAngle"),maxSurfaceAngle:I.get("maxSurfaceAngle"),surfaceNormal:new gt(U,X),linePoints:Dt,textAlign:lt,labelDistance:R,labelAlignTo:P,edgeDistance:O,bleedMargin:N,rect:bf,unconstrainedWidth:bf.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:rt})}}),!i&&e.get("avoidLabelOverlap")&&but(r,n,a,l,u,h,f,c);for(var p=0;p<r.length;p++){var g=r[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(D(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(D(m.states,v),m.ignore=!0):(Z6(b,g.minTurnAngle),Fst(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new gt(b[0][0],b[0][1])})}}}var Tut=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new zt;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),c=F(yi(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(fe(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,fe(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),fe(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ht(o,{shape:{endAngle:f.endAngle}},s,n))}else ma(o),Ht(o,{shape:c},s,n);o.useStyle(r.getItemVisual(n,"style")),tr(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},yi(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:p,y:g,shape:yi(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:yi(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&F(m.ensureState("select"),{x:p,y:g}),F(_.ensureState("select"),{x:p,y:g}),ye(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;ur(i,er(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new _r,this.setTextGuideLine(v)),GL(this,HL(o),{stroke:u,opacity:un(s.get(["lineStyle","opacity"]),f,1)})}},t}(Rr),Cut=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var h=C8(r),v=new Rr({shape:ct(h)});v.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new Tut(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);So(p,r,d)}).execute(),wut(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Kt);function $h(e,t,r){t=Y(t)&&{coordDimensions:t}||F({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=jh(n,t).dimensions,i=new Hr(a,e);return i.initData(n,r),i}var qh=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),Aut=Mt(),D8=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new qh(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return $h(this,{coordDimensions:["value"],encodeDefaulter:St(dL,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=Aut(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=kH(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Ru(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Jt);_nt({fullType:D8.type,getCoord2:function(e){return e.getShallow("center")}});function Mut(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Bt(o)&&!isNaN(o)&&o<0)})}}}function Dut(e){e.registerChartView(Cut),e.registerSeriesModel(D8),UF("pie",e.registerAction),e.registerLayout(St(_ut,"pie")),e.registerProcessor(Zh("pie")),e.registerProcessor(Mut("pie"))}var Lut=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Gi(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],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:V.color.primary}},universalTransition:{divideShape:"clone"}},t}(Jt),L8=4,Eut=function(){function e(){}return e}(),Out=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Eut},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<L8,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var h=a[c++],v=a[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,a=r.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,c=i[f]-s/2,h=i[f+1]-l/2;if(r>=c&&n>=h&&r<=c+s&&n<=h+l)return u}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<a.length;){var v=a[h++],d=a[h++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),c=Math.max(d,c)}r=this._rect=new yt(l-o/2,u-s/2,f-l+o,c-u+s)}return r},t}(Et),Rut=function(){function e(){this.group=new ht}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;r=new Float32Array(r.buffer,i,a)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var a=this._newAdded[0],i=r.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Out({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;n=n||{};var i=r.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=Ve(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<L8;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=mt(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Iut=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=dg("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Rut:new hg,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Kt),E8={left:0,right:0,top:0,bottom:0},n_=["25%","25%"],Put=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var a=ff(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&r.outerBounds&&Pi(r.outerBounds,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Pi(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:E8,outerBoundsContain:"all",outerBoundsClampWidth:n_[0],outerBoundsClampHeight:n_[1],backgroundColor:V.color.transparent,borderWidth:1,borderColor:V.color.neutral30},t}(At),QA=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Me).models[0]},t.type="cartesian2dAxis",t}(At);Ee(QA,Xh);var O8={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:V.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:V.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:V.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[V.color.backgroundTint,V.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:V.color.neutral00,borderColor:V.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Nut=xt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},O8),ZL=xt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:V.color.axisMinorSplitLine,width:1}}},O8),kut=xt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ZL),zut=vt({logBase:10},ZL);const R8={category:Nut,value:ZL,time:kut,log:zut};var But={value:1,category:1,time:1,log:1},JA=null;function Vut(e){JA||(JA=e)}function pg(){return JA}function lh(e,t,r,n){D(But,function(a,i){var o=xt(xt({},R8[i],!0),n,!0),s=function(l){G(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=sp(this),v=h?ff(f):{},d=c.getTheme();xt(f,d.get(i+"Axis")),xt(f,this.getDefaultOption()),f.type=mk(f),h&&Pi(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=vp.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=pg();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",mk)}function mk(e){return e.type||(e.data?"category":"value")}var Gut=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return j(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ft(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),tM=["x","y"];function _k(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var Hut=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=tM,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!_k(r)||!_k(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=ga([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new yt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Le(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n,a){if(a=a||[],this._invTransform)return Le(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new yt(i,o,s,l)},t}(Gut),I8=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(xa),QS="expandAxisBreak",P8="collapseAxisBreak",N8="toggleAxisBreak",$L="axisbreakchanged",Uut={type:QS,event:$L,update:"update",refineEvent:qL},Fut={type:P8,event:$L,update:"update",refineEvent:qL},Yut={type:N8,event:$L,update:"update",refineEvent:qL};function qL(e,t,r,n){var a=[];return D(e,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function jut(e){e.registerAction(Uut,t),e.registerAction(Fut,t),e.registerAction(Yut,t);function t(r,n){var a=[],i=Ic(n,r);function o(s,l){D(i[s],function(u){var f=u.updateAxisBreaks(r);D(f.breaks,function(c){var h;a.push(vt((h={},h[l]=u.componentIndex,h),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var Ss=Math.PI,Wut=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Xut=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],uh=Mt(),k8=Mt(),z8=function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,a=this.recordMap,i=a[r]||(a[r]=[]);return i[n]||(i[n]={ready:{}})},e}();function Zut(e,t,r,n){var a=r.axis,i=t.ensureRecord(r),o=[],s,l=KL(e.axisName)&&oh(e.nameLocation);D(n,function(d){var p=Ni(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?ga(Tv,g.transform):Jp(Tv),p.transform&&ka(Tv,Tv,p.transform),yt.copy(Ay,p.localRect),Ay.applyTransform(Tv),s?s.union(Ay):yt.copy(s=new yt(0,0,0,0),Ay))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=a.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new yt(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Tv=sr(),Ay=new yt(0,0,0,0),B8=function(e,t,r,n,a,i){if(oh(e.nameLocation)){var o=i.stOccupiedRect;o&&V8(Wst({},o,i.transGroup.transform),n,a)}else G8(i.labelInfoList,i.dirVec,n,a)};function V8(e,t,r){var n=new gt;qS(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&jA(t,n)}function G8(e,t,r,n){for(var a=gt.dot(n,t)>=0,i=0,o=e.length;i<o;i++){var s=e[a?i:o-1-i];s.label.ignore||V8(s,r,n)}}var qr=function(){function e(t,r,n,a){this.group=new ht,this._axisModel=t,this._api=r,this._local={},this._shared=a||new z8(B8),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},a=ot(t.axisName,r.get("name")),i=r.get("nameMoveOverlap");(i==null||i==="auto")&&(i=ot(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:ot(t.nameDirection,1),tickDirection:ot(t.tickDirection,1),labelDirection:ot(t.labelDirection,1),labelOffset:ot(t.labelOffset,0),silent:ot(t.silent,!0),axisName:a,nameLocation:un(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:KL(a)&&i,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new ht({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new gt(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),D($ut,function(a){t[a]&&qut[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var a=E2(r-t),i,o;return Jc(a)?(o=n>0?"top":"bottom",i="center"):Jc(a-Ss)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Ss?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),$ut=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],qut={axisLine:function(e,t,r,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(Le(f,f,u),Le(c,c,u));var v=F({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())pg().buildAxisBreakLine(n,a,i,d);else{var p=new Be(F({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));rh(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);Q(g)&&(g=[g,g]),(Q(y)||Bt(y))&&(y=[y,y]);var m=hf(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];D([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(g[x]!=="none"&&g[x]!=null){var w=Ve(g[x],-_/2,-S/2,_,S,v.stroke,!0),T=b.r+b.offset,C=h?c:f;w.attr({rotation:b.rotate,x:C[0]+T*Math.cos(e.rotation),y:C[1]-T*Math.sin(e.rotation),silent:!0,z2:11}),a.add(w)}})}}},axisTickLabelEstimate:function(e,t,r,n,a,i,o,s){var l=bk(t,a,s);l&&Sk(e,t,r,n,a,i,o,Ya.estimate)},axisTickLabelDetermine:function(e,t,r,n,a,i,o,s){var l=bk(t,a,s);l&&Sk(e,t,r,n,a,i,o,Ya.determine);var u=tft(e,a,i,n);Jut(e,t.labelLayoutList,u),eft(e,a,i,n,e.tickDirection)},axisName:function(e,t,r,n,a,i,o,s){var l=r.ensureRecord(n);t.nameEl&&(a.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(KL(u)){var f=e.nameLocation,c=e.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new gt(0,0),y=new gt(0,0);f==="start"?(g.x=d[0]-p*v,y.x=-p):f==="end"?(g.x=d[1]+p*v,y.x=p):(g.x=(d[0]+d[1])/2,g.y=e.labelOffset+c*v,y.y=c);var m=sr();y.transform(Yo(m,m,e.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Ss/180);var S,b;oh(f)?S=qr.innerTextLayout(e.rotation,_??e.rotation,c):(S=Kut(e.rotation,f,_||0,d),b=e.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),w=n.get("nameTruncate",!0)||{},T=w.ellipsis,C=yr(e.raw.nameTruncateMaxWidth,w.maxWidth,b),A=s.nameMarginLevel||0,M=new zt({x:g.x,y:g.y,rotation:S.rotation,silent:qr.isLabelSilent(n),style:ee(h,{text:u,font:x,overflow:"truncate",width:C,ellipsis:T,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Wo({el:M,componentModel:n,itemName:u}),M.__fullText=u,M.anid="name",n.get("triggerEvent")){var E=qr.makeAxisEventDataBase(n);E.targetType="axisName",E.name=u,mt(M).eventData=E}i.add(M),M.updateTransform(),t.nameEl=M;var L=l.nameLayout=Ni({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:oh(f)?Wut[A]:Xut[A]});if(l.nameLocation=f,a.add(M),M.decomposeTransform(),e.shouldNameMoveOverlap&&L){var R=r.ensureRecord(n);r.resolveAxisNameOverlap(e,r,n,L,y,R)}}}};function Sk(e,t,r,n,a,i,o,s){U8(t)||rft(e,t,a,s,n,o);var l=t.labelLayoutList;nft(e,n,l,i),oft(n,e.rotation,l);var u=e.optionHideOverlap;Qut(n,l,u),u&&Q6(Ft(l,function(f){return f&&!f.label.ignore})),Zut(e,r,n,l)}function Kut(e,t,r,n){var a=E2(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Jc(a-Ss/2)?(o=l?"bottom":"top",i="center"):Jc(a-Ss*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Ss*1.5&&a>Ss/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Qut(e,t,r){if(N6(e.axis))return;function n(s,l,u){var f=Ni(t[l]),c=Ni(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){ed(f.label);return}if(c.suggestIgnore){ed(c.label);return}var h=.1;if(!r){var v=[0,0,0,0];f=WA({marginForce:v},f),c=WA({marginForce:v},c)}qS(f,c,null,{touchThreshold:h})&&ed(s?c.label:f.label)}}var a=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]),o=t.length;n(a,0,1),n(i,o-1,o-2)}function Jut(e,t,r){e.showMinorTicks||D(t,function(n){if(n&&n.label.ignore)for(var a=0;a<r.length;a++){var i=r[a],o=k8(i),s=uh(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){ed(i);return}}})}function ed(e){e&&(e.ignore=!0)}function H8(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(Le(o,o,t),Le(s,s,t));var f=new Be({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});rh(f.shape,f.style.lineWidth),f.anid=a+"_"+e[l].tickValue,i.push(f);var c=k8(f);c.onBand=!!e[l].onBand,c.tickValue=e[l].tickValue}return i}function tft(e,t,r,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=e.tickDirection*i.get("length"),u=a.getTicksCoords(),f=H8(u,r.transform,l,vt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function eft(e,t,r,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=vt(l.getLineStyle(),vt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=H8(s[c],r.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)t.add(h[v])}}function bk(e,t,r){if(U8(e)){var n=e.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(t.remove(e.labelGroup),eM(e,null,null,null))}return!0}function rft(e,t,r,n,a,i){var o=a.axis,s=yr(e.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new ht;r.add(l);var u=q0(n);if(!s||o.scale.isBlank()){eM(t,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),h=(yr(e.raw.labelRotate,f.get("rotate"))||0)*Ss/180,v=qr.innerTextLayout(e.rotation,h,e.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),y=1/0,m=-1/0;D(c,function(S,b){var x,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,T=S.formattedLabel,C=S.rawLabel,A=f;if(d&&d[w]){var M=d[w];dt(M)&&M.textStyle&&(A=new Lt(M.textStyle,f,a.ecModel))}var E=A.getTextColor()||a.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||v.textAlign,R=ot(A.getShallow("alignMinLabel",!0),L),P=ot(A.getShallow("alignMaxLabel",!0),L),O=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,N=ot(A.getShallow("verticalAlignMinLabel",!0),O),I=ot(A.getShallow("verticalAlignMaxLabel",!0),O),k=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);y=Math.min(y,k),m=Math.max(m,k);var B=new zt({x:0,y:0,rotation:0,silent:qr.isLabelSilent(a),z2:k,style:ee(A,{text:T,align:b===0?R:b===c.length-1?P:L,verticalAlign:b===0?N:b===c.length-1?I:O,fill:ft(E)?E(o.type==="category"?C:o.type==="value"?w+"":w,b):E})});B.anid="label_"+w;var H=uh(B);if(H.break=S.break,H.tickValue=w,H.layoutRotation=v.rotation,Wo({el:B,componentModel:a,itemName:T,formatterParamsExtra:{isTruncated:function(){return B.isTruncated},value:C,tickIndex:b}}),g){var U=qr.makeAxisEventDataBase(a);U.targetType="axisLabel",U.value=C,U.tickIndex=b,S.break&&(U.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(U.dataIndex=w),mt(B).eventData=U,S.break&&ift(a,i,B,S.break)}p.push(B),l.add(B)});var _=j(p,function(S){return{label:S,priority:uh(S).break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});eM(t,_,l,u)}function U8(e){return!!e.labelLayoutList}function eM(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function nft(e,t,r,n){var a=t.get(["axisLabel","margin"]);D(r,function(i,o){var s=Ni(i);if(s){var l=s.label,u=uh(l);s.suggestIgnore=l.ignore,l.ignore=!1,M0(Xi,aft),Xi.x=t.axis.dataToCoord(u.tickValue),Xi.y=e.labelOffset+e.labelDirection*a,Xi.rotation=u.layoutRotation,n.add(Xi),Xi.updateTransform(),n.remove(Xi),Xi.decomposeTransform(),M0(l,Xi),l.markRedraw(),t_(s,!0),Ni(s)}})}var Xi=new Ct,aft=new Ct;function KL(e){return!!e}function ift(e,t,r,n){r.on("click",function(a){var i={type:QS,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(i)})}function oft(e,t,r){var n=Ue();if(n){var a=n.retrieveAxisBreakPairs(r,function(o){return o&&uh(o.label).break},!0),i=e.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&D(a,function(o){pg().adjustBreakLabelPair(e.axis.inverse,t,[Ni(r[o[0]]),Ni(r[o[1]])])})}}function a_(e,t,r){r=r||{};var n=t.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}a.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?h[f[o]]-h[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),yr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=t.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function sft(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function xk(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,Me).models[0];t[n]=i}),t}function lft(e,t,r,n,a,i){for(var o=a_(e,r),s=!1,l=!1,u=0;u<t.length;u++)VA(t[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new qr(r,n,o,a)}function uft(e,t,r){var n=a_(t,r);e.updateCfg(n)}function F8(e,t,r){var n=No.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,{expandToNicedExtent:!0}),o=a.length-1,s=n.getInterval.call(r),l=P6(e,t),u=l.extent,f=l.fixMin,c=l.fixMax;e.type==="log"&&(u=GA(e.base,u,!0)),e.setBreaksFromOption(k6(t)),e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=n.getExtent.call(e);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=n.getInterval.call(e),d=u[0],p=u[1];if(f&&c)v=(p-d)/o;else if(f)for(p=u[0]+v*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=qb(v),p=u[0]+v*o;else if(c)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=qb(v),d=u[1]-v*o;else{var g=e.getTicks().length-1;g>o&&(v=qb(v));var y=v*o;p=Math.ceil(u[1]/v)*v,d=ze(p-y),d<0&&u[0]>=0?(d=0,p=ze(y)):p>0&&u[1]<=0&&(p=0,d=-ze(y))}var m=(a[0].value-i[0].value)/s,_=(a[o].value-i[o].value)/s;n.setExtent.call(e,d+v*m,p+v*_),n.setInterval.call(e,v),(m||_)&&n.setNiceExtent.call(e,d+v,p-v)}var wk=[[3,1],[0,2]],fft=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tM,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Nt(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;VA(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Vu(p,d),VA(p)&&(s=v))}f.length&&(s||(s=f.pop(),Vu(s.scale,s.model)),D(f,function(g){F8(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};D(n.x,function(o){Tk(n,"y",o,i)}),D(n.y,function(o){Tk(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=rr(t,r),i=this._rect=de(t.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(rM(o,i),!n){var u=vft(i,s,o,l,r),f=void 0;if(l)nM?(nM(this._axesList,i),rM(o,i)):f=Mk(i.clone(),"axisLabel",null,i,o,u,a);else{var c=dft(t,i,a),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=Mk(h,v,d,i,o,u,a))}Y8(i,o,Ya.determine,null,f,a)}D(this._coordsList,function(p){p.calcAffineTransform()})},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}dt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Me).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",Me).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,bt(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(f,c){D(s.y,function(h,v){var d="x"+c+"y"+v,p=new Hut(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(hx(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new I8(f,fg(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},e.prototype._updateScale=function(t,r){D(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(sft(a)){var i=xk(a),o=i.xAxisModel,s=i.yAxisModel;if(!hx(o,r)||!hx(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(a,i){D($0(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return D(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);bt(r,i)<0&&r.push(i),bt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){lg({targetModel:a,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=xk(a),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},e.dimensions=tM,e}();function hx(e,t){return e.getCoordSysModel()===t}function Tk(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Ck(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&Ck(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function Ck(e){return e&&e.type!=="category"&&e.type!=="time"&&rst(e)}function cft(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}function rM(e,t){D(e.x,function(r){return Ak(r,t.x,t.width)}),D(e.y,function(r){return Ak(r,t.y,t.height)})}function Ak(e,t,r){var n=[0,r],a=e.inverse?1:0;e.setExtent(n[a],n[1-a]),cft(e,t)}var nM;function hft(e){nM=e}function Mk(e,t,r,n,a,i,o){Y8(n,a,Ya.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=ol(s,function(h){return h>0})==null;return ku(n,s,!0,!0,r),rM(a,n),l;function u(h){D(a[_t[h]],function(v){if(dp(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=v.scale.normalize(uh(y.label).tickValue);m=h===1?1-m:m,f(y.rect,h,m),f(y.rect,1-h,NaN)}var _=d.nameLayout;if(_){var m=oh(d.nameLocation)?.5:NaN;f(_.rect,h,m),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var p=e[_t[v]]-h[_t[v]],g=h[Fe[v]]+h[_t[v]]-(e[Fe[v]]+e[_t[v]]);p=c(p,1-d),g=c(g,d);var y=wk[v][0],m=wk[v][1];s[y]=ke(s[y],p),s[m]=ke(s[m],g)}function c(h,v){return h>0&&!Dr(v)&&v>1e-4&&(h/=v),h}}function vft(e,t,r,n,a){var i=new z8(pft);return D(r,function(o){return D(o,function(s){if(dp(s.model)){var l=!n;s.axisBuilder=lft(e,t,s.model,a,i,l)}})}),i}function Y8(e,t,r,n,a,i){var o=r===Ya.determine;D(t,function(u){return D(u,function(f){dp(f.model)&&(uft(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[_t[1-u]]=e[Fe[u]]<=i.refContainer[Fe[u]]*.5?0:1-u===1?2:1}D(t,function(u,f){return D(u,function(c){dp(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function dft(e,t,r){var n,a=e.get("outerBoundsMode",!0);a==="same"?n=t.clone():(a==null||a==="auto")&&(n=de(e.get("outerBounds",!0)||E8,r.refContainer));var i=e.get("outerBoundsContain",!0),o;i==null||i==="auto"||bt(["all","axisLabel"],i)<0?o="all":o=i;var s=[L0(ot(e.get("outerBoundsClampWidth",!0),n_[0]),t.width),L0(ot(e.get("outerBoundsClampHeight",!0),n_[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var pft=function(e,t,r,n,a,i){var o=r.axis.dim==="x"?"y":"x";B8(e,t,r,n,a,i),oh(e.nameLocation)||D(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&G8(s.labelInfoList,s.dirVec,n,a)})};function gft(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return yft(r,e,t),r.seriesInvolved&&_ft(r,e),r}function yft(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=mp(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(D(s.getAxes(),St(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&D(d.baseAxes,St(p,v?"cross":!0,h)),v&&D(d.otherAxes,St(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!aM(_))){y==null&&(y=_.get("triggerTooltip")),_=g?mft(m,c,a,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=mp(m.model),T=y||b||m.type==="category",C=e.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:aM(_),seriesModels:[],linkGroup:null};u[w]=C,e.seriesInvolved=e.seriesInvolved||T;var A=Sft(i,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[w]=C,M.mapper=i[A].mapper,C.linkGroup=M}}}})}function mft(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(h){l[h]=ct(o.get(h))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&vt(u,c.textStyle)}}return e.model.getModel("axisPointer",new Lt(l,r,n))}function _ft(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||D(e.coordSysAxesInfo[mp(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Sft(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(vx(i[n+"AxisId"],r.id)||vx(i[n+"AxisIndex"],r.componentIndex)||vx(i[n+"AxisName"],r.name))return a}}function vx(e,t){return e==="all"||Y(e)&&bt(e,t)>=0||e===t}function bft(e){var t=QL(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=aM(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function QL(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[mp(e)]}function xft(e){var t=QL(e);return t&&t.axisPointerModel}function aM(e){return!!e.get(["handle","show"])}function mp(e){return e.type+"||"+e.id}var Dk={},vf=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&bft(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=xft(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){Dk[r]=n},t.getAxisPointerClass=function(r){return r&&Dk[r]},t.type="axis",t}(ie),iM=Mt();function j8(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=iM(e).splitAreaColors,h=it(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Y(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;a.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var w=u[d-1].tickValue;w!=null&&h.set(w,v),t.add(new Ct({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:vt({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}iM(e).splitAreaColors=h}}}function W8(e){iM(e).splitAreaColors=null}var wft=["splitArea","splitLine","minorSplitLine","breakArea"],X8=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ht,this.group.add(this._axisGroup),!!dp(r)){this._axisGroup.add(r.axis.axisBuilder.group),D(wft,function(l){r.get([l,"show"])&&Tft[l](this,this._axisGroup,r,r.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||og(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){W8(this)},t.type="cartesianAxis",t}(vf),Tft={splitLine:function(e,t,r,n,a){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=Y(l)?l:[l];for(var c=n.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;h?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var b=v++%l.length,x=new Be({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:vt({stroke:l[b]},y),silent:!0});rh(x.shape,y.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,r,n,a){var i=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,h[0]=g,h[1]=l.y+l.height):(c[0]=l.x,c[1]=g,h[0]=l.x+l.width,h[1]=g);var y=new Be({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});rh(y.shape,v.lineWidth),t.add(y)}},splitArea:function(e,t,r,n,a){j8(e,t,r,n)},breakArea:function(e,t,r,n,a){var i=pg(),o=r.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,e,r,n.coordinateSystem.getRect(),a)}},Z8=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(X8),Cft=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Z8.type,r}return t.type="yAxis",t}(X8),Aft=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Ct({shape:r.coordinateSystem.getRect(),style:vt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ie),Lk={offset:0};function $8(e){e.registerComponentView(Aft),e.registerComponentModel(Put),e.registerCoordinateSystem("cartesian2d",fft),lh(e,"x",QA,Lk),lh(e,"y",QA,Lk),e.registerComponentView(Z8),e.registerComponentView(Cft),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Mft(e,t){var r=e.coordinateSystem,n=r&&r.type,a=r&&r.getBaseAxis&&r.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n==="cartesian2d"&&i==="ordinal"||n==="single",s=t.model.get("jitter")>0;return o&&s}var Dft=Mt();function Ek(e,t,r,n){if(e instanceof I8){var a=e.scale.type;if(a!=="category"&&a!=="ordinal")return r}var i=e.model,o=i.get("jitter"),s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=e.scale.type==="ordinal"?e.getBandWidth():null;return o>0?s?q8(r,o,u,n):Lft(e,t,r,n,o,l):r}function q8(e,t,r,n){if(r===null)return e+(Math.random()-.5)*t;var a=r-n*2,i=Math.min(Math.max(0,t),a);return e+(Math.random()-.5)*i}function Lft(e,t,r,n,a,i){var o=Dft(e);o.items||(o.items=[]);var s=o.items,l=Ok(s,t,r,n,a,i,1),u=Ok(s,t,r,n,a,i,-1),f=Math.abs(l-r)<Math.abs(u-r)?l:u,c=e.scale.type==="ordinal"?e.getBandWidth():null,h=Math.abs(f-r);return h>a/2||c&&h>c/2-n?q8(r,a,c,n):(s.push({fixedCoord:t,floatCoord:f,r:n}),f)}function Ok(e,t,r,n,a,i,o){for(var s=r,l=0;l<e.length;l++){var u=e[l],f=t-u.fixedCoord,c=s-u.floatCoord,h=f*f+c*c,v=n+u.r+i;if(h<v*v){var d=u.floatCoord+Math.sqrt(v*v-f*f)*o;if(Math.abs(d-r)>a/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function Eft(e){e.eachSeriesByType("scatter",function(t){var r=t.coordinateSystem;if(r&&(r.type==="cartesian2d"||r.type==="single")){var n=r.getBaseAxis?r.getBaseAxis():null,a=n&&Mft(t,n);if(a){var i=t.getData();i.each(function(o){var s=n.dim,l=n.orient,u=l==="horizontal"&&n.type!=="category"||l==="vertical"&&n.type==="category",f=i.getItemLayout(o),c=i.getItemVisual(o,"symbolSize"),h=c instanceof Array?(c[1]+c[0])/2:c;if(s==="y"||s==="single"&&u){var v=Ek(n,f[0],f[1],h/2);i.setItemLayout(o,[f[0],v])}else if(s==="x"||s==="single"&&!u){var v=Ek(n,f[1],f[0],h/2);i.setItemLayout(o,[v,f[1]])}})}}})}function Oft(e){wt($8),e.registerSeriesModel(Lut),e.registerChartView(Iut),e.registerLayout(dg("scatter"))}function Rft(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Eft)}function Ift(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();D(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=Rk(f)?f:Ik(a)})}),r.each(function(o){var s=ol(n[o],function(l){return Rk(l)})||Ik(a);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function Rk(e){return!isNaN(e[0])&&!isNaN(e[1])}function Ik(e){return[e.cx,e.cy]}function Pft(e){var t=e.polar;if(t){Y(t)||(t=[t]);var r=[];D(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],Y(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}D(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Nft=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=Yh(h.getItemVisual(v,"symbolSize")),g=Ve(d,-1,-1,2,2),y=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(h,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),uf[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},r,g)):_.setPosition(v[m]),d.add(_))}}function c(h){return j(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Ir,p=new _r,g={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),fe(d,g,r,h),fe(p,g,r,h);var y=new ht,m=new ht;y.add(p),y.add(d),y.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,h,!1),ma(g),ma(p),Ht(p,m,r),Ht(g,m,r),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(vt(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),tr(p,d,"lineStyle"),tr(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,D(["emphasis","select","blur"],function(w){var T=d.getModel([w,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(w).ignore=C&&b;var A=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=A;var M=T.getAreaStyle();g.ensureState(w).style=M;var E=d.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(L){L.ensureState(w).style=ct(E)})}),g.useStyle(vt(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis");y.eachChild(function(w){if(w instanceof cr){var T=w.style;w.useStyle(F({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(w.__dimIdx),v);(C==null||isNaN(C))&&(C=""),ur(w,er(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:w.__dimIdx,defaultText:C,inheritColor:_,defaultOpacity:m.opacity})}),ye(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Kt),kft=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new qh(J(this.getData,this),J(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return $h(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,f=EF(this,r);return je("section",{header:u,sortBlocks:!0,blocks:j(s,function(c){var h=i.get(i.mapDimension(c.dim),r);return je("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(j(a.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Jt),Cv=R8.value;function My(e,t){return vt({show:t},e)}var zft=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=j(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=vt({color:d.color},l));var g=xt(ct(d),{boundaryGap:r,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(Q(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else ft(f)&&(g.name=f(g.name,g));var m=new Lt(g,null,this.ecModel);return Ee(m,Xh.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:V.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:xt({lineStyle:{color:V.color.neutral20}},Cv.axisLine),axisLabel:My(Cv.axisLabel,!1),axisTick:My(Cv.axisTick,!1),splitLine:My(Cv.splitLine,!0),splitArea:My(Cv.splitArea,!0),indicator:[]},t}(At),Bft=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r,a),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r,n){var a=r.coordinateSystem,i=a.getIndicatorAxes(),o=j(i,function(s){var l=s.model.get("showName")?s.name:"",u=new qr(s.model,n,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});D(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=Y(h)?h:[h],p=Y(v)?v:[v],g=[],y=[];function m(P,O,N){var I=N%O.length;return P[I]=P[I]||[],I}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,b=n.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new Vi({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,p,x);y[w].push(new Ph({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=j(a,function(P,O){var N=P.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),j(N,function(I){return n.coordToPoint(I.coord,O)})}),A=[],x=0;x<=T;x++){for(var M=[],E=0;E<a.length;E++)M.push(C[E][x]);if(M[0]&&M.push(M[0].slice()),f){var w=m(g,d,x);g[w].push(new _r({shape:{points:M}}))}if(c&&A){var w=m(y,p,x-1);y[w].push(new Ir({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var L=l.getLineStyle(),R=u.getAreaStyle();D(y,function(P,O){this.group.add(Cn(P,{style:vt({stroke:"none",fill:p[O%p.length]},R),silent:!0}))},this),D(g,function(P,O){this.group.add(Cn(P,{style:vt({fill:"none",stroke:d[O%d.length]},L),silent:!0}))},this)},t.type="radar",t}(ie),Vft=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(xa),Gft=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=j(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new Vft(o,new No);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(r*r+n*n);r/=a,n/=a;for(var i=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,r){var n=rr(t,r).refContainer,a=t.get("center"),i=Math.min(n.width,n.height)/2;this.cx=K(a[0],n.width)+n.x,this.cy=K(a[1],n.height)+n.y,this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");(Q(o)||Bt(o))&&(o=[0,o]),this.r0=K(o[0],i),this.r=K(o[1],i),D(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,a=this._model;D(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();D(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=a.get("splitNumber"),o=new No;o.setExtent(0,i),o.setInterval(1),D(n,function(s,l){F8(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},e.dimensions=[],e}();function Hft(e){e.registerCoordinateSystem("radar",Gft),e.registerComponentModel(zft),e.registerComponentView(Bft),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function Uft(e){wt(Hft),e.registerChartView(Nft),e.registerSeriesModel(kft),e.registerLayout(Ift),e.registerProcessor(Zh("radar")),e.registerPreprocessor(Pft)}var JL=Mt();function Fft(e,t,r){JL(e)[t]=r}function Yft(e,t,r){var n=JL(e),a=n[t];a===r&&(n[t]=null)}function Pk(e,t){return!!JL(e)[t]}$a({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},De);var jft={axisPointer:1,tooltip:1,brush:1};function K8(e,t,r){var n=t.getComponentByElement(e.topTarget);if(!n||n===r||jft.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===r)return!1;var i=zu(n),o=zu(r);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var df=function(e){G(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=J(n._mousedownHandler,n),i=J(n._mousemoveHandler,n),o=J(n._mouseupHandler,n),s=J(n._mousewheelHandler,n),l=J(n._pinchHandler,n);return n.enable=function(u,f){var c=f.zInfo,h=zu(c.component),v=h.z,d=h.zlevel,p={component:c.component,z:v,zlevel:d,z2:ot(c.z2,-1/0)},g=F({},f.triggerInfo);this._opt=vt(F({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Mv(r,"mousedown",a,p),Mv(r,"mousemove",i,p),Mv(r,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Mv(r,"mousewheel",s,p),Mv(r,"pinch",l,p)))},n.disable=function(){this._enabled=!1,Dv(r,"mousedown",a),Dv(r,"mousemove",i),Dv(r,"mouseup",o),Dv(r,"mousewheel",s),Dv(r,"pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(r,n,a){var i=this._opt,o=i.zInfoParsed;if(K8(r,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(r,n,a)),u&&s.isInClip&&!s.isInClip(r,n,a)&&(u=!1),u},t.prototype._decideCursorStyle=function(r,n,a,i){var o=r.target;if(!o&&this._checkPointer(r,n,a))return"grab";if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!(eI(r)||Av(r))){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this._checkPointer(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){var n=this._zr;if(!(r.gestureEvent==="pinch"||Pk(n,"globalPan")||Av(r))){var a=r.offsetX,i=r.offsetY;if(!this._dragging||!Pm("moveOnMouseMove",r,this._opt)){var o=this._decideCursorStyle(r,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle("grabbing");var s=this._x,l=this._y,u=a-s,f=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&Eo(r.event),r.__ecRoamConsumed=!0,Nk(this,"pan","moveOnMouseMove",r,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){if(!Av(r)){var n=this._zr;if(!eI(r)){this._dragging=!1;var a=this._decideCursorStyle(r,r.offsetX,r.offsetY,!0);a&&n.setCursorStyle(a)}}},t.prototype._mousewheelHandler=function(r){if(!Av(r)){var n=Pm("zoomOnMouseWheel",r,this._opt),a=Pm("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",r,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(r){if(!(Pk(this._zr,"globalPan")||Av(r))){var n=r.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(r,n,a,i,o){r._checkPointer(i,o.originX,o.originY)&&(Eo(i.event),i.__ecRoamConsumed=!0,Nk(r,n,a,i,o))},t}(Sa);function Av(e){return e.__ecRoamConsumed}var Wft=Mt();function JS(e){var t=Wft(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Mv(e,t,r,n){for(var a=JS(e),i=a.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:r,zInfoParsed:n}),Xft(e,t)}function Dv(e,t,r){for(var n=JS(e),a=n.roam[t]||[],i=0;i<a.length;i++)if(a[i].listener===r){a.splice(i,1),a.length||Zft(e,t);return}}function Xft(e,t){var r=JS(e);r.uniform[t]||e.on(t,r.uniform[t]=function(n){var a=r.roam[t];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function Zft(e,t){var r=JS(e),n=r.uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function Nk(e,t,r,n,a){a.isAvailableBehavior=J(Pm,null,r,n),e.trigger(t,a)}function Pm(e,t,r){var n=r[e];return!e||n&&(!Q(n)||t.event[n+"Key"])}function tE(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function eE(e,t,r,n){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;o*=t,o=rE(o,i);var s=o/e.zoom;e.zoom=o,J8(a,r,n,s),a.dirty()}function Q8(e,t,r,n,a,i){var o=new yt(0,0,0,0);n.enable(e.get("roam"),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(u,f,c){return o.copy(r.getBoundingRect()),o.applyTransform(r.getComputedTransform()),o.contain(f,c)},isInClip:function(u,f,c){return!i||i.contain(f,c)}}}),a.zoomLimit=e.get("scaleLimit");var s=e.coordinateSystem;a.zoom=s?s.getZoom():1;var l=e.subType+"Roam";n.off("pan").off("zoom").on("pan",function(u){tE(a,u.dx,u.dy),t.dispatchAction({seriesId:e.id,type:l,dx:u.dx,dy:u.dy})}).on("zoom",function(u){eE(a,u.scale,u.originX,u.originY),t.dispatchAction({seriesId:e.id,type:l,zoom:u.scale,originX:u.originX,originY:u.originY}),t.updateLabelLayout()})}function kk(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function t1(e,t,r){var n=e.getZoom(),a=e.getCenter(),i=t.zoom,o=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);return t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,e.setCenter(kk(e,o))),i!=null&&(i=rE(n*i,r)/n,J8(e,t.originX,t.originY,i),e.updateTransform(),e.setCenter(kk(e,o)),e.setZoom(i*n)),{center:e.getCenter(),zoom:e.getZoom()}}function J8(e,t,r,n){e.x-=(t-e.x)*(n-1),e.y-=(r-e.y)*(n-1),e.scaleX*=n,e.scaleY*=n}function rE(e,t){if(t){var r=t.min||0,n=t.max||1/0;e=Math.max(Math.min(n,e),r)}return e}function t7(e){if(Q(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var dx,i_={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},zk=Nt(i_),o_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Bk=Nt(o_),$ft=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=t7(t);this._defsUsePending=[];var a=new ht;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),pn(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;Qft(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=e1(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(c=r7(f,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var v=a;a=new ht,a.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Ct({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},e.prototype._parseNode=function(t,r,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!i){var f=dx[s];if(f&&nt(dx,s)){l=f.call(this,t,r);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var v=Vk[s];if(v&&nt(Vk,s)){var d=v.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new th({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Yn(r,n),pn(t,n,this._defsUsePending,!1,!1),qft(n,r);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){dx={g:function(t,r){var n=new ht;return Yn(r,n),pn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Ct;return Yn(r,n),pn(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new Vi;return Yn(r,n),pn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Be;return Yn(r,n),pn(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new ng;return Yn(r,n),pn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),a;n&&(a=Uk(n));var i=new Ir({shape:{points:a||[]},silent:!0});return Yn(r,i),pn(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,r){var n=t.getAttribute("points"),a;n&&(a=Uk(n));var i=new _r({shape:{points:a||[]},silent:!0});return Yn(r,i),pn(t,i,this._defsUsePending,!1,!1),i},image:function(t,r){var n=new cr;return Yn(r,n),pn(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new ht;return Yn(r,s),pn(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new ht;return Yn(r,s),pn(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",a=mU(n);return Yn(r,a),pn(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),Vk={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new lf(t,r,n,a);return Gk(e,i),Hk(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),a=new j2(t,r,n);return Gk(e,a),Hk(e,a),a}};function Gk(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Hk(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};e7(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000",s=i.stopOpacity||r.getAttribute("stop-opacity");if(s){var l=Gr(o),u=l&&l[3];u&&(l[3]*=mo(s),o=ca(l,"rgba"))}t.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function Yn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),vt(t.__inheritedStyle,e.__inheritedStyle))}function Uk(e){for(var t=e1(e),r=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);r.push([a,i])}return r}function pn(e,t,r,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(ect(e,t),e7(e,o,s),n||rct(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Fk(i,"fill",o.fill,r)),o.stroke!=null&&(i.style.stroke=Fk(i,"stroke",o.stroke,r)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=j(e1(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function qft(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),e.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var Kft=/^url\(\s*#(.*?)\)/;function Fk(e,t,r,n){var a=r&&r.match(Kft);if(a){var i=Mn(a[1]);n.push([e,t,i]);return}return r==="none"&&(r=null),r}function Qft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var Jft=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function e1(e){return e.match(Jft)||[]}var tct=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,px=Math.PI/180;function ect(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],a=null;r.replace(tct,function(c,h,v){return n.push(h,v),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=e1(o);switch(a=a||sr(),s){case"translate":Ua(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":MS(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Yo(a,a,-parseFloat(l[0])*px,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*px);ka(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*px);ka(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var Yk=/([^\s:;]+)\s*:\s*([^:;]+)/g;function e7(e,t,r){var n=e.getAttribute("style");if(n){Yk.lastIndex=0;for(var a;(a=Yk.exec(n))!=null;){var i=a[1],o=nt(i_,i)?i_[i]:null;o&&(t[o]=a[2]);var s=nt(o_,i)?o_[i]:null;s&&(r[s]=a[2])}}}function rct(e,t,r){for(var n=0;n<zk.length;n++){var a=zk[n],i=e.getAttribute(a);i!=null&&(t[i_[a]]=i)}for(var n=0;n<Bk.length;n++){var a=Bk[n],i=e.getAttribute(a);i!=null&&(r[o_[a]]=i)}}function r7(e,t){var r=t.width/e.width,n=t.height/e.height,a=Math.min(r,n);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function nct(e,t){var r=new $ft;return r.parse(e,t)}var act=it(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),ict=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=it(),this._freedGraphics=[],this._mapName=t,this._parsedXML=t7(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=sct(t.named),n=r.regions,a=r.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&nct(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,Or(n!=null)}catch(g){throw new Error(`Invalid svg format
141
+ `+g.message)}var a=new ht;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,h=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var v=n.getBoundingRect();u==null&&(u=v.x,c=v.width),f==null&&(f=v.y,h=v.height)}l=this._boundingRect=new yt(u,f,c,h)}if(s){var d=r7(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new Ct({shape:l.plain()}));var p=[];return D(r.named,function(g){act.get(g.svgNodeTagLower)!=null&&(p.push(g),oct(g.el))}),{root:a,boundingRect:l,named:p}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function oct(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function sct(e){var t=[],r=it();return D(e,function(n){if(n.namedFrom==null){var a=new dst(n.name,n.el);t.push(a),r.set(n.name,a)}}),{regions:t,regionsMap:r}}var oM=[126,25],jk="南海诸岛",jl=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Ul=0;Ul<jl.length;Ul++)for(var Vf=0;Vf<jl[Ul].length;Vf++)jl[Ul][Vf][0]/=10.5,jl[Ul][Vf][1]/=-10.5/.75,jl[Ul][Vf][0]+=oM[0],jl[Ul][Vf][1]+=oM[1];function lct(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===jk)return;t.push(new B6(jk,j(jl,function(n){return{type:"polygon",exterior:n}}),oM))}}var uct={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function fct(e,t){if(e==="china"){var r=uct[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var cct=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function hct(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:cct[0]})}var vct="name",dct=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=it(),this._mapName=t,this._specialAreas=n,this._geoJSON=gct(r)}return e.prototype.load=function(t,r){r=r||vct;var n=this._parsedMap.get(r);if(!n){var a=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:a,boundingRect:pct(a)})}var i=it(),o=[];return D(n.regions,function(s){var l=s.name;t&&nt(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new yt(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,a;try{a=n?FA(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
142
+ `+i.message)}return lct(r,a),D(a,function(i){var o=i.name;fct(r,i),hct(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function pct(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function gct(e){return Q(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Lv=it();const ko={registerMap:function(e,t,r){if(t.svg){var n=new ict(e,t.svg);Lv.set(e,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?r=t.specialAreas:a=t;var n=new dct(e,a,r);Lv.set(e,n)}},getGeoResource:function(e){return Lv.get(e)},getMapForUser:function(e){var t=Lv.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Lv.get(e);if(n)return n.load(t,r)}};var nE=["rect","circle","line","ellipse","polygon","polyline","path"],yct=it(nE),mct=it(nE.concat(["g"])),_ct=it(nE.concat(["g"])),n7=Mt();function Dy(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function Wk(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var a7=function(){function e(t){var r=this.group=new ht,n=this._transformGroup=new ht;r.add(n),this.uid=Vh("ec_map_draw"),this._controller=new df(t.getZr()),this._controllerHost={target:n},n.add(this._regionsGroup=new ht),n.add(this._svgGroup=new ht)}return e.prototype.draw=function(t,r,n,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(_){!s&&_.getHostGeoModel()===t&&(s=_.getData())});var l=t.coordinateSystem,u=this._regionsGroup,f=this._transformGroup,c=l.getTransformInfo(),h=c.raw,v=c.roam,d=!u.childAt(0)||i,p=t.getShallow("clip",!0),g;p?(g=l.getViewRect().clone(),this.group.setClipPath(new Ct({shape:g.clone()}))):this.group.removeClipPath(),d?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Ht(f,v,t);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,g,r,n),this._updateMapSelectHandler(t,u,n,a)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=it(),n=it(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function c(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],p);y&&d.push(y)}return d}function h(v){return{shape:{points:c(v)}}}a.removeAll(),D(t.geo.regions,function(v){var d=v.name,p=r.get(d),g=n.get(d)||{},y=g.dataIdx,m=g.regionModel;if(!p){p=r.set(d,new ht),a.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(p.silent=_),n.set(d,{dataIdx:y,regionModel:m})}var S=[],b=[];D(v.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=Qk(C,u)),D(C,function(M){S.push(new Ir(h(M)))})}else{var A=T.points;u&&(A=Qk(A,u,!0)),D(A,function(M){b.push(new _r(h(M)))})}});var x=f(v.getCenter(),l&&l.project);function w(T,C){if(T.length){var A=new ig({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(A),Xk(t,A,y,m),Zk(t,A,d,m,o,y,x),C&&(Wk(A),D(A.states,Wk))}}w(S),w(b,!0)}),r.each(function(v,d){var p=n.get(d),g=p.dataIdx,y=p.regionModel;$k(t,v,d,y,o,g),qk(t,v,d,y,o),Kk(t,v,d,y,o)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var a=this._svgDispatcherMap=it(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);yct.get(f)!=null&&c instanceof ya&&Xk(t,c,h,v),c instanceof ya&&(c.culling=!0);var d=v.get("silent",!0);if(d!=null&&(c.silent=d),c.z2EmphasisLift=0,!o.namedFrom&&(_ct.get(f)!=null&&Zk(t,c,s,v,l,h,null),$k(t,c,s,v,l,h),qk(t,c,s,v,l),mct.get(f)!=null)){var p=Kk(t,c,s,v,l);p==="self"&&(i=!0);var g=a.get(s)||a.set(s,[]);g.push(c)}},this),this._enableBlurEntireSVG(i,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Nu(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=ko.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=ko.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n,a){var i=t.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=t.get("scaleLimit"),s.zoom=i.getZoom(),o.enable(t.get("roam")||!1,{api:a,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:function(f,c,h){return i.containPoint([c,h])},isInClip:function(f,c,h){return!r||r.contain(c,h)}}});var l=t.mainType;function u(){var f={type:"geoRoam",componentType:l};return f[l+"Id"]=t.id,f}o.off("pan").on("pan",function(f){this._mouseDownFlag=!1,tE(s,f.dx,f.dy),a.dispatchAction(F(u(),{dx:f.dx,dy:f.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(f){this._mouseDownFlag=!1,eE(s,f.scale,f.originX,f.originY),a.dispatchAction(F(u(),{totalZoom:s.zoom,zoom:f.scale,originX:f.originX,originY:f.originY,animation:{duration:0}}))},this)},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=n7(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,a){var i=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){i._mouseDownFlag=!0}),r.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function Xk(e,t,r,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Dy(a),u=Dy(i),f=Dy(s),c=Dy(o),h=e.data;if(h){var v=h.getItemVisual(r,"style"),d=h.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=ah(d,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=c,Nu(t)}function Zk(e,t,r,n,a,i,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var c=l?r:i,h=void 0;(!s||i>=0)&&(h=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ur(t,er(n),{labelFetcher:h,labelDataIndex:c,defaultText:r},v);var d=t.getTextContent();if(d&&(n7(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function $k(e,t,r,n,a,i){e.data?e.data.setItemGraphicEl(i,t):mt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:r,region:n&&n.option||{}}}function qk(e,t,r,n,a){e.data||Wo({el:t,componentModel:a,itemName:r,itemTooltipOption:n.get("tooltip")})}function Kk(e,t,r,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return ye(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&crt(t,a,r),o}function Qk(e,t,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),D(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}var Sct=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new a7(a);o.add(s.group),s.draw(r,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r,n,a){var i=r.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,c=u.offset,h=new Vi({style:{fill:r.getData().getVisual("style").fill},shape:{cx:f[0]+c*9,cy:f[1],r:3},silent:!0,z2:8+(c?0:Ih+1)});if(!c){var v=r.mainSeries.getData(),d=i.getName(l),p=v.indexOfName(d),g=i.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(p);ur(h,er(g),{labelFetcher:{getFormattedLabel:function(_,S){return r.getFormattedLabel(p,S)}},defaultText:d}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){I0(h,_)}}o.add(h)}}})},t.type="map",t}(Kt),bct=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=$h(this,{coordDimensions:["value"],encodeDefaulter:St(dL,this)}),a=it(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=ko.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(f){var c=f.name,h=a.get(c),v=f.properties&&f.properties.echartsStyle,d;h==null?(d={name:c},i.push(d)):d=n.getRawDataItem(h),v&&xt(d,v)}),n.appendData(i),n},t.prototype.getHostGeoModel=function(){if(XU(this).kind!==ui.boxCoordSys)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData(),o=this.getRawValue(r),s=i.getName(r),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var c=l[f].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[f].originalData.get(h,c))||u.push(l[f].name)}return je("section",{header:u.join(", "),noHeader:!u.length,blocks:[je("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",a=Ve(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return a.setStyle(r.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=V.color.neutral00,a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:V.color.tertiary},itemStyle:{borderWidth:.5,borderColor:V.color.border,areaColor:V.color.background},emphasis:{label:{show:!0,color:V.color.primary},itemStyle:{areaColor:V.color.highlight}},select:{label:{show:!0,color:V.color.primary},itemStyle:{color:V.color.highlight}},nameProperty:"name"},t}(Jt);function xct(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);r[o]=r[o]||[],isNaN(a)||r[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(n,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=r[i].length,f=0;f<u;f++)s=Math.min(s,r[i][f]),l=Math.max(l,r[i][f]),o+=r[i][f];var c;return t==="min"?c=s:t==="max"?c=l:t==="average"?c=o/u:c=o,u===0?NaN:c})}function wct(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),a=n?"o"+n.id:"i"+r.getMapType();(t[a]=t[a]||[]).push(r)}),D(t,function(r,n){for(var a=xct(j(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),i=0;i<r.length;i++)r[i].originalData=r[i].getData();for(var i=0;i<r.length;i++)r[i].seriesGroup=r,r[i].needsDrawMap=i===0&&!r[i].getHostGeoModel(),r[i].setData(a.cloneShallow()),r[i].mainSeries=r[0]})}function Tct(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var a={};D(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var c=l.getName(f),h=s.getRegion(c);if(!(!h||isNaN(u))){var v=a[c]||0,d=s.dataToPoint(h.getCenter());a[c]=v+1,l.setItemLayout(f,{point:d,offset:v})}})});var i=r.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[n]=!0}})}var Jk=Le,pf=function(e){G(t,e);function t(r,n){var a=e.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new fo,a._rawTransformable=new fo,a.name=r,a._opt=n,a}return t.prototype.setBoundingRect=function(r,n,a,i){return this._rect=new yt(r,n,a,i),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,a,i){this._transformTo(r,n,a,i),this._viewRect=new yt(r,n,a,i)},t.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new yt(r,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r){var n=this._opt;n&&n.api&&n.ecModel&&n.ecModel.getShallow("legacyViewCoordSysCenterBase")&&r&&(r=[K(r[0],n.api.getWidth()),K(r[1],n.api.getWidth())]),this._centerOption=ct(r),this._updateCenterAndZoom()},t.prototype.setZoom=function(r){this._zoom=rE(r||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,a=r.y+r.height/2;return[n,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._centerOption,n=this._rect;r&&n&&(this._center=[K(r[0],n.width,n.x),K(r[1],n.height,n.y)]);var a=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=Le([],s,a),o=Le([],o,a),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=l,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),tg(this.transform||(this.transform=[]),n.transform||sr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],ga(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,a=new fo;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?Jk(a,r,i):kr(a,r)},t.prototype.pointToData=function(r,n,a){a=a||[];var i=this.invTransform;return i?Jk(a,r,i):(a[0]=r[0],a[1]=r[1],a)},t.prototype.convertToPixel=function(r,n,a){var i=tz(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=tz(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(fo);function tz(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var Cct={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},i7=["lng","lat"],sM=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r,{api:a.api,ecModel:a.ecModel})||this;i.dimensions=i7,i.type="geo",i._nameCoordMap=it(),i.map=n;var o=a.projection,s=ko.load(n,a.nameMap,a.nameProperty),l=ko.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=Cct[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var c;if(o)for(var h=0;h<u.length;h++){var v=u[h].getBoundingRect(o);c=c||v.clone(),c.union(v)}else c=s.boundingRect;return i.setBoundingRect(c.x,c.y,c.width,c.height),i.aspectScale=o?1:ot(a.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return t.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new yt(r,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(r))return n[a]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,a){if(Q(r)&&(r=this.getGeoCoord(r)),r){var i=this.projection;return i&&(r=i.project(r)),r&&this.projectedToPoint(r,n,a)}},t.prototype.pointToData=function(r,n,a){var i=this.projection;return i&&(r=i.unproject(r)),r&&this.pointToProjected(r,a)},t.prototype.pointToProjected=function(r,n){return e.prototype.pointToData.call(this,r,0,n)},t.prototype.projectedToPoint=function(r,n,a){return e.prototype.dataToPoint.call(this,r,n,a)},t.prototype.convertToPixel=function(r,n,a){var i=ez(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=ez(n);return i===this?i.pointToData(a):null},t}(pf);Ee(sM,pf);function ez(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",Me).models[0]||{}).coordinateSystem:null}function rz(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],a=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var f=function(b,x,w,T){for(var C=w-b,A=T-x,M=0;M<=100;M++){var E=M/100,L=i.project([b+C*E,x+A*E]);lo(n,n,L),uo(a,a,L)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var c=this.getBoundingRect(),h=e.get("layoutCenter"),v=e.get("layoutSize"),d=rr(e,t).refContainer,p=c.width/c.height*this.aspectScale,g=!1,y,m;h&&v&&(y=[K(h[0],d.width)+d.x,K(h[1],d.height)+d.y],m=K(v,Math.min(d.width,d.height)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(m)&&(g=!0));var _;if(g)_={},p>1?(_.width=m,_.height=m/p):(_.height=m,_.width=m*p),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var S=e.getBoxLayoutParams();S.aspect=p,_=de(S,d),_=QU(e,_,p)}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function Act(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var Mct=function(){function e(){this.dimensions=i7}return e.prototype.create=function(t,r){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new sM(l+s,l,F({nameMap:o.get("nameMap"),api:r,ecModel:t},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=rz,u.resize(o,r)}),t.eachSeries(function(o){lg({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",Me).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),D(i,function(o,s){var l=j(o,function(f){return f.get("nameMap")}),u=new sM(s,s,F({nameMap:TS(l),api:r,ecModel:t},a(o[0])));u.zoomLimit=yr.apply(null,j(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=rz,u.resize(o[0],r),D(o,function(f){f.coordinateSystem=u,Act(u,f)})}),n},e.prototype.getFilledRegions=function(t,r,n,a){for(var i=(t||[]).slice(),o=it(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ko.load(r,n,a);return D(l.regions,function(u){var f=u.name,c=o.get(f),h=u.properties&&u.properties.echartsStyle;c||(c={name:f},i.push(c)),h&&xt(c,h)}),i},e}(),o7=new Mct,Dct=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a);var i=ko.getGeoResource(r.map);if(i&&i.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color=r.defaultItemStyleColor||V.color.backgroundTint)}Ru(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=o7.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=pa(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Lt(o,r,r.ecModel)),o.selected&&(a[s]=!0)),i},it()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Lt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var a=this.getRegionModel(r),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:r};if(ft(i))return o.status=n,i(o);if(Q(i))return i.replace("{a}",r??"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:V.color.tertiary},itemStyle:{borderWidth:.5,borderColor:V.color.border},emphasis:{label:{show:!0,color:V.color.primary},itemStyle:{color:V.color.highlight}},select:{label:{show:!0,color:V.color.primary},itemStyle:{color:V.color.highlight}},regions:[]},t}(At),Lct=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,a,i){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new a7(a));var o=this._mapDraw;o.draw(r,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,a)},t.prototype._handleRegionClick=function(r){var n;uu(r.target,function(a){return(n=mt(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=mt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(ie);function Ect(e,t,r){ko.registerMap(e,t,r)}function s7(e){e.registerCoordinateSystem("geo",o7),e.registerComponentModel(Dct),e.registerComponentView(Lct),e.registerImpl("registerMap",Ect),e.registerImpl("getMap",function(r){return ko.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[r](a.name);var u=l.coordinateSystem;D(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];D(o,function(c,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,a){var i=r.componentType;i||(r.geoId!=null?i="geo":r.seriesId!=null&&(i="series")),i||(i="series"),n.eachComponent({mainType:i,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=t1(s,r,o.get("scaleLimit"));o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&D(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function Oct(e){wt(s7),e.registerChartView(Sct),e.registerSeriesModel(bct),e.registerLayout(Tct),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,wct),UF("map",e.registerAction)}function Rct(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,a;n=r.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function Ict(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){Nct(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=kct(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function Pct(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function nz(e){return arguments.length?e:Vct}function rd(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Nct(e){for(var t=e.children,r=t.length,n=0,a=0;--r>=0;){var i=t[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function kct(e,t,r,n){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=gx(s),i=yx(i),s&&i;){a=gx(a),o=yx(o),a.hierNode.ancestor=e;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);h>0&&(Bct(zct(s,e,r),e,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!gx(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!yx(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,r=e)}return r}function gx(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function yx(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function zct(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function Bct(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function Vct(e,t){return e.parentNode===t.parentNode?1:2}var Gct=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Hct=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Gct},t.prototype.buildPath=function(r,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,h=K(n.forkPosition,1),v=[];v[f]=o[f],v[c]=o[c]+(l[c]-o[c])*h,r.moveTo(o[0],o[1]),r.lineTo(v[0],v[1]),r.moveTo(s[0],s[1]),v[f]=s[f],r.lineTo(v[0],v[1]),v[f]=l[f],r.lineTo(v[0],v[1]),r.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];r.moveTo(p[0],p[1]),v[f]=p[f],r.lineTo(v[0],v[1])}},t}(Et),Uct=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new ht,r}return t.prototype.init=function(r,n){this._controller=new df(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,a){var i=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,a),this._updateController(r,null,n,a);var u=this._data;i.diff(u).add(function(f){az(i,f)&&iz(i,f,null,s,r)}).update(function(f,c){var h=u.getItemGraphicEl(c);if(!az(i,f)){h&&sz(u,c,h,s,r);return}iz(i,f,h,s,r)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&sz(u,f,c,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:c})})}),this._data=i},t.prototype._updateViewCoordSys=function(r,n){var a=r.getData(),i=[];a.each(function(c){var h=a.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];NS(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=r.coordinateSystem=new pf(null,{api:n,ecModel:r.ecModel});f.zoomLimit=r.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(r.get("center")),f.setZoom(r.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,a,i){var o=this;Q8(r,i,this.group,this._controller,this._controllerHost,n),this._controller.on("zoom",function(s){o._updateNodeAndLinkScale(r)})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),a=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Kt);function az(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function iz(e,t,r,n,a){var i=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:V.color.neutral00,f=e.tree.root,c=o.parentNode===f?o:o.parentNode||o,h=e.getItemGraphicEl(c.dataIndex),v=c.getLayout(),d=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,p=o.getLayout();i?(r=new cg(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=d.x,r.y=d.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=p.rawX,r.__radialRawY=p.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,Ht(r,{x:p.x,y:p.y},a);var g=r.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(x.y-m.y,x.x-m.x),S<0&&(S=Math.PI*2+S),b=x.x<m.x,b&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=p.x<m.x,b&&(S=S-Math.PI)):(b=p.x>m.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),L=E==="relative"?qc(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;L&&(mt(r).focus=L),Fct(a,o,f,r,d,v,p,n),r.__edge&&(r.onHoverStateChange=function(R){if(R!=="blur"){var P=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);P&&P.hoverState===rg||I0(r.__edge,R)}})}function Fct(e,t,r,n,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),f=e.get("layout"),c=e.getOrient(),h=e.get(["lineStyle","curveness"]),v=e.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(p||(p=n.__edge=new Nh({shape:lM(f,c,h,a,a)})),Ht(p,{shape:lM(f,c,h,i,o)},e));else if(u==="polyline"&&f==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new Hct({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:v}})),Ht(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(vt({strokeNoScale:!0,fill:null},d)),tr(p,l,"lineStyle"),Nu(p),s.add(p))}function oz(e,t,r,n,a){var i=t.tree.root,o=l7(i,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),c=f.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),v=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(v==="curve"?Xs(h,{shape:lM(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){r.remove(h)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&Xs(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(h)},removeOpt:a}))}}function l7(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function sz(e,t,r,n,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=l7(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Xs(r,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){oz(u,e,n,a,l)}),oz(i,e,n,a,l)}function lM(e,t,r,n,a){var i,o,s,l,u,f,c,h;if(e==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,h=a.rawY;var v=rd(u,c),d=rd(u,c+(h-c)*r),p=rd(f,h+(c-h)*r),g=rd(f,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,c=n.y,f=a.x,h=a.y,(t==="LR"||t==="RL")&&(i=u+(f-u)*r,o=c,s=f+(u-f)*r,l=h),(t==="TB"||t==="BT")&&(i=u,o=c+(h-c)*r,s=f,l=h+(c-h)*r);return{x1:u,y1:c,x2:f,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}var ha=Mt();function u7(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,f7(t,r,e),D(r,function(n){D(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,St(Yct,e))})}),t.wrapMethod("cloneShallow",St(Wct,e)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,St(jct,e))}),Or(r[t.dataType]===t)}function Yct(e,t){if($ct(this)){var r=F({},ha(this).datas);r[this.dataType]=t,f7(t,r,e)}else aE(t,this.dataType,ha(this).mainData,e);return t}function jct(e,t){return e.struct&&e.struct.update(),t}function Wct(e,t){return D(ha(t).datas,function(r,n){r!==t&&aE(r.cloneShallow(),n,t,e)}),t}function Xct(e){var t=ha(this).mainData;return e==null||t==null?t:ha(t).datas[e]}function Zct(){var e=ha(this).mainData;return e==null?[{data:e}]:j(Nt(ha(e).datas),function(t){return{type:t,data:ha(e).datas[t]}})}function $ct(e){return ha(e).mainData===e}function f7(e,t,r){ha(e).datas={},D(t,function(n,a){aE(n,a,e,r)})}function aE(e,t,r,n){ha(r).datas[t]=e,ha(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=Xct,e.getLinkedDataAll=Zct}var qct=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){ft(t)&&(n=r,r=t,t=null),t=t||{},Q(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,r,n);a==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(t+1),a.height>r&&(r=a.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].contains(t);if(i)return i}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),iE=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,a=r.length;n<a;n++)r[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var a=new e(r),i=[],o=1;s(t);function s(f,c){var h=f.value;o=Math.max(o,Y(h)?h.length:1),i.push(f);var v=new qct(Qe(f.name,""),a);c?Kct(v,c):a.root=v,a._nodes.push(v);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}a.root.updateDepthAndHeight(0);var l=jh(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Hr(l,r);return u.initData(i),n&&n(u),u7({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function Kct(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function _p(e,t,r){if(e&&bt(t,e.type)>=0){var n=r.getData().tree.root,a=e.targetNode;if(Q(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function c7(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function oE(e,t){var r=c7(e);return bt(r,t)>=0}function r1(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var Qct=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new Lt(a,this,this.ecModel),o=iE.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var d=o.getNodeByDataIndex(v);return d&&d.children.length&&d.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=r.expandAndCollapse,f=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return je("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=r1(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:V.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Jt);function Jct(e,t,r){for(var n=[e],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,r)}function Ev(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)r.push(a[i])}}function tht(e,t){e.eachSeriesByType("tree",function(r){eht(r,t)})}function eht(e,t){var r=rr(e,t).refContainer,n=de(e.getBoxLayoutParams(),r);e.layoutInfo=n;var a=e.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=nz(function(S,b){return(S.parentNode===b.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=nz());var l=e.getData().tree.root,u=l.children[0];if(u){Rct(l),Jct(u,Ict,s),l.hierNode.modifier=-u.hierNode.prelim,Ev(u,Pct);var f=u,c=u,h=u;Ev(u,function(S){var b=S.getLayout().x;b<f.getLayout().x&&(f=S),b>c.getLayout().x&&(c=S),S.depth>h.depth&&(h=S)});var v=f===c?1:s(f,c)/2,d=v-f.getLayout().x,p=0,g=0,y=0,m=0;if(a==="radial")p=i/(c.getLayout().x+v+d),g=o/(h.depth-1||1),Ev(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var b=rd(y,m);S.setLayout({x:b.x,y:b.y,rawX:y,rawY:m},!0)});else{var _=e.getOrient();_==="RL"||_==="LR"?(g=o/(c.getLayout().x+v+d),p=i/(h.depth-1||1),Ev(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(c.getLayout().x+v+d),g=o/(h.depth-1||1),Ev(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function rht(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");F(s,o)})})}function nht(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=t1(i,t,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}function aht(e){e.registerChartView(Uct),e.registerSeriesModel(Qct),e.registerLayout(tht),e.registerVisual(rht),nht(e)}var lz=["treemapZoomToNode","treemapRender","treemapMove"];function iht(e){for(var t=0;t<lz.length;t++)e.registerAction({type:lz[t],update:"updateView"},De);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=_p(r,s,i);if(l){var u=i.getViewRoot();u&&(r.direction=oE(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function h7(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=CA(e.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var oht=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};v7(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new Lt({itemStyle:o},this,n);i=r.levels=sht(i,n);var l=j(i||[],function(c){return new Lt(c,s,n)},this),u=iE.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return je("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=r1(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},F(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=it(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){h7(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:V.size.l,top:V.size.xxxl,right:V.size.l,bottom:V.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:V.size.m,emptyItemWidth:25,itemStyle:{color:V.color.backgroundShade,textStyle:{color:V.color.secondary}},emphasis:{itemStyle:{color:V.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:V.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:V.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Jt);function v7(e){var t=0;D(e.children,function(n){v7(n);var a=n.value;Y(a)&&(a=a[0]),t+=a});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}function sht(e,t){var r=ne(t.get("color")),n=ne(t.get(["aria","decal","decals"]));if(r){e=e||[];var a,i;D(e,function(s){var l=new Lt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),e}}var lht=8,uz=8,mx=5,uht=function(){function e(t){this.group=new ht,t.add(this.group)}return e.prototype.render=function(t,r,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c=rr(t,r).refContainer,h={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},v={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=de(h,c);this._prepare(n,v,u),this._renderContent(t,v,d,s,l,u,f,a),FS(o,h,c)}},e.prototype._prepare=function(t,r,n){for(var a=t;a;a=a.parentNode){var i=Qe(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+lht*2,r.emptyItemWidth);r.totalWidth+=s+uz,r.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,r,n,a,i,o,s,l){for(var u=0,f=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),h=r.totalWidth,v=r.renderList,d=i.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],y=g.node,m=g.width,_=g.text;h>n.width&&(h-=m-f,m=f,_=null);var S=new Ir({shape:{points:fht(u,0,m,c,p===v.length-1,p===0)},style:vt(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new zt({style:ee(o,{text:_})}),textConfig:{position:"inside"},z2:Ih*1e4,onclick:St(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=ee(s,{text:_}),S.ensureState("emphasis").style=d,ye(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),cht(S,t,y),u+=m+uz}},e.prototype.remove=function(){this.group.removeAll()},e}();function fht(e,t,r,n,a,i){var o=[[a?e:e-mx,t],[e+r,t],[e+r,t+n],[a?e:e-mx,t+n]];return!i&&o.splice(2,0,[e+r+mx,t+n/2]),!a&&o.push([e,t+n/2]),o}function cht(e,t,r){mt(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&r1(r,t)}}var hht=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function vht(){return new hht}var uM=ht,fz=Ct,cz=3,hz="label",vz="upperLabel",dht=Ih*10,pht=Ih*2,ght=Ih*3,Wl=Pu([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),dz=function(e){var t=Wl(e);return t.stroke=t.fill=t.lineWidth=null,t},s_=Mt(),yht=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=Ov(),r}return t.prototype.render=function(r,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(bt(o,r)<0)){this.seriesModel=r,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=_p(i,s,r),u=i&&i.type,f=r.layoutInfo,c=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=r.get("animation"),g=this._doRender(d,r,v);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,r,v):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(r,a,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new uM,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,a){var i=n.getData().tree,o=this._oldTree,s=Ov(),l=Ov(),u=this._storage,f=[];function c(m,_,S,b){return mht(n,l,u,a,s,f,m,_,S,b)}p(i.root?[i.root]:[],o&&o.root?[o.root]:[],r,i===o||!o,0);var h=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===v.width&&d.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function p(m,_,S,b,x){b?(_=m,D(m,function(C,A){!C.isRemoved()&&T(A,A)})):new Io(_,m,w,w).add(T).update(T).remove(St(T,null)).execute();function w(C){return C.getId()}function T(C,A){var M=C!=null?m[C]:null,E=A!=null?_[A]:null,L=c(M,E,S,x);L&&p(M&&M.viewChildren||[],E&&E.viewChildren||[],L,b,x+1)}}function g(m){var _=Ov();return m&&D(m,function(S,b){var x=_[b];D(S,function(w){w&&(x.push(w),s_(w).willDelete=!0)})}),_}function y(){D(h,function(m){D(m,function(_){_.parent&&_.parent.remove(_)})}),D(f,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(r,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ft(o)?0:o)||0,u=(ft(s)?null:s)||"cubicOut",f=vht();D(n.willDeleteEls,function(c,h){D(c,function(v,d){if(!v.invisible){var p=v.parent,g,y=s_(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(v,g,l,0,u)}})}),D(this._storage,function(c,h){D(c,function(v,d){var p=n.lastsForAnimation[h][d],g={};p&&(v instanceof ht?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=F({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(J(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this,a=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var o=this.seriesModel;a||(a=this._controller=new df(r.getZr()),a.on("pan",J(this._onPan,this)),a.on("zoom",J(this._onZoom,this))),a.enable(o.get("roam"),{api:r,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(s,l,u){var f=n._containerGroup;return f?f.getBoundingRect().contain(l-f.x,u-f.y):!1}}}),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.get("zoom")},t.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>cz||Math.abs(r.dy)>cz)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+r.dx,y:a.y+r.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(r){var n=r.originX,a=r.originY,i=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new yt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=i,u){var h=u.min||0,v=u.max||1/0;c=Math.max(Math.min(v,c),h)}var d=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;n-=p.x,a-=p.y;var g=sr();Ua(g,g,[-n,-a]),MS(g,g,[d,d]),Ua(g,g,[n,a]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&z0(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,a){var i=this;a||(a=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new uht(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&(oE(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ov(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(Kt);function Ov(){return{nodeGroup:[],background:[],content:[]}}function mht(e,t,r,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=e.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,M=st("nodeGroup",uM);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),s_(M).nodeWidth=v,s_(M).nodeHeight=d,f.isAboveViewRoot)return M;var E=st("background",fz,u,pht);E&&B(M,E,b&&f.upperLabelHeight);var L=h.getModel("emphasis"),R=L.get("focus"),P=L.get("blurScope"),O=L.get("disabled"),N=R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():R;if(b)ap(M)&&su(M,!1),E&&(su(E,!O),c.setItemGraphicEl(o.dataIndex,E),dA(E,N,P));else{var I=st("content",fz,u,ght);I&&H(M,I),E.disableMorphing=!0,E&&ap(E)&&su(E,!1),su(M,!O),c.setItemGraphicEl(o.dataIndex,M);var k=h.getShallow("cursor");k&&I.attr("cursor",k),dA(M,N,P)}return M;function B(rt,et,at){var $=mt(et);if($.dataIndex=o.dataIndex,$.seriesIndex=e.seriesIndex,et.setShape({x:0,y:0,width:v,height:d,r:A}),g)U(et);else{et.invisible=!1;var tt=o.getVisual("style"),kt=tt.stroke,Tt=dz(x);Tt.fill=kt;var Ut=Wl(w);Ut.fill=w.get("borderColor");var Wt=Wl(T);Wt.fill=T.get("borderColor");var be=Wl(C);if(be.fill=C.get("borderColor"),at){var Fr=v-2*p;X(et,kt,tt.opacity,{x:p,y:0,width:Fr,height:S})}else et.removeTextContent();et.setStyle(Tt),et.ensureState("emphasis").style=Ut,et.ensureState("blur").style=Wt,et.ensureState("select").style=be,Nu(et)}rt.add(et)}function H(rt,et){var at=mt(et);at.dataIndex=o.dataIndex,at.seriesIndex=e.seriesIndex;var $=Math.max(v-2*p,0),tt=Math.max(d-2*p,0);if(et.culling=!0,et.setShape({x:p,y:p,width:$,height:tt,r:A}),g)U(et);else{et.invisible=!1;var kt=o.getVisual("style"),Tt=kt.fill,Ut=dz(x);Ut.fill=Tt,Ut.decal=kt.decal;var Wt=Wl(w),be=Wl(T),Fr=Wl(C);X(et,Tt,kt.opacity,null),et.setStyle(Ut),et.ensureState("emphasis").style=Wt,et.ensureState("blur").style=be,et.ensureState("select").style=Fr,Nu(et)}rt.add(et)}function U(rt){!rt.invisible&&i.push(rt)}function X(rt,et,at,$){var tt=h.getModel($?vz:hz),kt=Qe(h.get("name"),null),Tt=tt.getShallow("show");ur(rt,er(h,$?vz:hz),{defaultText:Tt?kt:null,inheritColor:et,defaultOpacity:at,labelFetcher:e,labelDataIndex:o.dataIndex});var Ut=rt.getTextContent();if(Ut){var Wt=Ut.style,be=Kp(Wt.padding||0);$&&(rt.setTextConfig({layoutRect:$}),Ut.disableLabelLayout=!0),Ut.beforeUpdate=function(){var nr=Math.max(($?$.width:rt.shape.width)-be[1]-be[3],0),gl=Math.max(($?$.height:rt.shape.height)-be[0]-be[2],0);(Wt.width!==nr||Wt.height!==gl)&&Ut.setStyle({width:nr,height:gl})},Wt.truncateMinChar=2,Wt.lineOverflow="truncate",q(Wt,$,f);var Fr=Ut.getState("emphasis");q(Fr?Fr.style:null,$,f)}}function q(rt,et,at){var $=rt?rt.text:null;if(!et&&at.isLeafRoot&&$!=null){var tt=e.get("drillDownIcon",!0);rt.text=tt?tt+" "+$:$}}function st(rt,et,at,$){var tt=m!=null&&r[rt][m],kt=a[rt];return tt?(r[rt][m]=null,Dt(kt,tt)):g||(tt=new et,tt instanceof ya&&(tt.z2=_ht(at,$)),lt(kt,tt)),t[rt][y]=tt}function Dt(rt,et){var at=rt[y]={};et instanceof uM?(at.oldX=et.x,at.oldY=et.y):at.oldShape=F({},et.shape)}function lt(rt,et){var at=rt[y]={},$=o.parentNode,tt=et instanceof ht;if($&&(!n||n.direction==="drillDown")){var kt=0,Tt=0,Ut=a.background[$.getRawIndex()];!n&&Ut&&Ut.oldShape&&(kt=Ut.oldShape.width,Tt=Ut.oldShape.height),tt?(at.oldX=0,at.oldY=Tt):at.oldShape={x:kt,y:Tt,width:0,height:0}}at.fadein=!tt}}function _ht(e,t){return e*dht+t}var Sp=D,Sht=dt,l_=-1,lr=function(){function e(t){var r=t.mappingMethod,n=t.type,a=this.option=ct(t);this.type=n,this.mappingMethod=r,this._normalizeData=wht[r];var i=e.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(_x(a),bht(a)):r==="category"?a.categories?xht(a):_x(a,!0):(Or(r!=="linear"||a.dataExtent),_x(a))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return J(this._normalizeData,this)},e.listVisualTypes=function(){return Nt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){dt(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var a,i=Y(t)?[]:dt(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var r={},n;return t&&Sp(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(Sht(t)){var r=[];Sp(t,function(n,a){r.push(a)}),t=r}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var a,i=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||Q(l)&&l===t+"")return o;n&&h(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Ey(c[1],t,f[1]))return o}else if(f[1]===1/0){if(Ey(c[0],f[0],t))return o}else if(Ey(c[0],f[0],t)&&Ey(c[1],t,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:a;function h(v,d){var p=Math.abs(v-t);p<i&&(i=p,a=d)}},e.visualHandlers={color:{applyVisual:Rv("color"),getColorMapper:function(){var t=this.option;return J(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),nd.call(this,r)}:function(r,n,a){var i=!!a;return!n&&(r=this._normalizeData(r)),a=xd(r,t.parsedVisual,a),i?a:ca(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return ca(xd(t,this.option.parsedVisual),"rgba")},category:nd,piecewise:function(t,r){var n=cM.call(this,r);return n==null&&(n=ca(xd(t,this.option.parsedVisual),"rgba")),n},fixed:Xl}},colorHue:Ly(function(t,r){return _o(t,r)}),colorSaturation:Ly(function(t,r){return _o(t,null,r)}),colorLightness:Ly(function(t,r){return _o(t,null,null,r)}),colorAlpha:Ly(function(t,r){return Jd(t,r)}),decal:{applyVisual:Rv("decal"),_normalizedToVisual:{linear:null,category:nd,piecewise:null,fixed:null}},opacity:{applyVisual:Rv("opacity"),_normalizedToVisual:fM([0,1])},liftZ:{applyVisual:Rv("liftZ"),_normalizedToVisual:{linear:Xl,category:Xl,piecewise:Xl,fixed:Xl}},symbol:{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:pz,category:nd,piecewise:function(t,r){var n=cM.call(this,r);return n==null&&(n=pz.call(this,t)),n},fixed:Xl}},symbolSize:{applyVisual:Rv("symbolSize"),_normalizedToVisual:fM([0,1])}},e}();function bht(e){var t=e.pieceList;e.hasSpecialVisual=!1,D(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function xht(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(Sp(t,function(o,s){r[o]=s}),!Y(n)){var a=[];dt(n)?Sp(n,function(o,s){var l=r[s];a[l??l_]=o}):a[l_]=n,n=d7(e,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete r[t[i]],t.pop())}function _x(e,t){var r=e.visual,n=[];dt(r)?Sp(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(e.type)&&(n[1]=n[0]),d7(e,n)}function Ly(e){return{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("color",e(r("color"),a))},_normalizedToVisual:fM([0,1])}}function pz(e){var t=this.option.visual;return t[Math.round(Yt(e,[0,1],[0,t.length-1],!0))]||{}}function Rv(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function nd(e){var t=this.option.visual;return t[this.option.loop&&e!==l_?e%t.length:e]}function Xl(){return this.option.visual[0]}function fM(e){return{linear:function(t){return Yt(t,e,this.option.visual,!0)},category:nd,piecewise:function(t,r){var n=cM.call(this,r);return n==null&&(n=Yt(t,e,this.option.visual,!0)),n},fixed:Xl}}function cM(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=lr.findPieceIndex(e,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function d7(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=j(t,function(r){var n=Gr(r);return n||[0,0,0,1]})),t}var wht={linear:function(e){return Yt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=lr.findPieceIndex(e,t,!0);if(r!=null)return Yt(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??l_},fixed:De};function Ey(e,t,r){return e?t<=r:t<r}var Tht="itemStyle",p7=Mt();const Cht={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||g7(r,{},e.getViewRoot().getAncestors(),e)}};function g7(e,t,r,n){var a=e.getModel(),i=e.getLayout(),o=e.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(Tht),l=Aht(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=gz(l),f=Mht(c,h)),u.stroke=f;var v=e.viewChildren;if(!v||!v.length)h=gz(l),u.fill=h;else{var d=Dht(e,a,i,s,l,v);D(v,function(p,g){if(p.depth>=r.length||p===r[p.depth]){var y=Lht(a,l,p,g,d,n);g7(p,y,r,n)}})}}}function Aht(e,t,r){var n=F({},t),a=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function gz(e){var t=Sx(e,"color");if(t){var r=Sx(e,"colorAlpha"),n=Sx(e,"colorSaturation");return n&&(t=_o(t,null,null,n)),r&&(t=Jd(t,r)),t}}function Mht(e,t){return t!=null?_o(t,null,null,e):null}function Sx(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Dht(e,t,r,n,a,i){if(!(!i||!i.length)){var o=bx(t,"color")||a.color!=null&&a.color!=="none"&&(bx(t,"colorAlpha")||bx(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new lr(c);return p7(h).drColorMappingBy=f,h}}}function bx(e,t){var r=e.get(t);return Y(r)&&r.length?{name:t,range:r}:null}function Lht(e,t,r,n,a,i){var o=F({},t);if(a){var s=a.type,l=s==="color"&&p7(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var bp=Math.max,u_=Math.min,yz=yr,sE=D,y7=["itemStyle","borderWidth"],Eht=["itemStyle","gapWidth"],Oht=["upperLabel","show"],Rht=["upperLabel","height"];const Iht={seriesType:"treemap",reset:function(e,t,r,n){var a=e.option,i=rr(e,r).refContainer,o=de(e.getBoxLayoutParams(),i),s=a.size||[],l=K(yz(o.width,s[0]),i.width),u=K(yz(o.height,s[1]),i.height),f=n&&n.type,c=["treemapZoomToNode","treemapRootToNode"],h=_p(n,c,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,d=e.getViewRoot(),p=c7(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?Vht(e,h,d,l,u):v?[v.width,v.height]:[l,u],y=a.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:a.squareRatio,sort:y,leafDepth:a.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),m7(d,m,!1,0),_=d.getLayout(),sE(p,function(b,x){var w=(p[x+1]||d).getValue();b.setLayout(F({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=e.getData().tree.root;S.setLayout(Ght(o,v,h),!0),e.setLayoutInfo(o),_7(S,new yt(-o.x,-o.y,r.getWidth(),r.getHeight()),p,d,0)}};function m7(e,t,r,n){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(y7),u=s.get(Eht)/2,f=S7(s),c=Math.max(l,f),h=l-u,v=c-u;e.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=bp(a-2*h,0),i=bp(i-h-v,0);var d=a*i,p=Pht(e,s,d,t,r,n);if(p.length){var g={x:h,y:v,width:a,height:i},y=u_(a,i),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S<b;){var x=p[S];_.push(x),_.area+=x.getLayout().area;var w=Bht(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,mz(_,y,g,u,!1),y=u_(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&mz(_,y,g,u,!0),!r){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(r=!0)}for(var S=0,b=p.length;S<b;S++)m7(p[S],t,r,n+1)}}}function Pht(e,t,r,n,a,i){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=Ft(o,function(v){return!v.isRemoved()}),kht(o,s);var u=zht(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=Nht(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*r;o[f].setLayout({area:h})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function Nht(e,t,r,n,a){if(!n)return r;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/r*t<i&&(s=l,r-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),r}function kht(e,t){return t&&e.sort(function(r,n){var a=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return a===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:a}),e}function zht(e,t,r){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],sE(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function Bht(e,t,r){for(var n=0,a=1/0,i=0,o=void 0,s=e.length;i<s;i++)o=e[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?bp(u*n/l,l/(u*a)):1/0}function mz(e,t,r,n,a){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],f=t?e.area/t:0;(a||f>r[l[o]])&&(f=r[l[o]]);for(var c=0,h=e.length;c<h;c++){var v=e[c],d={},p=f?v.getLayout().area/f:0,g=d[l[o]]=bp(f-2*n,0),y=r[s[i]]+r[l[i]]-u,m=c===h-1||y<p?y:p,_=d[l[i]]=bp(m-2*n,0);d[s[o]]=r[s[o]]+u_(n,g/2),d[s[i]]=u+u_(n,_/2),u+=m,v.setLayout(d,!0)}r[s[o]]+=f,r[l[o]]-=f}function Vht(e,t,r,n,a){var i=(t||{}).node,o=[n,a];if(!i||i===r)return o;for(var s,l=n*a,u=l*e.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,c=s.children,h=0,v=c.length;h<v;h++)f+=c[h].getValue();var d=i.getValue();if(d===0)return o;u*=f/d;var p=s.getModel(),g=p.get(y7),y=Math.max(g,S7(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>nA&&(u=nA),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,a*m]}function Ght(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var a=r.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function _7(e,t,r,n,a){var i=e.getLayout(),o=r[a],s=o&&o===e;if(!(o&&!s||a===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new yt(t.x-i.x,t.y-i.y,t.width,t.height);sE(e.viewChildren||[],function(u){_7(u,l,r,n,a+1)})}}function S7(e){return e.get(Oht)?e.get(Rht):0}function Hht(e){e.registerSeriesModel(oht),e.registerChartView(yht),e.registerVisual(Cht),e.registerLayout(Iht),iht(e)}function Uht(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Bt(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}function Fht(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){Q(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");F(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)a.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function Oy(e){return e instanceof Array||(e=[e,e]),e}function Yht(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),a=Oy(t.get("edgeSymbol")),i=Oy(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=Oy(s.getShallow("symbol",!0)),f=Oy(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(F(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var hM="-->",n1=function(e){return e.get("autoCurveness")||null},b7=function(e,t){var r=n1(e),n=20,a=[];if(Bt(r))n=r;else if(Y(r)){e.__curvenessList=r;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},xp=function(e,t,r){var n=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[r.uid,n,a].join(hM)},x7=function(e){var t=e.split(hM);return[t[0],t[2],t[1]].join(hM)},jht=function(e,t){var r=xp(e.node1,e.node2,t);return t.__edgeMap[r]},Wht=function(e,t){var r=vM(xp(e.node1,e.node2,t),t),n=vM(xp(e.node2,e.node1,t),t);return r+n},vM=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function Xht(e){n1(e)&&(e.__curvenessList=[],e.__edgeMap={},b7(e))}function Zht(e,t,r,n){if(n1(r)){var a=xp(e,t,r),i=r.__edgeMap,o=i[x7(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function lE(e,t,r,n){var a=n1(t),i=Y(a);if(!a)return null;var o=jht(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=Wht(e,t);b7(t,u),e.lineStyle=e.lineStyle||{};var f=xp(e.node1,e.node2,t),c=t.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var v=x7(f),d=vM(v,t),p=c[s+d+h];return n?i?a&&a[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:c[s+d+h]}function w7(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),uE(r,e)}}function uE(e,t){e.eachEdge(function(r,n){var a=un(r.getModel().get(["lineStyle","curveness"]),-lE(r,t,n,!0),0),i=Ci(r.node1.getLayout()),o=Ci(r.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),r.setLayout(s)})}function $ht(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),a=r.coordinateSystem;if(a&&a.type!=="view"){var i=r.getData(),o=[];D(a.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}uE(i.graph,r)}else(!n||n==="none")&&w7(r)})}function ad(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,a=t.getZoom(),i=(a-1)*r+1;return i/n}function id(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var _z=Math.PI,xx=[];function fE(e,t,r,n){var a=e.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=e.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(r){var h=a.pointToData(n),v=h[0],d=h[1],p=[v-l,d-u];sf(p,p),md(p,p,f),r.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);T7(r,g,l,u)}qht[t](e,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=un(y.getModel().get(["lineStyle","curveness"]),lE(y,e,m),0),S=Ci(y.node1.getLayout()),b=Ci(y.node2.getLayout()),x,w=(S[0]+b[0])/2,T=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,b,x])})}}}var qht={value:function(e,t,r,n,a,i,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=h})},symbolSize:function(e,t,r,n,a,i,o){var s=0;xx.length=o;var l=ad(e);t.eachNode(function(c){var h=id(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/n);isNaN(v)&&(v=_z/2),xx[c.dataIndex]=v,s+=v*2});var u=(2*_z-s)/o/2,f=0;t.eachNode(function(c){var h=u+xx[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=h})}};function T7(e,t,r,n){var a=e.getGraphicEl();if(a){var i=e.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var f=l[0]<r;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");F(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function Kht(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&fE(t,"symbolSize")})}var Gf=y0;function Qht(e,t,r){for(var n=e,a=t,i=r.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=r.gravity==null?.1:r.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=sl(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=Ci(c.p),c.edges=null}var h=r.friction==null?.6:r.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;gs(y,x.p,b.p);var w=qd(y)-S.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),sf(y,y),!b.fixed&&Gf(b.p,b.p,y,T*w*v),!x.fixed&&Gf(x.p,x.p,y,-(1-T)*w*v)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(gs(y,l,C.p),Gf(C.p,C.p,y,u*v))}for(var _=0;_<m;_++)for(var b=n[_],A=_+1;A<m;A++){var x=n[A];gs(y,x.p,b.p);var w=qd(y);w===0&&(AS(y,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+x.rep)/w/w;!b.fixed&&Gf(b.pp,b.pp,y,M),!x.fixed&&Gf(x.pp,x.pp,y,-M)}for(var E=[],_=0;_<m;_++){var C=n[_];C.fixed||(gs(E,C.p,C.pp),Gf(C.p,C.p,E,v),kr(C.pp,C.p))}v=v*.992;var L=v<.01;p&&p(n,a,L),g&&g(L)}}}function Jht(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?w7(t):l==="circular"&&fE(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=Y(c)?c:[c,c],d=Y(h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=Yt(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=a.getEdgeByIndex(S),x=Yt(_,f,d);isNaN(x)&&(x=(d[0]+d[1])/2);var w=b.getModel(),T=un(b.getModel().get(["lineStyle","curveness"]),-lE(b,t,S,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=r.getBoundingRect(),m=Qht(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&kr(_[b].p,a.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||a.getNodeByIndex(x).setLayout(_[x].p),n[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var T=S[x],C=a.getEdgeByIndex(x),A=T.n1.p,M=T.n2.p,E=C.getLayout();E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],kr(E[0],A),kr(E[1],M),+T.curveness&&(E[2]=[(A[0]+M[0])/2-(A[1]-M[1])*T.curveness,(A[1]+M[1])/2-(M[0]-A[0])*T.curveness]),C.setLayout(E)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function tvt(e,t,r){var n=rr(e,t),a=F(e.getBoxLayoutParams(),{aspect:r}),i=de(a,n.refContainer);return QU(e,i,r)}function evt(e,t){var r=[];return e.eachSeriesByType("graph",function(n){lg({targetModel:n,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var i=n.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];NS(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=tvt(n,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=new pf(null,{api:t,ecModel:e});return v.zoomLimit=n.get("scaleLimit"),v.setBoundingRect(s[0],s[1],c,h),v.setViewRect(f.x,f.y,f.width,f.height),v.setCenter(n.get("center")),v.setZoom(n.get("zoom")),r.push(v),v}}),r}var Sz=Be.prototype,Tx=Nh.prototype,C7=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(C7);function Cx(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var A7=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new C7},t.prototype.buildPath=function(r,n){Cx(n)?Sz.buildPath.call(this,r,n):Tx.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return Cx(this.shape)?Sz.pointAt.call(this,r):Tx.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=Cx(n)?[n.x2-n.x1,n.y2-n.y1]:Tx.tangentAt.call(this,r);return sf(a,a)},t}(Et),Ax=["fromSymbol","toSymbol"];function bz(e){return"_"+e+"Type"}function xz(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Yh(a),u=hf(o||0,l);return n+l+u+(i||"")+(s||"")}function wz(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Yh(a),u=hf(o||0,l),f=Ve(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=e,f}}function rvt(e){var t=new A7({name:"line",subPixelOptimize:!0});return dM(t.shape,e),t}function dM(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var cE=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=r.getItemVisual(n,"z2"),l=rvt(o);l.shape.percent=0,fe(l,{z2:ot(s,0),shape:{percent:1}},i,n),this.add(l),D(Ax,function(u){var f=wz(u,r,n);this.add(f),this[bz(u)]=xz(u,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};dM(l.shape,s),Ht(o,l,i,n),D(Ax,function(u){var f=xz(u,r,n),c=bz(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=wz(u,r,n);this.add(h)}this[c]=f},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,h=a&&a.focus,v=a&&a.blurScope;if(!a||r.hasItemOption){var d=r.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),f=er(d)}var g=r.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,D(Ax,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<Qr.length;T++){var C=Qr[T],A=o.getState(C);if(A){var M=A.style||{},E=w.ensureState(C),L=E.style||(E.style={});M.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(L.opacity=M.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);ur(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,r.dataType)}},inheritColor:y||V.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?r.getName(n):isFinite(m)?ze(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");Y(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),ye(this,h,v,c)},t.prototype.highlight=function(){Oo(this)},t.prototype.downplay=function(){Ro(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");dM(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=gs([],c,f);sf(h,h);function v(A,M){var E=A.__specifiedRotation;if(E==null){var L=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",E)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*y+c[0],i.y=h[1]*m+c[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+f[0],i.y=-h[1]*m+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(ht),hE=function(){function e(t){this.group=new ht,this._LineCtor=t||cE}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=Tz(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Tz(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!nvt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(Mx(i)){var o=new this._LineCtor(r,a,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){ll(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(Mx(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!Mx(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e}();function nvt(e){return e.animators&&e.animators.length>0}function Tz(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:er(t)}}function Cz(e){return isNaN(e[0])||isNaN(e[1])}function Mx(e){return e&&!Cz(e[0])&&!Cz(e[1])}var Dx=[],Lx=[],Ex=[],Hf=dr,Ox=Ds,Az=Math.abs;function Mz(e,t,r){for(var n=e[0],a=e[1],i=e[2],o=1/0,s,l=r*r,u=.1,f=.1;f<=.9;f+=.1){Dx[0]=Hf(n[0],a[0],i[0],f),Dx[1]=Hf(n[1],a[1],i[1],f);var c=Az(Ox(Dx,t)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;Lx[0]=Hf(n[0],a[0],i[0],s),Lx[1]=Hf(n[1],a[1],i[1],s),Ex[0]=Hf(n[0],a[0],i[0],v),Ex[1]=Hf(n[1],a[1],i[1],v);var c=Ox(Lx,t)-l;if(Az(c)<.01)break;var d=Ox(Ex,t)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Rx(e,t){var r=[],n=Kd,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Ci(u[0]),Ci(u[1])],u[2]&&u.__original.push(Ci(u[2])));var h=u.__original;if(u[2]!=null){if(kr(a[0],h[0]),kr(a[1],h[2]),kr(a[2],h[1]),f&&f!=="none"){var v=id(s.node1),d=Mz(a,h[0],v*t);n(a[0][0],a[1][0],a[2][0],d,r),a[0][0]=r[3],a[1][0]=r[4],n(a[0][1],a[1][1],a[2][1],d,r),a[0][1]=r[3],a[1][1]=r[4]}if(c&&c!=="none"){var v=id(s.node2),d=Mz(a,h[1],v*t);n(a[0][0],a[1][0],a[2][0],d,r),a[1][0]=r[1],a[2][0]=r[2],n(a[0][1],a[1][1],a[2][1],d,r),a[1][1]=r[1],a[2][1]=r[2]}kr(u[0],a[0]),kr(u[1],a[2]),kr(u[2],a[1])}else{if(kr(i[0],h[0]),kr(i[1],h[1]),gs(o,i[1],i[0]),sf(o,o),f&&f!=="none"){var v=id(s.node1);y0(i[0],i[0],o,v*t)}if(c&&c!=="none"){var v=id(s.node2);y0(i[1],i[1],o,-v*t)}kr(u[0],i[0]),kr(u[1],i[1])}})}var M7=Mt();function avt(e){if(e)return M7(e).bridge}function Dz(e,t){e&&(M7(e).bridge=t)}function Lz(e){return e.type==="view"}var ivt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var a=new hg,i=new hE,o=this.group,s=new ht;this._controller=new df(n.getZr()),this._controllerHost={target:s},s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem,s=!1;this._model=r,this._api=a,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(a);var u=this._symbolDraw,f=this._lineDraw;if(Lz(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):Ht(this._mainGroup,c,r)}Rx(r.getGraph(),ad(r));var h=r.getData();u.updateData(h);var v=r.getEdgeData();f.updateData(v),this._updateNodeAndLinkScale(),this._updateController(null,r,a),clearTimeout(this._layoutTimeout);var d=r.forceLayout,p=r.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,a,p));var g=r.get("layout");h.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var T=w.get("draggable");T&&x.on("drag",function(A){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,a,p),d.setFixed(b),h.setItemLayout(b,[x.x,x.y]);break;case"circular":h.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),fE(r,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(r);break;case"none":default:h.setItemLayout(b,[x.x,x.y]),uE(r.getGraph(),r),i.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(mt(x).focus=S.getAdjacentDataIndices())}}),h.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(mt(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=h.getLayout("cx"),_=h.getLayout("cy");h.graph.eachNode(function(S){T7(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(r,a,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n,a){var i=this,o=!1;(function s(){r.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(r,n,a){var i=this._controller,o=this._controllerHost,s=n.coordinateSystem;if(!Lz(s)){i.disable();return}i.enable(n.get("roam"),{api:a,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!r||r.contain(u,f)}}}),o.zoomLimit=n.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(r,n,a){this._active&&(tE(this._controllerHost,a.dx,a.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(r,n,a){this._active&&(eE(this._controllerHost,a.zoom,a.originX,a.originY),this._updateNodeAndLinkScale(),Rx(r.getGraph(),ad(r)),this._lineDraw.updateLayout(),n.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=ad(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(r){this._active&&(Rx(r.getGraph(),ad(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var r=this._model,n=r.coordinateSystem;if(n.type==="view"){var a=avt(r);if(a)return{bridge:a,coordSys:n}}},t.prototype._updateThumbnailWindow=function(){var r=this._getThumbnailInfo();r&&r.bridge.updateWindow(r.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(r,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new ht,l=a.group.children(),u=i.group.children(),f=new ht,c=new ht;s.add(c),s.add(f);for(var h=0;h<l.length;h++){var v=l[h],d=v.children()[0],p=v.x,g=v.y,y=ct(d.shape),m=F(y,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),_=ct(d.style),S=new d.constructor({shape:m,style:_,z2:151});c.add(S)}for(var h=0;h<u.length;h++){var v=u[h],b=v.children()[0],_=ct(b.style),m=ct(b.shape),x=new A7({style:_,shape:m,z2:151});f.add(x)}o.bridge.renderContent({api:n,roamType:r.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},t.type="graph",t}(Kt);function Uf(e){return"_EC_"+e}var ovt=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Uf(t)]){var a=new Zl(t,r);return a.hostGraph=this,this.nodes.push(a),n[Uf(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Uf(t)]},e.prototype.addEdge=function(t,r,n){var a=this._nodesMap,i=this._edgesMap;if(Bt(t)&&(t=this.nodes[t]),Bt(r)&&(r=this.nodes[r]),t instanceof Zl||(t=a[Uf(t)]),r instanceof Zl||(r=a[Uf(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new D7(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Zl&&(t=t.id),r instanceof Zl&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(r,n[i],i)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(r,n[i],i)},e.prototype.breadthFirstTraverse=function(t,r,n,a){if(r instanceof Zl||(r=this._nodesMap[Uf(r)]),!!r){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(a,c,l))return;s.push(c),c.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;r.filterSelf(function(s){var l=a[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=r.count();i<o;i++)a[r.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,a=0;a<r.length;a++)t.addNode(r[a].id,r[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),Zl=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=it(),r=it(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,r.set(u.dataIndex,!0);for(var f=u.inEdges,c=0,h=f.length,v=void 0,d=void 0;c<h;c++)v=f[c],d=v.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(v.node1))}for(l=0;l<s.length;){var p=s[l];l++,r.set(p.dataIndex,!0);for(var g=p.outEdges,c=0,y=g.length,m=void 0,_=void 0;c<y;c++)m=g[c],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:r.keys()}},e}(),D7=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=it(),r=it();t.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,r.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,c=void 0;l<u;l++)f=o.inEdges[l],c=f.dataIndex,c>=0&&!t.hasKey(c)&&(t.set(c,!0),n.push(f.node1))}for(i=0;i<a.length;){var h=a[i];i++,r.set(h.dataIndex,!0);for(var v=h.outEdges,l=0,u=v.length,d=void 0,p=void 0;l<u;l++)d=h.outEdges[l],p=d.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),a.push(d.node2))}return{edge:t.keys(),node:r.keys()}},e}();function L7(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Ee(Zl,L7("hostGraph","data"));Ee(D7,L7("hostGraph","edgeData"));function vE(e,t,r,n,a){for(var i=new ovt(n),o=0;o<e.length;o++)i.addNode(yr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,h=f.target;i.addEdge(c,h,u)&&(l.push(f),s.push(yr(Qe(f.id,null),c+" > "+h)),u++)}var v=r.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar"||v==="matrix")d=Gi(e,r);else{var p=Hh.get(v),g=p?p.dimensions||[]:[];bt(g,"value")<0&&g.concat(["value"]);var y=jh(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;d=new Hr(y,r),d.initData(e)}var m=new Hr(["value"],r);return m.initData(l,s),a&&a(d,m),u7({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var svt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new qh(a,a),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Ru(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){Xht(this);var s=vE(i,a,this,!0,l);return D(s.edges,function(u){Zht(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=Lt.prototype.getModel;function h(d,p){var g=c.call(this,d,p);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(r,a),s=i.graph.getEdgeByIndex(r),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),je("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=RF({series:this,dataIndex:r,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var r=j(this.option.categories||[],function(a){return a.value!=null?a:F({value:0},a)}),n=new Hr(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:V.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:V.color.primary}}},t}(Jt);function lvt(e){e.registerChartView(ivt),e.registerSeriesModel(svt),e.registerProcessor(Uht),e.registerVisual(Fht),e.registerVisual(Yht),e.registerLayout($ht),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Kht),e.registerLayout(Jht),e.registerCoordinateSystem("graphView",{dimensions:pf.dimensions,create:evt}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},De),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},De),e.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",query:t},function(a){var i=n.getViewOfSeriesModel(a);i&&(t.dx!=null&&t.dy!=null&&i.updateViewOnPan(a,n,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&i.updateViewOnZoom(a,n,t));var o=a.coordinateSystem,s=t1(o,t,a.get("scaleLimit"));a.setCenter&&a.setCenter(s.center),a.setZoom&&a.setZoom(s.zoom)})})}var Ez=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;mt(i).dataType="node",i.z2=2;var o=new zt;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.graph.getNodeByIndex(n),l=r.hostModel,u=s.getModel(),f=u.getModel("emphasis"),c=r.getItemLayout(n),h=F(yi(u.getModel("itemStyle"),c,!0),c),v=this;if(isNaN(h.startAngle)){v.setShape(h);return}i?v.setShape(h):Ht(v,{shape:h},l,n);var d=F(yi(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(r.getItemVisual(n,"style")),tr(o,u),this._updateLabel(l,u,s),r.setItemGraphicEl(n,v),tr(v,u,"itemStyle");var p=f.get("focus");ye(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=n.getModel("label");i.ignore=!f.get("show");var c=er(n),h=a.getVisual("style");ur(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,b,x,w){return r.getFormattedLabel(m,_,"node",b,un(x,c.normal&&c.normal.get("formatter"),n.get("name")),w)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:h.fill,defaultOpacity:h.opacity,defaultOutsidePosition:"startArc"});var v=f.get("position")||"outside",d=f.get("distance")||0,p;v==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:v!=="outside"};var g=v!=="outside"?f.get("align")||"center":l>0?"left":"right",y=v!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(Rr),uvt=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this)||this;return mt(o).dataType="edge",o.updateData(r,n,a,i,!0),o}return t.prototype.buildPath=function(r,n){r.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;r.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),r.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),r.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),r.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),r.closePath()},t.prototype.updateData=function(r,n,a,i,o){var s=r.hostModel,l=n.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),c=n.getItemModel(l.dataIndex),h=c.getModel("lineStyle"),v=c.getModel("emphasis"),d=v.get("focus"),p=F(yi(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),Oz(g,l,r,h)):(ma(g),Oz(g,l,r,h),Ht(g,{shape:p},s,a)),ye(this,d==="adjacency"?l.getAdjacentDataIndices():d,v.get("blurScope"),v.get("disabled")),tr(g,c,"lineStyle"),n.setItemGraphicEl(l.dataIndex,g)},t}(Et);function Oz(e,t,r,n){var a=t.node1,i=t.node2,o=e.style;e.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=r.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=r.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=r.getItemVisual(a.dataIndex,"style").fill,u=r.getItemVisual(i.dataIndex,"style").fill;if(Q(l)&&Q(u)){var f=e.shape,c=(f.s1[0]+f.s2[0])/2,h=(f.s1[1]+f.s2[1])/2,v=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new lf(c,h,v,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var fvt=Math.PI/180,cvt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group,l=-r.get("startAngle")*fvt;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var h=new Ez(i,f,l);mt(h).dataIndex=f,s.add(h)}}).update(function(f,c){var h=o.getItemGraphicEl(c),v=i.getItemLayout(f);if(!v){h&&So(h,r,c);return}h?h.updateData(i,f,l):h=new Ez(i,f,l),s.add(h)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&So(c,r,f)}).execute(),!o){var u=r.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=K(u[0],a.getWidth()),this.group.originY=K(u[1],a.getHeight()),fe(this.group,{scaleX:1,scaleY:1},r)}this._data=i,this.renderEdges(r,l)},t.prototype.renderEdges=function(r,n){var a=r.getData(),i=r.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new uvt(a,i,l,n);mt(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,i,l,n),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&So(u,r,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t}(Kt),hvt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this.legendVisualProvider=new qh(J(this.getData,this),J(this.getRawData,this))},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links)},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[];if(i&&a){var o=vE(i,a,this,!0,s);return o.data}function s(l,u){var f=Lt.prototype.getModel;function c(v,d){var p=f.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){var i=this.getDataParams(r,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(r),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),je("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return je("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(r);if(a.name==null&&(a.name=i.getName(r)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},t.type="series.chord",t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(Jt),Ix=Math.PI/180;function vvt(e,t){e.eachSeriesByType("chord",function(r){dvt(r,t)})}function dvt(e,t){var r=e.getData(),n=r.graph,a=e.getEdgeData(),i=a.count();if(i){var o=KU(e,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((e.get("padAngle")||0)*Ix,0),h=Math.max((e.get("minAngle")||0)*Ix,0),v=-e.get("startAngle")*Ix,d=v+Math.PI*2,p=e.get("clockwise"),g=p?1:-1,y=[v,d];kS(y,!p);var m=y[0],_=y[1],S=_-m,b=r.getSum("value")===0&&a.getSum("value")===0,x=[],w=0;n.eachEdge(function(I){var k=b?1:I.getValue("value");b&&(k>0||h)&&(w+=2);var B=I.node1.dataIndex,H=I.node2.dataIndex;x[B]=(x[B]||0)+k,x[H]=(x[H]||0)+k});var T=0;if(n.eachNode(function(I){var k=I.getValue("value");isNaN(k)||(x[I.dataIndex]=Math.max(k,x[I.dataIndex]||0)),!b&&(x[I.dataIndex]>0||h)&&w++,T+=x[I.dataIndex]||0}),!(w===0||T===0)){c*w>=Math.abs(S)&&(c=Math.max(0,(Math.abs(S)-h*w)/w)),(c+h)*w>=Math.abs(S)&&(h=(Math.abs(S)-c*w)/w);var C=(S-c*w*g)/T,A=0,M=0,E=0;n.eachNode(function(I){var k=x[I.dataIndex]||0,B=C*(T?k:1)*g;Math.abs(B)<h?A+=h-Math.abs(B):(M+=Math.abs(B)-h,E+=Math.abs(B)),I.setLayout({angle:B,value:k})});var L=!1;if(A>M){var R=A/M;n.eachNode(function(I){var k=I.getLayout().angle;Math.abs(k)>=h?I.setLayout({angle:k*R,ratio:R},!0):I.setLayout({angle:h,ratio:h===0?1:k/h},!0)})}else n.eachNode(function(I){if(!L){var k=I.getLayout().angle,B=Math.min(k/E,1),H=B*A;k-H<h&&(L=!0)}});var P=A;n.eachNode(function(I){if(!(P<=0)){var k=I.getLayout().angle;if(k>h&&h>0){var B=L?1:Math.min(k/E,1),H=k-h,U=Math.min(H,Math.min(P,A*B));P-=U,I.setLayout({angle:k-U,ratio:(k-U)/k},!0)}else h>0&&I.setLayout({angle:h,ratio:k===0?1:h/k},!0)}});var O=m,N=[];n.eachNode(function(I){var k=Math.max(I.getLayout().angle,h);I.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:O,endAngle:O+k*g,clockwise:p},!0),N[I.dataIndex]=O,O+=(k+c)*g}),n.eachEdge(function(I){var k=b?1:I.getValue("value"),B=C*(T?k:1)*g,H=I.node1.dataIndex,U=N[H]||0,X=Math.abs((I.node1.getLayout().ratio||1)*B),q=U+X*g,st=[s+f*Math.cos(U),l+f*Math.sin(U)],Dt=[s+f*Math.cos(q),l+f*Math.sin(q)],lt=I.node2.dataIndex,rt=N[lt]||0,et=Math.abs((I.node2.getLayout().ratio||1)*B),at=rt+et*g,$=[s+f*Math.cos(rt),l+f*Math.sin(rt)],tt=[s+f*Math.cos(at),l+f*Math.sin(at)];I.setLayout({s1:st,s2:Dt,sStartAngle:U,sEndAngle:q,t1:$,t2:tt,tStartAngle:rt,tEndAngle:at,cx:s,cy:l,r:f,value:k,clockwise:p}),N[H]=q,N[lt]=at})}}}function pvt(e){e.registerChartView(cvt),e.registerSeriesModel(hvt),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vvt),e.registerProcessor(Zh("chord"))}var gvt=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),yvt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new gvt},t.prototype.buildPath=function(r,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,f),r.lineTo(n.x+a(l)*s,n.y+i(l)*s),r.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),r.lineTo(n.x-a(l)*s,n.y-i(l)*s),r.lineTo(u,f)},t}(Et);function mvt(e,t){var r=e.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=K(r[0],t.getWidth()),s=K(r[1],t.getHeight()),l=K(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Ry(e,t){var r=e==null?"":e+"";return t&&(Q(t)?r=t.replace("{value}",r):ft(t)&&(r=t(e))),r}var _vt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=mvt(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,a,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,f=-r.get("endAngle")/180*Math.PI,c=r.getModel("axisLine"),h=c.get("roundCap"),v=h?r_:Rr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];kS(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b<i.length;b++){var x=Math.min(Math.max(i[b][0],0),1);f=u+m*x;var w=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[b][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),D(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=C&&(A===0?0:i[A-1][0])<C)return i[A][1];return i[A-1][1]};this._renderTicks(r,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(r,n,a,T,o),this._renderAnchor(r,o),this._renderPointer(r,n,a,T,o,u,f,l,g)},t.prototype._renderTicks=function(r,n,a,i,o,s,l,u,f){for(var c=this.group,h=o.cx,v=o.cy,d=o.r,p=+r.get("min"),g=+r.get("max"),y=r.getModel("splitLine"),m=r.getModel("axisTick"),_=r.getModel("axisLabel"),S=r.get("splitNumber"),b=m.get("splitNumber"),x=K(y.get("length"),d),w=K(m.get("length"),d),T=s,C=(l-s)/S,A=C/b,M=y.getModel("lineStyle").getLineStyle(),E=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),R,P,O=0;O<=S;O++){if(R=Math.cos(T),P=Math.sin(T),y.get("show")){var N=L?L+f:f,I=new Be({shape:{x1:R*(d-N)+h,y1:P*(d-N)+v,x2:R*(d-x-N)+h,y2:P*(d-x-N)+v},style:M,silent:!0});M.stroke==="auto"&&I.setStyle({stroke:i(O/S)}),c.add(I)}if(_.get("show")){var N=_.get("distance")+L,k=Ry(ze(O/S*(g-p)+p),_.get("formatter")),B=i(O/S),H=R*(d-x-N)+h,U=P*(d-x-N)+v,X=_.get("rotate"),q=0;X==="radial"?(q=-T+2*Math.PI,q>Math.PI/2&&(q+=Math.PI)):X==="tangential"?q=-T-Math.PI/2:Bt(X)&&(q=X*Math.PI/180),q===0?c.add(new zt({style:ee(_,{text:k,x:H,y:U,verticalAlign:P<-.8?"top":P>.8?"bottom":"middle",align:R<-.4?"left":R>.4?"right":"center"},{inheritColor:B}),silent:!0})):c.add(new zt({style:ee(_,{text:k,x:H,y:U,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:H,originY:U,rotation:q}))}if(m.get("show")&&O!==S){var N=m.get("distance");N=N?N+f:f;for(var st=0;st<=b;st++){R=Math.cos(T),P=Math.sin(T);var Dt=new Be({shape:{x1:R*(d-N)+h,y1:P*(d-N)+v,x2:R*(d-w-N)+h,y2:P*(d-w-N)+v},silent:!0,style:E});E.stroke==="auto"&&Dt.setStyle({stroke:i((O+st/b)/S)}),c.add(Dt),T+=A}T-=A}else T+=C}},t.prototype._renderPointer=function(r,n,a,i,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,d=[],p=r.get(["pointer","show"]),g=r.getModel("progress"),y=g.get("show"),m=r.getData(),_=m.mapDimension("value"),S=+r.get("min"),b=+r.get("max"),x=[S,b],w=[s,l];function T(A,M){var E=m.getItemModel(A),L=E.getModel("pointer"),R=K(L.get("width"),o.r),P=K(L.get("length"),o.r),O=r.get(["pointer","icon"]),N=L.get("offsetCenter"),I=K(N[0],o.r),k=K(N[1],o.r),B=L.get("keepAspect"),H;return O?H=Ve(O,I-R/2,k-P,R,P,null,B):H=new yvt({shape:{angle:-Math.PI/2,width:R,r:P,x:I,y:k}}),H.rotation=-(M+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(A,M){var E=g.get("roundCap"),L=E?r_:Rr,R=g.get("overlap"),P=R?g.get("width"):f/m.count(),O=R?o.r-P:o.r-(A+1)*P,N=R?o.r:o.r-A*P,I=new L({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:N}});return R&&(I.z2=Yt(m.get(_,A),[S,b],[100,0],!0)),I}(y||p)&&(m.diff(h).add(function(A){var M=m.get(_,A);if(p){var E=T(A,s);fe(E,{rotation:-((isNaN(+M)?w[0]:Yt(M,x,w,!0))+Math.PI/2)},r),c.add(E),m.setItemGraphicEl(A,E)}if(y){var L=C(A,s),R=g.get("clip");fe(L,{shape:{endAngle:Yt(M,x,w,R)}},r),c.add(L),fA(r.seriesIndex,m.dataType,A,L),d[A]=L}}).update(function(A,M){var E=m.get(_,A);if(p){var L=h.getItemGraphicEl(M),R=L?L.rotation:s,P=T(A,R);P.rotation=R,Ht(P,{rotation:-((isNaN(+E)?w[0]:Yt(E,x,w,!0))+Math.PI/2)},r),c.add(P),m.setItemGraphicEl(A,P)}if(y){var O=v[M],N=O?O.shape.endAngle:s,I=C(A,N),k=g.get("clip");Ht(I,{shape:{endAngle:Yt(E,x,w,k)}},r),c.add(I),fA(r.seriesIndex,m.dataType,A,I),d[A]=I}}).execute(),m.each(function(A){var M=m.getItemModel(A),E=M.getModel("emphasis"),L=E.get("focus"),R=E.get("blurScope"),P=E.get("disabled");if(p){var O=m.getItemGraphicEl(A),N=m.getItemVisual(A,"style"),I=N.fill;if(O instanceof cr){var k=O.style;O.useStyle(F({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},N))}else O.useStyle(N),O.type!=="pointer"&&O.setColor(I);O.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",i(Yt(m.get(_,A),x,[0,1],!0))),O.z2EmphasisLift=0,tr(O,M),ye(O,L,R,P)}if(y){var B=d[A];B.useStyle(m.getItemVisual(A,"style")),B.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,tr(B,M),ye(B,L,R,P)}}),this._progressEls=d)},t.prototype._renderAnchor=function(r,n){var a=r.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Ve(s,n.cx-o/2+K(l[0],n.r),n.cy-o/2+K(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(r,n,a,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),f=+r.get("min"),c=+r.get("max"),h=new ht,v=[],d=[],p=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new zt({silent:!0}),d[y]=new zt({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new ht,b=i(Yt(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+K(w[0],o.r),C=o.cy+K(w[1],o.r),A=v[y];A.attr({z2:g?0:2,style:ee(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(A)}var M=m.getModel("detail");if(M.get("show")){var E=M.get("offsetCenter"),L=o.cx+K(E[0],o.r),R=o.cy+K(E[1],o.r),P=K(M.get("width"),o.r),O=K(M.get("height"),o.r),N=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,A=d[y],I=M.get("formatter");A.attr({z2:g?0:2,style:ee(M,{x:L,y:R,text:Ry(_,I),width:isNaN(P)?null:P,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:N})}),IU(A,{normal:M},_,function(B){return Ry(B,I)}),p&&PU(A,y,l,r,{getFormattedLabel:function(B,H,U,X,q,st){return Ry(st?st.interpolatedValue:_,I)}}),S.add(A)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=d},t.type="gauge",t}(Kt),Svt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return $h(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,V.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:V.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:V.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:V.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:V.color.neutral00,borderWidth:0,borderColor:V.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:V.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:V.color.transparent,borderWidth:0,borderColor:V.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:V.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Jt);function bvt(e){e.registerChartView(_vt),e.registerSeriesModel(Svt)}var xvt=["itemStyle","opacity"],wvt=function(e){G(t,e);function t(r,n){var a=e.call(this)||this,i=a,o=new _r,s=new zt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return t.prototype.updateData=function(r,n,a){var i=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(xvt);f=f??1,a||ma(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,fe(i,{style:{opacity:f}},o,n)):Ht(i,{style:{opacity:f},shape:{points:l.points}},o,n),tr(i,s),this._updateLabel(r,n),ye(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),f=u.label,c=r.getItemVisual(n,"style"),h=c.fill;ur(o,er(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:r.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var v=l.getModel("label"),d=v.get("color"),p=d==="inherit"?h:null;a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),a.textGuideLineConfig={anchor:g?new gt(g[0][0],g[0][1]):null},Ht(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),GL(a,HL(l),{stroke:h})},t}(Ir),Tvt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new wvt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);So(u,r,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Kt),Cvt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new qh(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return $h(this,{coordDimensions:["value"],encodeDefaulter:St(dL,this)})},t.prototype._defaultLabelLine=function(r){Ru(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),a=e.prototype.getDataParams.call(this,r),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,r)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:V.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:V.color.primary}}},t}(Jt);function Avt(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return ft(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function Mvt(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var a=e.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,v,d;if(f)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[h,v],[h,v]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,h=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,h=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,v=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,v=m+5,c="center"):o==="rightTop"?(p=r==="horizontal"?u[3][0]:u[1][0],g=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p+_,h=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],r==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(m=g-_,v=m-5,c="center"):(y=p-_,h=y-5,c="right")):o==="leftBottom"?(p=r==="horizontal"?u[1][0]:u[3][0],g=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p-_,h=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r==="horizontal"?(m=g+_,v=m+5,c="center"):(y=p+_,h=y+5,c="left")),r==="horizontal"?(y=p,h=y):(m=g,v=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:h,y:v,verticalAlign:"middle",textAlign:c,inside:f}})}function Dvt(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),a=n.mapDimension("value"),i=r.get("sort"),o=rr(r,t),s=de(r.getBoxLayoutParams(),o.refContainer),l=r.get("orient"),u=s.width,f=s.height,c=Avt(n,i),h=s.x,v=s.y,d=l==="horizontal"?[K(r.get("minSize"),f),K(r.get("maxSize"),f)]:[K(r.get("minSize"),u),K(r.get("maxSize"),u)],p=n.getDataExtent(a),g=r.get("min"),y=r.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=r.get("funnelAlign"),_=r.get("gap"),S=l==="horizontal"?u:f,b=(S-_*(n.count()-1))/n.count(),x=function(P,O){if(l==="horizontal"){var N=n.get(a,P)||0,I=Yt(N,[g,y],d,!0),k=void 0;switch(m){case"top":k=v;break;case"center":k=v+(f-I)/2;break;case"bottom":k=v+(f-I);break}return[[O,k],[O,k+I]]}var B=n.get(a,P)||0,H=Yt(B,[g,y],d,!0),U;switch(m){case"left":U=h;break;case"center":U=h+(u-H)/2;break;case"right":U=h+u-H;break}return[[U,O],[U+H,O]]};i==="ascending"&&(b=-b,_=-_,l==="horizontal"?h+=u:v+=f,c=c.reverse());for(var w=0;w<c.length;w++){var T=c[w],C=c[w+1],A=n.getItemModel(T);if(l==="horizontal"){var M=A.get(["itemStyle","width"]);M==null?M=b:(M=K(M,u),i==="ascending"&&(M=-M));var E=x(T,h),L=x(C,h+M);h+=M+_,n.setItemLayout(T,{points:E.concat(L.slice().reverse())})}else{var R=A.get(["itemStyle","height"]);R==null?R=b:(R=K(R,f),i==="ascending"&&(R=-R));var E=x(T,v),L=x(C,v+R);v+=R+_,n.setItemLayout(T,{points:E.concat(L.slice().reverse())})}}Mvt(n)})}function Lvt(e){e.registerChartView(Tvt),e.registerSeriesModel(Cvt),e.registerLayout(Dvt),e.registerProcessor(Zh("funnel"))}var Evt=.3,Ovt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new ht,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.dimensions,c=Iz(r);s.diff(l).add(h).update(v).remove(d).execute();function h(g){var y=Rz(s,o,g,f,u);Px(y,s,g,c)}function v(g,y){var m=l.getItemGraphicEl(y),_=E7(s,g,f,u);s.setItemGraphicEl(g,m),Ht(m,{shape:{points:_}},r,g),ma(m),Px(m,s,g,c)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=Rvt(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=Iz(n),u=this._progressiveEls=[],f=r.start;f<r.end;f++){var c=Rz(i,this._dataGroup,f,s,o);c.incremental=!0,Px(c,i,f,l),u.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Kt);function Rvt(e,t,r){var n=e.model,a=e.getRect(),i=new Ct({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),fe(i,{shape:{width:a.width,height:a.height}},t,r),i}function E7(e,t,r,n){for(var a=[],i=0;i<r.length;i++){var o=r[i],s=e.get(e.mapDimension(o),t);Ivt(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function Rz(e,t,r,n,a){var i=E7(e,r,n,a),o=new _r({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function Iz(e){var t=e.get("smooth",!0);return t===!0&&(t=Evt),t=Ri(t),Dr(t)&&(t=0),{smooth:t}}function Px(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var a=t.getItemModel(r),i=a.getModel("emphasis");tr(e,a,"lineStyle"),ye(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function Ivt(e,t){return t==="category"?e==null:e==null||isNaN(e)}var Pvt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return Gi(null,this,{useEncodeDefaulter:J(Nvt,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){r===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Jt);function Nvt(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return D(t.dimensions,function(n){var a=kvt(n);r[n]=a}),r}}function kvt(e){return+e.replace("dim","")}var zvt=["lineStyle","opacity"],Bvt={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(a,i){r.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(zvt,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};function Vvt(e){Gvt(e),Hvt(e)}function Gvt(e){if(!e.parallel){var t=!1;D(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function Hvt(e){var t=ne(e.parallelAxis);D(t,function(r){if(dt(r)){var n=r.parallelIndex||0,a=ne(e.parallel)[n];a&&a.parallelAxisDefault&&xt(r,a.parallelAxisDefault,!1)}})}var Uvt=5,Fvt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this._model=r,this._api=a,this._handlers||(this._handlers={},D(Yvt,function(i,o){a.getZr().on(o,this._handlers[o]=J(i,this))},this)),Fh(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){up(this,"_throttledDispatchExpand"),D(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(F({type:"parallelAxisExpand"},r))},t.type="parallel",t}(ie),Yvt={mousedown:function(e){Nx(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Nx(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>Uvt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Nx(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Nx(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var jvt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&xt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(r){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],a=Ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){r.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(At),Wvt=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(xa);function $s(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=Ff(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Ff(s,[0,o]),a=i=Ff(s,[a,i]),n=0}t[0]=Ff(t[0],r),t[1]=Ff(t[1],r);var l=kx(t,n);t[n]+=e;var u=a||0,f=r.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=Ff(t[n],f);var c;return c=kx(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=t[n]+l.sign*a),c=kx(t,n),i!=null&&c.span>i&&(t[1-n]=t[n]+c.sign*i),t}function kx(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Ff(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var zx=D,O7=Math.min,R7=Math.max,Pz=Math.floor,Xvt=Math.ceil,Nz=ze,Zvt=Math.PI,$vt=function(){function e(t,r,n){this.type="parallel",this._axesMap=it(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=t.dimensions,i=t.parallelAxisIndex;zx(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),f=this._axesMap.set(o,new Wvt(o,fg(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var a=n.getData();zx(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Vu(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){var n=rr(t,r).refContainer;this._rect=de(t.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,f=Iy(t.get("axisExpandWidth"),l),c=Iy(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=Iy(v[1]-v[0],l),v[1]=v[0]+d;else{d=Iy(f*(c-1),l);var p=t.get("axisExpandCenter")||Pz(u/2);v=[f*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[Pz(Nz(v[0]/f,1))+1,Xvt(Nz(v[1]/f,1))-1],m=g/f*v[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;r.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),zx(n,function(o,s){var l=(a.axisExpandable?Kvt:qvt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:Zvt/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],h=f[i],v=sr();Yo(v,v,h),Ua(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=t.getValues(s,f),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(h[v]);if(p==="inactive"){c="inactive";break}}}r(c,f)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)r.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return Ba([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return ct(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,a=r.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",f=r.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(f)h&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):h&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=r.axisExpandWidth/f,l?$s(l,a,o,"all"):u="none";else{var v=a[1]-a[0],d=o[1]*s/v;a=[R7(0,d-v/2)],a[1]=O7(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},e}();function Iy(e,t){return O7(R7(e,t[0]),t[1])}function qvt(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function Kvt(e,t){var r=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return e<o[0]?(s=e*i,f=i):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(a-1-e)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function Qvt(e,t){var r=[];return e.eachComponent("parallel",function(n,a){var i=new $vt(n,e,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",Me).models[0];n.coordinateSystem=a.coordinateSystem}}),r}var Jvt={create:Qvt},pM=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return Pu([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=ct(r);if(n)for(var a=n.length-1;a>=0;a--)Dn(n[a])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=r&&r<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=r&&r<=n[i][1])return"active";return"inactive"},t}(At);Ee(pM,Xh);var Gu=!0,wp=Math.min,fh=Math.max,tdt=Math.pow,edt=1e4,rdt=6,ndt=6,kz="globalPan",adt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},idt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},zz={brushStyle:{lineWidth:2,stroke:V.color.backgroundTint,fill:V.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},odt=0,dE=function(e){G(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new ht,n._uid="brushController_"+odt++,D(vdt,function(a,i){this._handlers[i]=J(a,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||Fft(n,kz,this._uid),D(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=xt(ct(zz),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;Yft(r,kz,this._uid),D(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};D(r,function(a){n[a.panelId]=ct(a)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=j(r,function(h){return xt(ct(zz),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Io(a,r,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var d=r[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var p=i[h]=v!=null?(a[v].__brushOption=d,a[v]):P7(o,I7(o,d));pE(o,p)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),gM(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Sa);function I7(e,t){var r=a1[t.brushType].createCover(e,t);return r.__brushOption=t,k7(r,t),e.group.add(r),r}function P7(e,t){var r=gE(t);return r.endCreating&&(r.endCreating(e,t),k7(t,t.__brushOption)),t}function N7(e,t){var r=t.__brushOption;gE(t).updateCoverShape(e,t,r.range,r)}function k7(e,t){var r=t.z;r==null&&(r=edt),e.traverse(function(n){n.z=r,n.z2=r})}function pE(e,t){gE(t).updateCommon(e,t),N7(e,t)}function gE(e){return a1[e.__brushOption.brushType]}function yE(e,t,r){var n=e._panels;if(!n)return Gu;var a,i=e._transform;return D(n,function(o){o.isTargetByCursor(t,r,i)&&(a=o)}),a}function z7(e,t){var r=e._panels;if(!r)return Gu;var n=t.__brushOption.panelId;return n!=null?r[n]:Gu}function gM(e){var t=e._covers,r=t.length;return D(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function Hu(e,t){var r=j(e._covers,function(n){var a=n.__brushOption,i=ct(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function sdt(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],a=r[0]-n[0],i=r[1]-n[1],o=tdt(a*a+i*i,.5);return o>rdt}function B7(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function V7(e,t,r,n){var a=new ht;return a.add(new Ct({name:"main",style:mE(r),silent:!0,draggable:!0,cursor:"move",drift:St(Bz,e,t,a,["n","s","w","e"]),ondragend:St(Hu,t,{isEnd:!0})})),D(n,function(i){a.add(new Ct({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:St(Bz,e,t,a,i),ondragend:St(Hu,t,{isEnd:!0})}))}),a}function G7(e,t,r,n){var a=n.brushStyle.lineWidth||0,i=fh(a,ndt),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,f=r[0][1],c=r[1][1],h=f-i+a/2,v=c-i+a/2,d=f-o,p=c-s,g=d+a,y=p+a;Zi(e,t,"main",o,s,d,p),n.transformable&&(Zi(e,t,"w",l,u,i,y),Zi(e,t,"e",h,u,i,y),Zi(e,t,"n",l,u,g,i),Zi(e,t,"s",l,v,g,i),Zi(e,t,"nw",l,u,i,i),Zi(e,t,"ne",h,u,i,i),Zi(e,t,"sw",l,v,i,i),Zi(e,t,"se",h,v,i,i))}function yM(e,t){var r=t.__brushOption,n=r.transformable,a=t.childAt(0);a.useStyle(mE(r)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?mM(e,i[0]):udt(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?idt[s]+"-resize":null})})}function Zi(e,t,r,n,a,i,o){var s=t.childOfName(r);s&&s.setShape(cdt(_E(e,t,[[n,a],[n+i,a+o]])))}function mE(e){return vt({strokeNoScale:!0},e.brushStyle)}function H7(e,t,r,n){var a=[wp(e,r),wp(t,n)],i=[fh(e,r),fh(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function ldt(e){return Rs(e.group)}function mM(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=GS(r[t],ldt(e));return n[a]}function udt(e,t){var r=[mM(e,t[0]),mM(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function Bz(e,t,r,n,a,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=U7(t,a,i);D(n,function(u){var f=adt[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=e.fromRectRange(H7(s[0][0],s[1][0],s[0][1],s[1][1])),pE(t,r),Hu(t,{isEnd:!1})}function fdt(e,t,r,n){var a=t.__brushOption.range,i=U7(e,r,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),pE(e,t),Hu(e,{isEnd:!1})}function U7(e,t,r){var n=e.group,a=n.transformCoordToLocal(t,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function _E(e,t,r){var n=z7(e,t);return n&&n!==Gu?n.clipPath(r,e._transform):ct(r)}function cdt(e){var t=wp(e[0][0],e[1][0]),r=wp(e[0][1],e[1][1]),n=fh(e[0][0],e[1][0]),a=fh(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:a-r}}function hdt(e,t,r){if(!(!e._brushType||ddt(e,t.offsetX,t.offsetY))){var n=e._zr,a=e._covers,i=yE(e,t,r);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Gu||s.panelId===i.panelId)&&a1[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function _M(e){var t=e.event;t.preventDefault&&t.preventDefault()}function SM(e,t,r){return e.childOfName("main").contain(t,r)}function F7(e,t,r,n){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),sdt(e)||a){if(i&&!a){o.brushMode==="single"&&gM(e);var l=ct(o);l.brushType=Vz(l.brushType,i),l.panelId=i===Gu?null:i.panelId,a=e._creatingCover=I7(e,l),e._covers.push(a)}if(a){var u=a1[Vz(e._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(_E(e,a,e._track)),n&&(P7(e,a),u.updateCommon(e,a)),N7(e,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&yE(e,t,r)&&gM(e)&&(s={isEnd:n,removeOnClick:!0});return s}function Vz(e,t){return e==="auto"?t.defaultBrushType:e}var vdt={mousedown:function(e){if(this._dragging)Gz(this,e);else if(!e.target||!e.target.draggable){_M(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=yE(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(hdt(this,e,n),this._dragging){_M(e);var a=F7(this,e,n,!1);a&&Hu(this,a)}},mouseup:function(e){Gz(this,e)}};function Gz(e,t){if(e._dragging){_M(t);var r=t.offsetX,n=t.offsetY,a=e.group.transformCoordToLocal(r,n),i=F7(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&Hu(e,i)}}function ddt(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var a1={lineX:Hz(0),lineY:Hz(1),rect:{createCover:function(e,t){function r(n){return n}return V7({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=B7(e);return H7(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){G7(e,t,r,n)},updateCommon:yM,contain:SM},polygon:{createCover:function(e,t){var r=new ht;return r.add(new _r({name:"main",style:mE(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ir({name:"main",draggable:!0,drift:St(fdt,e,t),ondragend:St(Hu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:_E(e,t,r)})},updateCommon:yM,contain:SM}};function Hz(e){return{createCover:function(t,r){return V7({toRectRange:function(n){var a=[n,[0,100]];return e&&a.reverse(),a},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=B7(t),n=wp(r[0][e],r[1][e]),a=fh(r[0][e],r[1][e]);return[n,a]},updateCoverShape:function(t,r,n,a){var i,o=z7(t,r);if(o!==Gu&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,i];e&&l.reverse(),G7(t,r,l,a)},updateCommon:yM,contain:SM}}function Y7(e){return e=SE(e),function(t){return $2(t,e)}}function j7(e,t){return e=SE(e),function(r){var n=t??r,a=n?e.width:e.height,i=n?e.x:e.y;return[i,i+(a||0)]}}function W7(e,t,r){var n=SE(e);return function(a,i){return n.contain(i[0],i[1])&&!K8(a,t,r)}}function SE(e){return yt.create(e)}var pdt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new dE(n.getZr())).on("brush",J(this._onBrush,this))},t.prototype.render=function(r,n,a,i){if(!gdt(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ht,this.group.add(this._axisGroup),!!r.get("show")){var s=mdt(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),f=u.width,c=r.axis.dim,h=l.getAxisLayout(c),v=F({strokeContainThreshold:f},h),d=new qr(r,a,v);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(v,u,r,s,f,a),og(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=yt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:Y7(c),isTargetByCursor:W7(c,s,i),getLinearBrushOtherExtent:j7(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(ydt(a))},t.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=j(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(ie);function gdt(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function ydt(e){var t=e.axis;return j(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function mdt(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var _dt={type:"axisAreaSelect",event:"axisAreaSelected"};function Sdt(e){e.registerAction(_dt,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var bdt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function X7(e){e.registerComponentView(Fvt),e.registerComponentModel(jvt),e.registerCoordinateSystem("parallel",Jvt),e.registerPreprocessor(Vvt),e.registerComponentModel(pM),e.registerComponentView(pdt),lh(e,"parallel",pM,bdt),Sdt(e)}function xdt(e){wt(X7),e.registerChartView(Ovt),e.registerSeriesModel(Pvt),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Bvt)}var wdt=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Tdt=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new wdt},t.prototype.buildPath=function(r,n){var a=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+a,n.y2),r.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(r.lineTo(n.x2,n.y2+a),r.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),r.closePath()},t.prototype.highlight=function(){Oo(this)},t.prototype.downplay=function(){Ro(this)},t}(Et),Cdt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new ht,r._focusAdjacencyDisabled=!1,r}return t.prototype.init=function(r,n){this._controller=new df(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,a){var i=this,o=r.getGraph(),s=this._mainGroup,l=r.layoutInfo,u=l.width,f=l.height,c=r.getData(),h=r.getData("edge"),v=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(r,a),Q8(r,a,s,this._controller,this._controllerHost,null),o.eachEdge(function(d){var p=new Tdt,g=mt(p);g.dataIndex=d.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),b=d.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),A=C.get("localX"),M=C.get("localY"),E=d.getLayout(),L,R,P,O,N,I,k,B;p.shape.extent=Math.max(1,E.dy),p.shape.orient=v,v==="vertical"?(L=(x!=null?x*u:S.x)+E.sy,R=(w!=null?w*f:S.y)+S.dy,P=(A!=null?A*u:T.x)+E.ty,O=M!=null?M*f:T.y,N=L,I=R*(1-_)+O*_,k=P,B=R*_+O*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,R=(w!=null?w*f:S.y)+E.sy,P=A!=null?A*u:T.x,O=(M!=null?M*f:T.y)+E.ty,N=L*(1-_)+P*_,I=R,k=L*_+P*(1-_),B=O),p.setShape({x1:L,y1:R,x2:P,y2:O,cpx1:N,cpy1:I,cpx2:k,cpy2:B}),p.useStyle(m.getItemStyle()),Uz(p.style,v,d);var H=""+y.get("value"),U=er(y,"edgeLabel");ur(p,U,{labelFetcher:{getFormattedLabel:function(st,Dt,lt,rt,et,at){return r.getFormattedLabel(st,Dt,"edge",rt,un(et,U.normal&&U.normal.get("formatter"),H),at)}},labelDataIndex:d.dataIndex,defaultText:H}),p.setTextConfig({position:"inside"});var X=y.getModel("emphasis");tr(p,y,"lineStyle",function(st){var Dt=st.getItemStyle();return Uz(Dt,v,d),Dt}),s.add(p),h.setItemGraphicEl(d.dataIndex,p);var q=X.get("focus");ye(p,q==="adjacency"?d.getAdjacentDataIndices():q==="trajectory"?d.getTrajectoryDataIndices():q,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new Ct({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});ur(b,er(g),{labelFetcher:{getFormattedLabel:function(w,T){return r.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),b.disableLabelAnimation=!0,b.setStyle("fill",d.getVisual("color")),b.setStyle("decal",d.getVisual("style").decal),tr(b,g),s.add(b),c.setItemGraphicEl(d.dataIndex,b),mt(b).dataType="node";var x=_.get("focus");ye(b,x==="adjacency"?d.getAdjacentDataIndices():x==="trajectory"?d.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(d,p){var g=c.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:c.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(Adt(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(r,n){var a=r.layoutInfo,i=a.width,o=a.height,s=r.coordinateSystem=new pf(null,{api:n,ecModel:r.ecModel});s.zoomLimit=r.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(r.get("center")),s.setZoom(r.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},t.type="sankey",t}(Kt);function Uz(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),a=r.node2.getVisual("color");Q(n)&&Q(a)&&(e.fill=new lf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Adt(e,t,r){var n=new Ct({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return fe(n,{shape:{width:e.width+20}},t,r),n}var Mdt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=r.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Lt(o[l],this,n));var u=vE(i,a,this,!0,f);return u.data;function f(c,h){c.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,d){var p=v.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.localY=n[1]},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return je("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(r),c=f.getLayout().value,h=this.getDataParams(r,a).data.name;return je("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(r),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:V.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:V.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(Jt);function Ddt(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=rr(r,t).refContainer,o=de(r.getBoxLayoutParams(),i);r.layoutInfo=o;var s=o.width,l=o.height,u=r.getGraph(),f=u.nodes,c=u.edges;Edt(f);var h=Ft(f,function(g){return g.getLayout().value===0}),v=h.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),p=r.get("nodeAlign");Ldt(f,c,n,a,s,l,v,d,p)})}function Ldt(e,t,r,n,a,i,o,s,l){Odt(e,t,r,a,i,s,l),Ndt(e,t,i,a,n,o,s),Ydt(e,s)}function Edt(e){D(e,function(t){var r=Ns(t.outEdges,f_),n=Ns(t.inEdges,f_),a=t.getValue()||0,i=Math.max(r,n,a);t.setLayout({value:i},!0)})}function Odt(e,t,r,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,h=0;h<t.length;h++)s[h]=1;for(var h=0;h<e.length;h++)l[h]=e[h].inEdges.length,l[h]===0&&u.push(e[h]);for(var v=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>v&&(v=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=t.indexOf(_);s[S]=0;var b=_.node2,x=e.indexOf(b);--l[x]===0&&f.indexOf(b)<0&&f.push(b)}}++c,u=f,f=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>c-1?v:c-1;o&&o!=="left"&&Rdt(e,o,i,w);var T=i==="vertical"?(a-r)/w:(n-r)/w;Pdt(e,T,i)}function Z7(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function Rdt(e,t,r,n){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];a.indexOf(f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}D(e,function(c){Z7(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&Idt(e,n)}function Idt(e,t){D(e,function(r){!Z7(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function Pdt(e,t,r){D(e,function(n){var a=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function Ndt(e,t,r,n,a,i,o){var s=kdt(e,o);zdt(s,t,r,n,a,o),Bx(s,a,r,n,o);for(var l=1;i>0;i--)l*=.99,Bdt(s,l,o),Bx(s,a,r,n,o),Fdt(s,l,o),Bx(s,a,r,n,o)}function kdt(e,t){var r=[],n=t==="vertical"?"y":"x",a=iA(e,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),D(a.keys,function(i){r.push(a.buckets.get(i))}),r}function zdt(e,t,r,n,a,i){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(r-(l-1)*a)/u;f<o&&(o=f)}),D(e,function(s){D(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),D(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Bx(e,t,r,n,a){var i=a==="vertical"?"x":"y";D(e,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,h=a==="vertical"?"dx":"dy",v=0;v<c;v++)l=o[v],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[h]+t;var d=a==="vertical"?n:r;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=c-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[h]+t-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function Bdt(e,t,r){D(e.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=Ns(a.outEdges,Vdt,r)/Ns(a.outEdges,f_);if(isNaN(i)){var o=a.outEdges.length;i=o?Ns(a.outEdges,Gdt,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-qs(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-qs(a,r))*t;a.setLayout({y:l},!0)}}})})}function Vdt(e,t){return qs(e.node2,t)*e.getValue()}function Gdt(e,t){return qs(e.node2,t)}function Hdt(e,t){return qs(e.node1,t)*e.getValue()}function Udt(e,t){return qs(e.node1,t)}function qs(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function f_(e){return e.getValue()}function Ns(e,t,r){for(var n=0,a=e.length,i=-1;++i<a;){var o=+t(e[i],r);isNaN(o)||(n+=o)}return n}function Fdt(e,t,r){D(e,function(n){D(n,function(a){if(a.inEdges.length){var i=Ns(a.inEdges,Hdt,r)/Ns(a.inEdges,f_);if(isNaN(i)){var o=a.inEdges.length;i=o?Ns(a.inEdges,Udt,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-qs(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-qs(a,r))*t;a.setLayout({y:l},!0)}}})})}function Ydt(e,t){var r=t==="vertical"?"x":"y";D(e,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[r]-i.node2.getLayout()[r]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[r]-i.node1.getLayout()[r]})}),D(e,function(n){var a=0,i=0;D(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function jdt(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes,a=r.edges;if(n.length){var i=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),D(n,function(s){var l=new lr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Wdt(e){e.registerChartView(Cdt),e.registerSeriesModel(Mdt),e.registerLayout(Ddt),e.registerVisual(jdt),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),e.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){var i=a.coordinateSystem,o=t1(i,t,a.get("scaleLimit"));a.setCenter(o.center),a.setZoom(o.zoom)})})}var $7=function(){function e(){}return e.prototype._hasEncodeRule=function(t){var r=this.getEncode();return r&&r.get(t)!=null},e.prototype.getInitialData=function(t,r){var n,a=r.getComponent("xAxis",this.get("xAxisIndex")),i=r.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],d=v[f].get("type"),p=v[1-f].get("type"),g=t.data;if(g&&l){var y=[];D(g,function(S,b){var x;Y(S)?(x=S.slice(),S.unshift(b)):Y(S.value)?(x=F({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:X0(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:X0(p),dimsDef:m.slice()}];return $h(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:St(iF,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),q7=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:V.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:V.color.shadow}},animationDuration:800},t}(Jt);Ee(q7,$7,!0);var Xdt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=Fz(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var h=i.getItemLayout(u);c?(ma(c),K7(h,c,i,u)):c=Fz(h,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(Kt),Zdt=function(){function e(){}return e}(),$dt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Zdt},t.prototype.buildPath=function(r,n){var a=n.points,i=0;for(r.moveTo(a[i][0],a[i][1]),i++;i<4;i++)r.lineTo(a[i][0],a[i][1]);for(r.closePath();i<a.length;i++)r.moveTo(a[i][0],a[i][1]),i++,r.lineTo(a[i][0],a[i][1])},t}(Et);function Fz(e,t,r,n,a){var i=e.ends,o=new $dt({shape:{points:a?qdt(i,n,e):i}});return K7(e,o,t,r,a),o}function K7(e,t,r,n,a){var i=r.hostModel,o=uf[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");tr(t,s),ye(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function qdt(e,t,r){return j(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var Ed=D;function Kdt(e){var t=Qdt(e);Ed(t,function(r){var n=r.seriesModels;n.length&&(Jdt(r),Ed(n,function(a,i){tpt(a,r.boxOffsetList[i],r.boxWidthList[i])}))})}function Qdt(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=bt(r,a);i<0&&(i=r.length,r[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(n)}),t}function Jdt(e){var t=e.axis,r=e.seriesModels,n=r.length,a=e.boxWidthList=[],i=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Ed(r,function(d){l=Math.max(l,d.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Ed(r,function(d){var p=d.get("boxWidth");Y(p)||(p=[p,p]),o.push([K(p[0],s)||0,K(p[1],s)||0])});var f=s*.8-2,c=f/n*.3,h=(f-c*(n-1))/n,v=h/2-f/2;Ed(r,function(d,p){i.push(v),v+=c+h,a.push(Math.min(Math.max(h,o[p][0]),o[p][1]))})}function tpt(e,t,r){var n=e.coordinateSystem,a=e.getData(),i=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var h=a.get(u,c),v=_(h,f[2],c),d=_(h,f[0],c),p=_(h,f[1],c),g=_(h,f[3],c),y=_(h,f[4],c),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),b(m,d),b(m,y),b(m,v),a.setItemLayout(c,{initBaseline:v[s],ends:m})}function _(x,w,T){var C=a.get(w,T),A=[];A[o]=x,A[s]=C;var M;return isNaN(x)||isNaN(C)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=t),M}function S(x,w,T){var C=w.slice(),A=w.slice();C[o]+=i,A[o]-=i,T?x.push(C,A):x.push(A,C)}function b(x,w){var T=w.slice(),C=w.slice();T[o]-=i,C[o]+=i,x.push(T,C)}}function ept(e,t){t=t||{};for(var r=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Dn(e[o].slice()),l=Cm(s,.25),u=Cm(s,.5),f=Cm(s,.75),c=s[0],h=s[s.length-1],v=(a??1.5)*(f-l),d=i?c:Math.max(c,l-v),p=i?h:Math.min(h,f+v),g=t.itemNameFormatter,y=ft(g)?g({value:o}):Q(g)?g.replace("{value}",o+""):o+"";r.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:r,outliers:n}}var rpt={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Sr){var n="";jt(n)}var a=ept(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function npt(e){e.registerSeriesModel(q7),e.registerChartView(Xdt),e.registerLayout(Kdt),e.registerTransform(rpt)}var apt=["itemStyle","borderColor"],ipt=["itemStyle","borderColor0"],opt=["itemStyle","borderColorDoji"],spt=["itemStyle","color"],lpt=["itemStyle","color0"];function bE(e,t){return t.get(e>0?spt:lpt)}function xE(e,t){return t.get(e===0?opt:e>0?apt:ipt)}var upt={seriesType:"candlestick",plan:Uh(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=bE(s,o),l.stroke=xE(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");F(u,l)}}}}}},fpt=["color","borderColor"],cpt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){ll(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&Yz(u,c))return;var h=Vx(c,f,!0);fe(h,{shape:{points:c.ends}},r,f),Gx(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&Yz(u,v)){i.remove(h);return}h?(Ht(h,{shape:{points:v.ends}},r,f),ma(h)):h=Vx(v),Gx(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),jz(r,this.group);var n=r.get("clip",!0)?vg(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=a.getItemLayout(o),l=Vx(s);Gx(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){jz(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Kt),hpt=function(){function e(){}return e}(),vpt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new hpt},t.prototype.buildPath=function(r,n){var a=n.points;this.__simpleBox?(r.moveTo(a[4][0],a[4][1]),r.lineTo(a[6][0],a[6][1])):(r.moveTo(a[0][0],a[0][1]),r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]),r.lineTo(a[3][0],a[3][1]),r.closePath(),r.moveTo(a[4][0],a[4][1]),r.lineTo(a[5][0],a[5][1]),r.moveTo(a[6][0],a[6][1]),r.lineTo(a[7][0],a[7][1]))},t}(Et);function Vx(e,t,r){var n=e.ends;return new vpt({shape:{points:r?dpt(n,e):n},z2:100})}function Yz(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function Gx(e,t,r,n){var a=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,tr(e,a);var i=t.getItemLayout(r).sign;D(e.states,function(s,l){var u=a.getModel(l),f=bE(i,u),c=xE(i,u)||f,h=s.style||(s.style={});f&&(h.fill=f),c&&(h.stroke=c)});var o=a.getModel("emphasis");ye(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function dpt(e,t){return j(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var ppt=function(){function e(){}return e}(),Hx=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new ppt},t.prototype.buildPath=function(r,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];r.moveTo(o,a[i++]),r.lineTo(o,a[i++])}else i+=3},t}(Et);function jz(e,t,r,n){var a=e.getData(),i=a.getLayout("largePoints"),o=new Hx({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Hx({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Hx({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),Ux(1,o,e),Ux(-1,s,e),Ux(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function Ux(e,t,r,n){var a=xE(e,r)||bE(e,r),i=r.getModel("itemStyle").getItemStyle(fpt);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var Q7=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,a){var i=n.getItemLayout(r);return i&&a.rect(i.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}(Jt);Ee(Q7,$7,!0);function gpt(e){!e||!Y(e.series)||D(e.series,function(t){dt(t)&&t.type==="k"&&(t.type="candlestick")})}var ypt={seriesType:"candlestick",plan:Uh(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=mpt(e,r),a=0,i=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=j(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],f=l[1],c=l[2],h=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?d:v};function v(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(c,y),w=m.get(h,y),T=Math.min(S,b),C=Math.max(S,b),A=N(T,_),M=N(C,_),E=N(x,_),L=N(w,_),R=[];I(R,M,0),I(R,A,1),R.push(B(L),B(M),B(E),B(A));var P=g.getItemModel(y),O=!!P.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Wz(m,y,S,b,f,O),initBaseline:S>b?M[i]:A[i],ends:R,brushRect:k(x,w,_)})}function N(H,U){var X=[];return X[a]=U,X[i]=H,isNaN(U)||isNaN(H)?[NaN,NaN]:t.dataToPoint(X)}function I(H,U,X){var q=U.slice(),st=U.slice();q[a]=Mm(q[a]+n/2,1,!1),st[a]=Mm(st[a]-n/2,1,!0),X?H.push(q,st):H.push(st,q)}function k(H,U,X){var q=N(H,X),st=N(U,X);return q[a]-=n/2,st[a]-=n/2,{x:q[0],y:q[1],width:n,height:st[1]-q[1]}}function B(H){return H[a]=Mm(H[a],1),H}}function d(p,g){for(var y=pi(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var C=w.get(s,x),A=w.get(u,x),M=w.get(f,x),E=w.get(c,x),L=w.get(h,x);if(isNaN(C)||isNaN(E)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=Wz(w,x,A,M,f,T),S[a]=C,S[i]=E,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function Wz(e,t,r,n,a,i){var o;return r>n?o=-1:r<n?o=1:o=i?0:t>0?e.get(a,t-1)<=n?1:-1:1,o}function mpt(e,t){var r=e.getBaseAxis(),n,a=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=K(ot(e.get("barMaxWidth"),a),a),o=K(ot(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?K(s,a):Math.max(Math.min(a/2,i),o)}function _pt(e){e.registerChartView(cpt),e.registerSeriesModel(Q7),e.registerPreprocessor(gpt),e.registerVisual(upt),e.registerLayout(ypt)}function Xz(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var Spt=function(e){G(t,e);function t(r,n){var a=e.call(this)||this,i=new cg(r,n),o=new ht;return a.add(i),a.add(o),a.updateData(r,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,a=r.color,i=r.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Ve(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}Xz(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}Xz(a,r)},t.prototype.highlight=function(){Oo(this)},t.prototype.downplay=function(){Ro(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var a=this,i=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=Yh(r.getItemVisual(n,"symbolSize")),f=r.getItemVisual(n,"style"),c=f&&f.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var v=hf(r.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var d=r.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/r.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=c,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,ye(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(ht),bpt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new hg(Spt)},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},t.prototype.updateTransform=function(r,n,a){var i=r.getData();this.group.dirty();var o=dg("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=oH(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Kt),xpt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Gi(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Jt);function wpt(e){e.registerChartView(bpt),e.registerSeriesModel(xpt),e.registerLayout(dg("effectScatter"))}var J7=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;return i.add(i.createLine(r,n,a)),i._updateEffectSymbol(r,n),i}return t.prototype.createLine=function(r,n,a){return new cE(r,n,a)},t.prototype._updateEffectSymbol=function(r,n){var a=r.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Y(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=Ve(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,i,n))},t.prototype._updateEffectAnimation=function(r,n,a){var i=this.childAt(1);if(i){var o=r.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=yr(n.get("delay"),function(v){return v/r.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;ft(c)?h=c(a):h=c,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,a,i,o){if(n>0){r.__t=0;var s=this,l=r.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(r)});i||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return so(r.__p1,r.__cp1)+so(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,a=r.__p2,i=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=dr,f=FC;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=r.__t<1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),h=r.__t<1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);r.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=so(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*so(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var a=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,a,n)},t}(ht),t9=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createPolyline(r,n,a),i}return t.prototype._createPolyline=function(r,n,a){var i=r.getItemLayout(n),o=new _r({shape:{points:i}});this.add(o),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};Ht(o,s,i,n),this._updateCommonStl(r,n,a)},t.prototype._updateCommonStl=function(r,n,a){var i=this.childAt(0),o=r.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||r.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(r.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,ye(this,l,u,f)},t.prototype.updateLayout=function(r,n){var a=this.childAt(0);a.setShape("points",r.getItemLayout(n))},t}(ht),Tpt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,a){return new t9(r,n,a)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=so(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<1?r.__t:2-r.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],h=a[l+1];r.x=c[0]*(1-f)+f*h[0],r.y=c[1]*(1-f)+f*h[1];var v=r.__t<1?h[0]-c[0]:c[0]-h[0],d=r.__t<1?h[1]-c[1]:c[1]-h[1];r.rotation=-Math.atan2(d,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(J7),Cpt=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Apt=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:V.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Cpt},t.prototype.buildPath=function(r,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){r.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)r.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],h=a[o++];if(r.moveTo(u,f),i>0){var v=(u+c)/2-(f-h)*i,d=(f+h)/2-(c-u)*i;r.quadraticCurveTo(v,d,c,h)}else r.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],h=i[u++],v=1;v<f;v++){var d=i[u++],p=i[u++];if(ss(c,h,d,p,s,r,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],h=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(c+d)/2-(h-p)*o,y=(h+p)/2-(d-c)*o;if(tU(c,h,g,y,d,p,s,r,n))return l}else if(ss(c,h,d,p,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}r=this._rect=new yt(i,o,s,l)}return r},t}(Et),Mpt=function(){function e(){this.group=new ht}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],a=r.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Apt({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=r.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=mt(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),e9={seriesType:"lines",plan:Uh(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(r){for(var u=0,f=a.start;f<a.end;f++)u+=e.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],f=a.start;f<a.end;f++){var v=e.getLineCoords(f,o);r&&(s[c++]=v);for(var d=0;d<v;d++)h=t.dataToPoint(o[d],!1,h),s[c++]=h[0],s[c++]=h[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),v=e.getLineCoords(f,o),g=[];if(r)for(var y=0;y<v;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}},Dpt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=a.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=r.get("clip",!0)&&vg(r.coordinateSystem,!1,r);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,a){var i=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=e9.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(r,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new Mpt:new hE(o?i?Tpt:t9:i?J7:cE),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Kt),Lpt=typeof Uint32Array>"u"?Array:Uint32Array,Ept=typeof Float64Array>"u"?Array:Float64Array;function Zz(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=j(t,function(r){var n=[r[0].coord,r[1].coord],a={coords:n};return r[0].name&&(a.fromName=r[0].name),r[1].name&&(a.toName=r[1].name),TS([a,r[0],r[1]])}))}var Opt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],Zz(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(Zz(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=qc(this._flatCoords,n.flatCoords),this._flatCoordsOffset=qc(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[r*2],i=this._flatCoordsOffset[r*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Bt(r[0])){for(var a=r.length,i=new Lpt(a),o=new Ept(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=r[f++];i[l++]=s+n,i[l++]=c;for(var h=0;h<c;h++){var v=r[f++],d=r[f++];o[s++]=v,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var a=new Hr(["value"],this);return a.hasItemOption=!1,a.initData(r.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),je("nameValue",{name:f.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Jt);function Py(e){return e instanceof Array||(e=[e,e]),e}var Rpt={seriesType:"lines",reset:function(e){var t=Py(e.get("symbol")),r=Py(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function a(i,o){var s=i.getItemModel(o),l=Py(s.getShallow("symbol",!0)),u=Py(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};function Ipt(e){e.registerChartView(Dpt),e.registerSeriesModel(Opt),e.registerLayout(e9),e.registerVisual(Rpt)}var Ppt=256,Npt=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=cn.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=r,c.height=n;for(var d=0;d<v;++d){var p=t[d],g=p[0],y=p[1],m=p[2],_=a(m);h.globalAlpha=_,h.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,x=0,w=b.length,T=this.minOpacity,C=this.maxOpacity,A=C-T;x<w;){var _=b[x+3]/256,M=Math.floor(_*(Ppt-1))*4;if(_>0){var E=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=E[M],b[x++]=E[M+1],b[x++]=E[M+2],b[x++]=E[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=cn.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=V.color.neutral99,a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,a=n[r]||(n[r]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();function kpt(e,t,r){var n=e[1]-e[0];t=j(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&r[s]}}function zpt(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function $z(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Bpt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(r,a,0,r.getData().count()):$z(o)&&this._renderOnGeo(o,r,i,a)},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&($z(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){ll(this._progressiveEls||this.group,r)},t.prototype._renderOnGridLike=function(r,n,a,i,o){var s=r.coordinateSystem,l=Zs(s,"cartesian2d"),u=Zs(s,"matrix"),f,c,h,v;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,c=p.getBandWidth()+.5,h=d.scale.getExtent(),v=p.scale.getExtent()}for(var g=this.group,y=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),_=r.getModel(["blur","itemStyle"]).getItemStyle(),S=r.getModel(["select","itemStyle"]).getItemStyle(),b=r.get(["itemStyle","borderRadius"]),x=er(r),w=r.getModel("emphasis"),T=w.get("focus"),C=w.get("blurScope"),A=w.get("disabled"),M=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],E=a;E<i;E++){var L=void 0,R=y.getItemVisual(E,"style");if(l){var P=y.get(M[0],E),O=y.get(M[1],E);if(isNaN(y.get(M[2],E))||isNaN(P)||isNaN(O)||P<h[0]||P>h[1]||O<v[0]||O>v[1])continue;var N=s.dataToPoint([P,O]);L=new Ct({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:R})}else if(u){var I=s.dataToLayout([y.get(M[0],E),y.get(M[1],E)]).rect;if(Dr(I.x))continue;L=new Ct({z2:1,shape:I,style:R})}else{if(isNaN(y.get(M[1],E)))continue;var k=s.dataToLayout([y.get(M[0],E)]),I=k.contentRect||k.rect;if(Dr(I.x)||Dr(I.y))continue;L=new Ct({z2:1,shape:I,style:R})}if(y.hasItemOption){var B=y.getItemModel(E),H=B.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=B.getModel(["blur","itemStyle"]).getItemStyle(),S=B.getModel(["select","itemStyle"]).getItemStyle(),b=B.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),A=H.get("disabled"),x=er(B)}L.shape.r=b;var U=r.getRawValue(E),X="-";U&&U[2]!=null&&(X=U[2]+""),ur(L,x,{labelFetcher:r,labelDataIndex:E,defaultOpacity:R.opacity,defaultText:X}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,ye(L,T,C,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(E,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(r,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Npt;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=r.getViewRect().clone(),c=r.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-h,y=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var A=r.dataToPoint([w,T]);return A[0]-=h,A[1]-=v,A.push(C),A}),S=a.getExtent(),b=a.type==="visualMap.continuous"?zpt(S,a.option.range):kpt(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new cr({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Kt),Vpt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Gi(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Hh.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:V.color.primary}}},t}(Jt);function Gpt(e){e.registerChartView(Bpt),e.registerSeriesModel(Vpt)}var Hpt=["itemStyle","borderWidth"],qz=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Fx=new Vi,Upt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:qz[+f],categoryDim:qz[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=Qz(o,d),g=Kz(o,d,p,h),y=Jz(o,h,g);o.setItemGraphicEl(d,y),i.add(y),eB(y,h,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=Qz(o,d),m=Kz(o,d,y,h),_=s9(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?$pt(g,h,m):g=Jz(o,h,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),eB(g,h,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&tB(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var v=r.get("clip",!0)?vg(r.coordinateSystem,!1,r):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){tB(i,mt(o).dataIndex,r,o)}):a.removeAll()},t.type="pictorialBar",t}(Kt);function Kz(e,t,r,n){var a=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=r.get("symbolPatternSize")||2,c=r.isAnimationEnabled(),h={dataIndex:t,layout:a,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?r:null,hoverScale:c&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};Fpt(r,i,a,n,h),Ypt(e,t,a,i,o,h.boundingLength,h.pxSign,f,n,h),jpt(r,h.symbolScale,u,n,h);var v=h.symbolSize,d=hf(r.get("symbolOffset"),v);return Wpt(r,v,a,i,o,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function Fpt(e,t,r,n,a){var i=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),f;if(Y(o)){var c=[Yx(s,o[0])-l,Yx(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=Yx(s,o)-l:t?f=n.coordSysExtent[i.index][u]-l:f=r[i.wh];a.boundingLength=f,t&&(a.repeatCutLength=r[i.wh]);var h=i.xy==="x",v=s.inverse;a.pxSign=h&&!v||!h&&v?f>=0?1:-1:f>0?1:-1}function Yx(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Ypt(e,t,r,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(r[c.wh]),v=e.getItemVisual(t,"symbolSize"),d;Y(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[c.index]=K(d[c.index],h),d[f.index]=K(d[f.index],n?h:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function jpt(e,t,r,n,a){var i=e.get(Hpt)||0;i&&(Fx.attr({scaleX:t[0],scaleY:t[1],rotation:r}),Fx.updateTransform(),i/=Fx.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function Wpt(e,t,r,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,d=c.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(n){var y=Math.abs(l),m=yr(e.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=K(m,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=R2(n),T=w?n:rB((y+x)/b),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(T=u?rB((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=d*(g/2),M=c.pathPosition=[];M[h.index]=r[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var E=c.bundlePosition=[];E[h.index]=r[h.xy],E[v.index]=r[v.xy];var L=c.barRectShape=F({},r);L[v.wh]=d*Math.max(Math.abs(r[v.wh]),Math.abs(M[v.index]+A)),L[h.wh]=r[h.wh];var R=c.clipShape={};R[h.xy]=-r[h.xy],R[h.wh]=f.ecSize[h.wh],R[v.xy]=0,R[v.wh]=r[v.wh]}function r9(e){var t=e.symbolPatternSize,r=Ve(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function n9(e,t,r,n){var a=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+r.symbolMargin*2;for(wE(e,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?kc(p,null,d(f),r,n):kc(p,null,{scaleX:0,scaleY:0},r,n,function(){a.remove(p)}),f++});f<u;f++){var h=r9(r);h.__pictorialAnimationIndex=f,h.__pictorialRepeatTimes=u,a.add(h);var v=d(f);kc(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},r,n)}function d(p){var g=s.slice(),y=r.pxSign,m=p;return(r.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function a9(e,t,r,n){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?kc(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=e.__pictorialMainPath=r9(r),a.add(i),kc(i,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function i9(e,t,r){var n=F({},t.barRectShape),a=e.__pictorialBarRect;a?kc(a,null,{shape:n},t,r):(a=e.__pictorialBarRect=new Ct({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function o9(e,t,r,n){if(r.symbolClip){var a=e.__pictorialClipPath,i=F({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(a)Ht(a,{shape:i},s,l);else{i[o.wh]=0,a=new Ct({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],uf[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Qz(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=Xpt,r.isAnimationEnabled=Zpt,r}function Xpt(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Zpt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Jz(e,t,r,n){var a=new ht,i=new ht;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?n9(a,t,r):a9(a,t,r),i9(a,r,n),o9(a,t,r,n),a.__pictorialShapeStr=s9(e,r),a.__pictorialSymbolMeta=r,a}function $pt(e,t,r){var n=r.animationModel,a=r.dataIndex,i=e.__pictorialBundle;Ht(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?n9(e,t,r,!0):a9(e,t,r,!0),i9(e,r,!0),o9(e,t,r,!0)}function tB(e,t,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];wE(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(i,function(o){Xs(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function s9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function wE(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function kc(e,t,r,n,a,i){t&&e.attr(t),n.symbolClip&&!a?r&&e.attr(r):r&&uf[a?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,i)}function eB(e,t,r){var n=r.dataIndex,a=r.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");wE(e,function(p){if(p instanceof cr){var g=p.style;p.useStyle(F({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else p.useStyle(r.style);var y=p.ensureState("emphasis");y.style=o,h&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=r.z2});var v=t.valueDim.posDesc[+(r.boundingLength>0)],d=e.__pictorialBarRect;d.ignoreClip=!0,ur(d,er(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:sh(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:v}),ye(e,f,c,i.get("disabled"))}function rB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var qpt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ul(yp.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:V.color.primary}}}),t}(yp);function Kpt(e){e.registerChartView(Upt),e.registerSeriesModel(qpt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,St(M6,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D6("pictorialBar"))}var Qpt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function h(g){return g.name}var v=new Io(this._layersSeries||[],l,h,h),d=[];v.add(J(p,this,"add")).update(J(p,this,"update")).remove(J(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;T<w.length;T++){var C=i.getItemLayout(w[T]),A=C.x,M=C.y0,E=C.y;S.push(A,M),b.push(A,M+E),x=i.getItemVisual(w[T],"style")}var L,R=i.getItemLayout(w[0]),P=r.getModel("label"),O=P.get("margin"),N=r.getModel("emphasis");if(g==="add"){var I=d[y]=new ht;L=new m8({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),I.add(L),s.add(I),r.isAnimationEnabled()&&L.setClipPath(Jpt(L.getBoundingRect(),r,function(){L.removeClipPath()}))}else{var I=_[m];L=I.childAt(0),s.add(I),d[y]=I,Ht(L,{shape:{points:S,stackedOnPoints:b}},r),ma(L)}ur(L,er(r),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var k=L.getTextContent();k&&(k.x=R.x-O,k.y=R.y0+R.y/2),L.useStyle(x),i.setItemGraphicEl(y,L),tr(L,r),ye(L,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=d},t.type="themeRiver",t}(Kt);function Jpt(e,t,r){var n=new Ct({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return fe(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var jx=2,tgt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new qh(J(this.getData,this),J(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,a={},i=iA(r,function(h){return a.hasOwnProperty(h[0]+"")||(a[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,v){o.push({name:v,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var c=o[l].dataList[f][0]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,r[n]=[c,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var a=this.getReferringComponents("singleAxis",Me).models[0],i=a.get("type"),o=Ft(r.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=it(),f=0,c=0;c<s.length;++c)l.push(s[c][jx]),u.get(s[c][jx])||(u.set(s[c][jx],f),f++);var h=jh(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:X0(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Hr(h,this);return v.initData(s),v},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),a=[],i=0;i<n;++i)a[i]=i;var o=r.mapDimension("single"),s=iA(a,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,h){return r.get(o,c)-r.get(o,h)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,a){Y(r)||(r=r?[r]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,h=-1,v=o[f].indices.length,d=0;d<v;++d){var p=i.get(r[0],o[f].indices[d]),g=Math.abs(p-n);g<=c&&(u=p,c=g,h=o[f].indices[d])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getName(r),s=i.get(i.mapDimension("value"),r);return je("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Jt);function egt(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),a=r.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=r.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=K(s[0],o.height),s[1]=K(s[1],o.height);var u=o.height-s[0]-s[1];nB(n,r,u)}else{s[0]=K(s[0],o.width),s[1]=K(s[1],o.width);var f=o.width-s[0]-s[1];nB(n,r,f)}n.setLayout("layoutInfo",i)})}function nB(e,t,r){if(e.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=j(a,function(g){return j(g.indices,function(y){var m=n.dataToPoint(e.get(i,y));return m[1]=e.get(o,y),m})}),l=rgt(s),u=l.y0,f=r/l.max,c=a.length,h=a[0].indices.length,v,d=0;d<h;++d){v=u[d]*f,e.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:v,y:s[0][d][1]*f});for(var p=1;p<c;++p)v+=s[p-1][d][1]*f,e.setItemLayout(a[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:v,y:s[p][d][1]*f})}}function rgt(e){for(var t=e.length,r=e[0].length,n=[],a=[],i=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<r;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<r;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function ngt(e){e.registerChartView(Qpt),e.registerSeriesModel(tgt),e.registerLayout(egt),e.registerProcessor(Zh("themeRiver"))}var agt=2,igt=4,aB=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this)||this;o.z2=agt,o.textConfig={inside:!0},mt(o).seriesIndex=n.seriesIndex;var s=new zt({z2:igt,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return t.prototype.updateData=function(r,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;mt(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=F({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=ah(v,o));var d=yi(l.getModel("itemStyle"),c,!0);F(c,d),D(Qr,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=yi(S,c);b&&(_.shape=b)}),r?(s.setShape(c),s.shape.r=f.r0,fe(s,{shape:{r:f.r}},a,n.dataIndex)):(Ht(s,{shape:c},a),ma(s)),s.useStyle(h),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?qc(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;ye(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,h=c.getTextContent(),v=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);h.ignore=!p,D(np,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?h:h.ensureState(y),b=r.getFormattedLabel(v,y);_&&(b=b||n.node.name),S.style=ee(m,{},null,y!=="normal",!0),b&&(S.style.text=b);var x=m.get("show");x!=null&&!_&&(S.ignore=!x);var w=g(m,"position"),T=_?c:c.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var A,M=g(m,"distance")||0,E=g(m,"align"),L=g(m,"rotate"),R=Math.PI*.5,P=Math.PI*1.5,O=Ln(L==="tangential"?Math.PI/2-l:l),N=O>R&&!Jc(O-R)&&O<P;w==="outside"?(A=o.r+M,E=N?"right":"left"):!E||E==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,E="center"):E==="left"?(A=o.r0+M,E=N?"right":"left"):E==="right"&&(A=o.r-M,E=N?"left":"right"),S.style.align=E,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*f+o.cy;var I=0;L==="radial"?I=Ln(-l)+(N?Math.PI:0):L==="tangential"?I=Ln(Math.PI/2-l)+(N?Math.PI:0):Bt(L)&&(I=L*Math.PI/180),S.rotation=Ln(I)});function g(y,m){var _=y.get(m);return _??i.get(m)}h.dirtyStyle()},t}(Rr),bM="sunburstRootToNode",iB="sunburstHighlight",ogt="sunburstUnhighlight";function sgt(e){e.registerAction({type:bM,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=_p(t,[bM],a);if(o){var s=a.getViewRoot();s&&(t.direction=oE(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:iB,update:"none"},function(t,r,n){t=F({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=_p(t,[iB],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(F(t,{type:"highlight"}))}),e.registerAction({type:ogt,update:"updateView"},function(t,r,n){t=F({},t),n.dispatchAction(F(t,{type:"downplay"}))})}var lgt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){var o=this;this.seriesModel=r,this.api=a,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),f=this.group,c=r.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var v=this._oldChildren||[];d(h,v),y(l,u),this._initEvents(),this._oldChildren=h;function d(m,_){if(m.length===0&&_.length===0)return;new Io(_,m,S,S).add(b).update(b).remove(St(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];p(T,C)}}function p(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,r,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new aB(m,r,n,a);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,r,n,a):(o.virtualPiece=new aB(m,r,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=r.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";z0(u,f)}}a=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:bM,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Kt),ugt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};l9(a);var i=this._levelModels=j(r.levels||[],function(l){return new Lt(l,this,n)},this),o=iE.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=i[c.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=r1(a,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){h7(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Jt);function l9(e){var t=0;D(e.children,function(n){l9(n);var a=n.value;Y(a)&&(a=a[0]),t+=a});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}var oB=Math.PI/180;function fgt(e,t,r){t.eachSeriesByType(e,function(n){var a=n.get("center"),i=n.get("radius");Y(i)||(i=[0,i]),Y(a)||(a=[a,a]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=K(a[0],o),f=K(a[1],s),c=K(i[0],l/2),h=K(i[1],l/2),v=-n.get("startAngle")*oB,d=n.get("minAngle")*oB,p=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&u9(g,m);var _=0;D(g.children,function(O){!isNaN(O.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(h-c)/(w||1),C=n.get("clockwise"),A=n.get("stillShowZeroSum"),M=C?1:-1,E=function(O,N){if(O){var I=N;if(O!==p){var k=O.getValue(),B=S===0&&A?b:k*b;B<d&&(B=d),I=N+M*B;var H=O.depth-y-(x?-1:1),U=c+T*H,X=c+T*(H+1),q=n.getLevelModel(O);if(q){var st=q.get("r0",!0),Dt=q.get("r",!0),lt=q.get("radius",!0);lt!=null&&(st=lt[0],Dt=lt[1]),st!=null&&(U=K(st,l/2)),Dt!=null&&(X=K(Dt,l/2))}O.setLayout({angle:B,startAngle:N,endAngle:I,clockwise:C,cx:u,cy:f,r0:U,r:X})}if(O.children&&O.children.length){var rt=0;D(O.children,function(et){rt+=E(et,N+rt)})}return I-N}};if(x){var L=c,R=c+T,P=Math.PI*2;p.setLayout({angle:P,startAngle:v,endAngle:v+P,clockwise:C,cx:u,cy:f,r0:L,r:R})}E(g,v)})}function u9(e,t){var r=e.children||[];e.children=cgt(r,t),r.length&&D(e.children,function(n){u9(n,t)})}function cgt(e,t){if(ft(t)){var r=j(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return r.sort(function(a,i){return t(a.params,i.params)}),j(r,function(a){return e[a.index]})}else{var n=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function hgt(e){var t={};function r(n,a,i){if(n.depth===0)return V.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&Q(s)&&(s=w0(s,(n.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");F(u,l)})})}function vgt(e){e.registerChartView(lgt),e.registerSeriesModel(ugt),e.registerLayout(St(fgt,"sunburst")),e.registerProcessor(St(Zh,"sunburst")),e.registerVisual(hgt),sgt(e)}var sB={color:"fill",borderColor:"stroke"},dgt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},bo=Mt(),pgt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Gi(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=bo(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Jt);function ggt(e,t){return t=t||[0,0],j(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function ygt(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:J(ggt,e)}}}function mgt(e,t){return t=t||[0,0],j([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function _gt(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:J(mgt,e)}}}function Sgt(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function bgt(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:J(Sgt,e)}}}function xgt(e,t){return t=t||[0,0],j(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function wgt(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:J(xgt,e)}}}function Tgt(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)},layout:function(n,a){return e.dataToLayout(n,a)}}}}function Cgt(e){var t=e.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r,n){return e.dataToPoint(r,n)},layout:function(r,n){return e.dataToLayout(r,n)}}}}function f9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||nt(e,"text")))}function c9(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},nt(n,"text")&&(o.text=n.text),nt(n,"rich")&&(o.rich=n.rich),nt(n,"textFill")&&(o.fill=n.textFill),nt(n,"textStroke")&&(o.stroke=n.textStroke),nt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),nt(n,"fontSize")&&(o.fontSize=n.fontSize),nt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),nt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=nt(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),nt(n,"textPosition")&&(a.position=n.textPosition),nt(n,"textOffset")&&(a.offset=n.textOffset),nt(n,"textRotation")&&(a.rotation=n.textRotation),nt(n,"textDistance")&&(a.distance=n.textDistance)}return lB(o,e),D(o.rich,function(l){lB(l,l)}),{textConfig:a,textContent:i}}function lB(e,t){t&&(t.font=t.textFont||t.font,nt(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),nt(t,"textAlign")&&(e.align=t.textAlign),nt(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),nt(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),nt(t,"textWidth")&&(e.width=t.textWidth),nt(t,"textHeight")&&(e.height=t.textHeight),nt(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),nt(t,"textPadding")&&(e.padding=t.textPadding),nt(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),nt(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),nt(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),nt(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),nt(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),nt(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),nt(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function uB(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=e.fill||V.color.neutral99;fB(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||V.color.neutral00,!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||V.color.neutral00),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){fB(s,s)}),n}function fB(e,t){t&&(nt(t,"fill")&&(e.textFill=t.fill),nt(t,"stroke")&&(e.textStroke=t.fill),nt(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),nt(t,"font")&&(e.font=t.font),nt(t,"fontStyle")&&(e.fontStyle=t.fontStyle),nt(t,"fontWeight")&&(e.fontWeight=t.fontWeight),nt(t,"fontSize")&&(e.fontSize=t.fontSize),nt(t,"fontFamily")&&(e.fontFamily=t.fontFamily),nt(t,"align")&&(e.textAlign=t.align),nt(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),nt(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),nt(t,"width")&&(e.textWidth=t.width),nt(t,"height")&&(e.textHeight=t.height),nt(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),nt(t,"padding")&&(e.textPadding=t.padding),nt(t,"borderColor")&&(e.textBorderColor=t.borderColor),nt(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),nt(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),nt(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),nt(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),nt(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),nt(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),nt(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),nt(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),nt(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),nt(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var h9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},cB=Nt(h9);pa(Oi,function(e,t){return e[t]=1,e},{});Oi.join(", ");var c_=["","style","shape","extra"],ch=Mt();function TE(e,t,r,n,a){var i=e+"Animation",o=kh(e,n,a)||{},s=ch(t).userDuring;return o.duration>0&&(o.during=s?J(Egt,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),F(o,r[i]),o}function Nm(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=ch(e),u=t.style;l.userDuring=t.during;var f={},c={};if(Rgt(e,t,c),e.type==="compound")for(var h=e.shape.paths,v=t.shape.paths,d=0;d<v.length;d++){var p=v[d];Wx("shape",p,h[d])}else Wx("shape",t,c),Wx("extra",t,c);if(!i&&s&&(Ogt(e,t,f),hB("shape",e,t,f),hB("extra",e,t,f),Igt(e,t,u,f)),c.style=u,Agt(e,c,o),Dgt(e,t),s)if(i){var g={};D(c_,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),F(m?g[m]:g,_.enterFrom))});var y=TE("enter",e,t,r,a);y.duration>0&&e.animateFrom(g,y)}else Mgt(e,t,a||0,r,f);v9(e,t),u?e.dirty():e.markRedraw()}function v9(e,t){for(var r=ch(e).leaveToProps,n=0;n<c_.length;n++){var a=c_[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=ch(e).leaveToProps={}),a&&(r[a]=r[a]||{}),F(a?r[a]:r,i.leaveTo))}}function i1(e,t,r,n){if(e){var a=e.parent,i=ch(e).leaveToProps;if(i){var o=TE("update",e,t,r,0);o.done=function(){a&&a.remove(e)},e.animateTo(i,o)}else a&&a.remove(e)}}function _u(e){return e==="all"}function Agt(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function Mgt(e,t,r,n,a){if(a){var i=TE("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function Dgt(e,t){nt(t,"silent")&&(e.silent=t.silent),nt(t,"ignore")&&(e.ignore=t.ignore),e instanceof ya&&nt(t,"invisible")&&(e.invisible=t.invisible),e instanceof Et&&nt(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var ai={},Lgt={setTransform:function(e,t){return ai.el[e]=t,this},getTransform:function(e){return ai.el[e]},setShape:function(e,t){var r=ai.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=ai.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=ai.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=ai.el.style;if(t)return t[e]},setExtra:function(e,t){var r=ai.el.extra||(ai.el.extra={});return r[e]=t,this},getExtra:function(e){var t=ai.el.extra;if(t)return t[e]}};function Egt(){var e=this,t=e.el;if(t){var r=ch(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}ai.el=t,n(Lgt)}}function hB(e,t,r,n){var a=r[e];if(a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),_u(l))F(o,i);else for(var u=ne(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(_u(s)||bt(s,e)>=0){!o&&(o=n[e]={});for(var v=Nt(i),f=0;f<v.length;f++){var c=v[f],h=i[c];Pgt(a[c],h)&&(o[c]=h)}}}}}function Wx(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=Nt(n),o=0;o<i.length;o++){var s=i[o];a[s]=wd(n[s])}}function Ogt(e,t,r){for(var n=t.transition,a=_u(n)?Oi:ne(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function Rgt(e,t,r){for(var n=0;n<cB.length;n++){var a=cB[n],i=h9[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<Oi.length;n++){var s=Oi[n];t[s]!=null&&(r[s]=t[s])}}function Igt(e,t,r,n){if(r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!_u(o)){var l=ne(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(e.getAnimationStyleProps&&(_u(s)||_u(o)||bt(s,"style")>=0)){var h=e.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=n.style={});for(var d=Nt(r),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=a[f];i[f]=c}}}}}}}function Pgt(e,t){return Er(e)?e!==t:e!=null&&isFinite(e)}var d9=Mt(),Ngt=["percent","easing","shape","style","extra"];function p9(e){e.stopAnimation("keyframe"),e.attr(d9(e))}function h_(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(Y(t)){D(t,function(s){h_(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=kh("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=d9(e);D(c_,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),D(n,function(u){var f=e.animators,c=s?u[s]:u;if(c){var h=Nt(c);if(s||(h=Ft(h,function(p){return bt(Ngt,p)<0})),!!h.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;D(h,function(p){d[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*u.percent,c,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var xo="emphasis",bs="normal",CE="blur",AE="select",Ks=[bs,xo,CE,AE],Xx={normal:["itemStyle"],emphasis:[xo,"itemStyle"],blur:[CE,"itemStyle"],select:[AE,"itemStyle"]},Zx={normal:["label"],emphasis:[xo,"label"],blur:[CE,"label"],select:[AE,"label"]},kgt=["x","y"],zgt="e\0\0",jn={normal:{},emphasis:{},blur:{},select:{}},Bgt={cartesian2d:ygt,geo:_gt,single:bgt,polar:wgt,calendar:Tgt,matrix:Cgt};function xM(e){return e instanceof Et}function wM(e){return e instanceof ya}function Vgt(e,t){t.copyTransform(e),wM(t)&&wM(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,xM(t)&&xM(e)&&t.setShape(e.shape))}var Ggt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=vB(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){$x(a,null,c,u(c,i),r,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&i1(h,bo(h).option,r)}).update(function(c,h){var v=o.getItemGraphicEl(h);$x(a,v,c,u(c,i),r,l,s)}).execute();var f=r.get("clip",!0)?vg(r.coordinateSystem,!1,r):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=vB(n,s,a,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=r.start;c<r.end;c++){var h=$x(null,null,c,l(c,o),n,this.group,s);h&&(h.traverse(f),u.push(h))}},t.prototype.eachRendered=function(r){ll(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(Kt);function ME(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=m9(n);r=eh(i,null,a,n.layout||"center"),bo(r).customPathData=i}else if(t==="image")r=new cr({}),bo(r).customImagePath=e.style.image;else if(t==="text")r=new zt({});else if(t==="group")r=new ht;else if(t==="compoundPath"){var n=e.shape;if(!n||!n.paths){var o="";jt(o)}var s=j(n.paths,function(f){if(f.type==="path")return eh(f.shape.pathData,f,null);var c=ip(f.type);if(!c){var h="";jt(h)}return new c});r=new ig({shape:{paths:s}})}else{var l=ip(t);if(!l){var o="";jt(o)}r=new l}return bo(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function DE(e,t,r,n,a,i,o){p9(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=kgt);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;nt(u,"textFill")&&(u.fill=u.textFill),nt(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=xM(t)?l.decal:null;e&&c&&(c.dirty=!0,f=ah(c,e)),l.__decalPattern=f}if(wM(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}Nm(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),h_(t,n.keyframeAnimation,i)}function g9(e,t,r,n,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(n===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Nu(i)}}function Hgt(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Ks.length;s++)Ugt(n,t,Ks[s])}}function Ugt(e,t,r){var n=r===bs,a=n?t:v_(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function vB(e,t,r,n){var a=e.get("renderItem");if(typeof a=="string"){var i=Nit(a);i&&(a=i)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):Bgt[o.type](o));for(var l=vt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:b,style:w,ordinalRawValue:x,styleEmphasis:T,visual:M,barLayout:E,currentSeriesIndices:L,font:R},s.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:Fgt(e.getData()),itemPayload:e.get("itemPayload")||{}},f,c,h={},v={},d={},p={},g=0;g<Ks.length;g++){var y=Ks[g];d[y]=e.getModel(Xx[y]),p[y]=e.getModel(Zx[y])}function m(P){return P===f?c||(c=t.getItemModel(P)):t.getItemModel(P)}function _(P,O){return t.hasItemOption?P===f?h[O]||(h[O]=m(P).getModel(Xx[O])):m(P).getModel(Xx[O]):d[O]}function S(P,O){return t.hasItemOption?P===f?v[O]||(v[O]=m(P).getModel(Zx[O])):m(P).getModel(Zx[O]):p[O]}return function(P,O){return f=P,c=null,h={},v={},a&&a(vt({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:O?O.type:null},u),l)};function b(P,O){return O==null&&(O=f),t.getStore().get(t.getDimensionIndex(P||0),O)}function x(P,O){O==null&&(O=f),P=P||0;var N=t.getDimensionInfo(P);if(!N){var I=t.getDimensionIndex(P);return I>=0?t.getStore().get(I,O):void 0}var k=t.get(N.name,O),B=N&&N.ordinalMeta;return B?B.categories[k]:k}function w(P,O){O==null&&(O=f);var N=t.getItemVisual(O,"style"),I=N&&N.fill,k=N&&N.opacity,B=_(O,bs).getItemStyle();I!=null&&(B.fill=I),k!=null&&(B.opacity=k);var H={inheritColor:Q(I)?I:V.color.neutral99},U=S(O,bs),X=ee(U,null,H,!1,!0);X.text=U.getShallow("show")?ot(e.getFormattedLabel(O,bs),sh(t,O)):null;var q=P0(U,H,!1);return A(P,B),B=uB(B,X,q),P&&C(B,P),B.legacy=!0,B}function T(P,O){O==null&&(O=f);var N=_(O,xo).getItemStyle(),I=S(O,xo),k=ee(I,null,null,!0,!0);k.text=I.getShallow("show")?un(e.getFormattedLabel(O,xo),e.getFormattedLabel(O,bs),sh(t,O)):null;var B=P0(I,null,!0);return A(P,N),N=uB(N,k,B),P&&C(N,P),N.legacy=!0,N}function C(P,O){for(var N in O)nt(O,N)&&(P[N]=O[N])}function A(P,O){P&&(P.textFill&&(O.textFill=P.textFill),P.textPosition&&(O.textPosition=P.textPosition))}function M(P,O){if(O==null&&(O=f),nt(sB,P)){var N=t.getItemVisual(O,"style");return N?N[sB[P]]:null}if(nt(dgt,P))return t.getItemVisual(O,P)}function E(P){if(o.type==="cartesian2d"){var O=o.getBaseAxis();return Bot(vt({axis:O},P))}}function L(){return r.getCurrentSeriesIndices()}function R(P){return Q2(P,r)}}function Fgt(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function $x(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=LE(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&ye(s,n.focus,n.blurScope,n.emphasisDisabled),s}function LE(e,t,r,n,a,i){var o=-1,s=t;t&&y9(t,n,a)&&(o=bt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=ME(n),s&&Vgt(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),jn.normal.cfg=jn.normal.conOpt=jn.emphasis.cfg=jn.emphasis.conOpt=jn.blur.cfg=jn.blur.conOpt=jn.select.cfg=jn.select.conOpt=null,jn.isLegacy=!1,jgt(u,r,n,a,l,jn),Ygt(u,r,n,a,l),DE(e,u,r,n,jn,a,l),nt(n,"info")&&(bo(u).info=n.info);for(var f=0;f<Ks.length;f++){var c=Ks[f];if(c!==bs){var h=v_(n,c),v=EE(n,h,c);g9(c,u,h,v,jn)}}return Hgt(u,n,a),n.type==="group"&&Wgt(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function y9(e,t,r){var n=bo(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&qgt(i)&&m9(i)!==n.customPathData||a==="image"&&nt(o,"image")&&o.image!==n.customImagePath}function Ygt(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&y9(o,i,n)&&(o=null),o||(o=ME(i),e.setClipPath(o)),DE(null,o,t,i,null,n,a)}}function jgt(e,t,r,n,a,i){if(!(e.isGroup||e.type==="compoundPath")){dB(r,null,i),dB(r,xo,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=e.getTextContent();if(o===!1)f&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=ME(o),e.setTextContent(f)),DE(null,f,t,o,null,n,a);for(var c=o&&o.style,h=0;h<Ks.length;h++){var v=Ks[h];if(v!==bs){var d=i[v].conOpt;g9(v,f,d,EE(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function dB(e,t,r){var n=t?v_(e,t):e,a=t?EE(e,n,xo):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?v_(s,t):s:null;if(a&&(r.isLegacy||f9(a,i,!!o,!!l))){r.isLegacy=!0;var u=c9(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?r[t]:r.normal;c.cfg=o,c.conOpt=l}function v_(e,t){return t?e?e[t]:null:e}function EE(e,t,r){var n=t&&t.style;return n==null&&r===xo&&e&&(n=e.styleEmphasis),n}function Wgt(e,t,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Zgt({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],h=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),LE(e,h,r,c,a,t)):h.ignore=!0}for(var v=t.childCount()-1;v>=f;v--){var d=t.childAt(v);Xgt(t,d,a)}}}function Xgt(e,t,r){t&&i1(t,bo(e).option,r)}function Zgt(e){new Io(e.oldChildren,e.newChildren,pB,pB,e).add(gB).update(gB).remove($gt).execute()}function pB(e,t){var r=e&&e.name;return r??zgt+t}function gB(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;LE(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function $gt(e){var t=this.context,r=t.oldChildren[e];r&&i1(r,bo(r).option,t.seriesModel)}function m9(e){return e&&(e.pathData||e.d)}function qgt(e){return e&&(nt(e,"pathData")||nt(e,"d"))}function Kgt(e){e.registerChartView(Ggt),e.registerSeriesModel(pgt)}var ru=Mt(),yB=ct,qx=J,OE=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new ht,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=St(mB,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}SB(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=QL(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=ru(t).pointerEl=new uf[i.type](yB(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=ru(t).labelEl=new zt(yB(r.label));t.add(i),_B(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=ru(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=ru(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),_B(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=zh(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Eo(u.event)},onmousedown:qx(this._onHandleDragMove,this,0,0),drift:qx(this._onHandleDragMove,this),ondragend:qx(this._onHandleDragEnd,this)}),n.add(a)),SB(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Y(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Fh(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){mB(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Kx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(Kx(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Kx(a)),ru(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),up(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function mB(e,t,r,n){_9(ru(r).lastProp,n)||(ru(r).lastProp=n,t?Ht(r,n,e):(r.stopAnimation(),r.attr(n)))}function _9(e,t){if(dt(e)&&dt(t)){var r=!0;return D(t,function(n,a){r=r&&_9(e[a],n)}),!!r}else return e===t}function _B(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Kx(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function SB(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}function RE(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function S9(e,t,r,n,a){var i=r.get("value"),o=b9(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Gh(s.get("padding")||0),u=s.getFont(),f=LS(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),Qgt(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:ee(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Qgt(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function b9(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:Z0(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),Q(o)?i=o.replace("{value}",i):ft(o)&&(i=o(s))}return i}function IE(e,t,r){var n=sr();return Yo(n,n,r.rotation),Ua(n,n,r.position),Ba([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function x9(e,t,r,n,a,i){var o=qr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),S9(t,n,a,i,{position:IE(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function PE(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function w9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function bB(e,t,r,n,a,i){return{cx:e,cy:t,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var Jgt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=xB(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=RE(i),v=tyt[u](s,c,f);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=a_(l.getRect(),a);x9(n,r,d,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=a_(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=IE(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=xB(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(OE);function xB(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var tyt={line:function(e,t,r){var n=PE([t,r[0]],[t,r[1]],wB(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:w9([t-n/2,r[0]],[n,a],wB(e))}}};function wB(e){return e.dim==="x"?0:1}var eyt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:V.color.border,width:1,type:"dashed"},shadowStyle:{color:V.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:V.color.neutral00,padding:[5,7,5,7],backgroundColor:V.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:V.color.accent40,throttle:40}},t}(At),co=Mt(),ryt=D;function T9(e,t,r){if(!It.node){var n=t.getZr();co(n).records||(co(n).records={}),nyt(n,t);var a=co(n).records[e]||(co(n).records[e]={});a.handler=r}}function nyt(e,t){if(co(e).initialized)return;co(e).initialized=!0,r("click",St(TB,"click")),r("mousemove",St(TB,"mousemove")),r("globalout",iyt);function r(n,a){e.on(n,function(i){var o=oyt(t);ryt(co(e).records,function(s){s&&a(s,i,o.dispatchAction)}),ayt(o.pendings,t)})}}function ayt(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function iyt(e,t,r){e.handler("leave",null,r)}function TB(e,t,r,n){t.handler(e,r,n)}function oyt(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function TM(e,t){if(!It.node){var r=t.getZr(),n=(co(r).records||{})[e];n&&(co(r).records[e]=null)}}var syt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";T9("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){TM("axisPointer",n)},t.prototype.dispose=function(r,n){TM("axisPointer",n)},t.type="axisPointer",t}(ie);function C9(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Iu(i,e);if(o==null||o<0||Y(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(i.getValues(j(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var CB=Mt();function lyt(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||J(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){km(a)&&(a=C9({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=km(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||km(a),h={},v={},d={list:[],map:{}},p={showPointer:St(fyt,v),showTooltip:St(cyt,d)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=pyt(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&AB(S,T,p,!1,h)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&D(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,MB(S),MB(y)))),g[y.key]=w}})}),D(g,function(y,m){AB(f[m],y,p,!0,h)}),hyt(v,f,h),vyt(d,a,e,o),dyt(f,o,r),h}}function AB(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=uyt(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&F(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function uyt(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,e,r);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=e-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),D(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function fyt(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function cyt(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=mp(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function hyt(e,t,r){var n=r.axesInfo=[];D(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function vyt(e,t,r,n){if(km(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function dyt(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=CB(n)[a]||{},o=CB(n)[a]={};D(e,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&D(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];D(i,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!i[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function pyt(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function MB(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function km(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function gg(e){vf.registerAxisPointerClass("CartesianAxisPointer",Jgt),e.registerComponentModel(eyt),e.registerComponentView(syt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Y(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=gft(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lyt)}function gyt(e){wt($8),wt(gg)}var yyt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),h=i.get("type");if(h&&h!=="none"){var v=RE(i),d=_yt[h](s,l,c,f);d.style=v,r.graphicKey=d.type,r.pointer=d}var p=i.get(["label","margin"]),g=myt(n,a,i,l,p);S9(r,a,i,o,g)},t}(OE);function myt(e,t,r,n,a){var i=t.axis,o=i.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var h=sr();Yo(h,h,s),Ua(h,h,[n.cx,n.cy]),u=Ba([o,-a],h);var v=t.getModel("axisLabel").get("rotate")||0,d=qr.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var _yt={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:PE(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:bB(t.cx,t.cy,n[0],n[1],(-r-a/2)*i,(-r+a/2)*i)}:{type:"Sector",shape:bB(t.cx,t.cy,r-a/2,r+a/2,0,Math.PI*2)}}},Syt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(At),NE=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Me).models[0]},t.type="polarAxis",t}(At);Ee(NE,Xh);var byt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(NE),xyt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(NE),kE=function(e){G(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(xa);kE.prototype.dataToRadius=xa.prototype.dataToCoord;kE.prototype.radiusToData=xa.prototype.coordToData;var wyt=Mt(),zE=function(e){G(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),f=LS(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),h=c/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),d=wyt(r.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(xa);zE.prototype.dataToAngle=xa.prototype.dataToCoord;zE.prototype.angleToData=xa.prototype.coordToData;var A9=["radius","angle"],Tyt=function(){function e(t){this.dimensions=A9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new kE,this._angleAxis=new zE,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&r.push(n),a.scale.type===t&&r.push(a),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)],n)},e.prototype.pointToData=function(t,r,n){n=n||[];var a=this.pointToCoord(t);return n[0]=this._radiusAxis.radiusToData(a[0],r),n[1]=this._angleAxis.angleToData(a[1],r),n},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},e.prototype.coordToPoint=function(t,r){r=r||[];var n=t[0],a=t[1]/180*Math.PI;return r[0]=Math.cos(a)*n+this.cx,r[1]=-Math.sin(a)*n+this.cy,r},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,h=this.r,v=this.r0;return h!==v&&c-o<=h*h&&c+o>=v*v},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},e.prototype.convertToPixel=function(t,r,n){var a=DB(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=DB(r);return a===this?this.pointToData(n):null},e}();function DB(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function Cyt(e,t,r){var n=t.get("center"),a=rr(t,r).refContainer;e.cx=K(n[0],a.width)+a.x,e.cy=K(n[1],a.height)+a.y;var i=e.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:Y(s)||(s=[0,s]);var l=[K(s[0],o),K(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function Ayt(e,t){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();D($0(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),D($0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Vu(n.scale,n.model),Vu(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function Myt(e){return e.mainType==="angleAxis"}function LB(e,t){var r;if(e.type=t.get("type"),e.scale=fg(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Myt(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,a)}t.axis=e,e.model=t}var Dyt={dimensions:A9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,a){var i=new Tyt(a+"");i.update=Ayt;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");LB(o,l),LB(s,u),Cyt(i,n,t),r.push(i),n.coordinateSystem=i,i.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",Me).models[0];n.coordinateSystem=a.coordinateSystem}}),r}},Lyt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ny(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),a=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function ky(e){var t=e.getRadiusAxis();return t.inverse?0:1}function EB(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var Eyt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=r.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=j(a.getViewLabels(),function(f){f=ct(f);var c=a.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(h),f});EB(u),EB(s),D(Lyt,function(f){r.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&Oyt[f](this.group,r,i,s,l,o,u)},this)}},t.type="angleAxis",t}(vf),Oyt={axisLine:function(e,t,r,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=ky(r),c=f?0:1,h,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?h=new uf[v]({shape:{cx:r.cx,cy:r.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Ph({shape:{cx:r.cx,cy:r.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,e.add(h)},axisTick:function(e,t,r,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[ky(r)],u=j(n,function(f){return new Be({shape:Ny(r,[l,l+s],f.coord)})});e.add(Cn(u,{style:vt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[ky(r)],f=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)f.push(new Be({shape:Ny(r,[u,u+l],a[c][h].coord)}));e.add(Cn(f,{style:vt(s.getModel("lineStyle").getLineStyle(),vt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");D(o,function(c,h){var v=l,d=c.tickValue,p=i[ky(r)],g=r.coordToPoint([p+u,c.coord]),y=r.cx,m=r.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];dt(b)&&b.textStyle&&(v=new Lt(b.textStyle,l,l.ecModel))}var x=new zt({silent:qr.isLabelSilent(t),style:ee(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(e.add(x),Wo({el:x,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:c.rawLabel,tickIndex:h}}),f){var w=qr.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,mt(x).eventData=w}},this)},splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Be({shape:Ny(r,i,n[c].coord)}))}for(var c=0;c<f.length;c++)e.add(Cn(f[c],{style:vt({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new Be({shape:Ny(r,i,a[u][f].coord)}));e.add(Cn(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,a,i){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,h=-n[0].coord*c,v=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Rr({shape:{cx:r.cx,cy:r.cy,r0:v,r:d,startAngle:h,endAngle:-m*c,clockwise:p},silent:!0})),h=-m*c}for(var g=0;g<f.length;g++)e.add(Cn(f[g],{style:vt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},Ryt=["splitLine","splitArea","minorSplitLine"],Iyt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,o=this._axisGroup=new ht;this.group.add(o);var s=r.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),c=s.getMinorTicksCoords(),h=u.getExtent()[0],v=s.getExtent(),d=Nyt(l,r,h),p=new qr(r,a,d);p.build(),o.add(p.group),og(i,o,r),D(Ryt,function(g){r.get([g,"show"])&&!s.scale.isBlank()&&Pyt[g](this.group,r,l,h,v,f,c)},this)}},t.type="radiusAxis",t}(vf),Pyt={splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=r.getAngleAxis(),c=Math.PI/180,h=f.getExtent(),v=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new uf[v]({shape:{cx:r.cx,cy:r.cy,r:Math.max(i[p].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)e.add(Cn(d[p],{style:vt({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new Vi({shape:{cx:r.cx,cy:r.cy,r:o[f][c].coord}}));e.add(Cn(u,{style:vt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Rr({shape:{cx:r.cx,cy:r.cy,r0:c,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[h].coord}for(var h=0;h<f.length;h++)e.add(Cn(f[h],{style:vt({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function Nyt(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function M9(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function D9(e,t){return t.dim+e.model.componentIndex}function kyt(e,t,r){var n={},a=zyt(Ft(t.getSeriesByType(e),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=D9(s,l),f=M9(i),c=a[u][f],h=c.offset,v=c.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),b=Po(o,_),x=l.dim!=="radius"||!i.get("roundCap",!0),w=d.model,T=w.get("startValue"),C=d.dataToCoord(T||0),A=0,M=o.count();A<M;A++){var E=o.get(_,A),L=o.get(S,A),R=E>=0?"p":"n",P=C;b&&(n[f][L]||(n[f][L]={p:C,n:C}),P=n[f][L][R]);var O=void 0,N=void 0,I=void 0,k=void 0;if(d.dim==="radius"){var B=d.dataToCoord(E)-C,H=l.dataToCoord(L);Math.abs(B)<y&&(B=(B<0?-1:1)*y),O=P,N=P+B,I=H-h,k=I-v,b&&(n[f][L][R]=N)}else{var U=d.dataToCoord(E,x)-C,X=l.dataToCoord(L);Math.abs(U)<m&&(U=(U<0?-1:1)*m),O=X+h,N=O+v,I=P,k=P+U,b&&(n[f][L][R]=k)}o.setItemLayout(A,{cx:p,cy:g,r0:O,r:N,startAngle:-I*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:I>=k})}}})}function zyt(e){var t={};D(e,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=D9(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;t[l]=c;var v=M9(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var d=K(n.get("barWidth"),f),p=K(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");d&&!h[v].width&&(d=Math.min(c.remainedWidth,d),h[v].width=d,c.remainedWidth-=d),p&&(h[v].maxWidth=p),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var r={};return D(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=K(n.categoryGap,o),l=K(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),D(i,function(p,g){var y=p.maxWidth;y&&y<c&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var h=0,v;D(i,function(p,g){p.width||(p.width=c),v=p,h+=p.width*(1+l)}),v&&(h-=v.width*l);var d=-h/2;D(i,function(p,g){r[a][g]=r[a][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),r}var Byt={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Vyt={splitNumber:5},Gyt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(ie);function Hyt(e){wt(gg),vf.registerAxisPointerClass("PolarAxisPointer",yyt),e.registerCoordinateSystem("polar",Dyt),e.registerComponentModel(Syt),e.registerComponentView(Gyt),lh(e,"angle",byt,Byt),lh(e,"radius",xyt,Vyt),e.registerComponentView(Eyt),e.registerComponentView(Iyt),e.registerLayout(St(kyt,"bar"))}function CM(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,a={},i=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),yr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var h=e.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-h:h,a.z2=1,a}var Uyt=["splitArea","splitLine","breakArea"],Fyt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new ht;var l=CM(r),u=new qr(r,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),D(Uyt,function(f){r.get([f,"show"])&&Yyt[f](this,this.group,this._axisGroup,r,a)},this),og(s,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)},t.prototype.remove=function(){W8(this)},t.type="singleAxis",t}(vf),Yyt={splitLine:function(e,t,r,n,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=n.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);c?(p[0]=m,p[1]=f.y,g[0]=m,g[1]=f.y+f.height):(p[0]=f.x,p[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new Be({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});rh(_.shape,u);var S=v++%l.length;h[S]=h[S]||[],h[S].push(_)}for(var b=s.getLineStyle(["color"]),y=0;y<h.length;++y)t.add(Cn(h[y],{style:vt({stroke:l[y%l.length]},b),silent:!0}))}},splitArea:function(e,t,r,n,a){j8(e,r,n,n)},breakArea:function(e,t,r,n,a){var i=pg(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,e,n,n.coordinateSystem.getRect(),a)}},zm=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(At);Ee(zm,Xh.prototype);var jyt=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(xa),L9=["single"],Wyt=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=L9,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=this.dimension,i=new jyt(a,fg(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();D(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Vu(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){var n=rr(t,r).refContainer;this._rect=de(t.getBoxLayoutParams(),n),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+r}:function(o){return a-o+r},t.toLocalCoord=i?function(o){return o-r}:function(o){return a-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t,r,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(t[a.orient==="horizontal"?0:1])),n},e.prototype.dataToPoint=function(t,r,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+t)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(t,r,n){var a=OB(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=OB(r);return a===this?this.pointToData(n):null},e}();function OB(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function Xyt(e,t){var r=[];return e.eachComponent("singleAxis",function(n,a){var i=new Wyt(n,e,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",Me).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),r}var Zyt={create:Xyt,dimensions:L9},RB=["x","y"],$yt=["width","height"],qyt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=Qx(l,1-d_(s)),f=l.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var h=RE(i),v=Kyt[c](s,f,u);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=CM(a);x9(n,r,d,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=CM(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=IE(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=d_(o),u=Qx(s,l),f=[r.x,r.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=Qx(s,1-l),h=(c[1]+c[0])/2,v=[h,h];return v[l]=f[l],{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(OE),Kyt={line:function(e,t,r){var n=PE([t,r[0]],[t,r[1]],d_(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),a=r[1]-r[0];return{type:"Rect",shape:w9([t-n/2,r[0]],[n,a],d_(e))}}};function d_(e){return e.isHorizontal()?0:1}function Qx(e,t){var r=e.getRect();return[r[RB[t]],r[RB[t]]+r[$yt[t]]]}var Qyt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(ie);function Jyt(e){wt(gg),vf.registerAxisPointerClass("SingleAxisPointer",qyt),e.registerComponentView(Qyt),e.registerComponentView(Fyt),e.registerComponentModel(zm),lh(e,"single",zm,zm.defaultOption),e.registerCoordinateSystem("single",Zyt)}var tmt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=ff(r);e.prototype.init.apply(this,arguments),IB(r,i)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),IB(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:V.color.axisLine,width:1,type:"solid"}},itemStyle:{color:V.color.neutral00,borderWidth:1,borderColor:V.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:V.size.s,color:V.color.secondary},monthLabel:{show:!0,position:"start",margin:V.size.s,align:"center",formatter:null,color:V.color.secondary},yearLabel:{show:!0,position:null,margin:V.size.xl,formatter:null,color:V.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(At);function IB(e,t){var r=e.cellSize,n;Y(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=j([0,1],function(i){return xnt(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Pi(e,t,{type:"box",ignoreSize:a})}var emt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,i),this._renderLines(r,s,l,i),this._renderYearText(r,s,l,i),this._renderMonthText(r,u,l,i),this._renderWeekText(r,u,s,l,i)},t.prototype._renderDayRect=function(r,n,a){for(var i=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new Ct({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},t.prototype._renderLines=function(r,n,a,i){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,h=0;c.time<=n.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(r,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},t.prototype._getEdgesPoints=function(r,n,a){var i=[r[0].slice(),r[r.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(r,n,a){var i=new _r({z2:20,shape:{points:r},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(r,n,a){for(var i=r.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return Q(r)&&r?pnt(r,n):ft(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,a,i){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=a==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new zt({z2:30,style:ee(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],a,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(r,n,a,i,o){var s="left",l="top",u=r[0],f=r[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,a,i){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||Q(s))&&(s&&(n=SA(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<c[h].length-1;g++){var y=c[h][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[v]=(_[v]+c[0][g+1][v])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(S,x),T=new zt({z2:30,style:F(ee(o,{text:w}),this._monthTextPositionControl(y,d,a,u,l)),silent:p});i.add(T)}}},t.prototype._weekTextPositionControl=function(r,n,a,i,o){var s="center",l="middle",u=r[0],f=r[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,a,i,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||Q(f)){f&&(n=SA(f)||n);var v=n.get(["time","dayOfWeekShort"]);f=v||j(n.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=K(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+h)%7);var b=new zt({z2:30,style:F(ee(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:g});o.add(b)}}},t.type="calendar",t}(ie),Jx=864e5,rmt=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t,this._update(r,n)}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Bi(t);var r=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype._update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=de(o,l);D([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,r,n){n=n||[],Y(t)&&(t=t[0]),r==null&&(r=!0);var a=this.getDateInfo(t),i=this._rangeInfo,o=a.formatedDate;if(r&&!(a.time>=i.start.time&&a.time<i.end.time+Jx))return n[0]=n[1]=NaN,n;var s=a.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+l*this._sh+this._sh/2):(n[0]=this._rect.x+l*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToLayout=function(t,r,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},o=this.dataToPoint(t,r);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,yt.copy(i,a),ku(i,this._lineWidth/2,!0,!0),n},e.prototype.dataToCalendarLayout=function(t,r){var n=this.dataToPoint(t,r);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,a):this._getDateByWeeksAndDay(r,n-1,a)},e.prototype.convertToPixel=function(t,r,n){var a=tw(r);return a===this?a.dataToPoint(n):null},e.prototype.convertToLayout=function(t,r,n){var a=tw(r);return a===this?a.dataToLayout(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=tw(r);return a===this?a.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(Y(t)&&t.length===1&&(t=t[0]),Y(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);r=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var a=Math.floor(r[1].time/Jx)-Math.floor(r[0].time/Jx)+1,i=new Date(r[0].time),o=i.getDate(),s=r[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-r[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-r[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+r[0].day+6)/7),c=n?-f+1:f-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:f,nthWeek:c,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&r<a.fweek||t===a.weeks&&r>a.lweek)return null;var i=(t-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){lg({targetModel:i,coordSysType:"calendar",coordSysProvider:ZU})}),n},e.dimensions=["time","value"],e}();function tw(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function nmt(e){e.registerComponentModel(tmt),e.registerComponentView(emt),e.registerCoordinateSystem("calendar",rmt)}var io={level:1,leaf:2,nonLeaf:3},wo={none:0,all:1,body:2,corner:3};function AM(e,t,r){var n=t[_t[r]].getCell(e);return!n&&Bt(e)&&e<0&&(n=t[_t[1-r]].getUnitLayoutInfo(r,Math.round(e))),n}function E9(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function O9(e,t,r,n,a){PB(e[0],t,a,r,n,0),PB(e[1],t,a,r,n,1)}function PB(e,t,r,n,a,i){e[0]=1/0,e[1]=-1/0;var o=n[i],s=Y(o)?o:[o],l=s.length,u=!!r;if(l>=1?(NB(e,t,s,u,a,i,0),l>1&&NB(e,t,s,u,a,i,l-1)):e[0]=e[1]=NaN,u){var f=-a[_t[1-i]].getLocatorCount(i),c=a[_t[i]].getLocatorCount(i)-1;r===wo.body?f=ke(0,f):r===wo.corner&&(c=Rn(-1,c)),c<f&&(f=c=NaN),Dr(e[0])&&(e[0]=f),Dr(e[1])&&(e[1]=c),e[0]=ke(Rn(e[0],c),f),e[1]=ke(Rn(e[1],c),f)}}function NB(e,t,r,n,a,i,o){var s=AM(r[o],a,i);if(!s){e[0]=e[1]=NaN;return}var l=s.id[_t[i]],u=l,f=smt(s);f&&(u+=f.span[_t[i]]-1),e[0]=Rn(e[0],l,u),e[1]=ke(e[1],l,u)}function zy(e,t){return Dr(e[t][0])||Dr(e[t][1])}function kB(e,t,r,n){t=t||amt;for(var a=0;a<n;a++)t[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=r[a];!t[a]&&o.cellMergeOwner&&imt(e,o.locatorRange)&&(t[a]=!0,i=!0)}if(!i)break}}var amt=[];function imt(e,t){return!zB(e[0],t[0])||!zB(e[1],t[1])?!1:(e[0][0]=Rn(e[0][0],t[0][0]),e[0][1]=ke(e[0][1],t[0][1]),e[1][0]=Rn(e[1][0],t[1][0]),e[1][1]=ke(e[1][1],t[1][1]),!0)}function zB(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function BB(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function omt(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function VB(e,t,r,n){var a=AM(t[n][0],r,n),i=AM(t[n][1],r,n);e[_t[n]]=e[Fe[n]]=NaN,a&&i&&(e[_t[n]]=a.xy,e[Fe[n]]=i.xy+i.wh-a.xy)}function Iv(e,t,r,n){return e[_t[t]]=r,e[_t[1-t]]=n,e}function smt(e){return e&&(e.type===io.leaf||e.type===io.nonLeaf)?e:null}function p_(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var GB=function(){function e(t,r){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=r,this._uniqueValueGen=lmt(t);var n=r.get("data",!0);n!=null&&!Y(n)&&(n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return e.prototype._initByDimModelData=function(t){var r=this,n=r._cells,a=r._levels,i=[],o=0;r._leavesCount=s(t,0,0),l();return;function s(u,f,c){var h=0;return u&&D(u,function(v,d){var p;Q(v)?p={value:v}:dt(v)?(p=v,v.value!=null&&!Q(v.value)&&(p={value:null})):p={value:null};var g={type:io.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new gt,span:Iv(new gt,r.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:r,rect:p_()};o++,(i[f]||(i[f]=[])).push(g),a[c]||(a[c]={type:io.level,xy:NaN,wh:NaN,option:null,id:new gt,dim:r});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[_t[r.dimIdx]]=m,h+=m,f+=m}),h}function l(){for(var u=[];n.length<o;)for(var f=0;f<i.length;f++){var c=i[f].pop();if(c){c.ordinal=u.length;var h=c.option.value;u.push(h),n.push(c),r._uniqueValueGen.calcDupBase(h)}}r._uniqueValueGen.ensureValueUnique(u,n);var v=r._ordinalMeta=new vp({categories:u,needCollect:!1,deduplication:!1});r._scale=new ih({ordinalMeta:v});for(var d=0;d<r._leavesCount;d++){var p=r._cells[d];p.type=io.leaf,p.span[_t[1-r.dimIdx]]=r._levels.length-p.level}r._initCellsId(),r._initLevelIdOptions()}},e.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:io.level,xy:NaN,wh:NaN,option:null,id:new gt,dim:t}],t._initLevelIdOptions();var r=t._ordinalMeta=new vp({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=t._cells[a]={type:io.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new gt,span:Iv(new gt,t.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:t,rect:p_()};t._leavesCount++,t._setCellId(i)}});t._scale=new ih({ordinalMeta:r})},e.prototype._setCellId=function(t){var r=this._levels.length,n=this.dimIdx;Iv(t.id,n,t.firstLeafLocator,t.level-r)},e.prototype._initCellsId=function(){var t=this._levels.length,r=this.dimIdx;D(this._cells,function(n){Iv(n.id,r,n.firstLeafLocator,n.level-t)})},e.prototype._initLevelIdOptions=function(){var t=this._levels.length,r=this.dimIdx,n=this._model.get("levels",!0);n=Y(n)?n:[],D(this._levels,function(a,i){Iv(a.id,r,0,i-t),a.option=n[i]})},e.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},e.prototype.resetLayoutIterator=function(t,r,n,a){if(t=t||new Es,r===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,t.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,t.reset(this._levels,o,o+a)}return t},e.prototype.resetCellIterator=function(t){return(t||new Es).reset(this._cells,0)},e.prototype.resetLevelIterator=function(t){return(t||new Es).reset(this._levels,0)},e.prototype.getLayout=function(t,r,n){var a=this.getUnitLayoutInfo(r,n);t[_t[r]]=a?a.xy:NaN,t[Fe[r]]=a?a.wh:NaN},e.prototype.getUnitLayoutInfo=function(t,r){return t===this.dimIdx?r<this._leavesCount?this._cells[r]:void 0:this._levels[r+this._levels.length]},e.prototype.getCell=function(t){var r=this._scale.parse(t);return Dr(r)?void 0:this._cells[r]},e.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e}();function lmt(e){var t=e.toUpperCase(),r=new RegExp("^"+t+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(r))&&(n=ke(n,+l[1]+1))}function i(){return""+t+n++}function o(s,l){for(var u=it(),f=0;f<s.length;f++){var c=s[f];(c==null||u.get(c)!=null)&&(s[f]=c=i(),l[f].option=vt({value:c},l[f].option)),u.set(c,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var HB=function(){function e(t,r,n){this._model=r,this._dims=n,this._kind=t,this._cellMergeOwnerList=[]}return e.prototype._ensureCellMap=function(){var t=this,r=t._cellMap;return r||(r=t._cellMap=it(),n()),r;function n(){var i=[],o=t._model.getShallow("data");o&&!Y(o)&&(o=null),D(o,function(d,p){if(!(!dt(d)||!Y(d.coord))){var g=E9([]),y=null;if(O9(g,y,d.coord,t._dims,d.coordClamp?wo[t._kind]:wo.none),!(zy(g,0)||zy(g,1))){var m=d&&d.mergeCells,_={id:new gt,span:new gt,locatorRange:g,option:d,cellMergeOwner:m};BB(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;kB(f,s,i,l);for(var c=0;c<l;c++)s[c]&&(i[c].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var h=F({},u.option);h.coord=null;var v={id:new gt,span:new gt,locatorRange:f,option:h,cellMergeOwner:!0};BB(v,f),i.push(v)}}}D(i,function(d){var p=a(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=p_(),t._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var y=0;y<d.span.x;y++){var m=a(d.id.x+y,d.id.y+g);m.option=d.option,d.cellMergeOwner&&(m.inSpanOf=p)}})}function a(i,o){var s=UB(i,o),l=r.get(s);return l||(l=r.set(s,{id:new gt(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},e.prototype.getCell=function(t){return this._ensureCellMap().get(UB(t[0],t[1]))},e.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},e.prototype.expandRangeByCellMerge=function(t){if(!zy(t,0)&&!zy(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){ew[0]=t[0][0],ew[1]=t[1][0];var r=this.getCell(ew),n=r&&r.inSpanOf;if(n){omt(t,n.locatorRange);return}}var a=this._cellMergeOwnerList;kB(t,null,a,a.length)},e}(),ew=[];function UB(e,t){return e+"|"+t}var BE={show:!0,color:V.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function VE(e){return{color:"none",borderWidth:1,borderColor:e?"none":V.color.borderTint}}var FB={show:!0,label:BE,itemStyle:VE(!1),silent:void 0,dividerLineStyle:{width:1,color:V.color.border}},umt={label:BE,itemStyle:VE(!1),silent:void 0},fmt={label:BE,itemStyle:VE(!0),silent:void 0},cmt={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:FB,y:FB,body:umt,corner:fmt,backgroundStyle:{color:"none",borderColor:V.color.axisLine,borderWidth:1}},hmt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this._dimModels={x:new YB(this.get("x",!0)||{}),y:new YB(this.get("y",!0)||{})};r.x.option.type=r.y.option.type="category";var n=r.x.dim=new GB("x",r.x),a=r.y.dim=new GB("y",r.y),i={x:n,y:a};this._body=new HB("body",new Lt(this.getShallow("body")),i),this._corner=new HB("corner",new Lt(this.getShallow("corner")),i)},t.prototype.getDimensionModel=function(r){return this._dimModels[r]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=cmt,t}(At),YB=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(Lt),By=Math.round,vmt=0,dmt=99,pmt={normal:25,special:100},gmt={normal:50,special:125},ymt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n){this.group.removeAll();var a=this.group,i=r.coordinateSystem,o=i.getRect(),s=r.getDimensionModel("x"),l=r.getDimensionModel("y"),u=s.dim,f=l.dim;mmt(a,r,n),_mt(a,r,u,f,n);var c=r.getShallow("borderZ2",!0),h=ot(c,dmt),v=h-1,d=r.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=r.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=MM(o.clone(),d,vmt),y=MM(o.clone(),p,h);g.silent=!0,y.silent=!0,a.add(g),a.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&a.add(jB({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),v)),f.shouldShow()&&a.add(jB({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),v)))},t.type="matrix",t}(ie);function mmt(e,t,r){n(0),n(1);function n(a){var i=t.getDimensionModel(_t[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=t.getShallow("tooltip",!0),f=[],c=o.resetCellIterator();c.next();){var h=c.item,v={};yt.copy(v,h.rect),AS(f,h.id.x,h.id.y),R9(f,t,e,r,h.option,s,l,i,v,h.option.value,gmt,u)}}}function _mt(e,t,r,n,a){i("body",t.getBody(),r,n),r.shouldShow()&&n.shouldShow()&&i("corner",t.getCorner(),n,r);function i(o,s,l,u){var f=new Lt(t.getShallow(o,!0)),c=f.getModel("itemStyle"),h=f.getModel("label"),v=new Es,d=new Es,p=[],g=t.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(v,0);v.next();){var y=v.item,m=d.item;AS(p,y.id.x,m.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?yt.copy(S,_.spanRect):(y.dim.getLayout(S,0,p[0]),m.dim.getLayout(S,1,p[1]));var b=_?_.option:null;R9(p,t,e,a,b,c,h,f,S,b?b.value:null,pmt,g)}}}}function R9(e,t,r,n,a,i,o,s,l,u,f,c){var h;Vy.option=a?a.itemStyle:null,Vy.parentModel=i,Yf.option=a,Yf.parentModel=s;var v=ot(Yf.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),d=c&&c.show,p=MM(l,Vy.getItemStyle(),v);r.add(p);var g=Yf.get("cursor");g!=null&&p.attr("cursor",g);var y;if(u!=null){var m=u+"";if(jf.option=a?a.label:null,jf.parentModel=o,jf.ecModel=n,ur(p,{normal:jf},{defaultText:m,autoOverflowArea:!0,layoutRect:ct(p.shape)}),y=p.getTextContent(),y){y.z2=v+1;var _=y.style;if(_&&_.overflow&&_.overflow!=="none"&&_.lineOverflow){var S={};yt.copy(S,l),ku(S,(((h=p.style)===null||h===void 0?void 0:h.lineWidth)||0)/2,!0,!0),p.updateInnerText(),y.getLocalTransform(Gy),ga(Gy,Gy),yt.applyTransform(S,S,Gy),y.setClipPath(new Ct({shape:S}))}}Wo({el:p,componentModel:t,itemName:m,itemTooltipOption:c,formatterParamsExtra:{xyLocator:e.slice()}})}if(y){var b=jf.get("silent");b==null&&(b=!d),y.silent=b,y.ignoreHostSilent=!0}var x=Yf.get("silent");x==null&&(x=!p.style||p.style.fill==="none"||!p.style.fill),p.silent=x,vb(Yf),vb(Vy),vb(jf)}var Yf=new Lt,Vy=new Lt,jf=new Lt,Gy=[];function MM(e,t,r){var n=t.lineWidth;if(n){var a=e.x+e.width,i=e.y+e.height;e.x=En(e.x,n,!0),e.y=En(e.y,n,!0),e.width=En(a,n,!0)-e.x,e.height=En(i,n,!0)-e.y}return new Ct({shape:e,style:t,z2:r})}function jB(e,t,r){var n=t.lineWidth;return n&&(By(e.x1*2)===By(e.x2*2)&&(e.x1=e.x2=En(e.x1,n,!0)),By(e.y1*2)===By(e.y2*2)&&(e.y1=e.y2=En(e.y1,n,!0))),new Be({shape:e,style:t,silent:!0,z2:r})}var Smt=function(){function e(t,r,n){this.dimensions=e.dimensions,this.type="matrix",this._model=t;var a=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(t,n)}return e.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},e.create=function(t,r){var n=[];return t.eachComponent("matrix",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){lg({targetModel:i,coordSysType:"matrix",coordSysProvider:ZU})}),n},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(t,r){var n=this._dims,a=this._dimModels,i=this._rect=de(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()});WB(a,n,i,0),WB(a,n,i,1),XB(0,n),XB(1,n),ZB(this._model.getBody(),n),ZB(this._model.getCorner(),n)},e.prototype.dataToPoint=function(t,r,n){return n=n||[],this.dataToLayout(t,r,Pv),n[0]=Pv.rect.x+Pv.rect.width/2,n[1]=Pv.rect.y+Pv.rect.height/2,n},e.prototype.dataToLayout=function(t,r,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=E9(n.matrixXYLocatorRange);return Y(t)&&(O9(o,null,t,a,ot(r&&r.clamp,wo.none)),(!r||!r.ignoreMergeCells)&&((!r||r.clamp!==wo.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!r||r.clamp!==wo.body)&&this._model.getCorner().expandRangeByCellMerge(o)),VB(i,o,a,0),VB(i,o,a,1)),n},e.prototype.pointToData=function(t,r,n){var a=this._dims;return $B(ri,0,a,t,r&&r.clamp),$B(ri,1,a,t,r&&r.clamp),n=n||[],n[0]=n[1]=NaN,ri.y===xr.inCorner&&ri.x===xr.inBody?qB(ri,n,0,a):ri.x===xr.inCorner&&ri.y===xr.inBody?qB(ri,n,1,a):(KB(ri,n,0,a),KB(ri,n,1,a)),n},e.prototype.convertToPixel=function(t,r,n,a){var i=nw(r);return i===this?i.dataToPoint(n,a):void 0},e.prototype.convertToLayout=function(t,r,n,a){var i=nw(r);return i===this?i.dataToLayout(n,a):void 0},e.prototype.convertFromPixel=function(t,r,n,a){var i=nw(r);return i===this?i.pointToData(n,a):void 0},e.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},e.dimensions=["x","y","value"],e}(),Pv={rect:p_()},Hy=new Es,rw=new Es;function WB(e,t,r,n){for(var a=1-n,i=t[_t[n]],o=t[_t[a]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var f=r[Fe[n]],c=i.getLocatorCount(n)+o.getLocatorCount(n),h=new Lt,v=o.resetLevelIterator();v.next();)h.option=v.item.option,h.parentModel=e[_t[a]],g(v.item,s?h.get("levelSize"):0);for(var d=new Lt,p=i.resetCellIterator();p.next();)p.item.type===io.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(w,T){var C=bmt(T,n,r);Dr(C)||(w.wh=DM(C,f),f=DM(f-w.wh),c--)}var y=c?f/c:0,m=!c&&f>=1,_=r[_t[n]],S=i.getLocatorCount(n)-1,b=new Es;for(o.resetLayoutIterator(b,n);b.next();)x(b.item);for(i.resetLayoutIterator(b,n);b.next();)x(b.item);function x(w){Dr(w.wh)&&(w.wh=y),w.xy=_,w.id[_t[n]]===S&&!m&&(w.wh=r[_t[n]]+r[Fe[n]]-w.xy),_+=w.wh}}function XB(e,t){for(var r=t[_t[e]].resetCellIterator();r.next();){var n=r.item;g_(n.rect,e,n.id,n.span,t),g_(n.rect,1-e,n.id,n.span,t),n.type===io.nonLeaf&&(n.xy=n.rect[_t[e]],n.wh=n.rect[Fe[e]])}}function ZB(e,t){e.travelExistingCells(function(r){var n=r.span;if(n){var a=r.spanRect,i=r.id;g_(a,0,i,n,t),g_(a,1,i,n,t)}})}function g_(e,t,r,n,a){e[Fe[t]]=0;var i=r[_t[t]],o=i<0?a[_t[1-t]]:a[_t[t]],s=o.getUnitLayoutInfo(t,r[_t[t]]);if(e[_t[t]]=s.xy,e[Fe[t]]=s.wh,n[_t[t]]>1){var l=o.getUnitLayoutInfo(t,r[_t[t]]+n[_t[t]]-1);e[Fe[t]]=l.xy+l.wh-s.xy}}function bmt(e,t,r){var n=L0(e,r[Fe[t]]);return DM(n,r[Fe[t]])}function DM(e,t){return Math.max(Math.min(e,ot(t,1/0)),0)}function nw(e){var t=e.matrixModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}var xr={inBody:1,inCorner:2,outside:3},ri={x:null,y:null,point:[]};function $B(e,t,r,n,a){var i=r[_t[t]],o=r[_t[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,c=e.point[t]=n[t];if(!l&&!f){e[_t[t]]=xr.outside;return}if(a===wo.body){l?(e[_t[t]]=xr.inBody,c=Rn(s.xy+s.wh,ke(l.xy,c)),e.point[t]=c):e[_t[t]]=xr.outside;return}else if(a===wo.corner){f?(e[_t[t]]=xr.inCorner,c=Rn(f.xy+f.wh,ke(u.xy,c)),e.point[t]=c):e[_t[t]]=xr.outside;return}var h=l?l.xy:f?f.xy+f.wh:NaN,v=u?u.xy:h,d=s?s.xy+s.wh:h;if(c<v){if(!a){e[_t[t]]=xr.outside;return}c=v}else if(c>d){if(!a){e[_t[t]]=xr.outside;return}c=d}e.point[t]=c,e[_t[t]]=h<=c&&c<=d?xr.inBody:v<=c&&c<=h?xr.inCorner:xr.outside}function qB(e,t,r,n){var a=1-r;if(e[_t[r]]!==xr.outside)for(n[_t[r]].resetCellIterator(rw);rw.next();){var i=rw.item;if(QB(e.point[r],i.rect,r)&&QB(e.point[a],i.rect,a)){t[r]=i.ordinal,t[a]=i.id[_t[a]];return}}}function KB(e,t,r,n){if(e[_t[r]]!==xr.outside){var a=e[_t[r]]===xr.inCorner?n[_t[1-r]]:n[_t[r]];for(a.resetLayoutIterator(Hy,r);Hy.next();)if(xmt(e.point[r],Hy.item)){t[r]=Hy.item.id[_t[r]];return}}}function xmt(e,t){return t.xy<=e&&e<=t.xy+t.wh}function QB(e,t,r){return t[_t[r]]<=e&&e<=t[_t[r]]+t[Fe[r]]}function wmt(e){e.registerComponentModel(hmt),e.registerComponentView(ymt),e.registerCoordinateSystem("matrix",Smt)}function Tmt(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function JB(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function Cmt(e,t,r){var n=F({},r),a=e[t],i=r.$action||"merge";i==="merge"?a?(xt(a,n,!0),Pi(a,n,{ignoreSize:!0}),JU(r,a),Uy(r,a),Uy(r,a,"shape"),Uy(r,a,"style"),Uy(r,a,"extra"),r.clipPath=a.clipPath):e[t]=n:i==="replace"?e[t]=n:i==="remove"&&a&&(e[t]=null)}var I9=["transition","enterFrom","leaveTo"],Amt=I9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Uy(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?I9:Amt,a=0;a<n.length;a++){var i=n[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function Mmt(e,t){if(e&&(e.hv=t.hv=[JB(t,["left","right"]),JB(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var Dmt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=a},t.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=FH(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var h=f.newOption;h&&(u.push(h),Tmt(f,h),Cmt(o,c,h),Mmt(o[c],h))},this),a.elements=Ft(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(r,n,a){D(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(At),t5={path:null,compoundPath:null,group:ht,image:cr,text:zt},qn=Mt(),Lmt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=it()},t.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(l){var u=Qe(l.id,null),f=u!=null?a.get(u):null,c=Qe(l.parentId,null),h=c!=null?a.get(c):i,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&f9(d,v,!!g,!!p)){var y=c9(d,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=Emt(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=e5(u,h,l.type,a):(w&&(qn(w).isNew=!1),p9(w)),w&&(Nm(w,m,r,{isInit:x}),r5(w,l,o,s))}else if(b){Bm(f,l,a,r);var T=e5(u,h,l.type,a);T&&(Nm(T,m,r,{isInit:!0}),r5(T,l,o,s))}else _==="remove"&&(v9(f,l),Bm(f,l,a,r));var C=a.get(u);if(C&&p)if(S){var A=C.getTextContent();A?A.attr(p):C.setTextContent(new zt(p))}else b&&C.setTextContent(new zt(p));if(C){var M=l.clipPath;if(M){var E=M.type,L=void 0,x=!1;if(S){var R=C.getClipPath();x=!R||qn(R).type!==E,L=x?LM(E):R}else b&&(x=!0,L=LM(E));C.setClipPath(L),Nm(L,M,r,{isInit:x}),h_(L,M.keyframeAnimation,r)}var P=qn(C);C.setTextConfig(g),P.option=l,Omt(C,r,l),Wo({el:C,componentModel:r,itemName:C.name,itemTooltipOption:l.tooltip}),h_(C,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],h=Qe(c.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===i,g=qn(v),y=qn(d);g.width=K(g.option.width,p?s:y.width)||0,g.height=K(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],h=Qe(c.id,null),v=h!=null?o.get(h):null;if(v){var d=v.parent,y=qn(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=FS(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!qn(v).isNew&&S){for(var b=c.transition,x={},w=0;w<u.length;w++){var T=u[w],C=_[T];b&&(_u(b)||bt(b,T)>=0)?x[T]=C:v[T]=C}Ht(v,x,r,0)}else v.attr(_)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){Bm(a,qn(a).option,n,r._lastGraphicModel)}),this._elMap=it()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ie);function LM(e){var t=nt(t5,e)?t5[e]:ip(e),r=new t({});return qn(r).type=e,r}function e5(e,t,r,n){var a=LM(r);return t.add(a),n.set(e,a),qn(a).id=e,qn(a).isNew=!0,a}function Bm(e,t,r,n){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){Bm(i,t,r,n)}),i1(e,t,n),r.removeKey(qn(e).id))}function r5(e,t,r,n){e.isGroup||D([["cursor",ya.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];nt(t,i)?e[i]=ot(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),D(Nt(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=ft(i)?i:null}}),nt(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Emt(e){return e=F({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat($U),function(t){delete e[t]}),e}function Omt(e,t,r){var n=mt(e).eventData;!e.silent&&!e.ignore&&!n&&(n=mt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function Rmt(e){e.registerComponentModel(Dmt),e.registerComponentView(Lmt),e.registerPreprocessor(function(t){var r=t.graphic;Y(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var n5=["x","y","radius","angle","single"],Imt=["cartesian2d","polar","singleAxis"];function Pmt(e){var t=e.get("coordinateSystem");return bt(Imt,t)>=0}function xs(e){return e+"Axis"}function Nmt(e,t){var r=it(),n=[],a=it();e.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=r.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(r.get(c)||r.set(c,[]))[h]=!0})}return n}function P9(e){var t=e.ecModel,r={infoList:[],infoMap:it()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(xs(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var aw=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),Tp=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=a5(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=a5(r);xt(this.option,r,!0),xt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=it(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D(n5,function(a){var i=this.getReferringComponents(xs(a),Ktt);if(i.specified){n=!0;var o=new aw;D(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new aw;if(h.add(c.componentIndex),r.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Me).models[0];v&&D(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Me).models[0]&&h.add(d.componentIndex)})}}}i&&D(n5,function(u){if(i){var f=a.findComponents({mainType:xs(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new aw;c.add(f[0].componentIndex),r.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(xs(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(xs(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(At);function a5(e){var t={};return D(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var kmt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(Tp),GE=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(ie),zmt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(GE),ic=D,i5=Dn,Bmt=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(Pmt(r)){var n=xs(this._dimName),a=r.getReferringComponents(n,Me).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ct(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ic(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=a.parse(Yt(d,o,r))):(u=!0,p=p==null?r[v]:a.parse(p),d=Yt(p,r,o)),l[v]=p==null||isNaN(p)?r[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),i5(l),i5(s);var f=this._minMaxSpan;u?c(l,s,r,o,!1):c(s,l,o,r,!0);function c(h,v,d,p,g){var y=g?"Span":"ValueSpan";$s(0,h,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=Yt(h[m],d,p,!0),g&&(v[m]=a.parse(v[m]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=Vmt(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;ic(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var c=u.getStore(),h=j(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,y=0;y<f.length;y++){var m=c.get(h[y],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else ic(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});ic(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;ic(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Yt(n[0]+o,n,[0,100],!0):i!=null&&(o=Yt(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=L2(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},e}();function Vmt(e,t,r){var n=[1/0,-1/0];ic(r,function(o){nst(n,o.getData(),t)});var a=e.getAxisModel(),i=I6(a.axis.scale,a,n).calculate();return[i.min,i.max]}var Gmt={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(xs(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Bmt(a,i,s,e),r.push(o.__dzAxisProxy))});var n=it();return D(r,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Hmt(e){e.registerAction("dataZoom",function(t,r){var n=Nmt(r,t);D(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var o5=!1;function HE(e){o5||(o5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Gmt),Hmt(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Umt(e){e.registerComponentModel(kmt),e.registerComponentView(zmt),HE(e)}var Jn=function(){function e(){}return e}(),N9={};function oc(e,t){N9[e]=t}function k9(e){return N9[e]}var Fmt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;D(this.option.feature,function(n,a){var i=k9(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),xt(n,i.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:V.color.border,borderRadius:0,borderWidth:0,padding:V.size.m,itemSize:15,itemGap:V.size.s,showTitle:!0,iconStyle:{borderColor:V.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:V.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(At);function z9(e,t){var r=Gh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var a=new Ct({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return a}var Ymt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},f=this._features||(this._features={}),c=[];D(u,function(m,_){c.push(_)}),new Io(this._featureNames||[],c).add(h).update(h).remove(St(h,null)).execute(),this._featureNames=c;function h(m,_){var S=c[m],b=c[_],x=u[S],w=new Lt(x,r,r.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(x.title=i.newTitle),S&&!b){if(jmt(S))T={onclick:w.option.onclick,featureName:S};else{var C=k9(S);if(!C)return;T=new C}f[S]=T}else if(T=f[b],!T)return;T.uid=Vh("toolbox-feature"),T.model=w,T.ecModel=n,T.api=a;var A=T instanceof Jn;if(!S&&b){A&&T.dispose&&T.dispose(n,a);return}if(!w.get("show")||A&&T.unusable){A&&T.remove&&T.remove(n,a);return}v(w,T,S),w.setIconStatus=function(M,E){var L=this.option,R=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[M]=E,R[M]&&(E==="emphasis"?Oo:Ro)(R[M])},T instanceof Jn&&T.render&&T.render(w,n,a,i)}function v(m,_,S){var b=m.getModel("iconStyle"),x=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Jn&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,A;Q(w)?(C={},C[S]=w):C=w,Q(T)?(A={},A[S]=T):A=T;var M=m.iconPaths={};D(C,function(E,L){var R=zh(E,{},{x:-s/2,y:-s/2,width:s,height:s});R.setStyle(b.getItemStyle());var P=R.ensureState("emphasis");P.style=x.getItemStyle();var O=new zt({style:{text:A[L],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:Q2({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},n)},ignore:!0});R.setTextContent(O),Wo({el:R,componentModel:r,itemName:L,formatterParamsExtra:{title:A[L]}}),R.__title=A[L],R.on("mouseover",function(){var N=x.getItemStyle(),I=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";O.setStyle({fill:x.get("textFill")||N.fill||N.stroke||V.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),R.setTextConfig({position:x.get("textPosition")||I}),O.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&a.leaveEmphasis(this),O.hide()}),(m.get(["iconStatus",L])==="emphasis"?Oo:Ro)(R),o.add(R),R.on("click",J(_.onclick,_,n,a,L)),M[L]=R})}var d=rr(r,a).refContainer,p=r.getBoxLayoutParams(),g=r.get("padding"),y=de(p,d,g);gu(r.get("orient"),o,r.get("itemGap"),y.width,y.height),FS(o,p,d,g),o.add(z9(o.getBoundingRect(),r)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),b=S.textConfig||(S.textConfig={}),x=m.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!ft(w)&&_){var T=w.style||(w.style={}),C=LS(_,zt.makeFont(T)),A=m.x+o.x,M=m.y+o.y+s,E=!1;M+C.height>a.getHeight()&&(b.position="top",E=!0);var L=E?-5-C.height:s+10;A+C.width/2>a.getWidth()?(b.position=["100%",L],T.align="right"):A-C.width/2<0&&(b.position=[0,L],T.align="left")}})},t.prototype.updateView=function(r,n,a,i){D(this._features,function(o){o instanceof Jn&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(r,n){D(this._features,function(a){a instanceof Jn&&a.remove&&a.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(a){a instanceof Jn&&a.dispose&&a.dispose(r,n)})},t.type="toolbox",t}(ie);function jmt(e){return e.indexOf("my")===0}var Wmt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||V.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=It.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,d=o?decodeURIComponent(h[1]):h[1];v&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:V.color.neutral00,name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Jn),s5="__ec_magicType_stack__",Xmt=[["line","bar"],["stack"]],Zmt=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return D(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(l5[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,d=l5[a](h,v,c,i);d&&(vt(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,Me).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};D(Xmt,function(c){bt(c,a)>=0&&D(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=xt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Jn),l5={line:function(e,t,r,n){if(e==="bar")return xt({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return xt({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var a=r.get("stack")===s5;if(e==="line"||e==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),xt({id:t,stack:a?"":s5},n.get(["option","stack"])||{},!0)}};$a({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var o1=new Array(60).join("-"),hh=" ";function $mt(e){var t={},r=[],n=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function qmt(e){var t=[];return D(e,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(j(r.series,function(v){return v.name})),l=[a.model.getCategories()];D(r.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(hh)],f=0;f<l[0].length;f++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][f]);u.push(c.join(hh))}t.push(u.join(`
143
+ `))}),t.join(`
144
+
145
+ `+o1+`
146
+
147
+ `)}function Kmt(e){return j(e,function(t){var r=t.getRawData(),n=[t.name],a=[];return r.each(r.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=r.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+hh:"")+a.join(hh))}),n.join(`
148
+ `)}).join(`
149
+
150
+ `+o1+`
151
+
152
+ `)}function Qmt(e){var t=$mt(e);return{value:Ft([qmt(t.seriesGroupByCategoryAxis),Kmt(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
153
+
154
+ `+o1+`
155
+
156
+ `),meta:t.meta}}function y_(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Jmt(e){var t=e.slice(0,e.indexOf(`
157
+ `));if(t.indexOf(hh)>=0)return!0}var EM=new RegExp("["+hh+"]+","g");function t0t(e){for(var t=e.split(/\n+/g),r=y_(t.shift()).split(EM),n=[],a=j(r,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=y_(t[i]).split(EM);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function e0t(e){for(var t=e.split(/\n+/g),r=y_(t.shift()),n=[],a=0;a<t.length;a++){var i=y_(t[a]);if(i){var o=i.split(EM),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:r,data:n}}function r0t(e,t){var r=e.split(new RegExp(`
158
+ *`+o1+`
159
+ *`,"g")),n={series:[]};return D(r,function(a,i){if(Jmt(a)){var o=t0t(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=e0t(a);n.series.push(o)}}),n}var n0t=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||V.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),h=i.get("contentToOption"),v=Qmt(r);if(ft(c)){var d=c(n.getOption());Q(d)?u.innerHTML=d:Ou(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){a.removeChild(o),b._dom=null}GC(_,"click",x),GC(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){x();return}var w;try{ft(h)?w=h(u,n.getOption()):w=r0t(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:V.color.background,textColor:V.color.primary,textareaColor:V.color.background,textareaBorderColor:V.color.border,buttonColor:V.color.accent50,buttonTextColor:V.color.neutral00};return n},t}(Jn);function a0t(e,t){return j(e,function(r,n){var a=t&&t[n];if(dt(a)&&!Y(a)){var i=dt(r)&&!Y(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=vt(r,a),o&&delete r.name,r}else return r})}$a({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];D(e.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)r.push(F({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:a0t(n.data,i)})}}),t.mergeOption(vt({series:r},e.newOption))});var B9=D,V9=Mt();function i0t(e,t){var r=UE(e);B9(t,function(n,a){for(var i=r.length-1;i>=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(t)}function o0t(e){var t=UE(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return B9(r,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function s0t(e){V9(e).snapshots=null}function l0t(e){return UE(e).length}function UE(e){var t=V9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var u0t=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){s0t(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Jn);$a({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var f0t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],FE=function(){function e(t,r,n){var a=this;this._targetInfoList=[];var i=u5(r,t);D(c0t,function(o,s){(!n||!n.include||bt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=iw[n.brushType](0,i,a);n.__rangeOffset={offset:v5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&D(i.coordSyses,function(o){var s=iw[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=iw[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?v5[n.brushType](i.values,o.offset,h0t(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,r){return j(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:Y7(a),isTargetByCursor:W7(a,t,n.coordSysModel),getLinearBrushOtherExtent:j7(a)}})},e.prototype.controlSeries=function(t,r,n){var a=this.findTargetInfo(t,n);return a===!0||a&&bt(a.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,a=u5(r,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<f5.length;l++)if(f5[l](a,o))return o}return!0},e}();function OM(e){return e[0]>e[1]&&e.reverse(),e}function u5(e,t){return Ic(e,t,{includeMainTypes:f0t})}var c0t={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,a=e.gridModels,i=it(),o={},s={};!r&&!n&&!a||(D(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(c,h){(bt(r,c.getAxis("x").model)>=0||bt(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:c5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:c5.geo})})}},f5=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],c5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Rs(e)),t}},iw={lineX:St(h5,0),lineY:St(h5,1),rect:function(e,t,r,n){var a=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),i=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[OM([a[0],i[0]]),OM([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=j(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function h5(e,t,r,n){var a=r.getAxis(["x","y"][e]),i=OM(j([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var v5={lineX:St(d5,0),lineY:St(d5,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return j(e,function(n,a){return[n[0]-r[0]*t[a][0],n[1]-r[1]*t[a][1]]})}};function d5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function h0t(e,t){var r=p5(e),n=p5(t),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function p5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var RM=D,v0t=Wtt("toolbox-dataZoom_"),d0t=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new dE(a.getZr()),this._brushController.on("brush",J(this._onBrush,this)).mount()),y0t(r,n,this,i,a),g0t(r,n)},t.prototype.onclick=function(r,n,a){p0t[a].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new FE(YE(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),i0t(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,d=l(u,v,i),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(c=$s(0,c.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(h=v)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];RM(r,function(a,i){n.push(ct(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:V.color.backgroundTint}};return n},t}(Jn),p0t={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(o0t(this.ecModel))}};function YE(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function g0t(e,t){e.setIconStatus("back",l0t(t)>1?"emphasis":"normal")}function y0t(e,t,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new FE(YE(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Lnt("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),a=[],i=YE(n),o=Ic(e,i);RM(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),RM(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:v0t+u+c};h[f]=c,a.push(h)}return a});function m0t(e){e.registerComponentModel(Fmt),e.registerComponentView(Ymt),oc("saveAsImage",Wmt),oc("magicType",Zmt),oc("dataView",n0t),oc("dataZoom",d0t),oc("restore",u0t),wt(Umt)}var _0t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:V.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:V.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:V.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:V.color.tertiary,fontSize:14}},t}(At);function G9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function H9(e){if(It.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var U9=H9(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),S0t=H9(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function F9(e,t){if(!e)return t;t=cL(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function b0t(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var x0t=F9(S0t,"transition"),jE=F9(U9,"transform"),w0t="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(It.transform3dSupported?"will-change:transform;":"");function T0t(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function C0t(e,t,r){if(!Q(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=Bu(t);var i=T0t(r),o=Math.max(Math.round(a)*1.5,6),s="",l=jE+":",u;bt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function A0t(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return r&&(a=" "+e/2+"s "+n,i="opacity"+a+",visibility"+a),t||(a=" "+e+"s "+n,i+=(i.length?",":"")+(It.transformSupported?""+jE+a:",left"+a+",top"+a)),x0t+":"+i}function g5(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!It.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=It.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+jE+":"+o+";":[["top",0],["left",0],[U9,o]]}function M0t(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var a=ot(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+a+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),D(["decoration","align"],function(u){var f=e.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function D0t(e,t,r,n){var a=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),c=e.getModel("textStyle"),h=OF(e,"html"),v=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+v),t&&i>0&&a.push(A0t(i,r,n)),o&&a.push("background-color:"+o),D(["width","color","radius"],function(d){var p="border-"+d,g=cL(p),y=e.get(g);y!=null&&a.push(p+":"+y+(d==="color"?"":"px"))}),a.push(M0t(c)),h!=null&&a.push("padding:"+Gh(h).join("px ")+"px"),a.join(";")+";"}function y5(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&cJ(e,o,r,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var L0t=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,It.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=r.appendTo,o=i&&(Q(i)?document.querySelector(i):Ou(i)?i:ft(i)&&i(t.getDom()));y5(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Xn(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=b0t(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=w0t+D0t(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+g5(i[0],i[1],!0)+("border-color:"+Bu(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Q(i)&&n.get("trigger")==="item"&&!G9(n)&&(s=C0t(n,a,i)),Q(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)Ou(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(y5(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=g5(n[0],n[1]);D(i,function(o){a[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",It.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(J(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;hJ(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e}(),E0t=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),_5(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;dt(t)&&jt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new zt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:OF(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=m5(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;_5(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=is(i.borderWidth||0),s=m5(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(J(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function is(e){return Math.max(0,e)}function m5(e){var t=is(e.shadowBlur||0),r=is(e.shadowOffsetX||0),n=is(e.shadowOffsetY||0);return{left:is(t-r),right:is(t+r),top:is(t-n),bottom:is(t+n)}}function _5(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var O0t=new Ct({shape:{x:-1,y:-1,width:2,height:2}}),R0t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(It.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=Jtt(a.get("renderMode"));this._tooltipContent=i==="richText"?new E0t(n):new L0t(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(It.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Fh(this,"_updatePosition",50,"fixRate"):up(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");T9("itemTooltip",this._api,J(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||It.node||!a.getDom())){var o=S5(i,a);this._ticket="";var s=i.dataByCoordSys,l=k0t(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=O0t;f.x=i.x,f.y=i.y,f.update(),mt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var c=C9(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(S5(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Nv([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=mt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;uu(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(mt(f).dataIndex!=null?l=f:mt(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=J(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Nv([n.tooltipOption],i),l=this._renderMode,u=[],f=je("section",{blocks:[],noHeader:!0}),c=[],h=new Vb;D(r,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=b9(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=je("section",{header:x,noHeader:!Mn(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),D(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Z0(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",Bu(M.color),l);var E=kP(C.formatTooltip(A,!0,null)),L=E.frag;if(L){var R=Nv([C],i).get("valueFormatter");w.blocks.push(R?F({valueFormatter:R},L):L)}E.text&&c.push(E.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=UP(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
160
+
161
+ `:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=mt(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=r.positionDefault,p=Nv([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new Vb;y.marker=m.makeTooltipMarker("item",Bu(y.color),v);var _=kP(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?UP(b?F({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,r.offsetX,r.offsetY,r.position,r.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=this._renderMode==="html",o=mt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Q(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ct(l),l.content=Br(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=r.positionDefault,d=Nv(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new Vb;this._showOrMove(d,function(){var m=ct(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,r.offsetX,r.offsetY,r.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),p=d.color;if(h)if(Q(h)){var g=r.ecModel.get("useUTC"),y=Y(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=sg(y.axisValue,v,g)),v=hL(v,a,!0)}else if(ft(h)){var _=J(function(S,b){S===this._ticket&&(c.setContent(b,f,r,p,l),this._updatePosition(r,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i,o){if(a==="axis"||Y(n))return{color:i||o};if(!Y(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ft(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),Y(n))a=K(n[0],u),i=K(n[1],f);else if(dt(n)){var p=n;p.width=c[0],p.height=c[1];var g=de(p,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(Q(n)&&l){var y=N0t(n,d,c,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=I0t(a,i,o,u,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=b5(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=b5(v)?c[1]/2:v==="bottom"?c[1]:0),G9(r)){var y=P0t(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&D(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){It.node||!n.getDom()||(up(this,"_updatePosition"),this._tooltipContent.dispose(),TM("itemTooltip",n))},t.type="tooltip",t}(ie);function Nv(e,t,r){var n=t.ecModel,a;r?(a=new Lt(r,n,n),a=new Lt(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Lt&&(o=o.get("tooltip",!0)),Q(o)&&(o={formatter:o}),o&&(a=new Lt(o,a,n)))}return a}function S5(e,t){return e.dispatchAction||J(t.dispatchAction,t)}function I0t(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function P0t(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function N0t(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function b5(e){return e==="center"||e==="middle"}function k0t(e,t,r){var n=P2(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Rh(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=mt(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function z0t(e){wt(gg),e.registerComponentModel(_0t),e.registerComponentView(R0t),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},De),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},De)}var B0t=["rect","polygon","keep","clear"];function V0t(e,t){var r=ne(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=e&&e.toolbox;Y(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),G0t(s),t&&!s.length&&s.push.apply(s,B0t)}}function G0t(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var x5=D;function w5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function IM(e,t,r){var n={};return x5(t,function(i){var o=n[i]=a();x5(e[i],function(s,l){if(lr.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new lr(u),l==="opacity"&&(u=ct(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new lr(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Y9(e,t,r){var n;D(r,function(a){t.hasOwnProperty(a)&&w5(t[a])&&(n=!0)}),n&&D(r,function(a){t.hasOwnProperty(a)&&w5(t[a])?e[a]=ct(t[a]):delete e[a]})}function H0t(e,t,r,n,a,i){var o={};D(e,function(c){var h=lr.prepareVisualTypes(t[c]);o[c]=h});var s;function l(c){return xL(r,s,c)}function u(c,h){HF(r,s,c,h)}r.each(f);function f(c,h){s=c;var v=r.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=n.call(a,c),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(c,l,u)}}}function U0t(e,t,r,n){var a={};return D(e,function(i){var o=lr.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return xL(s,c,b)}function f(b,x){HF(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=n!=null?h.get(l,c):c,p=r(d),g=t[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function F0t(e){var t=e.brushType,r={point:function(n){return T5[t].point(n,r,e)},rect:function(n){return T5[t].rect(n,r,e)}};return r}var T5={lineX:C5(0),lineY:C5(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&tu(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var a=e.x,i=e.y,o=e.width,s=e.height,l=n[0];if(tu(n,a,i)||tu(n,a+o,i)||tu(n,a,i+s)||tu(n,a+o,i+s)||yt.create(e).contain(l[0],l[1])||Kv(a,i,a+o,i,n)||Kv(a,i,a,i+s,n)||Kv(a+o,i,a+o,i+s,n)||Kv(a,i+s,a+o,i+s,n))return!0}}};function C5(e){var t=["x","y"],r=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[e];return kv(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),kv(s[0],o)||kv(s[1],o)||kv(o[0],s)||kv(o[1],s)}}}}function kv(e,t){return t[0]<=e&&e<=t[1]}var A5=["inBrush","outOfBrush"],ow="__ecBrushSelect",PM="__ecInBrushSelectEvent";function j9(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new FE(t.option,e);r.setInputRanges(t.areas,e)})}function Y0t(e,t,r){var n=[],a,i;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),j9(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ct(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],h=[],v=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=j(o.areas,function(b){var x=Z0t[b.brushType],w=vt({boundingRect:x?x(b):void 0},b);return w.selectors=F0t(w),w}),g=IM(o.option,A5,function(b){b.mappingMethod="fixed"});Y(f)&&D(f,function(b){c[b]=1});function y(b){return f==="all"||!!c[b]}function m(b){return!!b.length}e.eachSeries(function(b,x){var w=v[x]=[];b.subType==="parallel"?_(b,x):S(b,x,w)});function _(b,x){var w=b.coordinateSystem;d=d||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(T,C){T==="active"&&(h[C]=1)})}function S(b,x,w){if(!(!b.brushSelector||X0t(o,x))&&(D(p,function(C){o.brushTargetManager.controlSeries(C,b,e)&&w.push(C),d=d||m(w)}),y(x)&&m(w))){var T=b.getData();T.each(function(C){M5(b,w,T,C)&&(h[C]=1)})}}e.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var T=v[x],C=b.getData(),A=y(x)?function(M){return h[M]?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return M5(b,T,C,M)?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(x)?d:m(T))&&H0t(A5,g,C,A)})}),j0t(t,a,i,n,r)}function j0t(e,t,r,n,a){if(a){var i=e.getZr();if(!i[PM]){i[ow]||(i[ow]=W0t);var o=Fh(i,ow,r,t);o(e,n)}}}function W0t(e,t){if(!e.isDisposed()){var r=e.getZr();r[PM]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[PM]=!1}}function M5(e,t,r,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e.brushSelector(n,r,o.selectors,o))return!0}}function X0t(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(Y(r)?bt(r,t)<0:t!==r)}var Z0t={rect:function(e){return D5(e.range)},polygon:function(e){for(var t,r=e.range,n=0,a=r.length;n<a;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=r[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&D5(t)}};function D5(e){return new yt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var $0t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new dE(n.getZr())).on("brush",J(this._onBrush,this)).mount()},t.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},t.prototype.updateTransform=function(r,n,a,i){j9(n),this._updateController(r,n,a,i)},t.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},t.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},t.prototype._updateController=function(r,n,a,i){(!i||i.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(a)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:ct(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:ct(a),$from:n})},t.type="brush",t}(ie),q0t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&Y9(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=j(r,function(n){return L5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=L5(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:V.color.backgroundTint,borderColor:V.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:V.color.disabled},t}(At);function L5(e,t){return xt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Lt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var K0t=["rect","polygon","lineX","lineY","keep","clear"],Q0t=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,a){this.render(r,n,a)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),a={};return D(r.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(r,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:K0t.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Jn);function J0t(e){e.registerComponentView($0t),e.registerComponentModel(q0t),e.registerPreprocessor(V0t),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Y0t),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},De),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},De),oc("brush",Q0t)}var t_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:V.size.m,backgroundColor:V.color.transparent,borderColor:V.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:V.color.primary},subtextStyle:{fontSize:12,color:V.color.quaternary}},t}(At),e_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ot(r.get("textBaseline"),r.get("textVerticalAlign")),f=new zt({style:ee(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),v=new zt({style:ee(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){z0(d,"_"+r.get("target"))}),p&&v.on("click",function(){z0(p,"_"+r.get("subtarget"))}),mt(f).eventData=mt(v).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(f),h&&i.add(v);var y=i.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=rr(r,a),S=de(m,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),y=i.getBoundingRect();var x=S.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var T=new Ct({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(ie);function r_t(e){e.registerComponentModel(t_t),e.registerComponentView(e_t)}var E5=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,f){var c=Qe(Oh(u),""),h;dt(u)?(h=ct(u),h.value=f):h=f,o.push(h),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Hr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:V.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:V.color.secondary},data:[]},t}(At),W9=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=ul(E5.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:V.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:V.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:V.color.tertiary},itemStyle:{color:V.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:V.color.accent50,borderColor:V.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:V.color.accent50,borderColor:V.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:V.color.accent60},itemStyle:{color:V.color.accent60,borderColor:V.color.accent60},controlStyle:{color:V.color.accent70,borderColor:V.color.accent70}},progress:{lineStyle:{color:V.color.accent30},itemStyle:{color:V.color.accent40}},data:[]}),t}(E5);Ee(W9,jS.prototype);var n_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(ie),a_t=function(e){G(t,e);function t(r,n,a,i){var o=e.call(this,r,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(xa),sw=Math.PI,O5=Mt(),i_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var i=this._layout(r,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,r);r.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return je("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,r)},this),this._renderAxisLabel(i,s,l,r),this._position(i,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=s_t(r,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":Q(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:sw/2},c=i==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),v=h.get("show",!0),d=v?h.get("itemSize"):0,p=v?h.get("itemGap"):0,g=d+p,y=r.get(["label","rotate"])||0;y=y*sw/180;var m,_,S,b=h.get("position",!0),x=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),C=0,A=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[A-d,0],A-=g)):(x&&(m=[A-d,0],A-=g),w&&(_=[0,0],C+=g),T&&(S=[A-d,0],A-=g));var M=[C,A];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:d,controlGap:p}},t.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=sr(),l=o.x,u=o.y+o.height;Ua(s,s,[-l,-u]),Yo(s,s,-sw/2),Ua(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),h=m(i.getBoundingRect()),v=[a.x,a.y],d=[i.x,i.y];d[0]=v[0]=f[0][0];var p=r.labelPosOpt;if(p==null||Q(p)){var g=p==="+"?0:1;_(v,c,f,1,g),_(d,h,f,1,1-g)}else{var g=p>=0?0:1;_(v,c,f,1,g),d[1]=v[1]+p}a.setPosition(v),i.setPosition(d),a.rotation=i.rotation=r.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},t.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType"),o=o_t(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new a_t("value",o,r.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new ht;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Be({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:F({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Be({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:vt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:J(o._changeTimeline,o,u.value)},g=R5(c,h,n,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Os(g);var y=mt(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),d=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new zt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:J(o._changeTimeline,o,c),silent:!1,style:ee(v,{text:f.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=ee(d),y.ensureState("progress").style=ee(p),n.add(y),Os(y),O5(y).dataIndex=c,o._tickLabels.push(y)})}},t.prototype._renderControl=function(r,n,a,i){var o=r.controlSize,s=r.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);h(r.nextBtnPosition,"next",J(this._changeTimeline,this,c?"-":"+")),h(r.prevBtnPosition,"prev",J(this._changeTimeline,this,c?"+":"-")),h(r.playPosition,f?"stop":"play",J(this._handlePlayClick,this,!f),!0);function h(v,d,p,g){if(v){var y=Fa(ot(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=l_t(i,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),Os(_)}}},t.prototype._renderCurrentPointer=function(r,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=J(u._handlePointerDrag,u),c.ondragend=J(u._handlePointerDragend,u),I5(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){I5(c,u._progressLine,s,a,i)}};this._currentPointer=R5(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=Dn(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return Ba(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-r);f<a&&(a=f,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<r);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",O5(a[i]).dataIndex<=r)},t.type="timeline.slider",t}(n_t);function o_t(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new ih({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new BL({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new No}}function s_t(e,t){return de(e.getBoxLayoutParams(),rr(e,t).refContainer,e.get("padding"))}function l_t(e,t,r,n){var a=n.style,i=zh(e.get(["controlStyle",t]),n||{},new yt(r[0],r[1],r[2],r[3]));return a&&i.setStyle(a),i}function R5(e,t,r,n,a,i){var o=t.get("color");if(a)a.setColor(o),r.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=Ve(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),r.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=xt({rectHover:!0,z2:100},n,!0);var u=Yh(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=hf(e.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=e.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function I5(e,t,r,n,a,i){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",r));if(i||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function u_t(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var a=r.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),vt({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function f_t(e){var t=e&&e.timeline;Y(t)||(t=t?[t]:[]),D(t,function(r){r&&c_t(r)})}function c_t(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),P5(e),nu(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});nu(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!nu(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}D(e.data||[],function(a){dt(a)&&!Y(a)&&(!nu(a,"value")&&nu(a,"name")&&(a.value=a.name),P5(a))})}function P5(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};D(n,function(o,s){!i[s]&&!nu(a,s)&&(a[s]=o)}),r.label&&!nu(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function nu(e,t){return e.hasOwnProperty(t)}function h_t(e){e.registerComponentModel(W9),e.registerComponentView(i_t),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),u_t(e),e.registerPreprocessor(f_t)}function WE(e,t){if(!e)return!1;for(var r=Y(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function Fy(e){Ru(e,"label",["show"])}var Yy=Mt(),ki=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r.preventAutoZ=!0,r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(It.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Yy(s)[o];if(!l||!l.data){Yy(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Fy(l),D(l.data,function(f){f instanceof Array?(Fy(f[0]),Fy(f[1])):Fy(f)}),u=this.createMarkerModelFromSeries(l,this,n),F(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Yy(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return je("section",{header:this.name,blocks:[je("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var a=jS.prototype.getDataParams.call(this,r,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(r,n){return Yy(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(At);Ee(ki,jS.prototype);var v_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(ki);function NM(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function d_t(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function jy(e,t,r,n,a,i,o){var s=[],l=Po(t,a),u=l?t.getCalculationInfo("stackResultDimension"):a,f=m_(t,u,e),c=t.hostModel,h=c.indicesOfNearest(r,u,f)[0];s[i]=t.get(n,h),s[o]=t.get(u,h);var v=t.get(a,h),d=Ra(t.get(a,h));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,v]}var Wy={min:St(jy,"min"),max:St(jy,"max"),average:St(jy,"average"),median:St(jy,"median")};function Cp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!d_t(t)&&!Y(t.coord)&&Y(a)){var i=X9(t,r,n,e);if(t=ct(t),t.type&&Wy[t.type]&&i.baseAxis&&i.valueAxis){var o=bt(a,i.baseAxis.dim),s=bt(a,i.valueAxis.dim),l=Wy[t.type](r,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(a)){t.coord=[];var u=e.getBaseAxis();if(u&&t.type&&Wy[t.type]){var f=n.getOtherAxis(u);f&&(t.value=m_(r,r.mapDimension(f.dim),t.type))}}else for(var c=t.coord,h=0;h<2;h++)Wy[c[h]]&&(c[h]=m_(r,r.mapDimension(a[h]),c[h]));return t}}function X9(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(p_t(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function p_t(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Ap(e,t){return e&&e.containData&&t.coord&&!NM(t)?e.containData(t.coord):!0}function g_t(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!NM(t)&&!NM(r)?e.containZone(t.coord,r.coord):!0}function Z9(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return Ps(o,t[i])}:function(r,n,a,i){return Ps(r.value,t[i])}}function m_(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var lw=Mt(),XE=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=it()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){lw(s).keep=!1}),n.eachSeries(function(s){var l=ki.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!lw(s).keep&&i.group.remove(s.group)}),y_t(n,o,this.type)},t.prototype.markKeep=function(r){lw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;D(r,function(i){var o=ki.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?uU(l):U2(l))})}})},t.type="marker",t}(ie);function y_t(e,t,r){e.eachSeries(function(n){var a=ki.getMarkerModelFromSeries(n,r),i=t.get(n.id);if(a&&i&&i.group){var o=zu(a),s=o.z,l=o.zlevel;HS(i.group,s,l)}})}function N5(e,t,r){var n=t.coordinateSystem,a=r.getWidth(),i=r.getHeight(),o=n&&n.getArea&&n.getArea();e.each(function(s){var l=e.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:a,c=u?o?o.height:0:i,h=u&&o?o.x:0,v=u&&o?o.y:0,d,p=K(l.get("x"),f)+h,g=K(l.get("y"),c)+v;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(e.getValues(e.dimensions,s));else if(n){var y=e.get(n.dimensions[0],s),m=e.get(n.dimensions[1],s);d=n.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),e.setItemLayout(s,d)})}var m_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=ki.getMarkerModelFromSeries(i,"markPoint");o&&(N5(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new hg),c=__t(o,r,n);n.setData(c),N5(n.getData(),r,i),c.each(function(h){var v=c.getItemModel(h),d=v.getShallow("symbol"),p=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(ft(d)||ft(p)||ft(g)||ft(y)){var _=n.getRawValue(h),S=n.getDataParams(h);ft(d)&&(d=d(_,S)),ft(p)&&(p=p(_,S)),ft(g)&&(g=g(_,S)),ft(y)&&(y=y(_,S))}var b=v.getModel("itemStyle").getItemStyle(),x=v.get("z2"),w=ug(l,"color");b.fill||(b.fill=w),c.setItemVisual(h,{z2:ot(x,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){mt(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(XE);function __t(e,t,r){var n;e?n=j(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return F(F({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Hr(n,r),i=j(r.get("data"),St(Cp,t));e&&(i=Ft(i,St(Ap,e)));var o=Z9(!!e,n);return a.initData(i,null,o),a}function S_t(e){e.registerComponentModel(v_t),e.registerComponentView(m_t),e.registerPreprocessor(function(t){WE(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var b_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ki),Xy=Mt(),x_t=function(e,t,r,n){var a=e.getData(),i;if(Y(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=yr(n.yAxis,n.xAxis);else{var u=X9(n,a,t,e);s=u.valueAxis;var f=NL(a,u.valueDataDim);l=m_(a,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=ct(n),d={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,d.coord[h]=1/0;var p=r.get("precision");p>=0&&Bt(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[c]=d.coord[c]=l,i=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[Cp(e,i[0]),Cp(e,i[1]),F({},i[2])];return g[2].type=g[2].type||null,xt(g[2],g[0]),xt(g[2],g[1]),g};function __(e){return!isNaN(e)&&!isFinite(e)}function k5(e,t,r,n){var a=1-e,i=n.dimensions[e];return __(t[a])&&__(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function w_t(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(k5(1,r,n,e)||k5(0,r,n,e)))return!0}return Ap(e,t[0])&&Ap(e,t[1])}function uw(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=K(o.get("x"),a.getWidth()),u=K(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var f=i.dimensions,c=e.get(f[0],t),h=e.get(f[1],t);s=i.dataToPoint([c,h])}if(Zs(i,"cartesian2d")){var v=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;__(e.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[r?0:1]):__(e.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var T_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=ki.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Xy(o).from,u=Xy(o).to;l.each(function(f){uw(l,f,!0,i,a),uw(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new hE);this.group.add(f.group);var c=C_t(o,r,n),h=c.from,v=c.to,d=c.line;Xy(n).from=h,Xy(n).to=v,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");Y(p)||(p=[p,p]),Y(g)||(g=[g,g]),Y(y)||(y=[y,y]),Y(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),d.each(function(S){var b=d.getItemModel(S),x=b.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]);var w=b.get("z2");x.stroke==null&&(x.stroke=h.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:ot(w,0),fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:x})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){mt(S).dataModel=n,S.traverse(function(b){mt(b).dataModel=n})});function _(S,b,x){var w=S.getItemModel(b);uw(S,b,x,r,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=ug(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ot(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ot(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:ot(w.get("symbolSize"),g[x?0:1]),symbol:ot(w.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(XE);function C_t(e,t,r){var n;e?n=j(e&&e.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return F(F({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Hr(n,r),i=new Hr(n,r),o=new Hr([],r),s=j(r.get("data"),St(x_t,t,e,r));e&&(s=Ft(s,St(w_t,e)));var l=Z9(!!e,n);return a.initData(j(s,function(u){return u[0]}),null,l),i.initData(j(s,function(u){return u[1]}),null,l),o.initData(j(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function A_t(e){e.registerComponentModel(b_t),e.registerComponentView(T_t),e.registerPreprocessor(function(t){WE(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var M_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ki),Zy=Mt(),D_t=function(e,t,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Cp(e,a),s=Cp(e,i),l=o.coord,u=s.coord;l[0]=yr(l[0],-1/0),l[1]=yr(l[1],-1/0),u[0]=yr(u[0],1/0),u[1]=yr(u[1],1/0);var f=TS([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function S_(e){return!isNaN(e)&&!isFinite(e)}function z5(e,t,r,n){var a=1-e;return S_(t[a])&&S_(r[a])}function L_t(e,t){var r=t.coord[0],n=t.coord[1],a={coord:r,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return Zs(e,"cartesian2d")?r&&n&&(z5(1,r,n)||z5(0,r,n))?!0:g_t(e,a,i):Ap(e,a)||Ap(e,i)}function B5(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=K(o.get(r[0]),a.getWidth()),u=K(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=e.getValues(["x0","y0"],t),c=e.getValues(["x1","y1"],t),h=i.clampData(f),v=i.clampData(c),d=[];r[0]==="x0"?d[0]=h[0]>v[0]?c[0]:f[0]:d[0]=h[0]>v[0]?f[0]:c[0],r[1]==="y0"?d[1]=h[1]>v[1]?c[1]:f[1]:d[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(d,r,!0)}else{var p=e.get(r[0],t),g=e.get(r[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Zs(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=e.get(r[0],t),g=e.get(r[1],t);S_(p)?s[0]=m.toGlobalCoord(m.getExtent()[r[0]==="x0"?0:1]):S_(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var V5=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],E_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=ki.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=j(V5,function(c){return B5(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new ht});this.group.add(f.group),this.markKeep(f);var c=O_t(o,r,n);n.setData(c),c.each(function(h){var v=j(V5,function(A){return B5(c,h,A,r,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",h)),d.parse(c.get("x1",h))],_=[p.parse(c.get("y0",h)),p.parse(c.get("y1",h))];Dn(m),Dn(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),b=!S;c.setItemLayout(h,{points:v,allClipped:b});var x=c.getItemModel(h),w=x.getModel("itemStyle").getItemStyle(),T=x.get("z2"),C=ug(l,"color");w.fill||(w.fill=C,Q(w.fill)&&(w.fill=Jd(w.fill,.4))),w.stroke||(w.stroke=C),c.setItemVisual(h,"style",w),c.setItemVisual(h,"z2",ot(T,0))}),c.diff(Zy(f).data).add(function(h){var v=c.getItemLayout(h),d=c.getItemVisual(h,"z2");if(!v.allClipped){var p=new Ir({z2:ot(d,0),shape:{points:v.points}});c.setItemGraphicEl(h,p),f.group.add(p)}}).update(function(h,v){var d=Zy(f).data.getItemGraphicEl(v),p=c.getItemLayout(h),g=c.getItemVisual(h,"z2");p.allClipped?d&&f.group.remove(d):(d?Ht(d,{z2:ot(g,0),shape:{points:p.points}},n,h):d=new Ir({shape:{points:p.points}}),c.setItemGraphicEl(h,d),f.group.add(d))}).remove(function(h){var v=Zy(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var d=c.getItemModel(v),p=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),ur(h,er(d),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:Q(p.fill)?Jd(p.fill,1):V.color.neutral99}),tr(h,d),ye(h,null,null,d.get(["emphasis","disabled"])),mt(h).dataModel=n}),Zy(f).data=c,f.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(XE);function O_t(e,t,r){var n,a,i=["x0","y0","x1","y1"];if(e){var o=j(e&&e.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return F(F({},c),{name:u,ordinalMeta:null})});a=j(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new Hr(a,r)}else a=[{name:"value",type:"float"}],n=new Hr(a,r);var s=j(r.get("data"),St(D_t,t,e,r));e&&(s=Ft(s,St(L_t,e)));var l=e?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return Ps(v,a[h])}:function(u,f,c,h){return Ps(u.value,a[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}function R_t(e){e.registerComponentModel(M_t),e.registerComponentView(E_t),e.registerPreprocessor(function(t){WE(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var I_t=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},kM=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Y(n)&&D(n,function(i,o){Q(i)&&(i={type:i}),n[o]=xt(i,I_t(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&I2(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=it(),s=j(i,function(l){return(Q(l)||Bt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Lt(l,this,this.ecModel))},this);this._data=Ft(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;D(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;D(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;D(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&bt(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:V.size.m,align:"auto",backgroundColor:V.color.transparent,borderColor:V.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:V.color.disabled,inactiveBorderColor:V.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:V.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:V.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:V.color.tertiary,borderWidth:1,borderColor:V.color.border},emphasis:{selectorLabel:{show:!0,color:V.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(At),Wf=St,zM=D,$y=ht,$9=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new $y),this.group.add(this._selectorGroup=new $y),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var f=rr(r,a).refContainer,c=r.getBoxLayoutParams(),h=r.get("padding"),v=de(c,f,h),d=this.layoutInner(r,o,v,i,l,u),p=de(vt({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=z9(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),f=it(),c=n.get("selectedMode"),h=n.get("triggerEvent"),v=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),zM(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
162
+ `)){var m=new $y;m.newline=!0,u.add(m);return}var _=a.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,n,r,b,w,x,c,i);T.on("click",Wf(G5,y,null,i,v)).on("mouseover",Wf(BM,_.name,null,i,v)).on("mouseout",Wf(VM,_.name,null,i,v)),a.ssr&&T.eachChild(function(C){var A=mt(C);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),h&&T.eachChild(function(C){g.packEventData(C,n,_,p,y)}),f.set(y,!0)}else a.eachRawSeries(function(C){var A=this;if(!f.get(y)&&C.legendVisualProvider){var M=C.legendVisualProvider;if(!M.containName(y))return;var E=M.indexOfName(y),L=M.getItemVisual(E,"style"),R=M.getItemVisual(E,"legendIcon"),P=Gr(L.fill);P&&P[3]===0&&(P[3]=.2,L=F(F({},L),{fill:ca(P,"rgba")}));var O=this._createItem(C,y,p,d,n,r,{},L,R,c,i);O.on("click",Wf(G5,null,y,i,v)).on("mouseover",Wf(BM,null,y,i,v)).on("mouseout",Wf(VM,null,y,i,v)),a.ssr&&O.eachChild(function(N){var I=mt(N);I.seriesIndex=C.seriesIndex,I.dataIndex=p,I.ssrType="legend"}),h&&O.eachChild(function(N){A.packEventData(N,n,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype.packEventData=function(r,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};mt(r).eventData=s},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();zM(r,function(u){var f=u.type,c=new zt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);ur(c,{normal:h,emphasis:v},{defaultText:u.title}),Os(c)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,f,c,h){var v=r.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=P_t(f,i,l,u,v,g,h),b=new $y,x=i.getModel("textStyle");if(ft(r.getLegendIcon)&&(!_||_==="inherit"))b.add(r.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;b.add(N_t({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),M=n;Q(A)&&A?M=A.replace("{name}",n??""):ft(A)&&(M=A(n));var E=g?x.getTextColor():i.get("inactiveColor");b.add(new zt({style:ee(x,{text:M,x:T,y:p/2,fill:E,align:C,verticalAlign:"middle"},{inheritColor:E})}));var L=new Ct({shape:b.getBoundingRect(),style:{fill:"transparent"}}),R=i.getModel("tooltip");return R.get("show")&&Wo({el:L,componentModel:o,itemName:n,itemTooltipOption:R.option}),b.add(L),b.eachChild(function(P){P.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Os(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();gu(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){gu("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:c[p]+=h[g]+d,v[1-p]+=f[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ie);function P_t(e,t,r,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),zM(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:ah(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function N_t(e){var t=e.icon||"roundRect",r=Ve(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=V.color.neutral00,r.style.lineWidth=2),r}function G5(e,t,r,n){VM(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),BM(e,t,r,n)}function q9(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function BM(e,t,r,n){q9(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function VM(e,t,r,n){q9(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function k_t(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function zv(e,t,r){var n=e==="allSelect"||e==="inverseSelect",a={},i=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),H5(s,a),i.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){D(a,function(l,u){s[l?"select":"unSelect"](u)}),H5(s,o)}),n?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function H5(e,t){var r=t||{};return D(e.getData(),function(n){var a=n.get("name");if(!(a===`
163
+ `||a==="")){var i=e.isSelected(a);nt(r,a)?r[a]=r[a]&&i:r[a]=i}}),r}function z_t(e){e.registerAction("legendToggleSelect","legendselectchanged",St(zv,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",St(zv,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",St(zv,"inverseSelect")),e.registerAction("legendSelect","legendselected",St(zv,"select")),e.registerAction("legendUnSelect","legendunselected",St(zv,"unSelect"))}function K9(e){e.registerComponentModel(kM),e.registerComponentView($9),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,k_t),e.registerSubTypeDefaulter("legend",function(){return"plain"}),z_t(e)}var B_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=ff(r);e.prototype.init.call(this,r,n,a),U5(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),U5(this,this.option,r)},t.type="legend.scroll",t.defaultOption=ul(kM.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:V.color.accent50,pageIconInactiveColor:V.color.accent10,pageIconSize:15,pageTextStyle:{color:V.color.tertiary},animationDurationUpdate:800}),t}(kM);function U5(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Pi(t,r,{type:"box",ignoreSize:!!a})}var F5=ht,fw=["width","height"],cw=["x","y"],V_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new F5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new F5)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=Y(c)?c:[c,c];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new zt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=zh(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:J(u._pageGo,u,y,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=fw[u],c=cw[u],h=fw[1-u],v=cw[1-u];o&&gu("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ct(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(r,i,y,u,f,h,v,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;gu(r.get("orient"),f,r.get("itemGap"),i?a.width:null,i?null:a.height),gu("horizontal",h,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>a[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=ot(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var S=r.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new Ct({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&Ht(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?r:null),this._updatePageInfoView(r,w),b},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",Q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=fw[o],l=cw[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t}($9);function G_t(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function H_t(e){wt(K9),e.registerComponentModel(B_t),e.registerComponentView(V_t),G_t(e)}function U_t(e){wt(K9),wt(H_t)}var F_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=ul(Tp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Tp),ZE=Mt();function Y_t(e,t,r){ZE(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function j_t(e,t){for(var r=ZE(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Q9(r,o))}}}function Q9(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function W_t(e,t){var r={model:t,containsPoint:St(Z_t,t),dispatchAction:St(X_t,e),dataZoomInfoMap:null,controller:null},n=r.controller=new df(e.getZr());return D(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function X_t(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Z_t(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function $_t(e,t,r){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[a+u]>i[a+n]&&(n=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:r,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function q_t(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=ZE(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=it());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=P9(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,W_t(r,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=it());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Q9(a,i);return}var f=$_t(l,i,r);o.enable(f.controlType,f.opt),Fh(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var K_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),Y_t(a,r,{pan:J(hw.pan,this),zoom:J(hw.zoom,this),scrollMove:J(hw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){j_t(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(GE),hw={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=vw[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if($s(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:Y5(function(e,t,r,n,a,i){var o=vw[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:Y5(function(e,t,r,n,a,i){var o=vw[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function Y5(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if($s(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var vw={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function J9(e){HE(e),e.registerComponentModel(F_t),e.registerComponentView(K_t),q_t(e)}var Q_t=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ul(Tp.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:V.color.accent10,borderRadius:0,backgroundColor:V.color.transparent,dataBackground:{lineStyle:{color:V.color.accent30,width:.5},areaStyle:{color:V.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:V.color.accent40,width:.5},areaStyle:{color:V.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:V.color.neutral00,borderColor:V.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:V.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:V.color.tertiary},brushSelect:!0,brushStyle:{color:V.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:V.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Tp),Bv=Ct,J_t=1,dw=30,tSt=7,Vv="horizontal",j5="vertical",eSt=5,rSt=["line","bar","candlestick","scatter"],nSt={easing:"cubicOut",duration:100,delay:0},aSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=J(this._onBrush,this),this._onBrushEnd=J(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),Fh(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){up(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new ht;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?tSt:0,o=rr(r,n).refContainer,s=this._findCoordRect(),l=r.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Vv?{right:o.width-s.x-s.width,top:o.height-dw-l-i,width:s.width,height:dw}:{right:l,top:s.y,width:dw,height:s.height},f=ff(r.option);D(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=u[h])});var c=de(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===j5&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Vv&&!o?{scaleY:l?1:-1,scaleX:1}:a===Vv&&o?{scaleY:l?1:-1,scaleX:-1}:a===j5&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new Bv({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Bv({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:J(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(r.thisDim),h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var d=[0,n[1]],p=[0,n[0]],g=[[n[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=n[0]/(c[1]-c[0]),S=r.thisAxis.type==="time",b=-m,x=Math.round(o.count()/n[0]),w;o.each([r.thisDim,l],function(E,L,R){if(x>0&&R%x){S||(b+=m);return}b=S?(+E-c[0])*_:b+m;var P=L==null||isNaN(L)||L==="",O=P?0:Yt(L,h,d,!0);P&&!w&&R?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!P&&w&&(g.push([b,0]),y.push([b,0])),P||(g.push([b,O]),y.push([b,O])),w=P}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function C(E){var L=T.getModel(E?"selectedDataBackground":"dataBackground"),R=new ht,P=new Ir({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),O=new _r({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(P),R.add(O),R}for(var A=0;A<3;A++){var M=C(A===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&bt(rSt,u.get("type"))<0)){var f=i.getComponent(xs(o),s).axis,c=iSt(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:h}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=n.filler=new Bv({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Bv({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:J_t,fill:V.color.transparent}})),D([0,1],function(_){var S=l.get("handleIcon");!G0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Ve(S,-1,0,2,2,null,!0);b.attr({cursor:oSt(this._orient),draggable:!0,drift:J(this._onDragMove,this,_),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=K(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Os(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(a[_]=b);var C=l.getModel("textStyle"),A=l.get("handleLabel")||{},M=A.show||!1;r.add(i[_]=new zt({silent:!0,invisible:!M,style:ee(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(c){var d=K(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Ct({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=Ve(l.get("moveHandleIcon"),-g/2,-g/2,g,g,V.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Ct({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:"default",drift:J(this._onDragMove,this,"all"),ondragstart:J(this._showDataInfo,this,!0),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Yt(r[0],[0,100],n,!0),Yt(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];$s(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?Yt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Yt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Dn([Yt(i[0],o,l,!0),Yt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=Dn(a.slice()),o=this._size;D([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new Ct,c.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,c=r?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=Dn(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=Rs(a.handles[d].parent,this.group),g=GS(d===0?"right":"left",p),y=this._handleWidth/2+eSt,m=Ba([h[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Vv?"middle":g,align:o===Vv?g:"center",text:s[d]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return ft(i)?i(r,s):Q(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(r){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=r||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,Eo(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ba([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new gt(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();$s(0,l,o,0,u.minSpan!=null?Yt(u.minSpan,s,o,!0):null,u.maxSpan!=null?Yt(u.maxSpan,s,o,!0):null),this._range=Dn([Yt(l[0],o,s,!0),Yt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Eo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Bv({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?nSt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=P9(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(GE);function iSt(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function oSt(e){return e==="vertical"?"ns-resize":"ew-resize"}function tY(e){e.registerComponentModel(Q_t),e.registerComponentView(aSt),HE(e)}function sSt(e){wt(J9),wt(tY)}var eY={get:function(e,t,r){var n=ct((lSt[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},lSt={color:{active:["#006edd","#e0ffff"],inactive:[V.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},W5=lr.mapVisual,uSt=lr.eachVisual,fSt=Y,X5=D,cSt=Dn,hSt=Yt,b_=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&Y9(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=J(r,this),this.controllerVisuals=IM(this.option.controller,n,r),this.targetVisuals=IM(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesId,n=this.option.seriesIndex;n==null&&r==null&&(n="all");var a=Rh(this.ecModel,"series",{index:n,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return j(a,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Y(r)&&(r=r.slice(),u=!0);var f=n?r:u?[c(r[0]),c(r[1])]:c(r);if(Q(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(ft(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+f[1]:r[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=cSt([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var a=r.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});xt(i,a),xt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){fSt(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:r.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},X5(d,function(g,y){if(lr.isValidType(y)){var m=eY.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";X5(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&ct(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&ct(v)||(s?m[0]:[m[0],m[0]])),_.symbol=W5(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;uSt(S,function(x){x>b&&(b=x)}),_.symbolSize=W5(S,function(x){return hSt(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:V.color.transparent,borderColor:V.color.borderTint,contentColor:V.color.theme[0],inactiveColor:V.color.disabled,borderWidth:0,padding:V.size.m,textGap:10,precision:0,textStyle:{color:V.color.secondary}},t}(At),Z5=[20,140],vSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=Z5[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=Z5[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Dn((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,a=this.getExtent(),i=ot(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=r)&&(i&&n[1]>=a[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(r){var n=$5(this,"outOfRange",this.getExtent()),a=$5(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:r(v,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ul(b_.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:V.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:V.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:V.color.shadow}}),t}(b_);function $5(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,a=(r[1]-r[0])/n,i=r[0],o=[],s=0;s<=n&&i<r[1];s++)o.push(i),i+=a;return o.push(r[1]),o}var rY=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,a,i){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,a,i)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,a=Gh(n.get("padding")||0),i=r.getBoundingRect();r.add(new Ct({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[i||o.getValueState(r)],h=lr.prepareVisualTypes(c);return D(h,function(v){var d=c[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),lr.dependsOn(v,n)&&d&&d.applyVisual(r,u,f)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,a=this.api,i=rr(n,a).refContainer;FS(r,n.getBoxLayoutParams(),i)},t.prototype.doRender=function(r,n,a,i){},t.type="visualMap",t}(ie),q5=[["left","right","width"],["top","bottom","height"]];function nY(e,t,r){var n=e.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=q5[o],l=[0,null,10],u={},f=0;f<3;f++)u[q5[1-o][f]]=l[f],u[s[f]]=f===2?r[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],h=de(u,i,n.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function Vm(e,t){return D(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var ii=Yt,dSt=D,K5=Math.min,pw=Math.max,pSt=12,gSt=6,ySt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.init=function(r,n){e.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=J(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=J(this._hideIndicator,this)},t.prototype.doRender=function(r,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var a=r.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new zt({style:ee(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":c),align:v.get("align")||(h==="horizontal"?c:"center"),text:i})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=nY(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new ht;u.add(f),f.add(a.outOfRange=Q5()),f.add(a.inRange=Q5(null,s?t3(this._orient):null,J(this._dragHandle,this,"all",!1),J(this._dragHandle,this,"all",!0))),f.setClipPath(new Ct({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),h=pw(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,h,o),this._createHandle(n,u,1,i,h,o)),this._createIndicator(n,u,i,h,o),r.add(u)},t.prototype._createHandle=function(r,n,a,i,o,s){var l=J(this._dragHandle,this,a,!1),u=J(this._dragHandle,this,a,!0),f=Fa(r.get("handleSize"),i[0]),c=Ve(r.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=t3(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Eo(y.event)}}),c.x=i[0]/2,c.useStyle(r.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),su(c,!0),n.add(c);var v=this.visualMapModel.textStyleModel,d=new zt({cursor:h,draggable:!0,drift:l,onmousemove:function(y){Eo(y.event)},ondragend:u,style:ee(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},t.prototype._createIndicator=function(r,n,a,i,o){var s=Fa(r.get("indicatorSize"),a[0]),l=Ve(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof cr){var f=l.style;l.useStyle(F({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,h=new zt({silent:!0,invisible:!0,style:ee(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:gSt)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():J5(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),a=r.getExtent(),i=[0,r.itemSize[1]];this._handleEnds=[ii(n[0],a,i,!0),ii(n[1],a,i,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];$s(n,i,o,r,0);var s=a.getExtent();this._dataInterval=[ii(i[0],o,s,!0),ii(i[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new lf(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var a=100,i=[],o=(r[1]-r[0])/a;i.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=r[0]+o*s;if(l>r[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(r,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new ht(n==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",a.mainGroup);dSt([0,1],function(c){var h=o[c];h.setStyle("fill",n.handlesColor[c]),h.y=r[c];var v=ii(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=Ba(a.handleLabelPoints[c],Rs(h,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(r,"color",h),d=this.getControllerVisual(r,"symbolSize"),p=ii(r,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=Ba(f.indicatorLabelPoint,Rs(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:p,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var a=r.visualMapModel.itemSize,i=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);i[1]=K5(pw(0,i[1]),a[1]),r._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();r=K5(pw(o[0],r),o[1]);var l=mSt(a,s,o),u=[r-l,r+l],f=ii(r,o,s,!0),c=[ii(u[0],o,s,!0),ii(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(n||J5(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=$tt(h,v);this._dispatchHighDown("downplay",Vm(d[0],a)),this._dispatchHighDown("highlight",Vm(d[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(uu(r.target,function(l){var u=mt(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Vm(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,a,i){var o=Rs(n,i?null:this.group);return Y(r)?Ba(r,o,a):GS(r,o,a)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(rY);function Q5(e,t,r,n){return new Ir({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(a){Eo(a.event)},ondragend:n})}function mSt(e,t,r){var n=pSt/2,a=e.get("hoverLinkDataSize");return a&&(n=ii(a,t,r,!0)/2),n}function J5(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function t3(e){return e==="vertical"?"ns-resize":"ew-resize"}var _St={type:"selectDataRange",event:"dataRangeSelected",update:"update"},SSt=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},bSt=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var a=e.pipelineContext;!n.isTargetSeries(e)||a&&a.large||r.push(U0t(n.stateList,n.targetVisuals,J(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(J(xSt,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(i.dimension=o,n.push(i))}}),e.getData().setVisual("visualMeta",n)}}];function xSt(e,t,r,n){for(var a=t.targetVisuals[n],i=lr.prepareVisualTypes(a),o={color:ug(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(r,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var e3=D;function wSt(e){var t=e&&e.visualMap;Y(t)||(t=t?[t]:[]),e3(t,function(r){if(r){Xf(r,"splitList")&&!Xf(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Y(n)&&e3(n,function(a){dt(a)&&(Xf(a,"start")&&!Xf(a,"min")&&(a.min=a.start),Xf(a,"end")&&!Xf(a,"max")&&(a.max=a.end))})}})}function Xf(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var r3=!1;function aY(e){r3||(r3=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(_St,SSt),D(bSt,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(wSt))}function iY(e){e.registerComponentModel(vSt),e.registerComponentView(ySt),aY(e)}var TSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],CSt[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=ct(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=j(this._pieceList,function(l){return l=ct(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},a=lr.listVisualTypes(),i=this.isCategory();D(r.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(r,f,l)||o(r.target,f,l)},this),!u&&D(this.stateList,function(f){(r[f]||(r[f]={}))[l]=eY.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var a=this.option,i=this._pieceList,o=(n?a:r).selected||{};if(a.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=ct(r)},t.prototype.getValueState=function(r){var n=lr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=lr.findPieceIndex(l,a);f===r&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var a=r.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=r(h,c);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=ul(b_.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(b_),CSt={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),aA(e),D(e,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;D(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),n3(t,e)},pieces:function(e){var t=this.option;D(t.pieces,function(r,n){dt(r)||(r={value:r});var a={text:"",index:n};if(r.label!=null&&(a.text=r.label),r.hasOwnProperty("value")){var i=a.value=r.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=r[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=lr.retrieveVisuals(r),e.push(a)},this),n3(t,e),aA(e),D(e,function(r){var n=r.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function n3(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var ASt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=yr(n.get("showLabel",!0),!u),c=!n.get("selectedMode");u&&this._renderEndsText(r,u[0],s,f,o),D(l.viewPieceList,function(h){var v=h.piece,d=new ht;d.onclick=J(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new zt({style:ee(i,{x:y==="right"?-a:s[0]+a,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:ot(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}r.add(d)},this),u&&this._renderEndsText(r,u[1],s,f,o),gu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var a=this;r.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Vm(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return nY(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(r,n,a,i,o){if(n){var s=new ht,l=this.visualMapModel.textStyleModel;s.add(new zt({style:ee(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=j(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),i=r.get("orient"),o=r.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(r,n,a,i){var o=Ve(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,r.add(o)},t.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=ct(a.selected),s=n.getSelectedMapKey(r);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(rY);function oY(e){e.registerComponentModel(TSt),e.registerComponentView(ASt),aY(e)}function MSt(e){wt(iY),wt(oY)}var DSt=function(){function e(t){this._thumbnailModel=t}return e.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},e.prototype.renderContent=function(t){var r=t.api.getViewOfComponentModel(this._thumbnailModel);r&&(t.group.silent=!0,r.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:EU(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(t,r){var n=r.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},e}(),LSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.optionUpdated=function(r,n){this._updateBridge()},t.prototype._updateBridge=function(){var r=this._birdge=this._birdge||new DSt(this);if(this._target=null,this.ecModel.eachSeries(function(a){Dz(a,null)}),this.shouldShow()){var n=this.getTarget();Dz(n.baseMapProvider,r)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var r=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return r?r.subType!=="graph"&&(r=null):r=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:r},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:V.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:V.color.neutral30,borderColor:V.color.neutral40,opacity:.3},z:10},t}(At),ESt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this._api=a,this._model=r,this._coordSys||(this._coordSys=new pf),!this._isEnabled()){this._clear();return}this._renderVersion=a.getMainProcessVersion();var i=this.group;i.removeAll();var o=r.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||V.color.neutral00);var l=rr(r,a).refContainer,u=de(qU(r,!0),l),f=s.lineWidth||0,c=this._contentRect=ku(u.clone(),f/2,!0,!0),h=new ht;i.add(h),h.setClipPath(new Ct({shape:c.plain()}));var v=this._targetGroup=new ht;h.add(v);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Ct({style:s,shape:d,silent:!1,cursor:"grab"}));var p=r.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);h.add(this._windowRect=new Ct({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),i3(r,this)},t.prototype.renderContent=function(r){this._bridgeRendered=r,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),i3(this._model,this))},t.prototype._dealRenderContent=function(){var r=this._bridgeRendered;if(!(!r||r.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!r){var o=r.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=r.z2Range.min-10,a.setBoundingRect(s.x,s.y,s.width,s.height);var l=de({left:"center",top:"center",aspect:s.width/s.height},i);a.setViewRect(l.x,l.y,l.width,l.height),o.attr(a.getTransformInfo().raw),this._windowRect.z2=r.z2Range.max+10,this._resetRoamController(r.roamType)}}},t.prototype.updateWindow=function(r){var n=this._bridgeRendered;n&&n.renderVersion===r.renderVersion&&(n.targetTrans=r.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var r=this._bridgeRendered;if(!(!r||r.renderVersion!==this._renderVersion)){var n=ga([],r.targetTrans),a=ka([],this._coordSys.transform,n);this._transThisToTarget=ga([],a);var i=r.viewportRect;i?i=i.clone():i=new yt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(vt({r:s},i))}},t.prototype._resetRoamController=function(r){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new df(a.getZr())),!r||!this._isEnabled()){i.disable();return}i.enable(r,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return n._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",J(this._onPan,this)).on("zoom",J(this._onZoom,this))},t.prototype._onPan=function(r){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Le([],[r.oldX,r.oldY],n),i=Le([],[r.oldX-r.dx,r.oldY-r.dy],n);this._api.dispatchAction(a3(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},t.prototype._onZoom=function(r){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Le([],[r.originX,r.originY],n);this._api.dispatchAction(a3(this._model.getTarget().baseMapProvider,{zoom:1/r.scale,originX:a[0],originY:a[1]}))}},t.prototype._isEnabled=function(){var r=this._model;if(!r||!r.shouldShow())return!1;var n=r.getTarget().baseMapProvider;return!!n},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(ie);function a3(e,t){var r=e.mainType==="series"?e.subType+"Roam":e.mainType+"Roam",n={type:r};return n[e.mainType+"Id"]=e.id,F(n,t),n}function i3(e,t){var r=zu(e);HS(t.group,r.z,r.zlevel)}function OSt(e){e.registerComponentModel(LSt),e.registerComponentView(ESt)}var RSt={label:{enabled:!0},decal:{show:!1}},o3=Mt(),ISt={};function PSt(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=ct(RSt);xt(n.label,e.getLocaleModel().get("aria"),!1),xt(r.option,n,!1),a(),i();function a(){var u=r.getModel("decal"),f=u.get("show");if(f){var c=it();e.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),o3(h).scope=v}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if(ft(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=CA(h.ecModel,h.name,ISt,e.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=h.getRawData(),p={},g=o3(h).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=CA(h.ecModel,w,g,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?F(F({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=vt(c.option,f),!!c.get("enabled")){if(u.setAttribute("role","img"),c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var h=e.getSeriesCount(),v=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,p=Math.min(h,d),g;if(!(h<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var _=[],S=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),e.eachSeries(function(T,C){if(C<p){var A=void 0,M=T.get("name"),E=M?"withName":"withoutName";A=h>1?c.get(["series","multiple",E]):c.get(["series","single",E]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>v){var R=c.get(["data","partialData"]);A+=o(R,{displayCnt:v})}else A+=c.get(["data","allData"]);for(var P=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),N=c.get(["data","excludeDimensionId"]),I=[],k=0;k<L.count();k++)if(k<v){var B=L.getName(k),H=N?Ft(L.getValues(k),function(X,q){return bt(N,q)===-1}):L.getValues(k),U=c.get(["data",B?"withName":"withoutName"]);I.push(o(U,{name:B,value:H.join(P)}))}A+=I.join(P)+O,_.push(A)}});var b=c.getModel(["series","multiple","separator"]),x=b.get("middle"),w=b.get("end");g+=_.join(x)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!Q(u))return u;var c=u;return D(f,function(h,v){c=c.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),c}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=e.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function NSt(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},D(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function kSt(e){e.registerPreprocessor(NSt),e.registerVisual(e.PRIORITY.VISUAL.ARIA,PSt)}var s3={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},zSt=function(){function e(t){var r=this._condVal=Q(t)?new RegExp(t):tH(t)?t:null;if(r==null){var n="";jt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return Q(r)?this._condVal.test(t):Bt(r)?this._condVal.test(t+""):!1},e}(),BSt=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),VSt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),GSt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),HSt=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),USt=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},e}();function $E(e,t){if(e===!0||e===!1){var r=new BSt;return r.value=e,r}var n="";return sY(e)||jt(n),e.and?l3("and",e,t):e.or?l3("or",e,t):e.not?FSt(e,t):YSt(e,t)}function l3(e,t,r){var n=t[e],a="";Y(n)||jt(a),n.length||jt(a);var i=e==="and"?new VSt:new GSt;return i.children=j(n,function(o){return $E(o,r)}),i.children.length||jt(a),i}function FSt(e,t){var r=e.not,n="";sY(r)||jt(n);var a=new HSt;return a.child=$E(r,t),a.child||jt(n),a}function YSt(e,t){for(var r="",n=t.prepareGetValue(e),a=[],i=Nt(e),o=e.parser,s=o?mF(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=nt(s3,u)?s3[u]:u,c=e[u],h=s?s(c):c,v=fat(f,h)||f==="reg"&&new zSt(h);v||jt(r),a.push(v)}}a.length||jt(r);var d=new USt;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function sY(e){return dt(e)&&!Er(e)}var jSt=function(){function e(t,r){this._cond=$E(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function WSt(e,t){return new jSt(e,t)}var XSt={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=WSt(e.config,{valueGetterAttrMap:it({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;nt(s,"dimension")||jt(l);var f=t.getDimensionInfo(u);return f||jt(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)r=t.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},ZSt={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",a=ne(r);a.length||jt(n);var i=[];D(a,function(f){var c=f.dimension,h=f.order,v=f.parser,d=f.incomparable;if(c==null&&jt(n),h!=="asc"&&h!=="desc"&&jt(n),d&&d!=="min"&&d!=="max"){var p="";jt(p)}if(h!=="asc"&&h!=="desc"){var g="";jt(g)}var y=t.getDimensionInfo(c);y||jt(n);var m=v?mF(v):null;v&&!m&&jt(n),i.push({dimIdx:y.index,parser:m,comparator:new SF(h,d)})});var o=t.sourceFormat;o!==Sr&&o!==Un&&jt(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var h=0;h<i.length;h++){var v=i[h],d=t.retrieveValueFromItem(f,v.dimIdx),p=t.retrieveValueFromItem(c,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function $St(e){e.registerTransform(XSt),e.registerTransform(ZSt)}var qSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,a){e.prototype.init.call(this,r,n,a),this._sourceManager=new TF(this),GP(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),GP(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Va},t}(At),KSt=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(ie);function QSt(e){e.registerComponentModel(qSt),e.registerComponentView(KSt)}var ni=Ii.CMD;function mc(e,t){return Math.abs(e-t)<1e-5}function GM(e){var t=e.data,r=e.len(),n=[],a,i=0,o=0,s=0,l=0;function u(L,R){a&&a.length>2&&n.push(a),a=[L,R]}function f(L,R,P,O){mc(L,P)&&mc(R,O)||a.push(L,R,P,O,P,O)}function c(L,R,P,O,N,I){var k=Math.abs(R-L),B=Math.tan(k/4)*4/3,H=R<L?-1:1,U=Math.cos(L),X=Math.sin(L),q=Math.cos(R),st=Math.sin(R),Dt=U*N+P,lt=X*I+O,rt=q*N+P,et=st*I+O,at=N*B*H,$=I*B*H;a.push(Dt-at*X,lt+$*U,rt+at*st,et-$*q,rt,et)}for(var h,v,d,p,g=0;g<r;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===ni.L||y===ni.C||y===ni.Q)&&(a=[s,l])),y){case ni.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case ni.L:h=t[g++],v=t[g++],f(i,o,h,v),i=h,o=v;break;case ni.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case ni.Q:h=t[g++],v=t[g++],d=t[g++],p=t[g++],a.push(i+2/3*(h-i),o+2/3*(v-o),d+2/3*(h-d),p+2/3*(v-p),d,p),i=d,o=p;break;case ni.A:var _=t[g++],S=t[g++],b=t[g++],x=t[g++],w=t[g++],T=t[g++]+w;g+=1;var C=!t[g++];h=Math.cos(w)*b+_,v=Math.sin(w)*x+S,m?(s=h,l=v,u(s,l)):f(i,o,h,v),i=Math.cos(T)*b+_,o=Math.sin(T)*x+S;for(var A=(C?-1:1)*Math.PI/2,M=w;C?M>T:M<T;M+=A){var E=C?Math.max(M+A,T):Math.min(M+A,T);c(M,E,_,S,b,x)}break;case ni.R:s=i=t[g++],l=o=t[g++],h=s+t[g++],v=l+t[g++],u(h,l),f(h,l,h,v),f(h,v,s,v),f(s,v,s,l),f(s,l,h,l);break;case ni.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function HM(e,t,r,n,a,i,o,s,l,u){if(mc(e,r)&&mc(t,n)&&mc(a,o)&&mc(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-e,v=s-t,d=Math.sqrt(h*h+v*v);h/=d,v/=d;var p=r-e,g=n-t,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var b=h*p+v*g,x=-h*y-v*m,w=_-b*b,T=S-x*x;if(w<c&&b>=0&&T<c&&x>=0){l.push(o,s);return}var C=[],A=[];Ws(e,r,a,o,.5,C),Ws(t,n,i,s,.5,A),HM(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),HM(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function JSt(e,t){var r=GM(e),n=[];t=t||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],h=i[u++],v=i[u++],d=i[u++],p=i[u++];HM(s,l,f,c,h,v,d,p,o,t),s=d,l=p}n.push(o)}return n}function lY(e,t,r){var n=e[t],a=e[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=r-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function u3(e,t,r){for(var n=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=lY([l,u],f?0:1,t),h=(f?s:u)/c.length,v=0;v<c.length;v++)for(var d=(f?u:s)/c[v],p=0;p<c[v];p++){var g={};f?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function t1t(e,t,r){for(var n=e.width,a=e.height,i=n>a,o=lY([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=e[s]/o.length,h=0;h<o.length;h++)for(var v=e[l]/o[h],d=0;d<o[h];d++){var p={};p[u]=h*c,p[f]=d*v,p[s]=c,p[l]=v,p.x+=e.x,p.y+=e.y,r.push(p)}}function f3(e,t,r,n){return e*n-r*t}function e1t(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,f=o-a,c=s-i,h=f3(f,c,l,u);if(Math.abs(h)<1e-6)return null;var v=e-a,d=t-i,p=f3(v,d,f,c)/h;return p<0||p>1?null:new gt(p*l+e,p*u+t)}function r1t(e,t,r){var n=new gt;gt.sub(n,r,t),n.normalize();var a=new gt;gt.sub(a,e,t);var i=a.dot(n);return i}function Zf(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function n1t(e,t,r){for(var n=e.length,a=[],i=0;i<n;i++){var o=e[i],s=e[(i+1)%n],l=e1t(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&a.push({projPt:r1t(l,t,r),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var h=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],d=[h],p=[v],i=u.idx+1;i<=f.idx;i++)Zf(d,e[i].slice());Zf(d,v),Zf(d,h);for(var i=f.idx+1;i<=u.idx+n;i++)Zf(p,e[i%n].slice());return Zf(p,h),Zf(p,v),[{points:d},{points:p}]}function c3(e){var t=e.points,r=[],n=[];NS(t,r,n);var a=new yt(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new gt,f=new gt;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),n1t(t,u,f)}function x_(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);x_(e,i[0],a,n),x_(e,i[1],r-a,n)}return n}function a1t(e,t){for(var r=[],n=0;n<t;n++)r.push(Y2(e));return r}function i1t(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function o1t(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function s1t(e,t){var r=[],n=e.shape,a;switch(e.type){case"rect":t1t(n,t,r),a=Ct;break;case"sector":u3(n,t,r),a=Rr;break;case"circle":u3({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),a=Rr;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=j(JSt(e.getUpdatedPathProxy(),o),function(y){return o1t(y)}),l=s.length;if(l===0)x_(c3,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var f=0,c=j(s,function(y){var m=[],_=[];NS(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var h=t,u=0;u<l;u++){var v=c[u];if(h<=0)break;var d=u===l-1?h:Math.ceil(v.area/f*t);d<0||(x_(c3,{points:v.poly},d,r),h-=d)}}a=Ir;break}if(!a)return a1t(e,t);for(var p=[],u=0;u<r.length;u++){var g=new a;g.setShape(r[u]),i1t(e,g),p.push(g)}return p}function l1t(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var a=[],i=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],b=o[v++];if(h<=0){c.push(g,y,m,_,S,b);continue}for(var x=Math.min(h,f-1)+1,w=1;w<=x;w++){var T=w/x;Ws(d,g,m,S,T,a),Ws(p,y,_,b,T,i),d=a[3],p=i[3],c.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}h-=x-1}return o===e?[c,t]:[e,c]}function h3(e,t){for(var r=e.length,n=e[r-2],a=e[r-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function u1t(e,t){for(var r,n,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],f=void 0,c=void 0;l?u?(r=l1t(l,u),f=r[0],c=r[1],n=f,a=c):(c=h3(a||l,l),f=l):(f=h3(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function v3(e){for(var t=0,r=0,n=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],f=e[i+1],c=s*f-u*l;t+=c,r+=(s+u)*c,n+=(l+f)*c}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function f1t(e,t,r,n){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,h=0;h<s;h+=2){var v=h===0?f:(f+h-2)%l+2,d=e[v]-r[0],p=e[v+1]-r[1],g=t[h]-n[0],y=t[h+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function c1t(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function h1t(e,t,r,n){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=v3(s),f=v3(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],h=[],v=0,d=1/0,p=[],g=s.length;i&&(s=c1t(s));for(var y=f1t(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}c[0]=s[y]-u[0],c[1]=s[y+1]-u[1];for(var b=n/r,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=c[_],M=c[_+1],E=l[_]-f[0],L=l[_+1]-f[1],R=E*T-L*w,P=E*w+L*T;p[_]=R,p[_+1]=P;var O=R-A,N=P-M;C+=O*O+N*N}if(C<d){d=C,v=x;for(var I=0;I<p.length;I++)h[I]=p[I]}}a.push({from:c,to:h,fromCp:u,toCp:f,rotation:-v})}return a}function w_(e){return e.__isCombineMorphing}var uY="__mOriginal_";function T_(e,t,r){var n=uY+t,a=e[n]||e[t];e[n]||(e[n]=e[t]);var i=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Od(e,t){var r=uY+t;e[r]&&(e[t]=e[r],e[r]=null)}function d3(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function fY(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=u1t(GM(r),GM(n)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&d3(i,s),l&&d3(o,l),T_(t,"updateTransform",{replace:u}),t.transform=null;var f=h1t(i,o,10,Math.PI),c=[];T_(t,"buildPath",{replace:function(h){for(var v=t.__morphT,d=1-v,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,b=y.fromCp,x=y.toCp,w=Math.sin(S),T=Math.cos(S);_d(p,b,x,v);for(var C=0;C<m.length;C+=2){var A=m[C],M=m[C+1],E=_[C],L=_[C+1],R=A*d+E*v,P=M*d+L*v;c[C]=R*T-P*w+p[0],c[C+1]=R*w+P*T+p[1]}var O=c[0],N=c[1];h.moveTo(O,N);for(var C=2;C<m.length;){var E=c[C++],L=c[C++],I=c[C++],k=c[C++],B=c[C++],H=c[C++];O===E&&N===L&&I===B&&k===H?h.lineTo(B,H):h.bezierCurveTo(E,L,I,k,B,H),O=B,N=H}}}})}function qE(e,t,r){if(!e||!t)return t;var n=r.done,a=r.during;fY(e,t),t.__morphT=0;function i(){Od(t,"buildPath"),Od(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},vt({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),t}function v1t(e,t,r,n,a,i){var o=16;e=a===r?0:Math.round(32767*(e-r)/(a-r)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(e&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function C_(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=j(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),r=Math.min(c,r),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=j(i,function(s,l){return{cp:s,z:v1t(s[0],s[1],t,r,n,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function cY(e){return s1t(e.path,e.count)}function UM(){return{fromIndividuals:[],toIndividuals:[],count:0}}function d1t(e,t,r){var n=[];function a(b){for(var x=0;x<b.length;x++){var w=b[x];w_(w)?a(w.childrenRef()):w instanceof Et&&n.push(w)}}a(e);var i=n.length;if(!i)return UM();var o=r.dividePath||cY,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),UM();n=C_(n),s=C_(s);for(var l=r.done,u=r.during,f=r.individualDelay,c=new fo,h=0;h<i;h++){var v=n[h],d=s[h];d.parent=t,d.copyTransform(c),f||fY(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}T_(t,"addSelfToZr",{after:function(b){p(b)}}),T_(t,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Od(t,"addSelfToZr"),Od(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var S=f?vt({delay:(r.delay||0)+f(h,y,n[h],s[h]),done:_},r):r;qE(n[h],s[h],S)}else t.__morphT=0,t.animateTo({__morphT:1},vt({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<e.length;b++)Od(e[b],"updateTransform");l&&l()}},r));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function p1t(e,t,r){var n=t.length,a=[],i=r.dividePath||cY;function o(v){for(var d=0;d<v.length;d++){var p=v[d];w_(p)?o(p.childrenRef()):p instanceof Et&&a.push(p)}}if(w_(e)){o(e.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Y2(a[l++%s]));a.length=n}else{a=i({path:e,count:n});for(var f=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),UM()}a=C_(a),t=C_(t);for(var c=r.individualDelay,u=0;u<n;u++){var h=c?vt({delay:(r.delay||0)+c(u,n,a[u],t[u])},r):r;qE(a[u],t[u],h)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function p3(e){return Y(e[0])}function g3(e,t){for(var r=[],n=e.length,a=0;a<n;a++)r.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var g1t={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var a=Y2(e.path);a.setStyle("opacity",r),t.push(a)}return t},split:null};function gw(e,t,r,n,a,i){if(!e.length||!t.length)return;var o=kh("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;p3(e)&&(u=e,f=t),p3(t)&&(u=t,f=e);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(w_(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?vt({delay:s(_,S)},l):l;qE(T,C,A),i(T,C,T,C,A)}}else for(var M=vt({dividePath:g1t[r],individualDelay:s&&function(N,I,k,B){return s(N+_,S)}},l),E=m?d1t(x,w,M):p1t(w,x,M),L=E.fromIndividuals,R=E.toIndividuals,P=L.length,O=0;O<P;O++){var A=s?vt({delay:s(O,P)},l):l;i(L[O],R[O],m?x[O]:y.one,m?y.one:x[O],A)}}for(var h=u?u===e:e.length>t.length,v=u?g3(f,u):g3(h?t:e,[h?e:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)c(v[p],h,g,d),g+=v[p].many.length}function $l(e){if(!e)return[];if(Y(e)){for(var t=[],r=0;r<e.length;r++)t.push($l(e[r]));return t}var n=[];return e.traverse(function(a){a instanceof Et&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var hY=1e4,y1t=0,y3=1,m3=2,m1t=Mt();function _1t(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var a=e.getDimensionInfo(r[n]);if(a&&a.otherDims[t]===0)return r[n]}}function S1t(e,t,r){var n=e.getDimensionInfo(r),a=n&&n.ordinalMeta;if(n){var i=e.get(n.name,t);return a&&a.categories[i]||i+""}}function _3(e,t,r,n){var a=n?"itemChildGroupId":"itemGroupId",i=_1t(e,a);if(i){var o=S1t(e,t,i);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function S3(e){var t=[];return D(e,function(r){var n=r.data,a=r.dataGroupId;if(!(n.count()>hY))for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:_3(n,o,a,!1),childGroupId:_3(n,o,a,!0),divide:r.divide,dataIndex:o})}),t}function yw(e,t,r){e.traverse(function(n){n instanceof Et&&fe(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function mw(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function $f(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function b1t(e,t,r){var n=kh("update",r,t);n&&e.traverse(function(a){if(a instanceof ya){var i=Brt(a);i&&a.animateFrom({style:i},n)}})}function x1t(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var a=e[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function vY(e,t,r){var n=S3(e),a=S3(t);function i(_,S,b,x,w){(b||_)&&S.animateFrom({style:b&&b!==_?F(F({},b.style),_.style):_.style},w)}var o=!1,s=y1t,l=it(),u=it();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var c=a[f].groupId;if(u.get(c)){s=y3;break}var h=a[f].childGroupId;if(h&&l.get(h)){s=m3;break}}function v(_,S){return function(b){var x=b.data,w=b.dataIndex;return S?x.getId(w):_?s===y3?b.childGroupId:b.groupId:s===m3?b.childGroupId:b.groupId}}var d=x1t(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var b=n[S],x=a[_],w=x.data.hostModel,T=b.data.getItemGraphicEl(b.dataIndex),C=x.data.getItemGraphicEl(x.dataIndex);if(T===C){C&&b1t(C,x.dataIndex,w);return}T&&p[T.id]||C&&($f(C),T?($f(T),mw(T),o=!0,gw($l(T),$l(C),x.divide,w,_,i)):yw(C,w,_))}new Io(n,a,v(!0,d),v(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var b=a[_],x=b.data,w=x.hostModel,T=x.getItemGraphicEl(b.dataIndex),C=Ft(j(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==T&&!p[A.id]});T&&($f(T),C.length?(D(C,function(A){$f(A),mw(A)}),o=!0,gw($l(C),$l(T),b.divide,w,_,i)):yw(T,w,b.dataIndex))}).updateOneToMany(function(_,S){var b=n[S],x=b.data.getItemGraphicEl(b.dataIndex);if(!(x&&p[x.id])){var w=Ft(j(_,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==x}),T=a[_[0]].data.hostModel;w.length&&(D(w,function(C){return $f(C)}),x?($f(x),mw(x),o=!0,gw($l(x),$l(w),b.divide,T,_[0],i)):D(w,function(C){return yw(C,T,_[0])}))}}).updateManyToMany(function(_,S){new Io(S,_,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,x){m(_[b],S[x])}).execute()}).execute(),o&&D(t,function(_){var S=_.data,b=S.hostModel,x=b&&r.getViewOfSeriesModel(b),w=kh("update",b,0);x&&b.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(T){T instanceof Et&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function b3(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function x3(e){return Y(e)?e.sort().join(","):e}function ls(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function w1t(e,t){var r=it(),n=it(),a=it();return D(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=b3(i),f=x3(u);n.set(f,{dataGroupId:s,data:l}),Y(u)&&D(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=b3(i),u=x3(l),f=n.get(u);if(f)r.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:ls(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:ls(s),data:s}]});else if(Y(l)){var c=[];D(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:ls(p.data),data:p.data})}),c.length&&r.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:ls(s)}]})}else{var h=a.get(l);if(h){var v=r.get(h.key);v||(v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:ls(h.data)}],newSeries:[]},r.set(h.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:ls(s)})}}}}),r}function w3(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function T1t(e,t,r,n){var a=[],i=[];D(ne(e.from),function(o){var s=w3(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:ls(t.oldData[s]),groupIdDim:o.dimension})}),D(ne(e.to),function(o){var s=w3(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:ls(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&vY(a,i,n)}function C1t(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(ne(n.seriesTransition),function(a){D(ne(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Rm]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var a=m1t(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)D(ne(i),function(v){T1t(v,a,n,r)});else{var o=w1t(a,n);D(o.keys(),function(v){var d=o.get(v);vY(d.oldSeries,d.newSeries,r)})}D(n.updatedSeries,function(v){v[Rm]&&(v[Rm]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<hY&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(h))}})}var A1t=function(){function e(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return e.prototype.setBreaks=function(t){this.breaks=t.breaks},e.prototype.update=function(t){D1t(this,t);var r=this._elapsedExtent;r[0]=this.elapse(t[0]),r[1]=this.elapse(t[1])},e.prototype.hasBreaks=function(){return!!this.breaks.length},e.prototype.calcNiceTickMultiple=function(t,r){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<t&&t<a.vmax){var i=r(t,a.vmax);return i}}return 0},e.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},e.prototype.normalize=function(t){var r=this._elapsedExtent[1]-this._elapsedExtent[0];return r===0?.5:(this.elapse(t)-this._elapsedExtent[0])/r},e.prototype.scale=function(t){return this.unelapse(t*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},e.prototype.elapse=function(t){for(var r=T3,n=C3,a=!0,i=0;i<this.breaks.length;i++){var o=this.breaks[i];if(t<=o.vmax){t>o.vmin?r+=o.vmin-n+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:r+=t-n,n=o.vmax,a=!1;break}r+=o.vmin-n+o.gapReal,n=o.vmax}return a&&(r+=t-n),r},e.prototype.unelapse=function(t){for(var r=T3,n=C3,a=!0,i=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],l=r+s.vmin-n,u=l+s.gapReal;if(t<=u){t>l?i=s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):i=n+t-r,n=s.vmax,a=!1;break}r=u,n=s.vmax}return a&&(i=n+t-r),i},e}();function M1t(){return new A1t}var T3=0,C3=0;function D1t(e,t){var r=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};D(e.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(r+=l.val);var u=KE(s,t);if(u){var f=u.vmin!==s.vmin,c=u.vmax!==s.vmax,h=u.vmax-u.vmin;if(!(f&&c))if(f||c){var v=f?"S":"E";i[v][l.type].has=!0,i[v][l.type].span=h,i[v][l.type].inExtFrac=h/(s.vmax-s.vmin),i[v][l.type].val=l.val}else n[l.type].span+=h,n[l.type].val+=l.val}});var o=r*(0+(t[1]-t[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));D(e.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=r!==0?Math.max(o,0)*l.val/r:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function L1t(e,t,r,n,a,i){e!=="no"&&D(r,function(o){var s=KE(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=n(u),c=a*3/4;f>s.vmin-c&&f<s.vmax+c&&(e!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&t.splice(l,1)}})}function E1t(e,t,r,n){D(t,function(a){var i=KE(a,r);i&&(e.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:n?n(i):void 0}),e.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:n?n(i):void 0}))}),t.length&&e.sort(function(a,i){return a.value-i.value})}function KE(e,t){var r=Math.max(e.vmin,t[0]),n=Math.min(e.vmax,t[1]);return r<n||r===n&&r>t[0]&&r<t[1]?{vmin:r,vmax:n,breakOption:e.breakOption,gapParsed:e.gapParsed,gapReal:e.gapReal}:null}function FM(e,t,r){var n=[];if(!e)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5}D(e,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ct(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(Q(o.gap)){var u=Mn(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;a(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var c=t(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),r&&r.noNegative&&D(["vmin","vmax"],function(v){s[v]<0&&(s[v]=0)}),s.vmin>s.vmax){var h=s.vmax;s.vmax=s.vmin,s.vmin=h}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return D(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:n.filter(function(o){return!!o})}}function QE(e,t){return YM(t)===YM(e)}function YM(e){return e.start+"_\0_"+e.end}function O1t(e,t,r){var n=[];D(e,function(i,o){var s=t(i);s&&s.type==="vmin"&&n.push([o])}),D(e,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=ol(n,function(u){return QE(t(e[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return D(n,function(i){i.length===2&&a.push(r?i:[e[i[0]],e[i[1]]])}),a}function R1t(e,t,r,n){var a,i;if(e.break){var o=e.break.parsedBreak,s=ol(r,function(c){return QE(c.breakOption,e.break.parsedBreak.breakOption)}),l=n(Math.pow(t,o.vmin),s.vmin),u=n(Math.pow(t,o.vmax),s.vmax),f={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?ze(Math.pow(t,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};a={type:e.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:f,gapReal:o.gapReal}},i=s[e.break.type]}return{brkRoundingCriterion:i,vBreak:a}}function I1t(e,t,r){var n={noNegative:!0},a=FM(e,r,n),i=FM(e,r,n),o=Math.log(t);return i.breaks=j(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,f={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:f,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:a,parsedLogged:i}}var P1t={vmin:"start",vmax:"end"};function N1t(e,t){return t&&(e=e||{},e.break={type:P1t[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function k1t(){ant({createScaleBreakContext:M1t,pruneTicksByBreak:L1t,addBreaksToTicks:E1t,parseAxisBreakOption:FM,identifyAxisBreak:QE,serializeAxisBreakIdentifier:YM,retrieveAxisBreakPairs:O1t,getTicksLogTransformBreak:R1t,logarithmicParseBreaksFromOption:I1t,makeAxisLabelFormatterParamBreak:N1t})}var A3=Mt();function z1t(e,t){var r=ol(e,function(n){return Ue().identifyAxisBreak(n.parsedBreak.breakOption,t.breakOption)});return r||e.push(r={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),r}function B1t(e){D(e,function(t){return t.shouldRemove=!0})}function V1t(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function G1t(e,t,r,n,a){var i=r.axis;if(i.scale.isBlank()||!Ue())return;var o=Ue().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=r.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var c=s.get("expandOnClick"),h=s.get("zigzagZ"),v=s.getModel("itemStyle"),d=v.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new ht({ignoreModelZ:!0}),S=i.isHorizontal(),b=A3(t).visualList||(A3(t).visualList=[]);B1t(b);for(var x=function(C){var A=o[C][0].break.parsedBreak,M=[];M[0]=i.toGlobalCoord(i.dataToCoord(A.vmin,!0)),M[1]=i.toGlobalCoord(i.dataToCoord(A.vmax,!0)),M[1]<M[0]&&M.reverse();var E=z1t(b,A);E.shouldRemove=!1;var L=new ht;T(E.zigzagRandomList,L,M[0],M[1],S,A),c&&L.on("click",function(){var R={type:QS,breaks:[{start:A.breakOption.start,end:A.breakOption.end}]};R[i.dim+"AxisIndex"]=r.componentIndex,a.dispatchAction(R)}),L.silent=!c,_.add(L)},w=0;w<o.length;w++)x(w);e.add(_),V1t(b);function T(C,A,M,E,L,R){var P={stroke:p,lineWidth:g,lineDash:y,fill:"none"},O=L?0:1,N=1-O,I=n[_t[N]]+n[Fe[N]];function k(kt){var Tt=[],Ut=[];Tt[O]=Ut[O]=kt,Tt[N]=n[_t[N]],Ut[N]=I;var Wt={x1:Tt[0],y1:Tt[1],x2:Ut[0],y2:Ut[1]};return zS(Wt,Wt,{lineWidth:1}),Tt[0]=Wt.x1,Tt[1]=Wt.y1,Tt[O]}M=k(M),E=k(E);for(var B=[],H=[],U=!0,X=n[_t[N]],q=0;;q++){var st=X===n[_t[N]],Dt=X>=I;Dt&&(X=I);var lt=[],rt=[];lt[O]=M,rt[O]=E,!st&&!Dt&&(lt[O]+=U?-l:l,rt[O]-=U?l:-l),lt[N]=X,rt[N]=X,B.push(lt),H.push(rt);var et=void 0;if(q<C.length?et=C[q]:(et=Math.random(),C.push(et)),X+=et*(f-u)+u,U=!U,Dt)break}var at=Ue().serializeAxisBreakIdentifier(R.breakOption);if(A.add(new _r({anid:"break_a_"+at,shape:{points:B},style:P,z:h})),R.gapReal!==0){A.add(new _r({anid:"break_b_"+at,shape:{points:H},style:P,z:h}));var $=H.slice();$.reverse();var tt=B.concat($);A.add(new Ir({anid:"break_c_"+at,shape:{points:tt},style:{fill:m,opacity:d.opacity},z:h}))}}}function H1t(e,t,r,n){var a=e.axis,i=r.transform;Or(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=Ue().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=j(s,function(g){var y=g[0].break.parsedBreak,m=[a.dataToCoord(y.vmin,!0),a.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:Ue().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,c=0;c<l.length;c++){var h=l[c],v=Math.max(h.coordPair[0],o[0]),d=Math.min(h.coordPair[1],o[1]);u<=v&&p(u,v,f,h),u=d,f=h}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(M,E){i&&(Le(M,M,i),Le(E,E,i))}function b(M,E){var L={x1:M[0],y1:M[1],x2:E[0],y2:E[1]};zS(L,L,n.style),M[0]=L.x1,M[1]=L.y1,E[0]=L.x2,E[1]=L.y2}var x=[g,0],w=[y,0],T=[g,5],C=[y,5];S(x,T),b(x,T),S(w,C),b(w,C),b(x,w);var A=new Be(F({shape:{x1:x[0],y1:x[1],x2:w[0],y2:w[1]}},n));t.add(A),A.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function U1t(e,t,r){if(ol(r,function(m){return!m}))return;var n=new gt;if(!qS(r[0],r[1],n,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var a=sr();Yo(a,a,-t);var i=j(r,function(m){return m.transform?ka(sr(),a,m.transform):a});function o(m){var _=r[0].localRect,S=new gt(_[Fe[m]]*i[0][0],_[Fe[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=j(r,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new gt;u.copy(r[0].label).add(r[1].label).scale(.5),u.transform(a);var f=n.clone().transform(a),c=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),h=(c+f.x)/2-u.x,v=Math.min(h,h-f.x),d=Math.max(h,h-f.x),p=d<0?d:v>0?v:0;s=(h-p)/f.x}var g=new gt,y=new gt;gt.scale(g,n,-s),gt.scale(y,n,1-s),jA(r[0],g),jA(r[1],y)}function F1t(e,t){var r={breaks:[]};return D(t.breaks,function(n){if(n){var a=ol(e.get("breaks",!0),function(s){return Ue().identifyAxisBreak(s,n)});if(a){var i=t.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===QS?!0:i===P8?!1:i===N8?!a.isExpanded:a.isExpanded,r.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),r}function Y1t(){Vut({adjustBreakLabelPair:U1t,buildAxisBreakLine:H1t,rectCoordBuildBreakAxis:G1t,updateModelAxisBreak:F1t})}function j1t(e){jut(e),k1t(),Y1t()}function W1t(){hft(X1t)}function X1t(e,t){D(e,function(r){if(!r.model.get(["axisLabel","inside"])){var n=Z1t(r);if(n){var a=r.isHorizontal()?"height":"width",i=r.model.get(["axisLabel","margin"]);t[a]-=n[a]+i,r.position==="top"?t.y+=n.height+i:r.position==="left"&&(t.x+=n.width+i)}}})}function Z1t(e){var t=e.model,r=e.scale;if(!t.get(["axisLabel","show"])||r.isBlank())return;var n,a,i=r.getExtent();r instanceof ih?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=Wh(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f},h=s(c,f),v=o.getTextRect(h),d=p(v,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,b=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),x=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new yt(g.x,g.y,b,x);return w}}wt([zlt]);wt([Rlt]);wt([nut,mut,Dut,Oft,Uft,Oct,aht,Hht,lvt,pvt,bvt,Lvt,xdt,Wdt,npt,_pt,wpt,Ipt,Gpt,Kpt,ngt,vgt,Kgt]);wt(gyt);wt(Hyt);wt(s7);wt(Jyt);wt(X7);wt(nmt);wt(wmt);wt(Rmt);wt(m0t);wt(z0t);wt(gg);wt(J0t);wt(r_t);wt(h_t);wt(S_t);wt(A_t);wt(R_t);wt(U_t);wt(sSt);wt(J9);wt(tY);wt(MSt);wt(iY);wt(oY);wt(OSt);wt(kSt);wt($St);wt(QSt);wt(C1t);wt(Qst);wt(j1t);wt(W1t);wt(Rft);const $1t=Object.freeze(Object.defineProperty({__proto__:null,Axis:xa,ChartView:Kt,ComponentModel:At,ComponentView:ie,List:Hr,Model:Lt,PRIORITY:e6,SeriesModel:Jt,color:ZJ,connect:eot,dataTool:uot,dependencies:zit,disConnect:rot,disconnect:u6,dispose:not,env:It,extendChartView:zst,extendComponentModel:Pst,extendComponentView:Nst,extendSeriesModel:kst,format:_st,getCoordinateSystemDimensions:iot,getInstanceByDom:DL,getInstanceById:aot,getMap:lot,graphic:mst,helper:fst,init:tot,innerDrawElementOnCanvas:TL,matrix:wJ,number:gst,parseGeoJSON:FA,parseGeoJson:FA,registerAction:$a,registerCoordinateSystem:h6,registerCustomSeries:oot,registerLayout:v6,registerLoading:IL,registerLocale:eL,registerMap:d6,registerPostInit:f6,registerPostUpdate:c6,registerPreprocessor:EL,registerProcessor:OL,registerTheme:LL,registerTransform:p6,registerUpdateLifecycle:$S,registerVisual:fl,setCanvasCreator:sot,setPlatformAPI:qG,throttle:XS,time:yst,use:wt,util:Sst,vector:lJ,version:kit,zrUtil:eJ,zrender:Ett},Symbol.toStringTag,{value:"Module"}));var Su={},ks={},dY={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return"".concat(t++)}})(dY);var s1={},l1={},JE={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,a=null;return function(){for(var i=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];clearTimeout(a),a=setTimeout(function(){r.apply(i,s)},n)}}})(JE);var Di={};Object.defineProperty(Di,"__esModule",{value:!0});Di.SizeSensorId=Di.SensorTabIndex=Di.SensorClassName=void 0;Di.SizeSensorId="size-sensor-id";Di.SensorClassName="size-sensor-object";Di.SensorTabIndex="-1";Object.defineProperty(l1,"__esModule",{value:!0});l1.createSensor=void 0;var q1t=K1t(JE),_w=Di;function K1t(e){return e&&e.__esModule?e:{default:e}}l1.createSensor=function(t,r){var n=void 0,a=[],i=function(){getComputedStyle(t).position==="static"&&(t.style.position="relative");var c=document.createElement("object");return c.onload=function(){c.contentDocument.defaultView.addEventListener("resize",o),o()},c.style.display="block",c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.height="100%",c.style.width="100%",c.style.overflow="hidden",c.style.pointerEvents="none",c.style.zIndex="-1",c.style.opacity="0",c.setAttribute("class",_w.SensorClassName),c.setAttribute("tabindex",_w.SensorTabIndex),c.type="text/html",t.appendChild(c),c.data="about:blank",c},o=(0,q1t.default)(function(){a.forEach(function(f){f(t)})}),s=function(c){n||(n=i()),a.indexOf(c)===-1&&a.push(c)},l=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",o),n.parentNode.removeChild(n),t.removeAttribute(_w.SizeSensorId),n=void 0,a=[],r&&r())},u=function(c){var h=a.indexOf(c);h!==-1&&a.splice(h,1),a.length===0&&n&&l()};return{element:t,bind:s,destroy:l,unbind:u}};var u1={};Object.defineProperty(u1,"__esModule",{value:!0});u1.createSensor=void 0;var Q1t=Di,J1t=tbt(JE);function tbt(e){return e&&e.__esModule?e:{default:e}}u1.createSensor=function(t,r){var n=void 0,a=[],i=(0,J1t.default)(function(){a.forEach(function(f){f(t)})}),o=function(){var c=new ResizeObserver(i);return c.observe(t),i(),c},s=function(c){n||(n=o()),a.indexOf(c)===-1&&a.push(c)},l=function(){n&&n.disconnect(),a=[],n=void 0,t.removeAttribute(Q1t.SizeSensorId),r&&r()},u=function(c){var h=a.indexOf(c);h!==-1&&a.splice(h,1),a.length===0&&n&&l()};return{element:t,bind:s,destroy:l,unbind:u}};Object.defineProperty(s1,"__esModule",{value:!0});s1.createSensor=void 0;var ebt=l1,rbt=u1;s1.createSensor=typeof ResizeObserver<"u"?rbt.createSensor:ebt.createSensor;Object.defineProperty(ks,"__esModule",{value:!0});ks.removeSensor=ks.getSensor=ks.Sensors=void 0;var nbt=ibt(dY),abt=s1,jM=Di;function ibt(e){return e&&e.__esModule?e:{default:e}}var Rd=ks.Sensors={};function pY(e){e&&Rd[e]&&delete Rd[e]}ks.getSensor=function(t){var r=t.getAttribute(jM.SizeSensorId);if(r&&Rd[r])return Rd[r];var n=(0,nbt.default)();t.setAttribute(jM.SizeSensorId,n);var a=(0,abt.createSensor)(t,function(){return pY(n)});return Rd[n]=a,a};ks.removeSensor=function(t){var r=t.element.getAttribute(jM.SizeSensorId);t.destroy(),pY(r)};var tO,eO;Object.defineProperty(Su,"__esModule",{value:!0});Su.ver=eO=Su.clear=tO=Su.bind=void 0;var WM=ks;tO=Su.bind=function(t,r){var n=(0,WM.getSensor)(t);return n.bind(r),function(){n.unbind(r)}};eO=Su.clear=function(t){var r=(0,WM.getSensor)(t);(0,WM.removeSensor)(r)};Su.ver="1.0.3";function M3(e,t){var r={};return t.forEach(function(n){r[n]=e[n]}),r}function Sw(e){return typeof e=="function"}function obt(e){return typeof e=="string"}var sbt=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r};const qf=Ch(sbt);var lbt=function(e){ZG(t,e);function t(r){var n=e.call(this,r)||this;return n.echarts=r.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(r){var n=this.props.shouldSetOption;if(!(Sw(n)&&!n(r,this.props))){if(!qf(r.theme,this.props.theme)||!qf(r.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var a=this.getEchartsInstance();qf(r.onEvents,this.props.onEvents)||(this.unbindEvents(a),this.bindEvents(a,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];qf(M3(this.props,i),M3(r,i))||this.updateEChartsOption(),(!qf(r.style,this.props.style)||!qf(r.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return qR(this,void 0,void 0,function(){var r=this;return KR(this,function(n){return[2,new Promise(function(a){r.echarts.init(r.ele,r.props.theme,r.props.opts);var i=r.getEchartsInstance();i.on("finished",function(){var o=r.ele.clientWidth,s=r.ele.clientHeight;r.echarts.dispose(r.ele);var l=wn({width:o,height:s},r.props.opts);a(r.echarts.init(r.ele,r.props.theme,l))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{eO(this.ele)}catch(r){console.warn(r)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return qR(this,void 0,void 0,function(){var r,n,a,i,o,s,l=this;return KR(this,function(u){switch(u.label){case 0:return r=this.props,n=r.onEvents,a=r.onChartReady,i=r.autoResize,o=i===void 0?!0:i,[4,this.initEchartsInstance()];case 1:return u.sent(),s=this.updateEChartsOption(),this.bindEvents(s,n||{}),Sw(a)&&a(s),this.ele&&o&&tO(this.ele,function(){l.resize()}),[2]}})})},t.prototype.bindEvents=function(r,n){var a=this,i=function(s,l){if(obt(s)&&Sw(l)){var u=function(f){l(f,r)};r.on(s,u),a.eventHandlerRefs[s]=u}};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i(o,n[o])},t.prototype.unbindEvents=function(r){for(var n=0,a=Object.entries(this.eventHandlerRefs);n<a.length;n++){var i=a[n],o=i[0],s=i[1];r.off(o,s)}this.eventHandlerRefs={}},t.prototype.updateEChartsOption=function(){var r=this.props,n=r.option,a=r.notMerge,i=a===void 0?!1:a,o=r.replaceMerge,s=o===void 0?null:o,l=r.lazyUpdate,u=l===void 0?!1:l,f=r.showLoading,c=r.loadingOption,h=c===void 0?null:c,v=this.getEchartsInstance();return v.setOption(n,{notMerge:i,replaceMerge:s,lazyUpdate:u}),f?v.showLoading(h):v.hideLoading(),v},t.prototype.resize=function(){var r=this.getEchartsInstance();if(!this.isInitialResize)try{r.resize({width:"auto",height:"auto"})}catch(n){console.warn(n)}this.isInitialResize=!1},t.prototype.render=function(){var r=this,n=this.props,a=n.style,i=n.className,o=i===void 0?"":i;n.echarts,n.option,n.theme,n.notMerge,n.replaceMerge,n.lazyUpdate,n.showLoading,n.loadingOption,n.opts,n.onChartReady,n.onEvents,n.shouldSetOption,n.autoResize;var s=g2(n,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),l=wn({height:300},a);return Ea.createElement("div",wn({ref:function(u){r.ele=u},style:l,className:"echarts-for-react ".concat(o)},s))},t}(z.PureComponent),ubt=function(e){ZG(t,e);function t(r){var n=e.call(this,r)||this;return n.echarts=$1t,n}return t}(lbt);const fbt=Zp(()=>{const{t:e,i18n:t}=GG(),{usageData:r}=Ie,[n,a]=z.useState(null),i=z.useMemo(()=>{if(!r||!r.byDay||r.byDay.length===0)return null;const l=t.language==="zh-CN"?"zh-CN":"en-US",u=r.byDay.map(p=>TQ(p.date,l)),f=r.byDay.map(p=>p.date),c=r.byDay.map(p=>p.inputTokens),h=r.byDay.map(p=>p.outputTokens),v=r.byDay.map(p=>p.totalTokens),d=r.byDay.map(p=>p.sessionCount);return{dates:u,rawDates:f,inputTokens:c,outputTokens:h,totalTokens:v,sessionCounts:d}},[r,t.language]);z.useEffect(()=>{a(null)},[r]);const o=l=>{const u=Array.isArray(l==null?void 0:l.batch)?l.batch[0]:l,f=typeof(u==null?void 0:u.start)=="number"?u.start:null,c=typeof(u==null?void 0:u.end)=="number"?u.end:null;if(!(f==null||c==null||!i)&&(a({start:f,end:c}),i.rawDates.length>0)){const h=i.rawDates.length,v=Math.floor(f/100*h),d=Math.min(Math.ceil(c/100*h)-1,h-1),p=i.rawDates[v],g=i.rawDates[d];Ie.setDateRange(p,g)}};if(!i)return W.jsx("div",{className:Vr("p-8 flex justify-center items-center"),children:W.jsx("div",{className:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",style:{borderColor:"#df754f transparent #df754f transparent"},role:"status",children:W.jsx("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",children:"Loading..."})})});const s={backgroundColor:"transparent",color:["#3b82f6","#10b981","#a855f7","#f59e0b"],tooltip:{trigger:"axis",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"rgba(148, 163, 184, 0.35)",textStyle:{color:"#0f172a"},formatter:l=>{let u=`<div style="font-weight: 600; margin-bottom: 4px;">${l[0].axisValue}</div>`;return l.forEach(f=>{u+=`<div style="margin: 2px 0;">${f.marker} ${f.seriesName}: ${au(f.value)}</div>`}),u}},grid:{left:60,right:60,top:30,bottom:80},dataZoom:[{type:"inside",xAxisIndex:0,start:n==null?void 0:n.start,end:n==null?void 0:n.end},{type:"slider",xAxisIndex:0,height:24,bottom:20,borderColor:"rgba(148, 163, 184, 0.35)",fillerColor:"rgba(59, 130, 246, 0.12)",handleStyle:{color:"rgba(59, 130, 246, 0.6)"},start:n==null?void 0:n.start,end:n==null?void 0:n.end}],xAxis:{type:"category",data:i.dates,axisLabel:{hideOverlap:!0,color:"#64748b"},axisLine:{lineStyle:{color:"rgba(148, 163, 184, 0.35)"}}},yAxis:[{type:"value",name:"tokens",position:"left",axisLabel:{color:"#64748b",formatter:l=>au(l)},splitLine:{lineStyle:{color:"rgba(148, 163, 184, 0.18)"}}},{type:"value",name:e("sessionCount"),position:"right",axisLabel:{color:"#64748b",formatter:l=>au(l)},splitLine:{show:!1}}],series:[Ie.seriesVisibility.inputTokens&&{name:e("inputTokens"),type:"line",smooth:!0,data:i.inputTokens,yAxisIndex:0,itemStyle:{color:"#3b82f6"},lineStyle:{color:"#3b82f6"}},Ie.seriesVisibility.outputTokens&&{name:e("outputTokens"),type:"line",smooth:!0,data:i.outputTokens,yAxisIndex:0,itemStyle:{color:"#10b981"},lineStyle:{color:"#10b981"}},Ie.seriesVisibility.totalTokens&&{name:e("totalTokens"),type:"line",smooth:!0,data:i.totalTokens,yAxisIndex:0,itemStyle:{color:"#a855f7"},lineStyle:{color:"#a855f7"}},Ie.seriesVisibility.sessionCount&&{name:e("sessionCount"),type:"line",smooth:!0,data:i.sessionCounts,yAxisIndex:1,itemStyle:{color:"#f59e0b"},lineStyle:{color:"#f59e0b"}}].filter(Boolean)};return W.jsx("div",{children:W.jsx(ubt,{style:{height:400},onEvents:{dataZoom:o},option:s,notMerge:!0,lazyUpdate:!0})})});function D3(e,[t,r]){return Math.min(r,Math.max(t,e))}function Ze(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function rO(e,t=[]){let r=[];function n(i,o){const s=z.createContext(o),l=r.length;r=[...r,o];const u=c=>{var y;const{scope:h,children:v,...d}=c,p=((y=h==null?void 0:h[e])==null?void 0:y[l])||s,g=z.useMemo(()=>d,Object.values(d));return W.jsx(p.Provider,{value:g,children:v})};u.displayName=i+"Provider";function f(c,h){var p;const v=((p=h==null?void 0:h[e])==null?void 0:p[l])||s,d=z.useContext(v);if(d)return d;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,f]}const a=()=>{const i=r.map(o=>z.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return z.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[n,cbt(a,...t)]}function cbt(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return z.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function L3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gY(...e){return t=>{let r=!1;const n=e.map(a=>{const i=L3(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():L3(e[a],null)}}}}function Pr(...e){return z.useCallback(gY(...e),e)}function A_(e){const t=hbt(e),r=z.forwardRef((n,a)=>{const{children:i,...o}=n,s=z.Children.toArray(i),l=s.find(dbt);if(l){const u=l.props.children,f=s.map(c=>c===l?z.Children.count(u)>1?z.Children.only(null):z.isValidElement(u)?u.props.children:null:c);return W.jsx(t,{...o,ref:a,children:z.isValidElement(u)?z.cloneElement(u,void 0,f):null})}return W.jsx(t,{...o,ref:a,children:i})});return r.displayName=`${e}.Slot`,r}function hbt(e){const t=z.forwardRef((r,n)=>{const{children:a,...i}=r;if(z.isValidElement(a)){const o=gbt(a),s=pbt(i,a.props);return a.type!==z.Fragment&&(s.ref=n?gY(n,o):o),z.cloneElement(a,s)}return z.Children.count(a)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vbt=Symbol("radix.slottable");function dbt(e){return z.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vbt}function pbt(e,t){const r={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...s)=>{const l=i(...s);return a(...s),l}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function gbt(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ybt(e){const t=e+"CollectionProvider",[r,n]=rO(t),[a,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:g,children:y}=p,m=Ea.useRef(null),_=Ea.useRef(new Map).current;return W.jsx(a,{scope:g,itemMap:_,collectionRef:m,children:y})};o.displayName=t;const s=e+"CollectionSlot",l=A_(s),u=Ea.forwardRef((p,g)=>{const{scope:y,children:m}=p,_=i(s,y),S=Pr(g,_.collectionRef);return W.jsx(l,{ref:S,children:m})});u.displayName=s;const f=e+"CollectionItemSlot",c="data-radix-collection-item",h=A_(f),v=Ea.forwardRef((p,g)=>{const{scope:y,children:m,..._}=p,S=Ea.useRef(null),b=Pr(g,S),x=i(f,y);return Ea.useEffect(()=>(x.itemMap.set(S,{ref:S,..._}),()=>void x.itemMap.delete(S))),W.jsx(h,{[c]:"",ref:b,children:m})});v.displayName=f;function d(p){const g=i(e+"CollectionConsumer",p);return Ea.useCallback(()=>{const m=g.collectionRef.current;if(!m)return[];const _=Array.from(m.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((x,w)=>_.indexOf(x.ref.current)-_.indexOf(w.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:u,ItemSlot:v},d,n]}var mbt=z.createContext(void 0);function _bt(e){const t=z.useContext(mbt);return e||t||"ltr"}var Sbt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=Sbt.reduce((e,t)=>{const r=A_(`Primitive.${t}`),n=z.forwardRef((a,i)=>{const{asChild:o,...s}=a,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),W.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function bbt(e,t){e&&ef.flushSync(()=>e.dispatchEvent(t))}function Uu(e){const t=z.useRef(e);return z.useEffect(()=>{t.current=e}),z.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function xbt(e,t=globalThis==null?void 0:globalThis.document){const r=Uu(e);z.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var wbt="DismissableLayer",XM="dismissableLayer.update",Tbt="dismissableLayer.pointerDownOutside",Cbt="dismissableLayer.focusOutside",E3,yY=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mY=z.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,u=z.useContext(yY),[f,c]=z.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=z.useState({}),d=Pr(t,w=>c(w)),p=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),m=f?p.indexOf(f):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=y,b=Dbt(w=>{const T=w.target,C=[...u.branches].some(A=>A.contains(T));!S||C||(a==null||a(w),o==null||o(w),w.defaultPrevented||s==null||s())},h),x=Lbt(w=>{const T=w.target;[...u.branches].some(A=>A.contains(T))||(i==null||i(w),o==null||o(w),w.defaultPrevented||s==null||s())},h);return xbt(w=>{m===u.layers.size-1&&(n==null||n(w),!w.defaultPrevented&&s&&(w.preventDefault(),s()))},h),z.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(E3=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),O3(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=E3)}},[f,h,r,u]),z.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),O3())},[f,u]),z.useEffect(()=>{const w=()=>v({});return document.addEventListener(XM,w),()=>document.removeEventListener(XM,w)},[]),W.jsx(We.div,{...l,ref:d,style:{pointerEvents:_?S?"auto":"none":void 0,...e.style},onFocusCapture:Ze(e.onFocusCapture,x.onFocusCapture),onBlurCapture:Ze(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:Ze(e.onPointerDownCapture,b.onPointerDownCapture)})});mY.displayName=wbt;var Abt="DismissableLayerBranch",Mbt=z.forwardRef((e,t)=>{const r=z.useContext(yY),n=z.useRef(null),a=Pr(t,n);return z.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),W.jsx(We.div,{...e,ref:a})});Mbt.displayName=Abt;function Dbt(e,t=globalThis==null?void 0:globalThis.document){const r=Uu(e),n=z.useRef(!1),a=z.useRef(()=>{});return z.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let l=function(){_Y(Tbt,r,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Lbt(e,t=globalThis==null?void 0:globalThis.document){const r=Uu(e),n=z.useRef(!1);return z.useEffect(()=>{const a=i=>{i.target&&!n.current&&_Y(Cbt,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function O3(){const e=new CustomEvent(XM);document.dispatchEvent(e)}function _Y(e,t,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?bbt(a,i):a.dispatchEvent(i)}var bw=0;function Ebt(){z.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??R3()),document.body.insertAdjacentElement("beforeend",e[1]??R3()),bw++,()=>{bw===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),bw--}},[])}function R3(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var xw="focusScope.autoFocusOnMount",ww="focusScope.autoFocusOnUnmount",I3={bubbles:!1,cancelable:!0},Obt="FocusScope",SY=z.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[s,l]=z.useState(null),u=Uu(a),f=Uu(i),c=z.useRef(null),h=Pr(t,p=>l(p)),v=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect(()=>{if(n){let p=function(_){if(v.paused||!s)return;const S=_.target;s.contains(S)?c.current=S:os(c.current,{select:!0})},g=function(_){if(v.paused||!s)return;const S=_.relatedTarget;S!==null&&(s.contains(S)||os(c.current,{select:!0}))},y=function(_){if(document.activeElement===document.body)for(const b of _)b.removedNodes.length>0&&os(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",g);const m=new MutationObserver(y);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",g),m.disconnect()}}},[n,s,v.paused]),z.useEffect(()=>{if(s){N3.add(v);const p=document.activeElement;if(!s.contains(p)){const y=new CustomEvent(xw,I3);s.addEventListener(xw,u),s.dispatchEvent(y),y.defaultPrevented||(Rbt(zbt(bY(s)),{select:!0}),document.activeElement===p&&os(s))}return()=>{s.removeEventListener(xw,u),setTimeout(()=>{const y=new CustomEvent(ww,I3);s.addEventListener(ww,f),s.dispatchEvent(y),y.defaultPrevented||os(p??document.body,{select:!0}),s.removeEventListener(ww,f),N3.remove(v)},0)}}},[s,u,f,v]);const d=z.useCallback(p=>{if(!r&&!n||v.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(g&&y){const m=p.currentTarget,[_,S]=Ibt(m);_&&S?!p.shiftKey&&y===S?(p.preventDefault(),r&&os(_,{select:!0})):p.shiftKey&&y===_&&(p.preventDefault(),r&&os(S,{select:!0})):y===m&&p.preventDefault()}},[r,n,v.paused]);return W.jsx(We.div,{tabIndex:-1,...o,ref:h,onKeyDown:d})});SY.displayName=Obt;function Rbt(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(os(n,{select:t}),document.activeElement!==r)return}function Ibt(e){const t=bY(e),r=P3(t,e),n=P3(t.reverse(),e);return[r,n]}function bY(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function P3(e,t){for(const r of e)if(!Pbt(r,{upTo:t}))return r}function Pbt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Nbt(e){return e instanceof HTMLInputElement&&"select"in e}function os(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Nbt(e)&&t&&e.select()}}var N3=kbt();function kbt(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=k3(e,t),e.unshift(t)},remove(t){var r;e=k3(e,t),(r=e[0])==null||r.resume()}}}function k3(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function zbt(e){return e.filter(t=>t.tagName!=="A")}var hn=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},Bbt=AG[" useId ".trim().toString()]||(()=>{}),Vbt=0;function nO(e){const[t,r]=z.useState(Bbt());return hn(()=>{r(n=>n??String(Vbt++))},[e]),e||(t?`radix-${t}`:"")}const Gbt=["top","right","bottom","left"],Qs=Math.min,_n=Math.max,M_=Math.round,qy=Math.floor,Li=e=>({x:e,y:e}),Hbt={left:"right",right:"left",bottom:"top",top:"bottom"},Ubt={start:"end",end:"start"};function ZM(e,t,r){return _n(e,Qs(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function Bo(e){return e.split("-")[0]}function Kh(e){return e.split("-")[1]}function aO(e){return e==="x"?"y":"x"}function iO(e){return e==="y"?"height":"width"}const Fbt=new Set(["top","bottom"]);function mi(e){return Fbt.has(Bo(e))?"y":"x"}function oO(e){return aO(mi(e))}function Ybt(e,t,r){r===void 0&&(r=!1);const n=Kh(e),a=oO(e),i=iO(a);let o=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=D_(o)),[o,D_(o)]}function jbt(e){const t=D_(e);return[$M(e),t,$M(t)]}function $M(e){return e.replace(/start|end/g,t=>Ubt[t])}const z3=["left","right"],B3=["right","left"],Wbt=["top","bottom"],Xbt=["bottom","top"];function Zbt(e,t,r){switch(e){case"top":case"bottom":return r?t?B3:z3:t?z3:B3;case"left":case"right":return t?Wbt:Xbt;default:return[]}}function $bt(e,t,r,n){const a=Kh(e);let i=Zbt(Bo(e),r==="start",n);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map($M)))),i}function D_(e){return e.replace(/left|right|bottom|top/g,t=>Hbt[t])}function qbt(e){return{top:0,right:0,bottom:0,left:0,...e}}function xY(e){return typeof e!="number"?qbt(e):{top:e,right:e,bottom:e,left:e}}function L_(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function V3(e,t,r){let{reference:n,floating:a}=e;const i=mi(t),o=oO(t),s=iO(o),l=Bo(t),u=i==="y",f=n.x+n.width/2-a.width/2,c=n.y+n.height/2-a.height/2,h=n[s]/2-a[s]/2;let v;switch(l){case"top":v={x:f,y:n.y-a.height};break;case"bottom":v={x:f,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:c};break;case"left":v={x:n.x-a.width,y:c};break;default:v={x:n.x,y:n.y}}switch(Kh(t)){case"start":v[o]-=h*(r&&u?-1:1);break;case"end":v[o]+=h*(r&&u?-1:1);break}return v}async function Kbt(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:h=!1,padding:v=0}=zo(t,e),d=xY(v),g=s[h?c==="floating"?"reference":"floating":c],y=L_(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(g)))==null||r?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:l})),m=c==="floating"?{x:n,y:a,width:o.floating.width,height:o.floating.height}:o.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},b=L_(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:_,strategy:l}):m);return{top:(y.top-b.top+d.top)/S.y,bottom:(b.bottom-y.bottom+d.bottom)/S.y,left:(y.left-b.left+d.left)/S.x,right:(b.right-y.right+d.right)/S.x}}const Qbt=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:c}=V3(u,n,l),h=n,v={},d=0;for(let g=0;g<s.length;g++){var p;const{name:y,fn:m}=s[g],{x:_,y:S,data:b,reset:x}=await m({x:f,y:c,initialPlacement:n,placement:h,strategy:a,middlewareData:v,rects:u,platform:{...o,detectOverflow:(p=o.detectOverflow)!=null?p:Kbt},elements:{reference:e,floating:t}});f=_??f,c=S??c,v={...v,[y]:{...v[y],...b}},x&&d<=50&&(d++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(u=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):x.rects),{x:f,y:c}=V3(u,h,l)),g=-1)}return{x:f,y:c,placement:h,strategy:a,middlewareData:v}},Jbt=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=zo(e,t)||{};if(u==null)return{};const c=xY(f),h={x:r,y:n},v=oO(a),d=iO(v),p=await o.getDimensions(u),g=v==="y",y=g?"top":"left",m=g?"bottom":"right",_=g?"clientHeight":"clientWidth",S=i.reference[d]+i.reference[v]-h[v]-i.floating[d],b=h[v]-i.reference[v],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let w=x?x[_]:0;(!w||!await(o.isElement==null?void 0:o.isElement(x)))&&(w=s.floating[_]||i.floating[d]);const T=S/2-b/2,C=w/2-p[d]/2-1,A=Qs(c[y],C),M=Qs(c[m],C),E=A,L=w-p[d]-M,R=w/2-p[d]/2+T,P=ZM(E,R,L),O=!l.arrow&&Kh(a)!=null&&R!==P&&i.reference[d]/2-(R<E?A:M)-p[d]/2<0,N=O?R<E?R-E:R-L:0;return{[v]:h[v]+N,data:{[v]:P,centerOffset:R-P-N,...O&&{alignmentOffset:N}},reset:O}}}),txt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:p=!0,...g}=zo(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=Bo(a),m=mi(s),_=Bo(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(_||!p?[D_(s)]:jbt(s)),x=d!=="none";!h&&x&&b.push(...$bt(s,p,d,S));const w=[s,...b],T=await l.detectOverflow(t,g),C=[];let A=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&C.push(T[y]),c){const R=Ybt(a,o,S);C.push(T[R[0]],T[R[1]])}if(A=[...A,{placement:a,overflows:C}],!C.every(R=>R<=0)){var M,E;const R=(((M=i.flip)==null?void 0:M.index)||0)+1,P=w[R];if(P&&(!(c==="alignment"?m!==mi(P):!1)||A.every(I=>mi(I.placement)===m?I.overflows[0]>0:!0)))return{data:{index:R,overflows:A},reset:{placement:P}};let O=(E=A.filter(N=>N.overflows[0]<=0).sort((N,I)=>N.overflows[1]-I.overflows[1])[0])==null?void 0:E.placement;if(!O)switch(v){case"bestFit":{var L;const N=(L=A.filter(I=>{if(x){const k=mi(I.placement);return k===m||k==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(k=>k>0).reduce((k,B)=>k+B,0)]).sort((I,k)=>I[1]-k[1])[0])==null?void 0:L[0];N&&(O=N);break}case"initialPlacement":O=s;break}if(a!==O)return{reset:{placement:O}}}return{}}}};function G3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function H3(e){return Gbt.some(t=>e[t]>=0)}const ext=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:a="referenceHidden",...i}=zo(e,t);switch(a){case"referenceHidden":{const o=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=G3(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:H3(s)}}}case"escaped":{const o=await n.detectOverflow(t,{...i,altBoundary:!0}),s=G3(o,r.floating);return{data:{escapedOffsets:s,escaped:H3(s)}}}default:return{}}}}},wY=new Set(["left","top"]);async function rxt(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=Bo(r),s=Kh(r),l=mi(r)==="y",u=wY.has(o)?-1:1,f=i&&l?-1:1,c=zo(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:d}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof d=="number"&&(v=s==="end"?d*-1:d),l?{x:v*f,y:h*u}:{x:h*u,y:v*f}}const nxt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await rxt(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},axt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a,platform:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:m,y:_}=y;return{x:m,y:_}}},...u}=zo(e,t),f={x:r,y:n},c=await i.detectOverflow(t,u),h=mi(Bo(a)),v=aO(h);let d=f[v],p=f[h];if(o){const y=v==="y"?"top":"left",m=v==="y"?"bottom":"right",_=d+c[y],S=d-c[m];d=ZM(_,d,S)}if(s){const y=h==="y"?"top":"left",m=h==="y"?"bottom":"right",_=p+c[y],S=p-c[m];p=ZM(_,p,S)}const g=l.fn({...t,[v]:d,[h]:p});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[v]:o,[h]:s}}}}}},ixt=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=zo(e,t),f={x:r,y:n},c=mi(a),h=aO(c);let v=f[h],d=f[c];const p=zo(s,t),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const _=h==="y"?"height":"width",S=i.reference[h]-i.floating[_]+g.mainAxis,b=i.reference[h]+i.reference[_]-g.mainAxis;v<S?v=S:v>b&&(v=b)}if(u){var y,m;const _=h==="y"?"width":"height",S=wY.has(Bo(a)),b=i.reference[c]-i.floating[_]+(S&&((y=o.offset)==null?void 0:y[c])||0)+(S?0:g.crossAxis),x=i.reference[c]+i.reference[_]+(S?0:((m=o.offset)==null?void 0:m[c])||0)-(S?g.crossAxis:0);d<b?d=b:d>x&&(d=x)}return{[h]:v,[c]:d}}}},oxt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...u}=zo(e,t),f=await o.detectOverflow(t,u),c=Bo(a),h=Kh(a),v=mi(a)==="y",{width:d,height:p}=i.floating;let g,y;c==="top"||c==="bottom"?(g=c,y=h===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,g=h==="end"?"top":"bottom");const m=p-f.top-f.bottom,_=d-f.left-f.right,S=Qs(p-f[g],m),b=Qs(d-f[y],_),x=!t.middlewareData.shift;let w=S,T=b;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(T=_),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(w=m),x&&!h){const A=_n(f.left,0),M=_n(f.right,0),E=_n(f.top,0),L=_n(f.bottom,0);v?T=d-2*(A!==0||M!==0?A+M:_n(f.left,f.right)):w=p-2*(E!==0||L!==0?E+L:_n(f.top,f.bottom))}await l({...t,availableWidth:T,availableHeight:w});const C=await o.getDimensions(s.floating);return d!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function f1(){return typeof window<"u"}function Qh(e){return TY(e)?(e.nodeName||"").toLowerCase():"#document"}function In(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hi(e){var t;return(t=(TY(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function TY(e){return f1()?e instanceof Node||e instanceof In(e).Node:!1}function ja(e){return f1()?e instanceof Element||e instanceof In(e).Element:!1}function zi(e){return f1()?e instanceof HTMLElement||e instanceof In(e).HTMLElement:!1}function U3(e){return!f1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof In(e).ShadowRoot}const sxt=new Set(["inline","contents"]);function yg(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Wa(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!sxt.has(a)}const lxt=new Set(["table","td","th"]);function uxt(e){return lxt.has(Qh(e))}const fxt=[":popover-open",":modal"];function c1(e){return fxt.some(t=>{try{return e.matches(t)}catch{return!1}})}const cxt=["transform","translate","scale","rotate","perspective"],hxt=["transform","translate","scale","rotate","perspective","filter"],vxt=["paint","layout","strict","content"];function sO(e){const t=lO(),r=ja(e)?Wa(e):e;return cxt.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||hxt.some(n=>(r.willChange||"").includes(n))||vxt.some(n=>(r.contain||"").includes(n))}function dxt(e){let t=Js(e);for(;zi(t)&&!vh(t);){if(sO(t))return t;if(c1(t))return null;t=Js(t)}return null}function lO(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const pxt=new Set(["html","body","#document"]);function vh(e){return pxt.has(Qh(e))}function Wa(e){return In(e).getComputedStyle(e)}function h1(e){return ja(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Js(e){if(Qh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||U3(e)&&e.host||Hi(e);return U3(t)?t.host:t}function CY(e){const t=Js(e);return vh(t)?e.ownerDocument?e.ownerDocument.body:e.body:zi(t)&&yg(t)?t:CY(t)}function Mp(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=CY(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),o=In(a);if(i){const s=qM(o);return t.concat(o,o.visualViewport||[],yg(a)?a:[],s&&r?Mp(s):[])}return t.concat(a,Mp(a,[],r))}function qM(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AY(e){const t=Wa(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=zi(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=M_(r)!==i||M_(n)!==o;return s&&(r=i,n=o),{width:r,height:n,$:s}}function uO(e){return ja(e)?e:e.contextElement}function zc(e){const t=uO(e);if(!zi(t))return Li(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=AY(t);let o=(i?M_(r.width):r.width)/n,s=(i?M_(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const gxt=Li(0);function MY(e){const t=In(e);return!lO()||!t.visualViewport?gxt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yxt(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==In(e)?!1:t}function Fu(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=uO(e);let o=Li(1);t&&(n?ja(n)&&(o=zc(n)):o=zc(e));const s=yxt(i,r,n)?MY(i):Li(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,f=a.width/o.x,c=a.height/o.y;if(i){const h=In(i),v=n&&ja(n)?In(n):n;let d=h,p=qM(d);for(;p&&n&&v!==d;){const g=zc(p),y=p.getBoundingClientRect(),m=Wa(p),_=y.left+(p.clientLeft+parseFloat(m.paddingLeft))*g.x,S=y.top+(p.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x,u*=g.y,f*=g.x,c*=g.y,l+=_,u+=S,d=In(p),p=qM(d)}}return L_({width:f,height:c,x:l,y:u})}function v1(e,t){const r=h1(e).scrollLeft;return t?t.left+r:Fu(Hi(e)).left+r}function DY(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-v1(e,r),a=r.top+t.scrollTop;return{x:n,y:a}}function mxt(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const i=a==="fixed",o=Hi(n),s=t?c1(t.floating):!1;if(n===o||s&&i)return r;let l={scrollLeft:0,scrollTop:0},u=Li(1);const f=Li(0),c=zi(n);if((c||!c&&!i)&&((Qh(n)!=="body"||yg(o))&&(l=h1(n)),zi(n))){const v=Fu(n);u=zc(n),f.x=v.x+n.clientLeft,f.y=v.y+n.clientTop}const h=o&&!c&&!i?DY(o,l):Li(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+f.x+h.x,y:r.y*u.y-l.scrollTop*u.y+f.y+h.y}}function _xt(e){return Array.from(e.getClientRects())}function Sxt(e){const t=Hi(e),r=h1(e),n=e.ownerDocument.body,a=_n(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=_n(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+v1(e);const s=-r.scrollTop;return Wa(n).direction==="rtl"&&(o+=_n(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:s}}const F3=25;function bxt(e,t){const r=In(e),n=Hi(e),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const f=lO();(!f||f&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}const u=v1(n);if(u<=0){const f=n.ownerDocument,c=f.body,h=getComputedStyle(c),v=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,d=Math.abs(n.clientWidth-c.clientWidth-v);d<=F3&&(i-=d)}else u<=F3&&(i+=u);return{width:i,height:o,x:s,y:l}}const xxt=new Set(["absolute","fixed"]);function wxt(e,t){const r=Fu(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=zi(e)?zc(e):Li(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=n*i.y;return{width:o,height:s,x:l,y:u}}function Y3(e,t,r){let n;if(t==="viewport")n=bxt(e,r);else if(t==="document")n=Sxt(Hi(e));else if(ja(t))n=wxt(t,r);else{const a=MY(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return L_(n)}function LY(e,t){const r=Js(e);return r===t||!ja(r)||vh(r)?!1:Wa(r).position==="fixed"||LY(r,t)}function Txt(e,t){const r=t.get(e);if(r)return r;let n=Mp(e,[],!1).filter(s=>ja(s)&&Qh(s)!=="body"),a=null;const i=Wa(e).position==="fixed";let o=i?Js(e):e;for(;ja(o)&&!vh(o);){const s=Wa(o),l=sO(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&xxt.has(a.position)||yg(o)&&!l&&LY(e,o))?n=n.filter(f=>f!==o):a=s,o=Js(o)}return t.set(e,n),n}function Cxt(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?c1(t)?[]:Txt(t,this._c):[].concat(r),n],s=o[0],l=o.reduce((u,f)=>{const c=Y3(t,f,a);return u.top=_n(c.top,u.top),u.right=Qs(c.right,u.right),u.bottom=Qs(c.bottom,u.bottom),u.left=_n(c.left,u.left),u},Y3(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Axt(e){const{width:t,height:r}=AY(e);return{width:t,height:r}}function Mxt(e,t,r){const n=zi(t),a=Hi(t),i=r==="fixed",o=Fu(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Li(0);function u(){l.x=v1(a)}if(n||!n&&!i)if((Qh(t)!=="body"||yg(a))&&(s=h1(t)),n){const v=Fu(t,!0,i,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else a&&u();i&&!n&&a&&u();const f=a&&!n&&!i?DY(a,s):Li(0),c=o.left+s.scrollLeft-l.x-f.x,h=o.top+s.scrollTop-l.y-f.y;return{x:c,y:h,width:o.width,height:o.height}}function Tw(e){return Wa(e).position==="static"}function j3(e,t){if(!zi(e)||Wa(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Hi(e)===r&&(r=r.ownerDocument.body),r}function EY(e,t){const r=In(e);if(c1(e))return r;if(!zi(e)){let a=Js(e);for(;a&&!vh(a);){if(ja(a)&&!Tw(a))return a;a=Js(a)}return r}let n=j3(e,t);for(;n&&uxt(n)&&Tw(n);)n=j3(n,t);return n&&vh(n)&&Tw(n)&&!sO(n)?r:n||dxt(e)||r}const Dxt=async function(e){const t=this.getOffsetParent||EY,r=this.getDimensions,n=await r(e.floating);return{reference:Mxt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Lxt(e){return Wa(e).direction==="rtl"}const Ext={convertOffsetParentRelativeRectToViewportRelativeRect:mxt,getDocumentElement:Hi,getClippingRect:Cxt,getOffsetParent:EY,getElementRects:Dxt,getClientRects:_xt,getDimensions:Axt,getScale:zc,isElement:ja,isRTL:Lxt};function OY(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Oxt(e,t){let r=null,n;const a=Hi(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:f,top:c,width:h,height:v}=u;if(s||t(),!h||!v)return;const d=qy(c),p=qy(a.clientWidth-(f+h)),g=qy(a.clientHeight-(c+v)),y=qy(f),_={rootMargin:-d+"px "+-p+"px "+-g+"px "+-y+"px",threshold:_n(0,Qs(1,l))||1};let S=!0;function b(x){const w=x[0].intersectionRatio;if(w!==l){if(!S)return o();w?o(!1,w):n=setTimeout(()=>{o(!1,1e-7)},1e3)}w===1&&!OY(u,e.getBoundingClientRect())&&o(),S=!1}try{r=new IntersectionObserver(b,{..._,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,_)}r.observe(e)}return o(!0),i}function Rxt(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=uO(e),f=a||i?[...u?Mp(u):[],...Mp(t)]:[];f.forEach(y=>{a&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const c=u&&s?Oxt(u,r):null;let h=-1,v=null;o&&(v=new ResizeObserver(y=>{let[m]=y;m&&m.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var _;(_=v)==null||_.observe(t)})),r()}),u&&!l&&v.observe(u),v.observe(t));let d,p=l?Fu(e):null;l&&g();function g(){const y=Fu(e);p&&!OY(p,y)&&r(),p=y,d=requestAnimationFrame(g)}return r(),()=>{var y;f.forEach(m=>{a&&m.removeEventListener("scroll",r),i&&m.removeEventListener("resize",r)}),c==null||c(),(y=v)==null||y.disconnect(),v=null,l&&cancelAnimationFrame(d)}}const Ixt=nxt,Pxt=axt,Nxt=txt,kxt=oxt,zxt=ext,W3=Jbt,Bxt=ixt,Vxt=(e,t,r)=>{const n=new Map,a={platform:Ext,...r},i={...a.platform,_c:n};return Qbt(e,t,{...a,platform:i})};var Gxt=typeof document<"u",Hxt=function(){},Gm=Gxt?z.useLayoutEffect:Hxt;function E_(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!E_(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const i=a[n];if(!(i==="_owner"&&e.$$typeof)&&!E_(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function RY(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function X3(e,t){const r=RY(e);return Math.round(t*r)/r}function Cw(e){const t=z.useRef(e);return Gm(()=>{t.current=e}),t}function Uxt(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,c]=z.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=z.useState(n);E_(h,n)||v(n);const[d,p]=z.useState(null),[g,y]=z.useState(null),m=z.useCallback(I=>{I!==x.current&&(x.current=I,p(I))},[]),_=z.useCallback(I=>{I!==w.current&&(w.current=I,y(I))},[]),S=i||d,b=o||g,x=z.useRef(null),w=z.useRef(null),T=z.useRef(f),C=l!=null,A=Cw(l),M=Cw(a),E=Cw(u),L=z.useCallback(()=>{if(!x.current||!w.current)return;const I={placement:t,strategy:r,middleware:h};M.current&&(I.platform=M.current),Vxt(x.current,w.current,I).then(k=>{const B={...k,isPositioned:E.current!==!1};R.current&&!E_(T.current,B)&&(T.current=B,ef.flushSync(()=>{c(B)}))})},[h,t,r,M,E]);Gm(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,c(I=>({...I,isPositioned:!1})))},[u]);const R=z.useRef(!1);Gm(()=>(R.current=!0,()=>{R.current=!1}),[]),Gm(()=>{if(S&&(x.current=S),b&&(w.current=b),S&&b){if(A.current)return A.current(S,b,L);L()}},[S,b,L,A,C]);const P=z.useMemo(()=>({reference:x,floating:w,setReference:m,setFloating:_}),[m,_]),O=z.useMemo(()=>({reference:S,floating:b}),[S,b]),N=z.useMemo(()=>{const I={position:r,left:0,top:0};if(!O.floating)return I;const k=X3(O.floating,f.x),B=X3(O.floating,f.y);return s?{...I,transform:"translate("+k+"px, "+B+"px)",...RY(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:k,top:B}},[r,s,O.floating,f.x,f.y]);return z.useMemo(()=>({...f,update:L,refs:P,elements:O,floatingStyles:N}),[f,L,P,O,N])}const Fxt=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?W3({element:n.current,padding:a}).fn(r):{}:n?W3({element:n,padding:a}).fn(r):{}}}},Yxt=(e,t)=>({...Ixt(e),options:[e,t]}),jxt=(e,t)=>({...Pxt(e),options:[e,t]}),Wxt=(e,t)=>({...Bxt(e),options:[e,t]}),Xxt=(e,t)=>({...Nxt(e),options:[e,t]}),Zxt=(e,t)=>({...kxt(e),options:[e,t]}),$xt=(e,t)=>({...zxt(e),options:[e,t]}),qxt=(e,t)=>({...Fxt(e),options:[e,t]});var Kxt="Arrow",IY=z.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...i}=e;return W.jsx(We.svg,{...i,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:W.jsx("polygon",{points:"0,0 30,0 15,10"})})});IY.displayName=Kxt;var Qxt=IY;function Jxt(e){const[t,r]=z.useState(void 0);return hn(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var fO="Popper",[PY,NY]=rO(fO),[twt,kY]=PY(fO),zY=e=>{const{__scopePopper:t,children:r}=e,[n,a]=z.useState(null);return W.jsx(twt,{scope:t,anchor:n,onAnchorChange:a,children:r})};zY.displayName=fO;var BY="PopperAnchor",VY=z.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,i=kY(BY,r),o=z.useRef(null),s=Pr(t,o),l=z.useRef(null);return z.useEffect(()=>{const u=l.current;l.current=(n==null?void 0:n.current)||o.current,u!==l.current&&i.onAnchorChange(l.current)}),n?null:W.jsx(We.div,{...a,ref:s})});VY.displayName=BY;var cO="PopperContent",[ewt,rwt]=PY(cO),GY=z.forwardRef((e,t)=>{var lt,rt,et,at,$,tt;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:d,...p}=e,g=kY(cO,r),[y,m]=z.useState(null),_=Pr(t,kt=>m(kt)),[S,b]=z.useState(null),x=Jxt(S),w=(x==null?void 0:x.width)??0,T=(x==null?void 0:x.height)??0,C=n+(i!=="center"?"-"+i:""),A=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(u)?u:[u],E=M.length>0,L={padding:A,boundary:M.filter(awt),altBoundary:E},{refs:R,floatingStyles:P,placement:O,isPositioned:N,middlewareData:I}=Uxt({strategy:"fixed",placement:C,whileElementsMounted:(...kt)=>Rxt(...kt,{animationFrame:v==="always"}),elements:{reference:g.anchor},middleware:[Yxt({mainAxis:a+T,alignmentAxis:o}),l&&jxt({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Wxt():void 0,...L}),l&&Xxt({...L}),Zxt({...L,apply:({elements:kt,rects:Tt,availableWidth:Ut,availableHeight:Wt})=>{const{width:be,height:Fr}=Tt.reference,nr=kt.floating.style;nr.setProperty("--radix-popper-available-width",`${Ut}px`),nr.setProperty("--radix-popper-available-height",`${Wt}px`),nr.setProperty("--radix-popper-anchor-width",`${be}px`),nr.setProperty("--radix-popper-anchor-height",`${Fr}px`)}}),S&&qxt({element:S,padding:s}),iwt({arrowWidth:w,arrowHeight:T}),h&&$xt({strategy:"referenceHidden",...L})]}),[k,B]=FY(O),H=Uu(d);hn(()=>{N&&(H==null||H())},[N,H]);const U=(lt=I.arrow)==null?void 0:lt.x,X=(rt=I.arrow)==null?void 0:rt.y,q=((et=I.arrow)==null?void 0:et.centerOffset)!==0,[st,Dt]=z.useState();return hn(()=>{y&&Dt(window.getComputedStyle(y).zIndex)},[y]),W.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:N?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:st,"--radix-popper-transform-origin":[(at=I.transformOrigin)==null?void 0:at.x,($=I.transformOrigin)==null?void 0:$.y].join(" "),...((tt=I.hide)==null?void 0:tt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:W.jsx(ewt,{scope:r,placedSide:k,onArrowChange:b,arrowX:U,arrowY:X,shouldHideArrow:q,children:W.jsx(We.div,{"data-side":k,"data-align":B,...p,ref:_,style:{...p.style,animation:N?void 0:"none"}})})})});GY.displayName=cO;var HY="PopperArrow",nwt={top:"bottom",right:"left",bottom:"top",left:"right"},UY=z.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,i=rwt(HY,n),o=nwt[i.placedSide];return W.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:W.jsx(Qxt,{...a,ref:r,style:{...a.style,display:"block"}})})});UY.displayName=HY;function awt(e){return e!==null}var iwt=e=>({name:"transformOrigin",options:e,fn(t){var g,y,m;const{placement:r,rects:n,middlewareData:a}=t,o=((g=a.arrow)==null?void 0:g.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,f]=FY(r),c={start:"0%",center:"50%",end:"100%"}[f],h=(((y=a.arrow)==null?void 0:y.x)??0)+s/2,v=(((m=a.arrow)==null?void 0:m.y)??0)+l/2;let d="",p="";return u==="bottom"?(d=o?c:`${h}px`,p=`${-l}px`):u==="top"?(d=o?c:`${h}px`,p=`${n.floating.height+l}px`):u==="right"?(d=`${-l}px`,p=o?c:`${v}px`):u==="left"&&(d=`${n.floating.width+l}px`,p=o?c:`${v}px`),{data:{x:d,y:p}}}});function FY(e){const[t,r="center"]=e.split("-");return[t,r]}var owt=zY,swt=VY,lwt=GY,uwt=UY,fwt="Portal",YY=z.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[a,i]=z.useState(!1);hn(()=>i(!0),[]);const o=r||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?Iq.createPortal(W.jsx(We.div,{...n,ref:t}),o):null});YY.displayName=fwt;var cwt=AG[" useInsertionEffect ".trim().toString()]||hn;function Z3({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[a,i,o]=hwt({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:a;{const f=z.useRef(e!==void 0);z.useEffect(()=>{const c=f.current;c!==s&&console.warn(`${n} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,n])}const u=z.useCallback(f=>{var c;if(s){const h=vwt(f)?f(e):f;h!==e&&((c=o.current)==null||c.call(o,h))}else i(f)},[s,e,i,o]);return[l,u]}function hwt({defaultProp:e,onChange:t}){const[r,n]=z.useState(e),a=z.useRef(r),i=z.useRef(t);return cwt(()=>{i.current=t},[t]),z.useEffect(()=>{var o;a.current!==r&&((o=i.current)==null||o.call(i,r),a.current=r)},[r,a]),[r,n,i]}function vwt(e){return typeof e=="function"}function dwt(e){const t=z.useRef({value:e,previous:e});return z.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var jY=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),pwt="VisuallyHidden",gwt=z.forwardRef((e,t)=>W.jsx(We.span,{...e,ref:t,style:{...jY,...e.style}}));gwt.displayName=pwt;var ywt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kf=new WeakMap,Ky=new WeakMap,Qy={},Aw=0,WY=function(e){return e&&(e.host||WY(e.parentNode))},mwt=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=WY(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},_wt=function(e,t,r,n){var a=mwt(t,Array.isArray(e)?e:[e]);Qy[r]||(Qy[r]=new WeakMap);var i=Qy[r],o=[],s=new Set,l=new Set(a),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};a.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))f(h);else try{var v=h.getAttribute(n),d=v!==null&&v!=="false",p=(Kf.get(h)||0)+1,g=(i.get(h)||0)+1;Kf.set(h,p),i.set(h,g),o.push(h),p===1&&d&&Ky.set(h,!0),g===1&&h.setAttribute(r,"true"),d||h.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),s.clear(),Aw++,function(){o.forEach(function(c){var h=Kf.get(c)-1,v=i.get(c)-1;Kf.set(c,h),i.set(c,v),h||(Ky.has(c)||c.removeAttribute(n),Ky.delete(c)),v||c.removeAttribute(r)}),Aw--,Aw||(Kf=new WeakMap,Kf=new WeakMap,Ky=new WeakMap,Qy={})}},Swt=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=ywt(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),_wt(n,a,r,"aria-hidden")):function(){return null}},Hm="right-scroll-bar-position",Um="width-before-scroll-bar",bwt="with-scroll-bars-hidden",xwt="--removed-body-scroll-bar-size";function Mw(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wwt(e,t){var r=z.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var Twt=typeof window<"u"?z.useLayoutEffect:z.useEffect,$3=new WeakMap;function Cwt(e,t){var r=wwt(null,function(n){return e.forEach(function(a){return Mw(a,n)})});return Twt(function(){var n=$3.get(r);if(n){var a=new Set(n),i=new Set(e),o=r.current;a.forEach(function(s){i.has(s)||Mw(s,null)}),i.forEach(function(s){a.has(s)||Mw(s,o)})}$3.set(r,e)},[e]),r}function Awt(e){return e}function Mwt(e,t){t===void 0&&(t=Awt);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var o=t(i,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(i),o=r}var l=function(){var f=o;o=[],f.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(f){o.push(f),u()},filter:function(f){return o=o.filter(f),r}}}};return a}function Dwt(e){e===void 0&&(e={});var t=Mwt(null);return t.options=wn({async:!0,ssr:!1},e),t}var XY=function(e){var t=e.sideCar,r=g2(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return z.createElement(n,wn({},r))};XY.isSideCarExport=!0;function Lwt(e,t){return e.useMedium(t),XY}var ZY=Dwt(),Dw=function(){},d1=z.forwardRef(function(e,t){var r=z.useRef(null),n=z.useState({onScrollCapture:Dw,onWheelCapture:Dw,onTouchMoveCapture:Dw}),a=n[0],i=n[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,c=e.shards,h=e.sideCar,v=e.noRelative,d=e.noIsolation,p=e.inert,g=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,_=e.gapMode,S=g2(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=h,x=Cwt([r,t]),w=wn(wn({},S),a);return z.createElement(z.Fragment,null,f&&z.createElement(b,{sideCar:ZY,removeScrollBar:u,shards:c,noRelative:v,noIsolation:d,inert:p,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:_}),o?z.cloneElement(z.Children.only(s),wn(wn({},w),{ref:x})):z.createElement(m,wn({},w,{className:l,ref:x}),s))});d1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};d1.classNames={fullWidth:Um,zeroRight:Hm};var Ewt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Owt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ewt();return t&&e.setAttribute("nonce",t),e}function Rwt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Iwt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pwt=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Owt())&&(Rwt(t,r),Iwt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nwt=function(){var e=Pwt();return function(t,r){z.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},$Y=function(){var e=Nwt(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},kwt={left:0,top:0,right:0,gap:0},Lw=function(e){return parseInt(e||"",10)||0},zwt=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Lw(r),Lw(n),Lw(a)]},Bwt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kwt;var t=zwt(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Vwt=$Y(),Bc="data-scroll-locked",Gwt=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),`
164
+ .`.concat(bwt,` {
165
+ overflow: hidden `).concat(n,`;
166
+ padding-right: `).concat(s,"px ").concat(n,`;
167
+ }
168
+ body[`).concat(Bc,`] {
169
+ overflow: hidden `).concat(n,`;
170
+ overscroll-behavior: contain;
171
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
172
+ padding-left: `.concat(a,`px;
173
+ padding-top: `).concat(i,`px;
174
+ padding-right: `).concat(o,`px;
175
+ margin-left:0;
176
+ margin-top:0;
177
+ margin-right: `).concat(s,"px ").concat(n,`;
178
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
179
+ }
180
+
181
+ .`).concat(Hm,` {
182
+ right: `).concat(s,"px ").concat(n,`;
183
+ }
184
+
185
+ .`).concat(Um,` {
186
+ margin-right: `).concat(s,"px ").concat(n,`;
187
+ }
188
+
189
+ .`).concat(Hm," .").concat(Hm,` {
190
+ right: 0 `).concat(n,`;
191
+ }
192
+
193
+ .`).concat(Um," .").concat(Um,` {
194
+ margin-right: 0 `).concat(n,`;
195
+ }
196
+
197
+ body[`).concat(Bc,`] {
198
+ `).concat(xwt,": ").concat(s,`px;
199
+ }
200
+ `)},q3=function(){var e=parseInt(document.body.getAttribute(Bc)||"0",10);return isFinite(e)?e:0},Hwt=function(){z.useEffect(function(){return document.body.setAttribute(Bc,(q3()+1).toString()),function(){var e=q3()-1;e<=0?document.body.removeAttribute(Bc):document.body.setAttribute(Bc,e.toString())}},[])},Uwt=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;Hwt();var i=z.useMemo(function(){return Bwt(a)},[a]);return z.createElement(Vwt,{styles:Gwt(i,!t,a,r?"":"!important")})},KM=!1;if(typeof window<"u")try{var Jy=Object.defineProperty({},"passive",{get:function(){return KM=!0,!0}});window.addEventListener("test",Jy,Jy),window.removeEventListener("test",Jy,Jy)}catch{KM=!1}var Qf=KM?{passive:!1}:!1,Fwt=function(e){return e.tagName==="TEXTAREA"},qY=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Fwt(e)&&r[t]==="visible")},Ywt=function(e){return qY(e,"overflowY")},jwt=function(e){return qY(e,"overflowX")},K3=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=KY(e,n);if(a){var i=QY(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Wwt=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Xwt=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},KY=function(e,t){return e==="v"?Ywt(t):jwt(t)},QY=function(e,t){return e==="v"?Wwt(t):Xwt(t)},Zwt=function(e,t){return e==="h"&&t==="rtl"?-1:1},$wt=function(e,t,r,n,a){var i=Zwt(e,window.getComputedStyle(t).direction),o=i*n,s=r.target,l=t.contains(s),u=!1,f=o>0,c=0,h=0;do{if(!s)break;var v=QY(e,s),d=v[0],p=v[1],g=v[2],y=p-g-i*d;(d||y)&&KY(e,s)&&(c+=y,h+=d);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&Math.abs(c)<1||!f&&Math.abs(h)<1)&&(u=!0),u},tm=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Q3=function(e){return[e.deltaX,e.deltaY]},J3=function(e){return e&&"current"in e?e.current:e},qwt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kwt=function(e){return`
201
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
202
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
203
+ `)},Qwt=0,Jf=[];function Jwt(e){var t=z.useRef([]),r=z.useRef([0,0]),n=z.useRef(),a=z.useState(Qwt++)[0],i=z.useState($Y)[0],o=z.useRef(e);z.useEffect(function(){o.current=e},[e]),z.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var p=zQ([e.lockRef.current],(e.shards||[]).map(J3),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=z.useCallback(function(p,g){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=tm(p),m=r.current,_="deltaX"in p?p.deltaX:m[0]-y[0],S="deltaY"in p?p.deltaY:m[1]-y[1],b,x=p.target,w=Math.abs(_)>Math.abs(S)?"h":"v";if("touches"in p&&w==="h"&&x.type==="range")return!1;var T=window.getSelection(),C=T&&T.anchorNode,A=C?C===x||C.contains(x):!1;if(A)return!1;var M=K3(w,x);if(!M)return!0;if(M?b=w:(b=w==="v"?"h":"v",M=K3(w,x)),!M)return!1;if(!n.current&&"changedTouches"in p&&(_||S)&&(n.current=b),!b)return!0;var E=n.current||b;return $wt(E,g,p,E==="h"?_:S)},[]),l=z.useCallback(function(p){var g=p;if(!(!Jf.length||Jf[Jf.length-1]!==i)){var y="deltaY"in g?Q3(g):tm(g),m=t.current.filter(function(b){return b.name===g.type&&(b.target===g.target||g.target===b.shadowParent)&&qwt(b.delta,y)})[0];if(m&&m.should){g.cancelable&&g.preventDefault();return}if(!m){var _=(o.current.shards||[]).map(J3).filter(Boolean).filter(function(b){return b.contains(g.target)}),S=_.length>0?s(g,_[0]):!o.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),u=z.useCallback(function(p,g,y,m){var _={name:p,delta:g,target:y,should:m,shadowParent:tTt(y)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(S){return S!==_})},1)},[]),f=z.useCallback(function(p){r.current=tm(p),n.current=void 0},[]),c=z.useCallback(function(p){u(p.type,Q3(p),p.target,s(p,e.lockRef.current))},[]),h=z.useCallback(function(p){u(p.type,tm(p),p.target,s(p,e.lockRef.current))},[]);z.useEffect(function(){return Jf.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Qf),document.addEventListener("touchmove",l,Qf),document.addEventListener("touchstart",f,Qf),function(){Jf=Jf.filter(function(p){return p!==i}),document.removeEventListener("wheel",l,Qf),document.removeEventListener("touchmove",l,Qf),document.removeEventListener("touchstart",f,Qf)}},[]);var v=e.removeScrollBar,d=e.inert;return z.createElement(z.Fragment,null,d?z.createElement(i,{styles:Kwt(a)}):null,v?z.createElement(Uwt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function tTt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eTt=Lwt(ZY,Jwt);var JY=z.forwardRef(function(e,t){return z.createElement(d1,wn({},e,{ref:t,sideCar:eTt}))});JY.classNames=d1.classNames;var rTt=[" ","Enter","ArrowUp","ArrowDown"],nTt=[" ","Enter"],Yu="Select",[p1,g1,aTt]=ybt(Yu),[Jh]=rO(Yu,[aTt,NY]),y1=NY(),[iTt,hl]=Jh(Yu),[oTt,sTt]=Jh(Yu),tj=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:i,value:o,defaultValue:s,onValueChange:l,dir:u,name:f,autoComplete:c,disabled:h,required:v,form:d}=e,p=y1(t),[g,y]=z.useState(null),[m,_]=z.useState(null),[S,b]=z.useState(!1),x=_bt(u),[w,T]=Z3({prop:n,defaultProp:a??!1,onChange:i,caller:Yu}),[C,A]=Z3({prop:o,defaultProp:s,onChange:l,caller:Yu}),M=z.useRef(null),E=g?d||!!g.closest("form"):!0,[L,R]=z.useState(new Set),P=Array.from(L).map(O=>O.props.value).join(";");return W.jsx(owt,{...p,children:W.jsxs(iTt,{required:v,scope:t,trigger:g,onTriggerChange:y,valueNode:m,onValueNodeChange:_,valueNodeHasChildren:S,onValueNodeHasChildrenChange:b,contentId:nO(),value:C,onValueChange:A,open:w,onOpenChange:T,dir:x,triggerPointerDownPosRef:M,disabled:h,children:[W.jsx(p1.Provider,{scope:t,children:W.jsx(oTt,{scope:e.__scopeSelect,onNativeOptionAdd:z.useCallback(O=>{R(N=>new Set(N).add(O))},[]),onNativeOptionRemove:z.useCallback(O=>{R(N=>{const I=new Set(N);return I.delete(O),I})},[]),children:r})}),E?W.jsxs(Sj,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:c,value:C,onChange:O=>A(O.target.value),disabled:h,form:d,children:[C===void 0?W.jsx("option",{value:""}):null,Array.from(L)]},P):null]})})};tj.displayName=Yu;var ej="SelectTrigger",rj=z.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...a}=e,i=y1(r),o=hl(ej,r),s=o.disabled||n,l=Pr(t,o.onTriggerChange),u=g1(r),f=z.useRef("touch"),[c,h,v]=xj(p=>{const g=u().filter(_=>!_.disabled),y=g.find(_=>_.value===o.value),m=wj(g,p,y);m!==void 0&&o.onValueChange(m.value)}),d=p=>{s||(o.onOpenChange(!0),v()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return W.jsx(swt,{asChild:!0,...i,children:W.jsx(We.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":bj(o.value)?"":void 0,...a,ref:l,onClick:Ze(a.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&d(p)}),onPointerDown:Ze(a.onPointerDown,p=>{f.current=p.pointerType;const g=p.target;g.hasPointerCapture(p.pointerId)&&g.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(d(p),p.preventDefault())}),onKeyDown:Ze(a.onKeyDown,p=>{const g=c.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(g&&p.key===" ")&&rTt.includes(p.key)&&(d(),p.preventDefault())})})})});rj.displayName=ej;var nj="SelectValue",aj=z.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,children:i,placeholder:o="",...s}=e,l=hl(nj,r),{onValueNodeHasChildrenChange:u}=l,f=i!==void 0,c=Pr(t,l.onValueNodeChange);return hn(()=>{u(f)},[u,f]),W.jsx(We.span,{...s,ref:c,style:{pointerEvents:"none"},children:bj(l.value)?W.jsx(W.Fragment,{children:o}):i})});aj.displayName=nj;var lTt="SelectIcon",ij=z.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...a}=e;return W.jsx(We.span,{"aria-hidden":!0,...a,ref:t,children:n||"▼"})});ij.displayName=lTt;var uTt="SelectPortal",oj=e=>W.jsx(YY,{asChild:!0,...e});oj.displayName=uTt;var ju="SelectContent",sj=z.forwardRef((e,t)=>{const r=hl(ju,e.__scopeSelect),[n,a]=z.useState();if(hn(()=>{a(new DocumentFragment)},[]),!r.open){const i=n;return i?ef.createPortal(W.jsx(lj,{scope:e.__scopeSelect,children:W.jsx(p1.Slot,{scope:e.__scopeSelect,children:W.jsx("div",{children:e.children})})}),i):null}return W.jsx(uj,{...e,ref:t})});sj.displayName=ju;var Da=10,[lj,vl]=Jh(ju),fTt="SelectContentImpl",cTt=A_("SelectContent.RemoveScroll"),uj=z.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:o,side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:h,collisionPadding:v,sticky:d,hideWhenDetached:p,avoidCollisions:g,...y}=e,m=hl(ju,r),[_,S]=z.useState(null),[b,x]=z.useState(null),w=Pr(t,lt=>S(lt)),[T,C]=z.useState(null),[A,M]=z.useState(null),E=g1(r),[L,R]=z.useState(!1),P=z.useRef(!1);z.useEffect(()=>{if(_)return Swt(_)},[_]),Ebt();const O=z.useCallback(lt=>{const[rt,...et]=E().map(tt=>tt.ref.current),[at]=et.slice(-1),$=document.activeElement;for(const tt of lt)if(tt===$||(tt==null||tt.scrollIntoView({block:"nearest"}),tt===rt&&b&&(b.scrollTop=0),tt===at&&b&&(b.scrollTop=b.scrollHeight),tt==null||tt.focus(),document.activeElement!==$))return},[E,b]),N=z.useCallback(()=>O([T,_]),[O,T,_]);z.useEffect(()=>{L&&N()},[L,N]);const{onOpenChange:I,triggerPointerDownPosRef:k}=m;z.useEffect(()=>{if(_){let lt={x:0,y:0};const rt=at=>{var $,tt;lt={x:Math.abs(Math.round(at.pageX)-((($=k.current)==null?void 0:$.x)??0)),y:Math.abs(Math.round(at.pageY)-(((tt=k.current)==null?void 0:tt.y)??0))}},et=at=>{lt.x<=10&&lt.y<=10?at.preventDefault():_.contains(at.target)||I(!1),document.removeEventListener("pointermove",rt),k.current=null};return k.current!==null&&(document.addEventListener("pointermove",rt),document.addEventListener("pointerup",et,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",rt),document.removeEventListener("pointerup",et,{capture:!0})}}},[_,I,k]),z.useEffect(()=>{const lt=()=>I(!1);return window.addEventListener("blur",lt),window.addEventListener("resize",lt),()=>{window.removeEventListener("blur",lt),window.removeEventListener("resize",lt)}},[I]);const[B,H]=xj(lt=>{const rt=E().filter($=>!$.disabled),et=rt.find($=>$.ref.current===document.activeElement),at=wj(rt,lt,et);at&&setTimeout(()=>at.ref.current.focus())}),U=z.useCallback((lt,rt,et)=>{const at=!P.current&&!et;(m.value!==void 0&&m.value===rt||at)&&(C(lt),at&&(P.current=!0))},[m.value]),X=z.useCallback(()=>_==null?void 0:_.focus(),[_]),q=z.useCallback((lt,rt,et)=>{const at=!P.current&&!et;(m.value!==void 0&&m.value===rt||at)&&M(lt)},[m.value]),st=n==="popper"?QM:fj,Dt=st===QM?{side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:h,collisionPadding:v,sticky:d,hideWhenDetached:p,avoidCollisions:g}:{};return W.jsx(lj,{scope:r,content:_,viewport:b,onViewportChange:x,itemRefCallback:U,selectedItem:T,onItemLeave:X,itemTextRefCallback:q,focusSelectedItem:N,selectedItemText:A,position:n,isPositioned:L,searchRef:B,children:W.jsx(JY,{as:cTt,allowPinchZoom:!0,children:W.jsx(SY,{asChild:!0,trapped:m.open,onMountAutoFocus:lt=>{lt.preventDefault()},onUnmountAutoFocus:Ze(a,lt=>{var rt;(rt=m.trigger)==null||rt.focus({preventScroll:!0}),lt.preventDefault()}),children:W.jsx(mY,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:lt=>lt.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:W.jsx(st,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:lt=>lt.preventDefault(),...y,...Dt,onPlaced:()=>R(!0),ref:w,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Ze(y.onKeyDown,lt=>{const rt=lt.ctrlKey||lt.altKey||lt.metaKey;if(lt.key==="Tab"&&lt.preventDefault(),!rt&&lt.key.length===1&&H(lt.key),["ArrowUp","ArrowDown","Home","End"].includes(lt.key)){let at=E().filter($=>!$.disabled).map($=>$.ref.current);if(["ArrowUp","End"].includes(lt.key)&&(at=at.slice().reverse()),["ArrowUp","ArrowDown"].includes(lt.key)){const $=lt.target,tt=at.indexOf($);at=at.slice(tt+1)}setTimeout(()=>O(at)),lt.preventDefault()}})})})})})})});uj.displayName=fTt;var hTt="SelectItemAlignedPosition",fj=z.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...a}=e,i=hl(ju,r),o=vl(ju,r),[s,l]=z.useState(null),[u,f]=z.useState(null),c=Pr(t,w=>f(w)),h=g1(r),v=z.useRef(!1),d=z.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:y,focusSelectedItem:m}=o,_=z.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&p&&g&&y){const w=i.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),C=i.valueNode.getBoundingClientRect(),A=y.getBoundingClientRect();if(i.dir!=="rtl"){const $=A.left-T.left,tt=C.left-$,kt=w.left-tt,Tt=w.width+kt,Ut=Math.max(Tt,T.width),Wt=window.innerWidth-Da,be=D3(tt,[Da,Math.max(Da,Wt-Ut)]);s.style.minWidth=Tt+"px",s.style.left=be+"px"}else{const $=T.right-A.right,tt=window.innerWidth-C.right-$,kt=window.innerWidth-w.right-tt,Tt=w.width+kt,Ut=Math.max(Tt,T.width),Wt=window.innerWidth-Da,be=D3(tt,[Da,Math.max(Da,Wt-Ut)]);s.style.minWidth=Tt+"px",s.style.right=be+"px"}const M=h(),E=window.innerHeight-Da*2,L=p.scrollHeight,R=window.getComputedStyle(u),P=parseInt(R.borderTopWidth,10),O=parseInt(R.paddingTop,10),N=parseInt(R.borderBottomWidth,10),I=parseInt(R.paddingBottom,10),k=P+O+L+I+N,B=Math.min(g.offsetHeight*5,k),H=window.getComputedStyle(p),U=parseInt(H.paddingTop,10),X=parseInt(H.paddingBottom,10),q=w.top+w.height/2-Da,st=E-q,Dt=g.offsetHeight/2,lt=g.offsetTop+Dt,rt=P+O+lt,et=k-rt;if(rt<=q){const $=M.length>0&&g===M[M.length-1].ref.current;s.style.bottom="0px";const tt=u.clientHeight-p.offsetTop-p.offsetHeight,kt=Math.max(st,Dt+($?X:0)+tt+N),Tt=rt+kt;s.style.height=Tt+"px"}else{const $=M.length>0&&g===M[0].ref.current;s.style.top="0px";const kt=Math.max(q,P+p.offsetTop+($?U:0)+Dt)+et;s.style.height=kt+"px",p.scrollTop=rt-q+p.offsetTop}s.style.margin=`${Da}px 0`,s.style.minHeight=B+"px",s.style.maxHeight=E+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[h,i.trigger,i.valueNode,s,u,p,g,y,i.dir,n]);hn(()=>_(),[_]);const[S,b]=z.useState();hn(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const x=z.useCallback(w=>{w&&d.current===!0&&(_(),m==null||m(),d.current=!1)},[_,m]);return W.jsx(dTt,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:x,children:W.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:W.jsx(We.div,{...a,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});fj.displayName=hTt;var vTt="SelectPopperPosition",QM=z.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:a=Da,...i}=e,o=y1(r);return W.jsx(lwt,{...o,...i,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});QM.displayName=vTt;var[dTt,hO]=Jh(ju,{}),JM="SelectViewport",cj=z.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...a}=e,i=vl(JM,r),o=hO(JM,r),s=Pr(t,i.onViewportChange),l=z.useRef(0);return W.jsxs(W.Fragment,{children:[W.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),W.jsx(p1.Slot,{scope:r,children:W.jsx(We.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Ze(a.onScroll,u=>{const f=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&c){const v=Math.abs(l.current-f.scrollTop);if(v>0){const d=window.innerHeight-Da*2,p=parseFloat(c.style.minHeight),g=parseFloat(c.style.height),y=Math.max(p,g);if(y<d){const m=y+v,_=Math.min(d,m),S=m-_;c.style.height=_+"px",c.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,c.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});cj.displayName=JM;var hj="SelectGroup",[pTt,gTt]=Jh(hj),yTt=z.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=nO();return W.jsx(pTt,{scope:r,id:a,children:W.jsx(We.div,{role:"group","aria-labelledby":a,...n,ref:t})})});yTt.displayName=hj;var vj="SelectLabel",mTt=z.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=gTt(vj,r);return W.jsx(We.div,{id:a.id,...n,ref:t})});mTt.displayName=vj;var O_="SelectItem",[_Tt,dj]=Jh(O_),pj=z.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:a=!1,textValue:i,...o}=e,s=hl(O_,r),l=vl(O_,r),u=s.value===n,[f,c]=z.useState(i??""),[h,v]=z.useState(!1),d=Pr(t,m=>{var _;return(_=l.itemRefCallback)==null?void 0:_.call(l,m,n,a)}),p=nO(),g=z.useRef("touch"),y=()=>{a||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return W.jsx(_Tt,{scope:r,value:n,disabled:a,textId:p,isSelected:u,onItemTextChange:z.useCallback(m=>{c(_=>_||((m==null?void 0:m.textContent)??"").trim())},[]),children:W.jsx(p1.ItemSlot,{scope:r,value:n,disabled:a,textValue:f,children:W.jsx(We.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:d,onFocus:Ze(o.onFocus,()=>v(!0)),onBlur:Ze(o.onBlur,()=>v(!1)),onClick:Ze(o.onClick,()=>{g.current!=="mouse"&&y()}),onPointerUp:Ze(o.onPointerUp,()=>{g.current==="mouse"&&y()}),onPointerDown:Ze(o.onPointerDown,m=>{g.current=m.pointerType}),onPointerMove:Ze(o.onPointerMove,m=>{var _;g.current=m.pointerType,a?(_=l.onItemLeave)==null||_.call(l):g.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ze(o.onPointerLeave,m=>{var _;m.currentTarget===document.activeElement&&((_=l.onItemLeave)==null||_.call(l))}),onKeyDown:Ze(o.onKeyDown,m=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&m.key===" "||(nTt.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})})})})});pj.displayName=O_;var od="SelectItemText",gj=z.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:a,...i}=e,o=hl(od,r),s=vl(od,r),l=dj(od,r),u=sTt(od,r),[f,c]=z.useState(null),h=Pr(t,y=>c(y),l.onItemTextChange,y=>{var m;return(m=s.itemTextRefCallback)==null?void 0:m.call(s,y,l.value,l.disabled)}),v=f==null?void 0:f.textContent,d=z.useMemo(()=>W.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return hn(()=>(p(d),()=>g(d)),[p,g,d]),W.jsxs(W.Fragment,{children:[W.jsx(We.span,{id:l.textId,...i,ref:h}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ef.createPortal(i.children,o.valueNode):null]})});gj.displayName=od;var yj="SelectItemIndicator",mj=z.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return dj(yj,r).isSelected?W.jsx(We.span,{"aria-hidden":!0,...n,ref:t}):null});mj.displayName=yj;var tD="SelectScrollUpButton",STt=z.forwardRef((e,t)=>{const r=vl(tD,e.__scopeSelect),n=hO(tD,e.__scopeSelect),[a,i]=z.useState(!1),o=Pr(t,n.onScrollButtonChange);return hn(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=l.scrollTop>0;i(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),a?W.jsx(_j,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});STt.displayName=tD;var eD="SelectScrollDownButton",bTt=z.forwardRef((e,t)=>{const r=vl(eD,e.__scopeSelect),n=hO(eD,e.__scopeSelect),[a,i]=z.useState(!1),o=Pr(t,n.onScrollButtonChange);return hn(()=>{if(r.viewport&&r.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<u;i(f)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),a?W.jsx(_j,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});bTt.displayName=eD;var _j=z.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...a}=e,i=vl("SelectScrollButton",r),o=z.useRef(null),s=g1(r),l=z.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return z.useEffect(()=>()=>l(),[l]),hn(()=>{var f;const u=s().find(c=>c.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[s]),W.jsx(We.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Ze(a.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:Ze(a.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:Ze(a.onPointerLeave,()=>{l()})})}),xTt="SelectSeparator",wTt=z.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return W.jsx(We.div,{"aria-hidden":!0,...n,ref:t})});wTt.displayName=xTt;var rD="SelectArrow",TTt=z.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,a=y1(r),i=hl(rD,r),o=vl(rD,r);return i.open&&o.position==="popper"?W.jsx(uwt,{...a,...n,ref:t}):null});TTt.displayName=rD;var CTt="SelectBubbleInput",Sj=z.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const a=z.useRef(null),i=Pr(n,a),o=dwt(t);return z.useEffect(()=>{const s=a.current;if(!s)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&f){const c=new Event("change",{bubbles:!0});f.call(s,t),s.dispatchEvent(c)}},[o,t]),W.jsx(We.select,{...r,style:{...jY,...r.style},ref:i,defaultValue:t})});Sj.displayName=CTt;function bj(e){return e===""||e===void 0}function xj(e){const t=Uu(e),r=z.useRef(""),n=z.useRef(0),a=z.useCallback(o=>{const s=r.current+o;t(s),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),i=z.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return z.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,i]}function wj(e,t,r){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let o=ATt(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==r));const l=o.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}function ATt(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var MTt=tj,DTt=rj,LTt=aj,ETt=ij,OTt=oj,RTt=sj,ITt=cj,tV=pj,eV=gj,rV=mj;const PTt=Zp(()=>{const e=t=>{Ie.switchDataSource(t)};return W.jsxs(MTt,{value:Ie.dataSource,onValueChange:e,disabled:Ie.loading,children:[W.jsxs(DTt,{className:Vr("inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border transition-colors","bg-white dark:bg-neutral-800",pe.text.primary,"border-neutral-300 dark:border-neutral-700","hover:bg-neutral-50 dark:hover:bg-neutral-700",pe.select.trigger.focus,"data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed","min-w-[140px] justify-between"),children:[W.jsx(LTt,{}),W.jsx(ETt,{children:W.jsx(IQ,{className:"w-4 h-4"})})]}),W.jsx(OTt,{children:W.jsx(RTt,{className:Vr("overflow-hidden rounded-md border shadow-lg z-50","bg-white dark:bg-neutral-800","border-neutral-300 dark:border-neutral-700"),position:"popper",sideOffset:4,children:W.jsxs(ITt,{className:"p-1",children:[W.jsxs(tV,{value:"claude-code",className:Vr("relative flex items-center gap-2 px-8 py-2 text-sm rounded cursor-pointer outline-none",pe.text.primary,pe.select.item.highlighted,"data-[state=checked]:font-medium"),children:[W.jsx(rV,{className:"absolute left-2",children:W.jsx($R,{className:"w-4 h-4"})}),W.jsx(eV,{children:"Claude Code"})]}),W.jsxs(tV,{value:"codex",className:Vr("relative flex items-center gap-2 px-8 py-2 text-sm rounded cursor-pointer outline-none",pe.text.primary,pe.select.item.highlighted,"data-[state=checked]:font-medium"),children:[W.jsx(rV,{className:"absolute left-2",children:W.jsx($R,{className:"w-4 h-4"})}),W.jsx(eV,{children:"Codex"})]})]})})})]})}),NTt=Zp(()=>{const{t:e,i18n:t}=GG(),{usageData:r,dateRange:n,filteredStats:a}=Ie,i=()=>{if(!n)return"";const o=s=>{try{const l=new Date(s),u=t.language==="zh-CN"?"zh-CN":"en-US";return l.toLocaleDateString(u,{month:"short",day:"numeric",year:"numeric"})}catch{return s}};return n.start===n.end?o(n.start):`${o(n.start)} - ${o(n.end)}`};return W.jsx("div",{className:Vr("min-h-screen py-2 px-4",pe.background.primary),children:W.jsxs("div",{className:"mx-auto max-w-6xl",children:[W.jsx("header",{className:"mb-2",children:W.jsxs("div",{className:"grid grid-cols-3 items-center gap-3",children:[W.jsx("div",{className:"flex justify-start",children:W.jsx(PTt,{})}),W.jsx("div",{className:Vr("text-sm font-medium text-center",pe.text.secondary),children:n&&i()}),W.jsx("div",{className:"flex justify-end",children:W.jsx(kQ,{})})]})}),W.jsx(CQ,{}),r&&!Ie.error&&a&&W.jsxs(W.Fragment,{children:[W.jsxs("div",{className:"grid grid-cols-4 gap-2 mb-4",children:[W.jsx(Ng,{label:e("inputTokens"),value:au(a.inputTokens),color:"blue",isActive:Ie.seriesVisibility.inputTokens,onClick:()=>Ie.toggleSeriesVisibility("inputTokens")}),W.jsx(Ng,{label:e("outputTokens"),value:au(a.outputTokens),color:"green",isActive:Ie.seriesVisibility.outputTokens,onClick:()=>Ie.toggleSeriesVisibility("outputTokens")}),W.jsx(Ng,{label:e("totalTokens"),value:au(a.totalTokens),color:"purple",isActive:Ie.seriesVisibility.totalTokens,onClick:()=>Ie.toggleSeriesVisibility("totalTokens")}),W.jsx(Ng,{label:e("sessionCount"),value:au(a.sessionCount),color:"orange",isActive:Ie.seriesVisibility.sessionCount,onClick:()=>Ie.toggleSeriesVisibility("sessionCount")})]}),W.jsx("div",{children:W.jsx(fbt,{})})]})]})})});var Tj={exports:{}},m1={},Cj={exports:{}},Aj={};/**
204
+ * @license React
205
+ * scheduler.production.js
206
+ *
207
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
208
+ *
209
+ * This source code is licensed under the MIT license found in the
210
+ * LICENSE file in the root directory of this source tree.
211
+ */(function(e){function t(O,N){var I=O.length;O.push(N);t:for(;0<I;){var k=I-1>>>1,B=O[k];if(0<a(B,N))O[k]=N,O[I]=B,I=k;else break t}}function r(O){return O.length===0?null:O[0]}function n(O){if(O.length===0)return null;var N=O[0],I=O.pop();if(I!==N){O[0]=I;t:for(var k=0,B=O.length,H=B>>>1;k<H;){var U=2*(k+1)-1,X=O[U],q=U+1,st=O[q];if(0>a(X,I))q<B&&0>a(st,X)?(O[k]=st,O[q]=I,k=q):(O[k]=X,O[U]=I,k=U);else if(q<B&&0>a(st,I))O[k]=st,O[q]=I,k=q;else break t}}return N}function a(O,N){var I=O.sortIndex-N.sortIndex;return I!==0?I:O.id-N.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,h=3,v=!1,d=!1,p=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function S(O){for(var N=r(u);N!==null;){if(N.callback===null)n(u);else if(N.startTime<=O)n(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=r(u)}}function b(O){if(p=!1,S(O),!d)if(r(l)!==null)d=!0,x||(x=!0,E());else{var N=r(u);N!==null&&P(b,N.startTime-O)}}var x=!1,w=-1,T=5,C=-1;function A(){return g?!0:!(e.unstable_now()-C<T)}function M(){if(g=!1,x){var O=e.unstable_now();C=O;var N=!0;try{t:{d=!1,p&&(p=!1,m(w),w=-1),v=!0;var I=h;try{e:{for(S(O),c=r(l);c!==null&&!(c.expirationTime>O&&A());){var k=c.callback;if(typeof k=="function"){c.callback=null,h=c.priorityLevel;var B=k(c.expirationTime<=O);if(O=e.unstable_now(),typeof B=="function"){c.callback=B,S(O),N=!0;break e}c===r(l)&&n(l),S(O)}else n(l);c=r(l)}if(c!==null)N=!0;else{var H=r(u);H!==null&&P(b,H.startTime-O),N=!1}}break t}finally{c=null,h=I,v=!1}N=void 0}}finally{N?E():x=!1}}}var E;if(typeof _=="function")E=function(){_(M)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,R=L.port2;L.port1.onmessage=M,E=function(){R.postMessage(null)}}else E=function(){y(M,0)};function P(O,N){w=y(function(){O(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(O){switch(h){case 1:case 2:case 3:var N=3;break;default:N=h}var I=h;h=N;try{return O()}finally{h=I}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(O,N){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var I=h;h=O;try{return N()}finally{h=I}},e.unstable_scheduleCallback=function(O,N,I){var k=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?k+I:k):I=k,O){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=I+B,O={id:f++,callback:N,priorityLevel:O,startTime:I,expirationTime:B,sortIndex:-1},I>k?(O.sortIndex=I,t(u,O),r(l)===null&&O===r(u)&&(p?(m(w),w=-1):p=!0,P(b,I-k))):(O.sortIndex=B,t(l,O),d||v||(d=!0,x||(x=!0,E()))),O},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(O){var N=h;return function(){var I=h;h=N;try{return O.apply(this,arguments)}finally{h=I}}}})(Aj);Cj.exports=Aj;var kTt=Cj.exports;/**
212
+ * @license React
213
+ * react-dom-client.production.js
214
+ *
215
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
216
+ *
217
+ * This source code is licensed under the MIT license found in the
218
+ * LICENSE file in the root directory of this source tree.
219
+ */var fr=kTt,Mj=z,zTt=ef;function Z(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Dj(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function mg(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Lj(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ej(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function nV(e){if(mg(e)!==e)throw Error(Z(188))}function BTt(e){var t=e.alternate;if(!t){if(t=mg(e),t===null)throw Error(Z(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return nV(a),e;if(i===n)return nV(a),t;i=i.sibling}throw Error(Z(188))}if(r.return!==n.return)r=a,n=i;else{for(var o=!1,s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o)throw Error(Z(189))}}if(r.alternate!==n)throw Error(Z(190))}if(r.tag!==3)throw Error(Z(188));return r.stateNode.current===r?e:t}function Oj(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Oj(e),t!==null)return t;e=e.sibling}return null}var Ce=Object.assign,VTt=Symbol.for("react.element"),em=Symbol.for("react.transitional.element"),sd=Symbol.for("react.portal"),_c=Symbol.for("react.fragment"),Rj=Symbol.for("react.strict_mode"),nD=Symbol.for("react.profiler"),Ij=Symbol.for("react.consumer"),ho=Symbol.for("react.context"),vO=Symbol.for("react.forward_ref"),aD=Symbol.for("react.suspense"),iD=Symbol.for("react.suspense_list"),dO=Symbol.for("react.memo"),us=Symbol.for("react.lazy"),oD=Symbol.for("react.activity"),GTt=Symbol.for("react.memo_cache_sentinel"),aV=Symbol.iterator;function Gv(e){return e===null||typeof e!="object"?null:(e=aV&&e[aV]||e["@@iterator"],typeof e=="function"?e:null)}var HTt=Symbol.for("react.client.reference");function sD(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===HTt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _c:return"Fragment";case nD:return"Profiler";case Rj:return"StrictMode";case aD:return"Suspense";case iD:return"SuspenseList";case oD:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case sd:return"Portal";case ho:return e.displayName||"Context";case Ij:return(e._context.displayName||"Context")+".Consumer";case vO:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dO:return t=e.displayName||null,t!==null?t:sD(e.type)||"Memo";case us:t=e._payload,e=e._init;try{return sD(e(t))}catch{}}return null}var ld=Array.isArray,Rt=Mj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=zTt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bu={pending:!1,data:null,method:null,action:null},lD=[],Sc=-1;function Ui(e){return{current:e}}function mr(e){0>Sc||(e.current=lD[Sc],lD[Sc]=null,Sc--)}function _e(e,t){Sc++,lD[Sc]=e.current,e.current=t}var Ei=Ui(null),Dp=Ui(null),zs=Ui(null),R_=Ui(null);function I_(e,t){switch(_e(zs,t),_e(Dp,e),_e(Ei,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?f4(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=f4(t),e=JX(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}mr(Ei),_e(Ei,e)}function dh(){mr(Ei),mr(Dp),mr(zs)}function uD(e){e.memoizedState!==null&&_e(R_,e);var t=Ei.current,r=JX(t,e.type);t!==r&&(_e(Dp,e),_e(Ei,r))}function P_(e){Dp.current===e&&(mr(Ei),mr(Dp)),R_.current===e&&(mr(R_),Vp._currentValue=bu)}var Ew,iV;function ql(e){if(Ew===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Ew=t&&t[1]||"",iV=-1<r.stack.indexOf(`
220
+ at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
221
+ `+Ew+e+iV}var Ow=!1;function Rw(e,t){if(!e||Ow)return"";Ow=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(v){var h=v}Reflect.construct(e,[],c)}else{try{c.call()}catch(v){h=v}e.call(c.prototype)}}else{try{throw Error()}catch(v){h=v}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(v){if(v&&h&&typeof v.stack=="string")return[v.stack,h.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),o=i[0],s=i[1];if(o&&s){var l=o.split(`
222
+ `),u=s.split(`
223
+ `);for(a=n=0;n<l.length&&!l[n].includes("DetermineComponentFrameRoot");)n++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(n===l.length||a===u.length)for(n=l.length-1,a=u.length-1;1<=n&&0<=a&&l[n]!==u[a];)a--;for(;1<=n&&0<=a;n--,a--)if(l[n]!==u[a]){if(n!==1||a!==1)do if(n--,a--,0>a||l[n]!==u[a]){var f=`
224
+ `+l[n].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=n&&0<=a);break}}}finally{Ow=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ql(r):""}function UTt(e,t){switch(e.tag){case 26:case 27:case 5:return ql(e.type);case 16:return ql("Lazy");case 13:return e.child!==t&&t!==null?ql("Suspense Fallback"):ql("Suspense");case 19:return ql("SuspenseList");case 0:case 15:return Rw(e.type,!1);case 11:return Rw(e.type.render,!1);case 1:return Rw(e.type,!0);case 31:return ql("Activity");default:return""}}function oV(e){try{var t="",r=null;do t+=UTt(e,r),r=e,e=e.return;while(e);return t}catch(n){return`
225
+ Error generating stack: `+n.message+`
226
+ `+n.stack}}var fD=Object.prototype.hasOwnProperty,pO=fr.unstable_scheduleCallback,Iw=fr.unstable_cancelCallback,FTt=fr.unstable_shouldYield,YTt=fr.unstable_requestPaint,Pn=fr.unstable_now,jTt=fr.unstable_getCurrentPriorityLevel,Pj=fr.unstable_ImmediatePriority,Nj=fr.unstable_UserBlockingPriority,N_=fr.unstable_NormalPriority,WTt=fr.unstable_LowPriority,kj=fr.unstable_IdlePriority,XTt=fr.log,ZTt=fr.unstable_setDisableYieldValue,_g=null,Nn=null;function ws(e){if(typeof XTt=="function"&&ZTt(e),Nn&&typeof Nn.setStrictMode=="function")try{Nn.setStrictMode(_g,e)}catch{}}var kn=Math.clz32?Math.clz32:KTt,$Tt=Math.log,qTt=Math.LN2;function KTt(e){return e>>>=0,e===0?32:31-($Tt(e)/qTt|0)|0}var rm=256,nm=262144,am=4194304;function Kl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _1(e,t,r){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=n&134217727;return s!==0?(n=s&~i,n!==0?a=Kl(n):(o&=s,o!==0?a=Kl(o):r||(r=s&~e,r!==0&&(a=Kl(r))))):(s=n&~i,s!==0?a=Kl(s):o!==0?a=Kl(o):r||(r=n&~e,r!==0&&(a=Kl(r)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,r=t&-t,i>=r||i===32&&(r&4194048)!==0)?t:a}function Sg(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function QTt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zj(){var e=am;return am<<=1,!(am&62914560)&&(am=4194304),e}function Pw(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function bg(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function JTt(e,t,r,n,a,i){var o=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(r=o&~r;0<r;){var f=31-kn(r),c=1<<f;s[f]=0,l[f]=-1;var h=u[f];if(h!==null)for(u[f]=null,f=0;f<h.length;f++){var v=h[f];v!==null&&(v.lane&=-536870913)}r&=~c}n!==0&&Bj(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Bj(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-kn(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|r&261930}function Vj(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-kn(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}function Gj(e,t){var r=t&-t;return r=r&42?1:gO(r),r&(e.suspendedLanes|t)?0:r}function gO(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function yO(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Hj(){var e=ae.p;return e!==0?e:(e=window.event,e===void 0?32:fZ(e.type))}function sV(e,t){var r=ae.p;try{return ae.p=e,t()}finally{ae.p=r}}var dl=Math.random().toString(36).slice(2),Cr="__reactFiber$"+dl,vn="__reactProps$"+dl,tv="__reactContainer$"+dl,cD="__reactEvents$"+dl,tCt="__reactListeners$"+dl,eCt="__reactHandles$"+dl,lV="__reactResources$"+dl,xg="__reactMarker$"+dl;function mO(e){delete e[Cr],delete e[vn],delete e[cD],delete e[tCt],delete e[eCt]}function bc(e){var t=e[Cr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[tv]||r[Cr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=p4(e);e!==null;){if(r=e[Cr])return r;e=p4(e)}return t}e=r,r=e.parentNode}return null}function ev(e){if(e=e[Cr]||e[tv]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ud(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(Z(33))}function Vc(e){var t=e[lV];return t||(t=e[lV]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function gr(e){e[xg]=!0}var Uj=new Set,Fj={};function gf(e,t){ph(e,t),ph(e+"Capture",t)}function ph(e,t){for(Fj[e]=t,e=0;e<t.length;e++)Uj.add(t[e])}var rCt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),uV={},fV={};function nCt(e){return fD.call(fV,e)?!0:fD.call(uV,e)?!1:rCt.test(e)?fV[e]=!0:(uV[e]=!0,!1)}function Fm(e,t,r){if(nCt(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function im(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function $i(e,t,r,n){if(n===null)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+n)}}function ta(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aCt(e,t,r){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hD(e){if(!e._valueTracker){var t=Yj(e)?"checked":"value";e._valueTracker=aCt(e,t,""+e[t])}}function jj(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Yj(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function k_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var iCt=/[\n"\\]/g;function oa(e){return e.replace(iCt,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vD(e,t,r,n,a,i,o,s){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ta(t)):e.value!==""+ta(t)&&(e.value=""+ta(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?dD(e,o,ta(t)):r!=null?dD(e,o,ta(r)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+ta(s):e.removeAttribute("name")}function Wj(e,t,r,n,a,i,o,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||r!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){hD(e);return}r=r!=null?""+ta(r):"",t=t!=null?""+ta(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),hD(e)}function dD(e,t,r){t==="number"&&k_(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Gc(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ta(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Xj(e,t,r){if(t!=null&&(t=""+ta(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+ta(r):""}function Zj(e,t,r,n){if(t==null){if(n!=null){if(r!=null)throw Error(Z(92));if(ld(n)){if(1<n.length)throw Error(Z(93));n=n[0]}r=n}r==null&&(r=""),t=r}r=ta(t),e.defaultValue=r,n=e.textContent,n===r&&n!==""&&n!==null&&(e.value=n),hD(e)}function gh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var oCt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function cV(e,t,r){var n=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,r):typeof r!="number"||r===0||oCt.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function $j(e,t,r){if(t!=null&&typeof t!="object")throw Error(Z(62));if(e=e.style,r!=null){for(var n in r)!r.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&r[a]!==n&&cV(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&cV(e,i,t[i])}function _O(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sCt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),lCt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ym(e){return lCt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function vo(){}var pD=null;function SO(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xc=null,Hc=null;function hV(e){var t=ev(e);if(t&&(e=t.stateNode)){var r=e[vn]||null;t:switch(e=t.stateNode,t.type){case"input":if(vD(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+oa(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=n[vn]||null;if(!a)throw Error(Z(90));vD(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<r.length;t++)n=r[t],n.form===e.form&&jj(n)}break t;case"textarea":Xj(e,r.value,r.defaultValue);break t;case"select":t=r.value,t!=null&&Gc(e,!!r.multiple,t,!1)}}}var Nw=!1;function qj(e,t,r){if(Nw)return e(t,r);Nw=!0;try{var n=e(t);return n}finally{if(Nw=!1,(xc!==null||Hc!==null)&&(O1(),xc&&(t=xc,e=Hc,Hc=xc=null,hV(t),e)))for(t=0;t<e.length;t++)hV(e[t])}}function Lp(e,t){var r=e.stateNode;if(r===null)return null;var n=r[vn]||null;if(n===null)return null;r=n[t];t:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break t;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Z(231,t,typeof r));return r}var Vo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gD=!1;if(Vo)try{var Hv={};Object.defineProperty(Hv,"passive",{get:function(){gD=!0}}),window.addEventListener("test",Hv,Hv),window.removeEventListener("test",Hv,Hv)}catch{gD=!1}var Ts=null,bO=null,jm=null;function Kj(){if(jm)return jm;var e,t=bO,r=t.length,n,a="value"in Ts?Ts.value:Ts.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===a[i-n];n++);return jm=a.slice(e,1<n?1-n:void 0)}function Wm(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function om(){return!0}function vV(){return!1}function dn(e){function t(r,n,a,i,o){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?om:vV,this.isPropagationStopped=vV,this}return Ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=om)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=om)},persist:function(){},isPersistent:om}),t}var yf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},S1=dn(yf),wg=Ce({},yf,{view:0,detail:0}),uCt=dn(wg),kw,zw,Uv,b1=Ce({},wg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xO,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Uv&&(Uv&&e.type==="mousemove"?(kw=e.screenX-Uv.screenX,zw=e.screenY-Uv.screenY):zw=kw=0,Uv=e),kw)},movementY:function(e){return"movementY"in e?e.movementY:zw}}),dV=dn(b1),fCt=Ce({},b1,{dataTransfer:0}),cCt=dn(fCt),hCt=Ce({},wg,{relatedTarget:0}),Bw=dn(hCt),vCt=Ce({},yf,{animationName:0,elapsedTime:0,pseudoElement:0}),dCt=dn(vCt),pCt=Ce({},yf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gCt=dn(pCt),yCt=Ce({},yf,{data:0}),pV=dn(yCt),mCt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_Ct={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"},SCt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bCt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=SCt[e])?!!t[e]:!1}function xO(){return bCt}var xCt=Ce({},wg,{key:function(e){if(e.key){var t=mCt[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wm(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_Ct[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xO,charCode:function(e){return e.type==="keypress"?Wm(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wm(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wCt=dn(xCt),TCt=Ce({},b1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gV=dn(TCt),CCt=Ce({},wg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xO}),ACt=dn(CCt),MCt=Ce({},yf,{propertyName:0,elapsedTime:0,pseudoElement:0}),DCt=dn(MCt),LCt=Ce({},b1,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ECt=dn(LCt),OCt=Ce({},yf,{newState:0,oldState:0}),RCt=dn(OCt),ICt=[9,13,27,32],wO=Vo&&"CompositionEvent"in window,Id=null;Vo&&"documentMode"in document&&(Id=document.documentMode);var PCt=Vo&&"TextEvent"in window&&!Id,Qj=Vo&&(!wO||Id&&8<Id&&11>=Id),yV=" ",mV=!1;function Jj(e,t){switch(e){case"keyup":return ICt.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tW(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wc=!1;function NCt(e,t){switch(e){case"compositionend":return tW(t);case"keypress":return t.which!==32?null:(mV=!0,yV);case"textInput":return e=t.data,e===yV&&mV?null:e;default:return null}}function kCt(e,t){if(wc)return e==="compositionend"||!wO&&Jj(e,t)?(e=Kj(),jm=bO=Ts=null,wc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qj&&t.locale!=="ko"?null:t.data;default:return null}}var zCt={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 _V(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zCt[e.type]:t==="textarea"}function eW(e,t,r,n){xc?Hc?Hc.push(n):Hc=[n]:xc=n,t=tS(t,"onChange"),0<t.length&&(r=new S1("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Pd=null,Ep=null;function BCt(e){qX(e,0)}function x1(e){var t=ud(e);if(jj(t))return e}function SV(e,t){if(e==="change")return t}var rW=!1;if(Vo){var Vw;if(Vo){var Gw="oninput"in document;if(!Gw){var bV=document.createElement("div");bV.setAttribute("oninput","return;"),Gw=typeof bV.oninput=="function"}Vw=Gw}else Vw=!1;rW=Vw&&(!document.documentMode||9<document.documentMode)}function xV(){Pd&&(Pd.detachEvent("onpropertychange",nW),Ep=Pd=null)}function nW(e){if(e.propertyName==="value"&&x1(Ep)){var t=[];eW(t,Ep,e,SO(e)),qj(BCt,t)}}function VCt(e,t,r){e==="focusin"?(xV(),Pd=t,Ep=r,Pd.attachEvent("onpropertychange",nW)):e==="focusout"&&xV()}function GCt(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return x1(Ep)}function HCt(e,t){if(e==="click")return x1(t)}function UCt(e,t){if(e==="input"||e==="change")return x1(t)}function FCt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bn=typeof Object.is=="function"?Object.is:FCt;function Op(e,t){if(Bn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!fD.call(t,a)||!Bn(e[a],t[a]))return!1}return!0}function wV(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function TV(e,t){var r=wV(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=wV(r)}}function aW(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?aW(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iW(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=k_(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=k_(e.document)}return t}function TO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var YCt=Vo&&"documentMode"in document&&11>=document.documentMode,Tc=null,yD=null,Nd=null,mD=!1;function CV(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;mD||Tc==null||Tc!==k_(n)||(n=Tc,"selectionStart"in n&&TO(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Nd&&Op(Nd,n)||(Nd=n,n=tS(yD,"onSelect"),0<n.length&&(t=new S1("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Tc)))}function Fl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Cc={animationend:Fl("Animation","AnimationEnd"),animationiteration:Fl("Animation","AnimationIteration"),animationstart:Fl("Animation","AnimationStart"),transitionrun:Fl("Transition","TransitionRun"),transitionstart:Fl("Transition","TransitionStart"),transitioncancel:Fl("Transition","TransitionCancel"),transitionend:Fl("Transition","TransitionEnd")},Hw={},oW={};Vo&&(oW=document.createElement("div").style,"AnimationEvent"in window||(delete Cc.animationend.animation,delete Cc.animationiteration.animation,delete Cc.animationstart.animation),"TransitionEvent"in window||delete Cc.transitionend.transition);function mf(e){if(Hw[e])return Hw[e];if(!Cc[e])return e;var t=Cc[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in oW)return Hw[e]=t[r];return e}var sW=mf("animationend"),lW=mf("animationiteration"),uW=mf("animationstart"),jCt=mf("transitionrun"),WCt=mf("transitionstart"),XCt=mf("transitioncancel"),fW=mf("transitionend"),cW=new Map,_D="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");_D.push("scrollEnd");function qa(e,t){cW.set(e,t),gf(t,[e])}var z_=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Kn=[],Ac=0,CO=0;function w1(){for(var e=Ac,t=CO=Ac=0;t<e;){var r=Kn[t];Kn[t++]=null;var n=Kn[t];Kn[t++]=null;var a=Kn[t];Kn[t++]=null;var i=Kn[t];if(Kn[t++]=null,n!==null&&a!==null){var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}i!==0&&hW(r,a,i)}}function T1(e,t,r,n){Kn[Ac++]=e,Kn[Ac++]=t,Kn[Ac++]=r,Kn[Ac++]=n,CO|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function AO(e,t,r,n){return T1(e,t,r,n),B_(e)}function _f(e,t){return T1(e,null,null,t),B_(e)}function hW(e,t,r){e.lanes|=r;var n=e.alternate;n!==null&&(n.lanes|=r);for(var a=!1,i=e.return;i!==null;)i.childLanes|=r,n=i.alternate,n!==null&&(n.childLanes|=r),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-kn(r),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=r|536870912),i):null}function B_(e){if(50<Yd)throw Yd=0,GD=null,Error(Z(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Mc={};function ZCt(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function An(e,t,r,n){return new ZCt(e,t,r,n)}function MO(e){return e=e.prototype,!(!e||!e.isReactComponent)}function To(e,t){var r=e.alternate;return r===null?(r=An(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function vW(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xm(e,t,r,n,a,i){var o=0;if(n=e,typeof e=="function")MO(e)&&(o=1);else if(typeof e=="string")o=JAt(e,r,Ei.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case oD:return e=An(31,r,t,a),e.elementType=oD,e.lanes=i,e;case _c:return xu(r.children,a,i,t);case Rj:o=8,a|=24;break;case nD:return e=An(12,r,t,a|2),e.elementType=nD,e.lanes=i,e;case aD:return e=An(13,r,t,a),e.elementType=aD,e.lanes=i,e;case iD:return e=An(19,r,t,a),e.elementType=iD,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ho:o=10;break t;case Ij:o=9;break t;case vO:o=11;break t;case dO:o=14;break t;case us:o=16,n=null;break t}o=29,r=Error(Z(130,e===null?"null":typeof e,"")),n=null}return t=An(o,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function xu(e,t,r,n){return e=An(7,e,n,t),e.lanes=r,e}function Uw(e,t,r){return e=An(6,e,null,t),e.lanes=r,e}function dW(e){var t=An(18,null,null,0);return t.stateNode=e,t}function Fw(e,t,r){return t=An(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var AV=new WeakMap;function sa(e,t){if(typeof e=="object"&&e!==null){var r=AV.get(e);return r!==void 0?r:(t={value:e,source:t,stack:oV(t)},AV.set(e,t),t)}return{value:e,source:t,stack:oV(t)}}var Dc=[],Lc=0,V_=null,Rp=0,ea=[],ra=0,tl=null,_i=1,Si="";function ro(e,t){Dc[Lc++]=Rp,Dc[Lc++]=V_,V_=e,Rp=t}function pW(e,t,r){ea[ra++]=_i,ea[ra++]=Si,ea[ra++]=tl,tl=e;var n=_i;e=Si;var a=32-kn(n)-1;n&=~(1<<a),r+=1;var i=32-kn(t)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,_i=1<<32-kn(t)+a|r<<a|n,Si=i+e}else _i=1<<i|r<<a|n,Si=e}function DO(e){e.return!==null&&(ro(e,1),pW(e,1,0))}function LO(e){for(;e===V_;)V_=Dc[--Lc],Dc[Lc]=null,Rp=Dc[--Lc],Dc[Lc]=null;for(;e===tl;)tl=ea[--ra],ea[ra]=null,Si=ea[--ra],ea[ra]=null,_i=ea[--ra],ea[ra]=null}function gW(e,t){ea[ra++]=_i,ea[ra++]=Si,ea[ra++]=tl,_i=t.id,Si=t.overflow,tl=e}var Ar=null,we=null,qt=!1,Bs=null,la=!1,SD=Error(Z(519));function el(e){var t=Error(Z(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ip(sa(t,e)),SD}function MV(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[Cr]=e,t[vn]=n,r){case"dialog":Xt("cancel",t),Xt("close",t);break;case"iframe":case"object":case"embed":Xt("load",t);break;case"video":case"audio":for(r=0;r<zp.length;r++)Xt(zp[r],t);break;case"source":Xt("error",t);break;case"img":case"image":case"link":Xt("error",t),Xt("load",t);break;case"details":Xt("toggle",t);break;case"input":Xt("invalid",t),Wj(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Xt("invalid",t);break;case"textarea":Xt("invalid",t),Zj(t,n.value,n.defaultValue,n.children)}r=n.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||n.suppressHydrationWarning===!0||QX(t.textContent,r)?(n.popover!=null&&(Xt("beforetoggle",t),Xt("toggle",t)),n.onScroll!=null&&Xt("scroll",t),n.onScrollEnd!=null&&Xt("scrollend",t),n.onClick!=null&&(t.onclick=vo),t=!0):t=!1,t||el(e,!0)}function DV(e){for(Ar=e.return;Ar;)switch(Ar.tag){case 5:case 31:case 13:la=!1;return;case 27:case 3:la=!0;return;default:Ar=Ar.return}}function tc(e){if(e!==Ar)return!1;if(!qt)return DV(e),qt=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||jD(e.type,e.memoizedProps)),r=!r),r&&we&&el(e),DV(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));we=d4(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(317));we=d4(e)}else t===27?(t=we,pl(e.type)?(e=$D,$D=null,we=e):we=t):we=Ar?da(e.stateNode.nextSibling):null;return!0}function Wu(){we=Ar=null,qt=!1}function Yw(){var e=Bs;return e!==null&&(an===null?an=e:an.push.apply(an,e),Bs=null),e}function Ip(e){Bs===null?Bs=[e]:Bs.push(e)}var bD=Ui(null),Sf=null,po=null;function cs(e,t,r){_e(bD,t._currentValue),t._currentValue=r}function Co(e){e._currentValue=bD.current,mr(bD)}function xD(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function wD(e,t,r,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;t:for(;i!==null;){var s=i;i=a;for(var l=0;l<t.length;l++)if(s.context===t[l]){i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),xD(i.return,r,e),n||(o=null);break t}i=s.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(Z(341));o.lanes|=r,i=o.alternate,i!==null&&(i.lanes|=r),xD(o,r,e),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function rv(e,t,r,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(Z(387));if(o=o.memoizedProps,o!==null){var s=a.type;Bn(a.pendingProps.value,o.value)||(e!==null?e.push(s):e=[s])}}else if(a===R_.current){if(o=a.alternate,o===null)throw Error(Z(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Vp):e=[Vp])}a=a.return}e!==null&&wD(t,e,r,n),t.flags|=262144}function G_(e){for(e=e.firstContext;e!==null;){if(!Bn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xu(e){Sf=e,po=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Mr(e){return yW(Sf,e)}function sm(e,t){return Sf===null&&Xu(e),yW(e,t)}function yW(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},po===null){if(e===null)throw Error(Z(308));po=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else po=po.next=t;return r}var $Ct=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},qCt=fr.unstable_scheduleCallback,KCt=fr.unstable_NormalPriority,Ke={$$typeof:ho,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function EO(){return{controller:new $Ct,data:new Map,refCount:0}}function Tg(e){e.refCount--,e.refCount===0&&qCt(KCt,function(){e.controller.abort()})}var kd=null,TD=0,yh=0,Uc=null;function QCt(e,t){if(kd===null){var r=kd=[];TD=0,yh=eR(),Uc={status:"pending",value:void 0,then:function(n){r.push(n)}}}return TD++,t.then(LV,LV),t}function LV(){if(--TD===0&&kd!==null){Uc!==null&&(Uc.status="fulfilled");var e=kd;kd=null,yh=0,Uc=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function JCt(e,t){var r=[],n={status:"pending",value:null,reason:null,then:function(a){r.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<r.length;a++)(0,r[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<r.length;a++)(0,r[a])(void 0)}),n}var EV=Rt.S;Rt.S=function(e,t){OX=Pn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&QCt(e,t),EV!==null&&EV(e,t)};var wu=Ui(null);function OO(){var e=wu.current;return e!==null?e:ge.pooledCache}function Zm(e,t){t===null?_e(wu,wu.current):_e(wu,t.pool)}function mW(){var e=OO();return e===null?null:{parent:Ke._currentValue,pool:e}}var nv=Error(Z(460)),RO=Error(Z(474)),C1=Error(Z(542)),H_={then:function(){}};function OV(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _W(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(vo,vo),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,IV(e),e;default:if(typeof t.status=="string")t.then(vo,vo);else{if(e=ge,e!==null&&100<e.shellSuspendCounter)throw Error(Z(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,IV(e),e}throw Tu=t,nv}}function Ql(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Tu=r,nv):r}}var Tu=null;function RV(){if(Tu===null)throw Error(Z(459));var e=Tu;return Tu=null,e}function IV(e){if(e===nv||e===C1)throw Error(Z(483))}var Fc=null,Pp=0;function lm(e){var t=Pp;return Pp+=1,Fc===null&&(Fc=[]),_W(Fc,e,t)}function Fv(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function um(e,t){throw t.$$typeof===VTt?Error(Z(525)):(e=Object.prototype.toString.call(t),Error(Z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function SW(e){function t(y,m){if(e){var _=y.deletions;_===null?(y.deletions=[m],y.flags|=16):_.push(m)}}function r(y,m){if(!e)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function n(y){for(var m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function a(y,m){return y=To(y,m),y.index=0,y.sibling=null,y}function i(y,m,_){return y.index=_,e?(_=y.alternate,_!==null?(_=_.index,_<m?(y.flags|=67108866,m):_):(y.flags|=67108866,m)):(y.flags|=1048576,m)}function o(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function s(y,m,_,S){return m===null||m.tag!==6?(m=Uw(_,y.mode,S),m.return=y,m):(m=a(m,_),m.return=y,m)}function l(y,m,_,S){var b=_.type;return b===_c?f(y,m,_.props.children,S,_.key):m!==null&&(m.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===us&&Ql(b)===m.type)?(m=a(m,_.props),Fv(m,_),m.return=y,m):(m=Xm(_.type,_.key,_.props,null,y.mode,S),Fv(m,_),m.return=y,m)}function u(y,m,_,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==_.containerInfo||m.stateNode.implementation!==_.implementation?(m=Fw(_,y.mode,S),m.return=y,m):(m=a(m,_.children||[]),m.return=y,m)}function f(y,m,_,S,b){return m===null||m.tag!==7?(m=xu(_,y.mode,S,b),m.return=y,m):(m=a(m,_),m.return=y,m)}function c(y,m,_){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Uw(""+m,y.mode,_),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case em:return _=Xm(m.type,m.key,m.props,null,y.mode,_),Fv(_,m),_.return=y,_;case sd:return m=Fw(m,y.mode,_),m.return=y,m;case us:return m=Ql(m),c(y,m,_)}if(ld(m)||Gv(m))return m=xu(m,y.mode,_,null),m.return=y,m;if(typeof m.then=="function")return c(y,lm(m),_);if(m.$$typeof===ho)return c(y,sm(y,m),_);um(y,m)}return null}function h(y,m,_,S){var b=m!==null?m.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return b!==null?null:s(y,m,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case em:return _.key===b?l(y,m,_,S):null;case sd:return _.key===b?u(y,m,_,S):null;case us:return _=Ql(_),h(y,m,_,S)}if(ld(_)||Gv(_))return b!==null?null:f(y,m,_,S,null);if(typeof _.then=="function")return h(y,m,lm(_),S);if(_.$$typeof===ho)return h(y,m,sm(y,_),S);um(y,_)}return null}function v(y,m,_,S,b){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return y=y.get(_)||null,s(m,y,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case em:return y=y.get(S.key===null?_:S.key)||null,l(m,y,S,b);case sd:return y=y.get(S.key===null?_:S.key)||null,u(m,y,S,b);case us:return S=Ql(S),v(y,m,_,S,b)}if(ld(S)||Gv(S))return y=y.get(_)||null,f(m,y,S,b,null);if(typeof S.then=="function")return v(y,m,_,lm(S),b);if(S.$$typeof===ho)return v(y,m,_,sm(m,S),b);um(m,S)}return null}function d(y,m,_,S){for(var b=null,x=null,w=m,T=m=0,C=null;w!==null&&T<_.length;T++){w.index>T?(C=w,w=null):C=w.sibling;var A=h(y,w,_[T],S);if(A===null){w===null&&(w=C);break}e&&w&&A.alternate===null&&t(y,w),m=i(A,m,T),x===null?b=A:x.sibling=A,x=A,w=C}if(T===_.length)return r(y,w),qt&&ro(y,T),b;if(w===null){for(;T<_.length;T++)w=c(y,_[T],S),w!==null&&(m=i(w,m,T),x===null?b=w:x.sibling=w,x=w);return qt&&ro(y,T),b}for(w=n(w);T<_.length;T++)C=v(w,y,T,_[T],S),C!==null&&(e&&C.alternate!==null&&w.delete(C.key===null?T:C.key),m=i(C,m,T),x===null?b=C:x.sibling=C,x=C);return e&&w.forEach(function(M){return t(y,M)}),qt&&ro(y,T),b}function p(y,m,_,S){if(_==null)throw Error(Z(151));for(var b=null,x=null,w=m,T=m=0,C=null,A=_.next();w!==null&&!A.done;T++,A=_.next()){w.index>T?(C=w,w=null):C=w.sibling;var M=h(y,w,A.value,S);if(M===null){w===null&&(w=C);break}e&&w&&M.alternate===null&&t(y,w),m=i(M,m,T),x===null?b=M:x.sibling=M,x=M,w=C}if(A.done)return r(y,w),qt&&ro(y,T),b;if(w===null){for(;!A.done;T++,A=_.next())A=c(y,A.value,S),A!==null&&(m=i(A,m,T),x===null?b=A:x.sibling=A,x=A);return qt&&ro(y,T),b}for(w=n(w);!A.done;T++,A=_.next())A=v(w,y,T,A.value,S),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),m=i(A,m,T),x===null?b=A:x.sibling=A,x=A);return e&&w.forEach(function(E){return t(y,E)}),qt&&ro(y,T),b}function g(y,m,_,S){if(typeof _=="object"&&_!==null&&_.type===_c&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case em:t:{for(var b=_.key;m!==null;){if(m.key===b){if(b=_.type,b===_c){if(m.tag===7){r(y,m.sibling),S=a(m,_.props.children),S.return=y,y=S;break t}}else if(m.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===us&&Ql(b)===m.type){r(y,m.sibling),S=a(m,_.props),Fv(S,_),S.return=y,y=S;break t}r(y,m);break}else t(y,m);m=m.sibling}_.type===_c?(S=xu(_.props.children,y.mode,S,_.key),S.return=y,y=S):(S=Xm(_.type,_.key,_.props,null,y.mode,S),Fv(S,_),S.return=y,y=S)}return o(y);case sd:t:{for(b=_.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===_.containerInfo&&m.stateNode.implementation===_.implementation){r(y,m.sibling),S=a(m,_.children||[]),S.return=y,y=S;break t}else{r(y,m);break}else t(y,m);m=m.sibling}S=Fw(_,y.mode,S),S.return=y,y=S}return o(y);case us:return _=Ql(_),g(y,m,_,S)}if(ld(_))return d(y,m,_,S);if(Gv(_)){if(b=Gv(_),typeof b!="function")throw Error(Z(150));return _=b.call(_),p(y,m,_,S)}if(typeof _.then=="function")return g(y,m,lm(_),S);if(_.$$typeof===ho)return g(y,m,sm(y,_),S);um(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,m!==null&&m.tag===6?(r(y,m.sibling),S=a(m,_),S.return=y,y=S):(r(y,m),S=Uw(_,y.mode,S),S.return=y,y=S),o(y)):r(y,m)}return function(y,m,_,S){try{Pp=0;var b=g(y,m,_,S);return Fc=null,b}catch(w){if(w===nv||w===C1)throw w;var x=An(29,w,null,y.mode);return x.lanes=S,x.return=y,x}finally{}}}var Zu=SW(!0),bW=SW(!1),fs=!1;function IO(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function CD(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vs(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Gs(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,re&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=B_(e),hW(e,null,r),t}return T1(e,n,t,r),B_(e)}function zd(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Vj(e,r)}}function jw(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var AD=!1;function Bd(){if(AD){var e=Uc;if(e!==null)throw e}}function Vd(e,t,r,n){AD=!1;var a=e.updateQueue;fs=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(i!==null){var c=a.baseState;o=0,f=u=l=null,s=i;do{var h=s.lane&-536870913,v=h!==s.lane;if(v?($t&h)===h:(n&h)===h){h!==0&&h===yh&&(AD=!0),f!==null&&(f=f.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});t:{var d=e,p=s;h=t;var g=r;switch(p.tag){case 1:if(d=p.payload,typeof d=="function"){c=d.call(g,c,h);break t}c=d;break t;case 3:d.flags=d.flags&-65537|128;case 0:if(d=p.payload,h=typeof d=="function"?d.call(g,c,h):d,h==null)break t;c=Ce({},c,h);break t;case 2:fs=!0}}h=s.callback,h!==null&&(e.flags|=64,v&&(e.flags|=8192),v=a.callbacks,v===null?a.callbacks=[h]:v.push(h))}else v={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,l=c):f=f.next=v,o|=h;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;v=s,s=v.next,v.next=null,a.lastBaseUpdate=v,a.shared.pending=null}}while(!0);f===null&&(l=c),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),nl|=o,e.lanes=o,e.memoizedState=c}}function xW(e,t){if(typeof e!="function")throw Error(Z(191,e));e.call(t)}function wW(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)xW(r[e],t)}var mh=Ui(null),U_=Ui(0);function PV(e,t){e=Fo,_e(U_,e),_e(mh,t),Fo=e|t.baseLanes}function MD(){_e(U_,Fo),_e(mh,mh.current)}function PO(){Fo=U_.current,mr(mh),mr(U_)}var Vn=Ui(null),va=null;function hs(e){var t=e.alternate;_e(He,He.current&1),_e(Vn,e),va===null&&(t===null||mh.current!==null||t.memoizedState!==null)&&(va=e)}function DD(e){_e(He,He.current),_e(Vn,e),va===null&&(va=e)}function TW(e){e.tag===22?(_e(He,He.current),_e(Vn,e),va===null&&(va=e)):vs()}function vs(){_e(He,He.current),_e(Vn,Vn.current)}function Sn(e){mr(Vn),va===e&&(va=null),mr(He)}var He=Ui(0);function F_(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||XD(r)||ZD(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Go=0,Gt=null,he=null,$e=null,Y_=!1,Yc=!1,$u=!1,j_=0,Np=0,jc=null,tAt=0;function Oe(){throw Error(Z(321))}function NO(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Bn(e[r],t[r]))return!1;return!0}function kO(e,t,r,n,a,i){return Go=i,Gt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rt.H=e===null||e.memoizedState===null?eX:XO,$u=!1,i=r(n,a),$u=!1,Yc&&(i=AW(t,r,n,a)),CW(e),i}function CW(e){Rt.H=kp;var t=he!==null&&he.next!==null;if(Go=0,$e=he=Gt=null,Y_=!1,Np=0,jc=null,t)throw Error(Z(300));e===null||Je||(e=e.dependencies,e!==null&&G_(e)&&(Je=!0))}function AW(e,t,r,n){Gt=e;var a=0;do{if(Yc&&(jc=null),Np=0,Yc=!1,25<=a)throw Error(Z(301));if(a+=1,$e=he=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}Rt.H=rX,i=t(r,n)}while(Yc);return i}function eAt(){var e=Rt.H,t=e.useState()[0];return t=typeof t.then=="function"?Cg(t):t,e=e.useState()[0],(he!==null?he.memoizedState:null)!==e&&(Gt.flags|=1024),t}function zO(){var e=j_!==0;return j_=0,e}function BO(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function VO(e){if(Y_){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Y_=!1}Go=0,$e=he=Gt=null,Yc=!1,Np=j_=0,jc=null}function jr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?Gt.memoizedState=$e=e:$e=$e.next=e,$e}function Ye(){if(he===null){var e=Gt.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=$e===null?Gt.memoizedState:$e.next;if(t!==null)$e=t,he=e;else{if(e===null)throw Gt.alternate===null?Error(Z(467)):Error(Z(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},$e===null?Gt.memoizedState=$e=e:$e=$e.next=e}return $e}function A1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cg(e){var t=Np;return Np+=1,jc===null&&(jc=[]),e=_W(jc,e,t),t=Gt,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,Rt.H=t===null||t.memoizedState===null?eX:XO),e}function M1(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cg(e);if(e.$$typeof===ho)return Mr(e)}throw Error(Z(438,String(e)))}function GO(e){var t=null,r=Gt.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var n=Gt.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=A1(),Gt.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),n=0;n<e;n++)r[n]=GTt;return t.index++,r}function Ho(e,t){return typeof t=="function"?t(e):t}function $m(e){var t=Ye();return HO(t,he,e)}function HO(e,t,r){var n=e.queue;if(n===null)throw Error(Z(311));n.lastRenderedReducer=r;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var s=o=null,l=null,u=t,f=!1;do{var c=u.lane&-536870913;if(c!==u.lane?($t&c)===c:(Go&c)===c){var h=u.revertLane;if(h===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===yh&&(f=!0);else if((Go&h)===h){u=u.next,h===yh&&(f=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=c,o=i):l=l.next=c,Gt.lanes|=h,nl|=h;c=u.action,$u&&r(i,c),i=u.hasEagerState?u.eagerState:r(i,c)}else h={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=h,o=i):l=l.next=h,Gt.lanes|=c,nl|=c;u=u.next}while(u!==null&&u!==t);if(l===null?o=i:l.next=s,!Bn(i,e.memoizedState)&&(Je=!0,f&&(r=Uc,r!==null)))throw r;e.memoizedState=i,e.baseState=o,e.baseQueue=l,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Ww(e){var t=Ye(),r=t.queue;if(r===null)throw Error(Z(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);Bn(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function MW(e,t,r){var n=Gt,a=Ye(),i=qt;if(i){if(r===void 0)throw Error(Z(407));r=r()}else r=t();var o=!Bn((he||a).memoizedState,r);if(o&&(a.memoizedState=r,Je=!0),a=a.queue,UO(EW.bind(null,n,a,e),[e]),a.getSnapshot!==t||o||$e!==null&&$e.memoizedState.tag&1){if(n.flags|=2048,_h(9,{destroy:void 0},LW.bind(null,n,a,r,t),null),ge===null)throw Error(Z(349));i||Go&127||DW(n,t,r)}return r}function DW(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Gt.updateQueue,t===null?(t=A1(),Gt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function LW(e,t,r,n){t.value=r,t.getSnapshot=n,OW(t)&&RW(e)}function EW(e,t,r){return r(function(){OW(t)&&RW(e)})}function OW(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Bn(e,r)}catch{return!0}}function RW(e){var t=_f(e,2);t!==null&&fn(t,e,2)}function LD(e){var t=jr();if(typeof e=="function"){var r=e;if(e=r(),$u){ws(!0);try{r()}finally{ws(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t}function IW(e,t,r,n){return e.baseState=r,HO(e,he,typeof n=="function"?n:Ho)}function rAt(e,t,r,n,a){if(L1(e))throw Error(Z(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};Rt.T!==null?r(!0):i.isTransition=!1,n(i),r=t.pending,r===null?(i.next=t.pending=i,PW(t,i)):(i.next=r.next,t.pending=r.next=i)}}function PW(e,t){var r=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=Rt.T,o={};Rt.T=o;try{var s=r(a,n),l=Rt.S;l!==null&&l(o,s),NV(e,t,s)}catch(u){ED(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),Rt.T=i}}else try{i=r(a,n),NV(e,t,i)}catch(u){ED(e,t,u)}}function NV(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(n){kV(e,t,n)},function(n){return ED(e,t,n)}):kV(e,t,r)}function kV(e,t,r){t.status="fulfilled",t.value=r,NW(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,PW(e,r)))}function ED(e,t,r){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=r,NW(t),t=t.next;while(t!==n)}e.action=null}function NW(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kW(e,t){return t}function zV(e,t){if(qt){var r=ge.formState;if(r!==null){t:{var n=Gt;if(qt){if(we){e:{for(var a=we,i=la;a.nodeType!==8;){if(!i){a=null;break e}if(a=da(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){we=da(a.nextSibling),n=a.data==="F!";break t}}el(n)}n=!1}n&&(t=r[0])}}return r=jr(),r.memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kW,lastRenderedState:t},r.queue=n,r=QW.bind(null,Gt,n),n.dispatch=r,n=LD(!1),i=WO.bind(null,Gt,!1,n.queue),n=jr(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,r=rAt.bind(null,Gt,a,i,r),a.dispatch=r,n.memoizedState=e,[t,r,!1]}function BV(e){var t=Ye();return zW(t,he,e)}function zW(e,t,r){if(t=HO(e,t,kW)[0],e=$m(Ho)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Cg(t)}catch(o){throw o===nv?C1:o}else n=t;t=Ye();var a=t.queue,i=a.dispatch;return r!==t.memoizedState&&(Gt.flags|=2048,_h(9,{destroy:void 0},nAt.bind(null,a,r),null)),[n,i,e]}function nAt(e,t){e.action=t}function VV(e){var t=Ye(),r=he;if(r!==null)return zW(t,r,e);Ye(),t=t.memoizedState,r=Ye();var n=r.queue.dispatch;return r.memoizedState=e,[t,n,!1]}function _h(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},t=Gt.updateQueue,t===null&&(t=A1(),Gt.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function BW(){return Ye().memoizedState}function qm(e,t,r,n){var a=jr();Gt.flags|=e,a.memoizedState=_h(1|t,{destroy:void 0},r,n===void 0?null:n)}function D1(e,t,r,n){var a=Ye();n=n===void 0?null:n;var i=a.memoizedState.inst;he!==null&&n!==null&&NO(n,he.memoizedState.deps)?a.memoizedState=_h(t,i,r,n):(Gt.flags|=e,a.memoizedState=_h(1|t,i,r,n))}function GV(e,t){qm(8390656,8,e,t)}function UO(e,t){D1(2048,8,e,t)}function aAt(e){Gt.flags|=4;var t=Gt.updateQueue;if(t===null)t=A1(),Gt.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function VW(e){var t=Ye().memoizedState;return aAt({ref:t,nextImpl:e}),function(){if(re&2)throw Error(Z(440));return t.impl.apply(void 0,arguments)}}function GW(e,t){return D1(4,2,e,t)}function HW(e,t){return D1(4,4,e,t)}function UW(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function FW(e,t,r){r=r!=null?r.concat([e]):null,D1(4,4,UW.bind(null,t,e),r)}function FO(){}function YW(e,t){var r=Ye();t=t===void 0?null:t;var n=r.memoizedState;return t!==null&&NO(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function jW(e,t){var r=Ye();t=t===void 0?null:t;var n=r.memoizedState;if(t!==null&&NO(t,n[1]))return n[0];if(n=e(),$u){ws(!0);try{e()}finally{ws(!1)}}return r.memoizedState=[n,t],n}function YO(e,t,r){return r===void 0||Go&1073741824&&!($t&261930)?e.memoizedState=t:(e.memoizedState=r,e=IX(),Gt.lanes|=e,nl|=e,r)}function WW(e,t,r,n){return Bn(r,t)?r:mh.current!==null?(e=YO(e,r,n),Bn(e,t)||(Je=!0),e):!(Go&42)||Go&1073741824&&!($t&261930)?(Je=!0,e.memoizedState=r):(e=IX(),Gt.lanes|=e,nl|=e,t)}function XW(e,t,r,n,a){var i=ae.p;ae.p=i!==0&&8>i?i:8;var o=Rt.T,s={};Rt.T=s,WO(e,!1,t,r);try{var l=a(),u=Rt.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var f=JCt(l,n);Gd(e,t,f,zn(e))}else Gd(e,t,n,zn(e))}catch(c){Gd(e,t,{then:function(){},status:"rejected",reason:c},zn())}finally{ae.p=i,o!==null&&s.types!==null&&(o.types=s.types),Rt.T=o}}function iAt(){}function OD(e,t,r,n){if(e.tag!==5)throw Error(Z(476));var a=ZW(e).queue;XW(e,a,t,bu,r===null?iAt:function(){return $W(e),r(n)})}function ZW(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:bu,baseState:bu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:bu},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $W(e){var t=ZW(e);t.next===null&&(t=e.alternate.memoizedState),Gd(e,t.next.queue,{},zn())}function jO(){return Mr(Vp)}function qW(){return Ye().memoizedState}function KW(){return Ye().memoizedState}function oAt(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=zn();e=Vs(r);var n=Gs(t,e,r);n!==null&&(fn(n,t,r),zd(n,t,r)),t={cache:EO()},e.payload=t;return}t=t.return}}function sAt(e,t,r){var n=zn();r={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},L1(e)?JW(t,r):(r=AO(e,t,r,n),r!==null&&(fn(r,e,n),tX(r,t,n)))}function QW(e,t,r){var n=zn();Gd(e,t,r,n)}function Gd(e,t,r,n){var a={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(L1(e))JW(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,r);if(a.hasEagerState=!0,a.eagerState=s,Bn(s,o))return T1(e,t,a,0),ge===null&&w1(),!1}catch{}finally{}if(r=AO(e,t,a,n),r!==null)return fn(r,e,n),tX(r,t,n),!0}return!1}function WO(e,t,r,n){if(n={lane:2,revertLane:eR(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},L1(e)){if(t)throw Error(Z(479))}else t=AO(e,r,n,2),t!==null&&fn(t,e,2)}function L1(e){var t=e.alternate;return e===Gt||t!==null&&t===Gt}function JW(e,t){Yc=Y_=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function tX(e,t,r){if(r&4194048){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Vj(e,r)}}var kp={readContext:Mr,use:M1,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useLayoutEffect:Oe,useInsertionEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useSyncExternalStore:Oe,useId:Oe,useHostTransitionStatus:Oe,useFormState:Oe,useActionState:Oe,useOptimistic:Oe,useMemoCache:Oe,useCacheRefresh:Oe};kp.useEffectEvent=Oe;var eX={readContext:Mr,use:M1,useCallback:function(e,t){return jr().memoizedState=[e,t===void 0?null:t],e},useContext:Mr,useEffect:GV,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,qm(4194308,4,UW.bind(null,t,e),r)},useLayoutEffect:function(e,t){return qm(4194308,4,e,t)},useInsertionEffect:function(e,t){qm(4,2,e,t)},useMemo:function(e,t){var r=jr();t=t===void 0?null:t;var n=e();if($u){ws(!0);try{e()}finally{ws(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=jr();if(r!==void 0){var a=r(t);if($u){ws(!0);try{r(t)}finally{ws(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=sAt.bind(null,Gt,e),[n.memoizedState,e]},useRef:function(e){var t=jr();return e={current:e},t.memoizedState=e},useState:function(e){e=LD(e);var t=e.queue,r=QW.bind(null,Gt,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:FO,useDeferredValue:function(e,t){var r=jr();return YO(r,e,t)},useTransition:function(){var e=LD(!1);return e=XW.bind(null,Gt,e.queue,!0,!1),jr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var n=Gt,a=jr();if(qt){if(r===void 0)throw Error(Z(407));r=r()}else{if(r=t(),ge===null)throw Error(Z(349));$t&127||DW(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,GV(EW.bind(null,n,i,e),[e]),n.flags|=2048,_h(9,{destroy:void 0},LW.bind(null,n,i,r,t),null),r},useId:function(){var e=jr(),t=ge.identifierPrefix;if(qt){var r=Si,n=_i;r=(n&~(1<<32-kn(n)-1)).toString(32)+r,t="_"+t+"R_"+r,r=j_++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=tAt++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:jO,useFormState:zV,useActionState:zV,useOptimistic:function(e){var t=jr();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=WO.bind(null,Gt,!0,r),r.dispatch=t,[e,t]},useMemoCache:GO,useCacheRefresh:function(){return jr().memoizedState=oAt.bind(null,Gt)},useEffectEvent:function(e){var t=jr(),r={impl:e};return t.memoizedState=r,function(){if(re&2)throw Error(Z(440));return r.impl.apply(void 0,arguments)}}},XO={readContext:Mr,use:M1,useCallback:YW,useContext:Mr,useEffect:UO,useImperativeHandle:FW,useInsertionEffect:GW,useLayoutEffect:HW,useMemo:jW,useReducer:$m,useRef:BW,useState:function(){return $m(Ho)},useDebugValue:FO,useDeferredValue:function(e,t){var r=Ye();return WW(r,he.memoizedState,e,t)},useTransition:function(){var e=$m(Ho)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Cg(e),t]},useSyncExternalStore:MW,useId:qW,useHostTransitionStatus:jO,useFormState:BV,useActionState:BV,useOptimistic:function(e,t){var r=Ye();return IW(r,he,e,t)},useMemoCache:GO,useCacheRefresh:KW};XO.useEffectEvent=VW;var rX={readContext:Mr,use:M1,useCallback:YW,useContext:Mr,useEffect:UO,useImperativeHandle:FW,useInsertionEffect:GW,useLayoutEffect:HW,useMemo:jW,useReducer:Ww,useRef:BW,useState:function(){return Ww(Ho)},useDebugValue:FO,useDeferredValue:function(e,t){var r=Ye();return he===null?YO(r,e,t):WW(r,he.memoizedState,e,t)},useTransition:function(){var e=Ww(Ho)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Cg(e),t]},useSyncExternalStore:MW,useId:qW,useHostTransitionStatus:jO,useFormState:VV,useActionState:VV,useOptimistic:function(e,t){var r=Ye();return he!==null?IW(r,he,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:GO,useCacheRefresh:KW};rX.useEffectEvent=VW;function Xw(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ce({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var RD={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=zn(),a=Vs(n);a.payload=t,r!=null&&(a.callback=r),t=Gs(e,a,n),t!==null&&(fn(t,e,n),zd(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=zn(),a=Vs(n);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Gs(e,a,n),t!==null&&(fn(t,e,n),zd(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=zn(),n=Vs(r);n.tag=2,t!=null&&(n.callback=t),t=Gs(e,n,r),t!==null&&(fn(t,e,r),zd(t,e,r))}};function HV(e,t,r,n,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!Op(r,n)||!Op(a,i):!0}function UV(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&RD.enqueueReplaceState(t,t.state,null)}function qu(e,t){var r=t;if("ref"in t){r={};for(var n in t)n!=="ref"&&(r[n]=t[n])}if(e=e.defaultProps){r===t&&(r=Ce({},r));for(var a in e)r[a]===void 0&&(r[a]=e[a])}return r}function nX(e){z_(e)}function aX(e){console.error(e)}function iX(e){z_(e)}function W_(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function FV(e,t,r){try{var n=e.onCaughtError;n(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function ID(e,t,r){return r=Vs(r),r.tag=3,r.payload={element:null},r.callback=function(){W_(e,t)},r}function oX(e){return e=Vs(e),e.tag=3,e}function sX(e,t,r,n){var a=r.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){FV(t,r,n)}}var o=r.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){FV(t,r,n),typeof a!="function"&&(Hs===null?Hs=new Set([this]):Hs.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})})}function lAt(e,t,r,n,a){if(r.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=r.alternate,t!==null&&rv(t,r,a,!0),r=Vn.current,r!==null){switch(r.tag){case 31:case 13:return va===null?K_():r.alternate===null&&Ne===0&&(Ne=3),r.flags&=-257,r.flags|=65536,r.lanes=a,n===H_?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([n]):t.add(n),aT(e,n,a)),!1;case 22:return r.flags|=65536,n===H_?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([n]):r.add(n)),aT(e,n,a)),!1}throw Error(Z(435,r.tag))}return aT(e,n,a),K_(),!1}if(qt)return t=Vn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==SD&&(e=Error(Z(422),{cause:n}),Ip(sa(e,r)))):(n!==SD&&(t=Error(Z(423),{cause:n}),Ip(sa(t,r))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=sa(n,r),a=ID(e.stateNode,n,a),jw(e,a),Ne!==4&&(Ne=2)),!1;var i=Error(Z(520),{cause:n});if(i=sa(i,r),Fd===null?Fd=[i]:Fd.push(i),Ne!==4&&(Ne=2),t===null)return!0;n=sa(n,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=a&-a,r.lanes|=e,e=ID(r.stateNode,n,e),jw(r,e),!1;case 1:if(t=r.type,i=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Hs===null||!Hs.has(i))))return r.flags|=65536,a&=-a,r.lanes|=a,a=oX(a),sX(a,e,r,n),jw(r,a),!1}r=r.return}while(r!==null);return!1}var ZO=Error(Z(461)),Je=!1;function wr(e,t,r,n){t.child=e===null?bW(t,null,r,n):Zu(t,e.child,r,n)}function YV(e,t,r,n,a){r=r.render;var i=t.ref;if("ref"in n){var o={};for(var s in n)s!=="ref"&&(o[s]=n[s])}else o=n;return Xu(t),n=kO(e,t,r,o,i,a),s=zO(),e!==null&&!Je?(BO(e,t,a),Uo(e,t,a)):(qt&&s&&DO(t),t.flags|=1,wr(e,t,n,a),t.child)}function jV(e,t,r,n,a){if(e===null){var i=r.type;return typeof i=="function"&&!MO(i)&&i.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=i,lX(e,t,i,n,a)):(e=Xm(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!$O(e,a)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:Op,r(o,n)&&e.ref===t.ref)return Uo(e,t,a)}return t.flags|=1,e=To(i,n),e.ref=t.ref,e.return=t,t.child=e}function lX(e,t,r,n,a){if(e!==null){var i=e.memoizedProps;if(Op(i,n)&&e.ref===t.ref)if(Je=!1,t.pendingProps=n=i,$O(e,a))e.flags&131072&&(Je=!0);else return t.lanes=e.lanes,Uo(e,t,a)}return PD(e,t,r,n,a)}function uX(e,t,r,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|r:r,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return WV(e,t,i,r,n)}if(r&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zm(t,i!==null?i.cachePool:null),i!==null?PV(t,i):MD(),TW(t);else return n=t.lanes=536870912,WV(e,t,i!==null?i.baseLanes|r:r,r,n)}else i!==null?(Zm(t,i.cachePool),PV(t,i),vs(),t.memoizedState=null):(e!==null&&Zm(t,null),MD(),vs());return wr(e,t,a,r),t.child}function fd(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function WV(e,t,r,n,a){var i=OO();return i=i===null?null:{parent:Ke._currentValue,pool:i},t.memoizedState={baseLanes:r,cachePool:i},e!==null&&Zm(t,null),MD(),TW(t),e!==null&&rv(e,t,n,!0),t.childLanes=a,null}function Km(e,t){return t=X_({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function XV(e,t,r){return Zu(t,e.child,null,r),e=Km(t,t.pendingProps),e.flags|=2,Sn(t),t.memoizedState=null,e}function uAt(e,t,r){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qt){if(n.mode==="hidden")return e=Km(t,n),t.lanes=536870912,fd(null,e);if(DD(t),(e=we)?(e=eZ(e,la),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:tl!==null?{id:_i,overflow:Si}:null,retryLane:536870912,hydrationErrors:null},r=dW(e),r.return=t,t.child=r,Ar=t,we=null)):e=null,e===null)throw el(t);return t.lanes=536870912,null}return Km(t,n)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(DD(t),a)if(t.flags&256)t.flags&=-257,t=XV(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(Z(558));else if(Je||rv(e,t,r,!1),a=(r&e.childLanes)!==0,Je||a){if(n=ge,n!==null&&(o=Gj(n,r),o!==0&&o!==i.retryLane))throw i.retryLane=o,_f(e,o),fn(n,e,o),ZO;K_(),t=XV(e,t,r)}else e=i.treeContext,we=da(o.nextSibling),Ar=t,qt=!0,Bs=null,la=!1,e!==null&&gW(t,e),t=Km(t,n),t.flags|=4096;return t}return e=To(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qm(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(Z(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function PD(e,t,r,n,a){return Xu(t),r=kO(e,t,r,n,void 0,a),n=zO(),e!==null&&!Je?(BO(e,t,a),Uo(e,t,a)):(qt&&n&&DO(t),t.flags|=1,wr(e,t,r,a),t.child)}function ZV(e,t,r,n,a,i){return Xu(t),t.updateQueue=null,r=AW(t,n,r,a),CW(e),n=zO(),e!==null&&!Je?(BO(e,t,i),Uo(e,t,i)):(qt&&n&&DO(t),t.flags|=1,wr(e,t,r,i),t.child)}function $V(e,t,r,n,a){if(Xu(t),t.stateNode===null){var i=Mc,o=r.contextType;typeof o=="object"&&o!==null&&(i=Mr(o)),i=new r(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=RD,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},IO(t),o=r.contextType,i.context=typeof o=="object"&&o!==null?Mr(o):Mc,i.state=t.memoizedState,o=r.getDerivedStateFromProps,typeof o=="function"&&(Xw(t,r,o,n),i.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&RD.enqueueReplaceState(i,i.state,null),Vd(t,n,i,a),Bd(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var s=t.memoizedProps,l=qu(r,s);i.props=l;var u=i.context,f=r.contextType;o=Mc,typeof f=="object"&&f!==null&&(o=Mr(f));var c=r.getDerivedStateFromProps;f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||u!==o)&&UV(t,i,n,o),fs=!1;var h=t.memoizedState;i.state=h,Vd(t,n,i,a),Bd(),u=t.memoizedState,s||h!==u||fs?(typeof c=="function"&&(Xw(t,r,c,n),u=t.memoizedState),(l=fs||HV(t,r,l,n,h,u,o))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),i.props=n,i.state=u,i.context=o,n=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,CD(e,t),o=t.memoizedProps,f=qu(r,o),i.props=f,c=t.pendingProps,h=i.context,u=r.contextType,l=Mc,typeof u=="object"&&u!==null&&(l=Mr(u)),s=r.getDerivedStateFromProps,(u=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==c||h!==l)&&UV(t,i,n,l),fs=!1,h=t.memoizedState,i.state=h,Vd(t,n,i,a),Bd();var v=t.memoizedState;o!==c||h!==v||fs||e!==null&&e.dependencies!==null&&G_(e.dependencies)?(typeof s=="function"&&(Xw(t,r,s,n),v=t.memoizedState),(f=fs||HV(t,r,f,n,h,v,l)||e!==null&&e.dependencies!==null&&G_(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,v,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,v,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),i.props=n,i.state=v,i.context=l,n=f):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,Qm(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,r=n&&typeof r.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=Zu(t,e.child,null,a),t.child=Zu(t,null,r,a)):wr(e,t,r,a),t.memoizedState=i.state,e=t.child):e=Uo(e,t,a),e}function qV(e,t,r,n){return Wu(),t.flags|=256,wr(e,t,r,n),t.child}var Zw={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $w(e){return{baseLanes:e,cachePool:mW()}}function qw(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=On),e}function fX(e,t,r){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(He.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(qt){if(a?hs(t):vs(),(e=we)?(e=eZ(e,la),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:tl!==null?{id:_i,overflow:Si}:null,retryLane:536870912,hydrationErrors:null},r=dW(e),r.return=t,t.child=r,Ar=t,we=null)):e=null,e===null)throw el(t);return ZD(e)?t.lanes=32:t.lanes=536870912,null}var s=n.children;return n=n.fallback,a?(vs(),a=t.mode,s=X_({mode:"hidden",children:s},a),n=xu(n,a,r,null),s.return=t,n.return=t,s.sibling=n,t.child=s,n=t.child,n.memoizedState=$w(r),n.childLanes=qw(e,o,r),t.memoizedState=Zw,fd(null,n)):(hs(t),ND(t,s))}var l=e.memoizedState;if(l!==null&&(s=l.dehydrated,s!==null)){if(i)t.flags&256?(hs(t),t.flags&=-257,t=Kw(e,t,r)):t.memoizedState!==null?(vs(),t.child=e.child,t.flags|=128,t=null):(vs(),s=n.fallback,a=t.mode,n=X_({mode:"visible",children:n.children},a),s=xu(s,a,r,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,Zu(t,e.child,null,r),n=t.child,n.memoizedState=$w(r),n.childLanes=qw(e,o,r),t.memoizedState=Zw,t=fd(null,n));else if(hs(t),ZD(s)){if(o=s.nextSibling&&s.nextSibling.dataset,o)var u=o.dgst;o=u,n=Error(Z(419)),n.stack="",n.digest=o,Ip({value:n,source:null,stack:null}),t=Kw(e,t,r)}else if(Je||rv(e,t,r,!1),o=(r&e.childLanes)!==0,Je||o){if(o=ge,o!==null&&(n=Gj(o,r),n!==0&&n!==l.retryLane))throw l.retryLane=n,_f(e,n),fn(o,e,n),ZO;XD(s)||K_(),t=Kw(e,t,r)}else XD(s)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,we=da(s.nextSibling),Ar=t,qt=!0,Bs=null,la=!1,e!==null&&gW(t,e),t=ND(t,n.children),t.flags|=4096);return t}return a?(vs(),s=n.fallback,a=t.mode,l=e.child,u=l.sibling,n=To(l,{mode:"hidden",children:n.children}),n.subtreeFlags=l.subtreeFlags&65011712,u!==null?s=To(u,s):(s=xu(s,a,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,fd(null,n),n=t.child,s=e.child.memoizedState,s===null?s=$w(r):(a=s.cachePool,a!==null?(l=Ke._currentValue,a=a.parent!==l?{parent:l,pool:l}:a):a=mW(),s={baseLanes:s.baseLanes|r,cachePool:a}),n.memoizedState=s,n.childLanes=qw(e,o,r),t.memoizedState=Zw,fd(e.child,n)):(hs(t),r=e.child,e=r.sibling,r=To(r,{mode:"visible",children:n.children}),r.return=t,r.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=r,t.memoizedState=null,r)}function ND(e,t){return t=X_({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function X_(e,t){return e=An(22,e,null,t),e.lanes=0,e}function Kw(e,t,r){return Zu(t,e.child,null,r),e=ND(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function KV(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),xD(e.return,t,r)}function Qw(e,t,r,n,a,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a,o.treeForkCount=i)}function cX(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var o=He.current,s=(o&2)!==0;if(s?(o=o&1|2,t.flags|=128):o&=1,_e(He,o),wr(e,t,n,r),n=qt?Rp:0,!s&&e!==null&&e.flags&128)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&KV(e,r,t);else if(e.tag===19)KV(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&F_(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Qw(t,!1,a,r,i,n);break;case"backwards":case"unstable_legacy-backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&F_(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Qw(t,!0,r,null,i,n);break;case"together":Qw(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Uo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,!(r&t.childLanes))if(e!==null){if(rv(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,r=To(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=To(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function $O(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&G_(e)))}function fAt(e,t,r){switch(t.tag){case 3:I_(t,t.stateNode.containerInfo),cs(t,Ke,e.memoizedState.cache),Wu();break;case 27:case 5:uD(t);break;case 4:I_(t,t.stateNode.containerInfo);break;case 10:cs(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,DD(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(hs(t),t.flags|=128,null):r&t.child.childLanes?fX(e,t,r):(hs(t),e=Uo(e,t,r),e!==null?e.sibling:null);hs(t);break;case 19:var a=(e.flags&128)!==0;if(n=(r&t.childLanes)!==0,n||(rv(e,t,r,!1),n=(r&t.childLanes)!==0),a){if(n)return cX(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),_e(He,He.current),n)break;return null;case 22:return t.lanes=0,uX(e,t,r,t.pendingProps);case 24:cs(t,Ke,e.memoizedState.cache)}return Uo(e,t,r)}function hX(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!$O(e,r)&&!(t.flags&128))return Je=!1,fAt(e,t,r);Je=!!(e.flags&131072)}else Je=!1,qt&&t.flags&1048576&&pW(t,Rp,t.index);switch(t.lanes=0,t.tag){case 16:t:{var n=t.pendingProps;if(e=Ql(t.elementType),t.type=e,typeof e=="function")MO(e)?(n=qu(e,n),t.tag=1,t=$V(null,t,e,n,r)):(t.tag=0,t=PD(null,t,e,n,r));else{if(e!=null){var a=e.$$typeof;if(a===vO){t.tag=11,t=YV(null,t,e,n,r);break t}else if(a===dO){t.tag=14,t=jV(null,t,e,n,r);break t}}throw t=sD(e)||e,Error(Z(306,t,""))}}return t;case 0:return PD(e,t,t.type,t.pendingProps,r);case 1:return n=t.type,a=qu(n,t.pendingProps),$V(e,t,n,a,r);case 3:t:{if(I_(t,t.stateNode.containerInfo),e===null)throw Error(Z(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,CD(e,t),Vd(t,n,null,r);var o=t.memoizedState;if(n=o.cache,cs(t,Ke,n),n!==i.cache&&wD(t,[Ke],r,!0),Bd(),n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=qV(e,t,n,r);break t}else if(n!==a){a=sa(Error(Z(424)),t),Ip(a),t=qV(e,t,n,r);break t}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(we=da(e.firstChild),Ar=t,qt=!0,Bs=null,la=!0,r=bW(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Wu(),n===a){t=Uo(e,t,r);break t}wr(e,t,n,r)}t=t.child}return t;case 26:return Qm(e,t),e===null?(r=y4(t.type,null,t.pendingProps,null))?t.memoizedState=r:qt||(r=t.type,e=t.pendingProps,n=eS(zs.current).createElement(r),n[Cr]=t,n[vn]=e,Lr(n,r,e),gr(n),t.stateNode=n):t.memoizedState=y4(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return uD(t),e===null&&qt&&(n=t.stateNode=rZ(t.type,t.pendingProps,zs.current),Ar=t,la=!0,a=we,pl(t.type)?($D=a,we=da(n.firstChild)):we=a),wr(e,t,t.pendingProps.children,r),Qm(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qt&&((a=n=we)&&(n=GAt(n,t.type,t.pendingProps,la),n!==null?(t.stateNode=n,Ar=t,we=da(n.firstChild),la=!1,a=!0):a=!1),a||el(t)),uD(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,n=i.children,jD(a,i)?n=null:o!==null&&jD(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=kO(e,t,eAt,null,null,r),Vp._currentValue=a),Qm(e,t),wr(e,t,n,r),t.child;case 6:return e===null&&qt&&((e=r=we)&&(r=HAt(r,t.pendingProps,la),r!==null?(t.stateNode=r,Ar=t,we=null,e=!0):e=!1),e||el(t)),null;case 13:return fX(e,t,r);case 4:return I_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Zu(t,null,n,r):wr(e,t,n,r),t.child;case 11:return YV(e,t,t.type,t.pendingProps,r);case 7:return wr(e,t,t.pendingProps,r),t.child;case 8:return wr(e,t,t.pendingProps.children,r),t.child;case 12:return wr(e,t,t.pendingProps.children,r),t.child;case 10:return n=t.pendingProps,cs(t,t.type,n.value),wr(e,t,n.children,r),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Xu(t),a=Mr(a),n=n(a),t.flags|=1,wr(e,t,n,r),t.child;case 14:return jV(e,t,t.type,t.pendingProps,r);case 15:return lX(e,t,t.type,t.pendingProps,r);case 19:return cX(e,t,r);case 31:return uAt(e,t,r);case 22:return uX(e,t,r,t.pendingProps);case 24:return Xu(t),n=Mr(Ke),e===null?(a=OO(),a===null&&(a=ge,i=EO(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=r),a=i),t.memoizedState={parent:n,cache:a},IO(t),cs(t,Ke,a)):(e.lanes&r&&(CD(e,t),Vd(t,null,null,r),Bd()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),cs(t,Ke,n)):(n=i.cache,cs(t,Ke,n),n!==a.cache&&wD(t,[Ke],r,!0))),wr(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(Z(156,t.tag))}function qi(e){e.flags|=4}function Jw(e,t,r,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(kX())e.flags|=8192;else throw Tu=H_,RO}else e.flags&=-16777217}function QV(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!iZ(t))if(kX())e.flags|=8192;else throw Tu=H_,RO}function fm(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?zj():536870912,e.lanes|=t,Sh|=t)}function Yv(e,t){if(!qt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function cAt(e,t,r){var n=t.pendingProps;switch(LO(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return xe(t),null;case 3:return r=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Co(Ke),dh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(tc(t)?qi(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yw())),xe(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(qi(t),i!==null?(xe(t),QV(t,i)):(xe(t),Jw(t,a,null,n,r))):i?i!==e.memoizedState?(qi(t),xe(t),QV(t,i)):(xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&qi(t),xe(t),Jw(t,a,e,n,r)),null;case 27:if(P_(t),r=zs.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&qi(t);else{if(!n){if(t.stateNode===null)throw Error(Z(166));return xe(t),null}e=Ei.current,tc(t)?MV(t):(e=rZ(a,n,r),t.stateNode=e,qi(t))}return xe(t),null;case 5:if(P_(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&qi(t);else{if(!n){if(t.stateNode===null)throw Error(Z(166));return xe(t),null}if(i=Ei.current,tc(t))MV(t);else{var o=eS(zs.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?o.createElement(a,{is:n.is}):o.createElement(a)}}i[Cr]=t,i[vn]=n;t:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break t;for(;o.sibling===null;){if(o.return===null||o.return===t)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;t:switch(Lr(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&qi(t)}}return xe(t),Jw(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&qi(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Z(166));if(e=zs.current,tc(t)){if(e=t.stateNode,r=t.memoizedProps,n=null,a=Ar,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[Cr]=t,e=!!(e.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||QX(e.nodeValue,r)),e||el(t,!0)}else e=eS(e).createTextNode(n),e[Cr]=t,t.stateNode=e}return xe(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(n=tc(t),r!==null){if(e===null){if(!n)throw Error(Z(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Z(557));e[Cr]=t}else Wu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),e=!1}else r=Yw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Sn(t),t):(Sn(t),null);if(t.flags&128)throw Error(Z(558))}return xe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=tc(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(Z(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Z(317));a[Cr]=t}else Wu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),a=!1}else a=Yw(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Sn(t),t):(Sn(t),null)}return Sn(t),t.flags&128?(t.lanes=r,t):(r=n!==null,e=e!==null&&e.memoizedState!==null,r&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),fm(t,t.updateQueue),xe(t),null);case 4:return dh(),e===null&&rR(t.stateNode.containerInfo),xe(t),null;case 10:return Co(t.type),xe(t),null;case 19:if(mr(He),n=t.memoizedState,n===null)return xe(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)Yv(n,!1);else{if(Ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=F_(e),i!==null){for(t.flags|=128,Yv(n,!1),e=i.updateQueue,t.updateQueue=e,fm(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)vW(r,e),r=r.sibling;return _e(He,He.current&1|2),qt&&ro(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Pn()>$_&&(t.flags|=128,a=!0,Yv(n,!1),t.lanes=4194304)}else{if(!a)if(e=F_(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,fm(t,e),Yv(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!qt)return xe(t),null}else 2*Pn()-n.renderingStartTime>$_&&r!==536870912&&(t.flags|=128,a=!0,Yv(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Pn(),e.sibling=null,r=He.current,_e(He,a?r&1|2:r&1),qt&&ro(t,n.treeForkCount),e):(xe(t),null);case 22:case 23:return Sn(t),PO(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?r&536870912&&!(t.flags&128)&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),r=t.updateQueue,r!==null&&fm(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==r&&(t.flags|=2048),e!==null&&mr(wu),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Co(Ke),xe(t),null;case 25:return null;case 30:return null}throw Error(Z(156,t.tag))}function hAt(e,t){switch(LO(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Co(Ke),dh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return P_(t),null;case 31:if(t.memoizedState!==null){if(Sn(t),t.alternate===null)throw Error(Z(340));Wu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));Wu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(He),null;case 4:return dh(),null;case 10:return Co(t.type),null;case 22:case 23:return Sn(t),PO(),e!==null&&mr(wu),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Co(Ke),null;case 25:return null;default:return null}}function vX(e,t){switch(LO(t),t.tag){case 3:Co(Ke),dh();break;case 26:case 27:case 5:P_(t);break;case 4:dh();break;case 31:t.memoizedState!==null&&Sn(t);break;case 13:Sn(t);break;case 19:mr(He);break;case 10:Co(t.type);break;case 22:case 23:Sn(t),PO(),e!==null&&mr(wu);break;case 24:Co(Ke)}}function Ag(e,t){try{var r=t.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var a=n.next;r=a;do{if((r.tag&e)===e){n=void 0;var i=r.create,o=r.inst;n=i(),o.destroy=n}r=r.next}while(r!==a)}}catch(s){ue(t,t.return,s)}}function rl(e,t,r){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var o=n.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,a=t;var l=r,u=s;try{u()}catch(f){ue(a,l,f)}}}n=n.next}while(n!==i)}}catch(f){ue(t,t.return,f)}}function dX(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{wW(t,r)}catch(n){ue(e,e.return,n)}}}function pX(e,t,r){r.props=qu(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){ue(e,t,n)}}function Hd(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof r=="function"?e.refCleanup=r(n):r.current=n}}catch(a){ue(e,t,a)}}function bi(e,t){var r=e.ref,n=e.refCleanup;if(r!==null)if(typeof n=="function")try{n()}catch(a){ue(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(a){ue(e,t,a)}else r.current=null}function gX(e){var t=e.type,r=e.memoizedProps,n=e.stateNode;try{t:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break t;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(a){ue(e,e.return,a)}}function tT(e,t,r){try{var n=e.stateNode;PAt(n,e.type,r,t),n[vn]=t}catch(a){ue(e,e.return,a)}}function yX(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pl(e.type)||e.tag===4}function eT(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||yX(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&pl(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kD(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=vo));else if(n!==4&&(n===27&&pl(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(kD(e,t,r),e=e.sibling;e!==null;)kD(e,t,r),e=e.sibling}function Z_(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(n===27&&pl(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Z_(e,t,r),e=e.sibling;e!==null;)Z_(e,t,r),e=e.sibling}function mX(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Lr(t,n,r),t[Cr]=e,t[vn]=r}catch(i){ue(e,e.return,i)}}var oo=!1,qe=!1,rT=!1,JV=typeof WeakSet=="function"?WeakSet:Set,pr=null;function vAt(e,t){if(e=e.containerInfo,FD=iS,e=iW(e),TO(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else t:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break t}var o=0,s=-1,l=-1,u=0,f=0,c=e,h=null;e:for(;;){for(var v;c!==r||a!==0&&c.nodeType!==3||(s=o+a),c!==i||n!==0&&c.nodeType!==3||(l=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(v=c.firstChild)!==null;)h=c,c=v;for(;;){if(c===e)break e;if(h===r&&++u===a&&(s=o),h===i&&++f===n&&(l=o),(v=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=v}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(YD={focusedElem:e,selectionRange:r},iS=!1,pr=t;pr!==null;)if(t=pr,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pr=e;else for(;pr!==null;){switch(t=pr,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)a=e[r],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,r=t,a=i.memoizedProps,i=i.memoizedState,n=r.stateNode;try{var d=qu(r.type,a);e=n.getSnapshotBeforeUpdate(d,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(p){ue(r,r.return,p)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)WD(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":WD(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(Z(163))}if(e=t.sibling,e!==null){e.return=t.return,pr=e;break}pr=t.return}}function _X(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:Qi(e,r),n&4&&Ag(5,r);break;case 1:if(Qi(e,r),n&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(o){ue(r,r.return,o)}else{var a=qu(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){ue(r,r.return,o)}}n&64&&dX(r),n&512&&Hd(r,r.return);break;case 3:if(Qi(e,r),n&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{wW(e,t)}catch(o){ue(r,r.return,o)}}break;case 27:t===null&&n&4&&mX(r);case 26:case 5:Qi(e,r),t===null&&n&4&&gX(r),n&512&&Hd(r,r.return);break;case 12:Qi(e,r);break;case 31:Qi(e,r),n&4&&xX(e,r);break;case 13:Qi(e,r),n&4&&wX(e,r),n&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=xAt.bind(null,r),UAt(e,r))));break;case 22:if(n=r.memoizedState!==null||oo,!n){t=t!==null&&t.memoizedState!==null||qe,a=oo;var i=qe;oo=n,(qe=t)&&!i?Ji(e,r,(r.subtreeFlags&8772)!==0):Qi(e,r),oo=a,qe=i}break;case 30:break;default:Qi(e,r)}}function SX(e){var t=e.alternate;t!==null&&(e.alternate=null,SX(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mO(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ae=null,nn=!1;function Ki(e,t,r){for(r=r.child;r!==null;)bX(e,t,r),r=r.sibling}function bX(e,t,r){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(_g,r)}catch{}switch(r.tag){case 26:qe||bi(r,t),Ki(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:qe||bi(r,t);var n=Ae,a=nn;pl(r.type)&&(Ae=r.stateNode,nn=!1),Ki(e,t,r),jd(r.stateNode),Ae=n,nn=a;break;case 5:qe||bi(r,t);case 6:if(n=Ae,a=nn,Ae=null,Ki(e,t,r),Ae=n,nn=a,Ae!==null)if(nn)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(r.stateNode)}catch(i){ue(r,t,i)}else try{Ae.removeChild(r.stateNode)}catch(i){ue(r,t,i)}break;case 18:Ae!==null&&(nn?(e=Ae,h4(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Th(e)):h4(Ae,r.stateNode));break;case 4:n=Ae,a=nn,Ae=r.stateNode.containerInfo,nn=!0,Ki(e,t,r),Ae=n,nn=a;break;case 0:case 11:case 14:case 15:rl(2,r,t),qe||rl(4,r,t),Ki(e,t,r);break;case 1:qe||(bi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"&&pX(r,t,n)),Ki(e,t,r);break;case 21:Ki(e,t,r);break;case 22:qe=(n=qe)||r.memoizedState!==null,Ki(e,t,r),qe=n;break;default:Ki(e,t,r)}}function xX(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Th(e)}catch(r){ue(t,t.return,r)}}}function wX(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Th(e)}catch(r){ue(t,t.return,r)}}function dAt(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new JV),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new JV),t;default:throw Error(Z(435,e.tag))}}function cm(e,t){var r=dAt(e);t.forEach(function(n){if(!r.has(n)){r.add(n);var a=wAt.bind(null,e,n);n.then(a,a)}})}function en(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n],i=e,o=t,s=o;t:for(;s!==null;){switch(s.tag){case 27:if(pl(s.type)){Ae=s.stateNode,nn=!1;break t}break;case 5:Ae=s.stateNode,nn=!1;break t;case 3:case 4:Ae=s.stateNode.containerInfo,nn=!0;break t}s=s.return}if(Ae===null)throw Error(Z(160));bX(i,o,a),Ae=null,nn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)TX(t,e),t=t.sibling}var Oa=null;function TX(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:en(t,e),rn(e),n&4&&(rl(3,e,e.return),Ag(3,e),rl(5,e,e.return));break;case 1:en(t,e),rn(e),n&512&&(qe||r===null||bi(r,r.return)),n&64&&oo&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?n:r.concat(n))));break;case 26:var a=Oa;if(en(t,e),rn(e),n&512&&(qe||r===null||bi(r,r.return)),n&4){var i=r!==null?r.memoizedState:null;if(n=e.memoizedState,r===null)if(n===null)if(e.stateNode===null){t:{n=e.type,r=e.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[xg]||i[Cr]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),Lr(i,n,r),i[Cr]=e,gr(i),n=i;break t;case"link":var o=_4("link","href",a).get(n+(r.href||""));if(o){for(var s=0;s<o.length;s++)if(i=o[s],i.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&i.getAttribute("rel")===(r.rel==null?null:r.rel)&&i.getAttribute("title")===(r.title==null?null:r.title)&&i.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){o.splice(s,1);break e}}i=a.createElement(n),Lr(i,n,r),a.head.appendChild(i);break;case"meta":if(o=_4("meta","content",a).get(n+(r.content||""))){for(s=0;s<o.length;s++)if(i=o[s],i.getAttribute("content")===(r.content==null?null:""+r.content)&&i.getAttribute("name")===(r.name==null?null:r.name)&&i.getAttribute("property")===(r.property==null?null:r.property)&&i.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&i.getAttribute("charset")===(r.charSet==null?null:r.charSet)){o.splice(s,1);break e}}i=a.createElement(n),Lr(i,n,r),a.head.appendChild(i);break;default:throw Error(Z(468,n))}i[Cr]=e,gr(i),n=i}e.stateNode=n}else S4(a,e.type,e.stateNode);else e.stateNode=m4(a,n,e.memoizedProps);else i!==n?(i===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):i.count--,n===null?S4(a,e.type,e.stateNode):m4(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&tT(e,e.memoizedProps,r.memoizedProps)}break;case 27:en(t,e),rn(e),n&512&&(qe||r===null||bi(r,r.return)),r!==null&&n&4&&tT(e,e.memoizedProps,r.memoizedProps);break;case 5:if(en(t,e),rn(e),n&512&&(qe||r===null||bi(r,r.return)),e.flags&32){a=e.stateNode;try{gh(a,"")}catch(d){ue(e,e.return,d)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,tT(e,a,r!==null?r.memoizedProps:a)),n&1024&&(rT=!0);break;case 6:if(en(t,e),rn(e),n&4){if(e.stateNode===null)throw Error(Z(162));n=e.memoizedProps,r=e.stateNode;try{r.nodeValue=n}catch(d){ue(e,e.return,d)}}break;case 3:if(e0=null,a=Oa,Oa=rS(t.containerInfo),en(t,e),Oa=a,rn(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Th(t.containerInfo)}catch(d){ue(e,e.return,d)}rT&&(rT=!1,CX(e));break;case 4:n=Oa,Oa=rS(e.stateNode.containerInfo),en(t,e),rn(e),Oa=n;break;case 12:en(t,e),rn(e);break;case 31:en(t,e),rn(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cm(e,n)));break;case 13:en(t,e),rn(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(E1=Pn()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cm(e,n)));break;case 22:a=e.memoizedState!==null;var l=r!==null&&r.memoizedState!==null,u=oo,f=qe;if(oo=u||a,qe=f||l,en(t,e),qe=f,oo=u,rn(e),n&8192)t:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(r===null||l||oo||qe||Jl(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){l=r=t;try{if(i=l.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{s=l.stateNode;var c=l.memoizedProps.style,h=c!=null&&c.hasOwnProperty("display")?c.display:null;s.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(d){ue(l,l.return,d)}}}else if(t.tag===6){if(r===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(d){ue(l,l.return,d)}}}else if(t.tag===18){if(r===null){l=t;try{var v=l.stateNode;a?v4(v,!0):v4(l.stateNode,!1)}catch(d){ue(l,l.return,d)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(r=n.retryQueue,r!==null&&(n.retryQueue=null,cm(e,r))));break;case 19:en(t,e),rn(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,cm(e,n)));break;case 30:break;case 21:break;default:en(t,e),rn(e)}}function rn(e){var t=e.flags;if(t&2){try{for(var r,n=e.return;n!==null;){if(yX(n)){r=n;break}n=n.return}if(r==null)throw Error(Z(160));switch(r.tag){case 27:var a=r.stateNode,i=eT(e);Z_(e,i,a);break;case 5:var o=r.stateNode;r.flags&32&&(gh(o,""),r.flags&=-33);var s=eT(e);Z_(e,s,o);break;case 3:case 4:var l=r.stateNode.containerInfo,u=eT(e);kD(e,u,l);break;default:throw Error(Z(161))}}catch(f){ue(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function CX(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;CX(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Qi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_X(e,t.alternate,t),t=t.sibling}function Jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:rl(4,t,t.return),Jl(t);break;case 1:bi(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&pX(t,t.return,r),Jl(t);break;case 27:jd(t.stateNode);case 26:case 5:bi(t,t.return),Jl(t);break;case 22:t.memoizedState===null&&Jl(t);break;case 30:Jl(t);break;default:Jl(t)}e=e.sibling}}function Ji(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:Ji(a,i,r),Ag(4,i);break;case 1:if(Ji(a,i,r),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){ue(n,n.return,u)}if(n=i,a=n.updateQueue,a!==null){var s=n.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)xW(l[a],s)}catch(u){ue(n,n.return,u)}}r&&o&64&&dX(i),Hd(i,i.return);break;case 27:mX(i);case 26:case 5:Ji(a,i,r),r&&n===null&&o&4&&gX(i),Hd(i,i.return);break;case 12:Ji(a,i,r);break;case 31:Ji(a,i,r),r&&o&4&&xX(a,i);break;case 13:Ji(a,i,r),r&&o&4&&wX(a,i);break;case 22:i.memoizedState===null&&Ji(a,i,r),Hd(i,i.return);break;case 30:break;default:Ji(a,i,r)}t=t.sibling}}function qO(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Tg(r))}function KO(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tg(e))}function Ta(e,t,r,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)AX(e,t,r,n),t=t.sibling}function AX(e,t,r,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Ta(e,t,r,n),a&2048&&Ag(9,t);break;case 1:Ta(e,t,r,n);break;case 3:Ta(e,t,r,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tg(e)));break;case 12:if(a&2048){Ta(e,t,r,n),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,s=i.onPostCommit;typeof s=="function"&&s(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){ue(t,t.return,l)}}else Ta(e,t,r,n);break;case 31:Ta(e,t,r,n);break;case 13:Ta(e,t,r,n);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Ta(e,t,r,n):Ud(e,t):i._visibility&2?Ta(e,t,r,n):(i._visibility|=2,sc(e,t,r,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&qO(o,t);break;case 24:Ta(e,t,r,n),a&2048&&KO(t.alternate,t);break;default:Ta(e,t,r,n)}}function sc(e,t,r,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,s=r,l=n,u=o.flags;switch(o.tag){case 0:case 11:case 15:sc(i,o,s,l,a),Ag(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?sc(i,o,s,l,a):Ud(i,o):(f._visibility|=2,sc(i,o,s,l,a)),a&&u&2048&&qO(o.alternate,o);break;case 24:sc(i,o,s,l,a),a&&u&2048&&KO(o.alternate,o);break;default:sc(i,o,s,l,a)}t=t.sibling}}function Ud(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,n=t,a=n.flags;switch(n.tag){case 22:Ud(r,n),a&2048&&qO(n.alternate,n);break;case 24:Ud(r,n),a&2048&&KO(n.alternate,n);break;default:Ud(r,n)}t=t.sibling}}var cd=8192;function ec(e,t,r){if(e.subtreeFlags&cd)for(e=e.child;e!==null;)MX(e,t,r),e=e.sibling}function MX(e,t,r){switch(e.tag){case 26:ec(e,t,r),e.flags&cd&&e.memoizedState!==null&&tMt(r,Oa,e.memoizedState,e.memoizedProps);break;case 5:ec(e,t,r);break;case 3:case 4:var n=Oa;Oa=rS(e.stateNode.containerInfo),ec(e,t,r),Oa=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=cd,cd=16777216,ec(e,t,r),cd=n):ec(e,t,r));break;default:ec(e,t,r)}}function DX(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function jv(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];pr=n,EX(n,e)}DX(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)LX(e),e=e.sibling}function LX(e){switch(e.tag){case 0:case 11:case 15:jv(e),e.flags&2048&&rl(9,e,e.return);break;case 3:jv(e);break;case 12:jv(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Jm(e)):jv(e);break;default:jv(e)}}function Jm(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];pr=n,EX(n,e)}DX(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:rl(8,t,t.return),Jm(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,Jm(t));break;default:Jm(t)}e=e.sibling}}function EX(e,t){for(;pr!==null;){var r=pr;switch(r.tag){case 0:case 11:case 15:rl(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var n=r.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Tg(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,pr=n;else t:for(r=e;pr!==null;){n=pr;var a=n.sibling,i=n.return;if(SX(n),n===r){pr=null;break t}if(a!==null){a.return=i,pr=a;break t}pr=i}}}var pAt={getCacheForType:function(e){var t=Mr(Ke),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Mr(Ke).controller.signal}},gAt=typeof WeakMap=="function"?WeakMap:Map,re=0,ge=null,Zt=null,$t=0,se=0,yn=null,Cs=!1,av=!1,QO=!1,Fo=0,Ne=0,nl=0,Cu=0,JO=0,On=0,Sh=0,Fd=null,an=null,zD=!1,E1=0,OX=0,$_=1/0,q_=null,Hs=null,ir=0,Us=null,bh=null,Ao=0,BD=0,VD=null,RX=null,Yd=0,GD=null;function zn(){return re&2&&$t!==0?$t&-$t:Rt.T!==null?eR():Hj()}function IX(){if(On===0)if(!($t&536870912)||qt){var e=nm;nm<<=1,!(nm&3932160)&&(nm=262144),On=e}else On=536870912;return e=Vn.current,e!==null&&(e.flags|=32),On}function fn(e,t,r){(e===ge&&(se===2||se===9)||e.cancelPendingCommit!==null)&&(xh(e,0),As(e,$t,On,!1)),bg(e,r),(!(re&2)||e!==ge)&&(e===ge&&(!(re&2)&&(Cu|=r),Ne===4&&As(e,$t,On,!1)),Fi(e))}function PX(e,t,r){if(re&6)throw Error(Z(327));var n=!r&&(t&127)===0&&(t&e.expiredLanes)===0||Sg(e,t),a=n?_At(e,t):nT(e,t,!0),i=n;do{if(a===0){av&&!n&&As(e,t,0,!1);break}else{if(r=e.current.alternate,i&&!yAt(r)){a=nT(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;t:{var s=e;a=Fd;var l=s.current.memoizedState.isDehydrated;if(l&&(xh(s,o).flags|=256),o=nT(s,o,!1),o!==2){if(QO&&!l){s.errorRecoveryDisabledLanes|=i,Cu|=i,a=4;break t}i=an,an=a,i!==null&&(an===null?an=i:an.push.apply(an,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){xh(e,0),As(e,t,0,!0);break}t:{switch(n=e,i=a,i){case 0:case 1:throw Error(Z(345));case 4:if((t&4194048)!==t)break;case 6:As(n,t,On,!Cs);break t;case 2:an=null;break;case 3:case 5:break;default:throw Error(Z(329))}if((t&62914560)===t&&(a=E1+300-Pn(),10<a)){if(As(n,t,On,!Cs),_1(n,0,!0)!==0)break t;Ao=t,n.timeoutHandle=tZ(t4.bind(null,n,r,an,q_,zD,t,On,Cu,Sh,Cs,i,"Throttled",-0,0),a);break t}t4(n,r,an,q_,zD,t,On,Cu,Sh,Cs,i,null,-0,0)}}break}while(!0);Fi(e)}function t4(e,t,r,n,a,i,o,s,l,u,f,c,h,v){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vo},MX(t,i,c);var d=(i&62914560)===i?E1-Pn():(i&4194048)===i?OX-Pn():0;if(d=eMt(c,d),d!==null){Ao=i,e.cancelPendingCommit=d(r4.bind(null,e,t,i,r,n,a,o,s,l,f,c,null,h,v)),As(e,i,o,!u);return}}r4(e,t,i,r,n,a,o,s,l)}function yAt(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!Bn(i(),a))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function As(e,t,r,n){t&=~JO,t&=~Cu,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-kn(a),o=1<<i;n[i]=-1,a&=~o}r!==0&&Bj(e,r,t)}function O1(){return re&6?!0:(Mg(0),!1)}function tR(){if(Zt!==null){if(se===0)var e=Zt.return;else e=Zt,po=Sf=null,VO(e),Fc=null,Pp=0,e=Zt;for(;e!==null;)vX(e.alternate,e),e=e.return;Zt=null}}function xh(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,zAt(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Ao=0,tR(),ge=e,Zt=r=To(e.current,null),$t=t,se=0,yn=null,Cs=!1,av=Sg(e,t),QO=!1,Sh=On=JO=Cu=nl=Ne=0,an=Fd=null,zD=!1,t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-kn(n),i=1<<a;t|=e[a],n&=~i}return Fo=t,w1(),r}function NX(e,t){Gt=null,Rt.H=kp,t===nv||t===C1?(t=RV(),se=3):t===RO?(t=RV(),se=4):se=t===ZO?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yn=t,Zt===null&&(Ne=1,W_(e,sa(t,e.current)))}function kX(){var e=Vn.current;return e===null?!0:($t&4194048)===$t?va===null:($t&62914560)===$t||$t&536870912?e===va:!1}function zX(){var e=Rt.H;return Rt.H=kp,e===null?kp:e}function BX(){var e=Rt.A;return Rt.A=pAt,e}function K_(){Ne=4,Cs||($t&4194048)!==$t&&Vn.current!==null||(av=!0),!(nl&134217727)&&!(Cu&134217727)||ge===null||As(ge,$t,On,!1)}function nT(e,t,r){var n=re;re|=2;var a=zX(),i=BX();(ge!==e||$t!==t)&&(q_=null,xh(e,t)),t=!1;var o=Ne;t:do try{if(se!==0&&Zt!==null){var s=Zt,l=yn;switch(se){case 8:tR(),o=6;break t;case 3:case 2:case 9:case 6:Vn.current===null&&(t=!0);var u=se;if(se=0,yn=null,Ec(e,s,l,u),r&&av){o=0;break t}break;default:u=se,se=0,yn=null,Ec(e,s,l,u)}}mAt(),o=Ne;break}catch(f){NX(e,f)}while(!0);return t&&e.shellSuspendCounter++,po=Sf=null,re=n,Rt.H=a,Rt.A=i,Zt===null&&(ge=null,$t=0,w1()),o}function mAt(){for(;Zt!==null;)VX(Zt)}function _At(e,t){var r=re;re|=2;var n=zX(),a=BX();ge!==e||$t!==t?(q_=null,$_=Pn()+500,xh(e,t)):av=Sg(e,t);t:do try{if(se!==0&&Zt!==null){t=Zt;var i=yn;e:switch(se){case 1:se=0,yn=null,Ec(e,t,i,1);break;case 2:case 9:if(OV(i)){se=0,yn=null,e4(t);break}t=function(){se!==2&&se!==9||ge!==e||(se=7),Fi(e)},i.then(t,t);break t;case 3:se=7;break t;case 4:se=5;break t;case 7:OV(i)?(se=0,yn=null,e4(t)):(se=0,yn=null,Ec(e,t,i,7));break;case 5:var o=null;switch(Zt.tag){case 26:o=Zt.memoizedState;case 5:case 27:var s=Zt;if(o?iZ(o):s.stateNode.complete){se=0,yn=null;var l=s.sibling;if(l!==null)Zt=l;else{var u=s.return;u!==null?(Zt=u,R1(u)):Zt=null}break e}}se=0,yn=null,Ec(e,t,i,5);break;case 6:se=0,yn=null,Ec(e,t,i,6);break;case 8:tR(),Ne=6;break t;default:throw Error(Z(462))}}SAt();break}catch(f){NX(e,f)}while(!0);return po=Sf=null,Rt.H=n,Rt.A=a,re=r,Zt!==null?0:(ge=null,$t=0,w1(),Ne)}function SAt(){for(;Zt!==null&&!FTt();)VX(Zt)}function VX(e){var t=hX(e.alternate,e,Fo);e.memoizedProps=e.pendingProps,t===null?R1(e):Zt=t}function e4(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=ZV(r,t,t.pendingProps,t.type,void 0,$t);break;case 11:t=ZV(r,t,t.pendingProps,t.type.render,t.ref,$t);break;case 5:VO(t);default:vX(r,t),t=Zt=vW(t,Fo),t=hX(r,t,Fo)}e.memoizedProps=e.pendingProps,t===null?R1(e):Zt=t}function Ec(e,t,r,n){po=Sf=null,VO(t),Fc=null,Pp=0;var a=t.return;try{if(lAt(e,a,t,r,$t)){Ne=1,W_(e,sa(r,e.current)),Zt=null;return}}catch(i){if(a!==null)throw Zt=a,i;Ne=1,W_(e,sa(r,e.current)),Zt=null;return}t.flags&32768?(qt||n===1?e=!0:av||$t&536870912?e=!1:(Cs=e=!0,(n===2||n===9||n===3||n===6)&&(n=Vn.current,n!==null&&n.tag===13&&(n.flags|=16384))),GX(t,e)):R1(t)}function R1(e){var t=e;do{if(t.flags&32768){GX(t,Cs);return}e=t.return;var r=cAt(t.alternate,t,Fo);if(r!==null){Zt=r;return}if(t=t.sibling,t!==null){Zt=t;return}Zt=t=e}while(t!==null);Ne===0&&(Ne=5)}function GX(e,t){do{var r=hAt(e.alternate,e);if(r!==null){r.flags&=32767,Zt=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Zt=e;return}Zt=e=r}while(e!==null);Ne=6,Zt=null}function r4(e,t,r,n,a,i,o,s,l){e.cancelPendingCommit=null;do I1();while(ir!==0);if(re&6)throw Error(Z(327));if(t!==null){if(t===e.current)throw Error(Z(177));if(i=t.lanes|t.childLanes,i|=CO,JTt(e,r,i,o,s,l),e===ge&&(Zt=ge=null,$t=0),bh=t,Us=e,Ao=r,BD=i,VD=a,RX=n,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,TAt(N_,function(){return jX(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,t.subtreeFlags&13878||n){n=Rt.T,Rt.T=null,a=ae.p,ae.p=2,o=re,re|=4;try{vAt(e,t,r)}finally{re=o,ae.p=a,Rt.T=n}}ir=1,HX(),UX(),FX()}}function HX(){if(ir===1){ir=0;var e=Us,t=bh,r=(t.flags&13878)!==0;if(t.subtreeFlags&13878||r){r=Rt.T,Rt.T=null;var n=ae.p;ae.p=2;var a=re;re|=4;try{TX(t,e);var i=YD,o=iW(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(o!==s&&s&&s.ownerDocument&&aW(s.ownerDocument.documentElement,s)){if(l!==null&&TO(s)){var u=l.start,f=l.end;if(f===void 0&&(f=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(f,s.value.length);else{var c=s.ownerDocument||document,h=c&&c.defaultView||window;if(h.getSelection){var v=h.getSelection(),d=s.textContent.length,p=Math.min(l.start,d),g=l.end===void 0?p:Math.min(l.end,d);!v.extend&&p>g&&(o=g,g=p,p=o);var y=TV(s,p),m=TV(s,g);if(y&&m&&(v.rangeCount!==1||v.anchorNode!==y.node||v.anchorOffset!==y.offset||v.focusNode!==m.node||v.focusOffset!==m.offset)){var _=c.createRange();_.setStart(y.node,y.offset),v.removeAllRanges(),p>g?(v.addRange(_),v.extend(m.node,m.offset)):(_.setEnd(m.node,m.offset),v.addRange(_))}}}}for(c=[],v=s;v=v.parentNode;)v.nodeType===1&&c.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<c.length;s++){var S=c[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}iS=!!FD,YD=FD=null}finally{re=a,ae.p=n,Rt.T=r}}e.current=t,ir=2}}function UX(){if(ir===2){ir=0;var e=Us,t=bh,r=(t.flags&8772)!==0;if(t.subtreeFlags&8772||r){r=Rt.T,Rt.T=null;var n=ae.p;ae.p=2;var a=re;re|=4;try{_X(e,t.alternate,t)}finally{re=a,ae.p=n,Rt.T=r}}ir=3}}function FX(){if(ir===4||ir===3){ir=0,YTt();var e=Us,t=bh,r=Ao,n=RX;t.subtreeFlags&10256||t.flags&10256?ir=5:(ir=0,bh=Us=null,YX(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Hs=null),yO(r),t=t.stateNode,Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(_g,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=Rt.T,a=ae.p,ae.p=2,Rt.T=null;try{for(var i=e.onRecoverableError,o=0;o<n.length;o++){var s=n[o];i(s.value,{componentStack:s.stack})}}finally{Rt.T=t,ae.p=a}}Ao&3&&I1(),Fi(e),a=e.pendingLanes,r&261930&&a&42?e===GD?Yd++:(Yd=0,GD=e):Yd=0,Mg(0)}}function YX(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tg(t)))}function I1(){return HX(),UX(),FX(),jX()}function jX(){if(ir!==5)return!1;var e=Us,t=BD;BD=0;var r=yO(Ao),n=Rt.T,a=ae.p;try{ae.p=32>r?32:r,Rt.T=null,r=VD,VD=null;var i=Us,o=Ao;if(ir=0,bh=Us=null,Ao=0,re&6)throw Error(Z(331));var s=re;if(re|=4,LX(i.current),AX(i,i.current,o,r),re=s,Mg(0,!1),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(_g,i)}catch{}return!0}finally{ae.p=a,Rt.T=n,YX(e,t)}}function n4(e,t,r){t=sa(r,t),t=ID(e.stateNode,t,2),e=Gs(e,t,2),e!==null&&(bg(e,2),Fi(e))}function ue(e,t,r){if(e.tag===3)n4(e,e,r);else for(;t!==null;){if(t.tag===3){n4(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Hs===null||!Hs.has(n))){e=sa(r,e),r=oX(2),n=Gs(t,r,2),n!==null&&(sX(r,n,t,e),bg(n,2),Fi(n));break}}t=t.return}}function aT(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new gAt;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(QO=!0,a.add(r),e=bAt.bind(null,e,t,r),t.then(e,e))}function bAt(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,ge===e&&($t&r)===r&&(Ne===4||Ne===3&&($t&62914560)===$t&&300>Pn()-E1?!(re&2)&&xh(e,0):JO|=r,Sh===$t&&(Sh=0)),Fi(e)}function WX(e,t){t===0&&(t=zj()),e=_f(e,t),e!==null&&(bg(e,t),Fi(e))}function xAt(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),WX(e,r)}function wAt(e,t){var r=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(Z(314))}n!==null&&n.delete(t),WX(e,r)}function TAt(e,t){return pO(e,t)}var Q_=null,lc=null,HD=!1,J_=!1,iT=!1,Ms=0;function Fi(e){e!==lc&&e.next===null&&(lc===null?Q_=lc=e:lc=lc.next=e),J_=!0,HD||(HD=!0,AAt())}function Mg(e,t){if(!iT&&J_){iT=!0;do for(var r=!1,n=Q_;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var o=n.suspendedLanes,s=n.pingedLanes;i=(1<<31-kn(42|e)+1)-1,i&=a&~(o&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(r=!0,a4(n,i))}else i=$t,i=_1(n,n===ge?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),!(i&3)||Sg(n,i)||(r=!0,a4(n,i));n=n.next}while(r);iT=!1}}function CAt(){XX()}function XX(){J_=HD=!1;var e=0;Ms!==0&&kAt()&&(e=Ms);for(var t=Pn(),r=null,n=Q_;n!==null;){var a=n.next,i=ZX(n,t);i===0?(n.next=null,r===null?Q_=a:r.next=a,a===null&&(lc=r)):(r=n,(e!==0||i&3)&&(J_=!0)),n=a}ir!==0&&ir!==5||Mg(e),Ms!==0&&(Ms=0)}function ZX(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-kn(i),s=1<<o,l=a[o];l===-1?(!(s&r)||s&n)&&(a[o]=QTt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(t=ge,r=$t,r=_1(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,r===0||e===t&&(se===2||se===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Iw(n),e.callbackNode=null,e.callbackPriority=0;if(!(r&3)||Sg(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(n!==null&&Iw(n),yO(r)){case 2:case 8:r=Nj;break;case 32:r=N_;break;case 268435456:r=kj;break;default:r=N_}return n=$X.bind(null,e),r=pO(r,n),e.callbackPriority=t,e.callbackNode=r,t}return n!==null&&n!==null&&Iw(n),e.callbackPriority=2,e.callbackNode=null,2}function $X(e,t){if(ir!==0&&ir!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(I1()&&e.callbackNode!==r)return null;var n=$t;return n=_1(e,e===ge?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(PX(e,n,t),ZX(e,Pn()),e.callbackNode!=null&&e.callbackNode===r?$X.bind(null,e):null)}function a4(e,t){if(I1())return null;PX(e,t,!0)}function AAt(){BAt(function(){re&6?pO(Pj,CAt):XX()})}function eR(){if(Ms===0){var e=yh;e===0&&(e=rm,rm<<=1,!(rm&261888)&&(rm=256)),Ms=e}return Ms}function i4(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ym(""+e)}function o4(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function MAt(e,t,r,n,a){if(t==="submit"&&r&&r.stateNode===a){var i=i4((a[vn]||null).action),o=n.submitter;o&&(t=(t=o[vn]||null)?i4(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var s=new S1("action","action",null,n,a);e.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ms!==0){var l=o?o4(a,o):new FormData(a);OD(r,{pending:!0,data:l,method:a.method,action:i},null,l)}}else typeof i=="function"&&(s.preventDefault(),l=o?o4(a,o):new FormData(a),OD(r,{pending:!0,data:l,method:a.method,action:i},i,l))},currentTarget:a}]})}}for(var oT=0;oT<_D.length;oT++){var sT=_D[oT],DAt=sT.toLowerCase(),LAt=sT[0].toUpperCase()+sT.slice(1);qa(DAt,"on"+LAt)}qa(sW,"onAnimationEnd");qa(lW,"onAnimationIteration");qa(uW,"onAnimationStart");qa("dblclick","onDoubleClick");qa("focusin","onFocus");qa("focusout","onBlur");qa(jCt,"onTransitionRun");qa(WCt,"onTransitionStart");qa(XCt,"onTransitionCancel");qa(fW,"onTransitionEnd");ph("onMouseEnter",["mouseout","mouseover"]);ph("onMouseLeave",["mouseout","mouseover"]);ph("onPointerEnter",["pointerout","pointerover"]);ph("onPointerLeave",["pointerout","pointerover"]);gf("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));gf("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));gf("onBeforeInput",["compositionend","keypress","textInput","paste"]);gf("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));gf("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));gf("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),EAt=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zp));function qX(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;t:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break t;i=s,a.currentTarget=u;try{i(a)}catch(f){z_(f)}a.currentTarget=null,i=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break t;i=s,a.currentTarget=u;try{i(a)}catch(f){z_(f)}a.currentTarget=null,i=l}}}}function Xt(e,t){var r=t[cD];r===void 0&&(r=t[cD]=new Set);var n=e+"__bubble";r.has(n)||(KX(t,e,2,!1),r.add(n))}function lT(e,t,r){var n=0;t&&(n|=4),KX(r,e,n,t)}var hm="_reactListening"+Math.random().toString(36).slice(2);function rR(e){if(!e[hm]){e[hm]=!0,Uj.forEach(function(r){r!=="selectionchange"&&(EAt.has(r)||lT(r,!1,e),lT(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hm]||(t[hm]=!0,lT("selectionchange",!1,t))}}function KX(e,t,r,n){switch(fZ(t)){case 2:var a=aMt;break;case 8:a=iMt;break;default:a=oR}r=a.bind(null,t,r,e),a=void 0,!gD||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function uT(e,t,r,n,a){var i=n;if(!(t&1)&&!(t&2)&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===a)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;s!==null;){if(o=bc(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){n=i=o;continue t}s=s.parentNode}}n=n.return}qj(function(){var u=i,f=SO(r),c=[];t:{var h=cW.get(e);if(h!==void 0){var v=S1,d=e;switch(e){case"keypress":if(Wm(r)===0)break t;case"keydown":case"keyup":v=wCt;break;case"focusin":d="focus",v=Bw;break;case"focusout":d="blur",v=Bw;break;case"beforeblur":case"afterblur":v=Bw;break;case"click":if(r.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=dV;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=cCt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=ACt;break;case sW:case lW:case uW:v=dCt;break;case fW:v=DCt;break;case"scroll":case"scrollend":v=uCt;break;case"wheel":v=ECt;break;case"copy":case"cut":case"paste":v=gCt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=gV;break;case"toggle":case"beforetoggle":v=RCt}var p=(t&4)!==0,g=!p&&(e==="scroll"||e==="scrollend"),y=p?h!==null?h+"Capture":null:h;p=[];for(var m=u,_;m!==null;){var S=m;if(_=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||_===null||y===null||(S=Lp(m,y),S!=null&&p.push(Bp(m,S,_))),g)break;m=m.return}0<p.length&&(h=new v(h,d,null,r,f),c.push({event:h,listeners:p}))}}if(!(t&7)){t:{if(h=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",h&&r!==pD&&(d=r.relatedTarget||r.fromElement)&&(bc(d)||d[tv]))break t;if((v||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,v?(d=r.relatedTarget||r.toElement,v=u,d=d?bc(d):null,d!==null&&(g=mg(d),p=d.tag,d!==g||p!==5&&p!==27&&p!==6)&&(d=null)):(v=null,d=u),v!==d)){if(p=dV,S="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(p=gV,S="onPointerLeave",y="onPointerEnter",m="pointer"),g=v==null?h:ud(v),_=d==null?h:ud(d),h=new p(S,m+"leave",v,r,f),h.target=g,h.relatedTarget=_,S=null,bc(f)===u&&(p=new p(y,m+"enter",d,r,f),p.target=_,p.relatedTarget=g,S=p),g=S,v&&d)e:{for(p=OAt,y=v,m=d,_=0,S=y;S;S=p(S))_++;S=0;for(var b=m;b;b=p(b))S++;for(;0<_-S;)y=p(y),_--;for(;0<S-_;)m=p(m),S--;for(;_--;){if(y===m||m!==null&&y===m.alternate){p=y;break e}y=p(y),m=p(m)}p=null}else p=null;v!==null&&s4(c,h,v,p,!1),d!==null&&g!==null&&s4(c,g,d,p,!0)}}t:{if(h=u?ud(u):window,v=h.nodeName&&h.nodeName.toLowerCase(),v==="select"||v==="input"&&h.type==="file")var x=SV;else if(_V(h))if(rW)x=UCt;else{x=GCt;var w=VCt}else v=h.nodeName,!v||v.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&_O(u.elementType)&&(x=SV):x=HCt;if(x&&(x=x(e,u))){eW(c,x,r,f);break t}w&&w(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&dD(h,"number",h.value)}switch(w=u?ud(u):window,e){case"focusin":(_V(w)||w.contentEditable==="true")&&(Tc=w,yD=u,Nd=null);break;case"focusout":Nd=yD=Tc=null;break;case"mousedown":mD=!0;break;case"contextmenu":case"mouseup":case"dragend":mD=!1,CV(c,r,f);break;case"selectionchange":if(YCt)break;case"keydown":case"keyup":CV(c,r,f)}var T;if(wO)t:{switch(e){case"compositionstart":var C="onCompositionStart";break t;case"compositionend":C="onCompositionEnd";break t;case"compositionupdate":C="onCompositionUpdate";break t}C=void 0}else wc?Jj(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(Qj&&r.locale!=="ko"&&(wc||C!=="onCompositionStart"?C==="onCompositionEnd"&&wc&&(T=Kj()):(Ts=f,bO="value"in Ts?Ts.value:Ts.textContent,wc=!0)),w=tS(u,C),0<w.length&&(C=new pV(C,e,null,r,f),c.push({event:C,listeners:w}),T?C.data=T:(T=tW(r),T!==null&&(C.data=T)))),(T=PCt?NCt(e,r):kCt(e,r))&&(C=tS(u,"onBeforeInput"),0<C.length&&(w=new pV("onBeforeInput","beforeinput",null,r,f),c.push({event:w,listeners:C}),w.data=T)),MAt(c,e,u,r,f)}qX(c,t)})}function Bp(e,t,r){return{instance:e,listener:t,currentTarget:r}}function tS(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Lp(e,r),a!=null&&n.unshift(Bp(e,a,i)),a=Lp(e,t),a!=null&&n.push(Bp(e,a,i))),e.tag===3)return n;e=e.return}return[]}function OAt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function s4(e,t,r,n,a){for(var i=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===n)break;s!==5&&s!==26&&s!==27||u===null||(l=u,a?(u=Lp(r,i),u!=null&&o.unshift(Bp(r,u,l))):a||(u=Lp(r,i),u!=null&&o.push(Bp(r,u,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var RAt=/\r\n?/g,IAt=/\u0000|\uFFFD/g;function l4(e){return(typeof e=="string"?e:""+e).replace(RAt,`
227
+ `).replace(IAt,"")}function QX(e,t){return t=l4(t),l4(e)===t}function ce(e,t,r,n,a,i){switch(r){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||gh(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&gh(e,""+n);break;case"className":im(e,"class",n);break;case"tabIndex":im(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":im(e,r,n);break;case"style":$j(e,n,i);break;case"data":if(t!=="object"){im(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Ym(""+n),e.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(r==="formAction"?(t!=="input"&&ce(e,t,"name",a.name,a,null),ce(e,t,"formEncType",a.formEncType,a,null),ce(e,t,"formMethod",a.formMethod,a,null),ce(e,t,"formTarget",a.formTarget,a,null)):(ce(e,t,"encType",a.encType,a,null),ce(e,t,"method",a.method,a,null),ce(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=Ym(""+n),e.setAttribute(r,n);break;case"onClick":n!=null&&(e.onclick=vo);break;case"onScroll":n!=null&&Xt("scroll",e);break;case"onScrollEnd":n!=null&&Xt("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(Z(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(Z(60));e.innerHTML=r}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}r=Ym(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""+n):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":n===!0?e.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(r,n):e.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(r):e.setAttribute(r,n);break;case"popover":Xt("beforetoggle",e),Xt("toggle",e),Fm(e,"popover",n);break;case"xlinkActuate":$i(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":$i(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":$i(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":$i(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":$i(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":$i(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":$i(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":$i(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":$i(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Fm(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=sCt.get(r)||r,Fm(e,r,n))}}function UD(e,t,r,n,a,i){switch(r){case"style":$j(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(Z(61));if(r=n.__html,r!=null){if(a.children!=null)throw Error(Z(60));e.innerHTML=r}}break;case"children":typeof n=="string"?gh(e,n):(typeof n=="number"||typeof n=="bigint")&&gh(e,""+n);break;case"onScroll":n!=null&&Xt("scroll",e);break;case"onScrollEnd":n!=null&&Xt("scrollend",e);break;case"onClick":n!=null&&(e.onclick=vo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fj.hasOwnProperty(r))t:{if(r[0]==="o"&&r[1]==="n"&&(a=r.endsWith("Capture"),t=r.slice(2,a?r.length-7:void 0),i=e[vn]||null,i=i!=null?i[r]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,n,a);break t}r in e?e[r]=n:n===!0?e.setAttribute(r,""):Fm(e,r,n)}}}function Lr(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xt("error",e),Xt("load",e);var n=!1,a=!1,i;for(i in r)if(r.hasOwnProperty(i)){var o=r[i];if(o!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z(137,t));default:ce(e,t,i,o,r,null)}}a&&ce(e,t,"srcSet",r.srcSet,r,null),n&&ce(e,t,"src",r.src,r,null);return;case"input":Xt("invalid",e);var s=i=o=a=null,l=null,u=null;for(n in r)if(r.hasOwnProperty(n)){var f=r[n];if(f!=null)switch(n){case"name":a=f;break;case"type":o=f;break;case"checked":l=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(Z(137,t));break;default:ce(e,t,n,f,r,null)}}Wj(e,i,s,l,u,o,a,!1);return;case"select":Xt("invalid",e),n=o=i=null;for(a in r)if(r.hasOwnProperty(a)&&(s=r[a],s!=null))switch(a){case"value":i=s;break;case"defaultValue":o=s;break;case"multiple":n=s;default:ce(e,t,a,s,r,null)}t=i,r=o,e.multiple=!!n,t!=null?Gc(e,!!n,t,!1):r!=null&&Gc(e,!!n,r,!0);return;case"textarea":Xt("invalid",e),i=a=n=null;for(o in r)if(r.hasOwnProperty(o)&&(s=r[o],s!=null))switch(o){case"value":n=s;break;case"defaultValue":a=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(Z(91));break;default:ce(e,t,o,s,r,null)}Zj(e,n,a,i);return;case"option":for(l in r)if(r.hasOwnProperty(l)&&(n=r[l],n!=null))switch(l){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ce(e,t,l,n,r,null)}return;case"dialog":Xt("beforetoggle",e),Xt("toggle",e),Xt("cancel",e),Xt("close",e);break;case"iframe":case"object":Xt("load",e);break;case"video":case"audio":for(n=0;n<zp.length;n++)Xt(zp[n],e);break;case"image":Xt("error",e),Xt("load",e);break;case"details":Xt("toggle",e);break;case"embed":case"source":case"link":Xt("error",e),Xt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in r)if(r.hasOwnProperty(u)&&(n=r[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(Z(137,t));default:ce(e,t,u,n,r,null)}return;default:if(_O(t)){for(f in r)r.hasOwnProperty(f)&&(n=r[f],n!==void 0&&UD(e,t,f,n,r,void 0));return}}for(s in r)r.hasOwnProperty(s)&&(n=r[s],n!=null&&ce(e,t,s,n,r,null))}function PAt(e,t,r,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,s=null,l=null,u=null,f=null;for(v in r){var c=r[v];if(r.hasOwnProperty(v)&&c!=null)switch(v){case"checked":break;case"value":break;case"defaultValue":l=c;default:n.hasOwnProperty(v)||ce(e,t,v,null,n,c)}}for(var h in n){var v=n[h];if(c=r[h],n.hasOwnProperty(h)&&(v!=null||c!=null))switch(h){case"type":i=v;break;case"name":a=v;break;case"checked":u=v;break;case"defaultChecked":f=v;break;case"value":o=v;break;case"defaultValue":s=v;break;case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(Z(137,t));break;default:v!==c&&ce(e,t,h,v,n,c)}}vD(e,o,s,l,u,f,i,a);return;case"select":v=o=s=h=null;for(i in r)if(l=r[i],r.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":v=l;default:n.hasOwnProperty(i)||ce(e,t,i,null,n,l)}for(a in n)if(i=n[a],l=r[a],n.hasOwnProperty(a)&&(i!=null||l!=null))switch(a){case"value":h=i;break;case"defaultValue":s=i;break;case"multiple":o=i;default:i!==l&&ce(e,t,a,i,n,l)}t=s,r=o,n=v,h!=null?Gc(e,!!r,h,!1):!!n!=!!r&&(t!=null?Gc(e,!!r,t,!0):Gc(e,!!r,r?[]:"",!1));return;case"textarea":v=h=null;for(s in r)if(a=r[s],r.hasOwnProperty(s)&&a!=null&&!n.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:ce(e,t,s,null,n,a)}for(o in n)if(a=n[o],i=r[o],n.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":h=a;break;case"defaultValue":v=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(Z(91));break;default:a!==i&&ce(e,t,o,a,n,i)}Xj(e,h,v);return;case"option":for(var d in r)if(h=r[d],r.hasOwnProperty(d)&&h!=null&&!n.hasOwnProperty(d))switch(d){case"selected":e.selected=!1;break;default:ce(e,t,d,null,n,h)}for(l in n)if(h=n[l],v=r[l],n.hasOwnProperty(l)&&h!==v&&(h!=null||v!=null))switch(l){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ce(e,t,l,h,n,v)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var p in r)h=r[p],r.hasOwnProperty(p)&&h!=null&&!n.hasOwnProperty(p)&&ce(e,t,p,null,n,h);for(u in n)if(h=n[u],v=r[u],n.hasOwnProperty(u)&&h!==v&&(h!=null||v!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(Z(137,t));break;default:ce(e,t,u,h,n,v)}return;default:if(_O(t)){for(var g in r)h=r[g],r.hasOwnProperty(g)&&h!==void 0&&!n.hasOwnProperty(g)&&UD(e,t,g,void 0,n,h);for(f in n)h=n[f],v=r[f],!n.hasOwnProperty(f)||h===v||h===void 0&&v===void 0||UD(e,t,f,h,n,v);return}}for(var y in r)h=r[y],r.hasOwnProperty(y)&&h!=null&&!n.hasOwnProperty(y)&&ce(e,t,y,null,n,h);for(c in n)h=n[c],v=r[c],!n.hasOwnProperty(c)||h===v||h==null&&v==null||ce(e,t,c,h,n,v)}function u4(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function NAt(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),n=0;n<r.length;n++){var a=r[n],i=a.transferSize,o=a.initiatorType,s=a.duration;if(i&&s&&u4(o)){for(o=0,s=a.responseEnd,n+=1;n<r.length;n++){var l=r[n],u=l.startTime;if(u>s)break;var f=l.transferSize,c=l.initiatorType;f&&u4(c)&&(l=l.responseEnd,o+=f*(l<s?1:(s-u)/(l-u)))}if(--n,t+=8*(i+o)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var FD=null,YD=null;function eS(e){return e.nodeType===9?e:e.ownerDocument}function f4(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function JX(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function jD(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fT=null;function kAt(){var e=window.event;return e&&e.type==="popstate"?e===fT?!1:(fT=e,!0):(fT=null,!1)}var tZ=typeof setTimeout=="function"?setTimeout:void 0,zAt=typeof clearTimeout=="function"?clearTimeout:void 0,c4=typeof Promise=="function"?Promise:void 0,BAt=typeof queueMicrotask=="function"?queueMicrotask:typeof c4<"u"?function(e){return c4.resolve(null).then(e).catch(VAt)}:tZ;function VAt(e){setTimeout(function(){throw e})}function pl(e){return e==="head"}function h4(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"||r==="/&"){if(n===0){e.removeChild(a),Th(t);return}n--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")n++;else if(r==="html")jd(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,jd(r);for(var i=r.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[xg]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||r.removeChild(i),i=o}}else r==="body"&&jd(e.ownerDocument.body);r=a}while(r);Th(t)}function v4(e,t){var r=e;e=0;do{var n=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=n}while(r)}function WD(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":WD(r),mO(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function GAt(e,t,r,n){for(;e.nodeType===1;){var a=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[xg])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=da(e.nextSibling),e===null)break}return null}function HAt(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=da(e.nextSibling),e===null))return null;return e}function eZ(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=da(e.nextSibling),e===null))return null;return e}function XD(e){return e.data==="$?"||e.data==="$~"}function ZD(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function UAt(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function da(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var $D=null;function d4(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return da(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function p4(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function rZ(e,t,r){switch(t=eS(r),e){case"html":if(e=t.documentElement,!e)throw Error(Z(452));return e;case"head":if(e=t.head,!e)throw Error(Z(453));return e;case"body":if(e=t.body,!e)throw Error(Z(454));return e;default:throw Error(Z(451))}}function jd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mO(e)}var _a=new Map,g4=new Set;function rS(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Xo=ae.d;ae.d={f:FAt,r:YAt,D:jAt,C:WAt,L:XAt,m:ZAt,X:qAt,S:$At,M:KAt};function FAt(){var e=Xo.f(),t=O1();return e||t}function YAt(e){var t=ev(e);t!==null&&t.tag===5&&t.type==="form"?$W(t):Xo.r(e)}var iv=typeof document>"u"?null:document;function nZ(e,t,r){var n=iv;if(n&&typeof t=="string"&&t){var a=oa(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof r=="string"&&(a+='[crossorigin="'+r+'"]'),g4.has(a)||(g4.add(a),e={rel:e,crossOrigin:r,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),Lr(t,"link",e),gr(t),n.head.appendChild(t)))}}function jAt(e){Xo.D(e),nZ("dns-prefetch",e,null)}function WAt(e,t){Xo.C(e,t),nZ("preconnect",e,t)}function XAt(e,t,r){Xo.L(e,t,r);var n=iv;if(n&&e&&t){var a='link[rel="preload"][as="'+oa(t)+'"]';t==="image"&&r&&r.imageSrcSet?(a+='[imagesrcset="'+oa(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(a+='[imagesizes="'+oa(r.imageSizes)+'"]')):a+='[href="'+oa(e)+'"]';var i=a;switch(t){case"style":i=wh(e);break;case"script":i=ov(e)}_a.has(i)||(e=Ce({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),_a.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Dg(i))||t==="script"&&n.querySelector(Lg(i))||(t=n.createElement("link"),Lr(t,"link",e),gr(t),n.head.appendChild(t)))}}function ZAt(e,t){Xo.m(e,t);var r=iv;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+oa(n)+'"][href="'+oa(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ov(e)}if(!_a.has(i)&&(e=Ce({rel:"modulepreload",href:e},t),_a.set(i,e),r.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Lg(i)))return}n=r.createElement("link"),Lr(n,"link",e),gr(n),r.head.appendChild(n)}}}function $At(e,t,r){Xo.S(e,t,r);var n=iv;if(n&&e){var a=Vc(n).hoistableStyles,i=wh(e);t=t||"default";var o=a.get(i);if(!o){var s={loading:0,preload:null};if(o=n.querySelector(Dg(i)))s.loading=5;else{e=Ce({rel:"stylesheet",href:e,"data-precedence":t},r),(r=_a.get(i))&&nR(e,r);var l=o=n.createElement("link");gr(l),Lr(l,"link",e),l._p=new Promise(function(u,f){l.onload=u,l.onerror=f}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,t0(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:s},a.set(i,o)}}}function qAt(e,t){Xo.X(e,t);var r=iv;if(r&&e){var n=Vc(r).hoistableScripts,a=ov(e),i=n.get(a);i||(i=r.querySelector(Lg(a)),i||(e=Ce({src:e,async:!0},t),(t=_a.get(a))&&aR(e,t),i=r.createElement("script"),gr(i),Lr(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function KAt(e,t){Xo.M(e,t);var r=iv;if(r&&e){var n=Vc(r).hoistableScripts,a=ov(e),i=n.get(a);i||(i=r.querySelector(Lg(a)),i||(e=Ce({src:e,async:!0,type:"module"},t),(t=_a.get(a))&&aR(e,t),i=r.createElement("script"),gr(i),Lr(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function y4(e,t,r,n){var a=(a=zs.current)?rS(a):null;if(!a)throw Error(Z(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=wh(r.href),r=Vc(a).hoistableStyles,n=r.get(t),n||(n={type:"style",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=wh(r.href);var i=Vc(a).hoistableStyles,o=i.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=a.querySelector(Dg(e)))&&!i._p&&(o.instance=i,o.state.loading=5),_a.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},_a.set(e,r),i||QAt(a,e,r,o.state))),t&&n===null)throw Error(Z(528,""));return o}if(t&&n!==null)throw Error(Z(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ov(r),r=Vc(a).hoistableScripts,n=r.get(t),n||(n={type:"script",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(Z(444,e))}}function wh(e){return'href="'+oa(e)+'"'}function Dg(e){return'link[rel="stylesheet"]['+e+"]"}function aZ(e){return Ce({},e,{"data-precedence":e.precedence,precedence:null})}function QAt(e,t,r,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),Lr(t,"link",r),gr(t),e.head.appendChild(t))}function ov(e){return'[src="'+oa(e)+'"]'}function Lg(e){return"script[async]"+e}function m4(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+oa(r.href)+'"]');if(n)return t.instance=n,gr(n),n;var a=Ce({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),gr(n),Lr(n,"style",a),t0(n,r.precedence,e),t.instance=n;case"stylesheet":a=wh(r.href);var i=e.querySelector(Dg(a));if(i)return t.state.loading|=4,t.instance=i,gr(i),i;n=aZ(r),(a=_a.get(a))&&nR(n,a),i=(e.ownerDocument||e).createElement("link"),gr(i);var o=i;return o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Lr(i,"link",n),t.state.loading|=4,t0(i,r.precedence,e),t.instance=i;case"script":return i=ov(r.src),(a=e.querySelector(Lg(i)))?(t.instance=a,gr(a),a):(n=r,(a=_a.get(i))&&(n=Ce({},r),aR(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),gr(a),Lr(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(Z(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(n=t.instance,t.state.loading|=4,t0(n,r.precedence,e));return t.instance}function t0(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,o=0;o<n.length;o++){var s=n[o];if(s.dataset.precedence===t)i=s;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function nR(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function aR(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var e0=null;function _4(e,t,r){if(e0===null){var n=new Map,a=e0=new Map;a.set(r,n)}else a=e0,n=a.get(r),n||(n=new Map,a.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),a=0;a<r.length;a++){var i=r[a];if(!(i[xg]||i[Cr]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var s=n.get(o);s?s.push(i):n.set(o,[i])}}return n}function S4(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function JAt(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function iZ(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function tMt(e,t,r,n){if(r.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(r.state.loading&4)){if(r.instance===null){var a=wh(n.href),i=t.querySelector(Dg(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=nS.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=i,gr(i);return}i=t.ownerDocument||t,n=aZ(n),(a=_a.get(a))&&nR(n,a),i=i.createElement("link"),gr(i);var o=i;o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Lr(i,"link",n),r.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&!(r.state.loading&3)&&(e.count++,r=nS.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var cT=0;function eMt(e,t){return e.stylesheets&&e.count===0&&r0(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var n=setTimeout(function(){if(e.stylesheets&&r0(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&cT===0&&(cT=62500*NAt());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&r0(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>cT?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function nS(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)r0(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var aS=null;function r0(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,aS=new Map,t.forEach(rMt,e),aS=null,nS.call(e))}function rMt(e,t){if(!(t.state.loading&4)){var r=aS.get(e);if(r)var n=r.get(null);else{r=new Map,aS.set(e,r);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(r.set(o.dataset.precedence,o),n=o)}n&&r.set(null,n)}a=t.instance,o=a.getAttribute("data-precedence"),i=r.get(o)||n,i===n&&r.set(null,a),r.set(o,a),this.count++,n=nS.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Vp={$$typeof:ho,Provider:null,Consumer:null,_currentValue:bu,_currentValue2:bu,_threadCount:0};function nMt(e,t,r,n,a,i,o,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pw(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pw(0),this.hiddenUpdates=Pw(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function oZ(e,t,r,n,a,i,o,s,l,u,f,c){return e=new nMt(e,t,r,o,l,u,f,c,s),t=1,i===!0&&(t|=24),i=An(3,null,null,t),e.current=i,i.stateNode=e,t=EO(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:r,cache:t},IO(i),e}function sZ(e){return e?(e=Mc,e):Mc}function lZ(e,t,r,n,a,i){a=sZ(a),n.context===null?n.context=a:n.pendingContext=a,n=Vs(t),n.payload={element:r},i=i===void 0?null:i,i!==null&&(n.callback=i),r=Gs(e,n,t),r!==null&&(fn(r,e,t),zd(r,e,t))}function b4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function iR(e,t){b4(e,t),(e=e.alternate)&&b4(e,t)}function uZ(e){if(e.tag===13||e.tag===31){var t=_f(e,67108864);t!==null&&fn(t,e,67108864),iR(e,67108864)}}function x4(e){if(e.tag===13||e.tag===31){var t=zn();t=gO(t);var r=_f(e,t);r!==null&&fn(r,e,t),iR(e,t)}}var iS=!0;function aMt(e,t,r,n){var a=Rt.T;Rt.T=null;var i=ae.p;try{ae.p=2,oR(e,t,r,n)}finally{ae.p=i,Rt.T=a}}function iMt(e,t,r,n){var a=Rt.T;Rt.T=null;var i=ae.p;try{ae.p=8,oR(e,t,r,n)}finally{ae.p=i,Rt.T=a}}function oR(e,t,r,n){if(iS){var a=qD(n);if(a===null)uT(e,t,n,oS,r),w4(e,n);else if(sMt(a,e,t,r,n))n.stopPropagation();else if(w4(e,n),t&4&&-1<oMt.indexOf(e)){for(;a!==null;){var i=ev(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=Kl(i.pendingLanes);if(o!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-kn(o);s.entanglements[1]|=l,o&=~l}Fi(i),!(re&6)&&($_=Pn()+500,Mg(0))}}break;case 31:case 13:s=_f(i,2),s!==null&&fn(s,i,2),O1(),iR(i,2)}if(i=qD(n),i===null&&uT(e,t,n,oS,r),i===a)break;a=i}a!==null&&n.stopPropagation()}else uT(e,t,n,null,r)}}function qD(e){return e=SO(e),sR(e)}var oS=null;function sR(e){if(oS=null,e=bc(e),e!==null){var t=mg(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=Lj(t),e!==null)return e;e=null}else if(r===31){if(e=Ej(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return oS=e,null}function fZ(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(jTt()){case Pj:return 2;case Nj:return 8;case N_:case WTt:return 32;case kj:return 268435456;default:return 32}default:return 32}}var KD=!1,Fs=null,Ys=null,js=null,Gp=new Map,Hp=new Map,ds=[],oMt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function w4(e,t){switch(e){case"focusin":case"focusout":Fs=null;break;case"dragenter":case"dragleave":Ys=null;break;case"mouseover":case"mouseout":js=null;break;case"pointerover":case"pointerout":Gp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hp.delete(t.pointerId)}}function Wv(e,t,r,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=ev(t),t!==null&&uZ(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function sMt(e,t,r,n,a){switch(t){case"focusin":return Fs=Wv(Fs,e,t,r,n,a),!0;case"dragenter":return Ys=Wv(Ys,e,t,r,n,a),!0;case"mouseover":return js=Wv(js,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return Gp.set(i,Wv(Gp.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Hp.set(i,Wv(Hp.get(i)||null,e,t,r,n,a)),!0}return!1}function cZ(e){var t=bc(e.target);if(t!==null){var r=mg(t);if(r!==null){if(t=r.tag,t===13){if(t=Lj(r),t!==null){e.blockedOn=t,sV(e.priority,function(){x4(r)});return}}else if(t===31){if(t=Ej(r),t!==null){e.blockedOn=t,sV(e.priority,function(){x4(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function n0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=qD(e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);pD=n,r.target.dispatchEvent(n),pD=null}else return t=ev(r),t!==null&&uZ(t),e.blockedOn=r,!1;t.shift()}return!0}function T4(e,t,r){n0(e)&&r.delete(t)}function lMt(){KD=!1,Fs!==null&&n0(Fs)&&(Fs=null),Ys!==null&&n0(Ys)&&(Ys=null),js!==null&&n0(js)&&(js=null),Gp.forEach(T4),Hp.forEach(T4)}function vm(e,t){e.blockedOn===t&&(e.blockedOn=null,KD||(KD=!0,fr.unstable_scheduleCallback(fr.unstable_NormalPriority,lMt)))}var dm=null;function C4(e){dm!==e&&(dm=e,fr.unstable_scheduleCallback(fr.unstable_NormalPriority,function(){dm===e&&(dm=null);for(var t=0;t<e.length;t+=3){var r=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(sR(n||r)===null)continue;break}var i=ev(r);i!==null&&(e.splice(t,3),t-=3,OD(i,{pending:!0,data:a,method:r.method,action:n},n,a))}}))}function Th(e){function t(l){return vm(l,e)}Fs!==null&&vm(Fs,e),Ys!==null&&vm(Ys,e),js!==null&&vm(js,e),Gp.forEach(t),Hp.forEach(t);for(var r=0;r<ds.length;r++){var n=ds[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<ds.length&&(r=ds[0],r.blockedOn===null);)cZ(r),r.blockedOn===null&&ds.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var a=r[n],i=r[n+1],o=a[vn]||null;if(typeof i=="function")o||C4(r);else if(o){var s=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[vn]||null)s=o.formAction;else if(sR(a)!==null)continue}else s=o.action;typeof s=="function"?r[n+1]=s:(r.splice(n,3),n-=3),C4(r)}}}function hZ(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(r,20)}function r(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function lR(e){this._internalRoot=e}P1.prototype.render=lR.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Z(409));var r=t.current,n=zn();lZ(r,n,e,t,null,null)};P1.prototype.unmount=lR.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lZ(e.current,2,null,e,null,null),O1(),t[tv]=null}};function P1(e){this._internalRoot=e}P1.prototype.unstable_scheduleHydration=function(e){if(e){var t=Hj();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ds.length&&t!==0&&t<ds[r].priority;r++);ds.splice(r,0,e),r===0&&cZ(e)}};var A4=Mj.version;if(A4!=="19.2.4")throw Error(Z(527,A4,"19.2.4"));ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Z(188)):(e=Object.keys(e).join(","),Error(Z(268,e)));return e=BTt(t),e=e!==null?Oj(e):null,e=e===null?null:e.stateNode,e};var uMt={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Rt,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pm.isDisabled&&pm.supportsFiber)try{_g=pm.inject(uMt),Nn=pm}catch{}}m1.createRoot=function(e,t){if(!Dj(e))throw Error(Z(299));var r=!1,n="",a=nX,i=aX,o=iX;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=oZ(e,1,!1,null,null,r,n,null,a,i,o,hZ),e[tv]=t.current,rR(e),new lR(t)};m1.hydrateRoot=function(e,t,r){if(!Dj(e))throw Error(Z(299));var n=!1,a="",i=nX,o=aX,s=iX,l=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onUncaughtError!==void 0&&(i=r.onUncaughtError),r.onCaughtError!==void 0&&(o=r.onCaughtError),r.onRecoverableError!==void 0&&(s=r.onRecoverableError),r.formState!==void 0&&(l=r.formState)),t=oZ(e,1,!0,t,r??null,n,a,l,i,o,s,hZ),t.context=sZ(null),r=t.current,n=zn(),n=gO(n),a=Vs(n),a.callback=null,Gs(r,a,n),r=n,t.current.lanes=r,bg(t,r),Fi(t),e[tv]=t.current,rR(e),new P1(t)};m1.version="19.2.4";function vZ(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vZ)}catch(e){console.error(e)}}vZ(),Tj.exports=m1;var fMt=Tj.exports;const cMt="Refresh",hMt="input tokens",vMt="output tokens",dMt="total tokens",pMt="sessions",gMt={refresh:cMt,inputTokens:hMt,outputTokens:vMt,totalTokens:dMt,sessionCount:pMt},yMt="刷新",mMt="输入 token",_Mt="输出 token",SMt="总 token",bMt="会话数",xMt={refresh:yMt,inputTokens:mMt,outputTokens:_Mt,totalTokens:SMt,sessionCount:bMt};Ur.use(OK).init({resources:{"en-US":{translation:gMt},"zh-CN":{translation:xMt}},lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});function wMt(){const e=document.getElementById("app");fMt.createRoot(e).render(W.jsx(NTt,{}))}(async function(){const e=await tinker.getLanguage();Ur.changeLanguage(e),wMt()})();