agent-starter-pack 0.0.3b0__py3-none-any.whl → 0.0.5b0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of agent-starter-pack might be problematic. Click here for more details.

@@ -1,264 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--
3
- Copyright 2025 Google LLC
4
-
5
- Licensed under the Apache License, Version 2.0 (the "License");
6
- you may not use this file except in compliance with the License.
7
- You may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software
12
- distributed under the License is distributed on an "AS IS" BASIS,
13
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- See the License for the specific language governing permissions and
15
- limitations under the License.
16
- -->
17
-
18
- <html lang="en">
19
-
20
- <head>
21
- <meta charset="utf-8" />
22
- <link rel="icon" href="./assets/favicon.ico" />
23
- <meta name="viewport" content="width=device-width, initial-scale=1" />
24
- <meta name="theme-color" content="#000000" />
25
-
26
- <title>Locust</title>
27
- <script type="module" crossorigin>function UW(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function ym(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jW(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Bz={exports:{}},mm={},Fz={exports:{}},je={};/**
28
- * @license React
29
- * react.production.min.js
30
- *
31
- * Copyright (c) Facebook, Inc. and its 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 Gd=Symbol.for("react.element"),YW=Symbol.for("react.portal"),XW=Symbol.for("react.fragment"),ZW=Symbol.for("react.strict_mode"),KW=Symbol.for("react.profiler"),qW=Symbol.for("react.provider"),QW=Symbol.for("react.context"),JW=Symbol.for("react.forward_ref"),e8=Symbol.for("react.suspense"),t8=Symbol.for("react.memo"),r8=Symbol.for("react.lazy"),DM=Symbol.iterator;function n8(e){return e===null||typeof e!="object"?null:(e=DM&&e[DM]||e["@@iterator"],typeof e=="function"?e:null)}var Vz={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gz=Object.assign,$z={};function zc(e,t,r){this.props=e,this.context=t,this.refs=$z,this.updater=r||Vz}zc.prototype.isReactComponent={};zc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};zc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hz(){}Hz.prototype=zc.prototype;function RC(e,t,r){this.props=e,this.context=t,this.refs=$z,this.updater=r||Vz}var OC=RC.prototype=new Hz;OC.constructor=RC;Gz(OC,zc.prototype);OC.isPureReactComponent=!0;var kM=Array.isArray,Wz=Object.prototype.hasOwnProperty,NC={current:null},Uz={key:!0,ref:!0,__self:!0,__source:!0};function jz(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Wz.call(t,n)&&!Uz.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Gd,type:e,key:a,ref:o,props:i,_owner:NC.current}}function i8(e,t){return{$$typeof:Gd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gd}function a8(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var PM=/\/+/g;function t1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?a8(""+e.key):t.toString(36)}function Zv(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Gd:case YW:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+t1(o,0):n,kM(i)?(r="",e!=null&&(r=e.replace(PM,"$&/")+"/"),Zv(i,t,r,"",function(u){return u})):i!=null&&(zC(i)&&(i=i8(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(PM,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",kM(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+t1(a,s);o+=Zv(a,t,r,l,i)}else if(l=n8(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+t1(a,s++),o+=Zv(a,t,r,l,i);else if(a==="object")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 Sp(e,t,r){if(e==null)return e;var n=[],i=0;return Zv(e,n,"","",function(a){return t.call(r,a,i++)}),n}function o8(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 jr={current:null},Kv={transition:null},s8={ReactCurrentDispatcher:jr,ReactCurrentBatchConfig:Kv,ReactCurrentOwner:NC};function Yz(){throw Error("act(...) is not supported in production builds of React.")}je.Children={map:Sp,forEach:function(e,t,r){Sp(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Sp(e,function(){t++}),t},toArray:function(e){return Sp(e,function(t){return t})||[]},only:function(e){if(!zC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};je.Component=zc;je.Fragment=XW;je.Profiler=KW;je.PureComponent=RC;je.StrictMode=ZW;je.Suspense=e8;je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s8;je.act=Yz;je.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Gz({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=NC.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Wz.call(t,l)&&!Uz.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Gd,type:e.type,key:i,ref:a,props:n,_owner:o}};je.createContext=function(e){return e={$$typeof:QW,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:qW,_context:e},e.Consumer=e};je.createElement=jz;je.createFactory=function(e){var t=jz.bind(null,e);return t.type=e,t};je.createRef=function(){return{current:null}};je.forwardRef=function(e){return{$$typeof:JW,render:e}};je.isValidElement=zC;je.lazy=function(e){return{$$typeof:r8,_payload:{_status:-1,_result:e},_init:o8}};je.memo=function(e,t){return{$$typeof:t8,type:e,compare:t===void 0?null:t}};je.startTransition=function(e){var t=Kv.transition;Kv.transition={};try{e()}finally{Kv.transition=t}};je.unstable_act=Yz;je.useCallback=function(e,t){return jr.current.useCallback(e,t)};je.useContext=function(e){return jr.current.useContext(e)};je.useDebugValue=function(){};je.useDeferredValue=function(e){return jr.current.useDeferredValue(e)};je.useEffect=function(e,t){return jr.current.useEffect(e,t)};je.useId=function(){return jr.current.useId()};je.useImperativeHandle=function(e,t,r){return jr.current.useImperativeHandle(e,t,r)};je.useInsertionEffect=function(e,t){return jr.current.useInsertionEffect(e,t)};je.useLayoutEffect=function(e,t){return jr.current.useLayoutEffect(e,t)};je.useMemo=function(e,t){return jr.current.useMemo(e,t)};je.useReducer=function(e,t,r){return jr.current.useReducer(e,t,r)};je.useRef=function(e){return jr.current.useRef(e)};je.useState=function(e){return jr.current.useState(e)};je.useSyncExternalStore=function(e,t,r){return jr.current.useSyncExternalStore(e,t,r)};je.useTransition=function(){return jr.current.useTransition()};je.version="18.3.1";Fz.exports=je;var F=Fz.exports;const bi=ym(F),$h=UW({__proto__:null,default:bi},[F]);/**
36
- * @license React
37
- * react-jsx-runtime.production.min.js
38
- *
39
- * Copyright (c) Facebook, Inc. and its affiliates.
40
- *
41
- * This source code is licensed under the MIT license found in the
42
- * LICENSE file in the root directory of this source tree.
43
- */var l8=F,u8=Symbol.for("react.element"),c8=Symbol.for("react.fragment"),f8=Object.prototype.hasOwnProperty,h8=l8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d8={key:!0,ref:!0,__self:!0,__source:!0};function Xz(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)f8.call(t,n)&&!d8.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:u8,type:e,key:a,ref:o,props:i,_owner:h8.current}}mm.Fragment=c8;mm.jsx=Xz;mm.jsxs=Xz;Bz.exports=mm;var H=Bz.exports,wS={},Zz={exports:{}},Ln={},Kz={exports:{}},qz={};/**
44
- * @license React
45
- * scheduler.production.min.js
46
- *
47
- * Copyright (c) Facebook, Inc. and its affiliates.
48
- *
49
- * This source code is licensed under the MIT license found in the
50
- * LICENSE file in the root directory of this source tree.
51
- */(function(e){function t(O,B){var I=O.length;O.push(B);e:for(;0<I;){var G=I-1>>>1,U=O[G];if(0<i(U,B))O[G]=B,O[I]=U,I=G;else break e}}function r(O){return O.length===0?null:O[0]}function n(O){if(O.length===0)return null;var B=O[0],I=O.pop();if(I!==B){O[0]=I;e:for(var G=0,U=O.length,N=U>>>1;G<N;){var Z=2*(G+1)-1,oe=O[Z],te=Z+1,fe=O[te];if(0>i(oe,I))te<U&&0>i(fe,oe)?(O[G]=fe,O[te]=I,G=te):(O[G]=oe,O[Z]=I,G=Z);else if(te<U&&0>i(fe,I))O[G]=fe,O[te]=I,G=te;else break e}}return B}function i(O,B){var I=O.sortIndex-B.sortIndex;return I!==0?I:O.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,h=3,d=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(O){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=O)n(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=r(u)}}function x(O){if(v=!1,_(O),!p)if(r(l)!==null)p=!0,R(w);else{var B=r(u);B!==null&&z(x,B.startTime-O)}}function w(O,B){p=!1,v&&(v=!1,y(C),C=-1),d=!0;var I=h;try{for(_(B),f=r(l);f!==null&&(!(f.expirationTime>B)||O&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,h=f.priorityLevel;var U=G(f.expirationTime<=B);B=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(l)&&n(l),_(B)}else n(l);f=r(l)}if(f!==null)var N=!0;else{var Z=r(u);Z!==null&&z(x,Z.startTime-B),N=!1}return N}finally{f=null,h=I,d=!1}}var S=!1,b=null,C=-1,T=5,A=-1;function M(){return!(e.unstable_now()-A<T)}function k(){if(b!==null){var O=e.unstable_now();A=O;var B=!0;try{B=b(!0,O)}finally{B?P():(S=!1,b=null)}}else S=!1}var P;if(typeof m=="function")P=function(){m(k)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,E=L.port2;L.port1.onmessage=k,P=function(){E.postMessage(null)}}else P=function(){g(k,0)};function R(O){b=O,S||(S=!0,P())}function z(O,B){C=g(function(){O(e.unstable_now())},B)}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_continueExecution=function(){p||d||(p=!0,R(w))},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_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(O){switch(h){case 1:case 2:case 3:var B=3;break;default:B=h}var I=h;h=B;try{return O()}finally{h=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var I=h;h=O;try{return B()}finally{h=I}},e.unstable_scheduleCallback=function(O,B,I){var G=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?G+I:G):I=G,O){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=I+U,O={id:c++,callback:B,priorityLevel:O,startTime:I,expirationTime:U,sortIndex:-1},I>G?(O.sortIndex=I,t(u,O),r(l)===null&&O===r(u)&&(v?(y(C),C=-1):v=!0,z(x,I-G))):(O.sortIndex=U,t(l,O),p||d||(p=!0,R(w))),O},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(O){var B=h;return function(){var I=h;h=B;try{return O.apply(this,arguments)}finally{h=I}}}})(qz);Kz.exports=qz;var p8=Kz.exports;/**
52
- * @license React
53
- * react-dom.production.min.js
54
- *
55
- * Copyright (c) Facebook, Inc. and its affiliates.
56
- *
57
- * This source code is licensed under the MIT license found in the
58
- * LICENSE file in the root directory of this source tree.
59
- */var v8=F,Pn=p8;function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;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."}var Qz=new Set,Hh={};function Vl(e,t){dc(e,t),dc(e+"Capture",t)}function dc(e,t){for(Hh[e]=t,e=0;e<t.length;e++)Qz.add(t[e])}var Ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bS=Object.prototype.hasOwnProperty,g8=/^[: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]*$/,IM={},EM={};function y8(e){return bS.call(EM,e)?!0:bS.call(IM,e)?!1:g8.test(e)?EM[e]=!0:(IM[e]=!0,!1)}function m8(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _8(e,t,r,n){if(t===null||typeof t>"u"||m8(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Yr(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var mr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mr[e]=new Yr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];mr[t]=new Yr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){mr[e]=new Yr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mr[e]=new Yr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){mr[e]=new Yr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){mr[e]=new Yr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){mr[e]=new Yr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){mr[e]=new Yr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){mr[e]=new Yr(e,5,!1,e.toLowerCase(),null,!1,!1)});var BC=/[\-:]([a-z])/g;function FC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(BC,FC);mr[t]=new Yr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(BC,FC);mr[t]=new Yr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(BC,FC);mr[t]=new Yr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){mr[e]=new Yr(e,1,!1,e.toLowerCase(),null,!1,!1)});mr.xlinkHref=new Yr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){mr[e]=new Yr(e,1,!1,e.toLowerCase(),null,!0,!0)});function VC(e,t,r,n){var i=mr.hasOwnProperty(t)?mr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_8(t,r,i,n)&&(r=null),n||i===null?y8(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var ro=v8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,wp=Symbol.for("react.element"),Ru=Symbol.for("react.portal"),Ou=Symbol.for("react.fragment"),GC=Symbol.for("react.strict_mode"),CS=Symbol.for("react.profiler"),Jz=Symbol.for("react.provider"),e5=Symbol.for("react.context"),$C=Symbol.for("react.forward_ref"),TS=Symbol.for("react.suspense"),AS=Symbol.for("react.suspense_list"),HC=Symbol.for("react.memo"),xo=Symbol.for("react.lazy"),t5=Symbol.for("react.offscreen"),LM=Symbol.iterator;function lf(e){return e===null||typeof e!="object"?null:(e=LM&&e[LM]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Object.assign,r1;function Zf(e){if(r1===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);r1=t&&t[1]||""}return`
60
- `+r1+e}var n1=!1;function i1(e,t){if(!e||n1)return"";n1=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
61
- `),a=n.stack.split(`
62
- `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=`
63
- `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{n1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Zf(e):""}function x8(e){switch(e.tag){case 5:return Zf(e.type);case 16:return Zf("Lazy");case 13:return Zf("Suspense");case 19:return Zf("SuspenseList");case 0:case 2:case 15:return e=i1(e.type,!1),e;case 11:return e=i1(e.type.render,!1),e;case 1:return e=i1(e.type,!0),e;default:return""}}function MS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ou:return"Fragment";case Ru:return"Portal";case CS:return"Profiler";case GC:return"StrictMode";case TS:return"Suspense";case AS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case e5:return(e.displayName||"Context")+".Consumer";case Jz:return(e._context.displayName||"Context")+".Provider";case $C:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case HC:return t=e.displayName||null,t!==null?t:MS(e.type)||"Memo";case xo:t=e._payload,e=e._init;try{return MS(e(t))}catch{}}return null}function S8(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return MS(t);case 8:return t===GC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function r5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function w8(e){var t=r5(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bp(e){e._valueTracker||(e._valueTracker=w8(e))}function n5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=r5(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Rg(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}}function DS(e,t){var r=t.checked;return Dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function RM(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Zo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function i5(e,t){t=t.checked,t!=null&&VC(e,"checked",t,!1)}function kS(e,t){i5(e,t);var r=Zo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?PS(e,t.type,r):t.hasOwnProperty("defaultValue")&&PS(e,t.type,Zo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function OM(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function PS(e,t,r){(t!=="number"||Rg(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Kf=Array.isArray;function Ku(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Zo(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function IS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Q(91));return Dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function NM(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Q(92));if(Kf(r)){if(1<r.length)throw Error(Q(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Zo(r)}}function a5(e,t){var r=Zo(t.value),n=Zo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function zM(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function o5(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ES(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?o5(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Cp,s5=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Cp=Cp||document.createElement("div"),Cp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Cp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ph={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},b8=["Webkit","ms","Moz","O"];Object.keys(ph).forEach(function(e){b8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ph[t]=ph[e]})});function l5(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ph.hasOwnProperty(e)&&ph[e]?(""+t).trim():t+"px"}function u5(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=l5(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var C8=Dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function LS(e,t){if(t){if(C8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function RS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 OS=null;function WC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var NS=null,qu=null,Qu=null;function BM(e){if(e=Wd(e)){if(typeof NS!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=bm(t),NS(e.stateNode,e.type,t))}}function c5(e){qu?Qu?Qu.push(e):Qu=[e]:qu=e}function f5(){if(qu){var e=qu,t=Qu;if(Qu=qu=null,BM(e),t)for(e=0;e<t.length;e++)BM(t[e])}}function h5(e,t){return e(t)}function d5(){}var a1=!1;function p5(e,t,r){if(a1)return e(t,r);a1=!0;try{return h5(e,t,r)}finally{a1=!1,(qu!==null||Qu!==null)&&(d5(),f5())}}function Uh(e,t){var r=e.stateNode;if(r===null)return null;var n=bm(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Q(231,t,typeof r));return r}var zS=!1;if(Ha)try{var uf={};Object.defineProperty(uf,"passive",{get:function(){zS=!0}}),window.addEventListener("test",uf,uf),window.removeEventListener("test",uf,uf)}catch{zS=!1}function T8(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var vh=!1,Og=null,Ng=!1,BS=null,A8={onError:function(e){vh=!0,Og=e}};function M8(e,t,r,n,i,a,o,s,l){vh=!1,Og=null,T8.apply(A8,arguments)}function D8(e,t,r,n,i,a,o,s,l){if(M8.apply(this,arguments),vh){if(vh){var u=Og;vh=!1,Og=null}else throw Error(Q(198));Ng||(Ng=!0,BS=u)}}function Gl(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 v5(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 FM(e){if(Gl(e)!==e)throw Error(Q(188))}function k8(e){var t=e.alternate;if(!t){if(t=Gl(e),t===null)throw Error(Q(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return FM(i),e;if(a===n)return FM(i),t;a=a.sibling}throw Error(Q(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,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){for(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)throw Error(Q(189))}}if(r.alternate!==n)throw Error(Q(190))}if(r.tag!==3)throw Error(Q(188));return r.stateNode.current===r?e:t}function g5(e){return e=k8(e),e!==null?y5(e):null}function y5(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=y5(e);if(t!==null)return t;e=e.sibling}return null}var m5=Pn.unstable_scheduleCallback,VM=Pn.unstable_cancelCallback,P8=Pn.unstable_shouldYield,I8=Pn.unstable_requestPaint,Ft=Pn.unstable_now,E8=Pn.unstable_getCurrentPriorityLevel,UC=Pn.unstable_ImmediatePriority,_5=Pn.unstable_UserBlockingPriority,zg=Pn.unstable_NormalPriority,L8=Pn.unstable_LowPriority,x5=Pn.unstable_IdlePriority,_m=null,la=null;function R8(e){if(la&&typeof la.onCommitFiberRoot=="function")try{la.onCommitFiberRoot(_m,e,void 0,(e.current.flags&128)===128)}catch{}}var Ai=Math.clz32?Math.clz32:z8,O8=Math.log,N8=Math.LN2;function z8(e){return e>>>=0,e===0?32:31-(O8(e)/N8|0)|0}var Tp=64,Ap=4194304;function qf(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bg(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=qf(s):(a&=o,a!==0&&(n=qf(a)))}else o=r&~i,o!==0?n=qf(o):a!==0&&(n=qf(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Ai(t),i=1<<r,n|=e[r],t&=~i;return n}function B8(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function F8(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ai(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=B8(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function FS(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function S5(){var e=Tp;return Tp<<=1,!(Tp&4194240)&&(Tp=64),e}function o1(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function $d(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ai(t),e[t]=r}function V8(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Ai(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function jC(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ai(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var ct=0;function w5(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var b5,YC,C5,T5,A5,VS=!1,Mp=[],zo=null,Bo=null,Fo=null,jh=new Map,Yh=new Map,Co=[],G8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function GM(e,t){switch(e){case"focusin":case"focusout":zo=null;break;case"dragenter":case"dragleave":Bo=null;break;case"mouseover":case"mouseout":Fo=null;break;case"pointerover":case"pointerout":jh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yh.delete(t.pointerId)}}function cf(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Wd(t),t!==null&&YC(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function $8(e,t,r,n,i){switch(t){case"focusin":return zo=cf(zo,e,t,r,n,i),!0;case"dragenter":return Bo=cf(Bo,e,t,r,n,i),!0;case"mouseover":return Fo=cf(Fo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return jh.set(a,cf(jh.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Yh.set(a,cf(Yh.get(a)||null,e,t,r,n,i)),!0}return!1}function M5(e){var t=Js(e.target);if(t!==null){var r=Gl(t);if(r!==null){if(t=r.tag,t===13){if(t=v5(r),t!==null){e.blockedOn=t,A5(e.priority,function(){C5(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 qv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=GS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);OS=n,r.target.dispatchEvent(n),OS=null}else return t=Wd(r),t!==null&&YC(t),e.blockedOn=r,!1;t.shift()}return!0}function $M(e,t,r){qv(e)&&r.delete(t)}function H8(){VS=!1,zo!==null&&qv(zo)&&(zo=null),Bo!==null&&qv(Bo)&&(Bo=null),Fo!==null&&qv(Fo)&&(Fo=null),jh.forEach($M),Yh.forEach($M)}function ff(e,t){e.blockedOn===t&&(e.blockedOn=null,VS||(VS=!0,Pn.unstable_scheduleCallback(Pn.unstable_NormalPriority,H8)))}function Xh(e){function t(i){return ff(i,e)}if(0<Mp.length){ff(Mp[0],e);for(var r=1;r<Mp.length;r++){var n=Mp[r];n.blockedOn===e&&(n.blockedOn=null)}}for(zo!==null&&ff(zo,e),Bo!==null&&ff(Bo,e),Fo!==null&&ff(Fo,e),jh.forEach(t),Yh.forEach(t),r=0;r<Co.length;r++)n=Co[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Co.length&&(r=Co[0],r.blockedOn===null);)M5(r),r.blockedOn===null&&Co.shift()}var Ju=ro.ReactCurrentBatchConfig,Fg=!0;function W8(e,t,r,n){var i=ct,a=Ju.transition;Ju.transition=null;try{ct=1,XC(e,t,r,n)}finally{ct=i,Ju.transition=a}}function U8(e,t,r,n){var i=ct,a=Ju.transition;Ju.transition=null;try{ct=4,XC(e,t,r,n)}finally{ct=i,Ju.transition=a}}function XC(e,t,r,n){if(Fg){var i=GS(e,t,r,n);if(i===null)g1(e,t,n,Vg,r),GM(e,n);else if($8(i,e,t,r,n))n.stopPropagation();else if(GM(e,n),t&4&&-1<G8.indexOf(e)){for(;i!==null;){var a=Wd(i);if(a!==null&&b5(a),a=GS(e,t,r,n),a===null&&g1(e,t,n,Vg,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else g1(e,t,n,null,r)}}var Vg=null;function GS(e,t,r,n){if(Vg=null,e=WC(n),e=Js(e),e!==null)if(t=Gl(e),t===null)e=null;else if(r=t.tag,r===13){if(e=v5(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 Vg=e,null}function D5(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(E8()){case UC:return 1;case _5:return 4;case zg:case L8:return 16;case x5:return 536870912;default:return 16}default:return 16}}var Ao=null,ZC=null,Qv=null;function k5(){if(Qv)return Qv;var e,t=ZC,r=t.length,n,i="value"in Ao?Ao.value:Ao.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return Qv=i.slice(e,1<n?1-n:void 0)}function Jv(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 Dp(){return!0}function HM(){return!1}function Rn(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Dp:HM,this.isPropagationStopped=HM,this}return Dt(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=Dp)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Dp)},persist:function(){},isPersistent:Dp}),t}var Bc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},KC=Rn(Bc),Hd=Dt({},Bc,{view:0,detail:0}),j8=Rn(Hd),s1,l1,hf,xm=Dt({},Hd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qC,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!==hf&&(hf&&e.type==="mousemove"?(s1=e.screenX-hf.screenX,l1=e.screenY-hf.screenY):l1=s1=0,hf=e),s1)},movementY:function(e){return"movementY"in e?e.movementY:l1}}),WM=Rn(xm),Y8=Dt({},xm,{dataTransfer:0}),X8=Rn(Y8),Z8=Dt({},Hd,{relatedTarget:0}),u1=Rn(Z8),K8=Dt({},Bc,{animationName:0,elapsedTime:0,pseudoElement:0}),q8=Rn(K8),Q8=Dt({},Bc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),J8=Rn(Q8),eU=Dt({},Bc,{data:0}),UM=Rn(eU),tU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rU={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"},nU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nU[e])?!!t[e]:!1}function qC(){return iU}var aU=Dt({},Hd,{key:function(e){if(e.key){var t=tU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Jv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qC,charCode:function(e){return e.type==="keypress"?Jv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Jv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),oU=Rn(aU),sU=Dt({},xm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jM=Rn(sU),lU=Dt({},Hd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qC}),uU=Rn(lU),cU=Dt({},Bc,{propertyName:0,elapsedTime:0,pseudoElement:0}),fU=Rn(cU),hU=Dt({},xm,{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}),dU=Rn(hU),pU=[9,13,27,32],QC=Ha&&"CompositionEvent"in window,gh=null;Ha&&"documentMode"in document&&(gh=document.documentMode);var vU=Ha&&"TextEvent"in window&&!gh,P5=Ha&&(!QC||gh&&8<gh&&11>=gh),YM=" ",XM=!1;function I5(e,t){switch(e){case"keyup":return pU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nu=!1;function gU(e,t){switch(e){case"compositionend":return E5(t);case"keypress":return t.which!==32?null:(XM=!0,YM);case"textInput":return e=t.data,e===YM&&XM?null:e;default:return null}}function yU(e,t){if(Nu)return e==="compositionend"||!QC&&I5(e,t)?(e=k5(),Qv=ZC=Ao=null,Nu=!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 P5&&t.locale!=="ko"?null:t.data;default:return null}}var mU={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 ZM(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mU[e.type]:t==="textarea"}function L5(e,t,r,n){c5(n),t=Gg(t,"onChange"),0<t.length&&(r=new KC("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var yh=null,Zh=null;function _U(e){W5(e,0)}function Sm(e){var t=Fu(e);if(n5(t))return e}function xU(e,t){if(e==="change")return t}var R5=!1;if(Ha){var c1;if(Ha){var f1="oninput"in document;if(!f1){var KM=document.createElement("div");KM.setAttribute("oninput","return;"),f1=typeof KM.oninput=="function"}c1=f1}else c1=!1;R5=c1&&(!document.documentMode||9<document.documentMode)}function qM(){yh&&(yh.detachEvent("onpropertychange",O5),Zh=yh=null)}function O5(e){if(e.propertyName==="value"&&Sm(Zh)){var t=[];L5(t,Zh,e,WC(e)),p5(_U,t)}}function SU(e,t,r){e==="focusin"?(qM(),yh=t,Zh=r,yh.attachEvent("onpropertychange",O5)):e==="focusout"&&qM()}function wU(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sm(Zh)}function bU(e,t){if(e==="click")return Sm(t)}function CU(e,t){if(e==="input"||e==="change")return Sm(t)}function TU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ei=typeof Object.is=="function"?Object.is:TU;function Kh(e,t){if(Ei(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 i=r[n];if(!bS.call(t,i)||!Ei(e[i],t[i]))return!1}return!0}function QM(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function JM(e,t){var r=QM(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}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=QM(r)}}function N5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?N5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function z5(){for(var e=window,t=Rg();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Rg(e.document)}return t}function JC(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")}function AU(e){var t=z5(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&N5(r.ownerDocument.documentElement,r)){if(n!==null&&JC(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=JM(r,a);var o=JM(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var MU=Ha&&"documentMode"in document&&11>=document.documentMode,zu=null,$S=null,mh=null,HS=!1;function eD(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;HS||zu==null||zu!==Rg(n)||(n=zu,"selectionStart"in n&&JC(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}),mh&&Kh(mh,n)||(mh=n,n=Gg($S,"onSelect"),0<n.length&&(t=new KC("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=zu)))}function kp(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Bu={animationend:kp("Animation","AnimationEnd"),animationiteration:kp("Animation","AnimationIteration"),animationstart:kp("Animation","AnimationStart"),transitionend:kp("Transition","TransitionEnd")},h1={},B5={};Ha&&(B5=document.createElement("div").style,"AnimationEvent"in window||(delete Bu.animationend.animation,delete Bu.animationiteration.animation,delete Bu.animationstart.animation),"TransitionEvent"in window||delete Bu.transitionend.transition);function wm(e){if(h1[e])return h1[e];if(!Bu[e])return e;var t=Bu[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in B5)return h1[e]=t[r];return e}var F5=wm("animationend"),V5=wm("animationiteration"),G5=wm("animationstart"),$5=wm("transitionend"),H5=new Map,tD="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function os(e,t){H5.set(e,t),Vl(t,[e])}for(var d1=0;d1<tD.length;d1++){var p1=tD[d1],DU=p1.toLowerCase(),kU=p1[0].toUpperCase()+p1.slice(1);os(DU,"on"+kU)}os(F5,"onAnimationEnd");os(V5,"onAnimationIteration");os(G5,"onAnimationStart");os("dblclick","onDoubleClick");os("focusin","onFocus");os("focusout","onBlur");os($5,"onTransitionEnd");dc("onMouseEnter",["mouseout","mouseover"]);dc("onMouseLeave",["mouseout","mouseover"]);dc("onPointerEnter",["pointerout","pointerover"]);dc("onPointerLeave",["pointerout","pointerover"]);Vl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qf="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(" "),PU=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qf));function rD(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,D8(n,t,void 0,e),e.currentTarget=null}function W5(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=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!==a&&i.isPropagationStopped())break e;rD(i,s,u),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;rD(i,s,u),a=l}}}if(Ng)throw e=BS,Ng=!1,BS=null,e}function xt(e,t){var r=t[XS];r===void 0&&(r=t[XS]=new Set);var n=e+"__bubble";r.has(n)||(U5(t,e,2,!1),r.add(n))}function v1(e,t,r){var n=0;t&&(n|=4),U5(r,e,n,t)}var Pp="_reactListening"+Math.random().toString(36).slice(2);function qh(e){if(!e[Pp]){e[Pp]=!0,Qz.forEach(function(r){r!=="selectionchange"&&(PU.has(r)||v1(r,!1,e),v1(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pp]||(t[Pp]=!0,v1("selectionchange",!1,t))}}function U5(e,t,r,n){switch(D5(t)){case 1:var i=W8;break;case 4:i=U8;break;default:i=XC}r=i.bind(null,t,r,e),i=void 0,!zS||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function g1(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Js(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}p5(function(){var u=a,c=WC(r),f=[];e:{var h=H5.get(e);if(h!==void 0){var d=KC,p=e;switch(e){case"keypress":if(Jv(r)===0)break e;case"keydown":case"keyup":d=oU;break;case"focusin":p="focus",d=u1;break;case"focusout":p="blur",d=u1;break;case"beforeblur":case"afterblur":d=u1;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=WM;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=X8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=uU;break;case F5:case V5:case G5:d=q8;break;case $5:d=fU;break;case"scroll":d=j8;break;case"wheel":d=dU;break;case"copy":case"cut":case"paste":d=J8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=jM}var v=(t&4)!==0,g=!v&&e==="scroll",y=v?h!==null?h+"Capture":null:h;v=[];for(var m=u,_;m!==null;){_=m;var x=_.stateNode;if(_.tag===5&&x!==null&&(_=x,y!==null&&(x=Uh(m,y),x!=null&&v.push(Qh(m,x,_)))),g)break;m=m.return}0<v.length&&(h=new d(h,p,null,r,c),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",h&&r!==OS&&(p=r.relatedTarget||r.fromElement)&&(Js(p)||p[Wa]))break e;if((d||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,d?(p=r.relatedTarget||r.toElement,d=u,p=p?Js(p):null,p!==null&&(g=Gl(p),p!==g||p.tag!==5&&p.tag!==6)&&(p=null)):(d=null,p=u),d!==p)){if(v=WM,x="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=jM,x="onPointerLeave",y="onPointerEnter",m="pointer"),g=d==null?h:Fu(d),_=p==null?h:Fu(p),h=new v(x,m+"leave",d,r,c),h.target=g,h.relatedTarget=_,x=null,Js(c)===u&&(v=new v(y,m+"enter",p,r,c),v.target=_,v.relatedTarget=g,x=v),g=x,d&&p)t:{for(v=d,y=p,m=0,_=v;_;_=Jl(_))m++;for(_=0,x=y;x;x=Jl(x))_++;for(;0<m-_;)v=Jl(v),m--;for(;0<_-m;)y=Jl(y),_--;for(;m--;){if(v===y||y!==null&&v===y.alternate)break t;v=Jl(v),y=Jl(y)}v=null}else v=null;d!==null&&nD(f,h,d,v,!1),p!==null&&g!==null&&nD(f,g,p,v,!0)}}e:{if(h=u?Fu(u):window,d=h.nodeName&&h.nodeName.toLowerCase(),d==="select"||d==="input"&&h.type==="file")var w=xU;else if(ZM(h))if(R5)w=CU;else{w=wU;var S=SU}else(d=h.nodeName)&&d.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=bU);if(w&&(w=w(e,u))){L5(f,w,r,c);break e}S&&S(e,h,u),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&PS(h,"number",h.value)}switch(S=u?Fu(u):window,e){case"focusin":(ZM(S)||S.contentEditable==="true")&&(zu=S,$S=u,mh=null);break;case"focusout":mh=$S=zu=null;break;case"mousedown":HS=!0;break;case"contextmenu":case"mouseup":case"dragend":HS=!1,eD(f,r,c);break;case"selectionchange":if(MU)break;case"keydown":case"keyup":eD(f,r,c)}var b;if(QC)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Nu?I5(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(P5&&r.locale!=="ko"&&(Nu||C!=="onCompositionStart"?C==="onCompositionEnd"&&Nu&&(b=k5()):(Ao=c,ZC="value"in Ao?Ao.value:Ao.textContent,Nu=!0)),S=Gg(u,C),0<S.length&&(C=new UM(C,e,null,r,c),f.push({event:C,listeners:S}),b?C.data=b:(b=E5(r),b!==null&&(C.data=b)))),(b=vU?gU(e,r):yU(e,r))&&(u=Gg(u,"onBeforeInput"),0<u.length&&(c=new UM("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=b))}W5(f,t)})}function Qh(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Gg(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Uh(e,r),a!=null&&n.unshift(Qh(e,a,i)),a=Uh(e,t),a!=null&&n.push(Qh(e,a,i))),e=e.return}return n}function Jl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function nD(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=Uh(r,a),l!=null&&o.unshift(Qh(r,l,s))):i||(l=Uh(r,a),l!=null&&o.push(Qh(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var IU=/\r\n?/g,EU=/\u0000|\uFFFD/g;function iD(e){return(typeof e=="string"?e:""+e).replace(IU,`
64
- `).replace(EU,"")}function Ip(e,t,r){if(t=iD(t),iD(e)!==t&&r)throw Error(Q(425))}function $g(){}var WS=null,US=null;function jS(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var YS=typeof setTimeout=="function"?setTimeout:void 0,LU=typeof clearTimeout=="function"?clearTimeout:void 0,aD=typeof Promise=="function"?Promise:void 0,RU=typeof queueMicrotask=="function"?queueMicrotask:typeof aD<"u"?function(e){return aD.resolve(null).then(e).catch(OU)}:YS;function OU(e){setTimeout(function(){throw e})}function y1(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Xh(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Xh(t)}function Vo(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==="$?")break;if(t==="/$")return null}}return e}function oD(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Fc=Math.random().toString(36).slice(2),Ji="__reactFiber$"+Fc,Jh="__reactProps$"+Fc,Wa="__reactContainer$"+Fc,XS="__reactEvents$"+Fc,NU="__reactListeners$"+Fc,zU="__reactHandles$"+Fc;function Js(e){var t=e[Ji];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Wa]||r[Ji]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=oD(e);e!==null;){if(r=e[Ji])return r;e=oD(e)}return t}e=r,r=e.parentNode}return null}function Wd(e){return e=e[Ji]||e[Wa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Q(33))}function bm(e){return e[Jh]||null}var ZS=[],Vu=-1;function ss(e){return{current:e}}function St(e){0>Vu||(e.current=ZS[Vu],ZS[Vu]=null,Vu--)}function yt(e,t){Vu++,ZS[Vu]=e.current,e.current=t}var Ko={},kr=ss(Ko),sn=ss(!1),Cl=Ko;function pc(e,t){var r=e.type.contextTypes;if(!r)return Ko;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ln(e){return e=e.childContextTypes,e!=null}function Hg(){St(sn),St(kr)}function sD(e,t,r){if(kr.current!==Ko)throw Error(Q(168));yt(kr,t),yt(sn,r)}function j5(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Q(108,S8(e)||"Unknown",i));return Dt({},r,n)}function Wg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ko,Cl=kr.current,yt(kr,e),yt(sn,sn.current),!0}function lD(e,t,r){var n=e.stateNode;if(!n)throw Error(Q(169));r?(e=j5(e,t,Cl),n.__reactInternalMemoizedMergedChildContext=e,St(sn),St(kr),yt(kr,e)):St(sn),yt(sn,r)}var Ea=null,Cm=!1,m1=!1;function Y5(e){Ea===null?Ea=[e]:Ea.push(e)}function BU(e){Cm=!0,Y5(e)}function ls(){if(!m1&&Ea!==null){m1=!0;var e=0,t=ct;try{var r=Ea;for(ct=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ea=null,Cm=!1}catch(i){throw Ea!==null&&(Ea=Ea.slice(e+1)),m5(UC,ls),i}finally{ct=t,m1=!1}}return null}var Gu=[],$u=0,Ug=null,jg=0,Xn=[],Zn=0,Tl=null,La=1,Ra="";function Ns(e,t){Gu[$u++]=jg,Gu[$u++]=Ug,Ug=e,jg=t}function X5(e,t,r){Xn[Zn++]=La,Xn[Zn++]=Ra,Xn[Zn++]=Tl,Tl=e;var n=La;e=Ra;var i=32-Ai(n)-1;n&=~(1<<i),r+=1;var a=32-Ai(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,La=1<<32-Ai(t)+i|r<<i|n,Ra=a+e}else La=1<<a|r<<i|n,Ra=e}function eT(e){e.return!==null&&(Ns(e,1),X5(e,1,0))}function tT(e){for(;e===Ug;)Ug=Gu[--$u],Gu[$u]=null,jg=Gu[--$u],Gu[$u]=null;for(;e===Tl;)Tl=Xn[--Zn],Xn[Zn]=null,Ra=Xn[--Zn],Xn[Zn]=null,La=Xn[--Zn],Xn[Zn]=null}var Tn=null,Sn=null,bt=!1,Si=null;function Z5(e,t){var r=ti(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function uD(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tn=e,Sn=Vo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tn=e,Sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Tl!==null?{id:La,overflow:Ra}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ti(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Tn=e,Sn=null,!0):!1;default:return!1}}function KS(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qS(e){if(bt){var t=Sn;if(t){var r=t;if(!uD(e,t)){if(KS(e))throw Error(Q(418));t=Vo(r.nextSibling);var n=Tn;t&&uD(e,t)?Z5(n,r):(e.flags=e.flags&-4097|2,bt=!1,Tn=e)}}else{if(KS(e))throw Error(Q(418));e.flags=e.flags&-4097|2,bt=!1,Tn=e}}}function cD(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tn=e}function Ep(e){if(e!==Tn)return!1;if(!bt)return cD(e),bt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!jS(e.type,e.memoizedProps)),t&&(t=Sn)){if(KS(e))throw K5(),Error(Q(418));for(;t;)Z5(e,t),t=Vo(t.nextSibling)}if(cD(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Sn=Vo(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Sn=null}}else Sn=Tn?Vo(e.stateNode.nextSibling):null;return!0}function K5(){for(var e=Sn;e;)e=Vo(e.nextSibling)}function vc(){Sn=Tn=null,bt=!1}function rT(e){Si===null?Si=[e]:Si.push(e)}var FU=ro.ReactCurrentBatchConfig;function df(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Q(309));var n=r.stateNode}if(!n)throw Error(Q(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(Q(284));if(!r._owner)throw Error(Q(290,e))}return e}function Lp(e,t){throw e=Object.prototype.toString.call(t),Error(Q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fD(e){var t=e._init;return t(e._payload)}function q5(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,m){for(y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function i(y,m){return y=Wo(y,m),y.index=0,y.sibling=null,y}function a(y,m,_){return y.index=_,e?(_=y.alternate,_!==null?(_=_.index,_<m?(y.flags|=2,m):_):(y.flags|=2,m)):(y.flags|=1048576,m)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,m,_,x){return m===null||m.tag!==6?(m=T1(_,y.mode,x),m.return=y,m):(m=i(m,_),m.return=y,m)}function l(y,m,_,x){var w=_.type;return w===Ou?c(y,m,_.props.children,x,_.key):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===xo&&fD(w)===m.type)?(x=i(m,_.props),x.ref=df(y,m,_),x.return=y,x):(x=og(_.type,_.key,_.props,null,y.mode,x),x.ref=df(y,m,_),x.return=y,x)}function u(y,m,_,x){return m===null||m.tag!==4||m.stateNode.containerInfo!==_.containerInfo||m.stateNode.implementation!==_.implementation?(m=A1(_,y.mode,x),m.return=y,m):(m=i(m,_.children||[]),m.return=y,m)}function c(y,m,_,x,w){return m===null||m.tag!==7?(m=dl(_,y.mode,x,w),m.return=y,m):(m=i(m,_),m.return=y,m)}function f(y,m,_){if(typeof m=="string"&&m!==""||typeof m=="number")return m=T1(""+m,y.mode,_),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case wp:return _=og(m.type,m.key,m.props,null,y.mode,_),_.ref=df(y,null,m),_.return=y,_;case Ru:return m=A1(m,y.mode,_),m.return=y,m;case xo:var x=m._init;return f(y,x(m._payload),_)}if(Kf(m)||lf(m))return m=dl(m,y.mode,_,null),m.return=y,m;Lp(y,m)}return null}function h(y,m,_,x){var w=m!==null?m.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return w!==null?null:s(y,m,""+_,x);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case wp:return _.key===w?l(y,m,_,x):null;case Ru:return _.key===w?u(y,m,_,x):null;case xo:return w=_._init,h(y,m,w(_._payload),x)}if(Kf(_)||lf(_))return w!==null?null:c(y,m,_,x,null);Lp(y,_)}return null}function d(y,m,_,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return y=y.get(_)||null,s(m,y,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case wp:return y=y.get(x.key===null?_:x.key)||null,l(m,y,x,w);case Ru:return y=y.get(x.key===null?_:x.key)||null,u(m,y,x,w);case xo:var S=x._init;return d(y,m,_,S(x._payload),w)}if(Kf(x)||lf(x))return y=y.get(_)||null,c(m,y,x,w,null);Lp(m,x)}return null}function p(y,m,_,x){for(var w=null,S=null,b=m,C=m=0,T=null;b!==null&&C<_.length;C++){b.index>C?(T=b,b=null):T=b.sibling;var A=h(y,b,_[C],x);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(y,b),m=a(A,m,C),S===null?w=A:S.sibling=A,S=A,b=T}if(C===_.length)return r(y,b),bt&&Ns(y,C),w;if(b===null){for(;C<_.length;C++)b=f(y,_[C],x),b!==null&&(m=a(b,m,C),S===null?w=b:S.sibling=b,S=b);return bt&&Ns(y,C),w}for(b=n(y,b);C<_.length;C++)T=d(b,y,C,_[C],x),T!==null&&(e&&T.alternate!==null&&b.delete(T.key===null?C:T.key),m=a(T,m,C),S===null?w=T:S.sibling=T,S=T);return e&&b.forEach(function(M){return t(y,M)}),bt&&Ns(y,C),w}function v(y,m,_,x){var w=lf(_);if(typeof w!="function")throw Error(Q(150));if(_=w.call(_),_==null)throw Error(Q(151));for(var S=w=null,b=m,C=m=0,T=null,A=_.next();b!==null&&!A.done;C++,A=_.next()){b.index>C?(T=b,b=null):T=b.sibling;var M=h(y,b,A.value,x);if(M===null){b===null&&(b=T);break}e&&b&&M.alternate===null&&t(y,b),m=a(M,m,C),S===null?w=M:S.sibling=M,S=M,b=T}if(A.done)return r(y,b),bt&&Ns(y,C),w;if(b===null){for(;!A.done;C++,A=_.next())A=f(y,A.value,x),A!==null&&(m=a(A,m,C),S===null?w=A:S.sibling=A,S=A);return bt&&Ns(y,C),w}for(b=n(y,b);!A.done;C++,A=_.next())A=d(b,y,C,A.value,x),A!==null&&(e&&A.alternate!==null&&b.delete(A.key===null?C:A.key),m=a(A,m,C),S===null?w=A:S.sibling=A,S=A);return e&&b.forEach(function(k){return t(y,k)}),bt&&Ns(y,C),w}function g(y,m,_,x){if(typeof _=="object"&&_!==null&&_.type===Ou&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case wp:e:{for(var w=_.key,S=m;S!==null;){if(S.key===w){if(w=_.type,w===Ou){if(S.tag===7){r(y,S.sibling),m=i(S,_.props.children),m.return=y,y=m;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===xo&&fD(w)===S.type){r(y,S.sibling),m=i(S,_.props),m.ref=df(y,S,_),m.return=y,y=m;break e}r(y,S);break}else t(y,S);S=S.sibling}_.type===Ou?(m=dl(_.props.children,y.mode,x,_.key),m.return=y,y=m):(x=og(_.type,_.key,_.props,null,y.mode,x),x.ref=df(y,m,_),x.return=y,y=x)}return o(y);case Ru:e:{for(S=_.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===_.containerInfo&&m.stateNode.implementation===_.implementation){r(y,m.sibling),m=i(m,_.children||[]),m.return=y,y=m;break e}else{r(y,m);break}else t(y,m);m=m.sibling}m=A1(_,y.mode,x),m.return=y,y=m}return o(y);case xo:return S=_._init,g(y,m,S(_._payload),x)}if(Kf(_))return p(y,m,_,x);if(lf(_))return v(y,m,_,x);Lp(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,m!==null&&m.tag===6?(r(y,m.sibling),m=i(m,_),m.return=y,y=m):(r(y,m),m=T1(_,y.mode,x),m.return=y,y=m),o(y)):r(y,m)}return g}var gc=q5(!0),Q5=q5(!1),Yg=ss(null),Xg=null,Hu=null,nT=null;function iT(){nT=Hu=Xg=null}function aT(e){var t=Yg.current;St(Yg),e._currentValue=t}function QS(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 ec(e,t){Xg=e,nT=Hu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(on=!0),e.firstContext=null)}function ai(e){var t=e._currentValue;if(nT!==e)if(e={context:e,memoizedValue:t,next:null},Hu===null){if(Xg===null)throw Error(Q(308));Hu=e,Xg.dependencies={lanes:0,firstContext:e}}else Hu=Hu.next=e;return t}var el=null;function oT(e){el===null?el=[e]:el.push(e)}function J5(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,oT(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ua(e,n)}function Ua(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var So=!1;function sT(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function eB(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function za(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Go(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Qe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ua(e,r)}return i=n.interleaved,i===null?(t.next=t,oT(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ua(e,r)}function eg(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,jC(e,r)}}function hD(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Zg(e,t,r,n){var i=e.updateQueue;So=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,c=u=l=null,s=a;do{var h=s.lane,d=s.eventTime;if((n&h)===h){c!==null&&(c=c.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(h=t,d=r,v.tag){case 1:if(p=v.payload,typeof p=="function"){f=p.call(d,f,h);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=v.payload,h=typeof p=="function"?p.call(d,f,h):p,h==null)break e;f=Dt({},f,h);break e;case 2:So=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else d={eventTime:d,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=d,l=f):c=c.next=d,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Ml|=o,e.lanes=o,e.memoizedState=f}}function dD(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(Q(191,i));i.call(n)}}}var Ud={},ua=ss(Ud),ed=ss(Ud),td=ss(Ud);function tl(e){if(e===Ud)throw Error(Q(174));return e}function lT(e,t){switch(yt(td,t),yt(ed,e),yt(ua,Ud),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ES(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ES(t,e)}St(ua),yt(ua,t)}function yc(){St(ua),St(ed),St(td)}function tB(e){tl(td.current);var t=tl(ua.current),r=ES(t,e.type);t!==r&&(yt(ed,e),yt(ua,r))}function uT(e){ed.current===e&&(St(ua),St(ed))}var Tt=ss(0);function Kg(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 _1=[];function cT(){for(var e=0;e<_1.length;e++)_1[e]._workInProgressVersionPrimary=null;_1.length=0}var tg=ro.ReactCurrentDispatcher,x1=ro.ReactCurrentBatchConfig,Al=0,Mt=null,Kt=null,ar=null,qg=!1,_h=!1,rd=0,VU=0;function Sr(){throw Error(Q(321))}function fT(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ei(e[r],t[r]))return!1;return!0}function hT(e,t,r,n,i,a){if(Al=a,Mt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tg.current=e===null||e.memoizedState===null?WU:UU,e=r(n,i),_h){a=0;do{if(_h=!1,rd=0,25<=a)throw Error(Q(301));a+=1,ar=Kt=null,t.updateQueue=null,tg.current=jU,e=r(n,i)}while(_h)}if(tg.current=Qg,t=Kt!==null&&Kt.next!==null,Al=0,ar=Kt=Mt=null,qg=!1,t)throw Error(Q(300));return e}function dT(){var e=rd!==0;return rd=0,e}function Xi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ar===null?Mt.memoizedState=ar=e:ar=ar.next=e,ar}function oi(){if(Kt===null){var e=Mt.alternate;e=e!==null?e.memoizedState:null}else e=Kt.next;var t=ar===null?Mt.memoizedState:ar.next;if(t!==null)ar=t,Kt=e;else{if(e===null)throw Error(Q(310));Kt=e,e={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null},ar===null?Mt.memoizedState=ar=e:ar=ar.next=e}return ar}function nd(e,t){return typeof t=="function"?t(e):t}function S1(e){var t=oi(),r=t.queue;if(r===null)throw Error(Q(311));r.lastRenderedReducer=e;var n=Kt,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,u=a;do{var c=u.lane;if((Al&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=f,o=n):l=l.next=f,Mt.lanes|=c,Ml|=c}u=u.next}while(u!==null&&u!==a);l===null?o=n:l.next=s,Ei(n,t.memoizedState)||(on=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,Mt.lanes|=a,Ml|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function w1(e){var t=oi(),r=t.queue;if(r===null)throw Error(Q(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Ei(a,t.memoizedState)||(on=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function rB(){}function nB(e,t){var r=Mt,n=oi(),i=t(),a=!Ei(n.memoizedState,i);if(a&&(n.memoizedState=i,on=!0),n=n.queue,pT(oB.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||ar!==null&&ar.memoizedState.tag&1){if(r.flags|=2048,id(9,aB.bind(null,r,n,i,t),void 0,null),lr===null)throw Error(Q(349));Al&30||iB(r,t,i)}return i}function iB(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Mt.updateQueue,t===null?(t={lastEffect:null,stores:null},Mt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function aB(e,t,r,n){t.value=r,t.getSnapshot=n,sB(t)&&lB(e)}function oB(e,t,r){return r(function(){sB(t)&&lB(e)})}function sB(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ei(e,r)}catch{return!0}}function lB(e){var t=Ua(e,1);t!==null&&Mi(t,e,1,-1)}function pD(e){var t=Xi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:nd,lastRenderedState:e},t.queue=e,e=e.dispatch=HU.bind(null,Mt,e),[t.memoizedState,e]}function id(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Mt.updateQueue,t===null?(t={lastEffect:null,stores:null},Mt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function uB(){return oi().memoizedState}function rg(e,t,r,n){var i=Xi();Mt.flags|=e,i.memoizedState=id(1|t,r,void 0,n===void 0?null:n)}function Tm(e,t,r,n){var i=oi();n=n===void 0?null:n;var a=void 0;if(Kt!==null){var o=Kt.memoizedState;if(a=o.destroy,n!==null&&fT(n,o.deps)){i.memoizedState=id(t,r,a,n);return}}Mt.flags|=e,i.memoizedState=id(1|t,r,a,n)}function vD(e,t){return rg(8390656,8,e,t)}function pT(e,t){return Tm(2048,8,e,t)}function cB(e,t){return Tm(4,2,e,t)}function fB(e,t){return Tm(4,4,e,t)}function hB(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dB(e,t,r){return r=r!=null?r.concat([e]):null,Tm(4,4,hB.bind(null,t,e),r)}function vT(){}function pB(e,t){var r=oi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&fT(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function vB(e,t){var r=oi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&fT(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function gB(e,t,r){return Al&21?(Ei(r,t)||(r=S5(),Mt.lanes|=r,Ml|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,on=!0),e.memoizedState=r)}function GU(e,t){var r=ct;ct=r!==0&&4>r?r:4,e(!0);var n=x1.transition;x1.transition={};try{e(!1),t()}finally{ct=r,x1.transition=n}}function yB(){return oi().memoizedState}function $U(e,t,r){var n=Ho(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},mB(e))_B(t,r);else if(r=J5(e,t,r,n),r!==null){var i=Fr();Mi(r,e,n,i),xB(r,t,n)}}function HU(e,t,r){var n=Ho(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(mB(e))_B(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Ei(s,o)){var l=t.interleaved;l===null?(i.next=i,oT(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=J5(e,t,i,n),r!==null&&(i=Fr(),Mi(r,e,n,i),xB(r,t,n))}}function mB(e){var t=e.alternate;return e===Mt||t!==null&&t===Mt}function _B(e,t){_h=qg=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function xB(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,jC(e,r)}}var Qg={readContext:ai,useCallback:Sr,useContext:Sr,useEffect:Sr,useImperativeHandle:Sr,useInsertionEffect:Sr,useLayoutEffect:Sr,useMemo:Sr,useReducer:Sr,useRef:Sr,useState:Sr,useDebugValue:Sr,useDeferredValue:Sr,useTransition:Sr,useMutableSource:Sr,useSyncExternalStore:Sr,useId:Sr,unstable_isNewReconciler:!1},WU={readContext:ai,useCallback:function(e,t){return Xi().memoizedState=[e,t===void 0?null:t],e},useContext:ai,useEffect:vD,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,rg(4194308,4,hB.bind(null,t,e),r)},useLayoutEffect:function(e,t){return rg(4194308,4,e,t)},useInsertionEffect:function(e,t){return rg(4,2,e,t)},useMemo:function(e,t){var r=Xi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Xi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=$U.bind(null,Mt,e),[n.memoizedState,e]},useRef:function(e){var t=Xi();return e={current:e},t.memoizedState=e},useState:pD,useDebugValue:vT,useDeferredValue:function(e){return Xi().memoizedState=e},useTransition:function(){var e=pD(!1),t=e[0];return e=GU.bind(null,e[1]),Xi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Mt,i=Xi();if(bt){if(r===void 0)throw Error(Q(407));r=r()}else{if(r=t(),lr===null)throw Error(Q(349));Al&30||iB(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,vD(oB.bind(null,n,a,e),[e]),n.flags|=2048,id(9,aB.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Xi(),t=lr.identifierPrefix;if(bt){var r=Ra,n=La;r=(n&~(1<<32-Ai(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=rd++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=VU++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},UU={readContext:ai,useCallback:pB,useContext:ai,useEffect:pT,useImperativeHandle:dB,useInsertionEffect:cB,useLayoutEffect:fB,useMemo:vB,useReducer:S1,useRef:uB,useState:function(){return S1(nd)},useDebugValue:vT,useDeferredValue:function(e){var t=oi();return gB(t,Kt.memoizedState,e)},useTransition:function(){var e=S1(nd)[0],t=oi().memoizedState;return[e,t]},useMutableSource:rB,useSyncExternalStore:nB,useId:yB,unstable_isNewReconciler:!1},jU={readContext:ai,useCallback:pB,useContext:ai,useEffect:pT,useImperativeHandle:dB,useInsertionEffect:cB,useLayoutEffect:fB,useMemo:vB,useReducer:w1,useRef:uB,useState:function(){return w1(nd)},useDebugValue:vT,useDeferredValue:function(e){var t=oi();return Kt===null?t.memoizedState=e:gB(t,Kt.memoizedState,e)},useTransition:function(){var e=w1(nd)[0],t=oi().memoizedState;return[e,t]},useMutableSource:rB,useSyncExternalStore:nB,useId:yB,unstable_isNewReconciler:!1};function mi(e,t){if(e&&e.defaultProps){t=Dt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function JS(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Dt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Am={isMounted:function(e){return(e=e._reactInternals)?Gl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Fr(),i=Ho(e),a=za(n,i);a.payload=t,r!=null&&(a.callback=r),t=Go(e,a,i),t!==null&&(Mi(t,e,i,n),eg(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Fr(),i=Ho(e),a=za(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Go(e,a,i),t!==null&&(Mi(t,e,i,n),eg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Fr(),n=Ho(e),i=za(r,n);i.tag=2,t!=null&&(i.callback=t),t=Go(e,i,n),t!==null&&(Mi(t,e,n,r),eg(t,e,n))}};function gD(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Kh(r,n)||!Kh(i,a):!0}function SB(e,t,r){var n=!1,i=Ko,a=t.contextType;return typeof a=="object"&&a!==null?a=ai(a):(i=ln(t)?Cl:kr.current,n=t.contextTypes,a=(n=n!=null)?pc(e,i):Ko),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Am,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function yD(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&&Am.enqueueReplaceState(t,t.state,null)}function ew(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},sT(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=ai(a):(a=ln(t)?Cl:kr.current,i.context=pc(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(JS(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Am.enqueueReplaceState(i,i.state,null),Zg(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function mc(e,t){try{var r="",n=t;do r+=x8(n),n=n.return;while(n);var i=r}catch(a){i=`
65
- Error generating stack: `+a.message+`
66
- `+a.stack}return{value:e,source:t,stack:i,digest:null}}function b1(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function tw(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var YU=typeof WeakMap=="function"?WeakMap:Map;function wB(e,t,r){r=za(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ey||(ey=!0,fw=n),tw(e,t)},r}function bB(e,t,r){r=za(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){tw(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){tw(e,t),typeof n!="function"&&($o===null?$o=new Set([this]):$o.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function mD(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new YU;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=s9.bind(null,e,t,r),t.then(e,e))}function _D(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xD(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=za(-1,1),t.tag=2,Go(r,t,1))),r.lanes|=1),e)}var XU=ro.ReactCurrentOwner,on=!1;function Nr(e,t,r,n){t.child=e===null?Q5(t,null,r,n):gc(t,e.child,r,n)}function SD(e,t,r,n,i){r=r.render;var a=t.ref;return ec(t,i),n=hT(e,t,r,n,a,i),r=dT(),e!==null&&!on?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ja(e,t,i)):(bt&&r&&eT(t),t.flags|=1,Nr(e,t,n,i),t.child)}function wD(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!bT(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,CB(e,t,a,n,i)):(e=og(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:Kh,r(o,n)&&e.ref===t.ref)return ja(e,t,i)}return t.flags|=1,e=Wo(a,n),e.ref=t.ref,e.return=t,t.child=e}function CB(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Kh(a,n)&&e.ref===t.ref)if(on=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(on=!0);else return t.lanes=e.lanes,ja(e,t,i)}return rw(e,t,r,n,i)}function TB(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(Uu,mn),mn|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,yt(Uu,mn),mn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,yt(Uu,mn),mn|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,yt(Uu,mn),mn|=n;return Nr(e,t,i,r),t.child}function AB(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function rw(e,t,r,n,i){var a=ln(r)?Cl:kr.current;return a=pc(t,a),ec(t,i),r=hT(e,t,r,n,a,i),n=dT(),e!==null&&!on?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ja(e,t,i)):(bt&&n&&eT(t),t.flags|=1,Nr(e,t,r,i),t.child)}function bD(e,t,r,n,i){if(ln(r)){var a=!0;Wg(t)}else a=!1;if(ec(t,i),t.stateNode===null)ng(e,t),SB(t,r,n),ew(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=ai(u):(u=ln(r)?Cl:kr.current,u=pc(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&yD(t,o,n,u),So=!1;var h=t.memoizedState;o.state=h,Zg(t,n,o,i),l=t.memoizedState,s!==n||h!==l||sn.current||So?(typeof c=="function"&&(JS(t,r,c,n),l=t.memoizedState),(s=So||gD(t,r,s,n,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,eB(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mi(t.type,s),o.props=u,f=t.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=ai(l):(l=ln(r)?Cl:kr.current,l=pc(t,l));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||h!==l)&&yD(t,o,n,l),So=!1,h=t.memoizedState,o.state=h,Zg(t,n,o,i);var p=t.memoizedState;s!==f||h!==p||sn.current||So?(typeof d=="function"&&(JS(t,r,d,n),p=t.memoizedState),(u=So||gD(t,r,u,n,h,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return nw(e,t,r,n,a,i)}function nw(e,t,r,n,i,a){AB(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&lD(t,r,!1),ja(e,t,a);n=t.stateNode,XU.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=gc(t,e.child,null,a),t.child=gc(t,null,s,a)):Nr(e,t,s,a),t.memoizedState=n.state,i&&lD(t,r,!0),t.child}function MB(e){var t=e.stateNode;t.pendingContext?sD(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sD(e,t.context,!1),lT(e,t.containerInfo)}function CD(e,t,r,n,i){return vc(),rT(i),t.flags|=256,Nr(e,t,r,n),t.child}var iw={dehydrated:null,treeContext:null,retryLane:0};function aw(e){return{baseLanes:e,cachePool:null,transitions:null}}function DB(e,t,r){var n=t.pendingProps,i=Tt.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),yt(Tt,i&1),e===null)return qS(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=km(o,n,0,null),e=dl(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=aw(r),t.memoizedState=iw,e):gT(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ZU(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Wo(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Wo(s,a):(a=dl(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?aw(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=iw,n}return a=e.child,e=a.sibling,n=Wo(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function gT(e,t){return t=km({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Rp(e,t,r,n){return n!==null&&rT(n),gc(t,e.child,null,r),e=gT(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ZU(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=b1(Error(Q(422))),Rp(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=km({mode:"visible",children:n.children},i,0,null),a=dl(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&gc(t,e.child,null,o),t.child.memoizedState=aw(o),t.memoizedState=iw,a);if(!(t.mode&1))return Rp(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(Q(419)),n=b1(a,n,void 0),Rp(e,t,o,n)}if(s=(o&e.childLanes)!==0,on||s){if(n=lr,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Ua(e,i),Mi(n,e,i,-1))}return wT(),n=b1(Error(Q(421))),Rp(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=l9.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Sn=Vo(i.nextSibling),Tn=t,bt=!0,Si=null,e!==null&&(Xn[Zn++]=La,Xn[Zn++]=Ra,Xn[Zn++]=Tl,La=e.id,Ra=e.overflow,Tl=t),t=gT(t,n.children),t.flags|=4096,t)}function TD(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),QS(e.return,t,r)}function C1(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function kB(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Nr(e,t,n.children,r),n=Tt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&TD(e,r,t);else if(e.tag===19)TD(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(yt(Tt,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Kg(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),C1(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Kg(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}C1(t,!0,r,null,a);break;case"together":C1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ng(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ja(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ml|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,r=Wo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Wo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function KU(e,t,r){switch(t.tag){case 3:MB(t),vc();break;case 5:tB(t);break;case 1:ln(t.type)&&Wg(t);break;case 4:lT(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;yt(Yg,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(yt(Tt,Tt.current&1),t.flags|=128,null):r&t.child.childLanes?DB(e,t,r):(yt(Tt,Tt.current&1),e=ja(e,t,r),e!==null?e.sibling:null);yt(Tt,Tt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return kB(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),yt(Tt,Tt.current),n)break;return null;case 22:case 23:return t.lanes=0,TB(e,t,r)}return ja(e,t,r)}var PB,ow,IB,EB;PB=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ow=function(){};IB=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,tl(ua.current);var a=null;switch(r){case"input":i=DS(e,i),n=DS(e,n),a=[];break;case"select":i=Dt({},i,{value:void 0}),n=Dt({},n,{value:void 0}),a=[];break;case"textarea":i=IS(e,i),n=IS(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=$g)}LS(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Hh.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Hh.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&xt("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};EB=function(e,t,r,n){r!==n&&(t.flags|=4)};function pf(e,t){if(!bt)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 wr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function qU(e,t,r){var n=t.pendingProps;switch(tT(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wr(t),null;case 1:return ln(t.type)&&Hg(),wr(t),null;case 3:return n=t.stateNode,yc(),St(sn),St(kr),cT(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ep(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Si!==null&&(pw(Si),Si=null))),ow(e,t),wr(t),null;case 5:uT(t);var i=tl(td.current);if(r=t.type,e!==null&&t.stateNode!=null)IB(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Q(166));return wr(t),null}if(e=tl(ua.current),Ep(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Ji]=t,n[Jh]=a,e=(t.mode&1)!==0,r){case"dialog":xt("cancel",n),xt("close",n);break;case"iframe":case"object":case"embed":xt("load",n);break;case"video":case"audio":for(i=0;i<Qf.length;i++)xt(Qf[i],n);break;case"source":xt("error",n);break;case"img":case"image":case"link":xt("error",n),xt("load",n);break;case"details":xt("toggle",n);break;case"input":RM(n,a),xt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},xt("invalid",n);break;case"textarea":NM(n,a),xt("invalid",n)}LS(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&Ip(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&Ip(n.textContent,s,e),i=["children",""+s]):Hh.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&xt("scroll",n)}switch(r){case"input":bp(n),OM(n,a,!0);break;case"textarea":bp(n),zM(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=$g)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=o5(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Ji]=t,e[Jh]=n,PB(e,t,!1,!1),t.stateNode=e;e:{switch(o=RS(r,n),r){case"dialog":xt("cancel",e),xt("close",e),i=n;break;case"iframe":case"object":case"embed":xt("load",e),i=n;break;case"video":case"audio":for(i=0;i<Qf.length;i++)xt(Qf[i],e);i=n;break;case"source":xt("error",e),i=n;break;case"img":case"image":case"link":xt("error",e),xt("load",e),i=n;break;case"details":xt("toggle",e),i=n;break;case"input":RM(e,n),i=DS(e,n),xt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Dt({},n,{value:void 0}),xt("invalid",e);break;case"textarea":NM(e,n),i=IS(e,n),xt("invalid",e);break;default:i=n}LS(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?u5(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&s5(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Wh(e,l):typeof l=="number"&&Wh(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Hh.hasOwnProperty(a)?l!=null&&a==="onScroll"&&xt("scroll",e):l!=null&&VC(e,a,l,o))}switch(r){case"input":bp(e),OM(e,n,!1);break;case"textarea":bp(e),zM(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Zo(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Ku(e,!!n.multiple,a,!1):n.defaultValue!=null&&Ku(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=$g)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return wr(t),null;case 6:if(e&&t.stateNode!=null)EB(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Q(166));if(r=tl(td.current),tl(ua.current),Ep(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ji]=t,(a=n.nodeValue!==r)&&(e=Tn,e!==null))switch(e.tag){case 3:Ip(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ip(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ji]=t,t.stateNode=n}return wr(t),null;case 13:if(St(Tt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(bt&&Sn!==null&&t.mode&1&&!(t.flags&128))K5(),vc(),t.flags|=98560,a=!1;else if(a=Ep(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(Q(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Q(317));a[Ji]=t}else vc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;wr(t),a=!1}else Si!==null&&(pw(Si),Si=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Tt.current&1?Qt===0&&(Qt=3):wT())),t.updateQueue!==null&&(t.flags|=4),wr(t),null);case 4:return yc(),ow(e,t),e===null&&qh(t.stateNode.containerInfo),wr(t),null;case 10:return aT(t.type._context),wr(t),null;case 17:return ln(t.type)&&Hg(),wr(t),null;case 19:if(St(Tt),a=t.memoizedState,a===null)return wr(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)pf(a,!1);else{if(Qt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Kg(e),o!==null){for(t.flags|=128,pf(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return yt(Tt,Tt.current&1|2),t.child}e=e.sibling}a.tail!==null&&Ft()>_c&&(t.flags|=128,n=!0,pf(a,!1),t.lanes=4194304)}else{if(!n)if(e=Kg(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),pf(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!bt)return wr(t),null}else 2*Ft()-a.renderingStartTime>_c&&r!==1073741824&&(t.flags|=128,n=!0,pf(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ft(),t.sibling=null,r=Tt.current,yt(Tt,n?r&1|2:r&1),t):(wr(t),null);case 22:case 23:return ST(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?mn&1073741824&&(wr(t),t.subtreeFlags&6&&(t.flags|=8192)):wr(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function QU(e,t){switch(tT(t),t.tag){case 1:return ln(t.type)&&Hg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yc(),St(sn),St(kr),cT(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uT(t),null;case 13:if(St(Tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));vc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return St(Tt),null;case 4:return yc(),null;case 10:return aT(t.type._context),null;case 22:case 23:return ST(),null;case 24:return null;default:return null}}var Op=!1,Dr=!1,JU=typeof WeakSet=="function"?WeakSet:Set,ye=null;function Wu(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Et(e,t,n)}else r.current=null}function sw(e,t,r){try{r()}catch(n){Et(e,t,n)}}var AD=!1;function e9(e,t){if(WS=Fg,e=z5(),JC(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var d;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(d=f.firstChild)!==null;)h=f,f=d;for(;;){if(f===e)break t;if(h===r&&++u===i&&(s=o),h===a&&++c===n&&(l=o),(d=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=d}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(US={focusedElem:e,selectionRange:r},Fg=!1,ye=t;ye!==null;)if(t=ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ye=e;else for(;ye!==null;){t=ye;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:mi(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(x){Et(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,ye=e;break}ye=t.return}return p=AD,AD=!1,p}function xh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&sw(t,r,a)}i=i.next}while(i!==n)}}function Mm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function lw(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function LB(e){var t=e.alternate;t!==null&&(e.alternate=null,LB(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ji],delete t[Jh],delete t[XS],delete t[NU],delete t[zU])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function RB(e){return e.tag===5||e.tag===3||e.tag===4}function MD(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RB(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uw(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$g));else if(n!==4&&(e=e.child,e!==null))for(uw(e,t,r),e=e.sibling;e!==null;)uw(e,t,r),e=e.sibling}function cw(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&&(e=e.child,e!==null))for(cw(e,t,r),e=e.sibling;e!==null;)cw(e,t,r),e=e.sibling}var dr=null,xi=!1;function oo(e,t,r){for(r=r.child;r!==null;)OB(e,t,r),r=r.sibling}function OB(e,t,r){if(la&&typeof la.onCommitFiberUnmount=="function")try{la.onCommitFiberUnmount(_m,r)}catch{}switch(r.tag){case 5:Dr||Wu(r,t);case 6:var n=dr,i=xi;dr=null,oo(e,t,r),dr=n,xi=i,dr!==null&&(xi?(e=dr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):dr.removeChild(r.stateNode));break;case 18:dr!==null&&(xi?(e=dr,r=r.stateNode,e.nodeType===8?y1(e.parentNode,r):e.nodeType===1&&y1(e,r),Xh(e)):y1(dr,r.stateNode));break;case 4:n=dr,i=xi,dr=r.stateNode.containerInfo,xi=!0,oo(e,t,r),dr=n,xi=i;break;case 0:case 11:case 14:case 15:if(!Dr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&sw(r,t,o),i=i.next}while(i!==n)}oo(e,t,r);break;case 1:if(!Dr&&(Wu(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Et(r,t,s)}oo(e,t,r);break;case 21:oo(e,t,r);break;case 22:r.mode&1?(Dr=(n=Dr)||r.memoizedState!==null,oo(e,t,r),Dr=n):oo(e,t,r);break;default:oo(e,t,r)}}function DD(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new JU),t.forEach(function(n){var i=u9.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function hi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:dr=s.stateNode,xi=!1;break e;case 3:dr=s.stateNode.containerInfo,xi=!0;break e;case 4:dr=s.stateNode.containerInfo,xi=!0;break e}s=s.return}if(dr===null)throw Error(Q(160));OB(a,o,i),dr=null,xi=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Et(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)NB(t,e),t=t.sibling}function NB(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hi(t,e),Vi(e),n&4){try{xh(3,e,e.return),Mm(3,e)}catch(v){Et(e,e.return,v)}try{xh(5,e,e.return)}catch(v){Et(e,e.return,v)}}break;case 1:hi(t,e),Vi(e),n&512&&r!==null&&Wu(r,r.return);break;case 5:if(hi(t,e),Vi(e),n&512&&r!==null&&Wu(r,r.return),e.flags&32){var i=e.stateNode;try{Wh(i,"")}catch(v){Et(e,e.return,v)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&i5(i,a),RS(s,o);var u=RS(s,a);for(o=0;o<l.length;o+=2){var c=l[o],f=l[o+1];c==="style"?u5(i,f):c==="dangerouslySetInnerHTML"?s5(i,f):c==="children"?Wh(i,f):VC(i,c,f,u)}switch(s){case"input":kS(i,a);break;case"textarea":a5(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var d=a.value;d!=null?Ku(i,!!a.multiple,d,!1):h!==!!a.multiple&&(a.defaultValue!=null?Ku(i,!!a.multiple,a.defaultValue,!0):Ku(i,!!a.multiple,a.multiple?[]:"",!1))}i[Jh]=a}catch(v){Et(e,e.return,v)}}break;case 6:if(hi(t,e),Vi(e),n&4){if(e.stateNode===null)throw Error(Q(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(v){Et(e,e.return,v)}}break;case 3:if(hi(t,e),Vi(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Xh(t.containerInfo)}catch(v){Et(e,e.return,v)}break;case 4:hi(t,e),Vi(e);break;case 13:hi(t,e),Vi(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(_T=Ft())),n&4&&DD(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Dr=(u=Dr)||c,hi(t,e),Dr=u):hi(t,e),Vi(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(ye=e,c=e.child;c!==null;){for(f=ye=c;ye!==null;){switch(h=ye,d=h.child,h.tag){case 0:case 11:case 14:case 15:xh(4,h,h.return);break;case 1:Wu(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(v){Et(n,r,v)}}break;case 5:Wu(h,h.return);break;case 22:if(h.memoizedState!==null){PD(f);continue}}d!==null?(d.return=h,ye=d):PD(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=l5("display",o))}catch(v){Et(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Et(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:hi(t,e),Vi(e),n&4&&DD(e);break;case 21:break;default:hi(t,e),Vi(e)}}function Vi(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(RB(r)){var n=r;break e}r=r.return}throw Error(Q(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Wh(i,""),n.flags&=-33);var a=MD(e);cw(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=MD(e);uw(e,s,o);break;default:throw Error(Q(161))}}catch(l){Et(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function t9(e,t,r){ye=e,zB(e)}function zB(e,t,r){for(var n=(e.mode&1)!==0;ye!==null;){var i=ye,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||Op;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Dr;s=Op;var u=Dr;if(Op=o,(Dr=l)&&!u)for(ye=i;ye!==null;)o=ye,l=o.child,o.tag===22&&o.memoizedState!==null?ID(i):l!==null?(l.return=o,ye=l):ID(i);for(;a!==null;)ye=a,zB(a),a=a.sibling;ye=i,Op=s,Dr=u}kD(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,ye=a):kD(e)}}function kD(e){for(;ye!==null;){var t=ye;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Dr||Mm(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Dr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:mi(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&dD(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}dD(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Xh(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Q(163))}Dr||t.flags&512&&lw(t)}catch(h){Et(t,t.return,h)}}if(t===e){ye=null;break}if(r=t.sibling,r!==null){r.return=t.return,ye=r;break}ye=t.return}}function PD(e){for(;ye!==null;){var t=ye;if(t===e){ye=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ye=r;break}ye=t.return}}function ID(e){for(;ye!==null;){var t=ye;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Mm(4,t)}catch(l){Et(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Et(t,i,l)}}var a=t.return;try{lw(t)}catch(l){Et(t,a,l)}break;case 5:var o=t.return;try{lw(t)}catch(l){Et(t,o,l)}}}catch(l){Et(t,t.return,l)}if(t===e){ye=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ye=s;break}ye=t.return}}var r9=Math.ceil,Jg=ro.ReactCurrentDispatcher,yT=ro.ReactCurrentOwner,ni=ro.ReactCurrentBatchConfig,Qe=0,lr=null,jt=null,gr=0,mn=0,Uu=ss(0),Qt=0,ad=null,Ml=0,Dm=0,mT=0,Sh=null,en=null,_T=0,_c=1/0,ka=null,ey=!1,fw=null,$o=null,Np=!1,Mo=null,ty=0,wh=0,hw=null,ig=-1,ag=0;function Fr(){return Qe&6?Ft():ig!==-1?ig:ig=Ft()}function Ho(e){return e.mode&1?Qe&2&&gr!==0?gr&-gr:FU.transition!==null?(ag===0&&(ag=S5()),ag):(e=ct,e!==0||(e=window.event,e=e===void 0?16:D5(e.type)),e):1}function Mi(e,t,r,n){if(50<wh)throw wh=0,hw=null,Error(Q(185));$d(e,r,n),(!(Qe&2)||e!==lr)&&(e===lr&&(!(Qe&2)&&(Dm|=r),Qt===4&&To(e,gr)),un(e,n),r===1&&Qe===0&&!(t.mode&1)&&(_c=Ft()+500,Cm&&ls()))}function un(e,t){var r=e.callbackNode;F8(e,t);var n=Bg(e,e===lr?gr:0);if(n===0)r!==null&&VM(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&VM(r),t===1)e.tag===0?BU(ED.bind(null,e)):Y5(ED.bind(null,e)),RU(function(){!(Qe&6)&&ls()}),r=null;else{switch(w5(n)){case 1:r=UC;break;case 4:r=_5;break;case 16:r=zg;break;case 536870912:r=x5;break;default:r=zg}r=UB(r,BB.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function BB(e,t){if(ig=-1,ag=0,Qe&6)throw Error(Q(327));var r=e.callbackNode;if(tc()&&e.callbackNode!==r)return null;var n=Bg(e,e===lr?gr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=ry(e,n);else{t=n;var i=Qe;Qe|=2;var a=VB();(lr!==e||gr!==t)&&(ka=null,_c=Ft()+500,hl(e,t));do try{a9();break}catch(s){FB(e,s)}while(!0);iT(),Jg.current=a,Qe=i,jt!==null?t=0:(lr=null,gr=0,t=Qt)}if(t!==0){if(t===2&&(i=FS(e),i!==0&&(n=i,t=dw(e,i))),t===1)throw r=ad,hl(e,0),To(e,n),un(e,Ft()),r;if(t===6)To(e,n);else{if(i=e.current.alternate,!(n&30)&&!n9(i)&&(t=ry(e,n),t===2&&(a=FS(e),a!==0&&(n=a,t=dw(e,a))),t===1))throw r=ad,hl(e,0),To(e,n),un(e,Ft()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(Q(345));case 2:zs(e,en,ka);break;case 3:if(To(e,n),(n&130023424)===n&&(t=_T+500-Ft(),10<t)){if(Bg(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Fr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=YS(zs.bind(null,e,en,ka),t);break}zs(e,en,ka);break;case 4:if(To(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Ai(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=Ft()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*r9(n/1960))-n,10<n){e.timeoutHandle=YS(zs.bind(null,e,en,ka),n);break}zs(e,en,ka);break;case 5:zs(e,en,ka);break;default:throw Error(Q(329))}}}return un(e,Ft()),e.callbackNode===r?BB.bind(null,e):null}function dw(e,t){var r=Sh;return e.current.memoizedState.isDehydrated&&(hl(e,t).flags|=256),e=ry(e,t),e!==2&&(t=en,en=r,t!==null&&pw(t)),e}function pw(e){en===null?en=e:en.push.apply(en,e)}function n9(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Ei(a(),i))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 To(e,t){for(t&=~mT,t&=~Dm,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ai(t),n=1<<r;e[r]=-1,t&=~n}}function ED(e){if(Qe&6)throw Error(Q(327));tc();var t=Bg(e,0);if(!(t&1))return un(e,Ft()),null;var r=ry(e,t);if(e.tag!==0&&r===2){var n=FS(e);n!==0&&(t=n,r=dw(e,n))}if(r===1)throw r=ad,hl(e,0),To(e,t),un(e,Ft()),r;if(r===6)throw Error(Q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zs(e,en,ka),un(e,Ft()),null}function xT(e,t){var r=Qe;Qe|=1;try{return e(t)}finally{Qe=r,Qe===0&&(_c=Ft()+500,Cm&&ls())}}function Dl(e){Mo!==null&&Mo.tag===0&&!(Qe&6)&&tc();var t=Qe;Qe|=1;var r=ni.transition,n=ct;try{if(ni.transition=null,ct=1,e)return e()}finally{ct=n,ni.transition=r,Qe=t,!(Qe&6)&&ls()}}function ST(){mn=Uu.current,St(Uu)}function hl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,LU(r)),jt!==null)for(r=jt.return;r!==null;){var n=r;switch(tT(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Hg();break;case 3:yc(),St(sn),St(kr),cT();break;case 5:uT(n);break;case 4:yc();break;case 13:St(Tt);break;case 19:St(Tt);break;case 10:aT(n.type._context);break;case 22:case 23:ST()}r=r.return}if(lr=e,jt=e=Wo(e.current,null),gr=mn=t,Qt=0,ad=null,mT=Dm=Ml=0,en=Sh=null,el!==null){for(t=0;t<el.length;t++)if(r=el[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}el=null}return e}function FB(e,t){do{var r=jt;try{if(iT(),tg.current=Qg,qg){for(var n=Mt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}qg=!1}if(Al=0,ar=Kt=Mt=null,_h=!1,rd=0,yT.current=null,r===null||r.return===null){Qt=1,ad=t,jt=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=gr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=_D(o);if(d!==null){d.flags&=-257,xD(d,o,s,a,t),d.mode&1&&mD(a,u,t),t=d,l=u;var p=t.updateQueue;if(p===null){var v=new Set;v.add(l),t.updateQueue=v}else p.add(l);break e}else{if(!(t&1)){mD(a,u,t),wT();break e}l=Error(Q(426))}}else if(bt&&s.mode&1){var g=_D(o);if(g!==null){!(g.flags&65536)&&(g.flags|=256),xD(g,o,s,a,t),rT(mc(l,s));break e}}a=l=mc(l,s),Qt!==4&&(Qt=2),Sh===null?Sh=[a]:Sh.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=wB(a,l,t);hD(a,y);break e;case 1:s=l;var m=a.type,_=a.stateNode;if(!(a.flags&128)&&(typeof m.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&($o===null||!$o.has(_)))){a.flags|=65536,t&=-t,a.lanes|=t;var x=bB(a,s,t);hD(a,x);break e}}a=a.return}while(a!==null)}$B(r)}catch(w){t=w,jt===r&&r!==null&&(jt=r=r.return);continue}break}while(!0)}function VB(){var e=Jg.current;return Jg.current=Qg,e===null?Qg:e}function wT(){(Qt===0||Qt===3||Qt===2)&&(Qt=4),lr===null||!(Ml&268435455)&&!(Dm&268435455)||To(lr,gr)}function ry(e,t){var r=Qe;Qe|=2;var n=VB();(lr!==e||gr!==t)&&(ka=null,hl(e,t));do try{i9();break}catch(i){FB(e,i)}while(!0);if(iT(),Qe=r,Jg.current=n,jt!==null)throw Error(Q(261));return lr=null,gr=0,Qt}function i9(){for(;jt!==null;)GB(jt)}function a9(){for(;jt!==null&&!P8();)GB(jt)}function GB(e){var t=WB(e.alternate,e,mn);e.memoizedProps=e.pendingProps,t===null?$B(e):jt=t,yT.current=null}function $B(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=QU(r,t),r!==null){r.flags&=32767,jt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Qt=6,jt=null;return}}else if(r=qU(r,t,mn),r!==null){jt=r;return}if(t=t.sibling,t!==null){jt=t;return}jt=t=e}while(t!==null);Qt===0&&(Qt=5)}function zs(e,t,r){var n=ct,i=ni.transition;try{ni.transition=null,ct=1,o9(e,t,r,n)}finally{ni.transition=i,ct=n}return null}function o9(e,t,r,n){do tc();while(Mo!==null);if(Qe&6)throw Error(Q(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Q(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(V8(e,a),e===lr&&(jt=lr=null,gr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Np||(Np=!0,UB(zg,function(){return tc(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=ni.transition,ni.transition=null;var o=ct;ct=1;var s=Qe;Qe|=4,yT.current=null,e9(e,r),NB(r,e),AU(US),Fg=!!WS,US=WS=null,e.current=r,t9(r),I8(),Qe=s,ct=o,ni.transition=a}else e.current=r;if(Np&&(Np=!1,Mo=e,ty=i),a=e.pendingLanes,a===0&&($o=null),R8(r.stateNode),un(e,Ft()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(ey)throw ey=!1,e=fw,fw=null,e;return ty&1&&e.tag!==0&&tc(),a=e.pendingLanes,a&1?e===hw?wh++:(wh=0,hw=e):wh=0,ls(),null}function tc(){if(Mo!==null){var e=w5(ty),t=ni.transition,r=ct;try{if(ni.transition=null,ct=16>e?16:e,Mo===null)var n=!1;else{if(e=Mo,Mo=null,ty=0,Qe&6)throw Error(Q(331));var i=Qe;for(Qe|=4,ye=e.current;ye!==null;){var a=ye,o=a.child;if(ye.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(ye=u;ye!==null;){var c=ye;switch(c.tag){case 0:case 11:case 15:xh(8,c,a)}var f=c.child;if(f!==null)f.return=c,ye=f;else for(;ye!==null;){c=ye;var h=c.sibling,d=c.return;if(LB(c),c===u){ye=null;break}if(h!==null){h.return=d,ye=h;break}ye=d}}}var p=a.alternate;if(p!==null){var v=p.child;if(v!==null){p.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(v!==null)}}ye=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,ye=o;else e:for(;ye!==null;){if(a=ye,a.flags&2048)switch(a.tag){case 0:case 11:case 15:xh(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,ye=y;break e}ye=a.return}}var m=e.current;for(ye=m;ye!==null;){o=ye;var _=o.child;if(o.subtreeFlags&2064&&_!==null)_.return=o,ye=_;else e:for(o=m;ye!==null;){if(s=ye,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Mm(9,s)}}catch(w){Et(s,s.return,w)}if(s===o){ye=null;break e}var x=s.sibling;if(x!==null){x.return=s.return,ye=x;break e}ye=s.return}}if(Qe=i,ls(),la&&typeof la.onPostCommitFiberRoot=="function")try{la.onPostCommitFiberRoot(_m,e)}catch{}n=!0}return n}finally{ct=r,ni.transition=t}}return!1}function LD(e,t,r){t=mc(r,t),t=wB(e,t,1),e=Go(e,t,1),t=Fr(),e!==null&&($d(e,1,t),un(e,t))}function Et(e,t,r){if(e.tag===3)LD(e,e,r);else for(;t!==null;){if(t.tag===3){LD(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&($o===null||!$o.has(n))){e=mc(r,e),e=bB(t,e,1),t=Go(t,e,1),e=Fr(),t!==null&&($d(t,1,e),un(t,e));break}}t=t.return}}function s9(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Fr(),e.pingedLanes|=e.suspendedLanes&r,lr===e&&(gr&r)===r&&(Qt===4||Qt===3&&(gr&130023424)===gr&&500>Ft()-_T?hl(e,0):mT|=r),un(e,t)}function HB(e,t){t===0&&(e.mode&1?(t=Ap,Ap<<=1,!(Ap&130023424)&&(Ap=4194304)):t=1);var r=Fr();e=Ua(e,t),e!==null&&($d(e,t,r),un(e,r))}function l9(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),HB(e,r)}function u9(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Q(314))}n!==null&&n.delete(t),HB(e,r)}var WB;WB=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||sn.current)on=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return on=!1,KU(e,t,r);on=!!(e.flags&131072)}else on=!1,bt&&t.flags&1048576&&X5(t,jg,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ng(e,t),e=t.pendingProps;var i=pc(t,kr.current);ec(t,r),i=hT(null,t,n,e,i,r);var a=dT();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ln(n)?(a=!0,Wg(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sT(t),i.updater=Am,t.stateNode=i,i._reactInternals=t,ew(t,n,e,r),t=nw(null,t,n,!0,a,r)):(t.tag=0,bt&&a&&eT(t),Nr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ng(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=f9(n),e=mi(n,e),i){case 0:t=rw(null,t,n,e,r);break e;case 1:t=bD(null,t,n,e,r);break e;case 11:t=SD(null,t,n,e,r);break e;case 14:t=wD(null,t,n,mi(n.type,e),r);break e}throw Error(Q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mi(n,i),rw(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mi(n,i),bD(e,t,n,i,r);case 3:e:{if(MB(t),e===null)throw Error(Q(387));n=t.pendingProps,a=t.memoizedState,i=a.element,eB(e,t),Zg(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=mc(Error(Q(423)),t),t=CD(e,t,n,r,i);break e}else if(n!==i){i=mc(Error(Q(424)),t),t=CD(e,t,n,r,i);break e}else for(Sn=Vo(t.stateNode.containerInfo.firstChild),Tn=t,bt=!0,Si=null,r=Q5(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(vc(),n===i){t=ja(e,t,r);break e}Nr(e,t,n,r)}t=t.child}return t;case 5:return tB(t),e===null&&qS(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,jS(n,i)?o=null:a!==null&&jS(n,a)&&(t.flags|=32),AB(e,t),Nr(e,t,o,r),t.child;case 6:return e===null&&qS(t),null;case 13:return DB(e,t,r);case 4:return lT(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=gc(t,null,n,r):Nr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mi(n,i),SD(e,t,n,i,r);case 7:return Nr(e,t,t.pendingProps,r),t.child;case 8:return Nr(e,t,t.pendingProps.children,r),t.child;case 12:return Nr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,yt(Yg,n._currentValue),n._currentValue=o,a!==null)if(Ei(a.value,o)){if(a.children===i.children&&!sn.current){t=ja(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=za(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),QS(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),QS(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Nr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ec(t,r),i=ai(i),n=n(i),t.flags|=1,Nr(e,t,n,r),t.child;case 14:return n=t.type,i=mi(n,t.pendingProps),i=mi(n.type,i),wD(e,t,n,i,r);case 15:return CB(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:mi(n,i),ng(e,t),t.tag=1,ln(n)?(e=!0,Wg(t)):e=!1,ec(t,r),SB(t,n,i),ew(t,n,i,r),nw(null,t,n,!0,e,r);case 19:return kB(e,t,r);case 22:return TB(e,t,r)}throw Error(Q(156,t.tag))};function UB(e,t){return m5(e,t)}function c9(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.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 ti(e,t,r,n){return new c9(e,t,r,n)}function bT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function f9(e){if(typeof e=="function")return bT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$C)return 11;if(e===HC)return 14}return 2}function Wo(e,t){var r=e.alternate;return r===null?(r=ti(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&14680064,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}function og(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")bT(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ou:return dl(r.children,i,a,t);case GC:o=8,i|=8;break;case CS:return e=ti(12,r,t,i|2),e.elementType=CS,e.lanes=a,e;case TS:return e=ti(13,r,t,i),e.elementType=TS,e.lanes=a,e;case AS:return e=ti(19,r,t,i),e.elementType=AS,e.lanes=a,e;case t5:return km(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jz:o=10;break e;case e5:o=9;break e;case $C:o=11;break e;case HC:o=14;break e;case xo:o=16,n=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=ti(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function dl(e,t,r,n){return e=ti(7,e,n,t),e.lanes=r,e}function km(e,t,r,n){return e=ti(22,e,n,t),e.elementType=t5,e.lanes=r,e.stateNode={isHidden:!1},e}function T1(e,t,r){return e=ti(6,e,null,t),e.lanes=r,e}function A1(e,t,r){return t=ti(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function h9(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=o1(0),this.expirationTimes=o1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=o1(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function CT(e,t,r,n,i,a,o,s,l){return e=new h9(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ti(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},sT(a),e}function d9(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ru,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function jB(e){if(!e)return Ko;e=e._reactInternals;e:{if(Gl(e)!==e||e.tag!==1)throw Error(Q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ln(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Q(171))}if(e.tag===1){var r=e.type;if(ln(r))return j5(e,r,t)}return t}function YB(e,t,r,n,i,a,o,s,l){return e=CT(r,n,!0,e,i,a,o,s,l),e.context=jB(null),r=e.current,n=Fr(),i=Ho(r),a=za(n,i),a.callback=t??null,Go(r,a,i),e.current.lanes=i,$d(e,i,n),un(e,n),e}function Pm(e,t,r,n){var i=t.current,a=Fr(),o=Ho(i);return r=jB(r),t.context===null?t.context=r:t.pendingContext=r,t=za(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Go(i,t,o),e!==null&&(Mi(e,i,o,a),eg(e,i,o)),o}function ny(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function RD(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function TT(e,t){RD(e,t),(e=e.alternate)&&RD(e,t)}function p9(){return null}var XB=typeof reportError=="function"?reportError:function(e){console.error(e)};function AT(e){this._internalRoot=e}Im.prototype.render=AT.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Q(409));Pm(e,t,null,null)};Im.prototype.unmount=AT.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dl(function(){Pm(null,e,null,null)}),t[Wa]=null}};function Im(e){this._internalRoot=e}Im.prototype.unstable_scheduleHydration=function(e){if(e){var t=T5();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Co.length&&t!==0&&t<Co[r].priority;r++);Co.splice(r,0,e),r===0&&M5(e)}};function MT(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Em(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function OD(){}function v9(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=ny(o);a.call(u)}}var o=YB(t,n,e,0,null,!1,!1,"",OD);return e._reactRootContainer=o,e[Wa]=o.current,qh(e.nodeType===8?e.parentNode:e),Dl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=ny(l);s.call(u)}}var l=CT(e,0,!1,null,null,!1,!1,"",OD);return e._reactRootContainer=l,e[Wa]=l.current,qh(e.nodeType===8?e.parentNode:e),Dl(function(){Pm(t,l,r,n)}),l}function Lm(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=ny(o);s.call(l)}}Pm(t,o,e,i)}else o=v9(r,t,e,i,n);return ny(o)}b5=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=qf(t.pendingLanes);r!==0&&(jC(t,r|1),un(t,Ft()),!(Qe&6)&&(_c=Ft()+500,ls()))}break;case 13:Dl(function(){var n=Ua(e,1);if(n!==null){var i=Fr();Mi(n,e,1,i)}}),TT(e,1)}};YC=function(e){if(e.tag===13){var t=Ua(e,134217728);if(t!==null){var r=Fr();Mi(t,e,134217728,r)}TT(e,134217728)}};C5=function(e){if(e.tag===13){var t=Ho(e),r=Ua(e,t);if(r!==null){var n=Fr();Mi(r,e,t,n)}TT(e,t)}};T5=function(){return ct};A5=function(e,t){var r=ct;try{return ct=e,t()}finally{ct=r}};NS=function(e,t,r){switch(t){case"input":if(kS(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=bm(n);if(!i)throw Error(Q(90));n5(n),kS(n,i)}}}break;case"textarea":a5(e,r);break;case"select":t=r.value,t!=null&&Ku(e,!!r.multiple,t,!1)}};h5=xT;d5=Dl;var g9={usingClientEntryPoint:!1,Events:[Wd,Fu,bm,c5,f5,xT]},vf={findFiberByHostInstance:Js,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},y9={bundleType:vf.bundleType,version:vf.version,rendererPackageName:vf.rendererPackageName,rendererConfig:vf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ro.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=g5(e),e===null?null:e.stateNode},findFiberByHostInstance:vf.findFiberByHostInstance||p9,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{_m=zp.inject(y9),la=zp}catch{}}Ln.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g9;Ln.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!MT(t))throw Error(Q(200));return d9(e,t,null,r)};Ln.createRoot=function(e,t){if(!MT(e))throw Error(Q(299));var r=!1,n="",i=XB;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=CT(e,1,!1,null,null,r,!1,n,i),e[Wa]=t.current,qh(e.nodeType===8?e.parentNode:e),new AT(t)};Ln.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Q(188)):(e=Object.keys(e).join(","),Error(Q(268,e)));return e=g5(t),e=e===null?null:e.stateNode,e};Ln.flushSync=function(e){return Dl(e)};Ln.hydrate=function(e,t,r){if(!Em(t))throw Error(Q(200));return Lm(null,e,t,!0,r)};Ln.hydrateRoot=function(e,t,r){if(!MT(e))throw Error(Q(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=XB;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=YB(t,null,e,1,r??null,i,!1,a,o),e[Wa]=t.current,qh(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Im(t)};Ln.render=function(e,t,r){if(!Em(t))throw Error(Q(200));return Lm(null,e,t,!1,r)};Ln.unmountComponentAtNode=function(e){if(!Em(e))throw Error(Q(40));return e._reactRootContainer?(Dl(function(){Lm(null,null,e,!1,function(){e._reactRootContainer=null,e[Wa]=null})}),!0):!1};Ln.unstable_batchedUpdates=xT;Ln.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Em(r))throw Error(Q(200));if(e==null||e._reactInternals===void 0)throw Error(Q(38));return Lm(e,t,r,!1,n)};Ln.version="18.3.1-next-f1338f8080-20240426";function ZB(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ZB)}catch(e){console.error(e)}}ZB(),Zz.exports=Ln;var DT=Zz.exports;const Bp=ym(DT);var ND=DT;wS.createRoot=ND.createRoot,wS.hydrateRoot=ND.hydrateRoot;const m9=F.createContext(null),M1={didCatch:!1,error:null};class _9 extends F.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=M1}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(M1)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&x9(t.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(M1)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let s=t;if(a){const l={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=F.createElement(n,l);else if(i===null||F.isValidElement(i))s=i;else throw o}return F.createElement(m9.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function x9(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}function S9({error:e}){return H.jsxs("div",{role:"alert",children:[H.jsx("p",{children:"Something went wrong"}),e.message&&H.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",H.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const w9=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function KB(e,t,r){return t&&(Array.isArray(t)?t.map(n=>KB(e,n,r)):typeof t=="object"?qB(t,r):t)}const qB=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:KB(e,i,t)}),{}),b9=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),C9=e=>qB(e,b9),pl=window.templateArgs?C9(window.templateArgs):{};var zz;const T9=!!pl.isReport&&{...pl,charts:(zz=pl.history)==null?void 0:zz.reduce((e,{currentResponseTimePercentiles:t,...r})=>w9(e,{...t,...r}),{})},od={black:"#000",white:"#fff"},eu={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},tu={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ru={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},nu={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},iu={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},gf={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},A9={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}function Ys(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function QB(e){if(!Ys(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=QB(e[r])}),t}function Di(e,t,r={clone:!0}){const n=r.clone?$({},e):e;return Ys(e)&&Ys(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Ys(t[i])&&i in e&&Ys(e[i])?n[i]=Di(e[i],t[i],r):r.clone?n[i]=Ys(t[i])?QB(t[i]):t[i]:n[i]=t[i])}),n}function xc(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Ne(e){if(typeof e!="string")throw new Error(xc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vw(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function JB(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function M9(e,t){return()=>null}function D9(e,t){return F.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function ki(e){return e&&e.ownerDocument||document}function Sc(e){return ki(e).defaultView||window}function k9(e,t){return()=>null}function iy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ay=typeof window<"u"?F.useLayoutEffect:F.useEffect;let zD=0;function P9(e){const[t,r]=F.useState(e),n=e||t;return F.useEffect(()=>{t==null&&(zD+=1,r(`mui-${zD}`))},[t]),n}const BD=$h.useId;function I9(e){if(BD!==void 0){const t=BD();return e??t}return P9(e)}function E9(e,t,r,n,i){return null}function e3({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=F.useRef(e!==void 0),[a,o]=F.useState(t),s=i?e:a,l=F.useCallback(u=>{i||o(u)},[]);return[s,l]}function rl(e){const t=F.useRef(e);return ay(()=>{t.current=e}),F.useCallback((...r)=>(0,t.current)(...r),[])}function Li(...e){return F.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{iy(r,t)})},e)}let Rm=!0,gw=!1,FD;const L9={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function R9(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&L9[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function O9(e){e.metaKey||e.altKey||e.ctrlKey||(Rm=!0)}function D1(){Rm=!1}function N9(){this.visibilityState==="hidden"&&gw&&(Rm=!0)}function z9(e){e.addEventListener("keydown",O9,!0),e.addEventListener("mousedown",D1,!0),e.addEventListener("pointerdown",D1,!0),e.addEventListener("touchstart",D1,!0),e.addEventListener("visibilitychange",N9,!0)}function B9(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Rm||R9(t)}function kT(){const e=F.useCallback(i=>{i!=null&&z9(i.ownerDocument)},[]),t=F.useRef(!1);function r(){return t.current?(gw=!0,window.clearTimeout(FD),FD=window.setTimeout(()=>{gw=!1},100),t.current=!1,!0):!1}function n(i){return B9(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function F9(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function PT(e,t){const r=$({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=$({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=$({},a),Object.keys(i).forEach(o=>{r[n][o]=PT(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function $t(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const VD=e=>e,V9=()=>{let e=VD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=VD}}},IT=V9(),G9={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ot(e,t,r="Mui"){const n=G9[t];return n?`${r}-${n}`:`${IT.generate(e)}-${t}`}function Zt(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ot(e,i,r)}),n}const kl="$$material";function Ge(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function t3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var $9=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|agent|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|agentContentUnits|agentTransform|agentUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,H9=t3(function(e){return $9.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function W9(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function U9(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var j9=function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(U9(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=W9(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Tr="-ms-",oy="-moz-",rt="-webkit-",r3="comm",ET="rule",LT="decl",Y9="@import",n3="@keyframes",X9="@layer",Z9=Math.abs,Om=String.fromCharCode,K9=Object.assign;function q9(e,t){return vr(e,0)^45?(((t<<2^vr(e,0))<<2^vr(e,1))<<2^vr(e,2))<<2^vr(e,3):0}function i3(e){return e.trim()}function Q9(e,t){return(e=t.exec(e))?e[0]:e}function nt(e,t,r){return e.replace(t,r)}function yw(e,t){return e.indexOf(t)}function vr(e,t){return e.charCodeAt(t)|0}function sd(e,t,r){return e.slice(t,r)}function qi(e){return e.length}function RT(e){return e.length}function Fp(e,t){return t.push(e),e}function J9(e,t){return e.map(t).join("")}var Nm=1,wc=1,a3=0,hn=0,Ut=0,Vc="";function zm(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Nm,column:wc,length:o,return:""}}function yf(e,t){return K9(zm("",null,null,"",null,null,0),e,{length:-e.length},t)}function e7(){return Ut}function t7(){return Ut=hn>0?vr(Vc,--hn):0,wc--,Ut===10&&(wc=1,Nm--),Ut}function An(){return Ut=hn<a3?vr(Vc,hn++):0,wc++,Ut===10&&(wc=1,Nm++),Ut}function ca(){return vr(Vc,hn)}function sg(){return hn}function jd(e,t){return sd(Vc,e,t)}function ld(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function o3(e){return Nm=wc=1,a3=qi(Vc=e),hn=0,[]}function s3(e){return Vc="",e}function lg(e){return i3(jd(hn-1,mw(e===91?e+2:e===40?e+1:e)))}function r7(e){for(;(Ut=ca())&&Ut<33;)An();return ld(e)>2||ld(Ut)>3?"":" "}function n7(e,t){for(;--t&&An()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return jd(e,sg()+(t<6&&ca()==32&&An()==32))}function mw(e){for(;An();)switch(Ut){case e:return hn;case 34:case 39:e!==34&&e!==39&&mw(Ut);break;case 40:e===41&&mw(e);break;case 92:An();break}return hn}function i7(e,t){for(;An()&&e+Ut!==57;)if(e+Ut===84&&ca()===47)break;return"/*"+jd(t,hn-1)+"*"+Om(e===47?e:An())}function a7(e){for(;!ld(ca());)An();return jd(e,hn)}function o7(e){return s3(ug("",null,null,null,[""],e=o3(e),0,[0],e))}function ug(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,h=0,d=0,p=0,v=1,g=1,y=1,m=0,_="",x=i,w=a,S=n,b=_;g;)switch(p=m,m=An()){case 40:if(p!=108&&vr(b,f-1)==58){yw(b+=nt(lg(m),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:b+=lg(m);break;case 9:case 10:case 13:case 32:b+=r7(p);break;case 92:b+=n7(sg()-1,7);continue;case 47:switch(ca()){case 42:case 47:Fp(s7(i7(An(),sg()),t,r),l);break;default:b+="/"}break;case 123*v:s[u++]=qi(b)*y;case 125*v:case 59:case 0:switch(m){case 0:case 125:g=0;case 59+c:y==-1&&(b=nt(b,/\f/g,"")),d>0&&qi(b)-f&&Fp(d>32?$D(b+";",n,r,f-1):$D(nt(b," ","")+";",n,r,f-2),l);break;case 59:b+=";";default:if(Fp(S=GD(b,t,r,u,c,i,s,_,x=[],w=[],f),a),m===123)if(c===0)ug(b,t,S,S,x,a,f,s,w);else switch(h===99&&vr(b,3)===110?100:h){case 100:case 108:case 109:case 115:ug(e,S,S,n&&Fp(GD(e,S,S,0,0,i,s,_,i,x=[],f),w),i,w,f,s,n?x:w);break;default:ug(b,S,S,S,[""],w,0,s,w)}}u=c=d=0,v=y=1,_=b="",f=o;break;case 58:f=1+qi(b),d=p;default:if(v<1){if(m==123)--v;else if(m==125&&v++==0&&t7()==125)continue}switch(b+=Om(m),m*v){case 38:y=c>0?1:(b+="\f",-1);break;case 44:s[u++]=(qi(b)-1)*y,y=1;break;case 64:ca()===45&&(b+=lg(An())),h=ca(),c=f=qi(_=b+=a7(sg())),m++;break;case 45:p===45&&qi(b)==2&&(v=0)}}return a}function GD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,h=i===0?a:[""],d=RT(h),p=0,v=0,g=0;p<n;++p)for(var y=0,m=sd(e,f+1,f=Z9(v=o[p])),_=e;y<d;++y)(_=i3(v>0?h[y]+" "+m:nt(m,/&\f/g,h[y])))&&(l[g++]=_);return zm(e,t,r,i===0?ET:s,l,u,c)}function s7(e,t,r){return zm(e,t,r,r3,Om(e7()),sd(e,2,-2),0)}function $D(e,t,r,n){return zm(e,t,r,LT,sd(e,0,n),sd(e,n+1,-1),n)}function rc(e,t){for(var r="",n=RT(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function l7(e,t,r,n){switch(e.type){case X9:if(e.children.length)break;case Y9:case LT:return e.return=e.return||e.value;case r3:return"";case n3:return e.return=e.value+"{"+rc(e.children,n)+"}";case ET:e.value=e.props.join(",")}return qi(r=rc(e.children,n))?e.return=e.value+"{"+r+"}":""}function u7(e){var t=RT(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function c7(e){return function(t){t.root||(t=t.return)&&e(t)}}var f7=function(t,r,n){for(var i=0,a=0;i=a,a=ca(),i===38&&a===12&&(r[n]=1),!ld(a);)An();return jd(t,hn)},h7=function(t,r){var n=-1,i=44;do switch(ld(i)){case 0:i===38&&ca()===12&&(r[n]=1),t[n]+=f7(hn-1,r,n);break;case 2:t[n]+=lg(i);break;case 4:if(i===44){t[++n]=ca()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Om(i)}while(i=An());return t},d7=function(t,r){return s3(h7(o3(t),r))},HD=new WeakMap,p7=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!HD.get(n))&&!i){HD.set(t,!0);for(var a=[],o=d7(r,a),s=n.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},v7=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function l3(e,t){switch(q9(e,t)){case 5103:return rt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return rt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rt+e+oy+e+Tr+e+e;case 6828:case 4268:return rt+e+Tr+e+e;case 6165:return rt+e+Tr+"flex-"+e+e;case 5187:return rt+e+nt(e,/(\w+).+(:[^]+)/,rt+"box-$1$2"+Tr+"flex-$1$2")+e;case 5443:return rt+e+Tr+"flex-item-"+nt(e,/flex-|-self/,"")+e;case 4675:return rt+e+Tr+"flex-line-pack"+nt(e,/align-content|flex-|-self/,"")+e;case 5548:return rt+e+Tr+nt(e,"shrink","negative")+e;case 5292:return rt+e+Tr+nt(e,"basis","preferred-size")+e;case 6060:return rt+"box-"+nt(e,"-grow","")+rt+e+Tr+nt(e,"grow","positive")+e;case 4554:return rt+nt(e,/([^-])(transform)/g,"$1"+rt+"$2")+e;case 6187:return nt(nt(nt(e,/(zoom-|grab)/,rt+"$1"),/(image-set)/,rt+"$1"),e,"")+e;case 5495:case 3959:return nt(e,/(image-set\([^]*)/,rt+"$1$`$1");case 4968:return nt(nt(e,/(.+:)(flex-)?(.*)/,rt+"box-pack:$3"+Tr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+rt+e+e;case 4095:case 3583:case 4068:case 2532:return nt(e,/(.+)-inline(.+)/,rt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qi(e)-1-t>6)switch(vr(e,t+1)){case 109:if(vr(e,t+4)!==45)break;case 102:return nt(e,/(.+:)(.+)-([^]+)/,"$1"+rt+"$2-$3$1"+oy+(vr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~yw(e,"stretch")?l3(nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(vr(e,t+1)!==115)break;case 6444:switch(vr(e,qi(e)-3-(~yw(e,"!important")&&10))){case 107:return nt(e,":",":"+rt)+e;case 101:return nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rt+(vr(e,14)===45?"inline-":"")+"box$3$1"+rt+"$2$3$1"+Tr+"$2box$3")+e}break;case 5936:switch(vr(e,t+11)){case 114:return rt+e+Tr+nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rt+e+Tr+nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rt+e+Tr+nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rt+e+Tr+e+e}return e}var g7=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case LT:t.return=l3(t.value,t.length);break;case n3:return rc([yf(t,{value:nt(t.value,"@","@"+rt)})],i);case ET:if(t.length)return J9(t.props,function(a){switch(Q9(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rc([yf(t,{props:[nt(a,/:(read-\w+)/,":"+oy+"$1")]})],i);case"::placeholder":return rc([yf(t,{props:[nt(a,/:(plac\w+)/,":"+rt+"input-$1")]}),yf(t,{props:[nt(a,/:(plac\w+)/,":"+oy+"$1")]}),yf(t,{props:[nt(a,/:(plac\w+)/,Tr+"input-$1")]})],i)}return""})}},y7=[g7],m7=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||y7,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)a[g[y]]=!0;s.push(v)});var l,u=[p7,v7];{var c,f=[l7,c7(function(v){c.insert(v)})],h=u7(u.concat(i,f)),d=function(g){return rc(o7(g),h)};l=function(g,y,m,_){c=m,d(g?g+"{"+y.styles+"}":y.styles),_&&(p.inserted[y.name]=!0)}}var p={key:r,sheet:new j9({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return p.sheet.hydrate(s),p},u3={exports:{}},ht={};/** @license React v16.13.1
67
- * react-is.production.min.js
68
- *
69
- * Copyright (c) Facebook, Inc. and its affiliates.
70
- *
71
- * This source code is licensed under the MIT license found in the
72
- * LICENSE file in the root directory of this source tree.
73
- */var ur=typeof Symbol=="function"&&Symbol.for,OT=ur?Symbol.for("react.element"):60103,NT=ur?Symbol.for("react.portal"):60106,Bm=ur?Symbol.for("react.fragment"):60107,Fm=ur?Symbol.for("react.strict_mode"):60108,Vm=ur?Symbol.for("react.profiler"):60114,Gm=ur?Symbol.for("react.provider"):60109,$m=ur?Symbol.for("react.context"):60110,zT=ur?Symbol.for("react.async_mode"):60111,Hm=ur?Symbol.for("react.concurrent_mode"):60111,Wm=ur?Symbol.for("react.forward_ref"):60112,Um=ur?Symbol.for("react.suspense"):60113,_7=ur?Symbol.for("react.suspense_list"):60120,jm=ur?Symbol.for("react.memo"):60115,Ym=ur?Symbol.for("react.lazy"):60116,x7=ur?Symbol.for("react.block"):60121,S7=ur?Symbol.for("react.fundamental"):60117,w7=ur?Symbol.for("react.responder"):60118,b7=ur?Symbol.for("react.scope"):60119;function On(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case OT:switch(e=e.type,e){case zT:case Hm:case Bm:case Vm:case Fm:case Um:return e;default:switch(e=e&&e.$$typeof,e){case $m:case Wm:case Ym:case jm:case Gm:return e;default:return t}}case NT:return t}}}function c3(e){return On(e)===Hm}ht.AsyncMode=zT;ht.ConcurrentMode=Hm;ht.ContextConsumer=$m;ht.ContextProvider=Gm;ht.Element=OT;ht.ForwardRef=Wm;ht.Fragment=Bm;ht.Lazy=Ym;ht.Memo=jm;ht.Portal=NT;ht.Profiler=Vm;ht.StrictMode=Fm;ht.Suspense=Um;ht.isAsyncMode=function(e){return c3(e)||On(e)===zT};ht.isConcurrentMode=c3;ht.isContextConsumer=function(e){return On(e)===$m};ht.isContextProvider=function(e){return On(e)===Gm};ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===OT};ht.isForwardRef=function(e){return On(e)===Wm};ht.isFragment=function(e){return On(e)===Bm};ht.isLazy=function(e){return On(e)===Ym};ht.isMemo=function(e){return On(e)===jm};ht.isPortal=function(e){return On(e)===NT};ht.isProfiler=function(e){return On(e)===Vm};ht.isStrictMode=function(e){return On(e)===Fm};ht.isSuspense=function(e){return On(e)===Um};ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bm||e===Hm||e===Vm||e===Fm||e===Um||e===_7||typeof e=="object"&&e!==null&&(e.$$typeof===Ym||e.$$typeof===jm||e.$$typeof===Gm||e.$$typeof===$m||e.$$typeof===Wm||e.$$typeof===S7||e.$$typeof===w7||e.$$typeof===b7||e.$$typeof===x7)};ht.typeOf=On;u3.exports=ht;var C7=u3.exports,f3=C7,T7={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},A7={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h3={};h3[f3.ForwardRef]=T7;h3[f3.Memo]=A7;var M7=!0;function D7(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var d3=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||M7===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},p3=function(t,r,n){d3(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function k7(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var P7={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},I7=/[A-Z]|^ms/g,E7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,v3=function(t){return t.charCodeAt(1)===45},WD=function(t){return t!=null&&typeof t!="boolean"},k1=t3(function(e){return v3(e)?e:e.replace(I7,"-$&").toLowerCase()}),UD=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(E7,function(n,i,a){return Qi={name:i,styles:a,next:Qi},i})}return P7[t]!==1&&!v3(t)&&typeof r=="number"&&r!==0?r+"px":r};function ud(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Qi={name:r.name,styles:r.styles,next:Qi},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Qi={name:n.name,styles:n.styles,next:Qi},n=n.next;var i=r.styles+";";return i}return L7(e,t,r)}case"function":{if(e!==void 0){var a=Qi,o=r(e);return Qi=a,ud(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function L7(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ud(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object")t!=null&&t[o]!==void 0?n+=a+"{"+t[o]+"}":WD(o)&&(n+=k1(a)+":"+UD(a,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)WD(o[s])&&(n+=k1(a)+":"+UD(a,o[s])+";");else{var l=ud(e,t,o);switch(a){case"animation":case"animationName":{n+=k1(a)+":"+l+";";break}default:n+=a+"{"+l+"}"}}}return n}var jD=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Qi,BT=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";Qi=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=ud(n,r,o)):a+=o[0];for(var s=1;s<t.length;s++)a+=ud(n,r,t[s]),i&&(a+=o[s]);jD.lastIndex=0;for(var l="",u;(u=jD.exec(a))!==null;)l+="-"+u[1];var c=k7(a)+l;return{name:c,styles:a,next:Qi}},R7=function(t){return t()},g3=$h.useInsertionEffect?$h.useInsertionEffect:!1,O7=g3||R7,YD=g3||F.useLayoutEffect,y3=F.createContext(typeof HTMLElement<"u"?m7({key:"css"}):null);y3.Provider;var m3=function(t){return F.forwardRef(function(r,n){var i=F.useContext(y3);return t(r,i,n)})},Xm=F.createContext({}),N7=m3(function(e,t){var r=e.styles,n=BT([r],void 0,F.useContext(Xm)),i=F.useRef();return YD(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),YD(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&p3(t,n.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function z7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return BT(t)}var FT=function(){var t=z7.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},B7=H9,F7=function(t){return t!=="theme"},XD=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?B7:F7},ZD=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},V7=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return d3(r,n,i),O7(function(){return p3(r,n,i)}),null},G7=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=ZD(t,r,n),l=s||XD(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var h=c.length,d=1;d<h;d++)f.push(c[d],c[0][d])}var p=m3(function(v,g,y){var m=u&&v.as||i,_="",x=[],w=v;if(v.theme==null){w={};for(var S in v)w[S]=v[S];w.theme=F.useContext(Xm)}typeof v.className=="string"?_=D7(g.registered,x,v.className):v.className!=null&&(_=v.className+" ");var b=BT(f.concat(x),g.registered,w);_+=g.key+"-"+b.name,o!==void 0&&(_+=" "+o);var C=u&&s===void 0?XD(m):l,T={};for(var A in v)u&&A==="as"||C(A)&&(T[A]=v[A]);return T.className=_,T.ref=y,F.createElement(F.Fragment,null,F.createElement(V7,{cache:g,serialized:b,isStringTag:typeof m=="string"}),F.createElement(m,T))});return p.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=i,p.__emotion_styles=f,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+o}}),p.withComponent=function(v,g){return e(v,$({},r,g,{shouldForwardProp:ZD(p,g,!0)})).apply(void 0,f)},p}},$7=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","agent","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],_w=G7.bind();$7.forEach(function(e){_w[e]=_w(e)});function H7(e){return e==null||Object.keys(e).length===0}function W7(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(H7(i)?r:i):t;return H.jsx(N7,{styles:n})}function _3(e,t){return _w(e,t)}const U7=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},j7=["values","unit","step"],Y7=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>$({},r,{[n.key]:n.val}),{})};function X7(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Ge(e,j7),a=Y7(t),o=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function u(h,d){const p=o.indexOf(d);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(p!==-1&&typeof t[o[p]]=="number"?t[o[p]]:d)-n/100}${r})`}function c(h){return o.indexOf(h)+1<o.length?u(h,o[o.indexOf(h)+1]):s(h)}function f(h){const d=o.indexOf(h);return d===0?s(o[1]):d===o.length-1?l(o[d]):u(h,o[o.indexOf(h)+1]).replace("@media","@media not all and")}return $({keys:o,values:a,up:s,down:l,between:u,only:c,not:f,unit:r},i)}const Z7={borderRadius:4};function bh(e,t){return t?Di(e,t,{clone:!1}):e}const VT={xs:0,sm:600,md:900,lg:1200,xl:1536},KD={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${VT[e]}px)`};function Ri(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||KD;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||KD;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||VT).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function x3(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function S3(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function K7(e,...t){const r=x3(e),n=[r,...t].reduce((i,a)=>Di(i,a),{});return S3(Object.keys(r),n)}function q7(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function P1({values:e,breakpoints:t,base:r}){const n=r||q7(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,l)=>(Array.isArray(e)?(o[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function bc(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function sy(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=bc(e,r)||n,t&&(i=t(i,n,e)),i}function st(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=bc(l,n)||{};return Ri(o,s,f=>{let h=sy(u,i,f);return f===h&&typeof f=="string"&&(h=sy(u,i,`${t}${f==="default"?"":Ne(f)}`,f)),r===!1?h:{[r]:h}})};return a.propTypes={},a.filterProps=[t],a}function Q7(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const J7={m:"margin",p:"padding"},ej={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tj=Q7(e=>{if(e.length>2)if(qD[e])e=qD[e];else return[e];const[t,r]=e.split(""),n=J7[t],i=ej[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),GT=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$T=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...GT,...$T];function Yd(e,t,r,n){var i;const a=(i=bc(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function HT(e){return Yd(e,"spacing",8)}function Pl(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function rj(e,t){return r=>e.reduce((n,i)=>(n[i]=Pl(t,r),n),{})}function nj(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=tj(r),a=rj(i,n),o=e[r];return Ri(e,o,a)}function w3(e,t){const r=HT(e.theme);return Object.keys(e).map(n=>nj(e,t,n,r)).reduce(bh,{})}function Pt(e){return w3(e,GT)}Pt.propTypes={};Pt.filterProps=GT;function It(e){return w3(e,$T)}It.propTypes={};It.filterProps=$T;function ij(e=8){if(e.mui)return e;const t=HT({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function Zm(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?bh(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ea(e){return typeof e!="number"?e:`${e}px solid`}const aj=st({prop:"border",themeKey:"borders",transform:ea}),oj=st({prop:"borderTop",themeKey:"borders",transform:ea}),sj=st({prop:"borderRight",themeKey:"borders",transform:ea}),lj=st({prop:"borderBottom",themeKey:"borders",transform:ea}),uj=st({prop:"borderLeft",themeKey:"borders",transform:ea}),cj=st({prop:"borderColor",themeKey:"palette"}),fj=st({prop:"borderTopColor",themeKey:"palette"}),hj=st({prop:"borderRightColor",themeKey:"palette"}),dj=st({prop:"borderBottomColor",themeKey:"palette"}),pj=st({prop:"borderLeftColor",themeKey:"palette"}),Km=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yd(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Pl(t,n)});return Ri(e,e.borderRadius,r)}return null};Km.propTypes={};Km.filterProps=["borderRadius"];Zm(aj,oj,sj,lj,uj,cj,fj,hj,dj,pj,Km);const qm=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yd(e.theme,"spacing",8),r=n=>({gap:Pl(t,n)});return Ri(e,e.gap,r)}return null};qm.propTypes={};qm.filterProps=["gap"];const Qm=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yd(e.theme,"spacing",8),r=n=>({columnGap:Pl(t,n)});return Ri(e,e.columnGap,r)}return null};Qm.propTypes={};Qm.filterProps=["columnGap"];const Jm=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yd(e.theme,"spacing",8),r=n=>({rowGap:Pl(t,n)});return Ri(e,e.rowGap,r)}return null};Jm.propTypes={};Jm.filterProps=["rowGap"];const vj=st({prop:"gridColumn"}),gj=st({prop:"gridRow"}),yj=st({prop:"gridAutoFlow"}),mj=st({prop:"gridAutoColumns"}),_j=st({prop:"gridAutoRows"}),xj=st({prop:"gridTemplateColumns"}),Sj=st({prop:"gridTemplateRows"}),wj=st({prop:"gridTemplateAreas"}),bj=st({prop:"gridArea"});Zm(qm,Qm,Jm,vj,gj,yj,mj,_j,xj,Sj,wj,bj);function nc(e,t){return t==="grey"?t:e}const Cj=st({prop:"color",themeKey:"palette",transform:nc}),Tj=st({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nc}),Aj=st({prop:"backgroundColor",themeKey:"palette",transform:nc});Zm(Cj,Tj,Aj);function _n(e){return e<=1&&e!==0?`${e*100}%`:e}const Mj=st({prop:"width",transform:_n}),WT=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||VT[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:_n(r)}};return Ri(e,e.maxWidth,t)}return null};WT.filterProps=["maxWidth"];const Dj=st({prop:"minWidth",transform:_n}),kj=st({prop:"height",transform:_n}),Pj=st({prop:"maxHeight",transform:_n}),Ij=st({prop:"minHeight",transform:_n});st({prop:"size",cssProperty:"width",transform:_n});st({prop:"size",cssProperty:"height",transform:_n});const Ej=st({prop:"boxSizing"});Zm(Mj,WT,Dj,kj,Pj,Ij,Ej);const e0={border:{themeKey:"borders",transform:ea},borderTop:{themeKey:"borders",transform:ea},borderRight:{themeKey:"borders",transform:ea},borderBottom:{themeKey:"borders",transform:ea},borderLeft:{themeKey:"borders",transform:ea},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Km},color:{themeKey:"palette",transform:nc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nc},backgroundColor:{themeKey:"palette",transform:nc},p:{style:It},pt:{style:It},pr:{style:It},pb:{style:It},pl:{style:It},px:{style:It},py:{style:It},padding:{style:It},paddingTop:{style:It},paddingRight:{style:It},paddingBottom:{style:It},paddingLeft:{style:It},paddingX:{style:It},paddingY:{style:It},paddingInline:{style:It},paddingInlineStart:{style:It},paddingInlineEnd:{style:It},paddingBlock:{style:It},paddingBlockStart:{style:It},paddingBlockEnd:{style:It},m:{style:Pt},mt:{style:Pt},mr:{style:Pt},mb:{style:Pt},ml:{style:Pt},mx:{style:Pt},my:{style:Pt},margin:{style:Pt},marginTop:{style:Pt},marginRight:{style:Pt},marginBottom:{style:Pt},marginLeft:{style:Pt},marginX:{style:Pt},marginY:{style:Pt},marginInline:{style:Pt},marginInlineStart:{style:Pt},marginInlineEnd:{style:Pt},marginBlock:{style:Pt},marginBlockStart:{style:Pt},marginBlockEnd:{style:Pt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:qm},rowGap:{style:Jm},columnGap:{style:Qm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_n},maxWidth:{style:WT},minWidth:{transform:_n},height:{transform:_n},maxHeight:{transform:_n},minHeight:{transform:_n},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Lj(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Rj(e,t){return typeof e=="function"?e(t):e}function Oj(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const h=bc(i,u)||{};return f?f(o):Ri(o,n,p=>{let v=sy(h,c,p);return p===v&&typeof p=="string"&&(v=sy(h,c,`${r}${p==="default"?"":Ne(p)}`,p)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:e0;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=x3(a.breakpoints),f=Object.keys(c);let h=c;return Object.keys(u).forEach(d=>{const p=Rj(u[d],a);if(p!=null)if(typeof p=="object")if(o[d])h=bh(h,e(d,p,a,o));else{const v=Ri({theme:a},p,g=>({[d]:g}));Lj(v,p)?h[d]=t({sx:p,theme:a}):h=bh(h,v)}else h=bh(h,e(d,p,a,o))}),S3(f,h)}return Array.isArray(i)?i.map(s):s(i)}return t}const Xd=Oj();Xd.filterProps=["sx"];const Nj=["breakpoints","palette","spacing","shape"];function Zd(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=Ge(e,Nj),s=X7(r),l=ij(i);let u=Di({breakpoints:s,direction:"ltr",components:{},palette:$({mode:"light"},n),spacing:l,shape:$({},Z7,a)},o);return u=t.reduce((c,f)=>Di(c,f),u),u.unstable_sxConfig=$({},e0,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return Xd({sx:f,theme:this})},u}function zj(e){return Object.keys(e).length===0}function b3(e=null){const t=F.useContext(Xm);return!t||zj(t)?e:t}const Bj=Zd();function t0(e=Bj){return b3(e)}function Fj({styles:e,themeId:t,defaultTheme:r={}}){const n=t0(r),i=typeof e=="function"?e(t&&n[t]||n):e;return H.jsx(W7,{styles:i})}const Vj=["sx"],Gj=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:e0;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function UT(e){const{sx:t}=e,r=Ge(e,Vj),{systemProps:n,otherProps:i}=Gj(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Ys(s)?$({},n,s):n}:a=$({},n,t),$({},i,{sx:a})}function C3(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=C3(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ue(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=C3(e))&&(n&&(n+=" "),n+=t);return n}const $j=["className","component"];function Hj(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,a=_3("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Xd);return F.forwardRef(function(l,u){const c=t0(r),f=UT(l),{className:h,component:d="div"}=f,p=Ge(f,$j);return H.jsx(a,$({as:d,ref:u,className:Ue(h,i?i(n):n),theme:t&&c[t]||c},p))})}const Wj=["variant"];function QD(e){return e.length===0}function T3(e){const{variant:t}=e,r=Ge(e,Wj);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=QD(n)?e[i]:Ne(e[i]):n+=`${QD(n)?i:Ne(i)}${Ne(e[i].toString())}`}),n}const Uj=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function jj(e){return Object.keys(e).length===0}function Yj(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Xj=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Zj=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=T3(i.props);n[a]=i.style}),n},Kj=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[T3(l.props)])}),o};function cg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qj=Zd(),Qj=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function mf({defaultTheme:e,theme:t,themeId:r}){return jj(t)?e:t[r]||t}function Jj(e){return e?(t,r)=>r[e]:null}function A3(e={}){const{themeId:t,defaultTheme:r=qj,rootShouldForwardProp:n=cg,slotShouldForwardProp:i=cg}=e,a=o=>Xd($({},o,{theme:mf($({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{U7(o,x=>x.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:h=Jj(Qj(u))}=s,d=Ge(s,Uj),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,y=cg;u==="Root"||u==="root"?y=n:u?y=i:Yj(o)&&(y=void 0);const m=_3(o,$({shouldForwardProp:y,label:g},d)),_=(x,...w)=>{const S=w?w.map(A=>typeof A=="function"&&A.__emotion_real!==A?M=>A($({},M,{theme:mf($({},M,{defaultTheme:r,themeId:t}))})):A):[];let b=x;l&&h&&S.push(A=>{const M=mf($({},A,{defaultTheme:r,themeId:t})),k=Xj(l,M);if(k){const P={};return Object.entries(k).forEach(([L,E])=>{P[L]=typeof E=="function"?E($({},A,{theme:M})):E}),h(A,P)}return null}),l&&!p&&S.push(A=>{const M=mf($({},A,{defaultTheme:r,themeId:t}));return Kj(A,Zj(l,M),M,l)}),v||S.push(a);const C=S.length-w.length;if(Array.isArray(x)&&C>0){const A=new Array(C).fill("");b=[...x,...A],b.raw=[...x.raw,...A]}else typeof x=="function"&&x.__emotion_real!==x&&(b=A=>x($({},A,{theme:mf($({},A,{defaultTheme:r,themeId:t}))})));const T=m(b,...S);return o.muiName&&(T.muiName=o.muiName),T};return m.withConfig&&(_.withConfig=m.withConfig),_}}const M3=A3();function eY(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:PT(t.components[r].defaultProps,n)}function jT({props:e,name:t,defaultTheme:r,themeId:n}){let i=t0(r);return n&&(i=i[n]||i),eY({theme:i,name:t,props:e})}function YT(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function tY(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Il(e){if(e.type)return e;if(e.charAt(0)==="#")return Il(tY(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(xc(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(xc(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function r0(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function rY(e){e=Il(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),r0({type:s,values:l})}function JD(e){e=Il(e);let t=e.type==="hsl"||e.type==="hsla"?Il(rY(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nY(e,t){const r=JD(e),n=JD(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function wn(e,t){return e=Il(e),t=YT(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,r0(e)}function XT(e,t){if(e=Il(e),t=YT(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return r0(e)}function ZT(e,t){if(e=Il(e),t=YT(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return r0(e)}const D3=F.createContext(null);function k3(){return F.useContext(D3)}const iY=typeof Symbol=="function"&&Symbol.for,aY=iY?Symbol.for("mui.nested"):"__THEME_NESTED__";function oY(e,t){return typeof t=="function"?t(e):$({},e,t)}function sY(e){const{children:t,theme:r}=e,n=k3(),i=F.useMemo(()=>{const a=n===null?r:oY(n,r);return a!=null&&(a[aY]=n!==null),a},[r,n]);return H.jsx(D3.Provider,{value:i,children:t})}const ek={};function tk(e,t,r,n=!1){return F.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?$({},t,{[e]:a}):a;return n?()=>o:o}return e?$({},t,{[e]:r}):$({},t,r)},[e,t,r,n])}function lY(e){const{children:t,theme:r,themeId:n}=e,i=b3(ek),a=k3()||ek,o=tk(n,i,r),s=tk(n,a,r,!0);return H.jsx(sY,{theme:s,children:H.jsx(Xm.Provider,{value:o,children:t})})}const uY=["className","component","disableGutters","fixed","maxWidth","classes"],cY=Zd(),fY=M3("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ne(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),hY=e=>jT({props:e,name:"MuiContainer",defaultTheme:cY}),dY=(e,t)=>{const r=l=>Ot(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Ne(String(o))}`,i&&"fixed",a&&"disableGutters"]};return $t(s,r,n)};function pY(e={}){const{createStyledComponent:t=fY,useThemeProps:r=hY,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>$({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>$({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return F.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:h=!1,fixed:d=!1,maxWidth:p="lg"}=u,v=Ge(u,uY),g=$({},u,{component:f,disableGutters:h,fixed:d,maxWidth:p}),y=dY(g,n);return H.jsx(i,$({as:f,ownerState:g,className:Ue(y.root,c),ref:l},v))})}const vY=["component","direction","spacing","divider","children","className","useFlexGap"],gY=Zd(),yY=M3("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function mY(e){return jT({props:e,name:"MuiStack",defaultTheme:gY})}function _Y(e,t){const r=F.Children.toArray(e).filter(Boolean);return r.reduce((n,i,a)=>(n.push(i),a<r.length-1&&n.push(F.cloneElement(t,{key:`separator-${a}`})),n),[])}const xY=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],SY=({ownerState:e,theme:t})=>{let r=$({display:"flex",flexDirection:"column"},Ri({theme:t},P1({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=HT(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=P1({values:e.direction,base:i}),o=P1({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const h=u>0?a[c[u-1]]:"column";a[l]=h}}),r=Di(r,Ri({theme:t},o,(l,u)=>e.useFlexGap?{gap:Pl(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${xY(u?a[u]:e.direction)}`]:Pl(n,l)}}))}return r=K7(t.breakpoints,r),r};function wY(e={}){const{createStyledComponent:t=yY,useThemeProps:r=mY,componentName:n="MuiStack"}=e,i=()=>$t({root:["root"]},l=>Ot(n,l),{}),a=t(SY);return F.forwardRef(function(l,u){const c=r(l),f=UT(c),{component:h="div",direction:d="column",spacing:p=0,divider:v,children:g,className:y,useFlexGap:m=!1}=f,_=Ge(f,vY),x={direction:d,spacing:p,useFlexGap:m},w=i();return H.jsx(a,$({as:h,ownerState:x,ref:u,className:Ue(w.root,y)},_,{children:v?_Y(g,v):g}))})}function bY(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const CY=["mode","contrastThreshold","tonalOffset"],rk={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:od.white,default:od.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},I1={text:{primary:od.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:od.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function nk(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ZT(e.main,i):t==="dark"&&(e.dark=XT(e.main,a)))}function TY(e="light"){return e==="dark"?{main:ru[200],light:ru[50],dark:ru[400]}:{main:ru[700],light:ru[400],dark:ru[800]}}function AY(e="light"){return e==="dark"?{main:tu[200],light:tu[50],dark:tu[400]}:{main:tu[500],light:tu[300],dark:tu[700]}}function MY(e="light"){return e==="dark"?{main:eu[500],light:eu[300],dark:eu[700]}:{main:eu[700],light:eu[400],dark:eu[800]}}function DY(e="light"){return e==="dark"?{main:nu[400],light:nu[300],dark:nu[700]}:{main:nu[700],light:nu[500],dark:nu[900]}}function kY(e="light"){return e==="dark"?{main:iu[400],light:iu[300],dark:iu[700]}:{main:iu[800],light:iu[500],dark:iu[900]}}function PY(e="light"){return e==="dark"?{main:gf[400],light:gf[300],dark:gf[700]}:{main:"#ed6c02",light:gf[500],dark:gf[900]}}function IY(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Ge(e,CY),a=e.primary||TY(t),o=e.secondary||AY(t),s=e.error||MY(t),l=e.info||DY(t),u=e.success||kY(t),c=e.warning||PY(t);function f(v){return nY(v,I1.text.primary)>=r?I1.text.primary:rk.text.primary}const h=({color:v,name:g,mainShade:y=500,lightShade:m=300,darkShade:_=700})=>{if(v=$({},v),!v.main&&v[y]&&(v.main=v[y]),!v.hasOwnProperty("main"))throw new Error(xc(11,g?` (${g})`:"",y));if(typeof v.main!="string")throw new Error(xc(12,g?` (${g})`:"",JSON.stringify(v.main)));return nk(v,"light",m,n),nk(v,"dark",_,n),v.contrastText||(v.contrastText=f(v.main)),v},d={dark:I1,light:rk};return Di($({common:$({},od),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:A9,contrastThreshold:r,getContrastText:f,augmentColor:h,tonalOffset:n},d[t]),i)}const EY=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function LY(e){return Math.round(e*1e5)/1e5}const ik={textTransform:"uppercase"},ak='"Roboto", "Helvetica", "Arial", sans-serif';function RY(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ak,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,h=Ge(r,EY),d=i/14,p=f||(y=>`${y/u*d}rem`),v=(y,m,_,x,w)=>$({fontFamily:n,fontWeight:y,fontSize:p(m),lineHeight:_},n===ak?{letterSpacing:`${LY(x/m)}em`}:{},w,c),g={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(s,14,1.75,.4,ik),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,ik),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Di($({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),h,{clone:!1})}const OY=.2,NY=.14,zY=.12;function wt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${OY})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${NY})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zY})`].join(",")}const BY=["none",wt(0,2,1,-1,0,1,1,0,0,1,3,0),wt(0,3,1,-2,0,2,2,0,0,1,5,0),wt(0,3,3,-2,0,3,4,0,0,1,8,0),wt(0,2,4,-1,0,4,5,0,0,1,10,0),wt(0,3,5,-1,0,5,8,0,0,1,14,0),wt(0,3,5,-1,0,6,10,0,0,1,18,0),wt(0,4,5,-2,0,7,10,1,0,2,16,1),wt(0,5,5,-3,0,8,10,1,0,3,14,2),wt(0,5,6,-3,0,9,12,1,0,3,16,2),wt(0,6,6,-3,0,10,14,1,0,4,18,3),wt(0,6,7,-4,0,11,15,1,0,4,20,3),wt(0,7,8,-4,0,12,17,2,0,5,22,4),wt(0,7,8,-4,0,13,19,2,0,5,24,4),wt(0,7,9,-4,0,14,21,2,0,5,26,4),wt(0,8,9,-5,0,15,22,2,0,6,28,5),wt(0,8,10,-5,0,16,24,2,0,6,30,5),wt(0,8,11,-5,0,17,26,2,0,6,32,5),wt(0,9,11,-5,0,18,28,2,0,7,34,6),wt(0,9,12,-6,0,19,29,2,0,7,36,6),wt(0,10,13,-6,0,20,31,3,0,8,38,7),wt(0,10,13,-6,0,21,33,3,0,8,40,7),wt(0,10,14,-6,0,22,35,3,0,8,42,7),wt(0,11,14,-7,0,23,36,3,0,9,44,8),wt(0,11,15,-7,0,24,38,3,0,9,46,8)],FY=["duration","easing","delay"],VY={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},GY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ok(e){return`${Math.round(e)}ms`}function $Y(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function HY(e){const t=$({},VY,e.easing),r=$({},GY,e.duration);return $({getAutoHeightDuration:$Y,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return Ge(a,FY),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:ok(o)} ${s} ${typeof l=="string"?l:ok(l)}`).join(",")}},e,{easing:t,duration:r})}const WY={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},UY=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function KT(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=Ge(e,UY);if(e.vars)throw new Error(xc(18));const s=IY(n),l=Zd(e);let u=Di(l,{mixins:bY(l.breakpoints,r),palette:s,shadows:BY.slice(),typography:RY(s,a),transitions:HY(i),zIndex:$({},WY)});return u=Di(u,o),u=t.reduce((c,f)=>Di(c,f),u),u.unstable_sxConfig=$({},e0,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return Xd({sx:f,theme:this})},u}const n0=KT();function P3(){const e=t0(n0);return e[kl]||e}function Nt({props:e,name:t}){return jT({props:e,name:t,defaultTheme:n0,themeId:kl})}const I3=e=>cg(e)&&e!=="classes",tt=A3({themeId:kl,defaultTheme:n0,rootShouldForwardProp:I3}),jY=["theme"];function YY(e){let{theme:t}=e,r=Ge(e,jY);const n=t[kl];return H.jsx(lY,$({},r,{themeId:n?kl:void 0,theme:n||t}))}const sk=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function XY(e){return Ot("MuiSvgIcon",e)}Zt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ZY=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],KY=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(r)}`]};return $t(i,XY,n)},qY=tt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ne(r.color)}`],t[`fontSize${Ne(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,h,d,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(d=(e.vars||e).palette)==null||(d=d.action)==null?void 0:d.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),xw=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:h="0 0 24 24"}=n,d=Ge(n,ZY),p=F.isValidElement(i)&&i.type==="svg",v=$({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:h,hasSvgAsChild:p}),g={};c||(g.viewBox=h);const y=KY(v);return H.jsxs(qY,$({as:s,className:Ue(y.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,d,p&&i.props,{ownerState:v,children:[p?i.props.children:i,f?H.jsx("title",{children:f}):null]}))});xw.muiName="SvgIcon";function QY(e,t){function r(n,i){return H.jsx(xw,$({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=xw.muiName,F.memo(F.forwardRef(r))}const JY={configure:e=>{IT.configure(e)}},eX=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ne,createChainedFunction:vw,createSvgIcon:QY,debounce:JB,deprecatedPropType:M9,isMuiElement:D9,ownerDocument:ki,ownerWindow:Sc,requirePropFactory:k9,setRef:iy,unstable_ClassNameGenerator:JY,unstable_useEnhancedEffect:ay,unstable_useId:I9,unsupportedProp:E9,useControlled:e3,useEventCallback:rl,useForkRef:Li,useIsFocusVisible:kT},Symbol.toStringTag,{value:"Module"}));function Sw(e,t){return Sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sw(e,t)}function E3(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sw(e,t)}const lk={disabled:!1},ly=bi.createContext(null);var tX=function(t){return t.scrollTop},Jf="unmounted",Bs="exited",Fs="entering",Du="entered",ww="exiting",_a=function(e){E3(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=Bs,a.appearStatus=Fs):l=Du:n.unmountOnExit||n.mountOnEnter?l=Jf:l=Bs,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Jf?{status:Bs}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Fs&&o!==Du&&(a=Fs):(o===Fs||o===Du)&&(a=ww)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Fs){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Bp.findDOMNode(this);o&&tX(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bs&&this.setState({status:Jf})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Bp.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!i&&!o||lk.disabled){this.safeSetState({status:Du},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Fs},function(){a.props.onEntering(u,c),a.onTransitionEnd(h,function(){a.safeSetState({status:Du},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Bp.findDOMNode(this);if(!a||lk.disabled){this.safeSetState({status:Bs},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:ww},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Bs},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Bp.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Jf)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Ge(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return bi.createElement(ly.Provider,{value:null},typeof o=="function"?o(i,s):bi.cloneElement(bi.Children.only(o),s))},t}(bi.Component);_a.contextType=ly;_a.propTypes={};function au(){}_a.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:au,onEntering:au,onEntered:au,onExit:au,onExiting:au,onExited:au};_a.UNMOUNTED=Jf;_a.EXITED=Bs;_a.ENTERING=Fs;_a.ENTERED=Du;_a.EXITING=ww;function rX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qT(e,t){var r=function(a){return t&&F.isValidElement(a)?t(a):a},n=Object.create(null);return e&&F.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function nX(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;o<n[l].length;o++){var u=n[l][o];s[n[l][o]]=r(u)}s[l]=r(l)}for(o=0;o<i.length;o++)s[i[o]]=r(i[o]);return s}function nl(e,t,r){return r[t]!=null?r[t]:e.props[t]}function iX(e,t){return qT(e.children,function(r){return F.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:nl(r,"appear",e),enter:nl(r,"enter",e),exit:nl(r,"exit",e)})})}function aX(e,t,r){var n=qT(e.children),i=nX(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(F.isValidElement(o)){var s=a in t,l=a in n,u=t[a],c=F.isValidElement(u)&&!u.props.in;l&&(!s||c)?i[a]=F.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:nl(o,"exit",e),enter:nl(o,"enter",e)}):!l&&s&&!c?i[a]=F.cloneElement(o,{in:!1}):l&&s&&F.isValidElement(u)&&(i[a]=F.cloneElement(o,{onExited:r.bind(null,o),in:u.props.in,exit:nl(o,"exit",e),enter:nl(o,"enter",e)}))}}),i}var oX=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},sX={component:"div",childFactory:function(t){return t}},QT=function(e){E3(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(rX(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var o=a.children,s=a.handleExited,l=a.firstRender;return{children:l?iX(i,s):aX(i,o,s),firstRender:!1}},r.handleExited=function(i,a){var o=qT(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var l=$({},s.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,s=Ge(i,["component","childFactory"]),l=this.state.contextValue,u=oX(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?bi.createElement(ly.Provider,{value:l},u):bi.createElement(ly.Provider,{value:l},bi.createElement(a,s,u))},t}(bi.Component);QT.propTypes={};QT.defaultProps=sX;const L3=e=>e.scrollTop;function uy(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function lX(e){return Ot("MuiPaper",e)}Zt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const uX=["className","component","elevation","square","variant"],cX=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return $t(a,lX,i)},fX=tt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${wn("#fff",sk(t.elevation))}, ${wn("#fff",sk(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),R3=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=Ge(n,uX),c=$({},n,{component:a,elevation:o,square:s,variant:l}),f=cX(c);return H.jsx(fX,$({as:a,ownerState:c,className:Ue(f.root,i),ref:r},u))});function hX(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=F.useState(!1),h=Ue(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),d={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=Ue(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),F.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),H.jsx("span",{className:h,style:d,children:H.jsx("span",{className:p})})}const Yn=Zt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),dX=["center","classes","className"];let i0=e=>e,uk,ck,fk,hk;const bw=550,pX=80,vX=FT(uk||(uk=i0`
74
- 0% {
75
- transform: scale(0);
76
- opacity: 0.1;
77
- }
78
-
79
- 100% {
80
- transform: scale(1);
81
- opacity: 0.3;
82
- }
83
- `)),gX=FT(ck||(ck=i0`
84
- 0% {
85
- opacity: 1;
86
- }
87
-
88
- 100% {
89
- opacity: 0;
90
- }
91
- `)),yX=FT(fk||(fk=i0`
92
- 0% {
93
- transform: scale(1);
94
- }
95
-
96
- 50% {
97
- transform: scale(0.92);
98
- }
99
-
100
- 100% {
101
- transform: scale(1);
102
- }
103
- `)),mX=tt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_X=tt(hX,{name:"MuiTouchRipple",slot:"Ripple"})(hk||(hk=i0`
104
- opacity: 0;
105
- position: absolute;
106
-
107
- &.${0} {
108
- opacity: 0.3;
109
- transform: scale(1);
110
- animation-name: ${0};
111
- animation-duration: ${0}ms;
112
- animation-timing-function: ${0};
113
- }
114
-
115
- &.${0} {
116
- animation-duration: ${0}ms;
117
- }
118
-
119
- & .${0} {
120
- opacity: 1;
121
- display: block;
122
- width: 100%;
123
- height: 100%;
124
- border-radius: 50%;
125
- background-color: currentColor;
126
- }
127
-
128
- & .${0} {
129
- opacity: 0;
130
- animation-name: ${0};
131
- animation-duration: ${0}ms;
132
- animation-timing-function: ${0};
133
- }
134
-
135
- & .${0} {
136
- position: absolute;
137
- /* @noflip */
138
- left: 0px;
139
- top: 0;
140
- animation-name: ${0};
141
- animation-duration: 2500ms;
142
- animation-timing-function: ${0};
143
- animation-iteration-count: infinite;
144
- animation-delay: 200ms;
145
- }
146
- `),Yn.rippleVisible,vX,bw,({theme:e})=>e.transitions.easing.easeInOut,Yn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Yn.child,Yn.childLeaving,gX,bw,({theme:e})=>e.transitions.easing.easeInOut,Yn.childPulsate,yX,({theme:e})=>e.transitions.easing.easeInOut),xX=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=Ge(n,dX),[l,u]=F.useState([]),c=F.useRef(0),f=F.useRef(null);F.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=F.useRef(!1),d=F.useRef(0),p=F.useRef(null),v=F.useRef(null);F.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const g=F.useCallback(x=>{const{pulsate:w,rippleX:S,rippleY:b,rippleSize:C,cb:T}=x;u(A=>[...A,H.jsx(_X,{classes:{ripple:Ue(a.ripple,Yn.ripple),rippleVisible:Ue(a.rippleVisible,Yn.rippleVisible),ripplePulsate:Ue(a.ripplePulsate,Yn.ripplePulsate),child:Ue(a.child,Yn.child),childLeaving:Ue(a.childLeaving,Yn.childLeaving),childPulsate:Ue(a.childPulsate,Yn.childPulsate)},timeout:bw,pulsate:w,rippleX:S,rippleY:b,rippleSize:C},c.current)]),c.current+=1,f.current=T},[a]),y=F.useCallback((x={},w={},S=()=>{})=>{const{pulsate:b=!1,center:C=i||w.pulsate,fakeElement:T=!1}=w;if((x==null?void 0:x.type)==="mousedown"&&h.current){h.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(h.current=!0);const A=T?null:v.current,M=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,P,L;if(C||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)k=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:E,clientY:R}=x.touches&&x.touches.length>0?x.touches[0]:x;k=Math.round(E-M.left),P=Math.round(R-M.top)}if(C)L=Math.sqrt((2*M.width**2+M.height**2)/3),L%2===0&&(L+=1);else{const E=Math.max(Math.abs((A?A.clientWidth:0)-k),k)*2+2,R=Math.max(Math.abs((A?A.clientHeight:0)-P),P)*2+2;L=Math.sqrt(E**2+R**2)}x!=null&&x.touches?p.current===null&&(p.current=()=>{g({pulsate:b,rippleX:k,rippleY:P,rippleSize:L,cb:S})},d.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},pX)):g({pulsate:b,rippleX:k,rippleY:P,rippleSize:L,cb:S})},[i,g]),m=F.useCallback(()=>{y({},{pulsate:!0})},[y]),_=F.useCallback((x,w)=>{if(clearTimeout(d.current),(x==null?void 0:x.type)==="touchend"&&p.current){p.current(),p.current=null,d.current=setTimeout(()=>{_(x,w)});return}p.current=null,u(S=>S.length>0?S.slice(1):S),f.current=w},[]);return F.useImperativeHandle(r,()=>({pulsate:m,start:y,stop:_}),[m,y,_]),H.jsx(mX,$({className:Ue(Yn.root,a.root,o),ref:v},s,{children:H.jsx(QT,{component:null,exit:!0,children:l})}))});function SX(e){return Ot("MuiButtonBase",e)}const wX=Zt("MuiButtonBase",["root","disabled","focusVisible"]),bX=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],CX=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=$t({root:["root",t&&"disabled",r&&"focusVisible"]},SX,i);return r&&n&&(o.root+=` ${n}`),o},TX=tt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${wX.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),O3=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:d="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:y,onFocus:m,onFocusVisible:_,onKeyDown:x,onKeyUp:w,onMouseDown:S,onMouseLeave:b,onMouseUp:C,onTouchEnd:T,onTouchMove:A,onTouchStart:M,tabIndex:k=0,TouchRippleProps:P,touchRippleRef:L,type:E}=n,R=Ge(n,bX),z=F.useRef(null),O=F.useRef(null),B=Li(O,L),{isFocusVisibleRef:I,onFocus:G,onBlur:U,ref:N}=kT(),[Z,oe]=F.useState(!1);u&&Z&&oe(!1),F.useImperativeHandle(i,()=>({focusVisible:()=>{oe(!0),z.current.focus()}}),[]);const[te,fe]=F.useState(!1);F.useEffect(()=>{fe(!0)},[]);const ie=te&&!c&&!u;F.useEffect(()=>{Z&&h&&!c&&te&&O.current.pulsate()},[c,h,Z,te]);function le(de,Kr,Ca=f){return rl(Nn=>(Kr&&Kr(Nn),!Ca&&O.current&&O.current[de](Nn),!0))}const ue=le("start",S),re=le("stop",g),ce=le("stop",y),_e=le("stop",C),ve=le("stop",de=>{Z&&de.preventDefault(),b&&b(de)}),Oe=le("start",M),Je=le("stop",T),pt=le("stop",A),zt=le("stop",de=>{U(de),I.current===!1&&oe(!1),p&&p(de)},!1),kt=rl(de=>{z.current||(z.current=de.currentTarget),G(de),I.current===!0&&(oe(!0),_&&_(de)),m&&m(de)}),pn=()=>{const de=z.current;return l&&l!=="button"&&!(de.tagName==="A"&&de.href)},fr=F.useRef(!1),ba=rl(de=>{h&&!fr.current&&Z&&O.current&&de.key===" "&&(fr.current=!0,O.current.stop(de,()=>{O.current.start(de)})),de.target===de.currentTarget&&pn()&&de.key===" "&&de.preventDefault(),x&&x(de),de.target===de.currentTarget&&pn()&&de.key==="Enter"&&!u&&(de.preventDefault(),v&&v(de))}),Fi=rl(de=>{h&&de.key===" "&&O.current&&Z&&!de.defaultPrevented&&(fr.current=!1,O.current.stop(de,()=>{O.current.pulsate(de)})),w&&w(de),v&&de.target===de.currentTarget&&pn()&&de.key===" "&&!de.defaultPrevented&&v(de)});let ir=l;ir==="button"&&(R.href||R.to)&&(ir=d);const X={};ir==="button"?(X.type=E===void 0?"button":E,X.disabled=u):(!R.href&&!R.to&&(X.role="button"),u&&(X["aria-disabled"]=u));const se=Li(r,N,z),Ie=$({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:h,tabIndex:k,focusVisible:Z}),We=CX(Ie);return H.jsxs(TX,$({as:ir,className:Ue(We.root,s),ownerState:Ie,onBlur:zt,onClick:v,onContextMenu:re,onFocus:kt,onKeyDown:ba,onKeyUp:Fi,onMouseDown:ue,onMouseLeave:ve,onMouseUp:_e,onDragLeave:ce,onTouchEnd:Je,onTouchMove:pt,onTouchStart:Oe,ref:se,tabIndex:u?-1:k,type:E},X,R,{children:[o,ie?H.jsx(xX,$({ref:B,center:a},P)):null]}))});function AX(e){return Ot("MuiTypography",e)}Zt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const MX=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],DX=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Ne(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return $t(s,AX,o)},kX=tt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Ne(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),dk={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},PX={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},IX=e=>PX[e]||e,Ar=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiTypography"}),i=IX(n.color),a=UT($({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:h="body1",variantMapping:d=dk}=a,p=Ge(a,MX),v=$({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:h,variantMapping:d}),g=l||(f?"p":d[h]||dk[h])||"span",y=DX(v);return H.jsx(kX,$({as:g,ref:r,ownerState:v,className:Ue(y.root,s)},p))});function N3(e){return typeof e=="string"}function EX(e,t,r){return e===void 0||N3(e)?t:$({},t,{ownerState:$({},t.ownerState,r)})}function z3(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function LX(e,t,r){return typeof e=="function"?e(t,r):e}function pk(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function RX(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const d=Ue(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=$({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=$({},r,i,n);return d.length>0&&(v.className=d),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=z3($({},i,n)),s=pk(n),l=pk(i),u=t(o),c=Ue(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=$({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),h=$({},u,r,l,s);return c.length>0&&(h.className=c),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}const OX=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cy(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=Ge(e,OX),s=a?{}:LX(n,i),{props:l,internalRef:u}=RX($({},o,{externalSlotProps:s})),c=Li(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return EX(r,$({},l,{ref:c}),i)}const NX=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zX(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function BX(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function FX(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||BX(e))}function VX(e){const t=[],r=[];return Array.from(e.querySelectorAll(NX)).forEach((n,i)=>{const a=zX(n);a===-1||!FX(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function GX(){return!0}function $X(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=VX,isEnabled:o=GX,open:s}=e,l=F.useRef(!1),u=F.useRef(null),c=F.useRef(null),f=F.useRef(null),h=F.useRef(null),d=F.useRef(!1),p=F.useRef(null),v=Li(t.ref,p),g=F.useRef(null);F.useEffect(()=>{!s||!p.current||(d.current=!r)},[r,s]),F.useEffect(()=>{if(!s||!p.current)return;const _=ki(p.current);return p.current.contains(_.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),d.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),F.useEffect(()=>{if(!s||!p.current)return;const _=ki(p.current),x=b=>{g.current=b,!(n||!o()||b.key!=="Tab")&&_.activeElement===p.current&&b.shiftKey&&(l.current=!0,c.current&&c.current.focus())},w=()=>{const b=p.current;if(b===null)return;if(!_.hasFocus()||!o()||l.current){l.current=!1;return}if(b.contains(_.activeElement)||n&&_.activeElement!==u.current&&_.activeElement!==c.current)return;if(_.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!d.current)return;let C=[];if((_.activeElement===u.current||_.activeElement===c.current)&&(C=a(p.current)),C.length>0){var T,A;const M=!!((T=g.current)!=null&&T.shiftKey&&((A=g.current)==null?void 0:A.key)==="Tab"),k=C[0],P=C[C.length-1];typeof k!="string"&&typeof P!="string"&&(M?P.focus():k.focus())}else b.focus()};_.addEventListener("focusin",w),_.addEventListener("keydown",x,!0);const S=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(S),_.removeEventListener("focusin",w),_.removeEventListener("keydown",x,!0)}},[r,n,i,o,s,a]);const y=_=>{f.current===null&&(f.current=_.relatedTarget),d.current=!0,h.current=_.target;const x=t.props.onFocus;x&&x(_)},m=_=>{f.current===null&&(f.current=_.relatedTarget),d.current=!0};return H.jsxs(F.Fragment,{children:[H.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:u,"data-testid":"sentinelStart"}),F.cloneElement(t,{ref:v,onFocus:y}),H.jsx("div",{tabIndex:s?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function HX(e){return typeof e=="function"?e():e}const WX=F.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=F.useState(null),l=Li(F.isValidElement(n)?n.ref:null,r);if(ay(()=>{a||s(HX(i)||document.body)},[i,a]),ay(()=>{if(o&&!a)return iy(r,o),()=>{iy(r,null)}},[r,o,a]),a){if(F.isValidElement(n)){const u={ref:l};return F.cloneElement(n,u)}return H.jsx(F.Fragment,{children:n})}return H.jsx(F.Fragment,{children:o&&DT.createPortal(n,o)})});function UX(e){const t=ki(e);return t.body===e?Sc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ch(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vk(e){return parseInt(Sc(e).getComputedStyle(e).paddingRight,10)||0}function jX(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function gk(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!jX(o);s&&l&&Ch(o,i)})}function E1(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function YX(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(UX(n)){const o=F9(ki(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vk(n)+o}px`;const s=ki(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${vk(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=ki(n).body;else{const o=n.parentElement,s=Sc(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function XX(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class ZX{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Ch(t.modalRef,!1);const i=XX(r);gk(r,t.mount,t.modalRef,i,!0);const a=E1(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=E1(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=YX(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=E1(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Ch(t.modalRef,r),gk(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&Ch(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function KX(e){return typeof e=="function"?e():e}function qX(e){return e?e.props.hasOwnProperty("in"):!1}const QX=new ZX;function JX(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=QX,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,h=F.useRef({}),d=F.useRef(null),p=F.useRef(null),v=Li(p,f),[g,y]=F.useState(!c),m=qX(l);let _=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(_=!1);const x=()=>ki(d.current),w=()=>(h.current.modalRef=p.current,h.current.mount=d.current,h.current),S=()=>{i.mount(w(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},b=rl(()=>{const R=KX(t)||x().body;i.add(w(),R),p.current&&S()}),C=F.useCallback(()=>i.isTopModal(w()),[i]),T=rl(R=>{d.current=R,R&&(c&&C()?S():p.current&&Ch(p.current,_))}),A=F.useCallback(()=>{i.remove(w(),_)},[_,i]);F.useEffect(()=>()=>{A()},[A]),F.useEffect(()=>{c?b():(!m||!a)&&A()},[c,A,m,a,b]);const M=R=>z=>{var O;(O=R.onKeyDown)==null||O.call(R,z),!(z.key!=="Escape"||!C())&&(r||(z.stopPropagation(),u&&u(z,"escapeKeyDown")))},k=R=>z=>{var O;(O=R.onClick)==null||O.call(R,z),z.target===z.currentTarget&&u&&u(z,"backdropClick")};return{getRootProps:(R={})=>{const z=z3(e);delete z.onTransitionEnter,delete z.onTransitionExited;const O=$({},z,R);return $({role:"presentation"},O,{onKeyDown:M(O),ref:v})},getBackdropProps:(R={})=>{const z=R;return $({"aria-hidden":!0},z,{onClick:k(z),open:c})},getTransitionProps:()=>{const R=()=>{y(!1),o&&o()},z=()=>{y(!0),s&&s(),a&&A()};return{onEnter:vw(R,l==null?void 0:l.props.onEnter),onExited:vw(z,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:T,isTopModal:C,exited:g,hasTransition:m}}function B3({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const eZ=F.createContext(void 0);function JT(){return F.useContext(eZ)}function tZ(e){return H.jsx(Fj,$({},e,{defaultTheme:n0,themeId:kl}))}const rZ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],nZ={entering:{opacity:1},entered:{opacity:1}},iZ=F.forwardRef(function(t,r){const n=P3(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:h,onExit:d,onExited:p,onExiting:v,style:g,timeout:y=i,TransitionComponent:m=_a}=t,_=Ge(t,rZ),x=F.useRef(null),w=Li(x,s.ref,r),S=L=>E=>{if(L){const R=x.current;E===void 0?L(R):L(R,E)}},b=S(h),C=S((L,E)=>{L3(L);const R=uy({style:g,timeout:y,easing:l},{mode:"enter"});L.style.webkitTransition=n.transitions.create("opacity",R),L.style.transition=n.transitions.create("opacity",R),c&&c(L,E)}),T=S(f),A=S(v),M=S(L=>{const E=uy({style:g,timeout:y,easing:l},{mode:"exit"});L.style.webkitTransition=n.transitions.create("opacity",E),L.style.transition=n.transitions.create("opacity",E),d&&d(L)}),k=S(p),P=L=>{a&&a(x.current,L)};return H.jsx(m,$({appear:o,in:u,nodeRef:x,onEnter:C,onEntered:T,onEntering:b,onExit:M,onExited:k,onExiting:A,addEndListener:P,timeout:y},_,{children:(L,E)=>F.cloneElement(s,$({style:$({opacity:0,visibility:L==="exited"&&!u?"hidden":void 0},nZ[L],g,s.props.style),ref:w},E))}))});function aZ(e){return Ot("MuiBackdrop",e)}Zt("MuiBackdrop",["root","invisible"]);const oZ=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],sZ=e=>{const{classes:t,invisible:r}=e;return $t({root:["root",r&&"invisible"]},aZ,t)},lZ=tt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>$({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),uZ=F.forwardRef(function(t,r){var n,i,a;const o=Nt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:h=!1,open:d,slotProps:p={},slots:v={},TransitionComponent:g=iZ,transitionDuration:y}=o,m=Ge(o,oZ),_=$({},o,{component:u,invisible:h}),x=sZ(_),w=(n=p.root)!=null?n:f.root;return H.jsx(g,$({in:d,timeout:y},m,{children:H.jsx(lZ,$({"aria-hidden":!0},w,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ue(x.root,l,w==null?void 0:w.className),ownerState:$({},_,w==null?void 0:w.ownerState),classes:x,ref:r,children:s}))}))}),cZ=KT(),zn=Hj({themeId:kl,defaultTheme:cZ,defaultClassName:"MuiBox-root",generateClassName:IT.generate});function fZ(e){return Ot("MuiButton",e)}const Vp=Zt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),hZ=F.createContext({}),dZ=F.createContext(void 0),pZ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],vZ=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Ne(t)}`,`size${Ne(i)}`,`${a}Size${Ne(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ne(i)}`],endIcon:["endIcon",`iconSize${Ne(i)}`]},l=$t(s,fZ,o);return $({},o,l)},F3=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),gZ=tt(O3,{shouldForwardProp:e=>I3(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ne(r.color)}`],t[`size${Ne(r.size)}`],t[`${r.variant}Size${Ne(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Vp.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Vp.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${wn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vp.disabled}`]:{boxShadow:"none"}}),yZ=tt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ne(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},F3(e))),mZ=tt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ne(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},F3(e))),_Z=F.forwardRef(function(t,r){const n=F.useContext(hZ),i=F.useContext(dZ),a=PT(n,t),o=Nt({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:y="medium",startIcon:m,type:_,variant:x="text"}=o,w=Ge(o,pZ),S=$({},o,{color:l,component:u,disabled:f,disableElevation:h,disableFocusRipple:d,fullWidth:g,size:y,type:_,variant:x}),b=vZ(S),C=m&&H.jsx(yZ,{className:b.startIcon,ownerState:S,children:m}),T=p&&H.jsx(mZ,{className:b.endIcon,ownerState:S,children:p}),A=i||"";return H.jsxs(gZ,$({ownerState:S,className:Ue(n.className,b.root,c,A),component:u,disabled:f,focusRipple:!d,focusVisibleClassName:Ue(b.focusVisible,v),ref:r,type:_},w,{classes:b,children:[C,s,T]}))});function xZ(e){return Ot("PrivateSwitchBase",e)}Zt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const SZ=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],wZ=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${Ne(i)}`],input:["input"]};return $t(a,xZ,t)},bZ=tt(O3)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),CZ=tt("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),TZ=F.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:h,inputProps:d,inputRef:p,name:v,onBlur:g,onChange:y,onFocus:m,readOnly:_,required:x=!1,tabIndex:w,type:S,value:b}=t,C=Ge(t,SZ),[T,A]=e3({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),M=JT(),k=B=>{m&&m(B),M&&M.onFocus&&M.onFocus(B)},P=B=>{g&&g(B),M&&M.onBlur&&M.onBlur(B)},L=B=>{if(B.nativeEvent.defaultPrevented)return;const I=B.target.checked;A(I),y&&y(B,I)};let E=l;M&&typeof E>"u"&&(E=M.disabled);const R=S==="checkbox"||S==="radio",z=$({},t,{checked:T,disabled:E,disableFocusRipple:u,edge:c}),O=wZ(z);return H.jsxs(bZ,$({component:"span",className:Ue(O.root,o),centerRipple:!0,focusRipple:!u,disabled:E,tabIndex:null,role:void 0,onFocus:k,onBlur:P,ownerState:z,ref:r},C,{children:[H.jsx(CZ,$({autoFocus:n,checked:i,defaultChecked:s,className:O.input,disabled:E,id:R?h:void 0,name:v,onChange:L,readOnly:_,ref:p,required:x,ownerState:z,tabIndex:w,type:S},S==="checkbox"&&b===void 0?{}:{value:b},d)),T?a:f]}))}),AZ=pY({createStyledComponent:tt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ne(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Nt({props:e,name:"MuiContainer"})}),MZ=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),DZ=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),kZ=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=$({html:MZ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},DZ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function PZ(e){const t=Nt({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return H.jsxs(F.Fragment,{children:[H.jsx(tZ,{styles:i=>kZ(i,n)}),r]})}function IZ(e){return Ot("MuiModal",e)}Zt("MuiModal",["root","hidden","backdrop"]);const EZ=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],LZ=e=>{const{open:t,exited:r,classes:n}=e;return $t({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},IZ,n)},RZ=tt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),OZ=tt(uZ,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),NZ=F.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Nt({name:"MuiModal",props:t}),{BackdropComponent:c=OZ,BackdropProps:f,className:h,closeAfterTransition:d=!1,children:p,container:v,component:g,components:y={},componentsProps:m={},disableAutoFocus:_=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:b=!1,disableScrollLock:C=!1,hideBackdrop:T=!1,keepMounted:A=!1,onBackdropClick:M,open:k,slotProps:P,slots:L}=u,E=Ge(u,EZ),R=$({},u,{closeAfterTransition:d,disableAutoFocus:_,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:b,disableScrollLock:C,hideBackdrop:T,keepMounted:A}),{getRootProps:z,getBackdropProps:O,getTransitionProps:B,portalRef:I,isTopModal:G,exited:U,hasTransition:N}=JX($({},R,{rootRef:r})),Z=$({},R,{exited:U}),oe=LZ(Z),te={};if(p.props.tabIndex===void 0&&(te.tabIndex="-1"),N){const{onEnter:_e,onExited:ve}=B();te.onEnter=_e,te.onExited=ve}const fe=(n=(i=L==null?void 0:L.root)!=null?i:y.Root)!=null?n:RZ,ie=(a=(o=L==null?void 0:L.backdrop)!=null?o:y.Backdrop)!=null?a:c,le=(s=P==null?void 0:P.root)!=null?s:m.root,ue=(l=P==null?void 0:P.backdrop)!=null?l:m.backdrop,re=cy({elementType:fe,externalSlotProps:le,externalForwardedProps:E,getSlotProps:z,additionalProps:{ref:r,as:g},ownerState:Z,className:Ue(h,le==null?void 0:le.className,oe==null?void 0:oe.root,!Z.open&&Z.exited&&(oe==null?void 0:oe.hidden))}),ce=cy({elementType:ie,externalSlotProps:ue,additionalProps:f,getSlotProps:_e=>O($({},_e,{onClick:ve=>{M&&M(ve),_e!=null&&_e.onClick&&_e.onClick(ve)}})),className:Ue(ue==null?void 0:ue.className,f==null?void 0:f.className,oe==null?void 0:oe.backdrop),ownerState:Z});return!A&&!k&&(!N||U)?null:H.jsx(WX,{ref:I,container:v,disablePortal:S,children:H.jsxs(fe,$({},re,{children:[!T&&c?H.jsx(ie,$({},ce)):null,H.jsx($X,{disableEnforceFocus:x,disableAutoFocus:_,disableRestoreFocus:b,isEnabled:G,open:k,children:F.cloneElement(p,te)})]}))})}),V3=wY({createStyledComponent:tt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Nt({props:e,name:"MuiStack"})});function zZ(e){return Ot("MuiFormControlLabel",e)}const eh=Zt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),BZ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],FZ=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${Ne(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return $t(o,zZ,t)},VZ=tt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${eh.label}`]:t.label},t.root,t[`labelPlacement${Ne(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${eh.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${eh.label}`]:{[`&.${eh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),GZ=tt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${eh.error}`]:{color:(e.vars||e).palette.error.main}})),$Z=F.forwardRef(function(t,r){var n,i;const a=Nt({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:h="end",required:d,slotProps:p={}}=a,v=Ge(a,BZ),g=JT(),y=(n=u??l.props.disabled)!=null?n:g==null?void 0:g.disabled,m=d??l.props.required,_={disabled:y,required:m};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof l.props[T]>"u"&&typeof a[T]<"u"&&(_[T]=a[T])});const x=B3({props:a,muiFormControl:g,states:["error"]}),w=$({},a,{disabled:y,labelPlacement:h,required:m,error:x.error}),S=FZ(w),b=(i=p.typography)!=null?i:s.typography;let C=f;return C!=null&&C.type!==Ar&&!c&&(C=H.jsx(Ar,$({component:"span"},b,{className:Ue(S.label,b==null?void 0:b.className),children:C}))),H.jsxs(VZ,$({className:Ue(S.root,o),ownerState:w,ref:r},v,{children:[F.cloneElement(l,_),m?H.jsxs(V3,{direction:"row",alignItems:"center",children:[C,H.jsxs(GZ,{ownerState:w,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):C]}))});function HZ(e){return Ot("MuiFormGroup",e)}Zt("MuiFormGroup",["root","row","error"]);const WZ=["className","row"],UZ=e=>{const{classes:t,row:r,error:n}=e;return $t({root:["root",r&&"row",n&&"error"]},HZ,t)},jZ=tt("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>$({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),YZ=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=Ge(n,WZ),s=JT(),l=B3({props:n,muiFormControl:s,states:["error"]}),u=$({},n,{row:a,error:l.error}),c=UZ(u);return H.jsx(jZ,$({className:Ue(c.root,i),ownerState:u,ref:r},o))}),XZ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cw(e){return`scale(${e}, ${e**2})`}const ZZ={entering:{opacity:1,transform:Cw(1)},entered:{opacity:1,transform:"none"}},L1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),G3=F.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:h,onExiting:d,style:p,timeout:v="auto",TransitionComponent:g=_a}=t,y=Ge(t,XZ),m=F.useRef(),_=F.useRef(),x=P3(),w=F.useRef(null),S=Li(w,a.ref,r),b=E=>R=>{if(E){const z=w.current;R===void 0?E(z):E(z,R)}},C=b(c),T=b((E,R)=>{L3(E);const{duration:z,delay:O,easing:B}=uy({style:p,timeout:v,easing:o},{mode:"enter"});let I;v==="auto"?(I=x.transitions.getAutoHeightDuration(E.clientHeight),_.current=I):I=z,E.style.transition=[x.transitions.create("opacity",{duration:I,delay:O}),x.transitions.create("transform",{duration:L1?I:I*.666,delay:O,easing:B})].join(","),l&&l(E,R)}),A=b(u),M=b(d),k=b(E=>{const{duration:R,delay:z,easing:O}=uy({style:p,timeout:v,easing:o},{mode:"exit"});let B;v==="auto"?(B=x.transitions.getAutoHeightDuration(E.clientHeight),_.current=B):B=R,E.style.transition=[x.transitions.create("opacity",{duration:B,delay:z}),x.transitions.create("transform",{duration:L1?B:B*.666,delay:L1?z:z||B*.333,easing:O})].join(","),E.style.opacity=0,E.style.transform=Cw(.75),f&&f(E)}),P=b(h),L=E=>{v==="auto"&&(m.current=setTimeout(E,_.current||0)),n&&n(w.current,E)};return F.useEffect(()=>()=>{clearTimeout(m.current)},[]),H.jsx(g,$({appear:i,in:s,nodeRef:w,onEnter:T,onEntered:A,onEntering:C,onExit:k,onExited:P,onExiting:M,addEndListener:L,timeout:v==="auto"?null:v},y,{children:(E,R)=>F.cloneElement(a,$({style:$({opacity:0,transform:Cw(.75),visibility:E==="exited"&&!s?"hidden":void 0},ZZ[E],p,a.props.style),ref:S},R))}))});G3.muiSupportAuto=!0;function KZ(e){return Ot("MuiLink",e)}const qZ=Zt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),$3={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},QZ=e=>$3[e]||e,JZ=({theme:e,ownerState:t})=>{const r=QZ(t.color),n=bc(e,`palette.${r}`,!1)||t.color,i=bc(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:wn(n,.4)},eK=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],tK=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Ne(i)}`,r==="button"&&"button",n&&"focusVisible"]};return $t(a,KZ,t)},rK=tt(Ar,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ne(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>$({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&$({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:JZ({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qZ.focusVisible}`]:{outline:"auto"}})),nK=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:h}=n,d=Ge(n,eK),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:y}=kT(),[m,_]=F.useState(!1),x=Li(r,y),w=T=>{v(T),p.current===!1&&_(!1),s&&s(T)},S=T=>{g(T),p.current===!0&&_(!0),l&&l(T)},b=$({},n,{color:a,component:o,focusVisible:m,underline:c,variant:f}),C=tK(b);return H.jsx(rK,$({color:a,className:Ue(C.root,i),classes:u,component:o,onBlur:w,onFocus:S,ref:x,ownerState:b,variant:f,sx:[...Object.keys($3).includes(a)?[]:[{color:a}],...Array.isArray(h)?h:[h]]},d))});function iK(e){return Ot("MuiPopover",e)}Zt("MuiPopover",["root","paper"]);const aK=["onEntering"],oK=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],sK=["slotProps"];function yk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function mk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function _k(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function R1(e){return typeof e=="function"?e():e}const lK=e=>{const{classes:t}=e;return $t({root:["root"],paper:["paper"]},iK,t)},uK=tt(NZ,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cK=tt(R3,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fK=F.forwardRef(function(t,r){var n,i,a;const o=Nt({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:h,className:d,container:p,elevation:v=8,marginThreshold:g=16,open:y,PaperProps:m={},slots:_,slotProps:x,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S=G3,transitionDuration:b="auto",TransitionProps:{onEntering:C}={},disableScrollLock:T=!1}=o,A=Ge(o.TransitionProps,aK),M=Ge(o,oK),k=(n=x==null?void 0:x.paper)!=null?n:m,P=F.useRef(),L=Li(P,k.ref),E=$({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:k,transformOrigin:w,TransitionComponent:S,transitionDuration:b,TransitionProps:A}),R=lK(E),z=F.useCallback(()=>{if(f==="anchorPosition")return c;const _e=R1(l),Oe=(_e&&_e.nodeType===1?_e:ki(P.current).body).getBoundingClientRect();return{top:Oe.top+yk(Oe,u.vertical),left:Oe.left+mk(Oe,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),O=F.useCallback(_e=>({vertical:yk(_e,w.vertical),horizontal:mk(_e,w.horizontal)}),[w.horizontal,w.vertical]),B=F.useCallback(_e=>{const ve={width:_e.offsetWidth,height:_e.offsetHeight},Oe=O(ve);if(f==="none")return{top:null,left:null,transformOrigin:_k(Oe)};const Je=z();let pt=Je.top-Oe.vertical,zt=Je.left-Oe.horizontal;const kt=pt+ve.height,pn=zt+ve.width,fr=Sc(R1(l)),ba=fr.innerHeight-g,Fi=fr.innerWidth-g;if(g!==null&&pt<g){const ir=pt-g;pt-=ir,Oe.vertical+=ir}else if(g!==null&&kt>ba){const ir=kt-ba;pt-=ir,Oe.vertical+=ir}if(g!==null&&zt<g){const ir=zt-g;zt-=ir,Oe.horizontal+=ir}else if(pn>Fi){const ir=pn-Fi;zt-=ir,Oe.horizontal+=ir}return{top:`${Math.round(pt)}px`,left:`${Math.round(zt)}px`,transformOrigin:_k(Oe)}},[l,f,z,O,g]),[I,G]=F.useState(y),U=F.useCallback(()=>{const _e=P.current;if(!_e)return;const ve=B(_e);ve.top!==null&&(_e.style.top=ve.top),ve.left!==null&&(_e.style.left=ve.left),_e.style.transformOrigin=ve.transformOrigin,G(!0)},[B]);F.useEffect(()=>(T&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,T,U]);const N=(_e,ve)=>{C&&C(_e,ve),U()},Z=()=>{G(!1)};F.useEffect(()=>{y&&U()}),F.useImperativeHandle(s,()=>y?{updatePosition:()=>{U()}}:null,[y,U]),F.useEffect(()=>{if(!y)return;const _e=JB(()=>{U()}),ve=Sc(l);return ve.addEventListener("resize",_e),()=>{_e.clear(),ve.removeEventListener("resize",_e)}},[l,y,U]);let oe=b;b==="auto"&&!S.muiSupportAuto&&(oe=void 0);const te=p||(l?ki(R1(l)).body:void 0),fe=(i=_==null?void 0:_.root)!=null?i:uK,ie=(a=_==null?void 0:_.paper)!=null?a:cK,le=cy({elementType:ie,externalSlotProps:$({},k,{style:I?k.style:$({},k.style,{opacity:0})}),additionalProps:{elevation:v,ref:L},ownerState:E,className:Ue(R.paper,k==null?void 0:k.className)}),ue=cy({elementType:fe,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:te,open:y},ownerState:E,className:Ue(R.root,d)}),{slotProps:re}=ue,ce=Ge(ue,sK);return H.jsx(fe,$({},ce,!N3(fe)&&{slotProps:re,disableScrollLock:T},{children:H.jsx(S,$({appear:!0,in:y,onEntering:N,onExited:Z,timeout:oe},A,{children:H.jsx(ie,$({},le,{children:h}))}))}))});function hK(e){return Ot("MuiSwitch",e)}const Rr=Zt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),dK=["className","color","edge","size","sx"],pK=e=>{const{classes:t,edge:r,size:n,color:i,checked:a,disabled:o}=e,s={root:["root",r&&`edge${Ne(r)}`,`size${Ne(n)}`],switchBase:["switchBase",`color${Ne(i)}`,a&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$t(s,hK,t);return $({},t,l)},vK=tt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Ne(r.edge)}`],t[`size${Ne(r.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Rr.thumb}`]:{width:16,height:16},[`& .${Rr.switchBase}`]:{padding:4,[`&.${Rr.checked}`]:{transform:"translateX(16px)"}}})),gK=tt(TZ,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Rr.input}`]:t.input},r.color!=="default"&&t[`color${Ne(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Rr.checked}`]:{transform:"translateX(20px)"},[`&.${Rr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Rr.checked} + .${Rr.track}`]:{opacity:.5},[`&.${Rr.disabled} + .${Rr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Rr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:wn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Rr.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?ZT(e.palette[t.color].main,.62):XT(e.palette[t.color].main,.55)}`}},[`&.${Rr.checked} + .${Rr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),yK=tt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),mK=tt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),_K=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=Ge(n,dK),c=$({},n,{color:a,edge:o,size:s}),f=pK(c),h=H.jsx(mK,{className:f.thumb,ownerState:c});return H.jsxs(vK,{className:Ue(f.root,i),sx:l,ownerState:c,children:[H.jsx(gK,$({type:"checkbox",icon:h,checkedIcon:h,ref:r,ownerState:c},u,{classes:$({},f,{root:f.switchBase})})),H.jsx(yK,{className:f.track,ownerState:c})]})}),H3=F.createContext();function xK(e){return Ot("MuiTable",e)}Zt("MuiTable",["root","stickyHeader"]);const SK=["className","component","padding","size","stickyHeader"],wK=e=>{const{classes:t,stickyHeader:r}=e;return $t({root:["root",r&&"stickyHeader"]},xK,t)},bK=tt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),xk="table",CK=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiTable"}),{className:i,component:a=xk,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=Ge(n,SK),c=$({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=wK(c),h=F.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return H.jsx(H3.Provider,{value:h,children:H.jsx(bK,$({as:a,role:a===xk?null:"table",ref:r,className:Ue(f.root,i),ownerState:c},u))})}),a0=F.createContext();function TK(e){return Ot("MuiTableBody",e)}Zt("MuiTableBody",["root"]);const AK=["className","component"],MK=e=>{const{classes:t}=e;return $t({root:["root"]},TK,t)},DK=tt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),kK={variant:"body"},Sk="tbody",PK=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiTableBody"}),{className:i,component:a=Sk}=n,o=Ge(n,AK),s=$({},n,{component:a}),l=MK(s);return H.jsx(a0.Provider,{value:kK,children:H.jsx(DK,$({className:Ue(l.root,i),as:a,ref:r,role:a===Sk?null:"rowgroup",ownerState:s},o))})});function IK(e){return Ot("MuiTableCell",e)}const EK=Zt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),LK=["align","className","component","padding","scope","size","sortDirection","variant"],RK=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Ne(n)}`,i!=="normal"&&`padding${Ne(i)}`,`size${Ne(a)}`]};return $t(s,IK,t)},OK=tt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ne(r.size)}`],r.padding!=="normal"&&t[`padding${Ne(r.padding)}`],r.align!=="inherit"&&t[`align${Ne(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
147
- ${e.palette.mode==="light"?ZT(wn(e.palette.divider,1),.88):XT(wn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${EK.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),wk=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,h=Ge(n,LK),d=F.useContext(H3),p=F.useContext(a0),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let y=l;g==="td"?y=void 0:!y&&v&&(y="col");const m=f||p&&p.variant,_=$({},n,{align:i,component:g,padding:s||(d&&d.padding?d.padding:"normal"),size:u||(d&&d.size?d.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&d&&d.stickyHeader,variant:m}),x=RK(_);let w=null;return c&&(w=c==="asc"?"ascending":"descending"),H.jsx(OK,$({as:g,ref:r,className:Ue(x.root,a),"aria-sort":w,scope:y,ownerState:_},h))});function NK(e){return Ot("MuiTableContainer",e)}Zt("MuiTableContainer",["root"]);const zK=["className","component"],BK=e=>{const{classes:t}=e;return $t({root:["root"]},NK,t)},FK=tt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),VK=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=Ge(n,zK),s=$({},n,{component:a}),l=BK(s);return H.jsx(FK,$({ref:r,as:a,className:Ue(l.root,i),ownerState:s},o))});function GK(e){return Ot("MuiTableHead",e)}Zt("MuiTableHead",["root"]);const $K=["className","component"],HK=e=>{const{classes:t}=e;return $t({root:["root"]},GK,t)},WK=tt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),UK={variant:"head"},bk="thead",jK=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiTableHead"}),{className:i,component:a=bk}=n,o=Ge(n,$K),s=$({},n,{component:a}),l=HK(s);return H.jsx(a0.Provider,{value:UK,children:H.jsx(WK,$({as:a,className:Ue(l.root,i),ref:r,role:a===bk?null:"rowgroup",ownerState:s},o))})});function YK(e){return Ot("MuiTableRow",e)}const Ck=Zt("MuiTableRow",["root","selected","hover","head","footer"]),XK=["className","component","hover","selected"],ZK=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return $t({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},YK,t)},KK=tt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ck.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ck.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Tk="tr",Ak=F.forwardRef(function(t,r){const n=Nt({props:t,name:"MuiTableRow"}),{className:i,component:a=Tk,hover:o=!1,selected:s=!1}=n,l=Ge(n,XK),u=F.useContext(a0),c=$({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=ZK(c);return H.jsx(KK,$({as:a,ref:r,className:Ue(f.root,i),role:a===Tk?null:"row",ownerState:c},l))});function hr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var qK=typeof Symbol=="function"&&Symbol.observable||"@@observable",Mk=qK,O1=()=>Math.random().toString(36).substring(7).split("").join("."),QK={INIT:`@@redux/INIT${O1()}`,REPLACE:`@@redux/REPLACE${O1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${O1()}`},fy=QK;function eA(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function W3(e,t,r){if(typeof e!="function")throw new Error(hr(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(hr(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(hr(1));return r(W3)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,l=!1;function u(){o===a&&(o=new Map,a.forEach((g,y)=>{o.set(y,g)}))}function c(){if(l)throw new Error(hr(3));return i}function f(g){if(typeof g!="function")throw new Error(hr(4));if(l)throw new Error(hr(5));let y=!0;u();const m=s++;return o.set(m,g),function(){if(y){if(l)throw new Error(hr(6));y=!1,u(),o.delete(m),a=null}}}function h(g){if(!eA(g))throw new Error(hr(7));if(typeof g.type>"u")throw new Error(hr(8));if(typeof g.type!="string")throw new Error(hr(17));if(l)throw new Error(hr(9));try{l=!0,i=n(i,g)}finally{l=!1}return(a=o).forEach(m=>{m()}),g}function d(g){if(typeof g!="function")throw new Error(hr(10));n=g,h({type:fy.REPLACE})}function p(){const g=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(hr(11));function m(){const x=y;x.next&&x.next(c())}return m(),{unsubscribe:g(m)}},[Mk](){return this}}}return h({type:fy.INIT}),{dispatch:h,subscribe:f,getState:c,replaceReducer:d,[Mk]:p}}function JK(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:fy.INIT})>"u")throw new Error(hr(12));if(typeof r(void 0,{type:fy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(hr(13))})}function U3(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{JK(r)}catch(a){i=a}return function(o={},s){if(i)throw i;let l=!1;const u={};for(let c=0;c<n.length;c++){const f=n[c],h=r[f],d=o[f],p=h(d,s);if(typeof p>"u")throw s&&s.type,new Error(hr(14));u[f]=p,l=l||p!==d}return l=l||n.length!==Object.keys(o).length,l?u:o}}function hy(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function eq(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(hr(15))};const o={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},s=e.map(l=>l(o));return a=hy(...s)(i.dispatch),{...i,dispatch:a}}}function tq(e){return eA(e)&&"type"in e&&typeof e.type=="string"}var j3=Symbol.for("immer-nothing"),Dk=Symbol.for("immer-draftable"),In=Symbol.for("immer-state");function wi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Cc=Object.getPrototypeOf;function qo(e){return!!e&&!!e[In]}function Ya(e){var t;return e?Y3(e)||Array.isArray(e)||!!e[Dk]||!!((t=e.constructor)!=null&&t[Dk])||s0(e)||l0(e):!1}var rq=Object.prototype.constructor.toString();function Y3(e){if(!e||typeof e!="object")return!1;const t=Cc(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===rq}function dy(e,t){o0(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function o0(e){const t=e[In];return t?t.type_:Array.isArray(e)?1:s0(e)?2:l0(e)?3:0}function Tw(e,t){return o0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function X3(e,t,r){const n=o0(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function nq(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function s0(e){return e instanceof Map}function l0(e){return e instanceof Set}function Vs(e){return e.copy_||e.base_}function Aw(e,t){if(s0(e))return new Map(e);if(l0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Y3(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[In];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Cc(e),n)}else{const n=Cc(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function tA(e,t=!1){return u0(e)||qo(e)||!Ya(e)||(o0(e)>1&&(e.set=e.add=e.clear=e.delete=iq),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>tA(n,!0))),e}function iq(){wi(2)}function u0(e){return Object.isFrozen(e)}var aq={};function El(e){const t=aq[e];return t||wi(0,e),t}var cd;function Z3(){return cd}function oq(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function kk(e,t){t&&(El("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Mw(e){Dw(e),e.drafts_.forEach(sq),e.drafts_=null}function Dw(e){e===cd&&(cd=e.parent_)}function Pk(e){return cd=oq(cd,e)}function sq(e){const t=e[In];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ik(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[In].modified_&&(Mw(t),wi(4)),Ya(e)&&(e=py(t,e),t.parent_||vy(t,e)),t.patches_&&El("Patches").generateReplacementPatches_(r[In].base_,e,t.patches_,t.inversePatches_)):e=py(t,r,[]),Mw(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==j3?e:void 0}function py(e,t,r){if(u0(t))return t;const n=t[In];if(!n)return dy(t,(i,a)=>Ek(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return vy(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),dy(a,(s,l)=>Ek(e,n,i,s,l,r,o)),vy(e,i,!1),r&&e.patches_&&El("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Ek(e,t,r,n,i,a,o){if(qo(i)){const s=a&&t&&t.type_!==3&&!Tw(t.assigned_,n)?a.concat(n):void 0,l=py(e,i,s);if(X3(r,n,l),qo(l))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Ya(i)&&!u0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;py(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&vy(e,i)}}function vy(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tA(t,r)}function lq(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Z3(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=rA;r&&(i=[n],a=fd);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var rA={get(e,t){if(t===In)return e;const r=Vs(e);if(!Tw(r,t))return uq(e,r,t);const n=r[t];return e.finalized_||!Ya(n)?n:n===N1(e.base_,t)?(z1(e),e.copy_[t]=Pw(n,e)):n},has(e,t){return t in Vs(e)},ownKeys(e){return Reflect.ownKeys(Vs(e))},set(e,t,r){const n=K3(Vs(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=N1(Vs(e),t),a=i==null?void 0:i[In];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(nq(r,i)&&(r!==void 0||Tw(e.base_,t)))return!0;z1(e),kw(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return N1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,z1(e),kw(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Vs(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){wi(11)},getPrototypeOf(e){return Cc(e.base_)},setPrototypeOf(){wi(12)}},fd={};dy(rA,(e,t)=>{fd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});fd.deleteProperty=function(e,t){return fd.set.call(this,e,t,void 0)};fd.set=function(e,t,r){return rA.set.call(this,e[0],t,r,e[0])};function N1(e,t){const r=e[In];return(r?Vs(r):e)[t]}function uq(e,t,r){var i;const n=K3(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function K3(e,t){if(!(t in e))return;let r=Cc(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Cc(r)}}function kw(e){e.modified_||(e.modified_=!0,e.parent_&&kw(e.parent_))}function z1(e){e.copy_||(e.copy_=Aw(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var cq=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...u){return o.produce(l,c=>r.call(this,c,...u))}}typeof r!="function"&&wi(6),n!==void 0&&typeof n!="function"&&wi(7);let i;if(Ya(t)){const a=Pk(this),o=Pw(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?Mw(a):Dw(a)}return kk(a,n),Ik(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===j3&&(i=void 0),this.autoFreeze_&&tA(i,!0),n){const a=[],o=[];El("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else wi(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let n,i;return[this.produce(t,r,(o,s)=>{n=o,i=s}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ya(e)||wi(8),qo(e)&&(e=q3(e));const t=Pk(this),r=Pw(e,void 0);return r[In].isManual_=!0,Dw(t),r}finishDraft(e,t){const r=e&&e[In];(!r||!r.isManual_)&&wi(9);const{scope_:n}=r;return kk(n,t),Ik(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=El("Patches").applyPatches_;return qo(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Pw(e,t){const r=s0(e)?El("MapSet").proxyMap_(e,t):l0(e)?El("MapSet").proxySet_(e,t):lq(e,t);return(t?t.scope_:Z3()).drafts_.push(r),r}function q3(e){return qo(e)||wi(10,e),Q3(e)}function Q3(e){if(!Ya(e)||u0(e))return e;const t=e[In];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Aw(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Aw(e,!0);return dy(r,(n,i)=>{X3(r,n,Q3(i))}),t&&(t.finalized_=!1),r}var En=new cq,J3=En.produce;En.produceWithPatches.bind(En);En.setAutoFreeze.bind(En);En.setUseStrictShallowCopy.bind(En);En.applyPatches.bind(En);En.createDraft.bind(En);En.finishDraft.bind(En);function fq(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function hq(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function dq(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Lk=e=>Array.isArray(e)?e:[e];function pq(e){const t=Array.isArray(e[0])?e[0]:e;return dq(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function vq(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var gq=class{constructor(e){this.value=e}deref(){return this.value}},yq=typeof WeakRef<"u"?WeakRef:gq,mq=0,Rk=1;function Gp(){return{s:mq,v:void 0,o:null,p:null}}function nA(e,t={}){let r=Gp();const{resultEqualityCheck:n}=t;let i,a=0;function o(){var f;let s=r;const{length:l}=arguments;for(let h=0,d=l;h<d;h++){const p=arguments[h];if(typeof p=="function"||typeof p=="object"&&p!==null){let v=s.o;v===null&&(s.o=v=new WeakMap);const g=v.get(p);g===void 0?(s=Gp(),v.set(p,s)):s=g}else{let v=s.p;v===null&&(s.p=v=new Map);const g=v.get(p);g===void 0?(s=Gp(),v.set(p,s)):s=g}}const u=s;let c;if(s.s===Rk)c=s.v;else if(c=e.apply(null,arguments),a++,n){const h=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;h!=null&&n(h,c)&&(c=h,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new yq(c):c}return u.s=Rk,u.v=c,c}return o.clearCache=()=>{r=Gp(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function eF(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),fq(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...r,...l},{memoize:f,memoizeOptions:h=[],argsMemoize:d=nA,argsMemoizeOptions:p=[],devModeChecks:v={}}=c,g=Lk(h),y=Lk(p),m=pq(i),_=f(function(){return a++,u.apply(null,arguments)},...g),x=d(function(){o++;const S=vq(m,arguments);return s=_.apply(null,S),s},...y);return Object.assign(x,{resultFunc:u,memoizedResultFunc:_,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:d})};return Object.assign(n,{withTypes:()=>n}),n}var _q=eF(nA),xq=Object.assign((e,t=_q)=>{hq(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,s,l)=>(o[r[l]]=s,o),{}))},{withTypes:()=>xq});function tF(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var Sq=tF(),wq=tF,bq=(...e)=>{const t=eF(...e),r=Object.assign((...n)=>{const i=t(...n),a=(o,...s)=>i(qo(o)?q3(o):o,...s);return Object.assign(a,i),a},{withTypes:()=>r});return r};bq(nA);var Cq=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hy:hy.apply(null,arguments)};function Tc(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(cn(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>tq(n)&&n.type===e,r}var rF=class th extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,th.prototype)}static get[Symbol.species](){return th}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new th(...t[0].concat(this)):new th(...t.concat(this))}};function Ok(e){return Ya(e)?J3(e,()=>{}):e}function Nk(e,t,r){if(e.has(t)){let i=e.get(t);return r.update&&(i=r.update(i,t,e),e.set(t,i)),i}if(!r.insert)throw new Error(cn(10));const n=r.insert(t,e);return e.set(t,n),n}function Tq(e){return typeof e=="boolean"}var Aq=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new rF;return r&&(Tq(r)?o.push(Sq):o.push(wq(r.extraArgument))),o},Mq="RTK_autoBatch",nF=e=>t=>{setTimeout(t,e)},Dq=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nF(10),kq=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Dq:e.type==="callback"?e.queueNotification:nF(e.timeout),u=()=>{o=!1,a&&(a=!1,s.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),h=n.subscribe(f);return s.add(c),()=>{h(),s.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[Mq]),a=!i,a&&(o||(o=!0,l(u))),n.dispatch(c)}finally{i=!0}}})},Pq=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new rF(e);return n&&i.push(kq(typeof n=="object"?n:void 0)),i},Iq=!0;function Eq(e){const t=Aq(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(eA(r))s=U3(r);else throw new Error(cn(1));let l;typeof n=="function"?l=n(t):l=t();let u=hy;i&&(u=Cq({trace:!Iq,...typeof i=="object"&&i}));const c=eq(...l),f=Pq(c);let h=typeof o=="function"?o(f):f();const d=u(...h);return W3(s,a,d)}function iF(e){const t={},r=[];let n;const i={addCase(a,o){const s=typeof a=="string"?a:a.type;if(!s)throw new Error(cn(28));if(s in t)throw new Error(cn(29));return t[s]=o,i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function Lq(e){return typeof e=="function"}function Rq(e,t){let[r,n,i]=iF(t),a;if(Lq(e))a=()=>Ok(e());else{const s=Ok(e);a=()=>s}function o(s=a(),l){let u=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,f)=>{if(f)if(qo(c)){const d=f(c,l);return d===void 0?c:d}else{if(Ya(c))return J3(c,h=>f(h,l));{const h=f(c,l);if(h===void 0){if(c===null)return c;throw new Error(cn(9))}return h}}return c},s)}return o.getInitialState=a,o}var Oq="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Nq=(e=21)=>{let t="",r=e;for(;r--;)t+=Oq[Math.random()*64|0];return t},zq=Symbol.for("rtk-slice-createasyncthunk");function Bq(e,t){return`${e}/${t}`}function Fq({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[zq];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(cn(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers($q()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(_,x){const w=typeof _=="string"?_:_.type;if(!w)throw new Error(cn(12));if(w in u.sliceCaseReducersByType)throw new Error(cn(13));return u.sliceCaseReducersByType[w]=x,c},addMatcher(_,x){return u.sliceMatchers.push({matcher:_,reducer:x}),c},exposeAction(_,x){return u.actionCreators[_]=x,c},exposeCaseReducer(_,x){return u.sliceCaseReducersByName[_]=x,c}};l.forEach(_=>{const x=s[_],w={reducerName:_,type:Bq(a,_),createNotation:typeof i.reducers=="function"};Wq(x)?jq(w,x,c,t):Hq(w,x,c)});function f(){const[_={},x=[],w=void 0]=typeof i.extraReducers=="function"?iF(i.extraReducers):[i.extraReducers],S={..._,...u.sliceCaseReducersByType};return Rq(i.initialState,b=>{for(let C in S)b.addCase(C,S[C]);for(let C of u.sliceMatchers)b.addMatcher(C.matcher,C.reducer);for(let C of x)b.addMatcher(C.matcher,C.reducer);w&&b.addDefaultCase(w)})}const h=_=>_,d=new Map;let p;function v(_,x){return p||(p=f()),p(_,x)}function g(){return p||(p=f()),p.getInitialState()}function y(_,x=!1){function w(b){let C=b[_];return typeof C>"u"&&x&&(C=g()),C}function S(b=h){const C=Nk(d,x,{insert:()=>new WeakMap});return Nk(C,b,{insert:()=>{const T={};for(const[A,M]of Object.entries(i.selectors??{}))T[A]=Vq(M,b,g,x);return T}})}return{reducerPath:_,getSelectors:S,get selectors(){return S(w)},selectSlice:w}}const m={name:a,reducer:v,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:g,...y(o),injectInto(_,{reducerPath:x,...w}={}){const S=x??o;return _.inject({reducerPath:S,reducer:v},w),{...m,...y(S,!0)}}};return m}}function Vq(e,t,r,n){function i(a,...o){let s=t(a);return typeof s>"u"&&n&&(s=r()),e(s,...o)}return i.unwrapped=e,i}var Gq=Fq();function $q(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Hq({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!Uq(n))throw new Error(cn(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Tc(e,o):Tc(e))}function Wq(e){return e._reducerDefinitionType==="asyncThunk"}function Uq(e){return e._reducerDefinitionType==="reducerWithPrepare"}function jq({type:e,reducerName:t},r,n,i){if(!i)throw new Error(cn(18));const{payloadCreator:a,fulfilled:o,pending:s,rejected:l,settled:u,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:o||$p,pending:s||$p,rejected:l||$p,settled:u||$p})}function $p(){}var Yq=(e,t)=>{if(typeof e!="function")throw new Error(cn(32))},iA="listenerMiddleware",Xq=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Tc(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(cn(21));return Yq(a),{predicate:i,type:t,effect:a}},Zq=Object.assign(e=>{const{type:t,predicate:r,effect:n}=Xq(e);return{id:Nq(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(cn(22))}}},{withTypes:()=>Zq}),Kq=Object.assign(Tc(`${iA}/add`),{withTypes:()=>Kq});Tc(`${iA}/removeAll`);var qq=Object.assign(Tc(`${iA}/remove`),{withTypes:()=>qq});function cn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var aF={exports:{}},oF={};/**
148
- * @license React
149
- * use-sync-external-store-with-selector.production.min.js
150
- *
151
- * Copyright (c) Facebook, Inc. and its affiliates.
152
- *
153
- * This source code is licensed under the MIT license found in the
154
- * LICENSE file in the root directory of this source tree.
155
- */var Kd=F;function Qq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jq=typeof Object.is=="function"?Object.is:Qq,eQ=Kd.useSyncExternalStore,tQ=Kd.useRef,rQ=Kd.useEffect,nQ=Kd.useMemo,iQ=Kd.useDebugValue;oF.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=tQ(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=nQ(function(){function l(d){if(!u){if(u=!0,c=d,d=n(d),i!==void 0&&o.hasValue){var p=o.value;if(i(p,d))return f=p}return f=d}if(p=f,Jq(c,d))return p;var v=n(d);return i!==void 0&&i(p,v)?p:(c=d,f=v)}var u=!1,c,f,h=r===void 0?null:r;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,r,n,i]);var s=eQ(e,a[0],a[1]);return rQ(function(){o.hasValue=!0,o.value=s},[s]),iQ(s),s};aF.exports=oF;var aQ=aF.exports,Ze="default"in $h?bi:$h,zk=Symbol.for("react-redux-context"),Bk=typeof globalThis<"u"?globalThis:{};function oQ(){if(!Ze.createContext)return{};const e=Bk[zk]??(Bk[zk]=new Map);let t=e.get(Ze.createContext);return t||(t=Ze.createContext(null),e.set(Ze.createContext,t)),t}var hd=oQ(),sF=()=>{throw new Error("uSES not initialized!")};function lF(e=hd){return function(){return Ze.useContext(e)}}var sQ=lF(),uF=sF,lQ=e=>{uF=e},uQ=(e,t)=>e===t;function cQ(e=hd){const t=e===hd?sQ:lF(e),r=(n,i={})=>{const{equalityFn:a=uQ,devModeChecks:o={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();Ze.useRef(!0);const h=Ze.useCallback({[n.name](p){return n(p)}}[n.name],[n,c,o.stabilityCheck]),d=uF(l.addNestedSub,s.getState,u||s.getState,h,a);return Ze.useDebugValue(d),d};return Object.assign(r,{withTypes:()=>r}),r}var fQ=cQ(),hQ=Symbol.for("react.element"),dQ=Symbol.for("react.portal"),pQ=Symbol.for("react.fragment"),vQ=Symbol.for("react.strict_mode"),gQ=Symbol.for("react.profiler"),yQ=Symbol.for("react.provider"),mQ=Symbol.for("react.context"),_Q=Symbol.for("react.server_context"),cF=Symbol.for("react.forward_ref"),xQ=Symbol.for("react.suspense"),SQ=Symbol.for("react.suspense_list"),aA=Symbol.for("react.memo"),wQ=Symbol.for("react.lazy"),bQ=cF,CQ=aA;function TQ(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case hQ:{const r=e.type;switch(r){case pQ:case gQ:case vQ:case xQ:case SQ:return r;default:{const n=r&&r.$$typeof;switch(n){case _Q:case mQ:case cF:case wQ:case aA:case yQ:return n;default:return t}}}}case dQ:return t}}}function AQ(e){return TQ(e)===aA}function MQ(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,l,u,c,f,h;function d(m,_){return l=m,u=_,c=e(l,u),f=t(n,u),h=r(c,f,u),s=!0,h}function p(){return c=e(l,u),t.dependsOnOwnProps&&(f=t(n,u)),h=r(c,f,u),h}function v(){return e.dependsOnOwnProps&&(c=e(l,u)),t.dependsOnOwnProps&&(f=t(n,u)),h=r(c,f,u),h}function g(){const m=e(l,u),_=!o(m,c);return c=m,_&&(h=r(c,f,u)),h}function y(m,_){const x=!a(_,u),w=!i(m,l,_,u);return l=m,u=_,x&&w?p():x?v():w?g():h}return function(_,x){return s?y(_,x):d(_,x)}}function DQ(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const a=t(e,i),o=r(e,i),s=n(e,i);return MQ(a,o,s,e,i)}function kQ(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...a)=>t(i(...a)))}return r}function Iw(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function Fk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function fF(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=Fk(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=Fk(u),u=a(s,l)),u},a}}function oA(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function PQ(e){return e&&typeof e=="object"?Iw(t=>kQ(e,t)):e?typeof e=="function"?fF(e):oA(e,"mapDispatchToProps"):Iw(t=>({dispatch:t}))}function IQ(e){return e?typeof e=="function"?fF(e):oA(e,"mapStateToProps"):Iw(()=>({}))}function EQ(e,t,r){return{...r,...e,...t}}function LQ(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function RQ(e){return e?typeof e=="function"?LQ(e):oA(e,"mergeProps"):()=>EQ}function OQ(e){e()}function NQ(){let e=null,t=null;return{clear(){e=null,t=null},notify(){OQ(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Vk={notify(){},get:()=>[]};function hF(e,t){let r,n=Vk,i=0,a=!1;function o(v){c();const g=n.subscribe(v);let y=!1;return()=>{y||(y=!0,g(),f())}}function s(){n.notify()}function l(){p.onStateChange&&p.onStateChange()}function u(){return a}function c(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=NQ())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Vk)}function h(){a||(a=!0,c())}function d(){a&&(a=!1,f())}const p={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return p}var zQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BQ=typeof navigator<"u"&&navigator.product==="ReactNative",gy=zQ||BQ?Ze.useLayoutEffect:Ze.useEffect;function Gk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function B1(e,t){if(Gk(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!Gk(e[r[i]],t[r[i]]))return!1;return!0}var FQ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},VQ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},GQ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$Q={[bQ]:GQ,[CQ]:dF};function $k(e){return AQ(e)?dF:$Q[e.$$typeof]||FQ}var HQ=Object.defineProperty,WQ=Object.getOwnPropertyNames,Hk=Object.getOwnPropertySymbols,UQ=Object.getOwnPropertyDescriptor,jQ=Object.getPrototypeOf,Wk=Object.prototype;function Ew(e,t){if(typeof t!="string"){if(Wk){const a=jQ(t);a&&a!==Wk&&Ew(e,a)}let r=WQ(t);Hk&&(r=r.concat(Hk(t)));const n=$k(e),i=$k(t);for(let a=0;a<r.length;++a){const o=r[a];if(!VQ[o]&&!(i&&i[o])&&!(n&&n[o])){const s=UQ(t,o);try{HQ(e,o,s)}catch{}}}}return e}var pF=sF,YQ=e=>{pF=e},XQ=[null,null];function ZQ(e,t,r){gy(()=>e(...t),r)}function KQ(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function qQ(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,h=null;const d=()=>{if(f||!s.current)return;const v=t.getState();let g,y;try{g=n(v,i.current)}catch(m){y=m,h=m}y||(h=null),g===a.current?o.current||u():(a.current=g,l.current=g,o.current=!0,c())};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}function QQ(e,t){return e===t}function JQ(e,t,r,{pure:n,areStatesEqual:i=QQ,areOwnPropsEqual:a=B1,areStatePropsEqual:o=B1,areMergedPropsEqual:s=B1,forwardRef:l=!1,context:u=hd}={}){const c=u,f=IQ(e),h=PQ(t),d=RQ(r),p=!!e;return g=>{const y=g.displayName||g.name||"Component",m=`Connect(${y})`,_={shouldHandleStateChanges:p,displayName:m,wrappedComponentName:y,WrappedComponent:g,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:d,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function x(b){const[C,T,A]=Ze.useMemo(()=>{const{reactReduxForwardedRef:ce,..._e}=b;return[b.context,ce,_e]},[b]),M=Ze.useMemo(()=>{let ce=c;return C!=null&&C.Consumer,ce},[C,c]),k=Ze.useContext(M),P=!!b.store&&!!b.store.getState&&!!b.store.dispatch,L=!!k&&!!k.store,E=P?b.store:k.store,R=L?k.getServerState:E.getState,z=Ze.useMemo(()=>DQ(E.dispatch,_),[E]),[O,B]=Ze.useMemo(()=>{if(!p)return XQ;const ce=hF(E,P?void 0:k.subscription),_e=ce.notifyNestedSubs.bind(ce);return[ce,_e]},[E,P,k]),I=Ze.useMemo(()=>P?k:{...k,subscription:O},[P,k,O]),G=Ze.useRef(void 0),U=Ze.useRef(A),N=Ze.useRef(void 0),Z=Ze.useRef(!1),oe=Ze.useRef(!1),te=Ze.useRef(void 0);gy(()=>(oe.current=!0,()=>{oe.current=!1}),[]);const fe=Ze.useMemo(()=>()=>N.current&&A===U.current?N.current:z(E.getState(),A),[E,A]),ie=Ze.useMemo(()=>_e=>O?qQ(p,E,O,z,U,G,Z,oe,N,B,_e):()=>{},[O]);ZQ(KQ,[U,G,Z,A,N,B]);let le;try{le=pF(ie,fe,R?()=>z(R(),A):fe)}catch(ce){throw te.current&&(ce.message+=`
156
- The error may be correlated with this previous error:
157
- ${te.current.stack}
158
-
159
- `),ce}gy(()=>{te.current=void 0,N.current=void 0,G.current=le});const ue=Ze.useMemo(()=>Ze.createElement(g,{...le,ref:T}),[T,g,le]);return Ze.useMemo(()=>p?Ze.createElement(M.Provider,{value:I},ue):ue,[M,ue,I])}const S=Ze.memo(x);if(S.WrappedComponent=g,S.displayName=x.displayName=m,l){const C=Ze.forwardRef(function(A,M){return Ze.createElement(S,{...A,reactReduxForwardedRef:M})});return C.displayName=m,C.WrappedComponent=g,Ew(C,g)}return Ew(S,g)}}var qd=JQ;function eJ({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const o=Ze.useMemo(()=>{const u=hF(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,n,i,a]),s=Ze.useMemo(()=>e.getState(),[e]);gy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||hd;return Ze.createElement(l.Provider,{value:o},r)}var tJ=eJ;lQ(aQ.useSyncExternalStoreWithSelector);YQ(F.useSyncExternalStore);function rJ(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const nJ=/[ \t\n\f\r]/g;function iJ(e){return typeof e=="object"?e.type==="text"?Uk(e.value):!1:Uk(e)}function Uk(e){return e.replace(nJ,"")===""}class Qd{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Qd.prototype.property={};Qd.prototype.normal={};Qd.prototype.space=null;function vF(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new Qd(r,n,t)}function Lw(e){return e.toLowerCase()}class li{constructor(t,r){this.property=t,this.attribute=r}}li.prototype.space=null;li.prototype.boolean=!1;li.prototype.booleanish=!1;li.prototype.overloadedBoolean=!1;li.prototype.number=!1;li.prototype.commaSeparated=!1;li.prototype.spaceSeparated=!1;li.prototype.commaOrSpaceSeparated=!1;li.prototype.mustUseProperty=!1;li.prototype.defined=!1;let aJ=0;const Fe=$l(),Wt=$l(),gF=$l(),J=$l(),gt=$l(),ic=$l(),yn=$l();function $l(){return 2**++aJ}const Rw=Object.freeze(Object.defineProperty({__proto__:null,boolean:Fe,booleanish:Wt,commaOrSpaceSeparated:yn,commaSeparated:ic,number:J,overloadedBoolean:gF,spaceSeparated:gt},Symbol.toStringTag,{value:"Module"})),F1=Object.keys(Rw);class sA extends li{constructor(t,r,n,i){let a=-1;if(super(t,r),jk(this,"space",i),typeof n=="number")for(;++a<F1.length;){const o=F1[a];jk(this,F1[a],(n&Rw[o])===Rw[o])}}}sA.prototype.defined=!0;function jk(e,t,r){r&&(e[t]=r)}const oJ={}.hasOwnProperty;function Gc(e){const t={},r={};let n;for(n in e.properties)if(oJ.call(e.properties,n)){const i=e.properties[n],a=new sA(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Lw(n)]=n,r[Lw(a.attribute)]=n}return new Qd(t,r,e.space)}const yF=Gc({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),mF=Gc({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _F(e,t){return t in e?e[t]:t}function xF(e,t){return _F(e,t.toLowerCase())}const SF=Gc({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xF,properties:{xmlns:null,xmlnsXLink:null}}),wF=Gc({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Wt,ariaAutoComplete:null,ariaBusy:Wt,ariaChecked:Wt,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:gt,ariaCurrent:null,ariaDescribedBy:gt,ariaDetails:null,ariaDisabled:Wt,ariaDropEffect:gt,ariaErrorMessage:null,ariaExpanded:Wt,ariaFlowTo:gt,ariaGrabbed:Wt,ariaHasPopup:null,ariaHidden:Wt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gt,ariaLevel:J,ariaLive:null,ariaModal:Wt,ariaMultiLine:Wt,ariaMultiSelectable:Wt,ariaOrientation:null,ariaOwns:gt,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:Wt,ariaReadOnly:Wt,ariaRelevant:null,ariaRequired:Wt,ariaRoleDescription:gt,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:Wt,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null}}),sJ=Gc({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xF,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ic,acceptCharset:gt,accessKey:gt,action:null,allow:null,allowFullScreen:Fe,allowPaymentRequest:Fe,allowUserMedia:Fe,alt:null,as:null,async:Fe,autoCapitalize:null,autoComplete:gt,autoFocus:Fe,autoPlay:Fe,blocking:gt,capture:Fe,charSet:null,checked:Fe,cite:null,className:gt,cols:J,colSpan:null,content:null,contentEditable:Wt,controls:Fe,controlsList:gt,coords:J|ic,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Fe,defer:Fe,dir:null,dirName:null,disabled:Fe,download:gF,draggable:Wt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Fe,formTarget:null,headers:gt,height:J,hidden:Fe,high:J,href:null,hrefLang:null,htmlFor:gt,httpEquiv:gt,id:null,imageSizes:null,imageSrcSet:null,inert:Fe,inputMode:null,integrity:null,is:null,isMap:Fe,itemId:null,itemProp:gt,itemRef:gt,itemScope:Fe,itemType:gt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Fe,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:Fe,muted:Fe,name:null,nonce:null,noModule:Fe,noValidate:Fe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Fe,optimum:J,agent:null,ping:gt,placeholder:null,playsInline:Fe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Fe,referrerPolicy:null,rel:gt,required:Fe,reversed:Fe,rows:J,rowSpan:J,sandbox:gt,scope:null,scoped:Fe,seamless:Fe,selected:Fe,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:Wt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:Fe,useMap:null,value:Wt,width:J,wrap:null,align:null,aLink:null,archive:gt,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Fe,declare:Fe,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:Fe,noHref:Fe,noShade:Fe,noWrap:Fe,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:Wt,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Fe,disableRemotePlayback:Fe,prefix:null,property:null,results:J,security:null,unselectable:null}}),lJ=Gc({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_F,properties:{about:yn,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:gt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:Fe,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ic,g2:ic,glyphName:ic,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,agentContentUnits:null,agentTransform:null,agentUnits:null,phase:null,ping:gt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),uJ=/^data[-\w.:]+$/i,Yk=/-[a-z]/g,cJ=/[A-Z]/g;function fJ(e,t){const r=Lw(t);let n=t,i=li;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&uJ.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Yk,dJ);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Yk.test(a)){let o=a.replace(cJ,hJ);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=sA}return new i(n,t)}function hJ(e){return"-"+e.toLowerCase()}function dJ(e){return e.charAt(1).toUpperCase()}const pJ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vJ=vF([mF,yF,SF,wF,sJ],"html"),bF=vF([mF,yF,SF,wF,lJ],"svg");function gJ(e){return e.join(" ").trim()}var lA={exports:{}},Xk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,yJ=/\n/g,mJ=/^\s*/,_J=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xJ=/^:\s*/,SJ=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,wJ=/^[;\s]*/,bJ=/^\s+|\s+$/g,CJ=`
160
- `,Zk="/",Kk="*",Xs="",TJ="comment",AJ="declaration",MJ=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(yJ);v&&(r+=v.length);var g=p.lastIndexOf(CJ);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(mJ)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(Zk!=e.charAt(0)||Kk!=e.charAt(1))){for(var v=2;Xs!=e.charAt(v)&&(Kk!=e.charAt(v)||Zk!=e.charAt(v+1));)++v;if(v+=2,Xs===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:TJ,comment:g})}}function h(){var p=a(),v=l(_J);if(v){if(f(),!l(xJ))return s("property missing ':'");var g=l(SJ),y=p({type:AJ,property:qk(v[0].replace(Xk,Xs)),value:g?qk(g[0].replace(Xk,Xs)):Xs});return l(wJ),y}}function d(){var p=[];c(p);for(var v;v=h();)v!==!1&&(p.push(v),c(p));return p}return u(),d()};function qk(e){return e?e.replace(bJ,Xs):Xs}var DJ=MJ;function CF(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=DJ(e),a=typeof t=="function",o,s,l=0,u=i.length;l<u;l++)n=i[l],o=n.property,s=n.value,a?t(o,s,n):s&&(r||(r={}),r[o]=s);return r}lA.exports=CF;lA.exports.default=CF;var kJ=lA.exports;const PJ=ym(kJ),TF=AF("end"),uA=AF("start");function AF(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function IJ(e){const t=uA(e),r=TF(e);if(t&&r)return{start:t,end:r}}function Th(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qk(e.position):"start"in e||"end"in e?Qk(e):"line"in e||"column"in e?Ow(e):""}function Ow(e){return Jk(e&&e.line)+":"+Jk(e&&e.column)}function Qk(e){return Ow(e&&e.start)+"-"+Ow(e&&e.end)}function Jk(e){return e&&typeof e=="number"?e:1}class Xr extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Th(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xr.prototype.file="";Xr.prototype.name="";Xr.prototype.reason="";Xr.prototype.message="";Xr.prototype.stack="";Xr.prototype.column=void 0;Xr.prototype.line=void 0;Xr.prototype.ancestors=void 0;Xr.prototype.cause=void 0;Xr.prototype.fatal=void 0;Xr.prototype.place=void 0;Xr.prototype.ruleId=void 0;Xr.prototype.source=void 0;const cA={}.hasOwnProperty,EJ=new Map,LJ=/[A-Z]/g,RJ=/-([a-z])/g,OJ=new Set(["table","tbody","thead","tfoot","tr"]),NJ=new Set(["td","th"]);function zJ(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=FJ(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=BJ(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?bF:vJ,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=MF(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function MF(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=bF,e.schema=i),e.ancestors.push(t);let a=VJ(e,t);const o=GJ(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&OJ.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!iJ(l):!0})),cA.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function BJ(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function FJ(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=uA(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function VJ(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:EJ;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys&&a.type==="element"){const l=i.get(a.tagName)||0;o=a.tagName+"-"+l,i.set(a.tagName,l+1)}const s=MF(e,a,o);s!==void 0&&r.push(s)}return r}function GJ(e,t){const r=t[t.length-1],n={};let i;if("properties"in r&&r.properties){let a;for(i in r.properties)if(i!=="children"&&cA.call(r.properties,i)){const o=$J(e,t,i,r.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&NJ.has(r.tagName)?a=l:n[s]=l}}if(a){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}}return n}function $J(e,t,r,n){const i=fJ(e.schema,r);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?rJ(n):gJ(n)),i.property==="style"){let a=typeof n=="object"?n:HJ(e,t,String(n));return e.stylePropertyNameCase==="css"&&(a=WJ(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?pJ[i.property]||i.property:i.attribute,n]}}function HJ(e,t,r){const n={};try{PJ(r,i)}catch(a){if(!e.ignoreInvalidStyle){const o=a,s=new Xr("Cannot parse `style` attribute",{ancestors:t,cause:o,source:"hast-util-to-jsx-runtime",ruleId:"style"});throw s.file=e.filePath||void 0,s.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",s}}return n;function i(a,o){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(RJ,jJ)),n[s]=o}}function WJ(e){const t={};let r;for(r in e)cA.call(e,r)&&(t[UJ(r)]=e[r]);return t}function UJ(e){let t=e.replace(LJ,YJ);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function jJ(e,t){return t.toUpperCase()}function YJ(e){return"-"+e.toLowerCase()}const V1={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},XJ={};function ZJ(e,t){const r=XJ,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return DF(e,n,i)}function DF(e,t,r){if(KJ(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eP(e.children,t,r)}return Array.isArray(e)?eP(e,t,r):""}function eP(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=DF(e[i],t,r);return n.join("")}function KJ(e){return!!(e&&typeof e=="object")}const tP=document.createElement("i");function fA(e){const t="&"+e+";";tP.innerHTML=t;const r=tP.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function da(e,t,r,n){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Kn(e,t){return e.length>0?(da(e,e.length,0,t),e):t}const rP={}.hasOwnProperty;function qJ(e){const t={};let r=-1;for(;++r<e.length;)QJ(t,e[r]);return t}function QJ(e,t){let r;for(r in t){const i=(rP.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){rP.call(i,o)||(i[o]=[]);const s=a[o];JJ(i[o],Array.isArray(s)?s:s?[s]:[])}}}function JJ(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);da(e,0,0,n)}function kF(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function ac(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const eee=us(new RegExp("\\p{P}","u")),ta=us(/[A-Za-z]/),bn=us(/[\dA-Za-z]/),tee=us(/[#-'*+\--9=?A-Z^-~]/);function Nw(e){return e!==null&&(e<32||e===127)}const zw=us(/\d/),ree=us(/[\dA-Fa-f]/),PF=us(/[!-/:-@[-`{-~]/);function Pe(e){return e!==null&&e<-2}function fn(e){return e!==null&&(e<0||e===32)}function it(e){return e===-2||e===-1||e===32}function nee(e){return PF(e)||eee(e)}const iee=us(/\s/);function us(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function $c(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&bn(e.charCodeAt(r+1))&&bn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function mt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return it(l)?(e.enter(r),s(l)):t(l)}function s(l){return it(l)&&a++<i?(e.consume(l),s):(e.exit(r),t(l))}}const aee={tokenize:oee};function oee(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),mt(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Pe(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const see={tokenize:lee},nP={tokenize:uee};function lee(e){const t=this,r=[];let n=0,i,a,o;return s;function s(_){if(n<r.length){const x=r[n];return t.containerState=x[1],e.attempt(x[0].continuation,l,u)(_)}return u(_)}function l(_){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&m();const x=t.events.length;let w=x,S;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){S=t.events[w][1].end;break}y(n);let b=x;for(;b<t.events.length;)t.events[b][1].end=Object.assign({},S),b++;return da(t.events,w+1,0,t.events.slice(x)),t.events.length=b,u(_)}return s(_)}function u(_){if(n===r.length){if(!i)return h(_);if(i.currentConstruct&&i.currentConstruct.concrete)return p(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(nP,c,f)(_)}function c(_){return i&&m(),y(n),h(_)}function f(_){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,p(_)}function h(_){return t.containerState={},e.attempt(nP,d,p)(_)}function d(_){return n++,r.push([t.currentConstruct,t.containerState]),h(_)}function p(_){if(_===null){i&&m(),y(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),v(_)}function v(_){if(_===null){g(e.exit("chunkFlow"),!0),y(0),e.consume(_);return}return Pe(_)?(e.consume(_),g(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(_),v)}function g(_,x){const w=t.sliceStream(_);if(x&&w.push(null),_.previous=a,a&&(a.next=_),a=_,i.defineSkip(_.start),i.write(w),t.parser.lazy[_.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const b=t.events.length;let C=b,T,A;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(T){A=t.events[C][1].end;break}T=!0}for(y(n),S=b;S<t.events.length;)t.events[S][1].end=Object.assign({},A),S++;da(t.events,C+1,0,t.events.slice(b)),t.events.length=S}}function y(_){let x=r.length;for(;x-- >_;){const w=r[x];t.containerState=w[1],w[0].exit.call(t,e)}r.length=_}function m(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function uee(e,t,r){return mt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function iP(e){if(e===null||fn(e)||iee(e))return 1;if(nee(e))return 2}function hA(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const Bw={name:"attention",tokenize:fee,resolveAll:cee};function cee(e,t){let r=-1,n,i,a,o,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),h=Object.assign({},e[r][1].start);aP(f,-l),aP(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Kn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Kn(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=Kn(u,hA(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Kn(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=Kn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,da(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function fee(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=iP(n);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),c=iP(l),f=!c||c===2&&i||r.includes(l),h=!i||i===2&&c||r.includes(n);return u._open=!!(a===42?f:f&&(i||!h)),u._close=!!(a===42?h:h&&(c||!f)),t(l)}}function aP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const hee={name:"autolink",tokenize:dee};function dee(e,t,r){let n=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(d){return ta(d)?(e.consume(d),o):u(d)}function o(d){return d===43||d===45||d===46||bn(d)?(n=1,s(d)):u(d)}function s(d){return d===58?(e.consume(d),n=0,l):(d===43||d===45||d===46||bn(d))&&n++<32?(e.consume(d),s):(n=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Nw(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):tee(d)?(e.consume(d),u):r(d)}function c(d){return bn(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),n=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||bn(d))&&n++<63){const p=d===45?h:f;return e.consume(d),p}return r(d)}}const c0={tokenize:pee,partial:!0};function pee(e,t,r){return n;function n(a){return it(a)?mt(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Pe(a)?t(a):r(a)}}const IF={name:"blockQuote",tokenize:vee,continuation:{tokenize:gee},exit:yee};function vee(e,t,r){const n=this;return i;function i(o){if(o===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return it(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function gee(e,t,r){const n=this;return i;function i(o){return it(o)?mt(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(IF,t,r)(o)}}function yee(e){e.exit("blockQuote")}const EF={name:"characterEscape",tokenize:mee};function mee(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return PF(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const LF={name:"characterReference",tokenize:_ee};function _ee(e,t,r){const n=this;let i=0,a,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=bn,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=ree,c):(e.enter("characterReferenceValue"),a=7,o=zw,c(f))}function c(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return o===bn&&!fA(n.sliceSerialize(h))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),c):r(f)}}const oP={tokenize:See,partial:!0},sP={name:"codeFenced",tokenize:xee,concrete:!0};function xee(e,t,r){const n=this,i={tokenize:w,partial:!0};let a=0,o=0,s;return l;function l(S){return u(S)}function u(S){const b=n.events[n.events.length-1];return a=b&&b[1].type==="linePrefix"?b[2].sliceSerialize(b[1],!0).length:0,s=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===s?(o++,e.consume(S),c):o<3?r(S):(e.exit("codeFencedFenceSequence"),it(S)?mt(e,f,"whitespace")(S):f(S))}function f(S){return S===null||Pe(S)?(e.exit("codeFencedFence"),n.interrupt?t(S):e.check(oP,v,x)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||Pe(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):it(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),mt(e,d,"whitespace")(S)):S===96&&S===s?r(S):(e.consume(S),h)}function d(S){return S===null||Pe(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||Pe(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===s?r(S):(e.consume(S),p)}function v(S){return e.attempt(i,x,g)(S)}function g(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return a>0&&it(S)?mt(e,m,"linePrefix",a+1)(S):m(S)}function m(S){return S===null||Pe(S)?e.check(oP,v,x)(S):(e.enter("codeFlowValue"),_(S))}function _(S){return S===null||Pe(S)?(e.exit("codeFlowValue"),m(S)):(e.consume(S),_)}function x(S){return e.exit("codeFenced"),t(S)}function w(S,b,C){let T=0;return A;function A(E){return S.enter("lineEnding"),S.consume(E),S.exit("lineEnding"),M}function M(E){return S.enter("codeFencedFence"),it(E)?mt(S,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):k(E)}function k(E){return E===s?(S.enter("codeFencedFenceSequence"),P(E)):C(E)}function P(E){return E===s?(T++,S.consume(E),P):T>=o?(S.exit("codeFencedFenceSequence"),it(E)?mt(S,L,"whitespace")(E):L(E)):C(E)}function L(E){return E===null||Pe(E)?(S.exit("codeFencedFence"),b(E)):C(E)}}}function See(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const G1={name:"codeIndented",tokenize:bee},wee={tokenize:Cee,partial:!0};function bee(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),mt(e,a,"linePrefix",5)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):Pe(u)?e.attempt(wee,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Pe(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Cee(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):mt(e,a,"linePrefix",5)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Pe(o)?i(o):r(o)}}const Tee={name:"codeText",tokenize:Dee,resolve:Aee,previous:Mee};function Aee(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function Mee(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Dee(e,t,r){let n=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),n++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,c(f)):Pe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||Pe(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}function RF(e){const t={};let r=-1,n,i,a,o,s,l,u;for(;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,kee(e,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},e[i][1].start),s=e.slice(i,r),s.unshift(n),da(e,i,r-i+1,s))}}return!u}function kee(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,l=[],u={};let c,f,h=-1,d=r,p=0,v=0;const g=[v];for(;d;){for(;e[++i][1]!==d;);a.push(i),d._tokenizer||(c=n.sliceStream(d),d.next||c.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(v=h+1,g.push(v),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),h=g.length;h--;){const y=s.slice(g[h],g[h+1]),m=a.pop();l.unshift([m,m+y.length-1]),da(e,m,2,y)}for(h=-1;++h<l.length;)u[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return u}const Pee={tokenize:Lee,resolve:Eee},Iee={tokenize:Ree,partial:!0};function Eee(e){return RF(e),e}function Lee(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):Pe(s)?e.check(Iee,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Ree(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),mt(e,a,"linePrefix")}function a(o){if(o===null||Pe(o))return r(o);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function OF(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(y){return y===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(y),e.exit(a),h):y===null||y===32||y===41||Nw(y)?r(y):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function h(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(s),h(y)):y===null||y===60||Pe(y)?r(y):(e.consume(y),y===92?p:d)}function p(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function v(y){return!c&&(y===null||y===41||fn(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(y)):c<u&&y===40?(e.consume(y),c++,v):y===41?(e.consume(y),c--,v):y===null||y===32||y===40||Nw(y)?r(y):(e.consume(y),y===92?g:v)}function g(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function NF(e,t,r,n,i,a){const o=this;let s=0,l;return u;function u(d){return e.enter(n),e.enter(i),e.consume(d),e.exit(i),e.enter(a),c}function c(d){return s>999||d===null||d===91||d===93&&!l||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):d===93?(e.exit(a),e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):Pe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||Pe(d)||s++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!it(d)),d===92?h:f)}function h(d){return d===91||d===92||d===93?(e.consume(d),s++,f):f(d)}}function zF(e,t,r,n,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(n),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):r(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):(e.enter(a),u(h))}function u(h){return h===o?(e.exit(a),l(o)):h===null?r(h):Pe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),mt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===o||h===null||Pe(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===o||h===92?(e.consume(h),c):c(h)}}function Ah(e,t){let r;return n;function n(i){return Pe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):it(i)?mt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Oee={name:"definition",tokenize:zee},Nee={tokenize:Bee,partial:!0};function zee(e,t,r){const n=this;let i;return a;function a(d){return e.enter("definition"),o(d)}function o(d){return NF.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return i=ac(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):r(d)}function l(d){return fn(d)?Ah(e,u)(d):u(d)}function u(d){return OF(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Nee,f,f)(d)}function f(d){return it(d)?mt(e,h,"whitespace")(d):h(d)}function h(d){return d===null||Pe(d)?(e.exit("definition"),n.parser.defined.push(i),t(d)):r(d)}}function Bee(e,t,r){return n;function n(s){return fn(s)?Ah(e,i)(s):r(s)}function i(s){return zF(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return it(s)?mt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Pe(s)?t(s):r(s)}}const Fee={name:"hardBreakEscape",tokenize:Vee};function Vee(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Pe(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Gee={name:"headingAtx",tokenize:Hee,resolve:$ee};function $ee(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},da(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Hee(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||fn(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Pe(c)?(e.exit("atxHeading"),t(c)):it(c)?mt(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||fn(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Wee=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],lP=["pre","script","style","textarea"],Uee={name:"htmlFlow",tokenize:Zee,resolveTo:Xee,concrete:!0},jee={tokenize:qee,partial:!0},Yee={tokenize:Kee,partial:!0};function Xee(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Zee(e,t,r){const n=this;let i,a,o,s,l;return u;function u(N){return c(N)}function c(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),f}function f(N){return N===33?(e.consume(N),h):N===47?(e.consume(N),a=!0,v):N===63?(e.consume(N),i=3,n.interrupt?t:I):ta(N)?(e.consume(N),o=String.fromCharCode(N),g):r(N)}function h(N){return N===45?(e.consume(N),i=2,d):N===91?(e.consume(N),i=5,s=0,p):ta(N)?(e.consume(N),i=4,n.interrupt?t:I):r(N)}function d(N){return N===45?(e.consume(N),n.interrupt?t:I):r(N)}function p(N){const Z="CDATA[";return N===Z.charCodeAt(s++)?(e.consume(N),s===Z.length?n.interrupt?t:k:p):r(N)}function v(N){return ta(N)?(e.consume(N),o=String.fromCharCode(N),g):r(N)}function g(N){if(N===null||N===47||N===62||fn(N)){const Z=N===47,oe=o.toLowerCase();return!Z&&!a&&lP.includes(oe)?(i=1,n.interrupt?t(N):k(N)):Wee.includes(o.toLowerCase())?(i=6,Z?(e.consume(N),y):n.interrupt?t(N):k(N)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(N):a?m(N):_(N))}return N===45||bn(N)?(e.consume(N),o+=String.fromCharCode(N),g):r(N)}function y(N){return N===62?(e.consume(N),n.interrupt?t:k):r(N)}function m(N){return it(N)?(e.consume(N),m):A(N)}function _(N){return N===47?(e.consume(N),A):N===58||N===95||ta(N)?(e.consume(N),x):it(N)?(e.consume(N),_):A(N)}function x(N){return N===45||N===46||N===58||N===95||bn(N)?(e.consume(N),x):w(N)}function w(N){return N===61?(e.consume(N),S):it(N)?(e.consume(N),w):_(N)}function S(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),l=N,b):it(N)?(e.consume(N),S):C(N)}function b(N){return N===l?(e.consume(N),l=null,T):N===null||Pe(N)?r(N):(e.consume(N),b)}function C(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||fn(N)?w(N):(e.consume(N),C)}function T(N){return N===47||N===62||it(N)?_(N):r(N)}function A(N){return N===62?(e.consume(N),M):r(N)}function M(N){return N===null||Pe(N)?k(N):it(N)?(e.consume(N),M):r(N)}function k(N){return N===45&&i===2?(e.consume(N),R):N===60&&i===1?(e.consume(N),z):N===62&&i===4?(e.consume(N),G):N===63&&i===3?(e.consume(N),I):N===93&&i===5?(e.consume(N),B):Pe(N)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jee,U,P)(N)):N===null||Pe(N)?(e.exit("htmlFlowData"),P(N)):(e.consume(N),k)}function P(N){return e.check(Yee,L,U)(N)}function L(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),E}function E(N){return N===null||Pe(N)?P(N):(e.enter("htmlFlowData"),k(N))}function R(N){return N===45?(e.consume(N),I):k(N)}function z(N){return N===47?(e.consume(N),o="",O):k(N)}function O(N){if(N===62){const Z=o.toLowerCase();return lP.includes(Z)?(e.consume(N),G):k(N)}return ta(N)&&o.length<8?(e.consume(N),o+=String.fromCharCode(N),O):k(N)}function B(N){return N===93?(e.consume(N),I):k(N)}function I(N){return N===62?(e.consume(N),G):N===45&&i===2?(e.consume(N),I):k(N)}function G(N){return N===null||Pe(N)?(e.exit("htmlFlowData"),U(N)):(e.consume(N),G)}function U(N){return e.exit("htmlFlow"),t(N)}}function Kee(e,t,r){const n=this;return i;function i(o){return Pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function qee(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(c0,t,r)}}const Qee={name:"htmlText",tokenize:Jee};function Jee(e,t,r){const n=this;let i,a,o;return s;function s(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),l}function l(I){return I===33?(e.consume(I),u):I===47?(e.consume(I),w):I===63?(e.consume(I),_):ta(I)?(e.consume(I),C):r(I)}function u(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),a=0,p):ta(I)?(e.consume(I),m):r(I)}function c(I){return I===45?(e.consume(I),d):r(I)}function f(I){return I===null?r(I):I===45?(e.consume(I),h):Pe(I)?(o=f,z(I)):(e.consume(I),f)}function h(I){return I===45?(e.consume(I),d):f(I)}function d(I){return I===62?R(I):I===45?h(I):f(I)}function p(I){const G="CDATA[";return I===G.charCodeAt(a++)?(e.consume(I),a===G.length?v:p):r(I)}function v(I){return I===null?r(I):I===93?(e.consume(I),g):Pe(I)?(o=v,z(I)):(e.consume(I),v)}function g(I){return I===93?(e.consume(I),y):v(I)}function y(I){return I===62?R(I):I===93?(e.consume(I),y):v(I)}function m(I){return I===null||I===62?R(I):Pe(I)?(o=m,z(I)):(e.consume(I),m)}function _(I){return I===null?r(I):I===63?(e.consume(I),x):Pe(I)?(o=_,z(I)):(e.consume(I),_)}function x(I){return I===62?R(I):_(I)}function w(I){return ta(I)?(e.consume(I),S):r(I)}function S(I){return I===45||bn(I)?(e.consume(I),S):b(I)}function b(I){return Pe(I)?(o=b,z(I)):it(I)?(e.consume(I),b):R(I)}function C(I){return I===45||bn(I)?(e.consume(I),C):I===47||I===62||fn(I)?T(I):r(I)}function T(I){return I===47?(e.consume(I),R):I===58||I===95||ta(I)?(e.consume(I),A):Pe(I)?(o=T,z(I)):it(I)?(e.consume(I),T):R(I)}function A(I){return I===45||I===46||I===58||I===95||bn(I)?(e.consume(I),A):M(I)}function M(I){return I===61?(e.consume(I),k):Pe(I)?(o=M,z(I)):it(I)?(e.consume(I),M):T(I)}function k(I){return I===null||I===60||I===61||I===62||I===96?r(I):I===34||I===39?(e.consume(I),i=I,P):Pe(I)?(o=k,z(I)):it(I)?(e.consume(I),k):(e.consume(I),L)}function P(I){return I===i?(e.consume(I),i=void 0,E):I===null?r(I):Pe(I)?(o=P,z(I)):(e.consume(I),P)}function L(I){return I===null||I===34||I===39||I===60||I===61||I===96?r(I):I===47||I===62||fn(I)?T(I):(e.consume(I),L)}function E(I){return I===47||I===62||fn(I)?T(I):r(I)}function R(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):r(I)}function z(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),O}function O(I){return it(I)?mt(e,B,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):B(I)}function B(I){return e.enter("htmlTextData"),o(I)}}const dA={name:"labelEnd",tokenize:ate,resolveTo:ite,resolveAll:nte},ete={tokenize:ote},tte={tokenize:ste},rte={tokenize:lte};function nte(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function ite(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[a+n+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=Kn(s,e.slice(a+1,a+n+3)),s=Kn(s,[["enter",c,t]]),s=Kn(s,hA(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=Kn(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=Kn(s,e.slice(o+1)),s=Kn(s,[["exit",l,t]]),da(e,a,e.length,s),e}function ate(e,t,r){const n=this;let i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(h){return a?a._inactive?f(h):(o=n.parser.defined.includes(ac(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):r(h)}function l(h){return h===40?e.attempt(ete,c,o?c:f)(h):h===91?e.attempt(tte,c,o?u:f)(h):o?c(h):f(h)}function u(h){return e.attempt(rte,c,f)(h)}function c(h){return t(h)}function f(h){return a._balanced=!0,r(h)}}function ote(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return fn(f)?Ah(e,a)(f):a(f)}function a(f){return f===41?c(f):OF(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return fn(f)?Ah(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?zF(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return fn(f)?Ah(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function ste(e,t,r){const n=this;return i;function i(s){return NF.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(ac(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function lte(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const ute={name:"labelStartImage",tokenize:cte,resolveAll:dA.resolveAll};function cte(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const fte={name:"labelStartLink",tokenize:hte,resolveAll:dA.resolveAll};function hte(e,t,r){const n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const $1={name:"lineEnding",tokenize:dte};function dte(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),mt(e,t,"linePrefix")}}const fg={name:"thematicBreak",tokenize:pte};function pte(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||Pe(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),it(u)?mt(e,s,"whitespace")(u):s(u))}}const Jr={name:"list",tokenize:yte,continuation:{tokenize:mte},exit:xte},vte={tokenize:Ste,partial:!0},gte={tokenize:_te,partial:!0};function yte(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(d){const p=n.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||d===n.containerState.marker:zw(d)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(fg,r,u)(d):u(d);if(!n.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return r(d)}function l(d){return zw(d)&&++o<10?(e.consume(d),l):(!n.interrupt||o<2)&&(n.containerState.marker?d===n.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):r(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||d,e.check(c0,n.interrupt?r:c,e.attempt(vte,h,f))}function c(d){return n.containerState.initialBlankLine=!0,a++,h(d)}function f(d){return it(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):r(d)}function h(d){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function mte(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(c0,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,mt(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!it(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(gte,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,mt(e,e.attempt(Jr,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function _te(e,t,r){const n=this;return mt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function xte(e){e.exit(this.containerState.type)}function Ste(e,t,r){const n=this;return mt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=n.events[n.events.length-1];return!it(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const uP={name:"setextUnderline",tokenize:bte,resolveTo:wte};function wte(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function bte(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),it(u)?mt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Pe(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Cte={tokenize:Tte};function Tte(e){const t=this,r=e.attempt(c0,n,e.attempt(this.parser.constructs.flowInitial,i,mt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Pee,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Ate={resolveAll:FF()},Mte=BF("string"),Dte=BF("text");function BF(e){return{tokenize:t,resolveAll:FF(e==="text"?kte:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h<f.length;){const d=f[h];if(!d.previous||d.previous.call(n,n.previous))return!0}return!1}}}function FF(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function kte(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-s,offset:n.end.offset-s,_index:n.start._index+a,_bufferIndex:a?o:n.start._bufferIndex+o},end:Object.assign({},n.end)};n.end=Object.assign({},u.start),n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}function Pte(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const l={consume:m,enter:_,exit:x,attempt:b(w),check:b(S),interrupt:b(S,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:h,now:p,defineSkip:v,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function f(M){return o=Kn(o,M),g(),o[o.length-1]!==null?[]:(C(t,0),u.events=hA(a,u.events,u),u.events)}function h(M,k){return Ete(d(M),k)}function d(M){return Ite(o,M)}function p(){const{line:M,column:k,offset:P,_index:L,_bufferIndex:E}=n;return{line:M,column:k,offset:P,_index:L,_bufferIndex:E}}function v(M){i[M.line]=M.column,A()}function g(){let M;for(;n._index<o.length;){const k=o[n._index];if(typeof k=="string")for(M=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===M&&n._bufferIndex<k.length;)y(k.charCodeAt(n._bufferIndex));else y(k)}}function y(M){c=c(M)}function m(M){Pe(M)?(n.line++,n.column=1,n.offset+=M===-3?2:1,A()):M!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=M}function _(M,k){const P=k||{};return P.type=M,P.start=p(),u.events.push(["enter",P,u]),s.push(P),P}function x(M){const k=s.pop();return k.end=p(),u.events.push(["exit",k,u]),k}function w(M,k){C(M,k.from)}function S(M,k){k.restore()}function b(M,k){return P;function P(L,E,R){let z,O,B,I;return Array.isArray(L)?U(L):"tokenize"in L?U([L]):G(L);function G(te){return fe;function fe(ie){const le=ie!==null&&te[ie],ue=ie!==null&&te.null,re=[...Array.isArray(le)?le:le?[le]:[],...Array.isArray(ue)?ue:ue?[ue]:[]];return U(re)(ie)}}function U(te){return z=te,O=0,te.length===0?R:N(te[O])}function N(te){return fe;function fe(ie){return I=T(),B=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?oe():te.tokenize.call(k?Object.assign(Object.create(u),k):u,l,Z,oe)(ie)}}function Z(te){return M(B,I),E}function oe(te){return I.restore(),++O<z.length?N(z[O]):R}}}function C(M,k){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&da(u.events,k,u.events.length-k,M.resolve(u.events.slice(k),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function T(){const M=p(),k=u.previous,P=u.currentConstruct,L=u.events.length,E=Array.from(s);return{restore:R,from:L};function R(){n=M,u.previous=k,u.currentConstruct=P,u.events.length=L,s=E,A()}}function A(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Ite(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Ete(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
161
- `;break}case-3:{o=`\r
162
- `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}const Lte={42:Jr,43:Jr,45:Jr,48:Jr,49:Jr,50:Jr,51:Jr,52:Jr,53:Jr,54:Jr,55:Jr,56:Jr,57:Jr,62:IF},Rte={91:Oee},Ote={[-2]:G1,[-1]:G1,32:G1},Nte={35:Gee,42:fg,45:[uP,fg],60:Uee,61:uP,95:fg,96:sP,126:sP},zte={38:LF,92:EF},Bte={[-5]:$1,[-4]:$1,[-3]:$1,33:ute,38:LF,42:Bw,60:[hee,Qee],91:fte,92:[Fee,EF],93:dA,95:Bw,96:Tee},Fte={null:[Bw,Ate]},Vte={null:[42,95]},Gte={null:[]},$te=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Vte,contentInitial:Rte,disable:Gte,document:Lte,flow:Nte,flowInitial:Ote,insideSpan:Fte,string:zte,text:Bte},Symbol.toStringTag,{value:"Module"}));function Hte(e){const r=qJ([$te,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(aee),document:i(see),flow:i(Cte),string:i(Mte),text:i(Dte)};return n;function i(a){return o;function o(s){return Pte(n,a,s)}}}function Wte(e){for(;!RF(e););return e}const cP=/[\0\t\n\r]/g;function Ute(){let e=1,t="",r=!0,n;return i;function i(a,o,s){const l=[];let u,c,f,h,d;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(cP.lastIndex=f,u=cP.exec(a),h=u&&u.index!==void 0?u.index:a.length,d=a.charCodeAt(h),!u){t=a.slice(f);break}if(d===10&&f===h&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<h&&(l.push(a.slice(f,h)),e+=h-f),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=h+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const jte=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Yte(e){return e.replace(jte,Xte)}function Xte(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return kF(r.slice(a?2:1),a?16:10)}return fA(r)||e}const VF={}.hasOwnProperty;function Zte(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Kte(r)(Wte(Hte(r).document().write(Ute()(e,t,!0))))}function Kte(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(zt),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ve),blockQuote:a(le),characterEscape:T,characterReference:T,codeFenced:a(ue),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ue,o),codeText:a(re,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ce),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(_e),hardBreakEscape:a(Oe),hardBreakTrailing:a(Oe),htmlFlow:a(Je,o),htmlFlowData:T,htmlText:a(Je,o),htmlTextData:T,image:a(pt),label:o,link:a(zt),listItem:a(pn),listItemValue:h,listOrdered:a(kt,f),listUnordered:a(kt),paragraph:a(fr),reference:N,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ve),strong:a(ba),thematicBreak:a(ir)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:ie,autolinkProtocol:fe,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:oe,characterReferenceMarkerNumeric:oe,characterReferenceValue:te,codeFenced:l(g),codeFencedFence:v,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:A,codeIndented:l(y),codeText:l(E),codeTextData:A,data:A,definition:l(),definitionDestinationString:x,definitionLabelString:m,definitionTitleString:_,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(P),htmlFlowData:A,htmlText:l(L),htmlTextData:A,image:l(z),label:B,labelText:O,lineEnding:M,link:l(R),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Z,resourceDestinationString:I,resourceTitleString:G,resource:U,setextHeading:l(C),setextHeadingLineSequence:b,setextHeadingText:S,strong:l(),thematicBreak:l()}};GF(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(X){let se={type:"root",children:[]};const Ie={stack:[se],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},We=[];let de=-1;for(;++de<X.length;)if(X[de][1].type==="listOrdered"||X[de][1].type==="listUnordered")if(X[de][0]==="enter")We.push(de);else{const Kr=We.pop();de=i(X,Kr,de)}for(de=-1;++de<X.length;){const Kr=t[X[de][0]];VF.call(Kr,X[de][1].type)&&Kr[X[de][1].type].call(Object.assign({sliceSerialize:X[de][2].sliceSerialize},Ie),X[de][1])}if(Ie.tokenStack.length>0){const Kr=Ie.tokenStack[Ie.tokenStack.length-1];(Kr[1]||fP).call(Ie,void 0,Kr[0])}for(se.position={start:so(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:so(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de<t.transforms.length;)se=t.transforms[de](se)||se;return se}function i(X,se,Ie){let We=se-1,de=-1,Kr=!1,Ca,Nn,ql,sf;for(;++We<=Ie;){const vn=X[We];switch(vn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{vn[0]==="enter"?de++:de--,sf=void 0;break}case"lineEndingBlank":{vn[0]==="enter"&&(Ca&&!sf&&!de&&!ql&&(ql=We),sf=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sf=void 0}if(!de&&vn[0]==="enter"&&vn[1].type==="listItemPrefix"||de===-1&&vn[0]==="exit"&&(vn[1].type==="listUnordered"||vn[1].type==="listOrdered")){if(Ca){let Ql=We;for(Nn=void 0;Ql--;){const Ta=X[Ql];if(Ta[1].type==="lineEnding"||Ta[1].type==="lineEndingBlank"){if(Ta[0]==="exit")continue;Nn&&(X[Nn][1].type="lineEndingBlank",Kr=!0),Ta[1].type="lineEnding",Nn=Ql}else if(!(Ta[1].type==="linePrefix"||Ta[1].type==="blockQuotePrefix"||Ta[1].type==="blockQuotePrefixWhitespace"||Ta[1].type==="blockQuoteMarker"||Ta[1].type==="listItemIndent"))break}ql&&(!Nn||ql<Nn)&&(Ca._spread=!0),Ca.end=Object.assign({},Nn?X[Nn][1].start:vn[1].end),X.splice(Nn||We,0,["exit",Ca,vn[2]]),We++,Ie++}if(vn[1].type==="listItemPrefix"){const Ql={type:"listItem",_spread:!1,start:Object.assign({},vn[1].start),end:void 0};Ca=Ql,X.splice(We,0,["enter",Ql,vn[2]]),We++,Ie++,ql=void 0,sf=!0}}}return X[se][1]._spread=Kr,Ie}function a(X,se){return Ie;function Ie(We){s.call(this,X(We),We),se&&se.call(this,We)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(X,se,Ie){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([se,Ie]),X.position={start:so(se.start),end:void 0}}function l(X){return se;function se(Ie){X&&X.call(this,Ie),u.call(this,Ie)}}function u(X,se){const Ie=this.stack.pop(),We=this.tokenStack.pop();if(We)We[0].type!==X.type&&(se?se.call(this,X,We[0]):(We[1]||fP).call(this,X,We[0]));else throw new Error("Cannot close `"+X.type+"` ("+Th({start:X.start,end:X.end})+"): it’s not open");Ie.position.end=so(X.end)}function c(){return ZJ(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(X){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function d(){const X=this.resume(),se=this.stack[this.stack.length-1];se.lang=X}function p(){const X=this.resume(),se=this.stack[this.stack.length-1];se.meta=X}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X.replace(/(\r?\n|\r)$/g,"")}function m(X){const se=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=se,Ie.identifier=ac(this.sliceSerialize(X)).toLowerCase()}function _(){const X=this.resume(),se=this.stack[this.stack.length-1];se.title=X}function x(){const X=this.resume(),se=this.stack[this.stack.length-1];se.url=X}function w(X){const se=this.stack[this.stack.length-1];if(!se.depth){const Ie=this.sliceSerialize(X).length;se.depth=Ie}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function b(X){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function T(X){const Ie=this.stack[this.stack.length-1].children;let We=Ie[Ie.length-1];(!We||We.type!=="text")&&(We=Fi(),We.position={start:so(X.start),end:void 0},Ie.push(We)),this.stack.push(We)}function A(X){const se=this.stack.pop();se.value+=this.sliceSerialize(X),se.position.end=so(X.end)}function M(X){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ie=se.children[se.children.length-1];Ie.position.end=so(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(se.type)&&(T.call(this,X),A.call(this,X))}function k(){this.data.atHardBreak=!0}function P(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X}function L(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X}function E(){const X=this.resume(),se=this.stack[this.stack.length-1];se.value=X}function R(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=se,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function z(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=se,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function O(X){const se=this.sliceSerialize(X),Ie=this.stack[this.stack.length-2];Ie.label=Yte(se),Ie.identifier=ac(se).toLowerCase()}function B(){const X=this.stack[this.stack.length-1],se=this.resume(),Ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ie.type==="link"){const We=X.children;Ie.children=We}else Ie.alt=se}function I(){const X=this.resume(),se=this.stack[this.stack.length-1];se.url=X}function G(){const X=this.resume(),se=this.stack[this.stack.length-1];se.title=X}function U(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function Z(X){const se=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=se,Ie.identifier=ac(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function oe(X){this.data.characterReferenceType=X.type}function te(X){const se=this.sliceSerialize(X),Ie=this.data.characterReferenceType;let We;Ie?(We=kF(se,Ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):We=fA(se);const de=this.stack.pop();de.value+=We,de.position.end=so(X.end)}function fe(X){A.call(this,X);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(X)}function ie(X){A.call(this,X);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(X)}function le(){return{type:"blockquote",children:[]}}function ue(){return{type:"code",lang:null,meta:null,value:""}}function re(){return{type:"inlineCode",value:""}}function ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _e(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function Oe(){return{type:"break"}}function Je(){return{type:"html",value:""}}function pt(){return{type:"image",title:null,url:"",alt:null}}function zt(){return{type:"link",title:null,url:"",children:[]}}function kt(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function pn(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function fr(){return{type:"paragraph",children:[]}}function ba(){return{type:"strong",children:[]}}function Fi(){return{type:"text",value:""}}function ir(){return{type:"thematicBreak"}}}function so(e){return{line:e.line,column:e.column,offset:e.offset}}function GF(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?GF(e,n):qte(e,n)}}function qte(e,t){let r;for(r in t)if(VF.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function fP(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Th({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Th({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Th({start:t.start,end:t.end})+") is still open")}function Qte(e){const t=this;t.parser=r;function r(n){return Zte(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Jte(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function ere(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
163
- `}]}function tre(e,t){const r=t.value?t.value+`
164
- `:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function rre(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nre(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ire(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=$c(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let o,s=e.footnoteCounts.get(n);s===void 0?(s=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function are(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ore(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function $F(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function sre(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return $F(e,t);const i={src:$c(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function lre(e,t){const r={src:$c(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function ure(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function cre(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return $F(e,t);const i={href:$c(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function fre(e,t){const r={href:$c(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hre(e,t,r){const n=e.all(t),i=r?dre(r):HF(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const c=n[s];(i||s!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
165
- `}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
166
- `});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function dre(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=HF(r[n])}return t}function HF(e){const t=e.spread;return t??e.children.length>1}function pre(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const o=n[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function vre(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gre(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function yre(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mre(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],o),i.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=uA(t.children[1]),l=TF(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function _re(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const f=t.children[l],h={},d=o?o[l]:void 0;d&&(h.align=d);let p={type:"element",tagName:a,properties:h,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function xre(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const hP=9,dP=32;function Sre(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(pP(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(pP(t.slice(i),i>0,!1)),a.join("")}function pP(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===hP||a===dP;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===hP||a===dP;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function wre(e,t){const r={type:"text",value:Sre(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function bre(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Cre={blockquote:Jte,break:ere,code:tre,delete:rre,emphasis:nre,footnoteReference:ire,heading:are,html:ore,imageReference:sre,image:lre,inlineCode:ure,linkReference:cre,link:fre,listItem:hre,list:pre,paragraph:vre,root:gre,strong:yre,table:mre,tableCell:xre,tableRow:_re,text:wre,thematicBreak:bre,toml:Hp,yaml:Hp,definition:Hp,footnoteDefinition:Hp};function Hp(){}const WF=-1,f0=0,yy=1,my=2,pA=3,vA=4,gA=5,yA=6,UF=7,jF=8,vP=typeof self=="object"?self:globalThis,Tre=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case f0:case WF:return r(o,i);case yy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case my:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case pA:return r(new Date(o),i);case vA:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case gA:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case yA:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case UF:{const{name:s,message:l}=o;return r(new vP[s](l),i)}case jF:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new vP[a](o),i)};return n},gP=e=>Tre(new Map,e)(0),ou="",{toString:Are}={},{keys:Mre}=Object,_f=e=>{const t=typeof e;if(t!=="object"||!e)return[f0,t];const r=Are.call(e).slice(8,-1);switch(r){case"Array":return[yy,ou];case"Object":return[my,ou];case"Date":return[pA,ou];case"RegExp":return[vA,ou];case"Map":return[gA,ou];case"Set":return[yA,ou]}return r.includes("Array")?[yy,r]:r.includes("Error")?[UF,r]:[my,r]},Wp=([e,t])=>e===f0&&(t==="function"||t==="symbol"),Dre=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=_f(o);switch(s){case f0:{let c=o;switch(l){case"bigint":s=jF,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([WF],o)}return i([s,c],o)}case yy:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const h of o)c.push(a(h));return f}case my:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const h of Mre(o))(e||!Wp(_f(o[h])))&&c.push([a(h),a(o[h])]);return f}case pA:return i([s,o.toISOString()],o);case vA:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case gA:{const c=[],f=i([s,c],o);for(const[h,d]of o)(e||!(Wp(_f(h))||Wp(_f(d))))&&c.push([a(h),a(d)]);return f}case yA:{const c=[],f=i([s,c],o);for(const h of o)(e||!Wp(_f(h)))&&c.push(a(h));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},yP=(e,{json:t,lossy:r}={})=>{const n=[];return Dre(!(t||r),!!t,new Map,n)(e),n},_y=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gP(yP(e,t)):structuredClone(e):(e,t)=>gP(yP(e,t));function kre(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Pre(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ire(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||kre,n=e.options.footnoteBackLabel||Pre,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),h=$c(f.toLowerCase());let d=0;const p=[],v=e.footnoteCounts.get(f);for(;v!==void 0&&++d<=v;){p.length>0&&p.push({type:"text",value:" "});let m=typeof r=="string"?r:r(l,d);typeof m=="string"&&(m={type:"text",value:m}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,d),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const m=g.children[g.children.length-1];m&&m.type==="text"?m.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else c.push(...p);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{..._y(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
167
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
168
- `}]}}const YF=function(e){if(e==null)return Ore;if(typeof e=="function")return h0(e);if(typeof e=="object")return Array.isArray(e)?Ere(e):Lre(e);if(typeof e=="string")return Rre(e);throw new Error("Expected function, string, or object as test")};function Ere(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=YF(e[r]);return h0(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Lre(e){const t=e;return h0(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Rre(e){return h0(t);function t(r){return r&&r.type===e}}function h0(e){return t;function t(r,n,i){return!!(Nre(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Ore(){return!0}function Nre(e){return e!==null&&typeof e=="object"&&"type"in e}const XF=[],zre=!0,mP=!1,Bre="skip";function Fre(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=YF(i),o=n?-1:1;s(e,void 0,[])();function s(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=XF,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(d=Vre(r(l,c)),d[0]===mP))return d;if("children"in l&&l.children){const y=l;if(y.children&&d[0]!==Bre)for(v=(n?y.children.length:-1)+o,g=c.concat(y);v>-1&&v<y.children.length;){const m=y.children[v];if(p=s(m,v,g)(),p[0]===mP)return p;v=typeof p[1]=="number"?p[1]:v+o}}return d}}}function Vre(e){return Array.isArray(e)?e:typeof e=="number"?[zre,e]:e==null?XF:[e]}function ZF(e,t,r,n){let i,a,o;typeof t=="function"&&typeof r!="function"?(a=void 0,o=t,i=r):(a=t,o=r,i=n),Fre(e,a,s,i);function s(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}const Fw={}.hasOwnProperty,Gre={};function $re(e,t){const r=t||Gre,n=new Map,i=new Map,a=new Map,o={...Cre,...r.handlers},s={all:u,applyData:Wre,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:r,patch:Hre,wrap:jre};return ZF(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?n:i,h=String(c.identifier).toUpperCase();f.has(h)||f.set(h,c)}}),s;function l(c,f){const h=c.type,d=s.handlers[h];if(Fw.call(s.handlers,h)&&d)return d(s,c,f);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in c){const{children:v,...g}=c,y=_y(g);return y.children=s.all(c),y}return _y(c)}return(s.options.unknownHandler||Ure)(s,c,f)}function u(c){const f=[];if("children"in c){const h=c.children;let d=-1;for(;++d<h.length;){const p=s.one(h[d],c);if(p){if(d&&h[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=_P(p.value)),!Array.isArray(p)&&p.type==="element")){const v=p.children[0];v&&v.type==="text"&&(v.value=_P(v.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function Hre(e,t){e.position&&(t.position=IJ(e))}function Wre(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const o="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:o}}r.type==="element"&&a&&Object.assign(r.properties,_y(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function Ure(e,t){const r=t.data||{},n="value"in t&&!(Fw.call(r,"hProperties")||Fw.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jre(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
169
- `});++n<e.length;)n&&r.push({type:"text",value:`
170
- `}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
171
- `}),r}function _P(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function xP(e,t){const r=$re(e,t),n=r.one(e,void 0),i=Ire(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
172
- `},i),a}function Yre(e,t){return e&&"run"in e?async function(r,n){const i=xP(r,t);await e.run(i,n)}:function(r){return xP(r,t||e)}}function SP(e){if(e)throw e}var hg=Object.prototype.hasOwnProperty,KF=Object.prototype.toString,wP=Object.defineProperty,bP=Object.getOwnPropertyDescriptor,CP=function(t){return typeof Array.isArray=="function"?Array.isArray(t):KF.call(t)==="[object Array]"},TP=function(t){if(!t||KF.call(t)!=="[object Object]")return!1;var r=hg.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&hg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||hg.call(t,i)},AP=function(t,r){wP&&r.name==="__proto__"?wP(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},MP=function(t,r){if(r==="__proto__")if(hg.call(t,r)){if(bP)return bP(t,r).value}else return;return t[r]},Xre=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)n=MP(s,r),i=MP(t,r),s!==i&&(c&&i&&(TP(i)||(a=CP(i)))?(a?(a=!1,o=n&&CP(n)?n:[]):o=n&&TP(n)?n:{},AP(s,{name:r,newValue:e(c,o,i)})):typeof i<"u"&&AP(s,{name:r,newValue:i}));return s};const H1=ym(Xre);function Vw(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Zre(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){const c=e[++a];let f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Kre(c,s)(...u):o(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Kre(e,t){let r;return n;function n(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const Zi={basename:qre,dirname:Qre,extname:Jre,join:ene,sep:"/"};function qre(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Jd(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function Qre(e){if(Jd(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Jre(e){Jd(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function ene(...e){let t=-1,r;for(;++t<e.length;)Jd(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":tne(r)}function tne(e){Jd(e);const t=e.codePointAt(0)===47;let r=rne(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function rne(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function Jd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const nne={cwd:ine};function ine(){return"/"}function Gw(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ane(e){if(typeof e=="string")e=new URL(e);else if(!Gw(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return one(e)}function one(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const W1=["history","path","basename","stem","extname","dirname"];class qF{constructor(t){let r;t?Gw(t)?r={path:t}:typeof t=="string"||sne(t)?r={value:t}:r=t:r={},this.cwd=nne.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<W1.length;){const a=W1[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)W1.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Zi.basename(this.path):void 0}set basename(t){j1(t,"basename"),U1(t,"basename"),this.path=Zi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Zi.dirname(this.path):void 0}set dirname(t){DP(this.basename,"dirname"),this.path=Zi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Zi.extname(this.path):void 0}set extname(t){if(U1(t,"extname"),DP(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Zi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Gw(t)&&(t=ane(t)),j1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Zi.basename(this.path,this.extname):void 0}set stem(t){j1(t,"stem"),U1(t,"stem"),this.path=Zi.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new Xr(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function U1(e,t){if(e&&e.includes(Zi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Zi.sep+"`")}function j1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function DP(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function sne(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lne=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};Object.setPrototypeOf(a,n);const o=Object.getOwnPropertyNames(i);for(const s of o){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(a,s,l)}return a},une={}.hasOwnProperty;class mA extends lne{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Zre()}copy(){const t=new mA;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(H1(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Z1("data",this.frozen),this.namespace[t]=r,this):une.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Z1("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Up(t),n=this.parser||this.Parser;return Y1("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),Y1("process",this.parser||this.Parser),X1("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,o){const s=Up(t),l=n.parse(s);n.run(l,s,function(c,f,h){if(c||!f||!h)return u(c);const d=f,p=n.stringify(d,h);hne(p)?h.value=p:h.result=p,u(c,h)});function u(c,f){c||!f?o(c):a?a(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),Y1("processSync",this.parser||this.Parser),X1("processSync",this.compiler||this.Compiler),this.process(t,i),PP("processSync","process",r),n;function i(a,o){r=!0,SP(a),n=o}}run(t,r,n){kP(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(o,s){const l=Up(r);i.run(t,l,u);function u(c,f,h){const d=f||t;c?s(c):o?o(d):n(void 0,d,h)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),PP("runSync","run",n),i;function a(o,s){SP(o),i=s,n=!0}}stringify(t,r){this.freeze();const n=Up(r),i=this.compiler||this.Compiler;return X1("stringify",i),kP(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(Z1("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=H1(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];a(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<n.length;)if(n[f][0]===u){h=f;break}if(h===-1)n.push([u,...c]);else if(c.length>0){let[d,...p]=c;const v=n[h][1];Vw(v)&&Vw(d)&&(d=H1(!0,v,d)),n[h]=[u,d,...p]}}}}const cne=new mA().freeze();function Y1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function X1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Z1(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function kP(e){if(!Vw(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function PP(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Up(e){return fne(e)?e:new qF(e)}function fne(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hne(e){return typeof e=="string"||dne(e)}function dne(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pne="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",IP=[],EP={allowDangerousHtml:!0},vne=/^(https?|ircs?|mailto|xmpp)$/i,gne=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function yne(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||IP,l=e.remarkPlugins||IP,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...EP}:EP,c=e.skipHtml,f=e.unwrapDisallowed,h=e.urlTransform||mne,d=cne().use(Qte).use(l).use(Yre,u).use(s),p=new qF;typeof n=="string"&&(p.value=n);for(const m of gne)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+pne+m.id,void 0);const v=d.parse(p);let g=d.runSync(v,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),ZF(g,y),zJ(g,{Fragment:H.Fragment,components:a,ignoreInvalidStyle:!0,jsx:H.jsx,jsxs:H.jsxs,passKeys:!0,passNode:!0});function y(m,_,x){if(m.type==="raw"&&x&&typeof _=="number")return c?x.children.splice(_,1):x.children[_]={type:"text",value:m.value},_;if(m.type==="element"){let w;for(w in V1)if(Object.hasOwn(V1,w)&&Object.hasOwn(m.properties,w)){const S=m.properties[w],b=V1[w];(b===null||b.includes(m.tagName))&&(m.properties[w]=h(String(S||""),w,m))}}if(m.type==="element"){let w=t?!t.includes(m.tagName):o?o.includes(m.tagName):!1;if(!w&&r&&typeof _=="number"&&(w=!r(m,_,x)),w&&x&&typeof _=="number")return f&&m.children?x.children.splice(_,1,...m.children):x.children.splice(_,1),_}}}function mne(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||r>-1&&t>r||n>-1&&t>n||vne.test(e.slice(0,t))?e:""}function _ne(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return a<o?r*-1:a>o?r*1:0}}function xne(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=F.useState(e),[a,o]=F.useState(!1),s=F.useRef(),l=c=>{const h=(t?e.slice(0,-1):[...e]).sort(_ne(c,c===s.current&&!a));i(t?[...h,...e.slice(-1)]:h)},u=F.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,l(r);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,e,a]);return F.useEffect(()=>{e.length&&l(s.current||r)},[e]),{onTableHeadClick:u,sortedRows:n,currentSortField:s.current}}const Sne=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function wne({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?Sne(e,r):n?H.jsx(yne,{skipHtml:!1,children:e}):e}function d0({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:a,currentSortField:o}=xne(e,{hasTotalRow:r,defaultSortKey:n});return H.jsx(VK,{component:R3,sx:{overflowX:"visible"},children:H.jsxs(CK,{children:[H.jsx(jK,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:H.jsx(Ak,{children:t.map(({title:s,key:l})=>H.jsx(wk,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:o===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),H.jsx(PK,{children:a.map((s,l)=>H.jsx(Ak,{children:t.map(({key:u,...c},f)=>H.jsx(wk,{children:H.jsx(wne,{content:s[u],...c})},`table-row=${f}`))},`${s.name}-${l}`))})]})})}const bne=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message",markdown:!0},{key:"traceback",title:"Traceback",markdown:!0}];function QF({exceptions:e}){return H.jsx(d0,{rows:e,structure:bne})}const Cne=({ui:{exceptions:e}})=>({exceptions:e});qd(Cne)(QF);const Tne=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function JF({errors:e}){return H.jsx(d0,{rows:e,structure:Tne})}const Ane=({ui:{errors:e}})=>({errors:e});qd(Ane)(JF);const Mne=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function Dne({responseTimes:e}){const t=F.useMemo(()=>Object.keys(e[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[e]);return H.jsx(d0,{hasTotalRow:!0,rows:e,structure:[...Mne,...t]})}var _A={},e4={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(e4);var kne=e4.exports,K1={};const Pne=jW(eX);var LP;function Ine(){return LP||(LP=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Pne}(K1)),K1}var Ene=kne;Object.defineProperty(_A,"__esModule",{value:!0});var t4=_A.default=void 0,Lne=Ene(Ine()),Rne=H,One=(0,Lne.default)((0,Rne.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");t4=_A.default=One;function Nne({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,a]=F.useState(null);return H.jsxs(V3,{direction:"row",justifyContent:"end",my:2,spacing:1,children:[H.jsx(_Z,{onClick:o=>a(o.currentTarget),variant:"outlined",children:H.jsx(t4,{})}),H.jsx(fK,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>a(null),open:!!i,children:H.jsx(YZ,{sx:{p:2},children:e.map(({key:o,title:s})=>H.jsx($Z,{control:H.jsx(_K,{checked:t.includes(o),onChange:()=>{t.includes(o)?n(o):r(o)}}),label:s},o))})})]})}function zne(e){const[t,r]=F.useState(e.map(o=>o.key));return{selectedColumns:t,addColumn:o=>{r([...t,o])},removeColumn:o=>{r(t.filter(s=>s!==o))},filteredStructure:(o=>o.filter(s=>t.includes(s.key)))(e)}}const Bne=pl.percentilesToStatistics?pl.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],Fne=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...Bne,{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function r4({stats:e,tableStructure:t=Fne}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:a}=zne(t);return H.jsxs(H.Fragment,{children:[H.jsx(Nne,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),H.jsx(d0,{hasTotalRow:!0,rows:e,structure:a})]})}const Vne=({ui:{stats:e}})=>({stats:e});qd(Vne)(r4);/*! *****************************************************************************
173
- Copyright (c) Microsoft Corporation.
174
-
175
- Permission to use, copy, modify, and/or distribute this software for any
176
- purpose with or without fee is hereby granted.
177
-
178
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
179
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
180
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
181
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
182
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
183
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
184
- PERFORMANCE OF THIS SOFTWARE.
185
- ***************************************************************************** */var $w=function(e,t){return $w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},$w(e,t)};function V(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$w(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Gne=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),$ne=function(){function e(){this.browser=new Gne,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}(),Ee=new $ne;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ee.wxa=!0,Ee.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ee.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Ee.node=!0,Ee.svgSupported=!0):Hne(navigator.userAgent,Ee);function Hne(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var xA=12,n4="sans-serif",Qo=xA+"px "+n4,Wne=20,Une=100,jne="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Yne(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-Wne)/Une;t[n]=i}return t}var Xne=Yne(jne),Jo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Jo.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Qo),e.measureText(r);r=r||"",n=n||Qo;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||xA,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Xne[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}},i4=pa(["Function","RegExp","Date","Error","CanvasGradient","Canvasagent","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),a4=pa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Hc=Object.prototype.toString,p0=Array.prototype,Zne=p0.forEach,Kne=p0.filter,SA=p0.slice,qne=p0.map,RP=(function(){}).constructor,jp=RP?RP.prototype:null,wA="__proto__",Qne=2311;function o4(){return Qne++}function bA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function me(e){if(e==null||typeof e!="object")return e;var t=e,r=Hc.call(e);if(r==="[object Array]"){if(!Mh(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=me(e[n])}}else if(a4[r]){if(!Mh(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!i4[r]&&!Mh(e)&&!Ac(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==wA&&(t[o]=me(e[o]))}return t}function Te(e,t,r){if(!ge(t)||!ge(e))return r?me(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==wA){var i=e[n],a=t[n];ge(a)&&ge(i)&&!j(a)&&!j(i)&&!Ac(a)&&!Ac(i)&&!OP(a)&&!OP(i)&&!Mh(a)&&!Mh(i)?Te(i,a,r):(r||!(n in e))&&(e[n]=me(t[n]))}return e}function CA(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=Te(r,e[n],t);return r}function W(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==wA&&(e[r]=t[r]);return e}function pe(e,t,r){for(var n=Re(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}function Me(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 Jne(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Ht(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else pe(e,t,r)}function Pr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function D(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Zne)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Y(e,t,r){if(!e)return[];if(!t)return TA(e);if(e.map&&e.map===qne)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function pa(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function qe(e,t,r){if(!e)return[];if(!t)return TA(e);if(e.filter&&e.filter===Kne)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function eie(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function Re(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 tie(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(SA.call(arguments)))}}var ee=jp&&he(jp.bind)?jp.call.bind(jp.bind):tie;function be(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(SA.call(arguments)))}}function j(e){return Array.isArray?Array.isArray(e):Hc.call(e)==="[object Array]"}function he(e){return typeof e=="function"}function q(e){return typeof e=="string"}function Hw(e){return Hc.call(e)==="[object String]"}function $e(e){return typeof e=="number"}function ge(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function OP(e){return!!i4[Hc.call(e)]}function dn(e){return!!a4[Hc.call(e)]}function Ac(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function v0(e){return e.colorStops!=null}function rie(e){return e.image!=null}function nie(e){return Hc.call(e)==="[object RegExp]"}function dd(e){return e!==e}function sr(){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 we(e,t){return e??t}function fa(e,t,r){return e??t??r}function TA(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return SA.apply(e,t)}function AA(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 $r(e,t){if(!e)throw new Error(t)}function Ci(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var s4="__ec_primitive__";function xy(e){e[s4]=!0}function Mh(e){return e[s4]}var iie=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 Re(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),l4=typeof Map=="function";function aie(){return l4?new Map:new iie}var oie=function(){function e(t){var r=j(t);this.data=aie();var n=this;t instanceof e?t.each(i):t&&D(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return l4?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ae(e){return new oie(e)}function Sy(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function g0(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&W(r,t),r}function u4(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ne(e,t){return e.hasOwnProperty(t)}function Rt(){}var dg=180/Math.PI;/*! *****************************************************************************
186
- Copyright (c) Microsoft Corporation.
187
-
188
- Permission to use, copy, modify, and/or distribute this software for any
189
- purpose with or without fee is hereby granted.
190
-
191
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
192
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
193
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
194
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
195
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
196
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
197
- PERFORMANCE OF THIS SOFTWARE.
198
- ***************************************************************************** */var Ww=function(e,t){return Ww=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ww(e,t)};function dt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ww(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Hl(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Or(e,t){return e[0]=t[0],e[1]=t[1],e}function Ba(e){return[e[0],e[1]]}function sie(e,t,r){return e[0]=t,e[1]=r,e}function NP(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Uw(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function il(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function jw(e){return Math.sqrt(lie(e))}function lie(e){return e[0]*e[0]+e[1]*e[1]}function pg(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Wc(e,t){var r=jw(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Yw(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Do=Yw;function uie(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var vl=uie;function vg(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 yr(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function ko(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Po(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var su=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),cie=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 su(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new su(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new su(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new su(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new su(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new su(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),ui=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),fie=Math.log(2);function Xw(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/fie);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,h=0,d=0;h<s;h++){var p=1<<h;p&i||(f+=(d%2?-1:1)*e[r][h]*Xw(e,t-1,c,u,i|p,a),d++)}return a[o]=f,f}function zP(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=Xw(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Xw(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var BP="___zrEVENTSAVED",q1=[];function hie(e,t,r,n,i){return Zw(q1,t,n,i,!0)&&Zw(e,r,q1[0],q1[1])}function Zw(e,t,r,n,i){if(t.getBoundingClientRect&&Ee.domSupported&&!c4(t)){var a=t[BP]||(t[BP]={}),o=die(t,a),s=pie(o,a,i);if(s)return s(e,r,n),!0}return!1}function die(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function pie(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,h=c.left,d=c.top;o.push(h,d),l=l&&a&&h===a[f]&&d===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?zP(s,o):zP(o,s))}function c4(e){return e.nodeName.toUpperCase()==="CANVAS"}var vie=/([&<>"'])/g,gie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function tn(e){return e==null?"":(e+"").replace(vie,function(t,r){return gie[r]})}var yie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Q1=[],mie=Ee.browser.firefox&&+Ee.browser.version.split(".")[0]<39;function Kw(e,t,r,n){return r=r||{},n?FP(e,t,r):mie&&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):FP(e,t,r),r}function FP(e,t,r){if(Ee.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(c4(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Zw(Q1,e,n,i)){r.zrX=Q1[0],r.zrY=Q1[1];return}}r.zrX=r.zrY=0}function MA(e){return e||window.event}function Hn(e,t,r){if(t=MA(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Kw(e,o,t,r)}else{Kw(e,t,t,r);var a=_ie(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&yie.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function _ie(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function qw(e,t,r,n){e.addEventListener(t,r,n)}function xie(e,t,r,n){e.removeEventListener(t,r,n)}var Xa=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function VP(e){return e.which===2||e.which===3}var Sie=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Kw(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in J1)if(J1.hasOwnProperty(r)){var n=J1[r](this._track,t);if(n)return n}},e}();function GP(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function wie(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var J1={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=GP(n)/GP(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=wie(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Mn(){return[1,0,0,1,0,0]}function y0(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function DA(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 Fa(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function va(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 Wl(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=a*f+l*c,e[3]=-a*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function kA(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Uc(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function bie(e){var t=Mn();return DA(t,e),t}var Ce=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Yp=Math.min,Xp=Math.max,hs=new Ce,ds=new Ce,ps=new Ce,vs=new Ce,xf=new Ce,Sf=new Ce,Ae=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Yp(t.x,this.x),n=Yp(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xp(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xp(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Mn();return va(a,a,[-r.x,-r.y]),kA(a,a,[n,i]),va(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,h=!(a<l||u<i||s<c||f<o);if(r){var d=1/0,p=0,v=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-c),m=Math.abs(f-o),_=Math.min(v,g),x=Math.min(y,m);a<l||u<i?_>p&&(p=_,v<g?Ce.set(Sf,-v,0):Ce.set(Sf,g,0)):_<d&&(d=_,v<g?Ce.set(xf,v,0):Ce.set(xf,-g,0)),s<c||f<o?x>p&&(p=x,y<m?Ce.set(Sf,0,-y):Ce.set(Sf,0,m)):_<d&&(d=_,y<m?Ce.set(xf,0,y):Ce.set(xf,0,-m))}return r&&Ce.copy(r,h?xf:Sf),h},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}hs.x=ps.x=r.x,hs.y=vs.y=r.y,ds.x=vs.x=r.x+r.width,ds.y=ps.y=r.y+r.height,hs.transform(n),vs.transform(n),ds.transform(n),ps.transform(n),t.x=Yp(hs.x,ds.x,ps.x,vs.x),t.y=Yp(hs.y,ds.y,ps.y,vs.y);var l=Xp(hs.x,ds.x,ps.x,vs.x),u=Xp(hs.y,ds.y,ps.y,vs.y);t.width=l-t.x,t.height=u-t.y},e}(),f4="silent";function Cie(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:Tie}}function Tie(){Xa(this.event)}var Aie=function(e){dt(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}(ui),wf=function(){function e(t,r){this.x=t,this.y=r}return e}(),Mie=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e_=new Ae(0,0,0,0),h4=function(e){dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new wf(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Aie,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new cie(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Mie,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=d4(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new wf(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new wf(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Cie(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new wf(r,n);if($P(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ae(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(e_.copy(h.getBoundingRect()),h.transform&&e_.applyTransform(h.transform),e_.intersect(c)&&s.push(h))}if(s.length)for(var d=4,p=Math.PI/12,v=Math.PI*2,g=0;g<u;g+=d)for(var y=0;y<v;y+=p){var m=r+g*Math.cos(y),_=n+g*Math.sin(y);if($P(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Sie);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new wf;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(ui);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){h4.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=d4(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Do(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Die(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?f4:!0}return!1}function $P(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Die(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==f4)){t.target=o;break}}}function d4(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var p4=32,bf=7;function kie(e){for(var t=0;e>=p4;)t|=e&1,e>>=1;return e+t}function HP(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;Pie(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function Pie(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function WP(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function t_(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function r_(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function Iie(e,t){var r=bf,n,i,a=0,o=[];n=[],i=[];function s(d,p){n[a]=d,i[a]=p,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,c(d)}}function c(d){var p=n[d],v=i[d],g=n[d+1],y=i[d+1];i[d]=v+y,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var m=r_(e[g],e,p,v,0,t);p+=m,v-=m,v!==0&&(y=t_(e[p+v-1],e,g,y,y-1,t),y!==0&&(v<=y?f(p,v,g,y):h(p,v,g,y)))}function f(d,p,v,g){var y=0;for(y=0;y<p;y++)o[y]=e[d+y];var m=0,_=v,x=d;if(e[x++]=e[_++],--g===0){for(y=0;y<p;y++)e[x+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)e[x+y]=e[_+y];e[x+g]=o[m];return}for(var w=r,S,b,C;;){S=0,b=0,C=!1;do if(t(e[_],o[m])<0){if(e[x++]=e[_++],b++,S=0,--g===0){C=!0;break}}else if(e[x++]=o[m++],S++,b=0,--p===1){C=!0;break}while((S|b)<w);if(C)break;do{if(S=r_(e[_],o,m,p,0,t),S!==0){for(y=0;y<S;y++)e[x+y]=o[m+y];if(x+=S,m+=S,p-=S,p<=1){C=!0;break}}if(e[x++]=e[_++],--g===0){C=!0;break}if(b=t_(o[m],e,_,g,0,t),b!==0){for(y=0;y<b;y++)e[x+y]=e[_+y];if(x+=b,_+=b,g-=b,g===0){C=!0;break}}if(e[x++]=o[m++],--p===1){C=!0;break}w--}while(S>=bf||b>=bf);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),p===1){for(y=0;y<g;y++)e[x+y]=e[_+y];e[x+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)e[x+y]=o[m+y]}}function h(d,p,v,g){var y=0;for(y=0;y<g;y++)o[y]=e[v+y];var m=d+p-1,_=g-1,x=v+g-1,w=0,S=0;if(e[x--]=e[m--],--p===0){for(w=x-(g-1),y=0;y<g;y++)e[w+y]=o[y];return}if(g===1){for(x-=p,m-=p,S=x+1,w=m+1,y=p-1;y>=0;y--)e[S+y]=e[w+y];e[x]=o[_];return}for(var b=r;;){var C=0,T=0,A=!1;do if(t(o[_],e[m])<0){if(e[x--]=e[m--],C++,T=0,--p===0){A=!0;break}}else if(e[x--]=o[_--],T++,C=0,--g===1){A=!0;break}while((C|T)<b);if(A)break;do{if(C=p-r_(o[_],e,d,p,p-1,t),C!==0){for(x-=C,m-=C,p-=C,S=x+1,w=m+1,y=C-1;y>=0;y--)e[S+y]=e[w+y];if(p===0){A=!0;break}}if(e[x--]=o[_--],--g===1){A=!0;break}if(T=g-t_(e[m],o,0,g,g-1,t),T!==0){for(x-=T,_-=T,g-=T,S=x+1,w=_+1,y=0;y<T;y++)e[S+y]=o[w+y];if(g<=1){A=!0;break}}if(e[x--]=e[m--],--p===0){A=!0;break}b--}while(C>=bf||T>=bf);if(A)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),g===1){for(x-=p,m-=p,S=x+1,w=m+1,y=p-1;y>=0;y--)e[S+y]=e[w+y];e[x]=o[_]}else{if(g===0)throw new Error;for(w=x-(g-1),y=0;y<g;y++)e[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function gg(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<p4){a=HP(e,r,n,t),WP(e,r,n,r+a,t);return}var o=Iie(e,t),s=kie(i);do{if(a=HP(e,r,n,t),a<s){var l=i;l>s&&(l=s),WP(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var xn=1,rh=2,ku=4,UP=!1;function n_(){UP||(UP=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jP(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Eie=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jP}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,gg(n,jP)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=xn),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(n_(),c.z=0),isNaN(c.z2)&&(n_(),c.z2=0),isNaN(c.zlevel)&&(n_(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=Me(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),wy;wy=Ee.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Dh={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 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-Dh.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Dh.bounceIn(e*2)*.5:Dh.bounceOut(e*2-1)*.5+.5}},Zp=Math.pow,Uo=Math.sqrt,by=1e-8,v4=1e-4,YP=Uo(3),Kp=1/3,ra=Hl(),qn=Hl(),oc=Hl();function Io(e){return e>-by&&e<by}function g4(e){return e>by||e<-by}function qt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function XP(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Cy(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Io(c)&&Io(f))if(Io(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[d++]=p)}else{var v=f*f-4*c*h;if(Io(v)){var g=f/c,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(a[d++]=p),y>=0&&y<=1&&(a[d++]=y)}else if(v>0){var m=Uo(v),_=c*s+1.5*o*(-f+m),x=c*s+1.5*o*(-f-m);_<0?_=-Zp(-_,Kp):_=Zp(_,Kp),x<0?x=-Zp(-x,Kp):x=Zp(x,Kp);var p=(-s-(_+x))/(3*o);p>=0&&p<=1&&(a[d++]=p)}else{var w=(2*c*s-3*o*f)/(2*Uo(c*c*c)),S=Math.acos(w)/3,b=Uo(c),C=Math.cos(S),p=(-s-2*b*C)/(3*o),y=(-s+b*(C+YP*Math.sin(S)))/(3*o),T=(-s+b*(C-YP*Math.sin(S)))/(3*o);p>=0&&p<=1&&(a[d++]=p),y>=0&&y<=1&&(a[d++]=y),T>=0&&T<=1&&(a[d++]=T)}}return d}function y4(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Io(o)){if(g4(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Io(c))i[0]=-a/(2*o);else if(c>0){var f=Uo(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function es(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function m4(e,t,r,n,i,a,o,s,l,u,c){var f,h=.005,d=1/0,p,v,g,y;ra[0]=l,ra[1]=u;for(var m=0;m<1;m+=.05)qn[0]=qt(e,r,i,o,m),qn[1]=qt(t,n,a,s,m),g=vl(ra,qn),g<d&&(f=m,d=g);d=1/0;for(var _=0;_<32&&!(h<v4);_++)p=f-h,v=f+h,qn[0]=qt(e,r,i,o,p),qn[1]=qt(t,n,a,s,p),g=vl(qn,ra),p>=0&&g<d?(f=p,d=g):(oc[0]=qt(e,r,i,o,v),oc[1]=qt(t,n,a,s,v),y=vl(oc,ra),v<=1&&y<d?(f=v,d=y):h*=.5);return c&&(c[0]=qt(e,r,i,o,f),c[1]=qt(t,n,a,s,f)),Uo(d)}function Lie(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,h=1/l,d=1;d<=l;d++){var p=d*h,v=qt(e,r,i,o,p),g=qt(t,n,a,s,p),y=v-u,m=g-c;f+=Math.sqrt(y*y+m*m),u=v,c=g}return f}function or(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function Qw(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Rie(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Io(a)){if(g4(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Io(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Uo(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function _4(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function pd(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function x4(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;ra[0]=o,ra[1]=s;for(var h=0;h<1;h+=.05){qn[0]=or(e,r,i,h),qn[1]=or(t,n,a,h);var d=vl(ra,qn);d<f&&(u=h,f=d)}f=1/0;for(var p=0;p<32&&!(c<v4);p++){var v=u-c,g=u+c;qn[0]=or(e,r,i,v),qn[1]=or(t,n,a,v);var d=vl(qn,ra);if(v>=0&&d<f)u=v,f=d;else{oc[0]=or(e,r,i,g),oc[1]=or(t,n,a,g);var y=vl(oc,ra);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=or(e,r,i,u),l[1]=or(t,n,a,u)),Uo(f)}function Oie(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var h=f*c,d=or(e,r,i,h),p=or(t,n,a,h),v=d-s,g=p-l;u+=Math.sqrt(v*v+g*g),s=d,l=p}return u}var Nie=/cubic-bezier\(([0-9,\.e ]+)\)/;function PA(e){var t=e&&Nie.exec(e);if(t){var r=t[1].split(","),n=+Ci(r[0]),i=+Ci(r[1]),a=+Ci(r[2]),o=+Ci(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Cy(0,n,a,1,l,s)&&qt(0,i,o,1,s[0])}}}var zie=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||Rt,this.ondestroy=t.ondestroy||Rt,this.onrestart=t.onrestart||Rt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=he(t)?t:Dh[t]||PA(t)},e}(),S4=function(){function e(t){this.value=t}return e}(),Bie=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new S4(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}(),ep=function(){function e(t){this._list=new Bie,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new S4(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),ZP={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 Pi(e){return e=Math.round(e),e<0?0:e>255?255:e}function Fie(e){return e=Math.round(e),e<0?0:e>360?360:e}function vd(e){return e<0?0:e>1?1:e}function i_(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Pi(parseFloat(t)/100*255):Pi(parseInt(t,10))}function gl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?vd(parseFloat(t)/100):vd(parseFloat(t))}function a_(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 Eo(e,t,r){return e+(t-e)*r}function $n(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Jw(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var w4=new ep(20),qp=null;function lu(e,t){qp&&Jw(qp,t),qp=w4.put(e,qp||t.slice())}function Dn(e,t){if(e){t=t||[];var r=w4.get(e);if(r)return Jw(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in ZP)return Jw(t,ZP[n]),lu(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){$n(t,0,0,0,1);return}return $n(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),lu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){$n(t,0,0,0,1);return}return $n(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),lu(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?$n(t,+u[0],+u[1],+u[2],1):$n(t,0,0,0,1);c=gl(u.pop());case"rgb":if(u.length>=3)return $n(t,i_(u[0]),i_(u[1]),i_(u[2]),u.length===3?c:gl(u[3])),lu(e,t),t;$n(t,0,0,0,1);return;case"hsla":if(u.length!==4){$n(t,0,0,0,1);return}return u[3]=gl(u[3]),eb(u,t),lu(e,t),t;case"hsl":if(u.length!==3){$n(t,0,0,0,1);return}return eb(u,t),lu(e,t),t;default:return}}$n(t,0,0,0,1)}}function eb(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=gl(e[1]),i=gl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],$n(t,Pi(a_(o,a,r+1/3)*255),Pi(a_(o,a,r)*255),Pi(a_(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vie(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-f:r===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return e[3]!=null&&d.push(e[3]),d}}function tb(e,t){var r=Dn(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 Va(r,r.length===4?"rgba":"rgb")}}function o_(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Pi(Eo(o[0],s[0],l)),r[1]=Pi(Eo(o[1],s[1],l)),r[2]=Pi(Eo(o[2],s[2],l)),r[3]=vd(Eo(o[3],s[3],l)),r}}function Gie(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Dn(t[i]),s=Dn(t[a]),l=n-i,u=Va([Pi(Eo(o[0],s[0],l)),Pi(Eo(o[1],s[1],l)),Pi(Eo(o[2],s[2],l)),vd(Eo(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function kh(e,t,r,n){var i=Dn(e);if(e)return i=Vie(i),t!=null&&(i[0]=Fie(t)),r!=null&&(i[1]=gl(r)),n!=null&&(i[2]=gl(n)),Va(eb(i),"rgba")}function Ty(e,t){var r=Dn(e);if(r&&t!=null)return r[3]=vd(t),Va(r,"rgba")}function Va(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 Ay(e,t){var r=Dn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var KP=new ep(100);function rb(e){if(q(e)){var t=KP.get(e);return t||(t=tb(e,-.1),KP.put(e,t)),t}else if(v0(e)){var r=W({},e);return r.colorStops=Y(e.colorStops,function(n){return{offset:n.offset,color:tb(n.color,-.1)}}),r}return e}var My=Math.round;function gd(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Dn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var qP=1e-4;function Lo(e){return e<qP&&e>-qP}function Qp(e){return My(e*1e3)/1e3}function nb(e){return My(e*1e4)/1e4}function $ie(e){return"matrix("+Qp(e[0])+","+Qp(e[1])+","+Qp(e[2])+","+Qp(e[3])+","+nb(e[4])+","+nb(e[5])+")"}var Hie={left:"start",right:"end",center:"middle",middle:"middle"};function Wie(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Uie(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function jie(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 b4(e){return e&&!!e.image}function Yie(e){return e&&!!e.svgElement}function IA(e){return b4(e)||Yie(e)}function C4(e){return e.type==="linear"}function T4(e){return e.type==="radial"}function A4(e){return e&&(e.type==="linear"||e.type==="radial")}function m0(e){return"url(#"+e+")"}function M4(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 D4(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*dg,i=we(e.scaleX,1),a=we(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+My(o*dg)+"deg, "+My(s*dg)+"deg)"),l.join(" ")}var Xie=function(){return Ee.hasGlobalWindow&&he(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}}(),ib=Array.prototype.slice;function Pa(e,t,r){return(t-e)*r+e}function s_(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Pa(t[a],r[a],n);return e}function Zie(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Pa(t[o][s],r[o][s],n)}return e}function Jp(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function QP(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Kie(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function qie(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:ib.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function Ph(e){if(Pr(e)){var t=e.length;if(Pr(e[0])){for(var r=[],n=0;n<t;n++)r.push(ib.call(e[n]));return r}return ib.call(e)}return e}function yg(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 Qie(e){return Pr(e&&e[0])?2:1}var ev=0,mg=1,k4=2,nh=3,ab=4,ob=5,JP=6;function eI(e){return e===ab||e===ob}function tv(e){return e===mg||e===k4}var Cf=[0,0,0,0],Jie=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=JP,l=r;if(Pr(r)){var u=Qie(r);s=u,(u===1&&!$e(r[0])||u===2&&!$e(r[0][0]))&&(o=!0)}else if($e(r)&&!dd(r))s=ev;else if(q(r))if(!isNaN(+r))s=ev;else{var c=Dn(r);c&&(l=c,s=nh)}else if(v0(r)){var f=W({},l);f.colorStops=Y(r.colorStops,function(d){return{offset:d.offset,color:Dn(d.color)}}),C4(r)?s=ab:T4(r)&&(s=ob),l=f}a===0?this.valType=s:(s!==this.valType||s===JP)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=he(n)?n:Dh[n]||PA(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,g){return v.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=tv(i),u=eI(i),c=0;c<a;c++){var f=n[c],h=f.value,d=o.value;f.percent=f.time/t,s||(l&&c!==a-1?qie(h,d,i):u&&Kie(h.colorStops,d.colorStops))}if(!s&&i!==ob&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,c=0;c<a;c++)i===ev?n[c].additiveValue=n[c].value-p:i===nh?n[c].additiveValue=Jp([],n[c].value,p,-1):tv(i)&&(n[c].additiveValue=i===mg?Jp([],n[c].value,p,-1):QP([],n[c].value,p,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===nh,c,f=this._lastFr,h=Math.min,d,p;if(s===1)d=p=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var v=h(f+1,s-1);for(c=v;c>=0&&!(o[c].percent<=r);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=h(c-1,s-2)}p=o[c+1],d=o[c]}if(d&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-d.percent,y=g===0?1:h((r-d.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=n?this._additiveValue:u?Cf:t[l];if((tv(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?d.rawValue:p.rawValue;else if(tv(a))a===mg?s_(m,d[i],p[i],y):Zie(m,d[i],p[i],y);else if(eI(a)){var _=d[i],x=p[i],w=a===ab;t[l]={type:w?"linear":"radial",x:Pa(_.x,x.x,y),y:Pa(_.y,x.y,y),colorStops:Y(_.colorStops,function(b,C){var T=x.colorStops[C];return{offset:Pa(b.offset,T.offset,y),color:yg(s_([],b.color,T.color,y))}}),global:x.global},w?(t[l].x2=Pa(_.x2,x.x2,y),t[l].y2=Pa(_.y2,x.y2,y)):t[l].r=Pa(_.r,x.r,y)}else if(u)s_(m,d[i],p[i],y),n||(t[l]=yg(m));else{var S=Pa(d[i],p[i],y);n?this._additiveValue=S:t[l]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===ev?t[n]=t[n]+i:r===nh?(Dn(t[n],Cf),Jp(Cf,Cf,i,1),t[n]=yg(Cf)):r===mg?Jp(t[n],t[n],i,1):r===k4&&QP(t[n],t[n],i,1)},e}(),EA=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){bA("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Re(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Jie(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===nh&&u&&(u=yg(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ph(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Ph(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new zie({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var p=r._additiveAnimators;if(p){for(var v=!1,g=0;g<p.length;g++)if(p[g]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,d);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,d)},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 Y(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=Ph(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Re(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function ju(){return new Date().getTime()}var eae=function(e){dt(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=ju()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(wy(n),!r._paused&&r.update())}wy(n)},t.prototype.start=function(){this._running||(this._time=ju(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ju(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ju()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new EA(r,n.loop);return this.addAnimator(i),i},t}(ui),tae=300,l_=Ee.domSupported,u_=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=Y(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),tI={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},rI=!1;function sb(e){var t=e.pointerType;return t==="pen"||t==="touch"}function rae(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 c_(e){e&&(e.zrByTouch=!0)}function nae(e,t){return Hn(e.dom,new iae(e,t),!0)}function P4(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 iae=function(){function e(t,r){this.stopPropagation=Rt,this.stopImmediatePropagation=Rt,this.preventDefault=Rt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),gi={mousedown:function(e){e=Hn(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Hn(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=Hn(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Hn(this.dom,e);var t=e.toElement||e.relatedTarget;P4(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){rI=!0,e=Hn(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){rI||(e=Hn(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Hn(this.dom,e),c_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),gi.mousemove.call(this,e),gi.mousedown.call(this,e)},touchmove:function(e){e=Hn(this.dom,e),c_(e),this.handler.processGesture(e,"change"),gi.mousemove.call(this,e)},touchend:function(e){e=Hn(this.dom,e),c_(e),this.handler.processGesture(e,"end"),gi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<tae&&gi.click.call(this,e)},pointerdown:function(e){gi.mousedown.call(this,e)},pointermove:function(e){sb(e)||gi.mousemove.call(this,e)},pointerup:function(e){gi.mouseup.call(this,e)},pointerout:function(e){sb(e)||gi.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){gi[e]=function(t){t=Hn(this.dom,t),this.trigger(e,t)}});var lb={pointermove:function(e){sb(e)||lb.mousemove.call(this,e)},pointerup:function(e){lb.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 aae(e,t){var r=t.domHandlers;Ee.pointerEventsSupported?D(u_.pointer,function(n){_g(t,n,function(i){r[n].call(e,i)})}):(Ee.touchEventsSupported&&D(u_.touch,function(n){_g(t,n,function(i){r[n].call(e,i),rae(t)})}),D(u_.mouse,function(n){_g(t,n,function(i){i=MA(i),t.touching||r[n].call(e,i)})}))}function oae(e,t){Ee.pointerEventsSupported?D(tI.pointer,r):Ee.touchEventsSupported||D(tI.mouse,r);function r(n){function i(a){a=MA(a),P4(e,a.target)||(a=nae(e,a),t.domHandlers[n].call(e,a))}_g(t,n,i,{capture:!0})}}function _g(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,qw(e.domTarget,t,r,n)}function f_(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&xie(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var nI=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),sae=function(e){dt(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new nI(r,gi),l_&&(i._globalHandlerScope=new nI(document,lb)),aae(i,i._localHandlerScope),i}return t.prototype.dispose=function(){f_(this._localHandlerScope),l_&&f_(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,l_&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?oae(this,n):f_(n)}},t}(ui),I4=1;Ee.hasGlobalWindow&&(I4=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Dy=I4,ub=.4,cb="#333",fb="#ccc",lae="#eee",iI=y0,aI=5e-5;function gs(e){return e>aI||e<-aI}var ys=[],uu=[],h_=Mn(),d_=Math.abs,Oa=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 gs(this.rotation)||gs(this.x)||gs(this.y)||gs(this.scaleX-1)||gs(this.scaleY-1)||gs(this.skewX)||gs(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(iI(n),this.invTransform=null);return}n=n||Mn(),r?this.getLocalTransform(n):iI(n),t&&(r?Fa(n,t,n):DA(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ys);var n=ys[0]<0?-1:1,i=ys[1]<0?-1:1,a=((ys[0]-n)*r+n)/ys[0]||0,o=((ys[1]-i)*r+i)/ys[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Mn(),Uc(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Mn(),Fa(uu,t.invTransform,r),r=uu);var n=this.originX,i=this.originY;(n||i)&&(h_[4]=n,h_[5]=i,Fa(uu,r,h_),uu[4]-=n,uu[5]-=i,r=uu),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&yr(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&yr(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&d_(t[0]-1)>1e-10&&d_(t[3]-1)>1e-10?Math.sqrt(d_(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){E4(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,v=i+l;r[4]=-p*a-h*v*o,r[5]=-v*o-d*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&Wl(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ga=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function E4(e,t){for(var r=0;r<ga.length;r++){var n=ga[r];e[n]=t[n]}}var oI={};function kn(e,t){t=t||Qo;var r=oI[t];r||(r=oI[t]=new ep(500));var n=r.get(e);return n==null&&(n=Jo.measureText(e,t).width,r.put(e,n)),n}function sI(e,t,r,n){var i=kn(e,t),a=_0(t),o=ih(0,i,r),s=Pu(0,a,n),l=new Ae(o,s,i,a);return l}function tp(e,t,r,n){var i=((e||"")+"").split(`
199
- `),a=i.length;if(a===1)return sI(i[0],t,r,n);for(var o=new Ae(0,0,0,0),s=0;s<i.length;s++){var l=sI(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function ih(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Pu(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function _0(e){return kn("国",e)}function Oi(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ky(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Oi(n[0],r.width),u+=Oi(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var p_="__zr_normal__",v_=ga.concat(["ignore"]),uae=pa(ga,function(e,t){return e[t]=!0,e},{ignore:!1}),cu={},cae=new Ae(0,0,0,0),x0=function(){function e(t){this.id=o4(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=cae;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(cu,n,c):ky(cu,n,c),a.x=cu.x,a.y=cu.y,o=cu.align,s=cu.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,d=void 0;f==="center"?(h=c.width*.5,d=c.height*.5):(h=Oi(f[0],c.width),d=Oi(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+d+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;v&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=xn,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()?fb:cb},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Dn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Va(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||{},W(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(ge(t))for(var n=t,i=Re(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==p_)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,v_)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(p_,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===p_,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Me(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){bA("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(t,r,n,c),h&&h.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~xn),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],h=!!(f&&f.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!r&&!this.__inHover&&p&&p.duration>0,p);var v=this._textContent,g=this._textGuide;v&&v.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&=~xn)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=Me(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=Me(i,t),o=Me(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];W(r,a),a.textConfig&&(n=n||{},W(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=W({},i?this.textConfig:n.textConfig),W(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<v_.length;c++){var f=v_[c],h=a&&uae[f];r&&r[f]!=null?h?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(h?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(r||n)[p]: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 Oa,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),W(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|=xn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new EA(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=Me(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){g_(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){g_(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=g_(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=xn;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Ht(x0,ui);Ht(x0,Oa);function g_(e,t,r,n,i){r=r||{};var a=[];L4(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(p,v){r.during(v)});for(var h=0;h<a.length;h++){var d=a[h];c&&d.done(c),f&&d.aborted(f),r.force&&d.duration(r.duration),d.start(r.easing)}return a}function y_(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function fae(e){return Pr(e[0])}function hae(e,t,r){if(Pr(t[r]))if(Pr(e[r])||(e[r]=[]),dn(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),y_(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(fae(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?y_(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else y_(a,i,o);a.length=i.length}else e[r]=t[r]}function dae(e,t){return e===t||Pr(e)&&Pr(t)&&pae(e,t)}function pae(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 L4(e,t,r,n,i,a,o,s){for(var l=Re(n),u=i.duration,c=i.delay,f=i.additive,h=i.setToFinal,d=!ge(a),p=e.animators,v=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&r[y]!=null&&(d||a[y]))if(ge(m)&&!Pr(m)&&!v0(m)){if(t){s||(r[y]=m,e.updateDuringAnimation(t));continue}L4(e,y,r[y],m,i,a&&a[y],o,s)}else v.push(y);else s||(r[y]=m,e.updateDuringAnimation(t),v.push(y))}var _=v.length;if(!f&&_)for(var x=0;x<p.length;x++){var w=p[x];if(w.targetName===t){var S=w.stopTracks(v);if(S){var b=Me(p,w);p.splice(b,1)}}}if(i.force||(v=qe(v,function(M){return!dae(n[M],r[M])}),_=v.length),_>0||i.force&&!o.length){var C=void 0,T=void 0,A=void 0;if(s){T={},h&&(C={});for(var x=0;x<_;x++){var y=v[x];T[y]=r[y],h?C[y]=n[y]:r[y]=n[y]}}else if(h){A={};for(var x=0;x<_;x++){var y=v[x];A[y]=Ph(r[y]),hae(r,n,y)}}var w=new EA(r,!1,!1,f?qe(p,function(k){return k.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),h&&C&&w.whenWithKeys(0,C,v),A&&w.whenWithKeys(0,A,v),w.whenWithKeys(u??500,s?T:n,v).delay(c||0),e.addAnimator(w,t),o.push(w)}}var xe=function(e){dt(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=Me(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Me(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new Ae(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(Ae.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(x0);xe.prototype.type="group";/*!
200
- * ZRender, a high performance 2d drawing library.
201
- *
202
- * Copyright (c) 2013, Baidu Inc.
203
- * All rights reserved.
204
- *
205
- * LICENSE
206
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
207
- */var xg={},R4={};function vae(e){delete R4[e]}function gae(e){if(!e)return!1;if(typeof e=="string")return Ay(e,1)<ub;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Ay(t[i].color,1);return r/=n,r<ub}return!1}var yae=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new Eie,o=n.renderer||"canvas";xg[o]||(o=Re(xg)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new xg[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Ee.node&&!Ee.worker&&!l?new sae(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Ee.touchEventsSupported:!!c,h=44,d;f&&(d=we(n.pointerSize,h)),this.handler=new h4(a,s,u,s.root,d),this.animation=new eae({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=gae(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=ju();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=ju();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof xe&&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,vae(this.id))},e}();function lI(e,t){var r=new yae(o4(),e,t);return R4[r.id]=r,r}function mae(e,t){xg[e]=t}var hb;function _ae(e){if(typeof hb=="function")return hb(e)}function xae(e){hb=e}var uI=1e-4,O4=20;function Sae(e){return e.replace(/^\s+|\s+$/g,"")}function Ke(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function K(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return q(e)?Sae(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function At(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),O4),e=(+e).toFixed(t),r?e:+e}function ri(e){return e.sort(function(t,r){return t-r}),e}function ia(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 wae(e)}function wae(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function N4(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function bae(e,t){var r=pa(e,function(d,p){return d+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Y(e,function(d){return(isNaN(d)?0:d)/r*n*100}),a=n*100,o=Y(i,function(d){return Math.floor(d)}),s=pa(o,function(d,p){return d+p},0),l=Y(i,function(d,p){return d-o[p]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Y(o,function(d){return d/n})}function Cae(e,t){var r=Math.max(ia(e),ia(t)),n=e+t;return r>O4?n:At(n,r)}var cI=9007199254740991;function z4(e){var t=Math.PI*2;return(e%t+t)%t}function yd(e){return e>-uI&&e<uI}var Tae=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ya(e){if(e instanceof Date)return e;if(q(e)){var t=Tae.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 Aae(e){return Math.pow(10,LA(e))}function LA(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 B4(e,t){var r=LA(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function m_(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function fI(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Za(e){var t=parseFloat(e);return t==e&&(t!==0||!q(e)||e.indexOf("x")<=0)?t:NaN}function F4(e){return!isNaN(Za(e))}function V4(){return Math.round(Math.random()*9)}function G4(e,t){return t===0?e:G4(t,e%t)}function hI(e,t){return e==null?t:t==null?e:e*t/G4(e,t)}function Ye(e){throw new Error(e)}function dI(e,t,r){return(t-e)*r+e}var $4="series\0",H4="\0_ec_\0";function et(e){return e instanceof Array?e:e==null?[]:[e]}function Ll(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var pI=["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 jc(e){return ge(e)&&!j(e)&&!(e instanceof Date)?e.value:e}function Mae(e){return ge(e)&&!(e instanceof Array)}function W4(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=ae();D(t,function(l,u){if(!ge(l)){t[u]=null;return}});var s=Dae(e,o,r);return(n||i)&&kae(s,e,o,t),n&&Pae(s,t),n||i?Iae(s,t,i):a&&Eae(s,t),Lae(s),s}function Dae(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||md(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function kae(e,t,r,n){D(n,function(i,a){if(!(!i||i.id==null)){var o=Ih(i.id),s=r.get(o);if(s!=null){var l=e[s];$r(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function Pae(e,t){D(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!md(r)&&!md(a)&&U4("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function Iae(e,t,r){D(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||md(i.existing)||i.existing&&n.id!=null&&!U4("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Eae(e,t){D(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Lae(e){var t=ae();D(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),D(e,function(r){var n=r.newOption;$r(!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 i=r.existing,a=r.newOption,o=r.keyInfo;if(ge(a)){if(o.name=a.name!=null?Ih(a.name):i?i.name:$4+n,i)o.id=Ih(i.id);else if(a.id!=null)o.id=Ih(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function U4(e,t,r){var n=Yt(t[e],null),i=Yt(r[e],null);return n!=null&&i!=null&&n===i}function Ih(e){return Yt(e,"")}function Yt(e,t){return e==null?t:q(e)?e:$e(e)||Hw(e)?e+"":t}function RA(e){var t=e.name;return!!(t&&t.indexOf($4))}function md(e){return e&&e.id!=null&&Ih(e.id).indexOf(H4)===0}function Rae(e){return H4+e}function Oae(e,t,r){D(e,function(n){var i=n.newOption;ge(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Nae(t,i,n.existing,r))})}function Nae(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function zae(e,t){var r={},n={};return i(e||[],r),i(t||[],n,r),[a(r),a(n)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=Yt(o[u].seriesId,null);if(f==null)return;for(var h=et(o[u].dataIndex),d=l&&l[f],p=0,v=h.length;p<v;p++){var g=h[p];d&&d[g]?d[g]=null:(s[f]||(s[f]={}))[g]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Rl(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return j(t.dataIndex)?Y(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return j(t.name)?Y(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Be(){var e="__ec_inner_"+Bae++;return function(t){return t[e]||(t[e]={})}}var Bae=V4();function Eh(e,t,r){var n=OA(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=rp(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function OA(e,t){var r;if(q(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=ae(),a={},o=!1;return D(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&Me(t.includeMainTypes,c)<0)){o=o||!!c;var h=i.get(c)||i.set(c,{});h[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Vt={useDefault:!0,enableAll:!1,enableNone:!1},Fae={useDefault:!1,enableAll:!0,enableNone:!0};function rp(e,t,r,n){n=n||Vt;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?($r(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&($r(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function j4(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Vae(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Gae(e){return e==="auto"?Ee.domSupported?"html":"richText":e||"html"}function db(e,t){var r=ae(),n=[];return D(e,function(i){var a=t(i);(r.get(a)||(n.push(a),r.set(a,[]))).push(i)}),{keys:n,buckets:r}}function Y4(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if($e(n)){var o=dI(r||0,n,i);return At(o,a?Math.max(ia(r||0),ia(n)):t)}else{if(q(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=e.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var d=l&&l[f]?l[f]:0,p=u[f],o=dI(d,p,i);s[f]=At(o,a?Math.max(ia(d),ia(p)):t)}}return s}}var $ae=".",ms="___EC__COMPONENT__CONTAINER___",X4="___EC__EXTENDED_CLASS___";function aa(e){var t={main:"",sub:""};if(e){var r=e.split($ae);t.main=r[0]||"",t.sub=r[1]||""}return t}function Hae(e){$r(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Wae(e){return!!(e&&e[X4])}function NA(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return Uae(n)?i=function(a){V(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Jne(i,this)),W(i.prototype,r),i[X4]=!0,i.extend=this.extend,i.superCall=Xae,i.superApply=Zae,i.superClass=n,i}}function Uae(e){return he(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Z4(e,t){e.extend=t.extend}var jae=Math.round(Math.random()*10);function Yae(e){var t=["__\0is_clz",jae++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Xae(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 Zae(e,t,r){return this.superClass.prototype[t].apply(e,r)}function S0(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){Hae(i),n.prototype.type=i;var a=aa(i);if(!a.sub)t[a.main]=n;else if(a.sub!==ms){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[ms]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=aa(n),a=[],o=t[i.main];return o&&o[ms]?D(o,function(s,l){l!==ms&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=aa(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return D(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=aa(n),a=t[i.main];return a&&a[ms]};function r(n){var i=t[n.main];return(!i||!i[ms])&&(i=t[n.main]={},i[ms]=!0),i}}function Ol(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&Me(i,l)>=0||a&&Me(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Kae=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],qae=Ol(Kae),Qae=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return qae(this,t,r)},e}(),pb=new ep(50);function Jae(e){if(typeof e=="string"){var t=pb.get(e);return t&&t.image}else return e}function zA(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=pb.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!w0(t)&&a.pending.push(o)):(t=Jo.loadImage(e,vI,vI),t.__zrImageSrc=e,pb.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function vI(){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 w0(e){return e&&e.width&&e.height}var __=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function eoe(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
208
- `);i=K4(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=q4(a[o],i);return a.join(`
209
- `)}function K4(e,t,r,n){n=n||{};var i=W({},n);i.font=t,r=we(r,"..."),i.maxIterations=we(n.maxIterations,2);var a=i.minChar=we(n.minChar,0);i.cnCharWidth=kn("国",t);var o=i.ascCharWidth=kn("a",t);i.placeholder=we(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=kn(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function q4(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=kn(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?toe(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=kn(e,n)}return e===""&&(e=t.placeholder),e}function toe(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function roe(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=_0(i),s=we(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?Q4(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
210
- `):[];var h=f.length*s,d=we(t.height,h);if(h>d&&u){var p=Math.floor(d/s);f=f.slice(0,p)}if(e&&a&&c!=null)for(var v=K4(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=q4(f[g],v);for(var y=d,m=0,g=0;g<f.length;g++)m=Math.max(kn(f[g],i),m);c==null&&(c=m);var _=m;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],c+=n[1]+n[3]),l&&(_=c),{lines:f,height:d,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:h,width:c}}var noe=function(){function e(){}return e}(),gI=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),ioe=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function aoe(e,t){var r=new ioe;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=__.lastIndex=0,l;(l=__.exec(e))!=null;){var u=l.index;u>s&&x_(r,e.substring(s,u),t,o),x_(r,l[2],t,o,l[1]),s=__.lastIndex}s<e.length&&x_(r,e.substring(s,e.length),t,o);var c=[],f=0,h=0,d=t.padding,p=a==="truncate",v=t.lineOverflow==="truncate";function g(O,B,I){O.width=B,O.lineHeight=I,f+=I,h=Math.max(h,B)}e:for(var y=0;y<r.lines.length;y++){for(var m=r.lines[y],_=0,x=0,w=0;w<m.tokens.length;w++){var S=m.tokens[w],b=S.styleName&&t.rich[S.styleName]||{},C=S.textPadding=b.padding,T=C?C[1]+C[3]:0,A=S.font=b.font||t.font;S.contentHeight=_0(A);var M=we(b.height,S.contentHeight);if(S.innerHeight=M,C&&(M+=C[0]+C[2]),S.height=M,S.lineHeight=fa(b.lineHeight,t.lineHeight,M),S.align=b&&b.align||t.align,S.verticalAlign=b&&b.verticalAlign||"middle",v&&i!=null&&f+S.lineHeight>i){w>0?(m.tokens=m.tokens.slice(0,w),g(m,x,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var k=b.width,P=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")S.percentWidth=k,c.push(S),S.contentWidth=kn(S.text,A);else{if(P){var L=b.backgroundColor,E=L&&L.image;E&&(E=Jae(E),w0(E)&&(S.width=Math.max(S.width,E.width*M/E.height)))}var R=p&&n!=null?n-x:null;R!=null&&R<S.width?!P||R<T?(S.text="",S.width=S.contentWidth=0):(S.text=eoe(S.text,R-T,A,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=kn(S.text,A)):S.contentWidth=kn(S.text,A)}S.width+=T,x+=S.width,b&&(_=Math.max(_,S.lineHeight))}g(m,x,_)}r.outerWidth=r.width=we(n,h),r.outerHeight=r.height=we(i,f),r.contentHeight=f,r.contentWidth=h,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var y=0;y<c.length;y++){var S=c[y],z=S.percentWidth;S.width=parseInt(z,10)/100*r.width}return r}function x_(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var h=o.padding,d=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var p=Oi(o.width,n.width)+d;s.length>0&&p+n.accumWidth>n.width&&(c=t.split(`
211
- `),u=!0),n.accumWidth=p}else{var v=Q4(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+d,f=v.linesWidths,c=v.lines}}else c=t.split(`
212
- `);for(var g=0;g<c.length;g++){var y=c[g],m=new noe;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=f?f[g]:kn(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new gI)).tokens,x=_.length;x===1&&_[0].isLineHolder?_[0]=m:(y||!x||a)&&_.push(m)}else s.push(new gI([m]))}}function ooe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var soe=pa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function loe(e){return ooe(e)?!!soe[e]:!0}function Q4(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var h=e.charAt(f);if(h===`
213
- `){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var d=kn(h,t),p=n?!1:!loe(h);if(a.length?c+d>r:i+c+d>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=d)):p?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}c+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var vb="__zr_style_"+Math.round(Math.random()*10),yl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},b0={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};yl[vb]=!0;var yI=["z","z2","invisible"],uoe=["invisible"],si=function(e){dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Re(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&coe(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Ae(0,0,0,0)),n?Ae.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Ae(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:W(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=rh,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&rh)},t.prototype.styleUpdated=function(){this.__dirty&=~rh},t.prototype.createStyle=function(r){return g0(yl,r)},t.prototype.useStyle=function(r){r[vb]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[vb]},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,yI)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Re(c),h=0;h<f.length;h++){var d=f[h];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var p=Re(u),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?uoe:yI,h=0;h<v.length;h++){var d=v[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return W(r,n),r},t.prototype.getAnimationStyleProps=function(){return b0},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=xn|rh}(),t}(x0),S_=new Ae(0,0,0,0),w_=new Ae(0,0,0,0);function coe(e,t,r){return S_.copy(e.getBoundingRect()),e.transform&&S_.applyTransform(e.transform),w_.width=t,w_.height=r,!S_.intersect(w_)}var rn=Math.min,nn=Math.max,b_=Math.sin,C_=Math.cos,_s=Math.PI*2,rv=Hl(),nv=Hl(),iv=Hl();function C0(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=rn(i,n[0]),a=nn(a,n[0]),o=rn(o,n[1]),s=nn(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function mI(e,t,r,n,i,a){i[0]=rn(e,r),i[1]=rn(t,n),a[0]=nn(e,r),a[1]=nn(t,n)}var _I=[],xI=[];function foe(e,t,r,n,i,a,o,s,l,u){var c=y4,f=qt,h=c(e,r,i,o,_I);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var p=f(e,r,i,o,_I[d]);l[0]=rn(p,l[0]),u[0]=nn(p,u[0])}h=c(t,n,a,s,xI);for(var d=0;d<h;d++){var v=f(t,n,a,s,xI[d]);l[1]=rn(v,l[1]),u[1]=nn(v,u[1])}l[0]=rn(e,l[0]),u[0]=nn(e,u[0]),l[0]=rn(o,l[0]),u[0]=nn(o,u[0]),l[1]=rn(t,l[1]),u[1]=nn(t,u[1]),l[1]=rn(s,l[1]),u[1]=nn(s,u[1])}function hoe(e,t,r,n,i,a,o,s){var l=_4,u=or,c=nn(rn(l(e,r,i),1),0),f=nn(rn(l(t,n,a),1),0),h=u(e,r,i,c),d=u(t,n,a,f);o[0]=rn(e,i,h),o[1]=rn(t,a,d),s[0]=nn(e,i,h),s[1]=nn(t,a,d)}function doe(e,t,r,n,i,a,o,s,l){var u=ko,c=Po,f=Math.abs(i-a);if(f%_s<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(rv[0]=C_(i)*r+e,rv[1]=b_(i)*n+t,nv[0]=C_(a)*r+e,nv[1]=b_(a)*n+t,u(s,rv,nv),c(l,rv,nv),i=i%_s,i<0&&(i=i+_s),a=a%_s,a<0&&(a=a+_s),i>a&&!o?a+=_s:i<a&&o&&(i+=_s),o){var h=a;a=i,i=h}for(var d=0;d<a;d+=Math.PI/2)d>i&&(iv[0]=C_(d)*r+e,iv[1]=b_(d)*n+t,u(s,iv,s),c(l,iv,l))}var ot={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},xs=[],Ss=[],Gi=[],lo=[],$i=[],Hi=[],T_=Math.min,A_=Math.max,ws=Math.cos,bs=Math.sin,Aa=Math.abs,gb=Math.PI,mo=gb*2,M_=typeof Float32Array<"u",Tf=[];function D_(e){var t=Math.round(e/gb*1e8)/1e8;return t%2*gb}function BA(e,t){var r=D_(e[0]);r<0&&(r+=mo);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=mo?i=r+mo:t&&r-i>=mo?i=r-mo:!t&&r>i?i=r+(mo-D_(r-i)):t&&r<i&&(i=r-(mo-D_(i-r))),e[0]=r,e[1]=i}var ma=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=Aa(n/Dy/t)||0,this._uy=Aa(n/Dy/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(ot.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=Aa(t-this._xi),i=Aa(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ot.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(ot.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(ot.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Tf[0]=i,Tf[1]=a,BA(Tf,o),i=Tf[0],a=Tf[1];var s=a-i;return this.addData(ot.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=ws(a)*n+t,this._yi=bs(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(ot.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ot.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&M_&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();M_&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,M_&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Gi[0]=Gi[1]=$i[0]=$i[1]=Number.MAX_VALUE,lo[0]=lo[1]=Hi[0]=Hi[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case ot.M:r=i=t[o++],n=a=t[o++],$i[0]=i,$i[1]=a,Hi[0]=i,Hi[1]=a;break;case ot.L:mI(r,n,t[o],t[o+1],$i,Hi),r=t[o++],n=t[o++];break;case ot.C:foe(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],$i,Hi),r=t[o++],n=t[o++];break;case ot.Q:hoe(r,n,t[o++],t[o++],t[o],t[o+1],$i,Hi),r=t[o++],n=t[o++];break;case ot.A:var u=t[o++],c=t[o++],f=t[o++],h=t[o++],d=t[o++],p=t[o++]+d;o+=1;var v=!t[o++];l&&(i=ws(d)*f+u,a=bs(d)*h+c),doe(u,c,f,h,d,p,v,$i,Hi),r=ws(p)*f+u,n=bs(p)*h+c;break;case ot.R:i=r=t[o++],a=n=t[o++];var g=t[o++],y=t[o++];mI(i,a,i+g,a+y,$i,Hi);break;case ot.Z:r=i,n=a;break}ko(Gi,Gi,$i),Po(lo,lo,Hi)}return o===0&&(Gi[0]=Gi[1]=lo[0]=lo[1]=0),new Ae(Gi[0],Gi[1],lo[0]-Gi[0],lo[1]-Gi[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,h=0;h<r;){var d=t[h++],p=h===1;p&&(a=t[h],o=t[h+1],s=a,l=o);var v=-1;switch(d){case ot.M:a=s=t[h++],o=l=t[h++];break;case ot.L:{var g=t[h++],y=t[h++],m=g-a,_=y-o;(Aa(m)>n||Aa(_)>i||h===r-1)&&(v=Math.sqrt(m*m+_*_),a=g,o=y);break}case ot.C:{var x=t[h++],w=t[h++],g=t[h++],y=t[h++],S=t[h++],b=t[h++];v=Lie(a,o,x,w,g,y,S,b,10),a=S,o=b;break}case ot.Q:{var x=t[h++],w=t[h++],g=t[h++],y=t[h++];v=Oie(a,o,x,w,g,y,10),a=g,o=y;break}case ot.A:var C=t[h++],T=t[h++],A=t[h++],M=t[h++],k=t[h++],P=t[h++],L=P+k;h+=1,p&&(s=ws(k)*A+C,l=bs(k)*M+T),v=A_(A,M)*T_(mo,Math.abs(P)),a=ws(L)*A+C,o=bs(L)*M+T;break;case ot.R:{s=a=t[h++],l=o=t[h++];var E=t[h++],R=t[h++];v=E*2+R*2;break}case ot.Z:{var m=s-a,_=l-o;v=Math.sqrt(m*m+_*_),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,h,d=r<1,p,v,g=0,y=0,m,_=0,x,w;if(!(d&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,m=r*v,!m)))e:for(var S=0;S<o;){var b=n[S++],C=S===1;switch(C&&(u=n[S],c=n[S+1],s=u,l=c),b!==ot.L&&_>0&&(t.lineTo(x,w),_=0),b){case ot.M:s=u=n[S++],l=c=n[S++],t.moveTo(u,c);break;case ot.L:{f=n[S++],h=n[S++];var T=Aa(f-u),A=Aa(h-c);if(T>i||A>a){if(d){var M=p[y++];if(g+M>m){var k=(m-g)/M;t.lineTo(u*(1-k)+f*k,c*(1-k)+h*k);break e}g+=M}t.lineTo(f,h),u=f,c=h,_=0}else{var P=T*T+A*A;P>_&&(x=f,w=h,_=P)}break}case ot.C:{var L=n[S++],E=n[S++],R=n[S++],z=n[S++],O=n[S++],B=n[S++];if(d){var M=p[y++];if(g+M>m){var k=(m-g)/M;es(u,L,R,O,k,xs),es(c,E,z,B,k,Ss),t.bezierCurveTo(xs[1],Ss[1],xs[2],Ss[2],xs[3],Ss[3]);break e}g+=M}t.bezierCurveTo(L,E,R,z,O,B),u=O,c=B;break}case ot.Q:{var L=n[S++],E=n[S++],R=n[S++],z=n[S++];if(d){var M=p[y++];if(g+M>m){var k=(m-g)/M;pd(u,L,R,k,xs),pd(c,E,z,k,Ss),t.quadraticCurveTo(xs[1],Ss[1],xs[2],Ss[2]);break e}g+=M}t.quadraticCurveTo(L,E,R,z),u=R,c=z;break}case ot.A:var I=n[S++],G=n[S++],U=n[S++],N=n[S++],Z=n[S++],oe=n[S++],te=n[S++],fe=!n[S++],ie=U>N?U:N,le=Aa(U-N)>.001,ue=Z+oe,re=!1;if(d){var M=p[y++];g+M>m&&(ue=Z+oe*(m-g)/M,re=!0),g+=M}if(le&&t.ellipse?t.ellipse(I,G,U,N,te,Z,ue,fe):t.arc(I,G,ie,Z,ue,fe),re)break e;C&&(s=ws(Z)*U+I,l=bs(Z)*N+G),u=ws(ue)*U+I,c=bs(ue)*N+G;break;case ot.R:s=u=n[S],l=c=n[S+1],f=n[S++],h=n[S++];var ce=n[S++],_e=n[S++];if(d){var M=p[y++];if(g+M>m){var ve=m-g;t.moveTo(f,h),t.lineTo(f+T_(ve,ce),h),ve-=ce,ve>0&&t.lineTo(f+ce,h+T_(ve,_e)),ve-=_e,ve>0&&t.lineTo(f+A_(ce-ve,0),h+_e),ve-=ce,ve>0&&t.lineTo(f,h+A_(_e-ve,0));break e}g+=M}t.rect(f,h,ce,_e);break;case ot.Z:if(d){var M=p[y++];if(g+M>m){var k=(m-g)/M;t.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);break e}g+=M}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=ot,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function wo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function poe(e,t,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>a+f&&c>s+f||c<t-f&&c<n-f&&c<a-f&&c<s-f||u>e+f&&u>r+f&&u>i+f&&u>o+f||u<e-f&&u<r-f&&u<i-f&&u<o-f)return!1;var h=m4(e,t,r,n,i,a,o,s,u,c,null);return h<=f/2}function J4(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var c=x4(e,t,r,n,i,a,s,l,null);return c<=u/2}var SI=Math.PI*2;function Cn(e){return e%=SI,e<0&&(e+=SI),e}var Af=Math.PI*2;function voe(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%Af<1e-4)return!0;if(a){var f=n;n=Cn(i),i=Cn(f)}else n=Cn(n),i=Cn(i);n>i&&(i+=Af);var h=Math.atan2(l,s);return h<0&&(h+=Af),h>=n&&h<=i||h+Af>=n&&h+Af<=i}function Ia(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var uo=ma.CMD,Cs=Math.PI*2,goe=1e-4;function yoe(e,t){return Math.abs(e-t)<goe}var zr=[-1,-1,-1],Un=[-1,-1];function moe(){var e=Un[0];Un[0]=Un[1],Un[1]=e}function _oe(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=Cy(t,n,a,s,u,zr);if(c===0)return 0;for(var f=0,h=-1,d=void 0,p=void 0,v=0;v<c;v++){var g=zr[v],y=g===0||g===1?.5:1,m=qt(e,r,i,o,g);m<l||(h<0&&(h=y4(t,n,a,s,Un),Un[1]<Un[0]&&h>1&&moe(),d=qt(t,n,a,s,Un[0]),h>1&&(p=qt(t,n,a,s,Un[1]))),h===2?g<Un[0]?f+=d<t?y:-y:g<Un[1]?f+=p<d?y:-y:f+=s<p?y:-y:g<Un[0]?f+=d<t?y:-y:f+=s<d?y:-y)}return f}function xoe(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=Rie(t,n,a,s,zr);if(l===0)return 0;var u=_4(t,n,a);if(u>=0&&u<=1){for(var c=0,f=or(t,n,a,u),h=0;h<l;h++){var d=zr[h]===0||zr[h]===1?.5:1,p=or(e,r,i,zr[h]);p<o||(zr[h]<u?c+=f<t?d:-d:c+=a<f?d:-d)}return c}else{var d=zr[0]===0||zr[0]===1?.5:1,p=or(e,r,i,zr[0]);return p<o?0:a<t?d:-d}}function Soe(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);zr[0]=-l,zr[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Cs-1e-4){n=0,i=Cs;var c=a?1:-1;return o>=zr[0]+e&&o<=zr[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Cs,i+=Cs);for(var h=0,d=0;d<2;d++){var p=zr[d];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=Cs+v),(v>=n&&v<=i||v+Cs>=n&&v+Cs<=i)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),h+=c)}}return h}function eV(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,h,d,p=0;p<o;){var v=a[p++],g=p===1;switch(v===uo.M&&p>1&&(r||(s+=Ia(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case uo.M:c=a[p++],f=a[p++],l=c,u=f;break;case uo.L:if(r){if(wo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Ia(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case uo.C:if(r){if(poe(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=_oe(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case uo.Q:if(r){if(J4(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=xoe(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case uo.A:var y=a[p++],m=a[p++],_=a[p++],x=a[p++],w=a[p++],S=a[p++];p+=1;var b=!!(1-a[p++]);h=Math.cos(w)*_+y,d=Math.sin(w)*x+m,g?(c=h,f=d):s+=Ia(l,u,h,d,n,i);var C=(n-y)*x/_+y;if(r){if(voe(y,m,x,w,w+S,b,t,C,i))return!0}else s+=Soe(y,m,x,w,w+S,b,C,i);l=Math.cos(w+S)*_+y,u=Math.sin(w+S)*x+m;break;case uo.R:c=l=a[p++],f=u=a[p++];var T=a[p++],A=a[p++];if(h=c+T,d=f+A,r){if(wo(c,f,h,f,t,n,i)||wo(h,f,h,d,t,n,i)||wo(h,d,c,d,t,n,i)||wo(c,d,c,f,t,n,i))return!0}else s+=Ia(h,f,h,d,n,i),s+=Ia(c,d,c,f,n,i);break;case uo.Z:if(r){if(wo(l,u,c,f,t,n,i))return!0}else s+=Ia(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!yoe(u,f)&&(s+=Ia(l,u,c,f,n,i)||0),s!==0}function woe(e,t,r){return eV(e,0,!1,t,r)}function boe(e,t,r,n){return eV(e,t,!0,r,n)}var Py=pe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yl),Coe={style:pe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},b0.style)},k_=ga.concat(["invisible","culling","z","z2","zlevel","parent"]),ke=function(e){dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<k_.length;++s)i[k_[s]]=this[k_[s]];i.__dirty|=xn}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Re(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?W(this.style,s):this.useStyle(s):o==="shape"?W(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=Ay(r,0);return n>.5?cb:n>.2?lae:fb}else if(r)return fb}return cb},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(q(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ay(r,0)<ub;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~ku},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 ma(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ku)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),boe(s,l/u,r,n)))return!0}if(this.hasFill())return woe(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ku,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:W(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ku)},t.prototype.createStyle=function(r){return g0(Py,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=W({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=W({},i.shape),W(u,n.shape)):(u=W({},a?this.shape:i.shape),W(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=W({},this.shape);for(var c={},f=Re(u),h=0;h<f.length;h++){var d=f[h];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return Coe},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){dt(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return me(r.style)},o.prototype.getDefaultShape=function(){return me(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=xn|rh|ku}(),t}(si),Toe=pe({strokeFirst:!0,font:Qo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Py),Mc=function(e){dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return g0(Toe,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=tp(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(si);Mc.prototype.type="tspan";var Aoe=pe({x:0,y:0},yl),Moe={style:pe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},b0.style)};function Doe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var cr=function(e){dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return g0(Aoe,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Doe(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Moe},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ae(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(si);cr.prototype.type="image";function koe(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Yu=Math.round;function tV(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Yu(n*2)===Yu(i*2)&&(e.x1=e.x2=al(n,s,!0)),Yu(a*2)===Yu(o*2)&&(e.y1=e.y2=al(a,s,!0))),e}}function rV(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=al(n,s,!0),e.y=al(i,s,!0),e.width=Math.max(al(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(al(i+o,s,!1)-e.y,o===0?0:1)),e}}function al(e,t,r){if(!t)return e;var n=Yu(e*2);return(n+Yu(t))%2===0?n/2:(n+(r?1:-1))/2}var Poe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ioe={},ze=function(e){dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Poe},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=rV(Ioe,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?koe(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ke);ze.prototype.type="rect";var wI={fill:"#000"},bI=2,Eoe={style:pe({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},b0.style)},Ve=function(e){dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=wI,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,Ooe(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 Ae(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||wI},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return W(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Re(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},W(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return Eoe},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||Qo,i=r.padding,a=PI(r),o=roe(a,r),s=P_(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,h=o.lines,d=o.lineHeight,p=this._defaultStyle,v=r.x||0,g=r.y||0,y=r.align||p.align||"left",m=r.verticalAlign||p.verticalAlign||"top",_=v,x=Pu(g,o.contentHeight,m);if(s||i){var w=ih(v,c,y),S=Pu(g,u,m);s&&this._renderBackground(r,r,w,S,c,u)}x+=d/2,i&&(_=kI(v,y,i),m==="top"?x+=i[0]:m==="bottom"&&(x-=i[2]));for(var b=0,C=!1,T=DI("fill"in r?r.fill:(C=!0,p.fill)),A=MI("stroke"in r?r.stroke:!l&&(!p.autoStroke||C)?(b=bI,p.stroke):null),M=r.textShadowBlur>0,k=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,L=0;L<h.length;L++){var E=this._getOrCreateChild(Mc),R=E.createStyle();E.useStyle(R),R.text=h[L],R.x=_,R.y=x,y&&(R.textAlign=y),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=T,A&&(R.lineWidth=r.lineWidth||b,R.lineDash=r.lineDash,R.lineDashOffset=r.lineDashOffset||0),R.font=n,TI(R,r),x+=d,k&&E.setBoundingRect(new Ae(ih(R.x,r.width,R.textAlign),Pu(R.y,P,R.textBaseline),f,P))}},t.prototype._updateRichTexts=function(){var r=this.style,n=PI(r),i=aoe(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,h=r.align||f.align,d=r.verticalAlign||f.verticalAlign,p=ih(u,o,h),v=Pu(c,s,d),g=p,y=v;l&&(g+=l[3],y+=l[0]);var m=g+a;P_(r)&&this._renderBackground(r,r,p,v,o,s);for(var _=!!r.backgroundColor,x=0;x<i.lines.length;x++){for(var w=i.lines[x],S=w.tokens,b=S.length,C=w.lineHeight,T=w.width,A=0,M=g,k=m,P=b-1,L=void 0;A<b&&(L=S[A],!L.align||L.align==="left");)this._placeToken(L,r,C,y,M,"left",_),T-=L.width,M+=L.width,A++;for(;P>=0&&(L=S[P],L.align==="right");)this._placeToken(L,r,C,y,k,"right",_),T-=L.width,k-=L.width,P--;for(M+=(a-(M-g)-(m-k)-T)/2;A<=P;)L=S[A],this._placeToken(L,r,C,y,M+L.width/2,"center",_),M+=L.width,A++;y+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var h=!r.isLineHolder&&P_(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var d=!!u.backgroundColor,p=r.textPadding;p&&(o=kI(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Mc),g=v.createStyle();v.useStyle(g);var y=this._defaultStyle,m=!1,_=0,x=DI("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=MI("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!y.autoStroke||m)?(_=bI,y.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,S&&(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||Qo,g.opacity=fa(u.opacity,n.opacity,1),TI(g,u),w&&(g.lineWidth=fa(u.lineWidth,n.lineWidth,_),g.lineDash=we(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),x&&(g.fill=x);var b=r.contentWidth,C=r.contentHeight;v.setBoundingRect(new Ae(ih(g.x,b,g.textAlign),Pu(g.y,C,g.textBaseline),b,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,h=l&&!f,d=r.borderRadius,p=this,v,g;if(h||r.lineHeight||u&&c){v=this._getOrCreateChild(ze),v.useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=d,v.dirtyShape()}if(h){var m=v.style;m.fill=l||null,m.fillOpacity=we(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(cr),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var m=v.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=we(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var x=(v||g).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=fa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return iV(r)&&(n=[r.fontStyle,r.fontWeight,nV(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ci(n)||r.textFont||r.font},t}(si),Loe={left:!0,right:1,center:1},Roe={top:1,bottom:1,middle:1},CI=["fontStyle","fontWeight","fontSize","fontFamily"];function nV(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?xA+"px":e+"px"}function TI(e,t){for(var r=0;r<CI.length;r++){var n=CI[r],i=t[n];i!=null&&(e[n]=i)}}function iV(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Ooe(e){return AI(e),D(e.rich,AI),e}function AI(e){if(e){e.font=Ve.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Loe[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Roe[r]?r:"top";var n=e.padding;n&&(e.padding=AA(e.padding))}}function MI(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function DI(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function kI(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function PI(e){var t=e.text;return t!=null&&(t+=""),t}function P_(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Se=Be(),yb=function(e,t,r,n){if(n){var i=Se(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Se(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},II=1,EI={},aV=Be(),FA=Be(),VA=0,np=1,T0=2,Hr=["emphasis","blur","select"],_d=["normal","emphasis","blur","select"],Yc=10,Noe=9,ml="highlight",Sg="downplay",Lh="select",wg="unselect",Rh="toggleSelect";function fu(e){return e!=null&&e!=="none"}function A0(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function oV(e){A0(e,"emphasis",T0)}function sV(e){e.hoverState===T0&&A0(e,"normal",VA)}function GA(e){A0(e,"blur",np)}function lV(e){e.hoverState===np&&A0(e,"normal",VA)}function zoe(e){e.selected=!0}function Boe(e){e.selected=!1}function LI(e,t,r){t(e,r)}function no(e,t,r){LI(e,t,r),e.isGroup&&e.traverse(function(n){LI(n,t,r)})}function Iy(e,t){switch(t){case"emphasis":e.hoverState=T0;break;case"normal":e.hoverState=VA;break;case"blur":e.hoverState=np;break;case"select":e.selected=!0}}function Foe(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function Voe(e,t,r,n){var i=r&&Me(r,"select")>=0,a=!1;if(e instanceof ke){var o=aV(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(fu(s)||fu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=W({},n),u=W({},u),u.fill=s):!fu(u.fill)&&fu(s)?(a=!0,n=W({},n),u=W({},u),u.fill=rb(s)):!fu(u.stroke)&&fu(l)&&(a||(n=W({},n),u=W({},u)),u.stroke=rb(l)),n.style=u}}if(n&&n.z2==null){a||(n=W({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Yc)}return n}function Goe(e,t,r){if(r&&r.z2==null){r=W({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Noe)}return r}function $oe(e,t,r){var n=Me(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Foe(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=W({},r),o=W({opacity:n?i:a.opacity*.1},o),r.style=o),r}function I_(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Voe(this,e,t,r);if(e==="blur")return $oe(this,e,r);if(e==="select")return Goe(this,e,r)}return r}function Nl(e){e.stateProxy=I_;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=I_),r&&(r.stateProxy=I_)}function RI(e,t){!hV(e,t)&&!e.__highByOuter&&no(e,oV)}function OI(e,t){!hV(e,t)&&!e.__highByOuter&&no(e,sV)}function Ka(e,t){e.__highByOuter|=1<<(t||0),no(e,oV)}function qa(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&no(e,sV)}function uV(e){no(e,GA)}function $A(e){no(e,lV)}function cV(e){no(e,zoe)}function fV(e){no(e,Boe)}function hV(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function dV(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=FA(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){lV(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function mb(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&$A(h)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var h=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!h||t==="series"&&c)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||GA(g)}),Pr(t))a(u.getData(),t);else if(ge(t))for(var p=Re(t),v=0;v<p.length;v++)a(u.getData(p[v]),t[p[v]]);l.push(u),FA(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function _b(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){FA(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){GA(a)})}}}function Hoe(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Rl(i,t);a=(j(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Se(o);mb(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&mb(n,c,f,r)}}}function HA(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Se(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Woe(e,t,r){var n=Se(e),i=HA(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&_b(n.componentMainType,n.componentIndex,r),D(a,function(s){return RI(s,t)})):(mb(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&_b(n.componentMainType,n.componentIndex,r),RI(e,t))}function Uoe(e,t,r){dV(r);var n=Se(e),i=HA(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?D(i,function(a){return OI(a,t)}):OI(e,t)}function joe(e,t,r){if(Sb(t)){var n=t.dataType,i=e.getData(n),a=Rl(i,t);j(a)||(a=[a]),e[t.type===Rh?"toggleSelect":t.type===Lh?"select":"unselect"](a,n)}}function NI(e){var t=e.getAllData();D(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?cV(a):fV(a)})})}function Yoe(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();D(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function _l(e,t,r){ol(e,!0),no(e,Nl),xb(e,t,r)}function Xoe(e){ol(e,!1)}function Ct(e,t,r,n){n?Xoe(e):_l(e,t,r)}function xb(e,t,r){var n=Se(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var zI=["emphasis","blur","select"],Zoe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _r(e,t,r,n){r=r||"itemStyle";for(var i=0;i<zI.length;i++){var a=zI[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[Zoe[r]]()}}function ol(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 xd(e){return!!(e&&e.__highDownDispatcher)}function Koe(e,t,r){var n=Se(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function qoe(e){var t=EI[e];return t==null&&II<=32&&(t=EI[e]=II++),t}function Sb(e){var t=e.type;return t===Lh||t===wg||t===Rh}function BI(e){var t=e.type;return t===ml||t===Sg}function Qoe(e){var t=aV(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 hu=ma.CMD,Joe=[[],[],[]],FI=Math.sqrt,ese=Math.atan2;function pV(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=hu.M,f=hu.C,h=hu.L,d=hu.R,p=hu.A,v=hu.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case h:a=1;break;case f:a=3;break;case v:a=2;break;case p:var g=t[4],y=t[5],m=FI(t[0]*t[0]+t[1]*t[1]),_=FI(t[2]*t[2]+t[3]*t[3]),x=ese(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=g,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],yr(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],yr(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=Joe[l];w[0]=r[o++],w[1]=r[o++],yr(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var E_=Math.sqrt,av=Math.sin,ov=Math.cos,Mf=Math.PI;function VI(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function wb(e,t){return(e[0]*t[0]+e[1]*t[1])/(VI(e)*VI(t))}function GI(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(wb(e,t))}function $I(e,t,r,n,i,a,o,s,l,u,c){var f=l*(Mf/180),h=ov(f)*(e-r)/2+av(f)*(t-n)/2,d=-1*av(f)*(e-r)/2+ov(f)*(t-n)/2,p=h*h/(o*o)+d*d/(s*s);p>1&&(o*=E_(p),s*=E_(p));var v=(i===a?-1:1)*E_((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,g=v*o*d/s,y=v*-s*h/o,m=(e+r)/2+ov(f)*g-av(f)*y,_=(t+n)/2+av(f)*g+ov(f)*y,x=GI([1,0],[(h-g)/o,(d-y)/s]),w=[(h-g)/o,(d-y)/s],S=[(-1*h-g)/o,(-1*d-y)/s],b=GI(w,S);if(wb(w,S)<=-1&&(b=Mf),wb(w,S)>=1&&(b=0),b<0){var C=Math.round(b/Mf*1e6)/1e6;b=Mf*2+C%2*Mf}c.addData(u,m,_,o,s,x,b,f,a)}var tse=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,rse=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function nse(e){var t=new ma;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=ma.CMD,l=e.match(tse);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,d=c.match(rse)||[],p=d.length,v=0;v<p;v++)d[v]=parseFloat(d[v]);for(var g=0;g<p;){var y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,S=void 0,b=void 0,C=r,T=n,A=void 0,M=void 0;switch(f){case"l":r+=d[g++],n+=d[g++],h=s.L,t.addData(h,r,n);break;case"L":r=d[g++],n=d[g++],h=s.L,t.addData(h,r,n);break;case"m":r+=d[g++],n+=d[g++],h=s.M,t.addData(h,r,n),i=r,a=n,f="l";break;case"M":r=d[g++],n=d[g++],h=s.M,t.addData(h,r,n),i=r,a=n,f="L";break;case"h":r+=d[g++],h=s.L,t.addData(h,r,n);break;case"H":r=d[g++],h=s.L,t.addData(h,r,n);break;case"v":n+=d[g++],h=s.L,t.addData(h,r,n);break;case"V":n=d[g++],h=s.L,t.addData(h,r,n);break;case"C":h=s.C,t.addData(h,d[g++],d[g++],d[g++],d[g++],d[g++],d[g++]),r=d[g-2],n=d[g-1];break;case"c":h=s.C,t.addData(h,d[g++]+r,d[g++]+n,d[g++]+r,d[g++]+n,d[g++]+r,d[g++]+n),r+=d[g-2],n+=d[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,C=d[g++],T=d[g++],r=d[g++],n=d[g++],t.addData(h,y,m,C,T,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,C=r+d[g++],T=n+d[g++],r+=d[g++],n+=d[g++],t.addData(h,y,m,C,T,r,n);break;case"Q":C=d[g++],T=d[g++],r=d[g++],n=d[g++],h=s.Q,t.addData(h,C,T,r,n);break;case"q":C=d[g++]+r,T=d[g++]+n,r+=d[g++],n+=d[g++],h=s.Q,t.addData(h,C,T,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=d[g++],n=d[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+=d[g++],n+=d[g++],h=s.Q,t.addData(h,y,m,r,n);break;case"A":_=d[g++],x=d[g++],w=d[g++],S=d[g++],b=d[g++],C=r,T=n,r=d[g++],n=d[g++],h=s.A,$I(C,T,r,n,S,b,_,x,w,h,t);break;case"a":_=d[g++],x=d[g++],w=d[g++],S=d[g++],b=d[g++],C=r,T=n,r+=d[g++],n+=d[g++],h=s.A,$I(C,T,r,n,S,b,_,x,w,h,t);break}}(f==="z"||f==="Z")&&(h=s.Z,t.addData(h),r=i,n=a),o=h}return t.toStatic(),t}var vV=function(e){dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ke);function gV(e){return e.setData!=null}function yV(e,t){var r=nse(e),n=W({},t);return n.buildPath=function(i){if(gV(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){pV(r,i),this.dirtyShape()},n}function mV(e,t){return new vV(yV(e,t))}function ise(e,t){var r=yV(e,t),n=function(i){dt(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(vV);return n}function ase(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ke(t);return o.createPathProxy(),o.buildPath=function(s){if(gV(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function WA(e,t){t=t||{};var r=new ke;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?pV(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 ose=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),io=function(e){dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ose},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}(ke);io.prototype.type="circle";var sse=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),_V=function(e){dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new sse},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},t}(ke);_V.prototype.type="ellipse";const UA=_V;var xV=Math.PI,L_=xV*2,Ts=Math.sin,du=Math.cos,lse=Math.acos,br=Math.atan2,HI=Math.abs,Oh=Math.sqrt,ah=Math.max,Wi=Math.min,vi=1e-4;function use(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,h=f*l-c*u;if(!(h*h<vi))return h=(c*(t-a)-f*(e-i))/h,[e+h*l,t+h*u]}function sv(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Oh(s*s+l*l),c=u*l,f=-u*s,h=e+c,d=t+f,p=r+c,v=n+f,g=(h+p)/2,y=(d+v)/2,m=p-h,_=v-d,x=m*m+_*_,w=i-a,S=h*v-p*d,b=(_<0?-1:1)*Oh(ah(0,w*w*x-S*S)),C=(S*_-m*b)/x,T=(-S*m-_*b)/x,A=(S*_+m*b)/x,M=(-S*m+_*b)/x,k=C-g,P=T-y,L=A-g,E=M-y;return k*k+P*P>L*L+E*E&&(C=A,T=M),{cx:C,cy:T,x0:-c,y0:-f,x1:C*(i/w-1),y1:T*(i/w-1)}}function cse(e){var t;if(j(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 fse(e,t){var r,n=ah(t.r,0),i=ah(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,h=!!t.clockwise,d=HI(u-l),p=d>L_&&d%L_;if(p>vi&&(d=p),!(n>vi))e.moveTo(c,f);else if(d>L_-vi)e.moveTo(c+n*du(l),f+n*Ts(l)),e.arc(c,f,n,l,u,!h),i>vi&&(e.moveTo(c+i*du(u),f+i*Ts(u)),e.arc(c,f,i,u,l,h));else{var v=void 0,g=void 0,y=void 0,m=void 0,_=void 0,x=void 0,w=void 0,S=void 0,b=void 0,C=void 0,T=void 0,A=void 0,M=void 0,k=void 0,P=void 0,L=void 0,E=n*du(l),R=n*Ts(l),z=i*du(u),O=i*Ts(u),B=d>vi;if(B){var I=t.cornerRadius;I&&(r=cse(I),v=r[0],g=r[1],y=r[2],m=r[3]);var G=HI(n-i)/2;if(_=Wi(G,y),x=Wi(G,m),w=Wi(G,v),S=Wi(G,g),T=b=ah(_,x),A=C=ah(w,S),(b>vi||C>vi)&&(M=n*du(u),k=n*Ts(u),P=i*du(l),L=i*Ts(l),d<xV)){var U=use(E,R,P,L,M,k,z,O);if(U){var N=E-U[0],Z=R-U[1],oe=M-U[0],te=k-U[1],fe=1/Ts(lse((N*oe+Z*te)/(Oh(N*N+Z*Z)*Oh(oe*oe+te*te)))/2),ie=Oh(U[0]*U[0]+U[1]*U[1]);T=Wi(b,(n-ie)/(fe+1)),A=Wi(C,(i-ie)/(fe-1))}}}if(!B)e.moveTo(c+E,f+R);else if(T>vi){var le=Wi(y,T),ue=Wi(m,T),re=sv(P,L,E,R,n,le,h),ce=sv(M,k,z,O,n,ue,h);e.moveTo(c+re.cx+re.x0,f+re.cy+re.y0),T<b&&le===ue?e.arc(c+re.cx,f+re.cy,T,br(re.y0,re.x0),br(ce.y0,ce.x0),!h):(le>0&&e.arc(c+re.cx,f+re.cy,le,br(re.y0,re.x0),br(re.y1,re.x1),!h),e.arc(c,f,n,br(re.cy+re.y1,re.cx+re.x1),br(ce.cy+ce.y1,ce.cx+ce.x1),!h),ue>0&&e.arc(c+ce.cx,f+ce.cy,ue,br(ce.y1,ce.x1),br(ce.y0,ce.x0),!h))}else e.moveTo(c+E,f+R),e.arc(c,f,n,l,u,!h);if(!(i>vi)||!B)e.lineTo(c+z,f+O);else if(A>vi){var le=Wi(v,A),ue=Wi(g,A),re=sv(z,O,M,k,i,-ue,h),ce=sv(E,R,P,L,i,-le,h);e.lineTo(c+re.cx+re.x0,f+re.cy+re.y0),A<C&&le===ue?e.arc(c+re.cx,f+re.cy,A,br(re.y0,re.x0),br(ce.y0,ce.x0),!h):(ue>0&&e.arc(c+re.cx,f+re.cy,ue,br(re.y0,re.x0),br(re.y1,re.x1),!h),e.arc(c,f,i,br(re.cy+re.y1,re.cx+re.x1),br(ce.cy+ce.y1,ce.cx+ce.x1),h),le>0&&e.arc(c+ce.cx,f+ce.cy,le,br(ce.y1,ce.x1),br(ce.y0,ce.x0),!h))}else e.lineTo(c+z,f+O),e.arc(c,f,i,u,l,h)}e.closePath()}}}var hse=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}(),Wr=function(e){dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new hse},t.prototype.buildPath=function(r,n){fse(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ke);Wr.prototype.type="sector";var dse=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),SV=function(e){dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new dse},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(ke);SV.prototype.type="ring";const M0=SV;function pse(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,d=e.length;h<d;h++)ko(c,c,e[h]),Po(f,f,e[h]);ko(c,c,n[0]),Po(f,f,n[1])}for(var h=0,d=e.length;h<d;h++){var p=e[h];if(r)l=e[h?h-1:d-1],u=e[(h+1)%d];else if(h===0||h===d-1){i.push(Ba(e[h]));continue}else l=e[h-1],u=e[h+1];il(a,u,l),pg(a,a,t);var v=Yw(p,l),g=Yw(p,u),y=v+g;y!==0&&(v/=y,g/=y),pg(o,a,-v),pg(s,a,g);var m=NP([],p,o),_=NP([],p,s);n&&(Po(m,m,c),ko(m,m,f),Po(_,_,c),ko(_,_,f)),i.push(m),i.push(_)}return r&&i.push(i.shift()),i}function wV(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=pse(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var vse=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ur=function(e){dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new vse},t.prototype.buildPath=function(r,n){wV(r,n,!0)},t}(ke);Ur.prototype.type="polygon";var gse=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Zr=function(e){dt(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 gse},t.prototype.buildPath=function(r,n){wV(r,n,!1)},t}(ke);Zr.prototype.type="polyline";var yse={},mse=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Jt=function(e){dt(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 mse},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=tV(yse,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ke);Jt.prototype.type="line";var qr=[],_se=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 WI(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?XP:qt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?XP:qt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Qw:or)(e.x1,e.cpx1,e.x2,t),(r?Qw:or)(e.y1,e.cpy1,e.y2,t)]}var ip=function(e){dt(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 _se},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),c==null||f==null?(h<1&&(pd(i,l,o,h,qr),l=qr[1],o=qr[2],pd(a,u,s,h,qr),u=qr[1],s=qr[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(es(i,l,c,o,h,qr),l=qr[1],c=qr[2],o=qr[3],es(a,u,f,s,h,qr),u=qr[1],f=qr[2],s=qr[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return WI(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=WI(this.shape,r,!0);return Wc(n,n)},t}(ke);ip.prototype.type="bezier-curve";var xse=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}(),D0=function(e){dt(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 xse},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},t}(ke);D0.prototype.type="arc";var Sse=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ke.prototype.getBoundingRect.call(this)},t}(ke);const jA=Sse;var bV=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),ap=function(e){dt(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(bV),wse=function(e){dt(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(bV);const CV=wse;var As=[0,0],Ms=[0,0],lv=new Ce,uv=new Ce,bse=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ce;for(var n=0;n<2;n++)this._axes[n]=new Ce;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Ce.sub(i[0],n[1],n[0]),Ce.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return lv.set(1/0,1/0),uv.set(0,0),!this._intersectCheckOneSide(this,t,lv,uv,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,lv,uv,i,-1)&&(n=!1,i)||i||Ce.copy(r,n?lv:uv),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,As),this._getProjMinMaxOnAxis(l,r._corners,Ms),As[1]<Ms[0]||As[0]>Ms[1]){if(s=!1,a)return s;var c=Math.abs(Ms[0]-As[1]),f=Math.abs(As[0]-Ms[1]);Math.min(c,f)>i.len()&&(c<f?Ce.scale(i,u,-c*o):Ce.scale(i,u,f*o))}else if(n){var c=Math.abs(Ms[0]-As[1]),f=Math.abs(As[0]-Ms[1]);Math.min(c,f)<n.len()&&(c<f?Ce.scale(n,u,c*o):Ce.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const Ey=bse;var Cse=[],Tse=function(e){dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Ae(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(Cse)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(si);const Ase=Tse;var TV=Be();function Xc(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=we(n.duration,200),c=we(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),he(f)&&(f=f(r,i)),he(u)&&(u=u(r));var h={duration:u||0,delay:f,easing:c};return h}else return null}function YA(e,t,r,n,i,a,o){var s=!1,l;he(i)?(o=a,a=i,i=null):ge(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Xc(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,d=c.easing,p={duration:f,delay:h||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function He(e,t,r,n,i,a){YA("update",e,t,r,n,i,a)}function vt(e,t,r,n,i,a){YA("enter",e,t,r,n,i,a)}function sc(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 ts(e,t,r,n,i,a){sc(e)||YA("leave",e,t,r,n,i,a)}function UI(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),ts(e,{style:{opacity:0}},t,r,n)}function Sd(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||UI(i,t,r,n)}):UI(e,t,r,n)}function Ni(e){TV(e).oldStyle=e.style}function Mse(e){return TV(e).oldStyle}var Ly=Math.max,Ry=Math.min,bb={};function Dse(e){return ke.extend(e)}var kse=ise;function Pse(e,t){return kse(e,t)}function zi(e,t){bb[e]=t}function XA(e){if(bb.hasOwnProperty(e))return bb[e]}function k0(e,t,r,n){var i=mV(e,t);return r&&(n==="center"&&(r=MV(r,i.getBoundingRect())),DV(i,r)),i}function AV(e,t,r){var n=new cr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(MV(t,a))}}});return n}function MV(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Jn=ase;function DV(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Dc(e,t){return tV(e,e,{lineWidth:t}),e}function Ise(e){return rV(e.shape,e.shape,e.style),e}var bg=al;function xl(e,t){for(var r=y0([]);e&&e!==t;)Fa(r,e.getLocalTransform(),r),e=e.parent;return r}function Ii(e,t,r){return t&&!Pr(t)&&(t=Oa.getLocalTransform(t)),r&&(t=Uc([],t)),yr([],e,t)}function P0(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=Ii(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function jI(e){return!e.isGroup}function Ese(e){return e.shape!=null}function op(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){jI(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Ese(o)&&(s.shape=W({},o.shape)),s}var a=n(e);t.traverse(function(o){if(jI(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),He(o,l,r,Se(o).dataIndex)}}})}function kV(e,t){return Y(e,function(r){var n=r[0];n=Ly(n,t.x),n=Ry(n,t.x+t.width);var i=r[1];return i=Ly(i,t.y),i=Ry(i,t.y+t.height),[n,i]})}function Lse(e,t){var r=Ly(e.x,t.x),n=Ry(e.x+e.width,t.x+t.width),i=Ly(e.y,t.y),a=Ry(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function sp(e,t,r){var n=W({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),pe(i,r),new cr(n)):k0(e.replace("path://",""),n,r,"center")}function oh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(PV(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function PV(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,h=R_(c,f,l,u);if(Rse(h))return!1;var d=e-i,p=t-a,v=R_(d,p,l,u)/h;if(v<0||v>1)return!1;var g=R_(d,p,c,f)/h;return!(g<0||g>1)}function R_(e,t,r,n){return e*n-r*t}function Rse(e){return e<=1e-6&&e>=-1e-6}function Zc(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=q(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&D(Re(l),function(c){ne(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Se(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:pe({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function YI(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function cs(e,t){if(e)if(j(e))for(var r=0;r<e.length;r++)YI(e[r],t);else YI(e,t)}zi("circle",io);zi("ellipse",UA);zi("sector",Wr);zi("ring",M0);zi("polygon",Ur);zi("polyline",Zr);zi("rect",ze);zi("line",Jt);zi("bezierCurve",ip);zi("arc",D0);const Ul=Object.freeze(Object.defineProperty({__proto__:null,Arc:D0,BezierCurve:ip,BoundingRect:Ae,Circle:io,CompoundPath:jA,Ellipse:UA,Group:xe,Image:cr,IncrementalDisplayable:Ase,Line:Jt,LinearGradient:ap,OrientedBoundingRect:Ey,Path:ke,Point:Ce,Polygon:Ur,Polyline:Zr,RadialGradient:CV,Rect:ze,Ring:M0,Sector:Wr,Text:Ve,applyTransform:Ii,clipPointsByRect:kV,clipRectByRect:Lse,createIcon:sp,extendPath:Pse,extendShape:Dse,getShapeClass:XA,getTransform:xl,groupTransition:op,initProps:vt,isElementRemoved:sc,lineLineIntersect:PV,linePolygonIntersect:oh,makeImage:AV,makePath:k0,mergePath:Jn,registerShape:zi,removeElement:ts,removeElementWithFadeOut:Sd,resizePath:DV,setTooltipConfig:Zc,subPixelOptimize:bg,subPixelOptimizeLine:Dc,subPixelOptimizeRect:Ise,transformDirection:P0,traverseElements:cs,updateProps:He},Symbol.toStringTag,{value:"Module"}));var I0={};function IV(e,t){for(var r=0;r<Hr.length;r++){var n=Hr[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Cb(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=he(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Hr.length;u++){var c=Hr[u],f=t[c];l[c]=we(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function xr(e,t,r,n){r=r||I0;for(var i=e instanceof Ve,a=!1,o=0;o<_d.length;o++){var s=t[_d[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new Ve,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Cb(r,t),c=t.normal,f=!!c.getShallow("show"),h=ut(c,n&&n.normal,r,!1,!i);h.text=u.normal,i||e.setTextConfig(Oy(c,r,!1));for(var o=0;o<Hr.length;o++){var d=Hr[o],s=t[d];if(s){var p=l.ensureState(d),v=!!we(s.getShallow("show"),f);if(v!==f&&(p.ignore=!v),p.style=ut(s,n&&n[d],r,!0,!i),p.style.text=u[d],!i){var g=e.ensureState(d);g.textConfig=Oy(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),r.enableTextSetter&&(Kc(l).setLabelText=function(y){var m=Cb(r,t,y);IV(l,m)})}else l&&(l.ignore=!0);e.dirty()}function rr(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Hr.length;n++){var i=Hr[n];r[i]=e.getModel([i,t])}return r}function ut(e,t,r,n,i){var a={};return Ose(a,e,r,n,i),t&&W(a,t),a}function Oy(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=we(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function Ose(e,t,r,n,i){r=r||I0;var a=t.ecModel,o=a&&a.option.textStyle,s=Nse(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);qI(l[u]={},c,o,r,n,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var h=t.get("minMargin");h!=null&&(e.margin=h),qI(e,t,o,r,n,i,!0,!1)}function Nse(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||I0).rich;if(r){t=t||{};for(var n=Re(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var XI=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ZI=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],KI=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function qI(e,t,r,n,i,a,o,s){r=!i&&r||I0;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=we(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var h=we(t.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(e.lineWidth=h);var d=we(t.getShallow("textBorderType"),r.textBorderType);d!=null&&(e.lineDash=d);var p=we(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(e.lineDashOffset=p),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var v=0;v<XI.length;v++){var g=XI[v],y=we(t.getShallow(g),r[g]);y!=null&&(e[g]=y)}for(var v=0;v<ZI.length;v++){var g=ZI[v],y=t.getShallow(g);y!=null&&(e[g]=y)}if(e.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(e.verticalAlign=m)}if(!o||!n.disableBox){for(var v=0;v<KI.length;v++){var g=KI[v],y=t.getShallow(g);y!=null&&(e[g]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function ZA(e,t){var r=t&&t.getModel("textStyle");return Ci([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 Kc=Be();function EV(e,t,r,n){if(e){var i=Kc(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function LV(e,t,r,n,i){var a=Kc(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=we(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=Y4(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var h=Cb({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);IV(e,h)}e.percent=0,(a.prevValue==null?vt:He)(e,{percent:1},n,t,null,u)}var zse=["textStyle","color"],O_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],N_=new Ve,Bse=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(zse):null)},e.prototype.getFont=function(){return ZA({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<O_.length;n++)r[O_[n]]=this.getShallow(O_[n]);return N_.useStyle(r),N_.update(),N_.getBoundingRect()},e}(),RV=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Fse=Ol(RV),Vse=function(){function e(){}return e.prototype.getLineStyle=function(t){return Fse(this,t)},e}(),OV=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Gse=Ol(OV),$se=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Gse(this,t,r)},e}(),Xe=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){Te(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(me(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(!Ee.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();NA(Xe);Yae(Xe);Ht(Xe,Vse);Ht(Xe,$se);Ht(Xe,Qae);Ht(Xe,Bse);var Hse=Math.round(Math.random()*10);function qc(e){return[e||"",Hse++].join("_")}function Wse(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=aa(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=aa(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function Use(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,h={};for(D(a,function(m){h[m]=!0});f.length;){var d=f.pop(),p=c[d],v=!!h[d];v&&(s.call(l,d,p.originalDeps.slice()),delete h[d]),D(p.successor,v?y:g)}D(h,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&f.push(m)}function y(m){h[m]=!0,g(m)}};function r(a){var o={},s=[];return D(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),D(f,function(h){Me(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);Me(d.successor,h)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return D(a,function(l){Me(o,l)>=0&&s.push(l)}),s}}function fs(e,t){return Te(Te({},e,!0),t,!0)}const jse={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:". "}}}},Yse={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 Ny="ZH",KA="EN",lc=KA,Cg={},qA={},NV=Ee.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||lc).toUpperCase();return e.indexOf(Ny)>-1?Ny:lc}():lc;function zV(e,t){e=e.toUpperCase(),qA[e]=new Xe(t),Cg[e]=t}function Xse(e){if(q(e)){var t=Cg[e.toUpperCase()]||{};return e===Ny||e===KA?me(t):Te(me(t),me(Cg[lc]),!1)}else return Te(me(e),me(Cg[lc]),!1)}function Tb(e){return qA[e]}function Zse(){return qA[lc]}zV(KA,jse);zV(Ny,Yse);var QA=1e3,JA=QA*60,Nh=JA*60,ei=Nh*24,QI=ei*365,sh={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},cv="{yyyy}-{MM}-{dd}",JI={year:"{yyyy}",month:"{yyyy}-{MM}",day:cv,hour:cv+" "+sh.hour,minute:cv+" "+sh.minute,second:cv+" "+sh.second,millisecond:sh.none},z_=["year","month","day","hour","minute","second","millisecond"],BV=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function co(e,t){return e+="","0000".substr(0,t-e.length)+e}function uc(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 Kse(e){return e===uc(e)}function qse(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function E0(e,t,r,n){var i=ya(e),a=i[e2(r)](),o=i[cc(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[L0(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[wd(r)](),f=(c-1)%12+1,h=i[R0(r)](),d=i[O0(r)](),p=i[N0(r)](),v=c>=12?"pm":"am",g=v.toUpperCase(),y=n instanceof Xe?n:Tb(n||NV)||Zse(),m=y.getModel("time"),_=m.get("month"),x=m.get("monthAbbr"),w=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,v+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,co(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,co(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,co(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,co(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,co(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,co(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,co(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,co(p,3)).replace(/{S}/g,p+"")}function Qse(e,t,r,n,i){var a=null;if(q(r))a=r;else if(he(r))a=r(e.value,t,{level:e.level});else{var o=W({},sh);if(e.level>0)for(var s=0;s<z_.length;++s)o[z_[s]]="{primary|"+o[z_[s]]+"}";var l=r?r.inherit===!1?r:pe(r,o):o,u=FV(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=BV.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(j(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return E0(new Date(e.value),a,i,n)}function FV(e,t){var r=ya(e),n=r[cc(t)]()+1,i=r[L0(t)](),a=r[wd(t)](),o=r[R0(t)](),s=r[O0(t)](),l=r[N0(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,d=h&&i===1,p=d&&n===1;return p?"year":d?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function eE(e,t,r){var n=$e(e)?ya(e):e;switch(t=t||FV(e,r),t){case"year":return n[e2(r)]();case"half-year":return n[cc(r)]()>=6?1:0;case"quarter":return Math.floor((n[cc(r)]()+1)/4);case"month":return n[cc(r)]();case"day":return n[L0(r)]();case"half-day":return n[wd(r)]()/24;case"hour":return n[wd(r)]();case"minute":return n[R0(r)]();case"second":return n[O0(r)]();case"millisecond":return n[N0(r)]()}}function e2(e){return e?"getUTCFullYear":"getFullYear"}function cc(e){return e?"getUTCMonth":"getMonth"}function L0(e){return e?"getUTCDate":"getDate"}function wd(e){return e?"getUTCHours":"getHours"}function R0(e){return e?"getUTCMinutes":"getMinutes"}function O0(e){return e?"getUTCSeconds":"getSeconds"}function N0(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Jse(e){return e?"setUTCFullYear":"setFullYear"}function VV(e){return e?"setUTCMonth":"setMonth"}function GV(e){return e?"setUTCDate":"setDate"}function $V(e){return e?"setUTCHours":"setHours"}function HV(e){return e?"setUTCMinutes":"setMinutes"}function WV(e){return e?"setUTCSeconds":"setSeconds"}function UV(e){return e?"setUTCMilliseconds":"setMilliseconds"}function jV(e){if(!F4(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 YV(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 Qc=AA;function Ab(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Ci(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?ya(e):e;if(isNaN(+l)){if(s)return"-"}else return E0(l,n,r)}if(t==="ordinal")return Hw(e)?i(e):$e(e)&&a(e)?e+"":"-";var u=Za(e);return a(u)?jV(u):Hw(e)?i(e):typeof e=="boolean"?e+"":"-"}var tE=["a","b","c","d","e","f","g"],B_=function(e,t){return"{"+e+(t??"")+"}"};function XV(e,t,r){j(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=tE[a];e=e.replace(B_(o),B_(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(B_(tE[l],s),r?tn(u):u)}return e}function ele(e,t,r){return D(t,function(n,i){e=e.replace("{"+i+"}",n)}),e}function tle(e,t){var r=q(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+tn(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+tn(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function zl(e,t){return t=t||"transparent",q(e)?e:ge(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function zy(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Tg=D,ZV=["left","right","top","bottom","width","height"],sl=[["width","left","right"],["height","top","bottom"]];function t2(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),d,p;if(e==="horizontal"){var v=c.width+(h?-h.x+c.x:0);d=a+v,d>n||l.newline?(a=0,d=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=p+r)})}var Sl=t2;be(t2,"vertical");be(t2,"horizontal");function rle(e,t,r){var n=t.width,i=t.height,a=K(e.left,n),o=K(e.top,i),s=K(e.right,n),l=K(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Qc(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function Xt(e,t,r){r=Qc(r||0);var n=t.width,i=t.height,a=K(e.left,n),o=K(e.top,i),s=K(e.right,n),l=K(e.bottom,i),u=K(e.width,n),c=K(e.height,i),f=r[2]+r[0],h=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var p=new Ae(a+r[3],o+r[0],u,c);return p.margin=r,p}function z0(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ae(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Xt(pe({width:u.width,height:u.height},t),r,n),h=o?f.x-u.x:0,d=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=d):(a.x+=h,a.y+=d),a===e&&e.markRedraw(),!0}function nle(e,t){return e[sl[t][0]]!=null||e[sl[t][1]]!=null&&e[sl[t][2]]!=null}function bd(e){var t=e.layoutMode||e.constructor.layoutMode;return ge(t)?t:t?{type:t}:null}function rs(e,t,r){var n=r&&r.ignoreSize;!j(n)&&(n=[n,n]);var i=o(sl[0],0),a=o(sl[1],1);u(sl[0],e,i),u(sl[1],e,a);function o(c,f){var h={},d=0,p={},v=0,g=2;if(Tg(c,function(_){p[_]=e[_]}),Tg(c,function(_){s(t,_)&&(h[_]=p[_]=t[_]),l(h,_)&&d++,l(p,_)&&v++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!d)return p;if(d>=g)return h;for(var y=0;y<c.length;y++){var m=c[y];if(!s(h,m)&&s(e,m)){h[m]=e[m];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){Tg(c,function(d){f[d]=h[d]})}}function Jc(e){return KV({},e)}function KV(e,t){return t&&e&&Tg(ZV,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var ile=Be(),Le=function(e){V(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=qc("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=bd(this),a=i?Jc(r):{},o=n.getTheme();Te(r,o.get(this.mainType)),Te(r,this.getDefaultOption()),i&&rs(r,a,i)},t.prototype.mergeOption=function(r,n){Te(this.option,r,!0);var i=bd(this);i&&rs(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Wae(r))return r.defaultOption;var n=ile(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Te(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return rp(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Xe);Z4(Le,Xe);S0(Le);Wse(Le);Use(Le,ale);function ale(e){var t=[];return D(Le.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Y(t,function(r){return aa(r).main}),e!=="dataset"&&Me(t,"dataset")<=0&&t.unshift("dataset"),t}var qV="";typeof navigator<"u"&&(qV=navigator.platform||"");var pu="rgba(0, 0, 0, 0.2)";const ole={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:pu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:pu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:pu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:pu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:pu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:pu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qV.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 QV=ae(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ci="original",Ir="arrayRows",fi="objectRows",xa="keyedColumns",jo="typedArray",JV="unknown",ha="column",ef="row",pr={Must:1,Might:2,Not:3},eG=Be();function sle(e){eG(e).datasetMap=ae()}function tG(e,t,r){var n={},i=n2(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=eG(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var y=ge(v)?v:e[g]={name:v};y.type==="ordinal"&&c==null&&(c=g,f=p(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});D(e,function(v,g){var y=v.name,m=p(v);if(c==null){var _=h.valueWayDim;d(n[y],_,m),d(o,_,m),h.valueWayDim+=m}else if(c===g)d(n[y],0,m),d(a,0,m);else{var _=h.categoryWayDim;d(n[y],_,m),d(o,_,m),h.categoryWayDim+=m}});function d(v,g,y){for(var m=0;m<y;m++)v.push(g+m)}function p(v){var g=v.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function r2(e,t,r){var n={},i=n2(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===fi||a===xa)&&D(o,function(c,f){(ge(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},h=[],d=0,p=Math.min(5,r);d<p;d++){var v=nG(t.data,a,t.seriesLayoutBy,o,t.startIndex,d);h.push(v);var g=v===pr.Not;if(g&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v||!g&&h[c.n]===pr.Not)&&(c.n=d),y(c)&&h[c.n]!==pr.Not)return c;g||(v===pr.Might&&f.v==null&&d!==s&&(f.v=d),(f.n==null||f.n===f.v)&&(f.n=d))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function n2(e){var t=e.get("data",!0);if(!t)return rp(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Vt).models[0]}function lle(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:rp(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Vt).models}function rG(e,t){return nG(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function nG(e,t,r,n,i,a){var o,s=5;if(dn(e))return pr.Not;var l,u;if(n){var c=n[a];ge(c)?(l=c.name,u=c.type):q(c)&&(l=c)}if(u!=null)return u==="ordinal"?pr.Must:pr.Not;if(t===Ir){var f=e;if(r===ef){for(var h=f[a],d=0;d<(h||[]).length&&d<s;d++)if((o=x(h[i+d]))!=null)return o}else for(var d=0;d<f.length&&d<s;d++){var p=f[i+d];if(p&&(o=x(p[a]))!=null)return o}}else if(t===fi){var v=e;if(!l)return pr.Not;for(var d=0;d<v.length&&d<s;d++){var g=v[d];if(g&&(o=x(g[l]))!=null)return o}}else if(t===xa){var y=e;if(!l)return pr.Not;var h=y[l];if(!h||dn(h))return pr.Not;for(var d=0;d<h.length&&d<s;d++)if((o=x(h[d]))!=null)return o}else if(t===ci)for(var m=e,d=0;d<m.length&&d<s;d++){var g=m[d],_=jc(g);if(!j(_))return pr.Not;if((o=x(_[a]))!=null)return o}function x(w){var S=q(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?pr.Might:pr.Not;if(S&&w!=="-")return pr.Must}return pr.Not}var Mb=ae();function ule(e,t){$r(Mb.get(e)==null&&t),Mb.set(e,t)}function cle(e,t,r){var n=Mb.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var rE=Be(),fle=Be(),i2=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=et(this.get("color",!0)),a=this.get("colorLayer",!0);return iG(this,rE,i,a,t,r,n)},e.prototype.clearColorPalette=function(){dle(this,rE)},e}();function Db(e,t,r,n){var i=et(e.get(["aria","decal","decals"]));return iG(e,fle,i,null,t,r,n)}function hle(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 iG(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:hle(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function dle(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var fv,Df,nE,iE="\0_ec_inner",ple=1,a2=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Xe(a),this._locale=new Xe(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=sE(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,sE(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?nE(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&D(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ae(),u=n&&n.replaceMergeMainTypeMap;sle(this),D(r,function(f,h){f!=null&&(Le.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?me(f):Te(i[h],f,!0))}),u&&u.each(function(f,h){Le.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Le.topologicalTravel(s,Le.getAllClassMainTypes(),c,this);function c(f){var h=cle(this,f,et(r[f])),d=a.get(f),p=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=W4(d,h,p);Oae(v,f,Le),i[f]=null,a.set(f,null),o.set(f,0);var g=[],y=[],m=0,_;D(v,function(x,w){var S=x.existing,b=x.newOption;if(!b)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=f==="series",T=Le.getClass(f,x.keyInfo.subType,!C);if(!T)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===T)S.name=x.keyInfo.name,S.mergeOption(b,this),S.optionUpdated(b,!1);else{var A=W({componentIndex:w},x.keyInfo);S=new T(b,this,this,A),W(S,A),x.brandNew&&(S.__requireNewView=!0),S.init(b,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),y.push(S),m++):(g.push(void 0),y.push(void 0))},this),i[f]=g,a.set(f,y),o.set(f,m),f==="series"&&fv(this)}this._seriesIndices||fv(this)},t.prototype.getOption=function(){var r=me(this.option);return D(r,function(n,i){if(Le.hasClass(i)){for(var a=et(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!md(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[iE],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],D(et(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=aE("id",a,s):o!=null?l=aE("name",o,s):l=qe(s,function(u){return!!u}),oE(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):qe(this._componentsMap.get(i),function(u){return!!u});return l(oE(o,r));function s(u){var c=i+"Index",f=i+"Id",h=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:i,index:u[c],id:u[f],name:u[h]}:null}function l(u){return r.filter?qe(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(he(r)){var o=n,s=r;a.each(function(f,h){for(var d=0;f&&d<f.length;d++){var p=f[d];p&&s.call(o,h,p,p.componentIndex)}})}else for(var l=q(r)?a.get(r):ge(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Yt(r,null);return qe(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return qe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return qe(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Df(this),D(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){Df(this),D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return D(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return Df(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Df(this);var i=[];D(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ae(i)},t.prototype.restoreData=function(r){fv(this);var n=this._componentsMap,i=[];n.each(function(a,o){Le.hasClass(o)&&i.push(o)}),Le.topologicalTravel(i,Le.getAllClassMainTypes(),function(a){D(n.get(a),function(o){o&&(a!=="series"||!vle(o,r))&&o.restoreData()})})},t.internalField=function(){fv=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ae(n)},Df=function(r){},nE=function(r,n){r.option={},r.option[iE]=ple,r._componentsMap=ae({series:[]}),r._componentsCount=ae();var i=n.aria;ge(i)&&i.enabled==null&&(i.enabled=!0),gle(n,r._theme.option),Te(n,ole,!1),r._mergeOption(n,null)}}(),t}(Xe);function vle(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function gle(e,t){var r=e.color&&!e.colorLayer;D(t,function(n,i){i==="colorLayer"&&r||Le.hasClass(i)||(typeof n=="object"?e[i]=e[i]?Te(e[i],n,!1):me(n):e[i]==null&&(e[i]=n))})}function aE(e,t,r){if(j(t)){var n=ae();return D(t,function(a){if(a!=null){var o=Yt(a,null);o!=null&&n.set(a,!0)}}),qe(r,function(a){return a&&n.get(a[e])})}else{var i=Yt(t,null);return qe(r,function(a){return a&&i!=null&&a[e]===i})}}function oE(e,t){return t.hasOwnProperty("subType")?qe(e,function(r){return r&&r.subType===t.subType}):e}function sE(e){var t=ae();return e&&D(et(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Ht(a2,i2);var yle=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],aG=function(){function e(t){D(yle,function(r){this[r]=ee(t[r],t)},this)}return e}(),F_={},lp=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];D(F_,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){D(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){F_[t]=r},e.get=function(t){return F_[t]},e}(),mle=/^(min|max)?(.+)$/,_le=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(D(et(t.series),function(o){o&&o.data&&dn(o.data)&&xy(o.data)}),D(et(t.dataset),function(o){o&&o.source&&dn(o.source)&&xy(o.source)})),t=me(t);var i=this._optionBackup,a=xle(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],me(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=me(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)Sle(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!ble(o,this._currentMediaIndices)&&(s=Y(o,function(c){return me(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e}();function xle(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&j(u)&&D(u,function(d){d&&d.option&&(d.query?n.push(d):i||(i=d))}),h(a),D(l,function(d){return h(d)}),D(n,function(d){return h(d.option)});function h(d){D(t,function(p){p(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Sle(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return D(e,function(a,o){var s=o.match(mle);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();wle(n[u],a,l)||(i=!1)}}),i}function wle(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function ble(e,t){return e.join(",")===t.join(",")}var di=D,Cd=ge,lE=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function V_(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=lE.length;r<n;r++){var i=lE[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?Te(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?Te(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Mr(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,pe(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function lh(e){Mr(e,"itemStyle"),Mr(e,"lineStyle"),Mr(e,"areaStyle"),Mr(e,"label"),Mr(e,"labelLine"),Mr(e,"upperLabel"),Mr(e,"edgeLabel")}function Bt(e,t){var r=Cd(e)&&e[t],n=Cd(r)&&r.textStyle;if(n)for(var i=0,a=pI.length;i<a;i++){var o=pI[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Wn(e){e&&(lh(e),Bt(e,"label"),e.emphasis&&Bt(e.emphasis,"label"))}function Cle(e){if(Cd(e)){V_(e),lh(e),Bt(e,"label"),Bt(e,"upperLabel"),Bt(e,"edgeLabel"),e.emphasis&&(Bt(e.emphasis,"label"),Bt(e.emphasis,"upperLabel"),Bt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(V_(t),Wn(t));var r=e.markLine;r&&(V_(r),Wn(r));var n=e.markArea;n&&Wn(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!dn(a))for(var o=0;o<a.length;o++)Wn(a[o]);D(e.categories,function(u){lh(u)})}if(i&&!dn(i))for(var o=0;o<i.length;o++)Wn(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Wn(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)j(l[o])?(Wn(l[o][0]),Wn(l[o][1])):Wn(l[o]);e.type==="gauge"?(Bt(e,"axisLabel"),Bt(e,"title"),Bt(e,"detail")):e.type==="treemap"?(Mr(e.breadcrumb,"itemStyle"),D(e.levels,function(u){lh(u)})):e.type==="tree"&&lh(e.leaves)}}function Ma(e){return j(e)?e:e?[e]:[]}function uE(e){return(j(e)?e[0]:e)||{}}function Tle(e,t){di(Ma(e.series),function(n){Cd(n)&&Cle(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),di(r,function(n){di(Ma(e[n]),function(i){i&&(Bt(i,"axisLabel"),Bt(i.axisPointer,"label"))})}),di(Ma(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Bt(i,"axisLabel"),Bt(i&&i.axisPointer,"label")}),di(Ma(e.calendar),function(n){Mr(n,"itemStyle"),Bt(n,"dayLabel"),Bt(n,"monthLabel"),Bt(n,"yearLabel")}),di(Ma(e.radar),function(n){Bt(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)}),di(Ma(e.geo),function(n){Cd(n)&&(Wn(n),di(Ma(n.regions),function(i){Wn(i)}))}),di(Ma(e.timeline),function(n){Wn(n),Mr(n,"label"),Mr(n,"itemStyle"),Mr(n,"controlStyle",!0);var i=n.data;j(i)&&D(i,function(a){ge(a)&&(Mr(a,"label"),Mr(a,"itemStyle"))})}),di(Ma(e.toolbox),function(n){Mr(n,"iconStyle"),di(n.feature,function(i){Mr(i,"iconStyle")})}),Bt(uE(e.axisPointer),"label"),Bt(uE(e.tooltip).axisPointer,"label")}function Ale(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Mle(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function cE(e){e&&D(Dle,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Dle=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],kle=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],G_=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function kf(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<G_.length;r++){var n=G_[r][1],i=G_[r][0];t[n]!=null&&(t[i]=t[n])}}function fE(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function hE(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Ple(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function oG(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&oG(e[r].children,t)}function sG(e,t){Tle(e,t),e.series=et(e.series),D(e.series,function(r){if(ge(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),fE(r.label);var i=r.data;if(i&&!dn(i))for(var a=0;a<i.length;a++)fE(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Ale(r,"pointer.color");o!=null&&Mle(r,"itemStyle.color",o)}else if(n==="bar"){kf(r),kf(r.backgroundStyle),kf(r.emphasis);var i=r.data;if(i&&!dn(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(kf(i[a]),kf(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),hE(r),oG(r.data,hE)}else n==="graph"||n==="sankey"?Ple(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&pe(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),cE(r)}}),e.dataRange&&(e.visualMap=e.dataRange),D(kle,function(r){var n=e[r];n&&(j(n)||(n=[n]),D(n,function(i){cE(i)}))})}function Ile(e){var t=ae();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(Ele)}function Ele(e){D(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var h=o.get(t.stackedDimension,f);if(isNaN(h))return i;var d,p;s?p=o.getRawIndex(f):d=o.get(t.stackedByDimension,f);for(var v=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,d)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=Cae(h,m),v=m;break}}}return n[0]=h,n[1]=v,n})})}var B0=function(){function e(t){this.data=t.data||(t.sourceFormat===xa?{}:[]),this.sourceFormat=t.sourceFormat||JV,this.seriesLayoutBy=t.seriesLayoutBy||ha,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&rG(this,n)===pr.Must&&(i.type="ordinal")}}return e}();function o2(e){return e instanceof B0}function kb(e,t,r){r=r||lG(e);var n=t.seriesLayoutBy,i=Rle(e,r,n,t.sourceHeader,t.dimensions),a=new B0({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:me(t)});return a}function s2(e){return new B0({data:e,sourceFormat:dn(e)?jo:ci})}function Lle(e){return new B0({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:me(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function lG(e){var t=JV;if(dn(e))t=jo;else if(j(e)){e.length===0&&(t=Ir);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(j(i)||dn(i)){t=Ir;break}else if(ge(i)){t=fi;break}}}}else if(ge(e)){for(var a in e)if(ne(e,a)&&Pr(e[a])){t=xa;break}}return t}function Rle(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:dE(i),startIndex:o,dimensionsDetectedCount:a};if(t===Ir){var s=e;n==="auto"||n==null?pE(function(u){u!=null&&u!=="-"&&(q(u)?o==null&&(o=1):o=0)},r,s,10):o=$e(n)?n:n?1:0,!i&&o===1&&(i=[],pE(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===ef?s.length:s[0]?s[0].length:null}else if(t===fi)i||(i=Ole(e));else if(t===xa)i||(i=[],D(e,function(u,c){i.push(c)}));else if(t===ci){var l=jc(e[0]);a=j(l)&&l.length||1}return{startIndex:o,dimensionsDefine:dE(i),dimensionsDetectedCount:a}}function Ole(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Re(r)}function dE(e){if(e){var t=ae();return Y(e,function(r,n){r=ge(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function pE(e,t,r,n){if(t===ef)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function uG(e){var t=e.sourceFormat;return t===fi||t===xa}var Ds,ks,Ps,vE,gE,cG=function(){function e(t,r){var n=o2(t)?t:s2(t);this._source=n;var i=this._data=n.data;n.sourceFormat===jo&&(this._offset=0,this._dimSize=r,this._data=i),gE(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;gE=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,d=vE[l2(u,c)];if(W(o,d),u===jo)o.getItem=r,o.count=i,o.fillStorage=n;else{var p=fG(u,c);o.getItem=ee(p,null,s,f,h);var v=hG(u,c);o.count=ee(v,null,s,f,h)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,h=0;h<f;h++){for(var d=u[h],p=d[0]==null?1/0:d[0],v=d[1]==null?-1/0:d[1],g=s-o,y=l[h],m=0;m<g;m++){var _=c[m*f+h];y[o+m]=_,_<p&&(p=_),_>v&&(v=_)}d[0]=p,d[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};vE=(t={},t[Ir+"_"+ha]={pure:!0,appendData:a},t[Ir+"_"+ef]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[fi]={pure:!0,appendData:a},t[xa]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[ci]={appendData:a},t[jo]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),yE=function(e,t,r,n){return e[n]},Nle=(Ds={},Ds[Ir+"_"+ha]=function(e,t,r,n){return e[n+t]},Ds[Ir+"_"+ef]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Ds[fi]=yE,Ds[xa]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},Ds[ci]=yE,Ds);function fG(e,t){var r=Nle[l2(e,t)];return r}var mE=function(e,t,r){return e.length},zle=(ks={},ks[Ir+"_"+ha]=function(e,t,r){return Math.max(0,e.length-t)},ks[Ir+"_"+ef]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},ks[fi]=mE,ks[xa]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},ks[ci]=mE,ks);function hG(e,t){var r=zle[l2(e,t)];return r}var $_=function(e,t,r){return e[t]},Ble=(Ps={},Ps[Ir]=$_,Ps[fi]=function(e,t,r){return e[r]},Ps[xa]=$_,Ps[ci]=function(e,t,r){var n=jc(e);return n instanceof Array?n[t]:n},Ps[jo]=$_,Ps);function dG(e){var t=Ble[e];return t}function l2(e,t){return e===Ir?e+"_"+t:e}function kc(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return dG(a)(n,o,s)}else{var l=n;return a===ci&&(l=jc(n)),l}}}}var Fle=/\{@(.+?)\}/g,F0=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",d=n.userOutput&&n.userOutput.get();return{componentType:f,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:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&j(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(he(a))return l.status=r,l.dimensionIndex=i,a(l);if(q(a)){var c=XV(a,l);return c.replace(Fle,function(f,h){var d=h.length,p=h;p.charAt(0)==="["&&p.charAt(d-1)==="]"&&(p=+p.slice(1,d-1));var v=kc(s,t,p);if(o&&j(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return kc(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function _E(e){var t,r;return ge(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function zh(e){return new Vle(e)}var Vle=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=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 d=this._dueIndex,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||d<p)){var v=this._progress;if(j(v))for(var g=0;g<v.length;g++)this._doProgress(v[g],d,p,l,u);else this._doProgress(v,d,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;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,i,a){xE.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:xE.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),j(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),xE=function(){var e,t,r,n,i,a={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function Yo(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!$e(e)&&e!=null&&e!=="-"&&(e=+ya(e)),e==null||e===""?NaN:Number(e))}var Gle=ae({number:function(e){return parseFloat(e)},time:function(e){return+ya(e)},trim:function(e){return q(e)?Ci(e):e}});function pG(e){return Gle.get(e)}var vG={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}},$le=function(){function e(t,r){if(!$e(r)){var n="";Ye(n)}this._opFn=vG[t],this._rvalFloat=Za(r)}return e.prototype.evaluate=function(t){return $e(t)?this._opFn(t,this._rvalFloat):this._opFn(Za(t),this._rvalFloat)},e}(),gG=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=$e(t)?t:Za(t),i=$e(r)?r:Za(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=q(t),l=q(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Hle=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Za(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=Za(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Wle(e,t){return e==="eq"||e==="ne"?new Hle(e==="eq",t):ne(vG,e)?new $le(e,t):null}var Ule=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 Yo(t,r)},e}();function jle(e,t){var r=new Ule,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ha&&Ye(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var y=v.name,m={index:g,name:y,displayName:v.displayName};if(s.push(m),y!=null){var _="";ne(l,y)&&Ye(_),l[y]=m}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=fG(i,ha);t.__isBuiltIn&&(r.getRawDataItem=function(v){return f(n,a,s,v)},r.getRawData=ee(Yle,null,e)),r.cloneRawData=ee(Xle,null,e);var h=hG(i,ha);r.count=ee(h,null,n,a,s);var d=dG(i);r.retrieveValue=function(v,g){var y=f(n,a,s,v);return p(y,g)};var p=r.retrieveValueFromItem=function(v,g){if(v!=null){var y=s[g];if(y)return d(v,g,y.name)}};return r.getDimensionInfo=ee(Zle,null,s,l),r.cloneAllDimensionInfo=ee(Kle,null,s),r}function Yle(e){var t=e.sourceFormat;if(!u2(t)){var r="";Ye(r)}return e.data}function Xle(e){var t=e.sourceFormat,r=e.data;if(!u2(t)){var n="";Ye(n)}if(t===Ir){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===fi){for(var i=[],a=0,o=r.length;a<o;a++)i.push(W({},r[a]));return i}}function Zle(e,t,r){if(r!=null){if($e(r)||!isNaN(r)&&!ne(t,r))return e[r];if(ne(t,r))return t[r]}}function Kle(e){return me(e)}var yG=ae();function qle(e){e=me(e);var t=e.type,r="";t||Ye(r);var n=t.split(":");n.length!==2&&Ye(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,yG.set(t,e)}function Qle(e,t,r){var n=et(e),i=n.length,a="";i||Ye(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=Jle(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Jle(e,t,r,n){var i="";t.length||Ye(i),ge(e)||Ye(i);var a=e.type,o=yG.get(a);o||Ye(i);var s=Y(t,function(u){return jle(u,o)}),l=et(o.transform({upstream:s[0],upstreamList:s,config:me(e.config)}));return Y(l,function(u,c){var f="";ge(u)||Ye(f),u.data||Ye(f);var h=lG(u.data);u2(h)||Ye(f);var d,p=t[0];if(p&&c===0&&!u.dimensions){var v=p.startIndex;v&&(u.data=p.data.slice(0,v).concat(u.data)),d={seriesLayoutBy:ha,sourceHeader:v,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:ha,sourceHeader:0,dimensions:u.dimensions};return kb(u.data,d,null)})}function u2(e){return e===Ir||e===fi}var V0="undefined",eue=typeof Uint32Array===V0?Array:Uint32Array,tue=typeof Uint16Array===V0?Array:Uint16Array,mG=typeof Int32Array===V0?Array:Int32Array,SE=typeof Float64Array===V0?Array:Float64Array,_G={float:SE,int:mG,ordinal:Array,number:Array,time:SE},H_;function Pf(e){return e>65535?eue:tue}function vu(){return[1/0,-1/0]}function rue(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function wE(e,t,r,n,i){var a=_G[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var Pb=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ae()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=H_[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],uG(i),this._dimensions=Y(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new _G[r||"float"](this._rawCount),this._rawExtent[a]=vu(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=vu());for(var l=a[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=i[u];wE(n,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var d=h-s,p=0;p<a;p++){var c=i[p],v=H_.arrayRows.call(this,t[d]||f,c.property,d,p);n[p][h]=v;var g=o[p];v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(m){return m.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=vu()),wE(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var h=[],d=t;d<r;d++){h=i.getItem(d,h);for(var p=0;p<s;p++){var v=a[p],g=this._dimValueGetter(h,u[p],d,p);v[d]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var h=this.getRawIndex(c),d=r-a[h],p=Math.abs(d);p<=n&&((p<s||p===s&&d>=0&&l<0)&&(s=p,l=d,u=0),d===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=Pf(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Pf(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,h=0;h<i;h++){var d=void 0,p=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var v=f[c][p];d=r(v,h)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][p];s[g]=h,d=r.apply(null,s)}d&&(o[u++]=p)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Re(t),a=i.length;if(!a)return this;var o=r.count(),s=Pf(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],h=t[c][1],d=r._chunks,p=!1;if(!r._indices){var v=0;if(a===1){for(var g=d[i[0]],y=0;y<n;y++){var m=g[y];(m>=f&&m<=h||isNaN(m))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=d[i[0]],_=d[i[1]],x=t[i[1]][0],w=t[i[1]][1],y=0;y<n;y++){var m=g[y],S=_[y];(m>=f&&m<=h||isNaN(m))&&(S>=x&&S<=w||isNaN(S))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var y=0;y<o;y++){var b=r.getRawIndex(y),m=d[i[0]][b];(m>=f&&m<=h||isNaN(m))&&(l[u++]=b)}else for(var y=0;y<o;y++){for(var C=!0,b=r.getRawIndex(y),T=0;T<a;T++){var A=i[T],m=d[A][b];(m<t[A][0]||m>t[A][1])&&(C=!1)}C&&(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 i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=vu();for(var f=0;f<s;f++){for(var h=t.getRawIndex(f),d=0;d<o;d++)l[d]=i[r[d]][h];l[o]=f;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var c=0;c<p.length;c++){var v=r[c],g=p[c],y=u[v],m=i[v];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),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,h,d=new(Pf(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var p=1;p<o-1;p+=l){for(var v=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+v)/2,m=0,_=v;_<g;_++){var x=this.getRawIndex(_),w=a[x];isNaN(w)||(m+=w)}m/=g-v;var S=p,b=Math.min(p+l,o),C=p-1,T=a[u];c=-1,h=S;for(var A=-1,M=0,_=S;_<b;_++){var x=this.getRawIndex(_),w=a[x];if(isNaN(w)){M++,A<0&&(A=x);continue}f=Math.abs((C-y)*(w-T)-(C-_)*(m-T)),f>c&&(c=f,h=x)}M>0&&M<b-S&&(d[s++]=Math.min(A,h),h=Math.max(A,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=a._rawExtent[t]=vu(),h=new(Pf(this._rawCount))(Math.ceil(c/l)),d=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var v=0;v<l;v++){var g=this.getRawIndex(p+v);s[v]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(p+i(s,y)||0,c-1));u[m]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),h[d++]=m}return a._count=d,a._indices=h,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=vu();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&pa(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?rue(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=me(this._extent),t._rawExtent=me(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Yo(r[a],this._dimensions[a])}H_={arrayRows:t,objectRows:function(r,n,i,a){return Yo(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Yo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),xG=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(hv(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=dn(s)?jo:ci,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=we(f.seriesLayoutBy,h.seriesLayoutBy)||null,p=we(f.sourceHeader,h.sourceHeader),v=we(f.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||v;i=g?[kb(s,{seriesLayoutBy:d,sourceHeader:p,dimensions:v},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[kb(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&CE(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&CE(f),s.push(c),l.push(u._getVersionSign())}),n?o=Qle(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Lle(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];hv(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Pb,s.initData(new cG(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(hv(t)){var r=n2(t);return r?[r.getSourceManager()]:[]}else return Y(lle(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(hv(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function bE(e){var t=e.option.transform;t&&xy(e.option.transform)}function hv(e){return e.mainType==="series"}function CE(e){throw new Error(e)}var SG="line-height:1";function wG(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+tn(n+"")+"px;color:"+tn(r)+";font-weight:"+tn(i+""),valueStyle:"font-size:"+tn(o+"")+"px;color:"+tn(a)+";font-weight:"+tn(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var nue=[0,10,20,30],iue=["",`
214
- `,`
215
-
216
- `,`
217
-
218
-
219
- `];function nr(e,t){return t.type=e,t}function Ib(e){return e.type==="section"}function bG(e){return Ib(e)?aue:oue}function CG(e){if(Ib(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=CG(i);a>=t&&(t=a+ +(n&&(!a||Ib(i)&&!i.noHeader)))}),t}return 0}function aue(e,t,r,n){var i=t.noHeader,a=sue(CG(t)),o=[],s=t.blocks||[];$r(!s||j(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ne(u,l)){var c=new gG(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,y=bG(p)(g?W(W({},e),{valueFormatter:g}):e,p,v>0?a.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):Eb(o.join(""),i?r:a.html);if(i)return f;var h=Ab(t.header,"ordinal",e.useUTC),d=wG(n,e.renderMode).nameStyle;return e.renderMode==="richText"?TG(e,h,d)+a.richText+f:Eb('<div style="'+d+";"+SG+';">'+tn(h)+"</div>"+f,r)}function oue(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(x){return x=j(x)?x:[x],Y(x,function(w,S){return Ab(w,j(d)?d[S]:d,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":Ab(l,"ordinal",u),d=t.valueType,p=o?[]:c(t.value,t.dataIndex),v=!s||!a,g=!s&&a,y=wG(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":TG(e,h,m))+(o?"":cue(e,p,v,g,_)):Eb((s?"":f)+(a?"":lue(h,!s,m))+(o?"":uue(p,v,g,_)),r)}}function TE(e,t,r,n,i,a){if(e){var o=bG(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function sue(e){return{html:nue[e],richText:iue[e]}}function Eb(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+SG+';">'+e+r+"</div>"}function lue(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+tn(e)+"</span>"}function uue(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=j(e)?e:[e],'<span style="'+a+";"+n+'">'+Y(e,function(o){return tn(o)}).join("&nbsp;&nbsp;")+"</span>"}function TG(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function cue(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(j(t)?t.join(" "):t,a)}function AG(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return zl(n)}function MG(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var W_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=V4()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=tle({color:r,type:t,renderMode:n,markerId:i});return q(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};j(r)?D(r,function(a){return W(n,a)}):W(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function DG(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=j(s),u=AG(t,r),c,f,h,d;if(o>1||l&&!o){var p=fue(s,t,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,h=p.blocks,d=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);d=c=kc(i,r,a[0]),f=v.type}else d=c=l?s[0]:s;var g=RA(t),y=g&&t.name||"",m=i.getName(r),_=n?y:m;return nr("section",{header:y,noHeader:n||!g,sortParam:d,blocks:[nr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ci(_),value:c,valueType:f,dataIndex:r})].concat(h||[])})}function fue(e,t,r,n,i){var a=t.getData(),o=pa(e,function(f,h,d){var p=a.getDimensionInfo(d);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(f){c(kc(a,r,f),f)}):D(e,c);function c(f,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(nr("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:f,valueType:d.type})):(s.push(f),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var fo=Be();function dv(e,t){return e.getName(t)||e.getId(t)}var Ag="__universalTransitionEnabled",ft=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=zh({count:due,reset:pue}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=fo(this).sourceManager=new xG(this);a.prepareSource();var o=this.getInitialData(r,i);ME(o,this),this.dataTask.context.data=o,fo(this).dataBeforeProcessed=o,AE(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=bd(this),a=i?Jc(r):{},o=this.subType;Le.hasClass(o)&&(o+="Series"),Te(r,n.getTheme().get(this.subType)),Te(r,this.getDefaultOption()),Ll(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Te(this.option,r,!0),this.fillDataTextStyle(r.data);var i=bd(this);i&&rs(this.option,r,i);var a=fo(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);ME(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,fo(this).dataBeforeProcessed=o,AE(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!dn(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Ll(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Lb(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return fo(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=Lb(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}fo(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ae(r)},t.prototype.getSourceManager=function(){return fo(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return fo(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return DG({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ee.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=i2.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=dv(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Re(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[dv(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ag])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ge(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],h=dv(r,f);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var d=n[l-1],h=dv(r,d);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(d),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Le.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}(Le);Ht(ft,F0);Ht(ft,i2);Z4(ft,Le);function AE(e){var t=e.name;RA(e)||(e.name=hue(e)||t)}function hue(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function due(e){return e.model.getRawData().count()}function pue(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),vue}function vue(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ME(e,t){D(Sy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,be(gue,t))})}function gue(e,t){var r=Lb(e);return r&&r.setOutputEnd((t||this).count()),t}function Lb(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var _t=function(){function e(){this.group=new xe,this.uid=qc("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();NA(_t);S0(_t);function tf(){var e=Be();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var kG=Be(),yue=tf(),at=function(){function e(){this.group=new xe,this.uid=qc("viewChart"),this.renderTask=zh({plan:mue,reset:_ue}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&kE(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&kE(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){cs(this.group,t)},e.markUpdateMethod=function(t,r){kG(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function DE(e,t,r){e&&xd(e)&&(t==="emphasis"?Ka:qa)(e,r)}function kE(e,t,r){var n=Rl(e,t),i=t&&t.highlightKey!=null?qoe(t.highlightKey):null;n!=null?D(et(n),function(a){DE(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){DE(a,r,i)})}NA(at);S0(at);function mue(e){return yue(e.model)}function _ue(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&kG(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),xue[l]}var xue={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)}}},By="\0__throttleOriginMethod",PE="\0__throttleRate",IE="\0__throttleType";function c2(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];n=new Date().getTime(),l=this,u=d;var v=c||t,g=c||r;c=null,s=n-(g?i:a)-v,clearTimeout(o),g?o=setTimeout(f,v):s>=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){c=d},h}function rf(e,t,r,n){var i=e[t];if(i){var a=i[By]||i,o=i[IE],s=i[PE];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=c2(a,r,n==="debounce"),i[By]=a,i[IE]=n,i[PE]=r}return i}}function Td(e,t){var r=e[t];r&&r[By]&&(r.clear&&r.clear(),e[t]=r[By])}var EE=Be(),LE={itemStyle:Ol(OV,!0),lineStyle:Ol(RV,!0)},Sue={lineStyle:"stroke",itemStyle:"fill"};function PG(e,t){var r=e.visualStyleMapper||LE[t];return r||(console.warn("Unknown style type '"+t+"'."),LE.itemStyle)}function IG(e,t){var r=e.visualDrawType||Sue[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var wue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=PG(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=IG(e,n),u=o[l],c=he(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||he(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||he(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,p){var v=e.getDataParams(p),g=W({},o);g[l]=c(v),d.setItemVisual(p,"style",g)}}}},If=new Xe,bue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=PG(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){If.option=l[n];var u=i(If),c=o.ensureUniqueItemVisual(s,"style");W(c,u),If.option.decal&&(o.setItemVisual(s,"decal",If.option.decal),If.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Cue={performRawSeries:!0,overallReset:function(e){var t=ae();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),EE(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=EE(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=IG(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var h=a.ensureUniqueItemVisual(c,"style"),d=n.getName(u)||u+"",p=n.count();h[l]=r.getColorFromPalette(d,o,p)}})}})}},pv=Math.PI;function Tue(e,t){t=t||{},pe(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new xe,n=new ze({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Ve({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new ze({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new D0({shape:{startAngle:-pv/2,endAngle:-pv/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:pv*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:pv*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var EG=function(){function e(t,r,n,i){this._stageTaskMap=ae(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ae();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";$r(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;D(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var d,p=h.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var v=o.getPerformArgs(h,i.block);p.each(function(g){g.perform(v)}),h.perform(v)&&(a=!0)}else f&&f.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ae(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var h=f.uid,d=s.set(h,o&&o.get(h)||zh({plan:Pue,reset:Iue,count:Lue}));d.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||zh({reset:Aue});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ae(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,d="";$r(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,y=l.set(g,s&&s.get(g)||(h=!0,zh({reset:Mue,onDirty:kue})));y.context={model:v,overallProgress:f},y.agent=o,y.__block=f,a._pipe(v,y)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return he(t)&&(t={overallReset:t,seriesType:Rue(t)}),t.uid=qc("stageHandler"),r&&(t.visualType=r),t},e}();function Aue(e){e.overallReset(e.ecModel,e.api,e.payload)}function Mue(e){return e.overallProgress&&Due}function Due(){this.agent.dirty(),this.getDownstream().dirty()}function kue(){this.agent&&this.agent.dirty()}function Pue(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Iue(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=et(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Y(t,function(r,n){return LG(n)}):Eue}var Eue=LG(0);function LG(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function Lue(e){return e.data.count()}function Rue(e){Fy=null;try{e(Ad,RG)}catch{}return Fy}var Ad={},RG={},Fy;OG(Ad,a2);OG(RG,aG);Ad.eachSeriesByType=Ad.eachRawSeriesByType=function(e){Fy=e};Ad.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Fy=e.subType)};function OG(e,t){for(var r in t.prototype)e[r]=Rt}var RE=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Oue={color:RE,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],RE]};var Lr="#B9B8CE",OE="#100C2A",vv=function(){return{axisLine:{lineStyle:{color:Lr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},NE=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],NG={darkMode:!0,color:NE,backgroundColor:OE,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Lr}},textStyle:{color:Lr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Lr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Lr},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Lr}},timeline:{lineStyle:{color:Lr},label:{color:Lr},controlStyle:{color:Lr,borderColor:Lr}},calendar:{itemStyle:{color:OE},dayLabel:{color:Lr},monthLabel:{color:Lr},yearLabel:{color:Lr}},timeAxis:vv(),logAxis:vv(),valueAxis:vv(),categoryAxis:vv(),line:{symbol:"circle"},graph:{color:NE},gauge:{title:{color:Lr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Lr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};NG.categoryAxis.splitLine.show=!1;var Nue=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(q(t)){var a=aa(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var h=o[f],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var p=u.slice(0,d);p!=="data"&&(r.mainType=p,r[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,h,d,p){return f[d]==null||h[p||d]===f[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Rb=["symbol","symbolSize","symbolRotate","symbolOffset"],zE=Rb.concat(["symbolKeepAspect"]),zue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Rb.length;o++){var s=Rb[o],l=e.get(s);he(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(W({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Re(i);function c(f,h){for(var d=e.getRawValue(h),p=e.getDataParams(h),v=0;v<u.length;v++){var g=u[v];f.setItemVisual(h,g,i[g](d,p))}}return{dataEach:a?c:null}}},Bue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<zE.length;s++){var l=zE[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function f2(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 up(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 zG(e,t,r,n){switch(r){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function BG(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}D([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=W({},i),o.dispatchAction(W(i,{type:n[1],seriesIndex:r(a,i)}))})})}function gu(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),h=Rl(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:j(h)?f.getName(h[0]):f.getName(h),selected:q(l)?l:W({},l)})}})}function Fue(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(gu("map","selectchanged",t,i,n),gu("pie","selectchanged",t,i,n)):n.fromAction==="select"?(gu("map","selected",t,i,n),gu("pie","selected",t,i,n)):n.fromAction==="unselect"&&(gu("map","unselected",t,i,n),gu("pie","unselected",t,i,n))})}function ll(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var Vue=Math.round(Math.random()*9),Gue=typeof Object.defineProperty=="function",$ue=function(){function e(){this._id="__ec_inner_"+Vue++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return Gue?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}(),Hue=ke.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),Wue=ke.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),Uue=ke.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),h=Math.cos(u),d=o*.6,p=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*d,l+s+h*d,r,n-p,r,n),e.bezierCurveTo(r,n-p,r-c+f*d,l+s+h*d,r-c,l+s),e.closePath()}}),jue=ke.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),Yue={line:Jt,rect:ze,roundRect:ze,square:ze,circle:io,diamond:Wue,pin:Uue,arrow:jue,triangle:Hue},Xue={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},Vy={};D(Yue,function(e,t){Vy[t]=new e});var Zue=ke.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=ky(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=Vy[n];i||(n="rect",i=Vy[n]),Xue[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function Kue(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Gt(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=AV(e.slice(8),new Ae(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=k0(e.slice(7),{},new Ae(t,r,n,i),o?"center":"cover"):l=new Zue({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=Kue,a&&l.setColor(a),l}function nf(e){return j(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function jl(e,t){if(e!=null)return j(e)||(e=[e,e]),[K(e[0],t[0])||0,K(we(e[1],e[0]),t[1])||0]}function ul(e){return isFinite(e)}function que(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=ul(n)?n:0,i=ul(i)?i:1,a=ul(a)?a:0,o=ul(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function Que(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=ul(o)?o:.5,s=ul(s)?s:.5,l=l>=0&&ul(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Ob(e,t,r){for(var n=t.type==="radial"?Que(e,t,r):que(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function Jue(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 gv(e){return parseInt(e,10)}function Xu(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||gv(s[n])||gv(e.style[n]))-(gv(s[a])||0)-(gv(s[o])||0)|0}function ece(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:$e(e)?[e]:j(e)?e:null}function h2(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&ece(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Y(r,function(a){return a/i}),n/=i)}return[r,n]}var tce=new ma(!0);function Gy(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function BE(e){return typeof e=="string"&&e!=="none"}function $y(e){var t=e.fill;return t!=null&&t!=="none"}function FE(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 VE(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 Nb(e,t,r){var n=zA(t.image,t.__image,r);if(w0(n)){var i=e.createagent(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*dg),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function rce(e,t,r,n){var i,a=Gy(r),o=$y(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||tce,f=t.__dirty;if(!n){var h=r.fill,d=r.stroke,p=o&&!!h.colorStops,v=a&&!!d.colorStops,g=o&&!!h.image,y=a&&!!d.image,m=void 0,_=void 0,x=void 0,w=void 0,S=void 0;(p||v)&&(S=t.getBoundingRect()),p&&(m=f?Ob(e,h,S):t.__canvasFillGradient,t.__canvasFillGradient=m),v&&(_=f?Ob(e,d,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(x=f||!t.__canvasFillagent?Nb(e,h,t):t.__canvasFillagent,t.__canvasFillagent=x),y&&(w=f||!t.__canvasStrokeagent?Nb(e,d,t):t.__canvasStrokeagent,t.__canvasStrokeagent=x),p?e.fillStyle=m:g&&(x?e.fillStyle=x:o=!1),v?e.strokeStyle=_:y&&(w?e.strokeStyle=w:a=!1)}var b=t.getGlobalScale();c.setScale(b[0],b[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&r.lineDash&&(i=h2(t),C=i[0],T=i[1]);var A=!0;(u||f&ku)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=T),n||(r.strokeFirst?(a&&VE(e,r),o&&FE(e,r)):(o&&FE(e,r),a&&VE(e,r))),C&&e.setLineDash([])}function nce(e,t,r){var n=t.__image=zA(r.image,t.__image,t,t.onload);if(!(!n||!w0(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,h=s-c;e.drawImage(n,u,c,f,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function ice(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Qo,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=h2(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Gy(r)&&e.strokeText(i,r.x,r.y),$y(r)&&e.fillText(i,r.x,r.y)):($y(r)&&e.fillText(i,r.x,r.y),Gy(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var GE=["shadowBlur","shadowOffsetX","shadowOffsetY"],$E=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function FG(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){an(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?yl.opacity:o}(n||t.blend!==r.blend)&&(a||(an(e,i),a=!0),e.globalCompositeOperation=t.blend||yl.blend);for(var s=0;s<GE.length;s++){var l=GE[s];(n||t[l]!==r[l])&&(a||(an(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(an(e,i),a=!0),e.shadowColor=t.shadowColor||yl.shadowColor),a}function HE(e,t,r,n,i){var a=Md(t,i.inHover),o=n?null:r&&Md(r,i.inHover)||{};if(a===o)return!1;var s=FG(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(an(e,i),s=!0),BE(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(an(e,i),s=!0),BE(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(an(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(an(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<$E.length;c++){var f=$E[c],h=f[0];(n||a[h]!==o[h])&&(s||(an(e,i),s=!0),e[h]=a[h]||f[1])}return s}function ace(e,t,r,n,i){return FG(e,Md(t,i.inHover),r&&Md(r,i.inHover),n,i)}function VG(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 oce(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),VG(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function sce(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 WE=1,UE=2,jE=3,YE=4;function lce(e){var t=$y(e),r=Gy(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 an(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Md(e,t){return t&&e.__hoverStyle||e.style}function GG(e,t){cl(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function cl(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~xn,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||Jue(a,o))&&(o&&o.length&&(an(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(an(e,r),e.save(),oce(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof ke&&t.autoBatch&&lce(t.style);s||sce(i,u.transform)?(an(e,r),VG(e,t)):c||an(e,r);var f=Md(t,r.inHover);t instanceof ke?(r.lastDrawType!==WE&&(l=!0,r.lastDrawType=WE),HE(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),rce(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof Mc?(r.lastDrawType!==jE&&(l=!0,r.lastDrawType=jE),HE(e,t,u,l,r),ice(e,t,f)):t instanceof cr?(r.lastDrawType!==UE&&(l=!0,r.lastDrawType=UE),ace(e,t,u,l,r),nce(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==YE&&(l=!0,r.lastDrawType=YE),uce(e,t,r)),c&&n&&an(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function uce(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cl(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cl(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var U_=new $ue,XE=new ep(100),ZE=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Pc(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&U_.delete(e);var a=U_.get(e);if(a)return a;var o=pe(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,U_.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,h=0;h<ZE.length;++h){var d=o[ZE[h]];if(d!=null&&!j(d)&&!q(d)&&!$e(d)&&typeof d!="boolean"){f=!1;break}c.push(d)}var p;if(f){p=c.join(",")+(i?"-svg":"");var v=XE.get(p);v&&(i?u.svgElement=v:u.image=v)}var g=HG(o.dashArrayX),y=cce(o.dashArrayY),m=$G(o.symbol),_=fce(g),x=WG(y),w=!i&&Jo.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=T(),C;w&&(w.width=b.width*r,w.height=b.height*r,C=w.getContext("2d")),A(),f&&XE.put(p,w||S),u.image=w,u.svgElement=S,u.svgWidth=b.width,u.svgHeight=b.height;function T(){for(var M=1,k=0,P=_.length;k<P;++k)M=hI(M,_[k]);for(var L=1,k=0,P=m.length;k<P;++k)L=hI(L,m[k].length);M*=L;var E=x*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function A(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var M=0,k=0;k<y.length;++k)M+=y[k];if(M<=0)return;for(var P=-x,L=0,E=0,R=0;P<b.height;){if(L%2===0){for(var z=E/2%m.length,O=0,B=0,I=0;O<b.width*2;){for(var G=0,k=0;k<g[R].length;++k)G+=g[R][k];if(G<=0)break;if(B%2===0){var U=(1-o.symbolSize)*.5,N=O+g[R][B]*U,Z=P+y[L]*U,oe=g[R][B]*o.symbolSize,te=y[L]*o.symbolSize,fe=I/2%m[z].length;ie(N,Z,oe,te,m[z][fe])}O+=g[R][B],++I,++B,B===g[R].length&&(B=0)}++R,R===g.length&&(R=0)}P+=y[L],++E,++L,L===y.length&&(L=0)}function ie(le,ue,re,ce,_e){var ve=i?1:r,Oe=Gt(_e,le*ve,ue*ve,re*ve,ce*ve,o.color,o.symbolKeepAspect);if(i){var Je=n.painter.renderOneToVNode(Oe);Je&&S.children.push(Je)}else GG(C,Oe)}}}}function $G(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 $G([e]);for(var n=[],r=0;r<e.length;++r)q(e[r])?n.push([e[r]]):n.push(e[r]);return n}function HG(e){if(!e||e.length===0)return[[0,0]];if($e(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!$e(e[n])){r=!1;break}if(r)return HG([e]);for(var i=[],n=0;n<e.length;++n)if($e(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Y(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function cce(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if($e(e)){var t=Math.ceil(e);return[t,t]}var r=Y(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function fce(e){return Y(e,function(t){return WG(t)})}function WG(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function hce(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=Pc(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Pc(i,t)}}})}var yi=new ui,UG={};function dce(e,t){UG[e]=t}function pce(e){return UG[e]}var vce=1,gce=800,yce=900,mce=1e3,_ce=2e3,xce=5e3,jG=1e3,Sce=1100,d2=2e3,YG=3e3,wce=4e3,G0=4500,bce=4600,Cce=5e3,Tce=6e3,XG=7e3,Ace={PROCESSOR:{FILTER:mce,SERIES_FILTER:gce,STATISTIC:xce},VISUAL:{LAYOUT:jG,PROGRESSIVE_LAYOUT:Sce,GLOBAL:d2,CHART:YG,POST_CHART_LAYOUT:bce,COMPONENT:wce,BRUSH:Cce,CHART_ITEM:G0,ARIA:Tce,DECAL:XG}},Cr="__flagInMainProcess",Qr="__pendingUpdate",j_="__needsUpdateStatus",KE=/^[a-zA-Z0-9_]+$/,Y_="__connectUpdateStatus",qE=0,Mce=1,Dce=2;function ZG(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return qG(this,e,t)}}function KG(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return qG(this,e,t)}}function qG(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),ui.prototype[t].apply(e,r)}var QG=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ui),JG=QG.prototype;JG.on=KG("on");JG.off=KG("off");var yu,X_,yv,ho,Z_,K_,q_,Ef,Lf,QE,JE,Q_,eL,mv,tL,e$,Bn,rL,Hy=function(e){V(t,e);function t(r,n,i){var a=e.call(this,new Nue)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},q(n)&&(n=t$[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&xae(function(h){var d=Se(h),p=d.dataIndex;if(p!=null){var v=ae();return v.set("series_index",d.seriesIndex),v.set("data_index",p),d.ssrType&&v.set("ssr_type",d.ssrType),v}});var u=a._zr=lI(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:we(i.useDirtyRect,l),useCoarsePointer:we(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=c2(ee(u.flush,u),17),n=me(n),n&&sG(n,!0),a._theme=n,a._locale=Xse(i.locale||NV),a._coordSysMgr=new lp;var c=a._api=tL(a);function f(h,d){return h.__prio-d.__prio}return gg(Uy,f),gg(zb,f),a._scheduler=new EG(a,c,zb,Uy),a._messageCenter=new QG,a._initEvents(),a.resize=ee(a.resize,a),u.animation.on("frame",a._onframe,a),QE(u,a),JE(u,a),xy(a),a}return t.prototype._onframe=function(){if(!this._disposed){rL(this);var r=this._scheduler;if(this[Qr]){var n=this[Qr].silent;this[Cr]=!0;try{yu(this),ho.update.call(this,null,this[Qr].updateParams)}catch(l){throw this[Cr]=!1,this[Qr]=null,l}this._zr.flush(),this[Cr]=!1,this[Qr]=null,Ef.call(this,n),Lf.call(this,n)}else if(r.unfinished){var i=vce,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),K_(this,a),r.performVisualTasks(a),mv(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Cr]){if(this._disposed){this.id;return}var a,o,s;if(ge(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Cr]=!0,!this._model||n){var l=new _le(this._api),u=this._theme,c=this._model=new a2;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Bb);var f={seriesTransition:s,optionChanged:!0};if(i)this[Qr]={silent:a,updateParams:f},this[Cr]=!1,this.getZr().wakeUp();else{try{yu(this),ho.update.call(this,null,f)}catch(h){throw this[Qr]=null,this[Cr]=!1,h}this._ssr||this._zr.flush(),this[Qr]=null,this[Cr]=!1,Ef.call(this,a),Lf.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ee.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ee.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;D(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Vb[i]){var l=s,u=s,c=-s,f=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();D(fc,function(_,x){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(me(r)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),c=o(S.right,c),f=o(S.bottom,f),h.push({dom:w,left:S.left,top:S.top})}}),l*=d,u*=d,c*=d,f*=d;var p=c-l,v=f-u,g=Jo.createCanvas(),y=lI(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:v}),n){var m="";return D(h,function(_){var x=_.left-l,w=_.top-u;m+='<g transform="translate('+x+","+w+')">'+_.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 ze({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),D(h,function(_){var x=new cr({style:{x:_.left*d-l,y:_.top*d-u,image:_.dom}});y.add(x)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Z_(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Z_(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Eh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Eh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?f2(s,l,n):up(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(kce,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&ll(s,function(p){var v=Se(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=W({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),D(Bh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),Fue(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&j4(this.getDom(),v2,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete fc[n.id]},t.prototype.resize=function(r){if(!this[Cr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Qr]&&(a==null&&(a=this[Qr].silent),i=!0,this[Qr]=null),this[Cr]=!0;try{i&&yu(this),ho.update.call(this,{type:"resize",animation:W({duration:0},r&&r.animation)})}catch(o){throw this[Cr]=!1,o}this[Cr]=!1,Ef.call(this,a),Lf.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(ge(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Fb[r]){var i=Fb[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=W({},r);return n.type=Bh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(ge(n)||(n={silent:!!n}),!!Wy[r.type]&&this._model){if(this[Cr]){this._pendingActions.push(r);return}var i=n.silent;q_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ee.browser.weChat&&this._throttledZrFlush(),Ef.call(this,i),Lf.call(this,i)}},t.prototype.updateLabelLayout=function(){yi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){yu=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),X_(f,!0),X_(f,!1),h.plan()},X_=function(f,h){for(var d=f._model,p=f._scheduler,v=h?f._componentsViews:f._chartsViews,g=h?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,_=0;_<v.length;_++)v[_].__alive=!1;h?d.eachComponent(function(S,b){S!=="series"&&x(b)}):d.eachSeries(x);function x(S){var b=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,T=!b&&g[C];if(!T){var A=aa(S.type),M=h?_t.getClass(A.main,A.sub):at.getClass(A.sub);T=new M,T.init(d,m),g[C]=T,v.push(T),y.add(T.group)}S.__viewId=T.__id=C,T.__alive=!0,T.__model=S,T.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&p.prepareView(T,S,d,m)}for(var _=0;_<v.length;){var w=v[_];w.__alive?_++:(!h&&w.renderTask.dispose(),y.remove(w.group),w.dispose(d,m),v.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},yv=function(f,h,d,p,v){var g=f._model;if(g.setUpdatePayload(d),!p){D([].concat(f._componentsViews).concat(f._chartsViews),w);return}var y={};y[p+"Id"]=d[p+"Id"],y[p+"Index"]=d[p+"Index"],y[p+"Name"]=d[p+"Name"];var m={mainType:p,query:y};v&&(m.subType=v);var _=d.excludeSeriesId,x;_!=null&&(x=ae(),D(et(_),function(S){var b=Yt(S,null);b!=null&&x.set(b,!0)})),g&&g.eachComponent(m,function(S){var b=x&&x.get(S.id)!=null;if(!b)if(BI(d))if(S instanceof ft)d.type===ml&&!d.notBlur&&!S.get(["emphasis","disabled"])&&Hoe(S,d,f._api);else{var C=HA(S.mainType,S.componentIndex,d.name,f._api),T=C.focusSelf,A=C.dispatchers;d.type===ml&&T&&!d.notBlur&&_b(S.mainType,S.componentIndex,f._api),A&&D(A,function(M){d.type===ml?Ka(M):qa(M)})}else Sb(d)&&S instanceof ft&&(joe(S,d,f._api),NI(S),Bn(f))},f),g&&g.eachComponent(m,function(S){var b=x&&x.get(S.id)!=null;b||w(f[p==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function w(S){S&&S.__alive&&S[h]&&S[h](S.__model,g,f._api,d)}},ho={prepareAndUpdate:function(f){yu(this),ho.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,h){var d=this._model,p=this._api,v=this._zr,g=this._coordSysMgr,y=this._scheduler;if(d){d.setUpdatePayload(f),y.restoreData(d,f),y.performSeriesTasks(d),g.create(d,p),y.performDataProcessorTasks(d,f),K_(this,d),g.update(d,p),r(d),y.performVisualTasks(d,f),Q_(this,d,p,f,h);var m=d.get("backgroundColor")||"transparent",_=d.get("darkMode");v.setBackgroundColor(m),_!=null&&_!=="auto"&&v.setDarkMode(_),yi.trigger("afterupdate",d,p)}},updateTransform:function(f){var h=this,d=this._model,p=this._api;if(d){d.setUpdatePayload(f);var v=[];d.eachComponent(function(y,m){if(y!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(m,d,p,f);x&&x.update&&v.push(_)}else v.push(_)}});var g=ae();d.eachSeries(function(y){var m=h._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,d,p,f);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0,dirtyMap:g}),mv(this,d,p,f,{},g),yi.trigger("afterupdate",d,p)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),at.markUpdateMethod(f,"updateView"),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),Q_(this,h,this._api,f,{}),yi.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,d=this._model;d&&(d.setUpdatePayload(f),d.eachSeries(function(p){p.getData().clearAllVisual()}),at.markUpdateMethod(f,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,f,{visualType:"visual",setDirty:!0}),d.eachComponent(function(p,v){if(p!=="series"){var g=h.getViewOfComponentModel(v);g&&g.__alive&&g.updateVisual(v,d,h._api,f)}}),d.eachSeries(function(p){var v=h._chartsMap[p.__viewId];v.updateVisual(p,d,h._api,f)}),yi.trigger("afterupdate",d,this._api))},updateLayout:function(f){ho.update.call(this,f)}},Z_=function(f,h,d,p){if(f._disposed){f.id;return}for(var v=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,m=Eh(v,d),_=0;_<g.length;_++){var x=g[_];if(x[h]&&(y=x[h](v,m,p))!=null)return y}},K_=function(f,h){var d=f._chartsMap,p=f._scheduler;h.eachSeries(function(v){p.updateStreamModes(v,d[v.__viewId])})},q_=function(f,h){var d=this,p=this.getModel(),v=f.type,g=f.escapeConnect,y=Wy[v],m=y.actionInfo,_=(m.update||"update").split(":"),x=_.pop(),w=_[0]!=null&&aa(_[0]);this[Cr]=!0;var S=[f],b=!1;f.batch&&(b=!0,S=Y(f.batch,function(L){return L=pe(W({},L),f),L.batch=null,L}));var C=[],T,A=Sb(f),M=BI(f);if(M&&dV(this._api),D(S,function(L){if(T=y.action(L,d._model,d._api),T=T||W({},L),T.type=m.event||T.type,C.push(T),M){var E=OA(f),R=E.queryOptionMap,z=E.mainTypeSpecified,O=z?R.keys()[0]:"series";yv(d,x,L,O),Bn(d)}else A?(yv(d,x,L,"series"),Bn(d)):w&&yv(d,x,L,w.main,w.sub)}),x!=="none"&&!M&&!A&&!w)try{this[Qr]?(yu(this),ho.update.call(this,f),this[Qr]=null):ho[x].call(this,f)}catch(L){throw this[Cr]=!1,L}if(b?T={type:m.event||v,escapeConnect:g,batch:C}:T=C[0],this[Cr]=!1,!h){var k=this._messageCenter;if(k.trigger(T.type,T),A){var P={type:"selectchanged",escapeConnect:g,selected:Yoe(p),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};k.trigger(P.type,P)}}},Ef=function(f){for(var h=this._pendingActions;h.length;){var d=h.shift();q_.call(this,d,f)}},Lf=function(f){!f&&this.trigger("updated")},QE=function(f,h){f.on("rendered",function(d){h.trigger("rendered",d),f.animation.isFinished()&&!h[Qr]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},JE=function(f,h){f.on("mouseover",function(d){var p=d.target,v=ll(p,xd);v&&(Woe(v,d,h._api),Bn(h))}).on("mouseout",function(d){var p=d.target,v=ll(p,xd);v&&(Uoe(v,d,h._api),Bn(h))}).on("click",function(d){var p=d.target,v=ll(p,function(m){return Se(m).dataIndex!=null},!0);if(v){var g=v.selected?"unselect":"select",y=Se(v);h._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function n(f){var h=[],d=[],p=!1;if(f.eachComponent(function(m,_){var x=_.get("zlevel")||0,w=_.get("z")||0,S=_.getZLevelKey();p=p||!!S,(m==="series"?d:h).push({zlevel:x,z:w,idx:_.componentIndex,type:m,key:S})}),p){var v=h.concat(d),g,y;gg(v,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),D(v,function(m){var _=f.getComponent(m.type,m.idx),x=m.zlevel,w=m.key;g!=null&&(x=Math.max(g,x)),w?(x===g&&w!==y&&x++,y=w):y&&(x===g&&x++,y=""),g=x,_.setZLevel(x)})}}Q_=function(f,h,d,p,v){n(h),eL(f,h,d,p,v),D(f._chartsViews,function(g){g.__alive=!1}),mv(f,h,d,p,v),D(f._chartsViews,function(g){g.__alive||g.remove(h,d)})},eL=function(f,h,d,p,v,g){D(g||f._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,h,d,p),s(m,y),c(m,y)})},mv=function(f,h,d,p,v,g){var y=f._scheduler;v=W(v||{},{updatedSeries:h.getSeries()}),yi.trigger("series:beforeupdate",h,d,v);var m=!1;h.eachSeries(function(_){var x=f._chartsMap[_.__viewId];x.__alive=!0;var w=x.renderTask;y.updatePayload(w,p),u(_,x),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),x.group.silent=!!_.get("silent"),o(_,x),NI(_)}),y.unfinished=m||y.unfinished,yi.trigger("series:layoutlabels",h,d,v),yi.trigger("series:transition",h,d,v),h.eachSeries(function(_){var x=f._chartsMap[_.__viewId];s(_,x),c(_,x)}),a(f,h),yi.trigger("series:afterupdate",h,d,v)},Bn=function(f){f[j_]=!0,f.getZr().wakeUp()},rL=function(f){f[j_]&&(f.getZr().storage.traverse(function(h){sc(h)||i(h)}),f[j_]=!1)};function i(f){for(var h=[],d=f.currentStates,p=0;p<d.length;p++){var v=d[p];v==="emphasis"||v==="blur"||v==="select"||h.push(v)}f.selected&&f.states.select&&h.push("select"),f.hoverState===T0&&f.states.emphasis?h.push("emphasis"):f.hoverState===np&&f.states.blur&&h.push("blur"),f.useStates(h)}function a(f,h){var d=f._zr,p=d.storage,v=0;p.traverse(function(g){g.isGroup||v++}),v>h.get("hoverLayerThreshold")&&!Ee.node&&!Ee.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var d=f.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=d)})}function s(f,h){if(!f.preventAutoZ){var d=f.get("z")||0,p=f.get("zlevel")||0;h.eachRendered(function(v){return l(v,d,p,-1/0),!0})}}function l(f,h,d,p){var v=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var m=f.childrenRef(),_=0;_<m.length;_++)p=Math.max(l(m[_],h,d,p),p);else f.z=h,f.zlevel=d,p=Math.max(f.z2,p);if(v&&(v.z=h,v.zlevel=d,isFinite(p)&&(v.z2=p+2)),g){var x=f.textGuideLineConfig;g.z=h,g.zlevel=d,isFinite(p)&&(g.z2=p+(x&&x.showAbove?1:-1))}return p}function u(f,h){h.eachRendered(function(d){if(!sc(d)){var p=d.getTextContent(),v=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(f,h){var d=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),v=d.get("duration"),g=v>0?{duration:v,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(sc(y))return;if(y instanceof ke&&Qoe(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),x=y.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}y.__dirty&&i(y)}})}tL=function(f){return new(function(h){V(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},d.prototype.enterEmphasis=function(p,v){Ka(p,v),Bn(f)},d.prototype.leaveEmphasis=function(p,v){qa(p,v),Bn(f)},d.prototype.enterBlur=function(p){uV(p),Bn(f)},d.prototype.leaveBlur=function(p){$A(p),Bn(f)},d.prototype.enterSelect=function(p){cV(p),Bn(f)},d.prototype.leaveSelect=function(p){fV(p),Bn(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},d.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},d}(aG))(f)},e$=function(f){function h(d,p){for(var v=0;v<d.length;v++){var g=d[v];g[Y_]=p}}D(Bh,function(d,p){f._messageCenter.on(p,function(v){if(Vb[f.group]&&f[Y_]!==qE){if(v&&v.escapeConnect)return;var g=f.makeActionFromEvent(v),y=[];D(fc,function(m){m!==f&&m.group===f.group&&y.push(m)}),h(y,qE),D(y,function(m){m[Y_]!==Mce&&m.dispatchAction(g)}),h(y,Dce)}})})}}(),t}(ui),p2=Hy.prototype;p2.on=ZG("on");p2.off=ZG("off");p2.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var kce=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Wy={},Bh={},zb=[],Bb=[],Uy=[],t$={},Fb={},fc={},Vb={},Pce=+new Date-0,Ice=+new Date-0,v2="_echarts_instance_";function Ece(e,t,r){{var n=r$(e);if(n)return n}var i=new Hy(e,t,r);return i.id="ec_"+Pce++,fc[i.id]=i,j4(e,v2,i.id),e$(i),yi.trigger("afterinit",i),i}function Lce(e){if(j(e)){var t=e;e=null,D(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+Ice++,D(t,function(r){r.group=e})}return Vb[e]=!0,e}function Rce(e){q(e)?e=fc[e]:e instanceof Hy||(e=r$(e)),e instanceof Hy&&!e.isDisposed()&&e.dispose()}function r$(e){return fc[Vae(e,v2)]}function n$(e,t){t$[e]=t}function i$(e){Me(Bb,e)<0&&Bb.push(e)}function a$(e,t){y2(zb,e,t,_ce)}function Oce(e){g2("afterinit",e)}function Nce(e){g2("afterupdate",e)}function g2(e,t){yi.on(e,t)}function Sa(e,t,r){he(t)&&(r=t,t="");var n=ge(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Bh[t]&&($r(KE.test(n)&&KE.test(t)),Wy[n]||(Wy[n]={action:r,actionInfo:e}),Bh[t]=n)}function zce(e,t){lp.register(e,t)}function Bce(e,t){y2(Uy,e,t,jG,"layout")}function Yl(e,t){y2(Uy,e,t,YG,"visual")}var nL=[];function y2(e,t,r,n,i){if((he(t)||ge(t))&&(r=t,t=n),!(Me(nL,r)>=0)){nL.push(r);var a=EG.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function o$(e,t){Fb[e]=t}function Fce(e,t,r){var n=pce("registerMap");n&&n(e,t,r)}var Vce=qle;Yl(d2,wue);Yl(G0,bue);Yl(G0,Cue);Yl(d2,zue);Yl(G0,Bue);Yl(XG,hce);i$(sG);a$(yce,Ile);o$("default",Tue);Sa({type:ml,event:ml,update:ml},Rt);Sa({type:Sg,event:Sg,update:Sg},Rt);Sa({type:Lh,event:Lh,update:Lh},Rt);Sa({type:wg,event:wg,update:wg},Rt);Sa({type:Rh,event:Rh,update:Rh},Rt);n$("light",Oue);n$("dark",NG);var iL=[],Gce={registerPreprocessor:i$,registerProcessor:a$,registerPostInit:Oce,registerPostUpdate:Nce,registerUpdateLifecycle:g2,registerAction:Sa,registerCoordinateSystem:zce,registerLayout:Bce,registerVisual:Yl,registerTransform:Vce,registerLoading:o$,registerMap:Fce,registerImpl:dce,PRIORITY:Ace,ComponentModel:Le,ComponentView:_t,SeriesModel:ft,ChartView:at,registerComponentModel:function(e){Le.registerClass(e)},registerComponentView:function(e){_t.registerClass(e)},registerSeriesModel:function(e){ft.registerClass(e)},registerChartView:function(e){at.registerClass(e)},registerSubTypeDefaulter:function(e,t){Le.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){mae(e,t)}};function De(e){if(j(e)){D(e,function(t){De(t)});return}Me(iL,e)>=0||(iL.push(e),he(e)&&(e={install:e}),e.install(Gce))}function Rf(e){return e==null?0:e.length||1}function aL(e){return e}var Qa=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||aL,this._newKeyGetter=i||aL,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Rf(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=Rf(u),h=Rf(c);if(f>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var d=0;d<f;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Rf(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Rf(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),$ce=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 Hce(e,t){var r={},n=r.encode={},i=ae(),a=[],o=[],s={};D(e.dimensions,function(h){var d=e.getDimensionInfo(h),p=d.coordDim;if(p){var v=d.coordDimIndex;J_(n,p)[v]=h,d.isExtraCoord||(i.set(p,1),Wce(d.type)&&(a[0]=h),J_(s,p)[v]=e.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}QV.each(function(g,y){var m=J_(n,y),_=d.otherDims[y];_!=null&&_!==!1&&(m[_]=d.name)})});var l=[],u={};i.each(function(h,d){var p=n[d];u[d]=p[0],l=l.concat(p)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Y(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new $ce(s,t),r}function J_(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function jy(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Wce(e){return!(e==="ordinal"||e==="time")}var Mg=function(){function e(t){this.otherDims={},t!=null&&W(this,t)}return e}(),Uce=Be(),jce={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},s$=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=c$(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return we(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=uG(this.source),n=!f$(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=jce[u]||"f",c&&(i+=c.uid),i+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:a,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function l$(e){return e instanceof s$}function u$(e){for(var t=ae(),r=0;r<(e||[]).length;r++){var n=e[r],i=ge(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function c$(e){var t=Uce(e);return t.dimNameMap||(t.dimNameMap=u$(e.dimensionsDefine))}function f$(e){return e>30}var Of=ge,po=Y,Yce=typeof Int32Array>"u"?Array:Int32Array,Xce="e\0\0",oL=-1,Zce=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Kce=["_approximateExtent"],sL,_v,Nf,zf,ex,xv,tx,Vr=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;l$(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],h=q(f)?new Mg({name:f}):f instanceof Mg?f:new Mg(f),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(d),a[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),i&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=ae();D(o,function(g){v.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if($e(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Pb&&(a=t),!a){var o=this.dimensions,s=o2(t)||Pr(t)?new cG(t,o.length):t;a=new Pb;var l=po(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Hce(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&tx(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==jo&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===ci;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Mae(f)&&(this.hasItemOption=!0),f){var h=f.name;a[c]==null&&h!=null&&(a[c]=Yt(h,null));var d=f.id;o[c]==null&&d!=null&&(o[c]=Yt(d,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)tx(this,c);sL(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){Of(t)?W(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=Nf(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return _v(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return j(t)?i.getValues(po(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?oL:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){he(t)&&(n=r,r=t,t=[]);var i=n||this,a=po(zf(t),this._getStoreDimIndex,this);this._store.each(a,i?ee(r,i):r)},e.prototype.filterSelf=function(t,r,n){he(t)&&(n=r,r=t,t=[]);var i=n||this,a=po(zf(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ee(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Re(t);return D(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){he(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=po(zf(t),this._getStoreDimIndex,this),s=xv(this);return s._store=this._store.map(o,a?ee(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=po(zf(t),this._getStoreDimIndex,this);this._store.modify(o,a?ee(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=xv(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},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 Xe(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Qa(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return _v(t,n)},function(n){return _v(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Of(t)?W(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),j(a)?a=a.slice():Of(a)&&(a=W({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Of(r)?W(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Of(t)?W(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?W(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;yb(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,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:po(this.dimensions,this._getDimInfo,this),this.hostModel)),ex(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];he(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(TA(arguments)))})},e.internalField=function(){sL=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Yce(o.categories.length);for(var l=0;l<n.length;l++)n[l]=oL;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Nf=function(t,r,n){return Yt(t._getCategory(r,n),null)},_v=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Nf(t,t._idDimIdx,r)),n==null&&(n=Xce+r),n},zf=function(t){return j(t)||(t=t!=null?[t]:[]),t},xv=function(t){var r=new e(t._schema?t._schema:po(t.dimensions,t._getDimInfo,t),t.hostModel);return ex(r,t),r},ex=function(t,r){D(Zce.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,D(Kce,function(n){t[n]=me(r[n])}),t._calculationInfo=W({},r._calculationInfo)},tx=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Nf(t,a,r)),l==null&&o!=null&&(i[r]=l=Nf(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function cp(e,t){o2(e)||(e=s2(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ae(),a=[],o=Qce(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&f$(o),l=n===e.dimensionsDefine,u=l?c$(e):u$(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ae(c),h=new mG(o),d=0;d<h.length;d++)h[d]=-1;function p(T){var A=h[T];if(A<0){var M=n[T],k=ge(M)?M:{name:M},P=new Mg,L=k.name;L!=null&&u.get(L)!=null&&(P.name=P.displayName=L),k.type!=null&&(P.type=k.type),k.displayName!=null&&(P.displayName=k.displayName);var E=a.length;return h[T]=E,P.storeDimIndex=T,a.push(P),P}return a[A]}if(!s)for(var d=0;d<o;d++)p(d);f.each(function(T,A){var M=et(T).slice();if(M.length===1&&!q(M[0])&&M[0]<0){f.set(A,!1);return}var k=f.set(A,[]);D(M,function(P,L){var E=q(P)?u.get(P):P;E!=null&&E<o&&(k[L]=E,g(p(E),A,L))})});var v=0;D(r,function(T){var A,M,k,P;if(q(T))A=T,P={};else{P=T,A=P.name;var L=P.ordinalMeta;P.ordinalMeta=null,P=W({},P),P.ordinalMeta=L,M=P.dimsDef,k=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var E=f.get(A);if(E!==!1){if(E=et(E),!E.length)for(var R=0;R<(M&&M.length||1);R++){for(;v<o&&p(v).coordDim!=null;)v++;v<o&&E.push(v++)}D(E,function(z,O){var B=p(z);if(l&&P.type!=null&&(B.type=P.type),g(pe(B,P),A,O),B.name==null&&M){var I=M[O];!ge(I)&&(I={name:I}),B.name=B.displayName=I.name,B.defaultTooltip=I.defaultTooltip}k&&pe(B.otherDims,k)})}});function g(T,A,M){QV.get(A)!=null?T.otherDims[A]=M:(T.coordDim=A,T.coordDimIndex=M,i.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function w(T){T.name==null&&(T.name=T.coordDim)}if(s)D(a,function(T){w(T)}),a.sort(function(T,A){return T.storeDimIndex-A.storeDimIndex});else for(var S=0;S<o;S++){var b=p(S),C=b.coordDim;C==null&&(b.coordDim=Jce(x,i,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),w(b),b.type==null&&(rG(e,S)===pr.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return qce(a),new s$({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qce(e){for(var t=ae(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Qce(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;ge(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Jce(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 efe=function(){function e(t){this.coordSysDims=[],this.axisMap=ae(),this.categoryAxisMap=ae(),this.coordSysName=t}return e}();function tfe(e){var t=e.get("coordinateSystem"),r=new efe(t),n=rfe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var rfe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Vt).models[0],a=e.getReferringComponents("yAxis",Vt).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),mu(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),mu(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Vt).models[0];t.coordSysDims=["single"],r.set("single",i),mu(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Vt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),mu(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),mu(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),mu(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function mu(e){return e.get("type")==="category"}function nfe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;ife(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,h;if(D(a,function(m,_){q(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(c=m))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,p=c.type,v=0;D(a,function(m){m.coordDim===d&&v++});var g={name:f,coordDim:d,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,p),y.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function ife(e){return!l$(e.schema)}function ns(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function h$(e,t){return ns(e,t)?e.getCalculationInfo("stackResultDimension"):t}function afe(e,t){var r=e.get("coordinateSystem"),n=lp.get(r),i;return t&&t.coordSysDims&&(i=Y(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=jy(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function ofe(e,t,r){var n,i;return r&&D(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=s2(e)):(i=n.getSource(),a=i.sourceFormat===ci);var o=tfe(t),s=afe(t,o),l=r.useEncodeDefaulter,u=he(l)?l:l?be(tG,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=cp(i,c),h=ofe(f.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(f),p=nfe(t,{schema:f,store:d}),v=new Vr(f,t);v.setCalculationInfo(p);var g=h!=null&&sfe(i)?function(y,m,_,x){return x===h?_:this.defaultDimValueGetter(y,m,_,x)}:null;return v.hasItemOption=!1,v.initData(a?i:d,null,g),v}function sfe(e){if(e.sourceFormat===ci){var t=lfe(e.data||[]);return!j(jc(t))}}function lfe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var wa=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();S0(wa);var ufe=0,Gb=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ufe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Y(n,cfe);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!q(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},e}();function cfe(e){return ge(e)&&e.value!=null?e.value:e+""}function $b(e){return e.type==="interval"||e.type==="log"}function ffe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=B4(a/t);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=d$(o),l=i.niceTickExtent=[At(Math.ceil(e[0]/o)*o,s),At(Math.floor(e[1]/o)*o,s)];return hfe(l,e),i}function rx(e){var t=Math.pow(10,LA(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,At(r*t)}function d$(e){return ia(e)+2}function lL(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function hfe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),lL(e,0,t),lL(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function $0(e,t){return e>=t[0]&&e<=t[1]}function H0(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function W0(e,t){return e*(t[1]-t[0])+t[0]}var U0=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Gb({})),j(i)&&(i=new Gb({categories:Y(i,function(a){return ge(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:q(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),$0(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),H0(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(W0(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(wa);wa.registerClass(U0);var Is=At,Ja=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return $0(r,this._extent)},t.prototype.normalize=function(r){return H0(r,this._extent)},t.prototype.scale=function(r){return W0(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=d$(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:Is(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Is(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:Is(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,h=f/r;u<r-1;){var d=Is(l.value+(u+1)*h);d>a[0]&&d<a[1]&&c.push(d),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=ia(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Is(r.value,i,!0);return jV(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=ffe(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Is(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Is(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(wa);wa.registerClass(Ja);var p$=typeof Float32Array<"u",dfe=p$?Float32Array:Array;function oa(e){return j(e)?p$?new Float32Array(e):e:new dfe(e)}var Hb="__ec_stack_";function m2(e){return e.get("stack")||Hb+e.seriesIndex}function _2(e){return e.dim+e.index}function pfe(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var i=r.getBandWidth(),a=0;a<e.count;a++)t.push(pe({bandWidth:i,axisKey:n,stackId:Hb+a},e));for(var o=y$(t),s=[],a=0;a<e.count;a++){var l=o[n][Hb+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function v$(e,t){var r=[];return t.eachSeriesByType(e,function(n){x$(n)&&r.push(n)}),r}function vfe(e){var t={};D(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,d=f.getDimensionIndex(f.mapDimension(c.dim)),p=f.getStore(),v=0,g=p.count();v<g;++v){var y=p.get(d,v);t[h]?t[h].push(y):t[h]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function g$(e){var t=vfe(e),r=[];return D(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var p=K(n.get("barWidth"),s),v=K(n.get("barMaxWidth"),s),g=K(n.get("barMinWidth")||(S$(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:_2(a),stackId:m2(n)})}),y$(r)}function y$(e){var t={};D(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var h=n.barMinWidth;h&&(l[u].minWidth=h);var d=n.barGap;d!=null&&(s.gap=d);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Re(a).length;s=Math.max(35-l*4,15)+"%"}var u=K(s,o),c=K(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,d=(f-u)/(h+(h-1)*c);d=Math.max(d,0),D(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),_&&(x=Math.max(x,_)),y.width=x,f-=x+c*x,h--}else{var x=d;m&&m<x&&(x=Math.min(m,f)),_&&_>x&&(x=_),x!==d&&(y.width=x,f-=x+c*x,h--)}}),d=(f-u)/(h+(h-1)*c),d=Math.max(d,0);var p=0,v;D(a,function(y,m){y.width||(y.width=d),v=y,p+=y.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;D(a,function(y,m){r[i][m]=r[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),r}function gfe(e,t,r){if(e&&t){var n=e[_2(t)];return n!=null&&r!=null?n[m2(r)]:n}}function m$(e,t){var r=v$(e,t),n=g$(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=m2(i),u=n[_2(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function _$(e){return{seriesType:e,plan:tf(),reset:function(t){if(x$(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=ns(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),d=yfe(i,a),p=S$(t),v=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,x){for(var w=_.count,S=p&&oa(w*3),b=p&&l&&oa(w*3),C=p&&oa(w),T=n.master.getRect(),A=h?T.width:T.height,M,k=x.getStore(),P=0;(M=_.next())!=null;){var L=k.get(f?g:o,M),E=k.get(s,M),R=d,z=void 0;f&&(z=+L-k.get(o,M));var O=void 0,B=void 0,I=void 0,G=void 0;if(h){var U=n.dataToPoint([L,E]);if(f){var N=n.dataToPoint([z,E]);R=N[0]}O=R,B=U[1]+m,I=U[0]-R,G=y,Math.abs(I)<v&&(I=(I<0?-1:1)*v)}else{var U=n.dataToPoint([E,L]);if(f){var N=n.dataToPoint([E,z]);R=N[1]}O=U[0]+m,B=R,I=y,G=U[1]-R,Math.abs(G)<v&&(G=(G<=0?-1:1)*v)}p?(S[P]=O,S[P+1]=B,S[P+2]=h?I:G,b&&(b[P]=h?T.x:O,b[P+1]=h?B:T.y,b[P+2]=A),C[M]=M):x.setItemLayout(M,{x:O,y:B,width:I,height:G}),P+=3}p&&x.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:b,valueAxisHorizontal:h})}}}}}}function x$(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function S$(e){return e.pipelineContext&&e.pipelineContext.large}function yfe(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 mfe=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},x2=function(e){V(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 E0(r.value,JI[qse(uc(this._minLevelUnit))]||JI.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Qse(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=Tfe(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=ei,n[1]+=ei),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-ei}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Sv.length,l=Math.min(mfe(Sv,this._approxInterval,0,s),s-1);this._interval=Sv[l][1],this._minLevelUnit=Sv[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return $e(r)?r:+ya(r)},t.prototype.contain=function(r){return $0(this.parse(r),this._extent)},t.prototype.normalize=function(r){return H0(this.parse(r),this._extent)},t.prototype.scale=function(r){return W0(r,this._extent)},t.type="time",t}(Ja),Sv=[["second",QA],["minute",JA],["hour",Nh],["quarter-day",Nh*6],["half-day",Nh*12],["day",ei*1.2],["half-week",ei*3.5],["week",ei*7],["month",ei*31],["quarter",ei*95],["half-year",QI/2],["year",QI]];function _fe(e,t,r,n){var i=ya(t),a=ya(r),o=function(p){return eE(i,p,n)===eE(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},h=function(){return f()&&o("second")},d=function(){return h()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return h();case"millisecond":return d()}}function xfe(e,t){return e/=ei,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Sfe(e){var t=30*ei;return e/=t,e>6?6:e>3?3:e>2?2:1}function wfe(e){return e/=Nh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function uL(e,t){return e/=t?JA:QA,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function bfe(e){return B4(e)}function Cfe(e,t,r){var n=new Date(e);switch(uc(t)){case"year":case"month":n[VV(r)](0);case"day":n[GV(r)](1);case"hour":n[$V(r)](0);case"minute":n[HV(r)](0);case"second":n[WV(r)](0),n[UV(r)](0)}return n.getTime()}function Tfe(e,t,r,n){var i=1e4,a=BV,o=0;function s(A,M,k,P,L,E,R){for(var z=new Date(M),O=M,B=z[P]();O<k&&O<=n[1];)R.push({value:O}),B+=A,z[L](B),O=z.getTime();R.push({value:O,notAdd:!0})}function l(A,M,k){var P=[],L=!M.length;if(!_fe(uc(A),n[0],n[1],r)){L&&(M=[{value:Cfe(new Date(n[0]),A,r)},{value:n[1]}]);for(var E=0;E<M.length-1;E++){var R=M[E].value,z=M[E+1].value;if(R!==z){var O=void 0,B=void 0,I=void 0,G=!1;switch(A){case"year":O=Math.max(1,Math.round(t/ei/365)),B=e2(r),I=Jse(r);break;case"half-year":case"quarter":case"month":O=Sfe(t),B=cc(r),I=VV(r);break;case"week":case"half-week":case"day":O=xfe(t),B=L0(r),I=GV(r),G=!0;break;case"half-day":case"quarter-day":case"hour":O=wfe(t),B=wd(r),I=$V(r);break;case"minute":O=uL(t,!0),B=R0(r),I=HV(r);break;case"second":O=uL(t,!1),B=O0(r),I=WV(r);break;case"millisecond":O=bfe(t),B=N0(r),I=UV(r);break}s(O,R,z,B,I,G,P),A==="year"&&k.length>1&&E===0&&k.unshift({value:k[0].value-O})}}for(var E=0;E<P.length;E++)k.push(P[E]);return P}}for(var u=[],c=[],f=0,h=0,d=0;d<a.length&&o++<i;++d){var p=uc(a[d]);if(Kse(a[d])){l(a[d],u[u.length-1]||[],c);var v=a[d+1]?uc(a[d+1]):null;if(p!==v){if(c.length){h=f,c.sort(function(A,M){return A.value-M.value});for(var g=[],y=0;y<c.length;++y){var m=c[y].value;(y===0||c[y-1].value!==m)&&(g.push(c[y]),m>=n[0]&&m<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&h>_/1.5||(u.push(g),f>_||e===a[d]))break}c=[]}}}for(var x=qe(Y(u,function(A){return qe(A,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(A){return A.length>0}),w=[],S=x.length-1,d=0;d<x.length;++d)for(var b=x[d],C=0;C<b.length;++C)w.push({value:b[C].value,level:S-d});w.sort(function(A,M){return A.value-M.value});for(var T=[],d=0;d<w.length;++d)(d===0||w[d].value!==w[d-1].value)&&T.push(w[d]);return T}wa.registerClass(x2);var cL=wa.prototype,Fh=Ja.prototype,Afe=At,Mfe=Math.floor,Dfe=Math.ceil,wv=Math.pow,pi=Math.log,S2=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ja,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Fh.getTicks.call(this,r);return Y(o,function(s){var l=s.value,u=At(wv(this.base,l));return u=l===i[0]&&this._fixMin?bv(u,a[0]):u,u=l===i[1]&&this._fixMax?bv(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=pi(this.base);r=pi(Math.max(0,r))/i,n=pi(Math.max(0,n))/i,Fh.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=cL.getExtent.call(this);n[0]=wv(r,n[0]),n[1]=wv(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=bv(n[0],a[0])),this._fixMax&&(n[1]=bv(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=pi(r[0])/pi(n),r[1]=pi(r[1])/pi(n),cL.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=Aae(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[At(Dfe(n[0]/a)*a),At(Mfe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Fh.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=pi(r)/pi(this.base),$0(r,this._extent)},t.prototype.normalize=function(r){return r=pi(r)/pi(this.base),H0(r,this._extent)},t.prototype.scale=function(r){return r=W0(r,this._extent),wv(this.base,r)},t.type="log",t}(wa),w$=S2.prototype;w$.getMinorTicks=Fh.getMinorTicks;w$.getLabel=Fh.getLabel;function bv(e,t){return Afe(e,ia(t))}wa.registerClass(S2);var kfe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;he(o)?this._modelMinNum=Cv(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Cv(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(he(s)?this._modelMaxNum=Cv(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Cv(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=j(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Oi(u[0],1),Oi(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=dd(s)||dd(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[Ife[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Pfe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Pfe={min:"_determinedMin",max:"_determinedMax"},Ife={min:"_dataMin",max:"_dataMax"};function b$(e,t,r){var n=e.rawExtentInfo;return n||(n=new kfe(e,t,r),e.rawExtentInfo=n,n)}function Cv(e,t){return t==null?null:dd(t)?NaN:e.parse(t)}function C$(e,t){var r=e.type,n=b$(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=v$("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=g$(s),c=Efe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function Efe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=gfe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;D(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,h=c/f-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function Ic(e,t){var r=t,n=C$(e,r),i=n.extent,a=r.get("splitNumber");e instanceof S2&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function j0(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new U0({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new x2({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(wa.getClass(t)||Ja)}}function Lfe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function af(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):q(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):he(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(w2(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function w2(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Rfe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof U0?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=af(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},h=s(f,c),d=o.getTextRect(h),p=Ofe(d,o.get("rotate")||0);l?l.union(p):l=p}return l}}function Ofe(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new Ae(e.x,e.y,a,o);return s}function b2(e){var t=e.get("interval");return t??"auto"}function T$(e){return e.type==="category"&&b2(e.getLabelModel())===0}function Yy(e,t){var r={};return D(e.mapDimensionsAll(t),function(n){r[h$(e,n)]=!0}),Re(r)}function Nfe(e,t,r){t&&D(Yy(t,r),function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}var fp=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),zfe=1e-8;function fL(e,t){return Math.abs(e-t)<zfe}function Zs(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=Ia(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!fL(i[0],s[0])||!fL(i[1],s[1]))&&(n+=Ia(i[0],i[1],s[0],s[1],t,r)),n!==0}var Bfe=[];function nx(e,t){for(var r=0;r<e.length;r++)yr(e[r],e[r],t)}function hL(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(ko(t,t,a),Po(r,r,a))}}function Ffe(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=a*u-l*o;t+=c,r+=(a+l)*c,n+=(o+u)*c,a=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var A$=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}(),dL=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),pL=function(){function e(t){this.type="linestring",this.points=t}return e}(),M$=function(e){V(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return Ffe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?hL(s.exterior,i,a,r):D(s.points,function(l){hL(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ae(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Zs(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(Zs(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new Ae(r,n,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var h=c[f];h.type==="polygon"?(nx(h.exterior,u),D(h.interiors,function(d){nx(d,u)})):D(h.points,function(d){nx(d,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}(A$),Vfe=function(e){V(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=y0(Bfe),o=r;o&&!o.isGeoSVGGraphicRoot;)Fa(a,o.getLocalTransform(),a),o=o.parent;return Uc(a,a),yr(i,i,a),i},t}(A$);function Gfe(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return D(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=D$(s,o,r);break;case"Polygon":ix(s,o,r);break;case"MultiLineString":ix(s,o,r);break;case"MultiPolygon":D(s,function(l,u){return ix(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function ix(e,t,r){for(var n=0;n<e.length;n++)e[n]=D$(e[n],t[n],r)}function D$(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function $fe(e,t){return e=Gfe(e),Y(qe(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new dL(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new dL(l[0],l.slice(1)))});break;case"LineString":a.push(new pL([i.coordinates]));break;case"MultiLineString":a.push(new pL(i.coordinates))}var s=new M$(n[t||"name"],a,n.cp);return s.properties=n,s})}var Dd=Be();function k$(e,t){var r=Y(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 Hfe(e){var t=e.getLabelModel().get("customValues");if(t){var r=af(e);return{labels:k$(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?Ufe(e):Yfe(e)}function Wfe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:k$(e,r)}:e.type==="category"?jfe(e,t):{ticks:Y(e.scale.getTicks(),function(n){return n.value})}}function Ufe(e){var t=e.getLabelModel(),r=P$(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function P$(e,t){var r=I$(e,"labels"),n=b2(t),i=E$(r,n);if(i)return i;var a,o;return he(n)?a=O$(e,n):(o=n==="auto"?Xfe(e):n,a=R$(e,o)),L$(r,n,{labels:a,labelCategoryInterval:o})}function jfe(e,t){var r=I$(e,"ticks"),n=b2(t),i=E$(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),he(n))a=O$(e,n,!0);else if(n==="auto"){var s=P$(e,e.getLabelModel());o=s.labelCategoryInterval,a=Y(s.labels,function(l){return l.tickValue})}else o=n,a=R$(e,o,!0);return L$(r,n,{ticks:a,tickCategoryInterval:o})}function Yfe(e){var t=e.scale.getTicks(),r=af(e);return{labels:Y(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function I$(e,t){return Dd(e)[t]||(Dd(e)[t]=[])}function E$(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function L$(e,t,r){return e.push({key:t,value:r}),r}function Xfe(e){var t=Dd(e).autoInterval;return t??(Dd(e).autoInterval=e.calculateCategoryInterval())}function Zfe(e){var t=Kfe(e),r=af(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,d=0;l<=a[1];l+=s){var p=0,v=0,g=tp(r({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,h=Math.max(h,p,7),d=Math.max(d,v,7)}var y=h/c,m=d/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),x=Dd(e.model),w=e.getExtent(),S=x.lastAutoInterval,b=x.lastTickCount;return S!=null&&b!=null&&Math.abs(S-_)<=1&&Math.abs(b-o)<=1&&S>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=S:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function Kfe(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 R$(e,t,r){var n=af(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=T$(e),h=o.get("showMinLabel")||f,d=o.get("showMaxLabel")||f;h&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);d&&p-l!==a[1]&&v(a[1]);function v(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function O$(e,t,r){var n=e.scale,i=af(e),a=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var vL=[0,1],Bi=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return N4(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),gL(n,i.count())),Ke(t,vL,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),gL(n,i.count()));var a=Ke(t,n,vL,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Wfe(this,r),i=n.ticks,a=Y(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return qfe(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Y(n,function(a){return Y(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return Hfe(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return Zfe(this)},e}();function gL(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function qfe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;D(t,function(d){d.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(d,p){return d=At(d),p=At(p),f?d>p:d<p}}var Bf=Math.PI*2,Es=ma.CMD,Qfe=["top","right","bottom","left"];function Jfe(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function ehe(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-i)%Bf<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var h=n;n=Cn(i),i=Cn(h)}else n=Cn(n),i=Cn(i);n>i&&(i+=Bf);var d=Math.atan2(s,o);if(d<0&&(d+=Bf),d>=n&&d<=i||d+Bf>=n&&d+Bf<=i)return l[0]=c,l[1]=f,u-r;var p=r*Math.cos(n)+e,v=r*Math.sin(n)+t,g=r*Math.cos(i)+e,y=r*Math.sin(i)+t,m=(p-o)*(p-o)+(v-s)*(v-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=v,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Xy(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-t,h=Math.sqrt(c*c+f*f);c/=h,f/=h;var d=l*c+u*f,p=d/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var v=o[0]=e+p*c,g=o[1]=t+p*f;return Math.sqrt((v-i)*(v-i)+(g-a)*(g-a))}function N$(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var _i=[];function the(e,t,r){var n=N$(t.x,t.y,t.width,t.height,e.x,e.y,_i);return r.set(_i[0],_i[1]),n}function rhe(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,h=e.y,d=0;d<c.length;){var p=c[d++];d===1&&(n=c[d],i=c[d+1],a=n,o=i);var v=u;switch(p){case Es.M:a=c[d++],o=c[d++],n=a,i=o;break;case Es.L:v=Xy(n,i,c[d],c[d+1],f,h,_i,!0),n=c[d++],i=c[d++];break;case Es.C:v=m4(n,i,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],f,h,_i),n=c[d++],i=c[d++];break;case Es.Q:v=x4(n,i,c[d++],c[d++],c[d],c[d+1],f,h,_i),n=c[d++],i=c[d++];break;case Es.A:var g=c[d++],y=c[d++],m=c[d++],_=c[d++],x=c[d++],w=c[d++];d+=1;var S=!!(1-c[d++]);s=Math.cos(x)*m+g,l=Math.sin(x)*_+y,d<=1&&(a=s,o=l);var b=(f-g)*_/m+g;v=ehe(g,y,_,x,x+w,S,b,h,_i),n=Math.cos(x+w)*m+g,i=Math.sin(x+w)*_+y;break;case Es.R:a=n=c[d++],o=i=c[d++];var C=c[d++],T=c[d++];v=N$(a,o,C,T,f,h,_i);break;case Es.Z:v=Xy(n,i,a,o,f,h,_i,!0),n=a,i=o;break}v<u&&(u=v,r.set(_i[0],_i[1]))}return u}var Ti=new Ce,lt=new Ce,Lt=new Ce,sa=new Ce,na=new Ce;function yL(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||Qfe,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&Uc([],c),h=t.get("length2")||0;u&&Lt.copy(u);for(var d=0;d<o.length;d++){var p=o[d];Jfe(p,0,s,Ti,sa),Ce.scaleAndAdd(lt,Ti,sa,h),lt.transform(f);var v=e.getBoundingRect(),g=u?u.distance(lt):e instanceof ke?rhe(lt,e.path,Lt):the(lt,v,Lt);g<l&&(l=g,lt.transform(c),Lt.transform(c),Lt.toArray(a[0]),lt.toArray(a[1]),Ti.toArray(a[2]))}z$(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var Zy=[],Br=new Ce;function z$(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ti.fromArray(e[0]),lt.fromArray(e[1]),Lt.fromArray(e[2]),Ce.sub(sa,Ti,lt),Ce.sub(na,Lt,lt);var r=sa.len(),n=na.len();if(!(r<.001||n<.001)){sa.scale(1/r),na.scale(1/n);var i=sa.dot(na),a=Math.cos(t);if(a<i){var o=Xy(lt.x,lt.y,Lt.x,Lt.y,Ti.x,Ti.y,Zy,!1);Br.fromArray(Zy),Br.scaleAndAdd(na,o/Math.tan(Math.PI-t));var s=Lt.x!==lt.x?(Br.x-lt.x)/(Lt.x-lt.x):(Br.y-lt.y)/(Lt.y-lt.y);if(isNaN(s))return;s<0?Ce.copy(Br,lt):s>1&&Ce.copy(Br,Lt),Br.toArray(e[1])}}}}function nhe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Ti.fromArray(e[0]),lt.fromArray(e[1]),Lt.fromArray(e[2]),Ce.sub(sa,lt,Ti),Ce.sub(na,Lt,lt);var n=sa.len(),i=na.len();if(!(n<.001||i<.001)){sa.scale(1/n),na.scale(1/i);var a=sa.dot(t),o=Math.cos(r);if(a<o){var s=Xy(lt.x,lt.y,Lt.x,Lt.y,Ti.x,Ti.y,Zy,!1);Br.fromArray(Zy);var l=Math.PI/2,u=Math.acos(na.dot(t)),c=l+u-r;if(c>=l)Ce.copy(Br,Lt);else{Br.scaleAndAdd(na,s/Math.tan(Math.PI/2-c));var f=Lt.x!==lt.x?(Br.x-lt.x)/(Lt.x-lt.x):(Br.y-lt.y)/(Lt.y-lt.y);if(isNaN(f))return;f<0?Ce.copy(Br,lt):f>1&&Ce.copy(Br,Lt)}Br.toArray(e[1])}}}}function ax(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function ihe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=Do(n[0],n[1]),a=Do(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=vg([],n[1],n[0],o/i),l=vg([],n[1],n[2],o/a),u=vg([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function C2(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<_d.length;l++){var u=_d[l],c=t[u],f=u==="normal";if(c){var h=c.get("show"),d=f?s:we(i.states[u]&&i.states[u].ignore,s);if(d||!we(h,o)){var p=f?n:n&&n.states[u];p&&(p.ignore=!0),n&&ax(n,!0,u,c);continue}n||(n=new Zr,e.setTextGuideLine(n),!f&&(s||!o)&&ax(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),ax(n,!1,u,c)}}if(n){pe(n.style,r),n.style.fill=null;var v=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=v||!1,n.buildPath=ihe}}function T2(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Hr.length;n++){var i=Hr[n];r[i]=e.getModel([i,t])}return r}function B$(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Ey(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function F$(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(C,T){return C.rect[t]-T.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var h=e[f],d=h.rect;l=d[t]-s,l<0&&(d[t]-=l,h.label[t]-=l,u=!0);var p=Math.max(-l,0);c+=p,s=d[t]+d[r]}c>0&&a&&w(-c/o,0,o);var v=e[0],g=e[o-1],y,m;_(),y<0&&S(-y,.8),m<0&&S(m,.8),_(),x(y,m,1),x(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=v.rect[t]-n,m=i-g.rect[t]-g.rect[r]}function x(C,T,A){if(C<0){var M=Math.min(T,-C);if(M>0){w(M*A,0,o);var k=M+C;k<0&&S(-k*A,1)}else S(-C*A,1)}}function w(C,T,A){C!==0&&(u=!0);for(var M=T;M<A;M++){var k=e[M],P=k.rect;P[t]+=C,k.label[t]+=C}}function S(C,T){for(var A=[],M=0,k=1;k<o;k++){var P=e[k-1].rect,L=Math.max(e[k].rect[t]-P[t]-P[r],0);A.push(L),M+=L}if(M){var E=Math.min(Math.abs(C)/M,T);if(C>0)for(var k=0;k<o-1;k++){var R=A[k]*E;w(R,0,k+1)}else for(var k=o-1;k>0;k--){var R=A[k-1]*E;w(-R,k,o)}}}function b(C){var T=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),M=0;M<o-1;M++)if(T>0?w(A,0,M+1):w(-A,o-M-1,o),C-=A,C<=0)return}return u}function ahe(e,t,r,n){return F$(e,"x","width",t,r,n)}function V$(e,t,r,n){return F$(e,"y","height",t,r,n)}function G$(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var r=new Ae(0,0,0,0);function n(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=a.obb,h=!1,d=0;d<t.length;d++){var p=t[d];if(r.intersect(p.rect)){if(o&&p.axisAligned){h=!0;break}if(p.obb||(p.obb=new Ey(p.localRect,p.transform)),f||(f=new Ey(s,l)),f.intersect(p.obb)){h=!0;break}}}h?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function ohe(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function she(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:ohe(n&&n.shape.points)}}var mL=["align","verticalAlign","width","height","fontSize"],Er=new Oa,ox=Be(),lhe=Be();function Tv(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var Av=["x","y","rotation"],uhe=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();Ae.applyTransform(c,c,u),u?Er.setLocalTransform(u):(Er.x=Er.y=Er.rotation=Er.originX=Er.originY=0,Er.scaleX=Er.scaleY=1),Er.rotation=Cn(Er.rotation);var f=i.__hostTarget,h;if(f){h=f.getBoundingRect().plain();var d=f.getComputedTransform();Ae.applyTransform(h,h,d)}var p=h&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Er.x,y:Er.y,scaleX:Er.scaleX,scaleY:Er.scaleY,rotation:Er.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(he(i)||Re(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=Se(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,x){return function(){yL(_,x)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;he(o.layoutOption)?c=o.layoutOption(she(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=K(c.x,r),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=K(c.y,n),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),h=!1)}var p=ox(s);p.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<mL.length;v++){var g=mL[v];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.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",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=B$(this._labelList),a=qe(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=qe(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});ahe(a,0,r),V$(o,0,n);var s=qe(i,function(l){return l.layoutOption.hideOverlap});G$(s)},e.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=ox(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=Se(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");C2(t,T2(s),l),yL(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!sc(t))){var a=ox(n),o=a.oldLayout,s=Se(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(Me(h,"select")>=0&&n.attr(a.oldLayoutSelect),Me(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),He(n,u,r,l)}else if(n.attr(u),!Kc(n).valueAnimation){var f=we(n.style.opacity,1);n.style.opacity=0,vt(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var d=a.oldLayoutSelect={};Tv(d,u,Av),Tv(d,n.states.select,Av)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};Tv(p,u,Av),Tv(p,n.states.emphasis,Av)}LV(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=lhe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),He(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,vt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}(),sx=Be();function che(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=sx(r).labelManager;i||(i=sx(r).labelManager=new uhe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=sx(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var lx=Math.sin,ux=Math.cos,$$=Math.PI,Ls=Math.PI*2,fhe=180/$$,H$=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=Lo(f-Ls)||(c?u>=Ls:-u>=Ls),d=u>0?u%Ls:u%Ls+Ls,p=!1;h?p=!0:Lo(f)?p=!1:p=d>=$$==!!c;var v=t+n*ux(o),g=r+i*lx(o);this._start&&this._add("M",v,g);var y=Math.round(a*fhe);if(h){var m=1/this._p,_=(c?1:-1)*(Ls-m);this._add("A",n,i,y,1,+c,t+n*ux(o+_),r+i*lx(o+_)),m>.01&&this._add("A",n,i,y,0,+c,v,g)}else{var x=t+n*ux(s),w=r+i*lx(s);this._add("A",n,i,y,+p,+c,x,w)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d)){this._invalid=!0;return}c.push(Math.round(d*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),A2="none",hhe=Math.round;function dhe(e){var t=e.fill;return t!=null&&t!==A2}function phe(e){var t=e.stroke;return t!=null&&t!==A2}var Wb=["lineCap","miterLimit","lineJoin"],vhe=Y(Wb,function(e){return"stroke-"+e.toLowerCase()});function ghe(e,t,r,n){var i=t.opacity==null?1:t.opacity;if(r instanceof cr){e("opacity",i);return}if(dhe(t)){var a=gd(t.fill);e("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;o<1&&e("fill-opacity",o)}else e("fill",A2);if(phe(t)){var s=gd(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if(u!==1&&e("stroke-width",u),f&&e("paint-order",f?"stroke":"fill"),c<1&&e("stroke-opacity",c),t.lineDash){var h=h2(r),d=h[0],p=h[1];d&&(p=hhe(p||0),e("stroke-dasharray",d.join(",")),(p||n)&&e("stroke-dashoffset",p))}for(var v=0;v<Wb.length;v++){var g=Wb[v];if(t[g]!==Py[g]){var y=t[g]||Py[g];y&&e(vhe[v],y)}}}}var W$="http://www.w3.org/2000/svg",U$="http://www.w3.org/1999/xlink",yhe="http://www.w3.org/2000/xmlns/",mhe="http://www.w3.org/XML/1998/namespace",_L="ecmeta_";function j$(e){return document.createElementNS(W$,e)}function er(e,t,r,n,i){return{tag:e,attrs:r||{},children:n,text:i,key:t}}function _he(e,t){var r=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+e+" "+r.join(" ")+">"}function xhe(e){return"</"+e+">"}function M2(e,t){t=t||{};var r=t.newline?`
220
- `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return _he(o,s)+(o!=="style"?tn(l):l||"")+(a?""+r+Y(a,function(u){return n(u)}).join(r)+r:"")+xhe(o)}return n(e)}function She(e,t,r){r=r||{};var n=r.newline?`
221
- `:"",i=" {"+n,a=n+"}",o=Y(Re(e),function(l){return l+i+Y(Re(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Y(Re(t),function(l){return"@keyframes "+l+i+Y(Re(t[l]),function(u){return u+i+Y(Re(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Ub(e){return{zrId:e,shadowCache:{},agentCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,agentIdx:0,clipPathIdx:0}}function xL(e,t,r,n){return er("svg","root",{width:e,height:t,xmlns:W$,"xmlns:xlink":U$,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var whe=0;function Y$(){return whe++}var SL={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"},Gs="transform-origin";function bhe(e,t,r){var n=W({},e.shape);W(n,t),e.buildPath(r,n);var i=new H$;return i.reset(M4(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function Che(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Gs]=r+"px "+n+"px")}var The={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function X$(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Ahe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=Ub(r.zrId);u.animation=!0,Y0(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=Re(c),d=h.length;if(d){o=h[d-1];var p=c[o];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var y in f){var m=f[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=X$(i,r);return a.replace(o,s)}}function wL(e){return q(e)?SL[e]?"cubic-bezier("+SL[e]+")":PA(e)?e:"":""}function Y0(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof jA){var s=Ahe(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],h=wL(c.getClip().easing),d=c.getDelay();h?f.push(h):f.push("linear"),d&&f.push(d/1e3+"s"),c.getLoop()&&f.push("infinite");var p=f.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function v(m){var _=m[1],x=_.length,w={},S={},b={},C="animation-timing-function";function T(ie,le,ue){for(var re=ie.getTracks(),ce=ie.getMaxTime(),_e=0;_e<re.length;_e++){var ve=re[_e];if(ve.needsAnimate()){var Oe=ve.keyframes,Je=ve.propName;if(ue&&(Je=ue(Je)),Je)for(var pt=0;pt<Oe.length;pt++){var zt=Oe[pt],kt=Math.round(zt.time/ce*100)+"%",pn=wL(zt.easing),fr=zt.rawValue;(q(fr)||$e(fr))&&(le[kt]=le[kt]||{},le[kt][Je]=zt.rawValue,pn&&(le[kt][C]=pn))}}}}for(var A=0;A<x;A++){var M=_[A],k=M.targetName;k?k==="shape"&&T(M,S):!n&&T(M,w)}for(var P in w){var L={};E4(L,e),W(L,w[P]);var E=D4(L),R=w[P][C];b[P]=E?{transform:E}:{},Che(b[P],L),R&&(b[P][C]=R)}var z,O=!0;for(var P in S){b[P]=b[P]||{};var B=!z,R=S[P][C];B&&(z=new ma);var I=z.len();z.reset(),b[P].d=bhe(e,S[P],z);var G=z.len();if(!B&&I!==G){O=!1;break}R&&(b[P][C]=R)}if(!O)for(var P in b)delete b[P].d;if(!n)for(var A=0;A<x;A++){var M=_[A],k=M.targetName;k==="style"&&T(M,b,function(re){return The[re]})}for(var U=Re(b),N=!0,Z,A=1;A<U.length;A++){var oe=U[A-1],te=U[A];if(b[oe][Gs]!==b[te][Gs]){N=!1;break}Z=b[oe][Gs]}if(N&&Z){for(var P in b)b[P][Gs]&&delete b[P][Gs];t[Gs]=Z}if(qe(U,function(ie){return Re(b[ie]).length>0}).length){var fe=X$(b,r);return fe+" "+m[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+Y$();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function Mhe(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};bL(n,t,r)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=rb(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),bL(n,t,r)}}function bL(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+Y$(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var kd=Math.round;function Z$(e){return e&&q(e.src)}function K$(e){return e&&he(e.toDataURL)}function D2(e,t,r,n){ghe(function(i,a){var o=i==="fill"||i==="stroke";o&&A4(a)?Q$(t,e,i,n):o&&IA(a)?J$(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),Rhe(r,e,n)}function k2(e,t){var r=_ae(t);r&&(r.each(function(n,i){n!=null&&(e[(_L+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[_L+"silent"]="true"))}function CL(e){return Lo(e[0]-1)&&Lo(e[1])&&Lo(e[2])&&Lo(e[3]-1)}function Dhe(e){return Lo(e[4])&&Lo(e[5])}function P2(e,t,r){if(t&&!(Dhe(t)&&CL(t))){var n=1e4;e.transform=CL(t)?"translate("+kd(t[4]*n)/n+" "+kd(t[5]*n)/n+")":$ie(t)}}function TL(e,t,r){for(var n=e.points,i=[],a=0;a<n.length;a++)i.push(kd(n[a][0]*r)/r),i.push(kd(n[a][1]*r)/r);t.points=i.join(" ")}function AL(e){return!e.smooth}function khe(e){var t=Y(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=r[o[0]];s!=null&&(n[o[1]]=kd(s*i)/i)}}}var Phe={circle:[khe(["cx","cy","r"])],polyline:[TL,AL],polygon:[TL,AL]};function Ihe(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function q$(e,t){var r=e.style,n=e.shape,i=Phe[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&M4(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&Ihe(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);i[0](n,a,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var h=e.path;f&&(h.beginPath(),e.buildPath(h,e.shape),e.pathUpdated());var d=h.getVersion(),p=e,v=p.__svgPathBuilder;(p.__svgPathVersion!==d||!v||l!==p.__svgPathStrokePercent)&&(v||(v=p.__svgPathBuilder=new H$),v.reset(u),h.rebuildPath(v,l),v.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),a.d=v.getStr()}return P2(a,e.transform),D2(a,r,e,t),k2(a,e),t.animation&&Y0(e,a,t),t.emphasis&&Mhe(e,a,t),er(s,e.id+"",a)}function Ehe(e,t){var r=e.style,n=r.image;if(n&&!q(n)&&(Z$(n)?n=n.src:K$(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),P2(l,e.transform),D2(l,r,e,t),k2(l,e),t.animation&&Y0(e,l,t),er("image",e.id+"",l)}}function Lhe(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Qo,a=r.x||0,o=Wie(r.y||0,_0(i),r.textBaseline),s=Hie[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(iV(r)){var u="",c=r.fontStyle,f=nV(r.fontSize);if(!parseFloat(f))return;var h=r.fontFamily||n4,d=r.fontWeight;u+="font-size:"+f+";font-family:"+h+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),d&&d!=="normal"&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),P2(l,e.transform),D2(l,r,e,t),k2(l,e),t.animation&&Y0(e,l,t),er("text",e.id+"",l,void 0,n)}}function ML(e,t){if(e instanceof ke)return q$(e,t);if(e instanceof cr)return Ehe(e,t);if(e instanceof Mc)return Lhe(e,t)}function Rhe(e,t,r){var n=e.style;if(Uie(n)){var i=jie(e),a=r.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,h=n.shadowBlur,d=gd(n.shadowColor),p=d.opacity,v=d.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=er("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[er("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:m,"flood-color":v,"flood-opacity":p})]),a[i]=o}t.filter=m0(o)}}function Q$(e,t,r,n){var i=e[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(C4(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(T4(i))a="radialGradient",o.cx=we(i.x,.5),o.cy=we(i.y,.5),o.r=we(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=nb(s[u].offset)*100+"%",h=s[u].color,d=gd(h),p=d.color,v=d.opacity,g={offset:f};g["stop-color"]=p,v<1&&(g["stop-opacity"]=v),l.push(er("stop",u+"",g))}var y=er(a,"",o,l),m=M2(y),_=n.gradientCache,x=_[m];x||(x=n.zrId+"-g"+n.gradientIdx++,_[m]=x,o.id=x,n.defs[x]=er(a,x,o,l)),t[r]=m0(x)}function J$(e,t,r,n){var i=e.style[r],a=e.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(b4(i)){var h=i.imageWidth,d=i.imageHeight,p=void 0,v=i.image;if(q(v)?p=v:Z$(v)?p=v.src:K$(v)&&(p=v.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";$r(h,g),$r(d,g)}else if(h==null||d==null){var y=function(A,M){if(A){var k=A.elm,P=h||M.width,L=d||M.height;A.tag==="agent"&&(u?(L=1,P/=a.width):c&&(P=1,L/=a.height)),A.attrs.width=P,A.attrs.height=L,k&&(k.setAttribute("width",P),k.setAttribute("height",L))}},m=zA(p,null,e,function(A){l||y(S,A),y(f,A)});m&&m.width&&m.height&&(h=h||m.width,d=d||m.height)}f=er("image","img",{href:p,width:h,height:d}),o.width=h,o.height=d}else i.svgElement&&(f=me(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var _,x;l?_=x=1:u?(x=1,_=o.width/a.width):c?(_=1,x=o.height/a.height):o.agentUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var w=D4(i);w&&(o.agentTransform=w);var S=er("agent","",o,[f]),b=M2(S),C=n.agentCache,T=C[b];T||(T=n.zrId+"-p"+n.agentIdx++,C[b]=T,o.id=T,S=n.defs[T]=er("agent",T,o,[f])),t[r]=m0(T)}}function Ohe(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=er("clipPath",a,o,[q$(e,r)])}t["clip-path"]=m0(a)}function DL(e){return document.createTextNode(e)}function Ks(e,t,r){e.insertBefore(t,r)}function kL(e,t){e.removeChild(t)}function PL(e,t){e.appendChild(t)}function eH(e){return e.parentNode}function tH(e){return e.nextSibling}function cx(e,t){e.textContent=t}var IL=58,Nhe=120,zhe=er("","");function jb(e){return e===void 0}function Ki(e){return e!==void 0}function Bhe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function uh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Pd(e){var t,r=e.children,n=e.tag;if(Ki(n)){var i=e.elm=j$(n);if(I2(zhe,e),j(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&PL(i,Pd(a))}else Ki(e.text)&&!ge(e.text)&&PL(i,DL(e.text))}else e.elm=DL(e.text);return e.elm}function rH(e,t,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Ks(e,Pd(a),t)}}function Ky(e,t,r,n){for(;r<=n;++r){var i=t[r];if(i!=null)if(Ki(i.tag)){var a=eH(i.elm);kL(a,i.elm)}else kL(e,i.elm)}}function I2(e,t){var r,n=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==Nhe?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(yhe,r,o):r.charCodeAt(3)===IL?n.setAttributeNS(mhe,r,o):r.charCodeAt(5)===IL?n.setAttributeNS(U$,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function Fhe(e,t,r){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=r.length-1,u=r[0],c=r[l],f,h,d,p;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=r[++i]:c==null?c=r[--l]:uh(o,u)?(Iu(o,u),o=t[++n],u=r[++i]):uh(s,c)?(Iu(s,c),s=t[--a],c=r[--l]):uh(o,c)?(Iu(o,c),Ks(e,o.elm,tH(s.elm)),o=t[++n],c=r[--l]):uh(s,u)?(Iu(s,u),Ks(e,s.elm,o.elm),s=t[--a],u=r[++i]):(jb(f)&&(f=Bhe(t,n,a)),h=f[u.key],jb(h)?Ks(e,Pd(u),o.elm):(d=t[h],d.tag!==u.tag?Ks(e,Pd(u),o.elm):(Iu(d,u),t[h]=void 0,Ks(e,d.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(p=r[l+1]==null?null:r[l+1].elm,rH(e,p,r,i,l)):Ky(e,t,n,a))}function Iu(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(I2(e,t),jb(t.text)?Ki(n)&&Ki(i)?n!==i&&Fhe(r,n,i):Ki(i)?(Ki(e.text)&&cx(r,""),rH(r,null,i,0,i.length-1)):Ki(n)?Ky(r,n,0,n.length-1):Ki(e.text)&&cx(r,""):e.text!==t.text&&(Ki(n)&&Ky(r,n,0,n.length-1),cx(r,t.text)))}function Vhe(e,t){if(uh(e,t))Iu(e,t);else{var r=e.elm,n=eH(r);Pd(t),n!==null&&(Ks(n,t.elm,tH(r)),Ky(n,[e],0,0))}return t}var Ghe=0,$he=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=EL(),this.configLayer=EL(),this.storage=r,this._opts=n=W({},n),this.root=t,this._id="zr"+Ghe++,this._oldVNode=xL(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=j$("svg");I2(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Vhe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return ML(t,Ub(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Ub(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=Hhe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=er("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Y(Re(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(er("defs","defs",{},u)),t.animation){var c=She(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=er("style","stl",{},[],c);o.push(f)}}return xL(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},M2(this.renderToVNode({animation:we(t.cssAnimation,!0),emphasis:we(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:we(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var f=t[c];if(!f.invisible){var h=f.__clipPaths,d=h&&h.length||0,p=l&&l.length||0,v=void 0;for(v=Math.max(d-1,p-1);v>=0&&!(h&&l&&h[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=a[o-1];for(var y=v+1;y<d;y++){var m={};Ohe(h[y],m,r);var _=er("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=h;var x=ML(f,r);x&&(s?s.children:n).push(x)}}},e.prototype.resize=function(t,r){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),i&&a&&(a.style.display="none",t=Xu(i,0,n),r=Xu(i,1,n),a.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,a){var o=a.style;o.width=t+"px",o.height=r+"px"}if(IA(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=Xie(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function EL(e){return function(){}}function Hhe(e,t,r,n){var i;if(r&&r!=="none")if(i=er("rect","bg",{width:e,height:t,x:"0",y:"0"}),A4(r))Q$({fill:r},i.attrs,"fill",n);else if(IA(r))J$({style:{fill:r},dirty:Rt,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",n);else{var a=gd(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function Whe(e){e.registerPainter("svg",$he)}function LL(e,t,r){var n=Jo.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var fx=function(e){dt(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Dy,typeof r=="string"?o=LL(r,n,i):ge(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(u4(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=LL("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ae(0,0,0,0);function c(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new Ae(0,0,0,0);_.copy(m),o.push(_)}else{for(var x=!1,w=1/0,S=0,b=0;b<o.length;++b){var C=o[b];if(C.intersect(m)){var T=new Ae(0,0,0,0);T.copy(C),T.union(m),o[b]=T,x=!0;break}else if(l){u.copy(m),u.union(C);var A=m.width*m.height,M=C.width*C.height,k=u.width*u.height,P=k-A-M;P<w&&(w=P,S=b)}}if(l&&(o[S].union(m),x=!0),!x){var _=new Ae(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=r[f];if(h){var d=h.shouldBePainted(i,a,!0,!0),p=h.__isRendered&&(h.__dirty&xn||!d)?h.getPrevPaintRect():null;p&&c(p);var v=d&&(h.__dirty&xn||!h.__isRendered)?h.getPaintRect():null;v&&c(v)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var h=n[f],d=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(g=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var d=this.domBack;function p(v,g,y,m){if(o.clearRect(v,g,y,m),n&&n!=="transparent"){var _=void 0;if(v0(n)){var x=n.global||n.__width===y&&n.__height===m;_=x&&n.__canvasGradient||Ob(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else rie(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=Nb(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(v,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(d,v,g,y,m),o.restore())}!i||u?p(0,0,s,l):i.length&&D(i,function(v){p(v.x*f,v.y*f,v.width*f,v.height*f)})},t}(ui),RL=1e5,Rs=314159,Mv=.01,Uhe=.001;function jhe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Yhe(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 Xhe=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=W({},n||{}),this.dpr=n.devicePixelRatio||Dy,this._singleCanvas=a,this.root=t;var o=t.style;o&&(u4(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,f=c.width,h=c.height;n.width!=null&&(f=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=h*this.dpr,this._width=f,this._height=h;var d=new fx(c,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Rs]=d,d.zlevel=Rs,s.push(Rs),this._domRoot=t}else{this._width=Xu(t,0,n),this._height=Xu(t,1,n);var u=this._domRoot=Yhe(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(RL)),a||(a=n.ctx,a.save()),cl(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(RL)},e.prototype.paintOne=function(t,r){GG(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;wy(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Rs).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,h=function(v){var g=a[v],y=g.ctx,m=o&&g.createRepaintRects(t,r,d._width,d._height),_=n?g.__startIndex:g.__drawIndex,x=!n&&g.incremental&&Date.now,w=x&&Date.now(),S=g.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,S,m);else if(_===g.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&g.clear(!1,S,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,T=function(P){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<g.__endIndex;C++){var E=t[C];if(E.__inHover&&(f=!0),i._doPaintEl(E,g,o,P,L,C===g.__endIndex-1),x){var R=Date.now()-w;if(R>15)break}}L.prevElClipPaths&&y.restore()};if(m)if(m.length===0)C=g.__endIndex;else for(var A=d.dpr,M=0;M<m.length;++M){var k=m[M];y.save(),y.beginPath(),y.rect(k.x*A,k.y*A,k.width*A,k.height*A),y.clip(),T(k),y.restore()}else y.save(),T(),y.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(c=!1)},d=this,p=0;p<a.length;p++)h(p);return Ee.wxa&&D(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(cl(s,t,a,o),t.setPrevPaintRect(l))}else cl(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Rs);var n=this._layers[t];return n||(n=new fx("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Te(n,this._layerConfig[t],!0):this._layerConfig[t-Mv]&&Te(n,this._layerConfig[t-Mv],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&jhe(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,h){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+Uhe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Mv:0),this._needsManuallyCompositing),c.__builtin__||bA("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&xn&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,h){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Te(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Mv){var o=this._layers[a];Te(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(Me(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Xu(a,0,i),r=Xu(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Rs).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[Rs].dom;var r=new fx("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];cl(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function Zhe(e){e.registerPainter("canvas",Xhe)}var Khe=function(e){V(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 ao(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new xe,i=Gt("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Gt(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(ft);function Ec(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=kc(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(kc(e,t,r[o]));return a.join(" ")}}function nH(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!j(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var hp=function(e){V(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Gt(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=qhe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ka(this.childAt(0))},t.prototype.downplay=function(){qa(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):He(h,d,s,n),Ni(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,vt(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,h,d,p,v,g,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,d=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var m=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),d=_.get("blurScope"),p=_.get("disabled"),v=rr(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var x=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var w=jl(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var S=r.getItemVisual(n,"style"),b=S.fill;if(s instanceof cr){var C=s.style;s.useStyle(W({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(W({},S)):s.useStyle(S),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=r.getItemVisual(n,"liftZ"),A=this._z2;T!=null?A==null&&(this._z2=s.z2,s.z2+=T):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;xr(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:b,defaultOpacity:S.opacity});function k(E){return M?r.getName(E):Ec(r,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*L,P.scaleY=this._sizeY*L,this.setSymbolScale(1),Ct(this,h,d,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Se(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&ts(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ts(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return nf(r.getItemVisual(n,"symbolSize"))},t}(xe);function qhe(e,t){this.parent.drift(e,t)}function hx(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 OL(e){return e!=null&&!ge(e)&&(e={isIgnore:e}),e||{}}function NL(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:rr(t),cursorStyle:t.get("cursor")}}var dp=function(){function e(t){this.group=new xe,this._SymbolCtor=t||hp}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=OL(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=NL(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var h=c(f);if(hx(t,h,f,r)){var d=new o(t,f,l,u);d.setPosition(h),t.setItemGraphicEl(f,d),n.add(d)}}).update(function(f,h){var d=a.getItemGraphicEl(h),p=c(f);if(!hx(t,p,f,r)){n.remove(d);return}var v=t.getItemVisual(f,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==v)n.remove(d),d=new o(t,f,l,u),d.setPosition(p);else{d.updateData(t,f,l,u);var y={x:p[0],y:p[1]};s?d.attr(y):He(d,y,i)}n.add(d),t.setItemGraphicEl(f,d)}).remove(function(f){var h=a.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=NL(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=OL(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(hx(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){cs(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e}();function iH(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=Qhe(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=Y(e.dimensions,function(p){return t.mapDimension(p)}),h=!1,d=t.getCalculationInfo("stackResultDimension");return ns(t,f[0])&&(h=!0,f[0]=d),ns(t,f[1])&&(h=!0,f[1]=d),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Qhe(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:$e(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function aH(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function Jhe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function ede(e,t,r,n,i,a,o,s){for(var l=Jhe(e,t),u=[],c=[],f=[],h=[],d=[],p=[],v=[],g=iH(i,t,o),y=e.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],w=!0,S=void 0,b=void 0;switch(x.cmd){case"=":S=x.idx*2,b=x.idx1*2;var C=y[S],T=y[S+1],A=m[b],M=m[b+1];(isNaN(C)||isNaN(T))&&(C=A,T=M),u.push(C,T),c.push(A,M),f.push(r[S],r[S+1]),h.push(n[b],n[b+1]),v.push(t.getRawIndex(x.idx1));break;case"+":var k=x.idx,P=g.dataDimsForPoint,L=i.dataToPoint([t.get(P[0],k),t.get(P[1],k)]);b=k*2,u.push(L[0],L[1]),c.push(m[b],m[b+1]);var E=aH(g,i,t,k);f.push(E[0],E[1]),h.push(n[b],n[b+1]),v.push(t.getRawIndex(k));break;case"-":w=!1}w&&(d.push(x),p.push(p.length))}p.sort(function(oe,te){return v[oe]-v[te]});for(var R=u.length,z=oa(R),O=oa(R),B=oa(R),I=oa(R),G=[],_=0;_<p.length;_++){var U=p[_],N=_*2,Z=U*2;z[N]=u[Z],z[N+1]=u[Z+1],O[N]=c[Z],O[N+1]=c[Z+1],B[N]=f[Z],B[N+1]=f[Z+1],I[N]=h[Z],I[N+1]=h[Z+1],G[_]=d[U]}return{current:z,next:O,stackedOnCurrent:B,stackedOnNext:I,status:G}}var vo=Math.min,go=Math.max;function wl(e,t){return isNaN(e)||isNaN(t)}function Yb(e,t,r,n,i,a,o,s,l){for(var u,c,f,h,d,p,v=r,g=0;g<n;g++){var y=t[v*2],m=t[v*2+1];if(v>=i||v<0)break;if(wl(y,m)){if(l){v+=a;continue}break}if(v===r)e[a>0?"moveTo":"lineTo"](y,m),f=y,h=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){v+=a;continue}if(o>0){for(var w=v+a,S=t[w*2],b=t[w*2+1];S===y&&b===m&&g<n;)g++,w+=a,v+=a,S=t[w*2],b=t[w*2+1],y=t[v*2],m=t[v*2+1],_=y-u,x=m-c;var C=g+1;if(l)for(;wl(S,b)&&C<n;)C++,w+=a,S=t[w*2],b=t[w*2+1];var T=.5,A=0,M=0,k=void 0,P=void 0;if(C>=n||wl(S,b))d=y,p=m;else{A=S-u,M=b-c;var L=y-u,E=S-y,R=m-c,z=b-m,O=void 0,B=void 0;if(s==="x"){O=Math.abs(L),B=Math.abs(E);var I=A>0?1:-1;d=y-I*O*o,p=m,k=y+I*B*o,P=m}else if(s==="y"){O=Math.abs(R),B=Math.abs(z);var G=M>0?1:-1;d=y,p=m-G*O*o,k=y,P=m+G*B*o}else O=Math.sqrt(L*L+R*R),B=Math.sqrt(E*E+z*z),T=B/(B+O),d=y-A*o*(1-T),p=m-M*o*(1-T),k=y+A*o*T,P=m+M*o*T,k=vo(k,go(S,y)),P=vo(P,go(b,m)),k=go(k,vo(S,y)),P=go(P,vo(b,m)),A=k-y,M=P-m,d=y-A*O/B,p=m-M*O/B,d=vo(d,go(u,y)),p=vo(p,go(c,m)),d=go(d,vo(u,y)),p=go(p,vo(c,m)),A=y-d,M=m-p,k=y+A*B/O,P=m+M*B/O}e.bezierCurveTo(f,h,d,p,y,m),f=k,h=P}else e.lineTo(y,m)}u=y,c=m,v+=a}return g}var oH=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),tde=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new oH},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&wl(i[o*2-2],i[o*2-1]);o--);for(;a<o&&wl(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Yb(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=ma.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var h=a[f++],d=void 0,p=void 0,v=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=a[f++],l=a[f++];break;case o.L:if(d=a[f++],p=a[f++],_=u?(r-s)/(d-s):(r-l)/(p-l),_<=1&&_>=0){var x=u?(p-l)*_+l:(d-s)*_+s;return u?[r,x]:[x,r]}s=d,l=p;break;case o.C:d=a[f++],p=a[f++],v=a[f++],g=a[f++],y=a[f++],m=a[f++];var w=u?Cy(s,d,v,y,r,c):Cy(l,p,g,m,r,c);if(w>0)for(var S=0;S<w;S++){var b=c[S];if(b<=1&&b>=0){var x=u?qt(l,p,g,m,b):qt(s,d,v,y,b);return u?[r,x]:[x,r]}}s=y,l=m;break}}},t}(ke),rde=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(oH),sH=function(e){V(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 rde},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&wl(i[s*2-2],i[s*2-1]);s--);for(;o<s&&wl(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Yb(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Yb(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(ke);function lH(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new ze({shape:{x:o,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),d=h.isHorizontal(),p=h.inverse;d?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var v=he(i)?function(g){i(g,f)}:null;vt(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,v)}return f}function uH(e,t,r){var n=e.getArea(),i=At(n.r0,1),a=At(n.r,1),o=new Wr({shape:{cx:At(e.cx,1),cy:At(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,vt(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function pp(e,t,r,n,i){if(e){if(e.type==="polar")return uH(e,t,r);if(e.type==="cartesian2d")return lH(e,t,r,n,i)}else return null;return null}function Xl(e,t){return e.type===t}function zL(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function BL(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function FL(e,t){var r=BL(e),n=r[0],i=r[1],a=BL(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function VL(e){return $e(e)?e:e?.5:0}function nde(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=oa(n*2),a=0;a<n;a++){var o=aH(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function yo(e,t,r,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var h=(u[a]+c[a])/2,d=[];l[a]=d[a]=h,l[1-a]=u[1-a],d[1-a]=c[1-a],o.push(l[0],l[1]),o.push(d[0],d[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function ide(e,t){var r=[],n=e.length,i,a;function o(c,f,h){var d=c.coord,p=(h-d)/(f.coord-d),v=Gie(p,[c.color,f.color]);return{coord:h,color:v}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function ade(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Y(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=ide(u,i==="x"?r.getWidth():r.getHeight()),d=h.length;if(!d&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=h[0].coord-p,g=h[d-1].coord+p,y=g-v;if(y<.001)return"transparent";D(h,function(_){_.offset=(_.coord-v)/y}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var m=new ap(0,0,0,0,h,!0);return m[i]=v,m[i+"2"]=g,m}}}function ode(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&sde(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function sde(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(hp.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function lde(e,t){return isNaN(e)||isNaN(t)}function ude(e){for(var t=e.length/2;t>0&&lde(e[t*2-2],e[t*2-1]);t--);return t-1}function GL(e,t){return[e[t*2],e[t*2+1]]}function cde(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function cH(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Hr.length;t++)if(e.get([Hr[t],"endLabel","show"]))return!0;return!1}function dx(e,t,r,n){if(Xl(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=cH(n)?function(d,p){e._endLabelOnDuring(d,p,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=lH(t,r,n,function(){var d=e._endLabel;d&&r&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return uH(t,r,n)}function fde(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var hde=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new xe,n=new dp;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],h=o.type==="polar",d=this._coordSys,p=this._symbolDraw,v=this._polyline,g=this._polygon,y=this._lineGroup,m=!n.ssr&&r.get("animation"),_=!c.isEmpty(),x=c.get("origin"),w=iH(o,l,x),S=_&&nde(o,l,w),b=r.get("showSymbol"),C=r.get("connectNulls"),T=b&&!h&&ode(r,l,o),A=this._data;A&&A.eachItemGraphicEl(function(te,fe){te.__temp&&(s.remove(te),A.setItemGraphicEl(fe,null))}),b||p.remove(),s.add(y);var M=h?!1:r.get("step"),k;o&&o.getArea&&r.get("clip",!0)&&(k=o.getArea(),k.width!=null?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var P=ade(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&d.type===o.type&&M===this._step))b&&p.updateData(l,{isIgnore:T,clipShape:k,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,k),M&&(f=yo(f,o,M,C),S&&(S=yo(S,o,M,C))),v=this._newPolyline(f),_?g=this._newPolygon(f,S):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,zl(P)),y.setClipPath(dx(this,o,!0,r));else{_&&!g?g=this._newPolygon(f,S):g&&!_&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(r,o,zl(P));var L=y.getClipPath();if(L){var E=dx(this,o,!1,r);vt(L,{shape:E.shape},r)}else y.setClipPath(dx(this,o,!0,r));b&&p.updateData(l,{isIgnore:T,clipShape:k,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),(!zL(this._stackedOnPoints,S)||!zL(this._points,f))&&(m?this._doUpdateAnimation(l,S,o,i,M,x,C):(M&&(f=yo(f,o,M,C),S&&(S=yo(S,o,M,C))),v.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:S})))}var R=r.getModel("emphasis"),z=R.get("focus"),O=R.get("blurScope"),B=R.get("disabled");if(v.useStyle(pe(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),_r(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var I=v.getState("emphasis").style;I.lineWidth=+v.style.lineWidth+1}Se(v).seriesIndex=r.seriesIndex,Ct(v,z,O,B);var G=VL(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var N=l.getCalculationInfo("stackedOnSeries"),Z=0;g.useStyle(pe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),N&&(Z=VL(N.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:U,connectNulls:C}),_r(g,r,"areaStyle"),Se(g).seriesIndex=r.seriesIndex,Ct(g,z,O,B)}var oe=function(te){a._changePolyState(te)};l.eachItemGraphicEl(function(te){te&&(te.onHoverStateChange=oe)}),this._polyline.onHoverStateChange=oe,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=M,this._valueOrigin=x,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){Se(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Rl(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var h=r.get("zlevel")||0,d=r.get("z")||0;u=new hp(o,s),u.x=c,u.y=f,u.setZ(h,d);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=d,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else at.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Rl(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else at.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Iy(this._polyline,r),n&&Iy(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new tde({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new sH({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");he(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=he(f)?f(null):f;r.eachItemGraphicEl(function(d,p){var v=d;if(v){var g=[d.x,d.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var x=i,w=n.pointToCoord(g);a?(y=x.startAngle,m=x.endAngle,_=-w[1]/180*Math.PI):(y=x.r0,m=x.r,_=w[0])}else{var S=i;a?(y=S.x,m=S.x+S.width,_=d.x):(y=S.y+S.height,m=S.y,_=d.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var C=he(f)?f(p):c*b+h,T=v.getSymbolPath(),A=T.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(cH(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 Ve({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=ude(l);c>=0&&(xr(s,rr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,d){return d!=null?nH(o,d):Ec(o,f)},enableTextSetter:!0},fde(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,d=h.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,x=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?v:0)*(m?-1:1),S=(y?0:-v)*(m?-1:1),b=y?"x":"y",C=cde(f,x,b),T=C.range,A=T[1]-T[0],M=void 0;if(A>=1){if(A>1&&!d){var k=GL(f,T[0]);u.attr({x:k[0]+w,y:k[1]+S}),o&&(M=h.getRawValue(T[0]))}else{var k=c.getPointOn(x,b);k&&u.attr({x:k[0]+w,y:k[1]+S});var P=h.getRawValue(T[0]),L=h.getRawValue(T[1]);o&&(M=Y4(i,p,P,L,C.t))}a.lastFrameIndex=T[0]}else{var E=r===1||a.lastFrameIndex>0?T[0]:0,k=GL(f,E);o&&(M=h.getRawValue(E)),u.attr({x:k[0]+w,y:k[1]+S})}if(o){var R=Kc(u);typeof R.setLabelText=="function"&&R.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,h=ede(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),d=h.current,p=h.stackedOnCurrent,v=h.next,g=h.stackedOnNext;if(o&&(d=yo(h.current,i,o,l),p=yo(h.stackedOnCurrent,i,o,l),v=yo(h.next,i,o,l),g=yo(h.stackedOnNext,i,o,l)),FL(d,v)>3e3||c&&FL(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=d;var y={shape:{points:v}};h.current!==d&&(y.shape.__points=h.next),u.stopAnimation(),He(u,y,f),c&&(c.setShape({points:d,stackedOnPoints:p}),c.stopAnimation(),He(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],_=h.status,x=0;x<_.length;x++){var w=_[x].cmd;if(w==="="){var S=r.getItemGraphicEl(_[x].idx1);S&&m.push({el:S,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var b=u.shape.__points,C=0;C<m.length;C++){var T=m[C].el,A=m[C].ptIdx*2;T.x=b[A],T.y=b[A+1],T.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(at);function vp(e,t){return{seriesType:e,plan:tf(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(i){var s=Y(i.dimensions,function(d){return n.mapDimension(d)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ns(n,s[0])&&(s[0]=u),ns(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(d,p){for(var v=d.end-d.start,g=o&&oa(v*l),y=[],m=[],_=d.start,x=0;_<d.end;_++){var w=void 0;if(l===1){var S=c.get(f,_);w=i.dataToPoint(S,null,m)}else y[0]=c.get(f,_),y[1]=c.get(h,_),w=i.dataToPoint(y,null,m);o?(g[x++]=w[0],g[x++]=w[1]):p.setItemLayout(_,w.slice())}o&&p.setLayout("points",g)}}}}}}var dde={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var i=e[n],a=Math.abs(i);a>t&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},pde=function(e){return Math.round(e.length/2)};function fH(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/h);if(isFinite(d)&&d>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var p=void 0;q(a)?p=dde[a]:he(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,p,pde))}}}}}function vde(e){e.registerChartView(hde),e.registerSeriesModel(Khe),e.registerLayout(vp("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,fH("line"))}var Id=function(e){V(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 ao(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)D(a.getAxes(),function(h,d){if(h.type==="category"&&n!=null){var p=h.getTicksCoords(),v=h.getTickModel().get("alignWithLabel"),g=o[d],y=n[d]==="x1"||n[d]==="y1";if(y&&!v&&(g+=1),p.length<2)return;if(p.length===2){s[d]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,x=1,w=0;w<p.length;w++){var S=p[w].coord,b=w===p.length-1?p[w-1].tickValue+x:p[w].tickValue;if(b===g){_=S;break}else if(b<g)m=S;else if(m!=null&&b>g){_=(S+m)/2;break}w===1&&(x=b-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[d]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(ft);ft.registerClass(Id);var gde=function(e){V(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 ao(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=fs(Id.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Id),yde=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}(),qy=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new yde},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,h=n.clockwise,d=Math.PI*2,p=h?f-c<d:c-f<d;p||(c=f-(h?d:-d));var v=Math.cos(c),g=Math.sin(c),y=Math.cos(f),m=Math.sin(f);p?(r.moveTo(v*o+i,g*o+a),r.arc(v*u+i,g*u+a,l,-Math.PI+c,c,!h)):r.moveTo(v*s+i,g*s+a),r.arc(i,a,s,c,f,!h),r.arc(y*u+i,m*u+a,l,f-Math.PI*2,f-Math.PI,!h),o!==0&&r.arc(i,a,o,f,c,h)},t}(ke);function mde(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return ky(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,h=u.r,d=u.r0,p=(h+d)/2,v=u.startAngle,g=u.endAngle,y=(v+g)/2,m=r?Math.abs(h-d)/2:0,_=Math.cos,x=Math.sin,w=c+h*_(v),S=f+h*x(v),b="left",C="top";switch(s){case"startArc":w=c+(d-l)*_(y),S=f+(d-l)*x(y),b="center",C="top";break;case"insideStartArc":w=c+(d+l)*_(y),S=f+(d+l)*x(y),b="center",C="bottom";break;case"startAngle":w=c+p*_(v)+Dv(v,l+m,!1),S=f+p*x(v)+kv(v,l+m,!1),b="right",C="middle";break;case"insideStartAngle":w=c+p*_(v)+Dv(v,-l+m,!1),S=f+p*x(v)+kv(v,-l+m,!1),b="left",C="middle";break;case"middle":w=c+p*_(y),S=f+p*x(y),b="center",C="middle";break;case"endArc":w=c+(h+l)*_(y),S=f+(h+l)*x(y),b="center",C="bottom";break;case"insideEndArc":w=c+(h-l)*_(y),S=f+(h-l)*x(y),b="center",C="top";break;case"endAngle":w=c+p*_(g)+Dv(g,l+m,!0),S=f+p*x(g)+kv(g,l+m,!0),b="left",C="middle";break;case"insideEndAngle":w=c+p*_(g)+Dv(g,-l+m,!0),S=f+p*x(g)+kv(g,-l+m,!0),b="right",C="middle";break;default:return ky(n,i,a)}return n=n||{},n.x=w,n.y=S,n.align=b,n.verticalAlign=C,n}}function _de(e,t,r,n){if($e(n)){e.setTextConfig({rotation:n});return}else if(j(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function Dv(e,t,r){return t*Math.sin(e)*(r?-1:1)}function kv(e,t,r){return t*Math.cos(e)*(r?1:-1)}function fl(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;j(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Y(n,function(a){return Oi(a,i)})}}var px=Math.max,vx=Math.min;function xde(e,t){var r=e.getArea&&e.getArea();if(Xl(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var Sde=function(e){V(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){cs(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var h=r.isAnimationEnabled()?r:null,d=wde(r,u);d&&this._enableRealtimeSort(d,s,i);var p=r.get("clip",!0)||d,v=xde(u,s);o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],w=this._backgroundEls,S=a&&a.isInitSort,b=a&&a.type==="changeAxisOrder";function C(M){var k=Pv[u.type](s,M),P=kde(u,f,k);return P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),x[M]=P,P}s.diff(l).add(function(M){var k=s.getItemModel(M),P=Pv[u.type](s,M,k);if(y&&C(M),!(!s.hasValue(M)||!jL[u.type](P))){var L=!1;p&&(L=$L[u.type](v,P));var E=HL[u.type](r,s,M,P,f,h,c.model,!1,g);d&&(E.forceLabelAnimation=!0),YL(E,s,M,k,P,r,f,u.type==="polar"),S?E.attr({shape:P}):d?WL(d,h,E,P,M,f,!1,!1):vt(E,{shape:P},r,M),s.setItemGraphicEl(M,E),o.add(E),E.ignore=L}}).update(function(M,k){var P=s.getItemModel(M),L=Pv[u.type](s,M,P);if(y){var E=void 0;w.length===0?E=C(k):(E=w[k],E.useStyle(m.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),x[M]=E);var R=Pv[u.type](s,M),z=dH(f,R,u);He(E,{shape:z},h,M)}var O=l.getItemGraphicEl(k);if(!s.hasValue(M)||!jL[u.type](L)){o.remove(O);return}var B=!1;if(p&&(B=$L[u.type](v,L),B&&o.remove(O)),O?Ni(O):O=HL[u.type](r,s,M,L,f,h,c.model,!!O,g),d&&(O.forceLabelAnimation=!0),b){var I=O.getTextContent();if(I){var G=Kc(I);G.prevValue!=null&&(G.prevValue=G.value)}}else YL(O,s,M,P,L,r,f,u.type==="polar");S?O.attr({shape:L}):d?WL(d,h,O,L,M,f,!0,b):He(O,{shape:L},r,M,null),s.setItemGraphicEl(M,O),O.ignore=B,o.add(O)}).remove(function(M){var k=l.getItemGraphicEl(M);k&&Sd(k,r,M)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new xe);T.removeAll();for(var A=0;A<x.length;++A)T.add(x[A]);o.add(T),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),ZL(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),ZL(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&pp(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Y(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Sd(a,r,Se(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(at),$L={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=px(t.x,e.x),s=vx(t.x+t.width,i),l=px(t.y,e.y),u=vx(t.y+t.height,a),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=vx(t.r,e.r),a=px(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},HL={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new ze({shape:W({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?qy:Wr,c=new u({shape:n,z2:1});c.name="item";var f=hH(i);if(c.calculateTextPosition=mde(f,{isRoundCap:u===qy}),a){var h=c.shape,d=i?"r":"endAngle",p={};h[d]=i?n.r0:n.startAngle,p[d]=n[d],(s?He:vt)(c,{shape:p},a)}return c}};function wde(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 WL(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?He:vt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?He:vt)(r,{shape:u},c,i)}function UL(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var bde=["x","y","width","height"],Cde=["cx","cy","r","startAngle","endAngle"],jL={cartesian2d:function(e){return!UL(e,bde)},polar:function(e){return!UL(e,Cde)}},Pv={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?Ade(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Tde(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function hH(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 YL(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=fl(n.getModel("itemStyle"),c,!0);W(c,f),e.setShape(c)}}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 d=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=rr(n);xr(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:Ec(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var v=e.getTextContent();if(s&&v){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,_de(e,g==="outside"?d:g,hH(o),n.get(["label","rotate"]))}EV(v,p,a.getRawValue(r),function(m){return nH(t,m)});var y=n.getModel(["emphasis"]);Ct(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),_r(e,n),Tde(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Ade(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var Mde=function(){function e(){}return e}(),XL=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Mde},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(ke);function ZL(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new XL({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new XL({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),Se(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",KL),f.on("mousemove",KL)),r&&r.push(f)}var KL=c2(function(e){var t=this,r=Dde(t,e.offsetX,e.offsetY);Se(t).dataIndex=r>=0?r:null},30,!1);function Dde(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c<f;c++){var h=c*3;if(l[n]=u,l[i]=a[h+2],s[n]=a[h+n],s[i]=a[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function dH(e,t,r){if(Xl(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function kde(e,t,r){var n=e.type==="polar"?Wr:ze;return new n({shape:dH(t,r,e),silent:!0,z2:0})}function Pde(e){e.registerChartView(Sde),e.registerSeriesModel(gde),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,be(m$,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_$("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,fH("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var qL=Math.PI*2,Iv=Math.PI/180;function pH(e,t){return Xt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function vH(e,t){var r=pH(e,t),n=e.get("center"),i=e.get("radius");j(i)||(i=[0,i]);var a=K(r.width,t.getWidth()),o=K(r.height,t.getHeight()),s=Math.min(a,o),l=K(i[0],s/2),u=K(i[1],s/2),c,f,h=e.coordinateSystem;if(h){var d=h.dataToPoint(n);c=d[0]||0,f=d[1]||0}else j(n)||(n=[n,n]),c=K(n[0],a)+r.x,f=K(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function Ide(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=pH(n,r),s=vH(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*Iv,d=n.get("endAngle"),p=n.get("padAngle")*Iv;d=d==="auto"?h-qL:-d*Iv;var v=n.get("minAngle")*Iv,g=v+p,y=0;i.each(a,function(z){!isNaN(z)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,x=n.get("clockwise"),w=n.get("roseType"),S=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var C=x?1:-1,T=[h,d],A=C*p/2;BA(T,!x),h=T[0],d=T[1];var M=gH(n);M.startAngle=h,M.endAngle=d,M.clockwise=x;var k=Math.abs(d-h),P=k,L=0,E=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(z,O){var B;if(isNaN(z)){i.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:l,cy:u,r0:f,r:w?NaN:c});return}w!=="area"?B=m===0&&S?_:z*_:B=k/y,B<g?(B=g,P-=g):L+=z;var I=E+C*B,G=0,U=0;p>B?(G=E+C*B/2,U=G):(G=E+A,U=I-A),i.setItemLayout(O,{angle:B,startAngle:G,endAngle:U,clockwise:x,cx:l,cy:u,r0:f,r:w?Ke(z,b,[f,c]):c}),E=I}),P<qL&&y)if(P<=.001){var R=k/y;i.each(a,function(z,O){if(!isNaN(z)){var B=i.getItemLayout(O);B.angle=R;var I=0,G=0;R<p?(I=h+C*(O+1/2)*R,G=I):(I=h+C*O*R+A,G=h+C*(O+1)*R-A),B.startAngle=I,B.endAngle=G}})}else _=P/L,E=h,i.each(a,function(z,O){if(!isNaN(z)){var B=i.getItemLayout(O),I=B.angle===g?g:z*_,G=0,U=0;I<p?(G=E+C*I/2,U=G):(G=E+A,U=E+C*I-A),B.startAngle=G,B.endAngle=U,E+=C*I}})})}var gH=Be();function gp(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Ede=Math.PI/180;function QL(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function c(v){for(var g=v.rB,y=g*g,m=0;m<v.list.length;m++){var _=v.list[m],x=Math.abs(_.label.y-r),w=n+_.len,S=w*w,b=Math.sqrt((1-Math.abs(x*x/y))*S),C=t+(b+_.len2)*i,T=C-_.label.x,A=_.targetTextWidth-T*i;yH(_,A,!0),_.label.x=C}}function f(v){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<v.length;m++)if(v[m].labelAlignTo==="none"){var _=v[m],x=_.label.y>r?y:g,w=Math.abs(_.label.y-r);if(w>=x.maxY){var S=_.label.x-t-_.len2*i,b=n+_.len,C=Math.abs(S)<b?Math.sqrt(w*w/(1-S*S/b/b)):b;x.rB=C,x.maxY=w}x.list.push(_)}c(g),c(y)}for(var h=e.length,d=0;d<h;d++)if(e[d].position==="outer"&&e[d].labelAlignTo==="labelLine"){var p=e[d].label.x-u;e[d].linePoints[1][0]+=p,e[d].label.x=u}V$(e,l,l+o)&&f(e)}function Lde(e,t,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,h=0;h<e.length;h++){var d=e[h].label;gx(e[h])||(d.x<t?(c=Math.min(c,d.x),l.push(e[h])):(f=Math.max(f,d.x),u.push(e[h])))}for(var h=0;h<e.length;h++){var p=e[h];if(!gx(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var d=p.label,v=p.linePoints,g=void 0;p.labelAlignTo==="edge"?d.x<t?g=v[2][0]-p.labelDistance-o-p.edgeDistance:g=o+i-p.edgeDistance-v[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?d.x<t?g=c-o-p.bleedMargin:g=o+i-f-p.bleedMargin:d.x<t?g=d.x-o-p.bleedMargin:g=o+i-d.x-p.bleedMargin,p.targetTextWidth=g,yH(p,g)}}QL(u,t,r,n,1,i,a,o,s,f),QL(l,t,r,n,-1,i,a,o,s,c);for(var h=0;h<e.length;h++){var p=e[h];if(!gx(p)&&p.linePoints){var d=p.label,v=p.linePoints,y=p.labelAlignTo==="edge",m=d.style.padding,_=m?m[1]+m[3]:0,x=d.style.backgroundColor?0:_,w=p.rect.width+x,S=v[1][0]-v[2][0];y?d.x<t?v[2][0]=o+p.edgeDistance+w+p.labelDistance:v[2][0]=o+i-p.edgeDistance-w-p.labelDistance:(d.x<t?v[2][0]=d.x+p.labelDistance:v[2][0]=d.x-p.labelDistance,v[1][0]=v[2][0]+S),v[1][1]=v[2][1]=d.y}}}function yH(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||r){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var d=t-l,p=t<c?d:r?d>e.unconstrainedWidth?null:d:null;n.setStyle("width",p)}var v=n.getBoundingRect();a.width=v.width;var g=(n.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-f)/2}}}function gx(e){return e.position==="center"}function Rde(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*Ede,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function d(S){S.ignore=!0}function p(S){if(!S.ignore)return!0;for(var b in S.states)if(S.states[b].ignore===!1)return!0;return!1}t.each(function(S){var b=t.getItemGraphicEl(S),C=b.shape,T=b.getTextContent(),A=b.getTextGuideLine(),M=t.getItemModel(S),k=M.getModel("label"),P=k.get("position")||M.get(["emphasis","label","position"]),L=k.get("distanceToLabelLine"),E=k.get("alignTo"),R=K(k.get("edgeDistance"),u),z=k.get("bleedMargin"),O=M.getModel("labelLine"),B=O.get("length");B=K(B,u);var I=O.get("length2");if(I=K(I,u),Math.abs(C.endAngle-C.startAngle)<o){D(T.states,d),T.ignore=!0,A&&(D(A.states,d),A.ignore=!0);return}if(p(T)){var G=(C.startAngle+C.endAngle)/2,U=Math.cos(G),N=Math.sin(G),Z,oe,te,fe;n=C.cx,i=C.cy;var ie=P==="inside"||P==="inner";if(P==="center")Z=C.cx,oe=C.cy,fe="center";else{var le=(ie?(C.r+C.r0)/2*U:C.r*U)+n,ue=(ie?(C.r+C.r0)/2*N:C.r*N)+i;if(Z=le+U*3,oe=ue+N*3,!ie){var re=le+U*(B+l-C.r),ce=ue+N*(B+l-C.r),_e=re+(U<0?-1:1)*I,ve=ce;E==="edge"?Z=U<0?c+R:c+u-R:Z=_e+(U<0?-L:L),oe=ve,te=[[le,ue],[re,ce],[_e,ve]]}fe=ie?"center":E==="edge"?U>0?"right":"left":U>0?"left":"right"}var Oe=Math.PI,Je=0,pt=k.get("rotate");if($e(pt))Je=pt*(Oe/180);else if(P==="center")Je=0;else if(pt==="radial"||pt===!0){var zt=U<0?-G+Oe:-G;Je=zt}else if(pt==="tangential"&&P!=="outside"&&P!=="outer"){var kt=Math.atan2(U,N);kt<0&&(kt=Oe*2+kt);var pn=N>0;pn&&(kt=Oe+kt),Je=kt-Oe}if(a=!!Je,T.x=Z,T.y=oe,T.rotation=Je,T.setStyle({verticalAlign:"middle"}),ie){T.setStyle({align:fe});var Fi=T.states.select;Fi&&(Fi.x+=T.x,Fi.y+=T.y)}else{var fr=T.getBoundingRect().clone();fr.applyTransform(T.getComputedTransform());var ba=(T.style.margin||0)+2.1;fr.y-=ba/2,fr.height+=ba,r.push({label:T,labelLine:A,position:P,len:B,len2:I,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Ce(U,N),linePoints:te,textAlign:fe,labelDistance:L,labelAlignTo:E,edgeDistance:R,bleedMargin:z,rect:fr,unconstrainedWidth:fr.width,labelStyleWidth:T.style.width})}b.setTextConfig({inside:ie})}}),!a&&e.get("avoidLabelOverlap")&&Lde(r,n,i,l,u,h,c,f);for(var v=0;v<r.length;v++){var g=r[v],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(D(y.states,d),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var w=g.linePoints;_||!w?(D(m.states,d),m.ignore=!0):(z$(w,g.minTurnAngle),nhe(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new Ce(w[0][0],w[0][1])})}}}var Ode=function(e){V(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new Ve;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=W(fl(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var h=s.getShallow("animationType");s.ecModel.ssr?(vt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):h==="scale"?(o.shape.r=c.r0,vt(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),vt(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,He(o,{shape:{endAngle:c.endAngle}},s,n))}else Ni(o),He(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),_r(o,l);var d=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),v=Math.cos(d)*p,g=Math.sin(d)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=W({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},fl(u.getModel("itemStyle"),c)),W(o.ensureState("select"),{x:v,y:g,shape:fl(l.getModel(["select","itemStyle"]),c)}),W(o.ensureState("blur"),{shape:fl(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&W(m.ensureState("select"),{x:v,y:g}),W(_.ensureState("select"),{x:v,y:g}),Ct(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;xr(a,rr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var h=r.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Zr,this.setTextGuideLine(d)),C2(this,T2(o),{stroke:u,opacity:fa(s.get(["lineStyle","opacity"]),c,1)})}},t}(Wr),Nde=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var h=gH(r),d=new Wr({shape:W(vH(r,i),h)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(p){var v=new Ode(o,p,u);o.setItemGraphicEl(p,v),l.add(v)}).update(function(p,v){var g=s.getItemGraphicEl(v);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var v=s.getItemGraphicEl(p);Sd(v,r,p)}).execute(),Rde(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(at);function of(e,t,r){t=j(t)&&{coordDimensions:t}||W({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=cp(n,t).dimensions,a=new Vr(i,e);return a.initData(n,r),a}var yp=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}(),zde=Be(),Bde=function(e){V(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 yp(ee(this.getData,this),ee(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return of(this,{coordDimensions:["value"],encodeDefaulter:be(r2,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=zde(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=bae(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Ll(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ft);function Fde(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!($e(o)&&!isNaN(o)&&o<0)})}}}function Vde(e){e.registerChartView(Nde),e.registerSeriesModel(Bde),BG("pie",e.registerAction),e.registerLayout(be(Ide,"pie")),e.registerProcessor(gp("pie")),e.registerProcessor(Fde("pie"))}var Gde=function(e){V(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 ao(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(ft),mH=4,$de=function(){function e(){}return e}(),Hde=function(e){V(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 $de},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<mH,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var h=i[f++],d=i[f++];isNaN(h)||isNaN(d)||c&&!c.contain(h,d)||(s.x=h-a[0]/2,s.y=d-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,f=a[c]-s/2,h=a[c+1]-l/2;if(r>=f&&n>=h&&r<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h<i.length;){var d=i[h++],p=i[h++];l=Math.min(d,l),c=Math.max(d,c),u=Math.min(p,u),f=Math.max(p,f)}r=this._rect=new Ae(l-o/2,u-s/2,c-l+o,f-u+s)}return r},t}(ke),Wde=function(){function e(){this.group=new xe}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Hde({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=Gt(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<mH;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Se(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Ude=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=vp("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Wde:new dp,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(at),jde=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Le),Xb=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Vt).models[0]},t.type="cartesian2dAxis",t}(Le);Ht(Xb,fp);var _H={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Yde=Te({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},_H),E2=Te({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},_H),Xde=Te({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},E2),Zde=pe({logBase:10},E2);const xH={category:Yde,value:E2,time:Xde,log:Zde};var Kde={value:1,category:1,time:1,log:1};function Lc(e,t,r,n){D(Kde,function(i,a){var o=Te(Te({},xH[a],!0),n,!0),s=function(l){V(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=bd(this),d=h?Jc(c):{},p=f.getTheme();Te(c,p.get(a+"Axis")),Te(c,this.getDefaultOption()),c.type=JL(c),h&&rs(c,d,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Gb.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",JL)}function JL(e){return e.type||(e.data?"category":"value")}var qde=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 Y(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),qe(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}(),Zb=["x","y"];function eR(e){return e.type==="interval"||e.type==="time"}var Qde=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Zb,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!eR(r)||!eR(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-i[0]*c,d=o[1]-a[0]*f,p=this._transform=[c,0,0,f,h,d];this._invTransform=Uc([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ae(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return yr(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return yr(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new Ae(a,o,s,l)},t}(qde),Jde=function(e){V(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Bi);function Kb(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,p=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[h[l]]:f[0],u==="x"?p[h[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[h[s]]-p[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),sr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function tR(e){return e.get("coordinateSystem")==="cartesian2d"}function rR(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Vt).models[0];t[n]=a}),t}var yx=Math.log;function SH(e,t,r){var n=Ja.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=C$(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var h=yx(e.base);u=[yx(u[0])/h,yx(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var d=n.getExtent.call(e);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var p=n.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=rx(p),g=u[0]+p*o;else if(f)for(v=u[1]-p*o;v>u[0]&&isFinite(v)&&isFinite(u[0]);)p=rx(p),v=u[1]-p*o;else{var y=e.getTicks().length-1;y>o&&(p=rx(p));var m=p*o;g=Math.ceil(u[1]/p)*p,v=At(g-m),v<0&&u[0]>=0?(v=0,g=At(m)):g>0&&u[1]<=0&&(g=0,v=-At(m))}var _=(i[0].value-a[0].value)/s,x=(i[o].value-a[o].value)/s;n.setExtent.call(e,v+p*_,g+p*x),n.setInterval.call(e,p),(_||x)&&n.setNiceExtent.call(e,v+p,g-p)}var epe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zb,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Re(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],d=o[h],p=d.model,v=d.scale;$b(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(d):(Ic(v,p),$b(v)&&(s=d))}c.length&&(s||(s=c.pop(),Ic(s.scale,s.model)),D(c,function(g){SH(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){nR(n,"y",o,a)}),D(n.y,function(o){nR(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Xt(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Rfe(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),tpe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}ge(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Vt).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Vt).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Me(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(c,f){D(s.y,function(h,d){var p="x"+f+"y"+d,v=new Qde(p);v.master=i,v.model=t,i._coordsMap[p]=v,i._coordsList.push(v),v.addAxis(c),v.addAxis(h)})});function u(c){return function(f,h){if(mx(f,t)){var d=f.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=o.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=o.left?"right":"left"),o[d]=!0;var p=new Jde(c,j0(f),[0,0],f.get("type"),d),v=p.type==="category";p.onBand=v&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=a,p.index=h,a._axesList.push(p),s[c][h]=p,l[c]++}}}},e.prototype._updateScale=function(t,r){D(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(tR(i)){var a=rR(i),o=a.xAxisModel,s=a.yAxisModel;if(!mx(o,r)||!mx(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){D(Yy(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return D(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);Me(r,a)<0&&r.push(a),Me(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(tR(i)){var a=rR(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=Zb,e}();function mx(e,t){return e.getCoordSysModel()===t}function nR(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)iR(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&iR(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function iR(e){return e&&e.type!=="category"&&e.type!=="time"&&Lfe(e)}function tpe(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var Ro=Math.PI,Gr=function(){function e(t,r){this.group=new xe,this.opt=r,this.axisModel=t,pe(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new xe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!aR[t]},e.prototype.add=function(t){aR[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=z4(r-t),a,o;return yd(i)?(o=n>0?"top":"bottom",a="center"):yd(i-Ro)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Ro?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),aR={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(yr(s,s,o),yr(l,l,o));var c=W({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Jt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Dc(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);q(h)&&(h=[h,h]),(q(d)||$e(d))&&(d=[d,d]);var p=jl(t.get(["axisLine","symbolOffset"])||0,d),v=d[0],g=d[1];D([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var _=Gt(h[m],-v/2,-g/2,v,g,c.stroke,!0),x=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+x*Math.cos(e.rotation),y:w[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=ipe(r,n,t,e),a=ope(r,n,t,e);if(npe(t,a,i),ape(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=B$(Y(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));G$(o)}},axisName:function(e,t,r,n){var i=sr(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,sR(a)?e.labelOffset+o*l:0],h,d=t.get("nameRotate");d!=null&&(d=d*Ro/180);var p;sR(a)?h=Gr.innerTextLayout(e.rotation,d??e.rotation,o):(h=rpe(e.rotation,a,d||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=sr(e.nameTruncateMaxWidth,g.maxWidth,p),_=new Ve({x:f[0],y:f[1],rotation:h.rotation,silent:Gr.isLabelSilent(t),style:ut(s,{text:i,font:v,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Zc({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var x=Gr.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,Se(_).eventData=x}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function rpe(e,t,r,n){var i=z4(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return yd(i-Ro/2)?(o=l?"bottom":"top",a="center"):yd(i-Ro*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Ro*1.5&&i>Ro/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function npe(e,t,r){if(!T$(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],h=r[r.length-2];n===!1?(Fn(a),Fn(u)):oR(a,o)&&(n?(Fn(o),Fn(c)):(Fn(a),Fn(u))),i===!1?(Fn(s),Fn(f)):oR(l,s)&&(i?(Fn(l),Fn(h)):(Fn(s),Fn(f)))}}function Fn(e){e&&(e.ignore=!0)}function oR(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=y0([]);return Wl(i,i,-e.rotation),r.applyTransform(Fa([],i,e.getLocalTransform())),n.applyTransform(Fa([],i,t.getLocalTransform())),r.intersect(n)}}function sR(e){return e==="middle"||e==="center"}function wH(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(yr(o,o,t),yr(s,s,t));var c=new Jt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Dc(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function ipe(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=wH(u,t.transform,l,pe(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function ape(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=pe(s.getLineStyle(),pe(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=wH(o[c],t.transform,l,u,"minorticks_"+c),h=0;h<f.length;h++)e.add(f[h])}}function ope(e,t,r,n){var i=r.axis,a=sr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(sr(n.labelRotate,o.get("rotate"))||0)*Ro/180,c=Gr.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),h=[],d=Gr.isLabelSilent(r),p=r.get("triggerEvent");return D(l,function(v,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,m=v.formattedLabel,_=v.rawLabel,x=o;if(f&&f[y]){var w=f[y];ge(w)&&w.textStyle&&(x=new Xe(w.textStyle,o,r.ecModel))}var S=x.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(y),C=x.getShallow("align",!0)||c.textAlign,T=we(x.getShallow("alignMinLabel",!0),C),A=we(x.getShallow("alignMaxLabel",!0),C),M=x.getShallow("verticalAlign",!0)||x.getShallow("baseline",!0)||c.textVerticalAlign,k=we(x.getShallow("verticalAlignMinLabel",!0),M),P=we(x.getShallow("verticalAlignMaxLabel",!0),M),L=new Ve({x:b,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(v.level||0),style:ut(x,{text:m,align:g===0?T:g===l.length-1?A:C,verticalAlign:g===0?k:g===l.length-1?P:M,fill:he(S)?S(i.type==="category"?_:i.type==="value"?y+"":y,g):S})});if(L.anid="label_"+y,p){var E=Gr.makeAxisEventDataBase(r);E.targetType="axisLabel",E.value=_,E.tickIndex=g,i.type==="category"&&(E.dataIndex=y),Se(L).eventData=E}t.add(L),L.updateTransform(),h.push(L),e.add(L),L.decomposeTransform()}),h}}function spe(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return lpe(r,e,t),r.seriesInvolved&&cpe(r,e),r}function lpe(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ed(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(D(s.getAxes(),be(v,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var h=f.get("trigger")==="axis",d=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||d)&&D(p.baseAxes,be(v,d?"cross":!0,h)),d&&D(p.otherAxes,be(v,"cross",!1))}function v(g,y,m){var _=m.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!g&&!qb(_))){y==null&&(y=_.get("triggerTooltip")),_=g?upe(m,f,i,t,g,y):_;var w=_.get("snap"),S=_.get("triggerEmphasis"),b=Ed(m.model),C=y||w||m.type==="category",T=e.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:S,involveSeries:C,snap:w,useHandle:qb(_),seriesModels:[],linkGroup:null};u[b]=T,e.seriesInvolved=e.seriesInvolved||C;var A=fpe(a,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[b]=T,M.mapper=a[A].mapper,T.linkGroup=M}}}})}function upe(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(h){l[h]=me(o.get(h))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&pe(u,f.textStyle)}}return e.model.getModel("axisPointer",new Xe(l,r,n))}function cpe(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||D(e.coordSysAxesInfo[Ed(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 fpe(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(_x(a[n+"AxisId"],r.id)||_x(a[n+"AxisIndex"],r.componentIndex)||_x(a[n+"AxisName"],r.name))return i}}function _x(e,t){return e==="all"||j(e)&&Me(e,t)>=0||e===t}function hpe(e){var t=L2(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=qb(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function L2(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ed(e)]}function dpe(e){var t=L2(e);return t&&t.axisPointerModel}function qb(e){return!!e.get(["handle","show"])}function Ed(e){return e.type+"||"+e.id}var lR={},Zl=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&hpe(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=dpe(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){lR[r]=n},t.getAxisPointerClass=function(r){return r&&lR[r]},t.type="axis",t}(_t),Qb=Be();function bH(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=Qb(e).splitAreaColors,h=ae(),d=0;if(f)for(var p=0;p<u.length;p++){var v=f.get(u[p].tickValue);if(v!=null){d=(v+(c-1)*p)%c;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=j(s)?s:[s];for(var p=1;p<u.length;p++){var m=i.toGlobalCoord(u[p].coord),_=void 0,x=void 0,w=void 0,S=void 0;i.isHorizontal()?(_=g,x=l.y,w=m-_,S=l.height,g=_+w):(_=l.x,x=g,w=l.width,S=m-x,g=x+S);var b=u[p-1].tickValue;b!=null&&h.set(b,d),t.add(new ze({anid:b!=null?"area_"+b:null,shape:{x:_,y:x,width:w,height:S},style:pe({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}Qb(e).splitAreaColors=h}}}function CH(e){Qb(e).splitAreaColors=null}var ppe=["axisLine","axisTickLabel","axisName"],vpe=["splitArea","splitLine","minorSplitLine"],TH=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xe,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Kb(s,r),u=new Gr(r,W({handleAutoShown:function(f){for(var h=s.coordinateSystem.getCartesians(),d=0;d<h.length;d++)if($b(h[d].getOtherAxis(r.axis).scale))return!0;return!1}},l));D(ppe,u.add,u),this._axisGroup.add(u.getGroup()),D(vpe,function(f){r.get([f,"show"])&&gpe[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||op(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){CH(this)},t.type="cartesianAxis",t}(Zl),gpe={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=j(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),h=[],d=[],p=o.getLineStyle(),v=0;v<f.length;v++){var g=i.toGlobalCoord(f[v].coord);u?(h[0]=g,h[1]=l.y,d[0]=g,d[1]=l.y+l.height):(h[0]=l.x,h[1]=g,d[0]=l.x+l.width,d[1]=g);var y=c++%s.length,m=f[v].tickValue,_=new Jt({anid:m!=null?"line_"+f[v].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:pe({stroke:s[y]},p),silent:!0});Dc(_.shape,p.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],h=o.getLineStyle(),d=0;d<u.length;d++)for(var p=0;p<u[d].length;p++){var v=i.toGlobalCoord(u[d][p].coord);l?(c[0]=v,c[1]=s.y,f[0]=v,f[1]=s.y+s.height):(c[0]=s.x,c[1]=v,f[0]=s.x+s.width,f[1]=v);var g=new Jt({anid:"minor_line_"+u[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:h,silent:!0});Dc(g.shape,h.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){bH(e,t,r,n)}},AH=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(TH),ype=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=AH.type,r}return t.type="yAxis",t}(TH),mpe=function(e){V(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 ze({shape:r.coordinateSystem.getRect(),style:pe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(_t),uR={offset:0};function MH(e){e.registerComponentView(mpe),e.registerComponentModel(jde),e.registerCoordinateSystem("cartesian2d",epe),Lc(e,"x",Xb,uR),Lc(e,"y",Xb,uR),e.registerComponentView(AH),e.registerComponentView(ype),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function _pe(e){De(MH),e.registerSeriesModel(Gde),e.registerChartView(Ude),e.registerLayout(vp("scatter"))}function xpe(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();D(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=i.dataToPoint(l,s);n[u][s]=cR(c)?c:fR(i)})}),r.each(function(o){var s=eie(n[o],function(l){return cR(l)})||fR(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function cR(e){return!isNaN(e[0])&&!isNaN(e[1])}function fR(e){return[e.cx,e.cy]}function Spe(e){var t=e.polar;if(t){j(t)||(t=[t]);var r=[];D(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],j(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 wpe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(h,d){var p=h.getItemVisual(d,"symbol")||"circle";if(p!=="none"){var v=nf(h.getItemVisual(d,"symbolSize")),g=Gt(p,-1,-1,2,2),y=h.getItemVisual(d,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:y*Math.PI/180||0}),g}}function c(h,d,p,v,g,y){p.removeAll();for(var m=0;m<d.length-1;m++){var _=u(v,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Ul[y?"initProps":"updateProps"](_,{x:d[m][0],y:d[m][1]},r,g)):_.setPosition(d[m]),p.add(_))}}function f(h){return Y(h,function(d){return[a.cx,a.cy]})}s.diff(l).add(function(h){var d=s.getItemLayout(h);if(d){var p=new Ur,v=new Zr,g={shape:{points:d}};p.shape.points=f(d),v.shape.points=f(d),vt(p,g,r,h),vt(v,g,r,h);var y=new xe,m=new xe;y.add(v),y.add(p),y.add(m),c(v.shape.points,d,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,d){var p=l.getItemGraphicEl(d),v=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(c(v.shape.points,m.shape.points,y,s,h,!1),Ni(g),Ni(v),He(v,m,r),He(g,m,r),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,d){var p=s.getItemModel(d),v=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(d,"style"),_=m.fill;o.add(h),v.useStyle(pe(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),_r(v,p,"lineStyle"),_r(g,p,"areaStyle");var x=p.getModel("areaStyle"),w=x.isEmpty()&&x.parentModel.isEmpty();g.ignore=w,D(["emphasis","select","blur"],function(C){var T=p.getModel([C,"areaStyle"]),A=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(C).ignore=A&&w}),g.useStyle(pe(x.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var S=p.getModel("emphasis"),b=S.getModel("itemStyle").getItemStyle();y.eachChild(function(C){if(C instanceof cr){var T=C.style;C.useStyle(W({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else C.useStyle(m),C.setColor(_),C.style.strokeNoScale=!0;var A=C.ensureState("emphasis");A.style=me(b);var M=s.getStore().get(s.getDimensionIndex(C.__dimIdx),d);(M==null||isNaN(M))&&(M=""),xr(C,rr(p),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:C.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),Ct(h,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(at),bpe=function(e){V(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 yp(ee(this.getData,this),ee(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return of(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=AG(this,r);return nr("section",{header:u,sortBlocks:!0,blocks:Y(s,function(f){var h=a.get(a.mapDimension(f.dim),r);return nr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(Y(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(ft),Ff=xH.value;function Ev(e,t){return pe({show:t},e)}var Cpe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),h=this.get("triggerEvent"),d=Y(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=pe({color:p.color},l));var g=Te(me(p),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:h},!1);if(q(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else he(c)&&(g.name=c(g.name,g));var m=new Xe(g,null,this.ecModel);return Ht(m,fp.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Te({lineStyle:{color:"#bbb"}},Ff.axisLine),axisLabel:Ev(Ff.axisLabel,!1),axisTick:Ev(Ff.axisTick,!1),splitLine:Ev(Ff.splitLine,!0),splitArea:Ev(Ff.splitArea,!0),indicator:[]},t}(Le),Tpe=["axisLine","axisTickLabel","axisName"],Ape=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Y(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Gr(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(Tpe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),d=u.get("color"),p=j(h)?h:[h],v=j(d)?d:[d],g=[],y=[];function m(E,R,z){var O=z%R.length;return E[O]=E[O]||[],O}if(a==="circle")for(var _=i[0].getTicksCoords(),x=n.cx,w=n.cy,S=0;S<_.length;S++){if(c){var b=m(g,p,S);g[b].push(new io({shape:{cx:x,cy:w,r:_[S].coord}}))}if(f&&S<_.length-1){var b=m(y,v,S);y[b].push(new M0({shape:{cx:x,cy:w,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var C,T=Y(i,function(E,R){var z=E.getTicksCoords();return C=C==null?z.length-1:Math.min(z.length-1,C),Y(z,function(O){return n.coordToPoint(O.coord,R)})}),A=[],S=0;S<=C;S++){for(var M=[],k=0;k<i.length;k++)M.push(T[k][S]);if(M[0]&&M.push(M[0].slice()),c){var b=m(g,p,S);g[b].push(new Zr({shape:{points:M}}))}if(f&&A){var b=m(y,v,S-1);y[b].push(new Ur({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var P=l.getLineStyle(),L=u.getAreaStyle();D(y,function(E,R){this.group.add(Jn(E,{style:pe({stroke:"none",fill:v[R%v.length]},L),silent:!0}))},this),D(g,function(E,R){this.group.add(Jn(E,{style:pe({fill:"none",stroke:p[R%p.length]},P),silent:!0}))},this)},t.type="radar",t}(_t),Mpe=function(e){V(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(Bi),Dpe=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=Y(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new Mpe(o,new Ja);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(a-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(i))]},e.prototype.resize=function(t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight(),o=Math.min(i,a)/2;this.cx=K(n[0],i),this.cy=K(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(q(s)||$e(s))&&(s=[0,s]),this.r0=K(s[0],o),this.r=K(s[1],o),D(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,i=this._model;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"))!==i)){var u=s.getData();D(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new Ja;o.setExtent(0,a),o.setInterval(1),D(n,function(s,l){SH(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(i){var a=new e(i,t,r);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},e.dimensions=[],e}();function kpe(e){e.registerCoordinateSystem("radar",Dpe),e.registerComponentModel(Cpe),e.registerComponentView(Ape),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 Ppe(e){De(kpe),e.registerChartView(wpe),e.registerSeriesModel(bpe),e.registerLayout(xpe),e.registerProcessor(gp("radar")),e.registerPreprocessor(Spe)}var hR="\0_ec_interaction_mutex";function Ipe(e,t,r){var n=R2(e);n[t]=r}function Epe(e,t,r){var n=R2(e),i=n[t];i===r&&(n[t]=null)}function dR(e,t){return!!R2(e)[t]}function R2(e){return e[hR]||(e[hR]={})}Sa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Rt);var mp=function(e){V(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var i=ee(n._mousedownHandler,n),a=ee(n._mousemoveHandler,n),o=ee(n._mouseupHandler,n),s=ee(n._mousewheelHandler,n),l=ee(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=pe(me(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!VP(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!Dg("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||dR(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Xa(r.event),DH(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){VP(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=Dg("zoomOnMouseWheel",r,this._opt),i=Dg("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;xx(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),h=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);xx(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!dR(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;xx(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(ui);function xx(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(Xa(n.event),DH(e,t,r,n,i))}function DH(e,t,r,n,i){i.isAvailableBehavior=ee(Dg,null,r,n),e.trigger(t,i)}function Dg(e,t,r){var n=r[e];return!e||n&&(!q(n)||t.event[n+"Key"])}function O2(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function N2(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Lpe={axisPointer:1,tooltip:1,brush:1};function X0(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Lpe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function kH(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 Sx,Qy={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"},pR=Re(Qy),Jy={"alignment-baseline":"textBaseline","stop-color":"stopColor"},vR=Re(Jy),Rpe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=kH(t);this._defsUsePending=[];var i=new xe;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),gn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;zpe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=Z0(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=IH(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var d=i;i=new xe,i.add(d),d.scaleX=d.scaleY=f.scale,d.x=f.x,d.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new ze({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=Sx[s];if(c&&ne(Sx,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var d=gR[s];if(d&&ne(gR,s)){var p=d.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new Mc({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Vn(r,n),gn(t,n,this._defsUsePending,!1,!1),Ope(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){Sx={g:function(t,r){var n=new xe;return Vn(r,n),gn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new ze;return Vn(r,n),gn(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 io;return Vn(r,n),gn(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 Jt;return Vn(r,n),gn(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 UA;return Vn(r,n),gn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=_R(n));var a=new Ur({shape:{points:i||[]},silent:!0});return Vn(r,a),gn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=_R(n));var a=new Zr({shape:{points:i||[]},silent:!0});return Vn(r,a),gn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new cr;return Vn(r,n),gn(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new xe;return Vn(r,s),gn(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new xe;return Vn(r,s),gn(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=mV(n);return Vn(r,i),gn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),gR={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new ap(t,r,n,i);return yR(e,a),mR(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new CV(t,r,n);return yR(e,i),mR(e,i),i}};function yR(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function mR(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};PH(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Vn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),pe(t.__inheritedStyle,e.__inheritedStyle))}function _R(e){for(var t=Z0(e),r=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);r.push([i,a])}return r}function gn(e,t,r,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(Vpe(e,t),PH(e,o,s),n||Gpe(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=xR(a,"fill",o.fill,r)),o.stroke!=null&&(a.style.stroke=xR(a,"stroke",o.stroke,r)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=Y(Z0(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function Ope(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var Npe=/^url\(\s*#(.*?)\)/;function xR(e,t,r,n){var i=r&&r.match(Npe);if(i){var a=Ci(i[1]);n.push([e,t,a]);return}return r==="none"&&(r=null),r}function zpe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var Bpe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Z0(e){return e.match(Bpe)||[]}var Fpe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,bx=Math.PI/180;function Vpe(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],i=null;r.replace(Fpe,function(f,h,d){return n.push(h,d),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=Z0(o);switch(i=i||Mn(),s){case"translate":va(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":kA(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Wl(i,i,-parseFloat(l[0])*bx,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*bx);Fa(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*bx);Fa(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var SR=/([^\s:;]+)\s*:\s*([^:;]+)/g;function PH(e,t,r){var n=e.getAttribute("style");if(n){SR.lastIndex=0;for(var i;(i=SR.exec(n))!=null;){var a=i[1],o=ne(Qy,a)?Qy[a]:null;o&&(t[o]=i[2]);var s=ne(Jy,a)?Jy[a]:null;s&&(r[s]=i[2])}}}function Gpe(e,t,r){for(var n=0;n<pR.length;n++){var i=pR[n],a=e.getAttribute(i);a!=null&&(t[Qy[i]]=a)}for(var n=0;n<vR.length;n++){var i=vR[n],a=e.getAttribute(i);a!=null&&(r[Jy[i]]=a)}}function IH(e,t){var r=t.width/e.width,n=t.height/e.height,i=Math.min(r,n);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function $pe(e,t){var r=new Rpe;return r.parse(e,t)}var Hpe=ae(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Wpe=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=ae(),this._freedGraphics=[],this._mapName=t,this._parsedXML=kH(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=jpe(t.named),n=r.regions,i=r.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&$pe(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,$r(n!=null)}catch(g){throw new Error(`Invalid svg format
222
- `+g.message)}var i=new xe;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,h=void 0;if(a!=null?(u=0,f=a):s&&(u=s.x,f=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var d=n.getBoundingRect();u==null&&(u=d.x,f=d.width),c==null&&(c=d.y,h=d.height)}l=this._boundingRect=new Ae(u,c,f,h)}if(s){var p=IH(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new ze({shape:l.plain()}));var v=[];return D(r.named,function(g){Hpe.get(g.svgNodeTagLower)!=null&&(v.push(g),Upe(g.el))}),{root:i,boundingRect:l,named:v}},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 Upe(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function jpe(e){var t=[],r=ae();return D(e,function(n){if(n.namedFrom==null){var i=new Vfe(n.name,n.el);t.push(i),r.set(n.name,i)}}),{regions:t,regionsMap:r}}var Jb=[126,25],wR="南海诸岛",$s=[[[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 Os=0;Os<$s.length;Os++)for(var _u=0;_u<$s[Os].length;_u++)$s[Os][_u][0]/=10.5,$s[Os][_u][1]/=-10.5/.75,$s[Os][_u][0]+=Jb[0],$s[Os][_u][1]+=Jb[1];function Ype(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===wR)return;t.push(new M$(wR,Y($s,function(n){return{type:"polygon",exterior:n}}),Jb))}}var Xpe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Zpe(e,t){if(e==="china"){var r=Xpe[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 Kpe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function qpe(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:Kpe[0]})}var Qpe="name",Jpe=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=ae(),this._mapName=t,this._specialAreas=n,this._geoJSON=tve(r)}return e.prototype.load=function(t,r){r=r||Qpe;var n=this._parsedMap.get(r);if(!n){var i=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:i,boundingRect:eve(i)})}var a=ae(),o=[];return D(n.regions,function(s){var l=s.name;t&&ne(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Ae(0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,i;try{i=n?$fe(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
223
- `+a.message)}return Ype(r,i),D(i,function(a){var o=a.name;Zpe(r,a),qpe(r,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function eve(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 tve(e){return q(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Vf=ae();const eo={registerMap:function(e,t,r){if(t.svg){var n=new Wpe(e,t.svg);Vf.set(e,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?r=t.specialAreas:i=t;var n=new Jpe(e,i,r);Vf.set(e,n)}},getGeoResource:function(e){return Vf.get(e)},getMapForUser:function(e){var t=Vf.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Vf.get(e);if(n)return n.load(t,r)}};var z2=["rect","circle","line","ellipse","polygon","polyline","path"],rve=ae(z2),nve=ae(z2.concat(["g"])),ive=ae(z2.concat(["g"])),EH=Be();function Lv(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function bR(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var LH=function(){function e(t){var r=new xe;this.uid=qc("ec_map_draw"),this._controller=new mp(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new xe),r.add(this._svgGroup=new xe)}return e.prototype.draw=function(t,r,n,i,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),h=f.raw,d=f.roam,p=!u.childAt(0)||a;p?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):He(c,d,t);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=ae(),n=ae(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(d,p){return p&&(d=p(d)),d&&[d[0]*a.scaleX+a.x,d[1]*a.scaleY+a.y]}function f(d){for(var p=[],v=!u&&l&&l.project,g=0;g<d.length;++g){var y=c(d[g],v);y&&p.push(y)}return p}function h(d){return{shape:{points:f(d)}}}i.removeAll(),D(t.geo.regions,function(d){var p=d.name,v=r.get(p),g=n.get(p)||{},y=g.dataIdx,m=g.regionModel;v||(v=r.set(p,new xe),i.add(v),y=s?s.indexOfName(p):null,m=t.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,n.set(p,{dataIdx:y,regionModel:m}));var _=[],x=[];D(d.geometries,function(b){if(b.type==="polygon"){var C=[b.exterior].concat(b.interiors||[]);u&&(C=kR(C,u)),D(C,function(A){_.push(new Ur(h(A)))})}else{var T=b.points;u&&(T=kR(T,u,!0)),D(T,function(A){x.push(new Zr(h(A)))})}});var w=c(d.getCenter(),l&&l.project);function S(b,C){if(b.length){var T=new jA({culling:!0,segmentIgnoreThreshold:1,shape:{paths:b}});v.add(T),CR(t,T,y,m),TR(t,T,p,m,o,y,w),C&&(bR(T),D(T.states,bR))}}S(_),S(x,!0)}),r.each(function(d,p){var v=n.get(p),g=v.dataIdx,y=v.regionModel;AR(t,d,p,y,o,g),MR(t,d,p,y,o),DR(t,d,p,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 i=this._svgDispatcherMap=ae(),a=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,h=u?u.indexOfName(s):null,d=l.getRegionModel(s);if(rve.get(c)!=null&&f instanceof si&&CR(t,f,h,d),f instanceof si&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(ive.get(c)!=null&&TR(t,f,s,d,l,h,null),AR(t,f,s,d,l,h),MR(t,f,s,d,l),nve.get(c)!=null)){var p=DR(t,f,s,d,l);p==="self"&&(a=!0);var v=i.get(s)||i.set(s,[]);v.push(f)}},this),this._enableBlurEntireSVG(a,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Nl(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=eo.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=eo.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,O2(o,u.dx,u.dy),n.dispatchAction(W(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,N2(o,u.scale,u.originX,u.originY),n.dispatchAction(W(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,f){return i.containPoint([c,f])&&!X0(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=EH(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,i){var a=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){a._mouseDownFlag=!0}),r.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},e}();function CR(e,t,r,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Lv(i),u=Lv(a),c=Lv(s),f=Lv(o),h=e.data;if(h){var d=h.getItemVisual(r,"style"),p=h.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),p&&(l.decal=Pc(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,Nl(t)}function TR(e,t,r,n,i,a,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var f=l?r:a,h=void 0;(!s||a>=0)&&(h=i);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;xr(t,rr(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},d);var p=t.getTextContent();if(p&&(EH(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function AR(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Se(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function MR(e,t,r,n,i){e.data||Zc({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function DR(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ct(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Koe(t,i,r),o}function kR(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),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 ave=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new LH(i);o.add(s.group),s.draw(r,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r,n,i){var a=r.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,h=new io({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Yc+1)});if(!f){var d=r.mainSeries.getData(),p=a.getName(l),v=d.indexOfName(p),g=a.getItemModel(l),y=g.getModel("label"),m=d.getItemGraphicEl(v);xr(h,rr(g),{labelFetcher:{getFormattedLabel:function(_,x){return r.getFormattedLabel(v,x)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Iy(h,_)}}o.add(h)}}})},t.type="map",t}(at),ove=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=of(this,{coordDimensions:["value"],encodeDefaulter:be(r2,this)}),i=ae(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,!0)}var u=eo.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(c){var f=c.name;i.get(f)||a.push(f)}),n.appendValues([],a),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData(),o=this.getRawValue(r),s=a.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),h=a.mapDimension("value");isNaN(l[c].originalData.get(h,f))||u.push(l[c].name)}return nr("section",{header:u.join(", "),noHeader:!u.length,blocks:[nr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",i=Gt(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return i.setStyle(r.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(ft);function sve(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c<u;c++)s=Math.min(s,r[a][c]),l=Math.max(l,r[a][c]),o+=r[a][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function lve(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),i=n?"o"+n.id:"i"+r.getMapType();(t[i]=t[i]||[]).push(r)}),D(t,function(r,n){for(var i=sve(Y(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),a=0;a<r.length;a++)r[a].originalData=r[a].getData();for(var a=0;a<r.length;a++)r[a].seriesGroup=r,r[a].needsDrawMap=a===0&&!r[a].getHostGeoModel(),r[a].setData(i.cloneShallow()),r[a].mainSeries=r[0]})}function uve(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var i={};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,c){var f=l.getName(c),h=s.getRegion(f);if(!(!h||isNaN(u))){var d=i[f]||0,p=s.dataToPoint(h.getCenter());i[f]=d+1,l.setItemLayout(c,{point:p,offset:d})}})});var a=r.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[n]=!0}})}var PR=yr,_p=function(e){V(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Oa,n._rawTransformable=new Oa,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new Ae(r,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new Ae(r,n,i,a)},t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ae(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[K(r[0],n.getWidth()),K(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=yr([],a,r),i=yr([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),DA(this.transform||(this.transform=[]),n.transform||Mn()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Uc(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new Oa;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?PR(i,r,a):Or(i,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?PR([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,i){var a=IR(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=IR(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(Oa);function IR(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var cve={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},RH=["lng","lat"],OH=function(e){V(t,e);function t(r,n,i){var a=e.call(this,r)||this;a.dimensions=RH,a.type="geo",a._nameCoordMap=ae(),a.map=n;var o=i.projection,s=eo.load(n,i.nameMap,i.nameProperty),l=eo.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,c=cve[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var f;if(o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);f=f||d.clone(),f.union(d)}else f=s.boundingRect;return a.setBoundingRect(f.x,f.y,f.width,f.height),a.aspectScale=o?1:we(i.aspectScale,c.aspectScale),a._invertLongitute=o?!1:c.invertLongitute,a}return t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Ae(r,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(r))return n[i]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,i){if(q(r)&&(r=this.getGeoCoord(r)),r){var a=this.projection;return a&&(r=a.project(r)),r&&this.projectedToPoint(r,n,i)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,i){return e.prototype.dataToPoint.call(this,r,n,i)},t.prototype.convertToPixel=function(r,n,i){var a=ER(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=ER(n);return a===this?a.pointToData(i):null},t}(_p);Ht(OH,_p);function ER(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",Vt).models[0]||{}).coordinateSystem:null}const LR=OH;function RR(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],i=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var c=function(S,b,C,T){for(var A=C-S,M=T-b,k=0;k<=100;k++){var P=k/100,L=a.project([S+A*P,b+M*P]);ko(n,n,L),Po(i,i,L)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var f=this.getBoundingRect(),h=e.get("layoutCenter"),d=e.get("layoutSize"),p=t.getWidth(),v=t.getHeight(),g=f.width/f.height*this.aspectScale,y=!1,m,_;h&&d&&(m=[K(h[0],p),K(h[1],v)],_=K(d,Math.min(p,v)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var x;if(y)x={},g>1?(x.width=_,x.height=_/g):(x.height=_,x.width=_*g),x.y=m[1]-x.height/2,x.x=m[0]-x.width/2;else{var w=e.getBoxLayoutParams();w.aspect=g,x=Xt(w,{width:p,height:v})}this.setViewRect(x.x,x.y,x.width,x.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function fve(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var hve=function(){function e(){this.dimensions=RH}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new LR(l+s,l,W({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=RR,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),D(a,function(o,s){var l=Y(o,function(c){return c.get("nameMap")}),u=new LR(s,s,W({nameMap:CA(l)},i(o[0])));u.zoomLimit=sr.apply(null,Y(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=RR,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,fve(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ae(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=eo.load(r,n,i);return D(l.regions,function(u){var c=u.name;!o.get(c)&&a.push({name:c})}),a},e}(),NH=new hve,dve=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=eo.getGeoResource(r.map);if(a&&a.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,i),Ll(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=NH.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=pa(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new Xe(o,r,r.ecModel)),o.selected&&(i[s]=!0)),a},ae()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Xe(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var i=this.getRegionModel(r),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:r};if(he(a))return o.status=n,a(o);if(q(a))return a.replace("{a}",r??"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Le);function OR(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function B2(e,t,r,n){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(OR(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(OR(e,s),n),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var pve=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,i,a){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new LH(i));var o=this._mapDraw;o.draw(r,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,i)},t.prototype._handleRegionClick=function(r){var n;ll(r.target,function(i){return(n=Se(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=Se(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(_t);function vve(e,t,r){eo.registerMap(e,t,r)}function zH(e){e.registerCoordinateSystem("geo",NH),e.registerComponentModel(dve),e.registerComponentView(pve),e.registerImpl("registerMap",vve),e.registerImpl("getMap",function(r){return eo.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[r](i.name);var u=l.coordinateSystem;D(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];D(o,function(f,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,i){var a=r.componentType||"series";n.eachComponent({mainType:a,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=B2(s,r,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&D(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function gve(e){De(zH),e.registerChartView(ave),e.registerSeriesModel(ove),e.registerLayout(uve),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,lve),BG("map",e.registerAction)}function yve(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,i;n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function mve(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){Sve(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=wve(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function _ve(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function NR(e){return arguments.length?e:Tve}function ch(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function xve(e,t){return Xt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Sve(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function wve(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=Cx(s),a=Tx(a),s&&a;){i=Cx(i),o=Tx(o),i.hierNode.ancestor=e;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&(Cve(bve(s,e,r),e,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!Cx(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!Tx(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function Cx(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Tx(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function bve(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function Cve(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 Tve(e,t){return e.parentNode===t.parentNode?1:2}var Ave=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Mve=function(e){V(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 Ave},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=K(n.forkPosition,1),d=[];d[c]=o[c],d[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(d[0],d[1]),r.moveTo(s[0],s[1]),d[c]=s[c],r.lineTo(d[0],d[1]),d[c]=l[c],r.lineTo(d[0],d[1]),r.lineTo(l[0],l[1]);for(var p=1;p<a-1;p++){var v=i[p];r.moveTo(v[0],v[1]),d[c]=v[c],r.lineTo(d[0],d[1])}},t}(ke),Dve=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new xe,r}return t.prototype.init=function(r,n){this._controller=new mp(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,i){var a=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,i),this._updateController(r,n,i);var u=this._data;a.diff(u).add(function(c){zR(a,c)&&BR(a,c,null,s,r)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!zR(a,c)){h&&VR(u,f,h,s,r);return}BR(a,c,h,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&VR(u,c,f,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:f})})}),this._data=a},t.prototype._updateViewCoordSys=function(r,n){var i=r.getData(),a=[];i.each(function(f){var h=i.getItemLayout(f);h&&!isNaN(h.x)&&!isNaN(h.y)&&a.push([+h.x,+h.y])});var o=[],s=[];C0(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new _p;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!X0(u,i,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){O2(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){N2(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(r),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),i=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(at);function zR(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function BR(e,t,r,n,i){var a=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,h=e.getItemGraphicEl(f.dataIndex),d=f.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:d,v=o.getLayout();a?(r=new hp(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=p.x,r.y=p.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=v.rawX,r.__radialRawY=v.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,He(r,{x:v.x,y:v.y},i);var g=r.getSymbolPath();if(i.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),_=y.children.length,x=void 0,w=void 0;if(v.x===m.x&&o.isExpand===!0&&y.children.length){var S={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};x=Math.atan2(S.y-m.y,S.x-m.x),x<0&&(x=Math.PI*2+x),w=S.x<m.x,w&&(x=x-Math.PI)}else x=Math.atan2(v.y-m.y,v.x-m.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(w=v.x<m.x,w&&(x=x-Math.PI)):(w=v.x>m.x,w||(x=x-Math.PI));var b=w?"left":"right",C=s.getModel("label"),T=C.get("rotate"),A=T*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||b,rotation:T==null?-x:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),P=k==="relative"?Sy(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;P&&(Se(r).focus=P),kve(i,o,c,r,p,d,v,n),r.__edge&&(r.onHoverStateChange=function(L){if(L!=="blur"){var E=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);E&&E.hoverState===np||Iy(r.__edge,L)}})}function kve(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),h=e.get(["lineStyle","curveness"]),d=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new ip({shape:eC(c,f,h,i,i)})),He(v,{shape:eC(c,f,h,a,o)},e));else if(u==="polyline"&&c==="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])}v||(v=n.__edge=new Mve({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:d}})),He(v,{shape:{parentPoint:[o.x,o.y],childPoints:y}},e)}v&&!(u==="polyline"&&!t.isExpand)&&(v.useStyle(pe({strokeNoScale:!0,fill:null},p)),_r(v,l,"lineStyle"),Nl(v),s.add(v))}function FR(e,t,r,n,i){var a=t.tree.root,o=BH(a,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),d=n.get("edgeShape"),p=n.get("layout"),v=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(d==="curve"?ts(h,{shape:eC(p,v,g,l,l),style:{opacity:0}},n,{cb:function(){r.remove(h)},removeOpt:i}):d==="polyline"&&n.get("layout")==="orthogonal"&&ts(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(h)},removeOpt:i}))}}function BH(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 VR(e,t,r,n,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=BH(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};ts(r,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){FR(u,e,n,i,l)}),FR(a,e,n,i,l)}function eC(e,t,r,n,i){var a,o,s,l,u,c,f,h;if(e==="radial"){u=n.rawX,f=n.rawY,c=i.rawX,h=i.rawY;var d=ch(u,f),p=ch(u,f+(h-f)*r),v=ch(c,h+(f-h)*r),g=ch(c,h);return{x1:d.x||0,y1:d.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=n.x,f=n.y,c=i.x,h=i.y,(t==="LR"||t==="RL")&&(a=u+(c-u)*r,o=f,s=c+(u-c)*r,l=h),(t==="TB"||t==="BT")&&(a=u,o=f+(h-f)*r,s=c,l=h+(f-h)*r);return{x1:u,y1:f,x2:c,y2:h,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var ii=Be();function FH(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,VH(t,r,e),D(r,function(n){D(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,be(Pve,e))})}),t.wrapMethod("cloneShallow",be(Eve,e)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,be(Ive,e))}),$r(r[t.dataType]===t)}function Pve(e,t){if(Ove(this)){var r=W({},ii(this).datas);r[this.dataType]=t,VH(t,r,e)}else F2(t,this.dataType,ii(this).mainData,e);return t}function Ive(e,t){return e.struct&&e.struct.update(),t}function Eve(e,t){return D(ii(t).datas,function(r,n){r!==t&&F2(r.cloneShallow(),n,t,e)}),t}function Lve(e){var t=ii(this).mainData;return e==null||t==null?t:ii(t).datas[e]}function Rve(){var e=ii(this).mainData;return e==null?[{data:e}]:Y(Re(ii(e).datas),function(t){return{type:t,data:ii(e).datas[t]}})}function Ove(e){return ii(e).mainData===e}function VH(e,t,r){ii(e).datas={},D(t,function(n,i){F2(n,i,e,r)})}function F2(e,t,r,n){ii(r).datas[t]=e,ii(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=Lve,e.getLinkedDataAll=Rve}var Nve=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){he(t)&&(n=r,r=t,t=null),t=t||{},q(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,r,n);i==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>r&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(t);if(a)return a}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(t);if(a)return a}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),V2=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var i=new e(r),a=[],o=1;s(t);function s(c,f){var h=c.value;o=Math.max(o,j(h)?h.length:1),a.push(c);var d=new Nve(Yt(c.name,""),i);f?zve(d,f):i.root=d,i._nodes.push(d);var p=c.children;if(p)for(var v=0;v<p.length;v++)s(p[v],d)}i.root.updateDepthAndHeight(0);var l=cp(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Vr(l,r);return u.initData(a),n&&n(u),FH({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function zve(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function Ld(e,t,r){if(e&&Me(t,e.type)>=0){var n=r.getData().tree.root,i=e.targetNode;if(q(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function GH(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function G2(e,t){var r=GH(e);return Me(r,t)>=0}function K0(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 Bve=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new Xe(i,this,this.ecModel),o=V2.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,d){var p=o.getNodeByDataIndex(d);return p&&p.children.length&&p.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return nr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=K0(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ft);function Fve(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)t(a,r)}function Gf(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function Vve(e,t){e.eachSeriesByType("tree",function(r){Gve(r,t)})}function Gve(e,t){var r=xve(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=NR(function(_,x){return(_.parentNode===x.parentNode?1:2)/_.depth})):(i=r.width,a=r.height,o=NR());var s=e.getData().tree.root,l=s.children[0];if(l){yve(s),Fve(l,mve,o),s.hierNode.modifier=-l.hierNode.prelim,Gf(l,_ve);var u=l,c=l,f=l;Gf(l,function(_){var x=_.getLayout().x;x<u.getLayout().x&&(u=_),x>c.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var h=u===c?1:o(u,c)/2,d=h-u.getLayout().x,p=0,v=0,g=0,y=0;if(n==="radial")p=i/(c.getLayout().x+h+d),v=a/(f.depth-1||1),Gf(l,function(_){g=(_.getLayout().x+d)*p,y=(_.depth-1)*v;var x=ch(g,y);_.setLayout({x:x.x,y:x.y,rawX:g,rawY:y},!0)});else{var m=e.getOrient();m==="RL"||m==="LR"?(v=a/(c.getLayout().x+h+d),p=i/(f.depth-1||1),Gf(l,function(_){y=(_.getLayout().x+d)*v,g=m==="LR"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=i/(c.getLayout().x+h+d),v=a/(f.depth-1||1),Gf(l,function(_){g=(_.getLayout().x+d)*p,y=m==="TB"?(_.depth-1)*v:a-(_.depth-1)*v,_.setLayout({x:g,y},!0)}))}}}function $ve(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");W(s,o)})})}function Hve(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=B2(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Wve(e){e.registerChartView(Dve),e.registerSeriesModel(Bve),e.registerLayout(Vve),e.registerVisual($ve),Hve(e)}var GR=["treemapZoomToNode","treemapRender","treemapMove"];function Uve(e){for(var t=0;t<GR.length;t++)e.registerAction({type:GR[t],update:"updateView"},Rt);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Ld(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=G2(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function $H(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=Db(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var jve=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};HH(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Xe({itemStyle:o},this,n);a=r.levels=Yve(a,n);var l=Y(a||[],function(f){return new Xe(f,s,n)},this),u=V2.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,d){var p=u.getNodeByDataIndex(d),v=p?l[p.depth]:null;return h.parentModel=v||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return nr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=K0(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},W(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ae(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){$H(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ft);function HH(e){var t=0;D(e.children,function(n){HH(n);var i=n.value;j(i)&&(i=i[0]),t+=i});var r=e.value;j(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),j(e.value)?e.value[0]=r:e.value=r}function Yve(e,t){var r=et(t.get("color")),n=et(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(e,function(s){var l=new Xe(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var Xve=8,$R=8,Ax=5,Zve=function(){function e(t){this.group=new xe,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),z0(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=Yt(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+Xve*2,r.emptyItemWidth);r.totalWidth+=s+$R,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=rle(r.pos,r.box),h=r.totalWidth,d=r.renderList,p=i.getModel("itemStyle").getItemStyle(),v=d.length-1;v>=0;v--){var g=d[v],y=g.node,m=g.width,_=g.text;h>f.width&&(h-=m-u,m=u,_=null);var x=new Ur({shape:{points:Kve(l,0,m,c,v===d.length-1,v===0)},style:pe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ve({style:ut(a,{text:_})}),textConfig:{position:"inside"},z2:Yc*1e4,onclick:be(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=ut(o,{text:_}),x.ensureState("emphasis").style=p,Ct(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),qve(x,t,y),l+=m+$R}},e.prototype.remove=function(){this.group.removeAll()},e}();function Kve(e,t,r,n,i,a){var o=[[i?e:e-Ax,t],[e+r,t],[e+r,t+n],[i?e:e-Ax,t+n]];return!a&&o.splice(2,0,[e+r+Ax,t+n/2]),!i&&o.push([e,t+n/2]),o}function qve(e,t,r){Se(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&&K0(r,t)}}var Qve=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function Jve(){return new Qve}var tC=xe,HR=ze,WR=3,UR="label",jR="upperLabel",ege=Yc*10,tge=Yc*2,rge=Yc*3,Hs=Ol([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),YR=function(e){var t=Hs(e);return t.stroke=t.fill=t.lineWidth=null,t},em=Be(),nge=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=$f(),r}return t.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(Me(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Ld(a,s,r),u=a&&a.type,c=r.layoutInfo,f=!this._oldTree,h=this._storage,d=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,p=this._giveContainerGroup(c),v=r.get("animation"),g=this._doRender(p,r,d);v&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,r,d):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new tC,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=$f(),l=$f(),u=this._storage,c=[];function f(m,_,x,w){return ige(n,l,u,i,s,c,m,_,x,w)}v(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var h=g(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var d=this.seriesModel.layoutInfo,p=a.root.getLayout();p.width===d.width&&p.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:y};function v(m,_,x,w,S){w?(_=m,D(m,function(T,A){!T.isRemoved()&&C(A,A)})):new Qa(_,m,b,b).add(C).update(C).remove(be(C,null)).execute();function b(T){return T.getId()}function C(T,A){var M=T!=null?m[T]:null,k=A!=null?_[A]:null,P=f(M,k,x,S);P&&v(M&&M.viewChildren||[],k&&k.viewChildren||[],P,w,S+1)}}function g(m){var _=$f();return m&&D(m,function(x,w){var S=_[w];D(x,function(b){b&&(S.push(b),em(b).willDelete=!0)})}),_}function y(){D(h,function(m){D(m,function(_){_.parent&&_.parent.remove(_)})}),D(c,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(he(o)?0:o)||0,u=(he(s)?null:s)||"cubicOut",c=Jve();D(n.willDeleteEls,function(f,h){D(f,function(d,p){if(!d.invisible){var v=d.parent,g,y=em(v);if(a&&a.direction==="drillDown")g=v===a.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&&c.add(d,g,l,0,u)}})}),D(this._storage,function(f,h){D(f,function(d,p){var v=n.lastsForAnimation[h][p],g={};v&&(d instanceof xe?v.oldX!=null&&(g.x=d.x,g.y=d.y,d.x=v.oldX,d.y=v.oldY):(v.oldShape&&(g.shape=W({},d.shape),d.setShape(v.oldShape)),v.fadein?(d.setStyle("opacity",0),g.style={opacity:1}):d.style.opacity!==1&&(g.style={opacity:1})),c.add(d,g,l,0,u))})},this),this._state="animating",c.finished(ee(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new mp(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",ee(this._onPan,this)),n.on("zoom",ee(this._onZoom,this)));var a=new Ae(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},t.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>WR||Math.abs(r.dy)>WR)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Ae(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=a,u){var h=u.min||0,d=u.max||1/0;f=Math.max(Math.min(d,f),h)}var p=f/c.zoom;c.zoom=f;var v=this.seriesModel.layoutInfo;n-=v.x,i-=v.y;var g=Mn();va(g,g,[-n,-i]),kA(g,g,[p,p]),va(g,g,[n,i]),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(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&zy(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Zve(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(G2(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$f(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(at);function $f(){return{nodeGroup:[],background:[],content:[]}}function ige(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var d=c.width,p=c.height,v=c.borderWidth,g=c.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,x=c.upperHeight,w=_&&_.length,S=h.getModel("itemStyle"),b=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,M=Z("nodeGroup",tC);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),em(M).nodeWidth=d,em(M).nodeHeight=p,c.isAboveViewRoot)return M;var k=Z("background",HR,u,tge);k&&B(M,k,w&&c.upperLabelHeight);var P=h.getModel("emphasis"),L=P.get("focus"),E=P.get("blurScope"),R=P.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(w)xd(M)&&ol(M,!1),k&&(ol(k,!R),f.setItemGraphicEl(o.dataIndex,k),xb(k,z,E));else{var O=Z("content",HR,u,rge);O&&I(M,O),k.disableMorphing=!0,k&&xd(k)&&ol(k,!1),ol(M,!R),f.setItemGraphicEl(o.dataIndex,M),xb(M,z,E)}return M;function B(fe,ie,le){var ue=Se(ie);if(ue.dataIndex=o.dataIndex,ue.seriesIndex=e.seriesIndex,ie.setShape({x:0,y:0,width:d,height:p,r:A}),g)G(ie);else{ie.invisible=!1;var re=o.getVisual("style"),ce=re.stroke,_e=YR(S);_e.fill=ce;var ve=Hs(b);ve.fill=b.get("borderColor");var Oe=Hs(C);Oe.fill=C.get("borderColor");var Je=Hs(T);if(Je.fill=T.get("borderColor"),le){var pt=d-2*v;U(ie,ce,re.opacity,{x:v,y:0,width:pt,height:x})}else ie.removeTextContent();ie.setStyle(_e),ie.ensureState("emphasis").style=ve,ie.ensureState("blur").style=Oe,ie.ensureState("select").style=Je,Nl(ie)}fe.add(ie)}function I(fe,ie){var le=Se(ie);le.dataIndex=o.dataIndex,le.seriesIndex=e.seriesIndex;var ue=Math.max(d-2*v,0),re=Math.max(p-2*v,0);if(ie.culling=!0,ie.setShape({x:v,y:v,width:ue,height:re,r:A}),g)G(ie);else{ie.invisible=!1;var ce=o.getVisual("style"),_e=ce.fill,ve=YR(S);ve.fill=_e,ve.decal=ce.decal;var Oe=Hs(b),Je=Hs(C),pt=Hs(T);U(ie,_e,ce.opacity,null),ie.setStyle(ve),ie.ensureState("emphasis").style=Oe,ie.ensureState("blur").style=Je,ie.ensureState("select").style=pt,Nl(ie)}fe.add(ie)}function G(fe){!fe.invisible&&a.push(fe)}function U(fe,ie,le,ue){var re=h.getModel(ue?jR:UR),ce=Yt(h.get("name"),null),_e=re.getShallow("show");xr(fe,rr(h,ue?jR:UR),{defaultText:_e?ce:null,inheritColor:ie,defaultOpacity:le,labelFetcher:e,labelDataIndex:o.dataIndex});var ve=fe.getTextContent();if(ve){var Oe=ve.style,Je=AA(Oe.padding||0);ue&&(fe.setTextConfig({layoutRect:ue}),ve.disableLabelLayout=!0),ve.beforeUpdate=function(){var zt=Math.max((ue?ue.width:fe.shape.width)-Je[1]-Je[3],0),kt=Math.max((ue?ue.height:fe.shape.height)-Je[0]-Je[2],0);(Oe.width!==zt||Oe.height!==kt)&&ve.setStyle({width:zt,height:kt})},Oe.truncateMinChar=2,Oe.lineOverflow="truncate",N(Oe,ue,c);var pt=ve.getState("emphasis");N(pt?pt.style:null,ue,c)}}function N(fe,ie,le){var ue=fe?fe.text:null;if(!ie&&le.isLeafRoot&&ue!=null){var re=e.get("drillDownIcon",!0);fe.text=re?re+" "+ue:ue}}function Z(fe,ie,le,ue){var re=m!=null&&r[fe][m],ce=i[fe];return re?(r[fe][m]=null,oe(ce,re)):g||(re=new ie,re instanceof si&&(re.z2=age(le,ue)),te(ce,re)),t[fe][y]=re}function oe(fe,ie){var le=fe[y]={};ie instanceof tC?(le.oldX=ie.x,le.oldY=ie.y):le.oldShape=W({},ie.shape)}function te(fe,ie){var le=fe[y]={},ue=o.parentNode,re=ie instanceof xe;if(ue&&(!n||n.direction==="drillDown")){var ce=0,_e=0,ve=i.background[ue.getRawIndex()];!n&&ve&&ve.oldShape&&(ce=ve.oldShape.width,_e=ve.oldShape.height),re?(le.oldX=0,le.oldY=_e):le.oldShape={x:ce,y:_e,width:0,height:0}}le.fadein=!re}}function age(e,t){return e*ege+t}var Rd=D,oge=ge,tm=-1,tr=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=me(t);this.type=n,this.mappingMethod=r,this._normalizeData=uge[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(Mx(i),sge(i)):r==="category"?i.categories?lge(i):Mx(i,!0):($r(r!=="linear"||i.dataExtent),Mx(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ee(this._normalizeData,this)},e.listVisualTypes=function(){return Re(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){ge(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=j(t)?[]:ge(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Rd(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(j(t))t=t.slice();else if(oge(t)){var r=[];Rd(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||q(l)&&l===t+"")return o;n&&h(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Ov(f[1],t,c[1]))return o}else if(c[1]===1/0){if(Ov(f[0],c[0],t))return o}else if(Ov(f[0],c[0],t)&&Ov(f[1],t,c[1]))return o;n&&h(c[0],o),n&&h(c[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:i;function h(d,p){var v=Math.abs(d-t);v<a&&(a=v,i=p)}},e.visualHandlers={color:{applyVisual:Hf("color"),getColorMapper:function(){var t=this.option;return ee(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),fh.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=o_(r,t.parsedVisual,i),a?i:Va(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Va(o_(t,this.option.parsedVisual),"rgba")},category:fh,piecewise:function(t,r){var n=nC.call(this,r);return n==null&&(n=Va(o_(t,this.option.parsedVisual),"rgba")),n},fixed:Ws}},colorHue:Rv(function(t,r){return kh(t,r)}),colorSaturation:Rv(function(t,r){return kh(t,null,r)}),colorLightness:Rv(function(t,r){return kh(t,null,null,r)}),colorAlpha:Rv(function(t,r){return Ty(t,r)}),decal:{applyVisual:Hf("decal"),_normalizedToVisual:{linear:null,category:fh,piecewise:null,fixed:null}},opacity:{applyVisual:Hf("opacity"),_normalizedToVisual:rC([0,1])},liftZ:{applyVisual:Hf("liftZ"),_normalizedToVisual:{linear:Ws,category:Ws,piecewise:Ws,fixed:Ws}},symbol:{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:XR,category:fh,piecewise:function(t,r){var n=nC.call(this,r);return n==null&&(n=XR.call(this,t)),n},fixed:Ws}},symbolSize:{applyVisual:Hf("symbolSize"),_normalizedToVisual:rC([0,1])}},e}();function sge(e){var t=e.pieceList;e.hasSpecialVisual=!1,D(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function lge(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(Rd(t,function(o,s){r[o]=s}),!j(n)){var i=[];ge(n)?Rd(n,function(o,s){var l=r[s];i[l??tm]=o}):i[tm]=n,n=WH(e,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function Mx(e,t){var r=e.visual,n=[];ge(r)?Rd(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),WH(e,n)}function Rv(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:rC([0,1])}}function XR(e){var t=this.option.visual;return t[Math.round(Ke(e,[0,1],[0,t.length-1],!0))]||{}}function Hf(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function fh(e){var t=this.option.visual;return t[this.option.loop&&e!==tm?e%t.length:e]}function Ws(){return this.option.visual[0]}function rC(e){return{linear:function(t){return Ke(t,e,this.option.visual,!0)},category:fh,piecewise:function(t,r){var n=nC.call(this,r);return n==null&&(n=Ke(t,e,this.option.visual,!0)),n},fixed:Ws}}function nC(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=tr.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function WH(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Y(t,function(r){var n=Dn(r);return n||[0,0,0,1]})),t}var uge={linear:function(e){return Ke(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=tr.findPieceIndex(e,t,!0);if(r!=null)return Ke(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??tm},fixed:Rt};function Ov(e,t,r){return e?t<=r:t<r}var cge="itemStyle",UH=Be();const fge={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||jH(r,{},e.getViewRoot().getAncestors(),e)}};function jH(e,t,r,n){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(cge),l=hge(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),h;f!=null&&(h=ZR(l),c=dge(f,h)),u.stroke=c;var d=e.viewChildren;if(!d||!d.length)h=ZR(l),u.fill=h;else{var p=pge(e,i,a,s,l,d);D(d,function(v,g){if(v.depth>=r.length||v===r[v.depth]){var y=vge(i,l,v,g,p,n);jH(v,y,r,n)}})}}}function hge(e,t,r){var n=W({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function ZR(e){var t=Dx(e,"color");if(t){var r=Dx(e,"colorAlpha"),n=Dx(e,"colorSaturation");return n&&(t=kh(t,null,null,n)),r&&(t=Ty(t,r)),t}}function dge(e,t){return t!=null?kh(t,null,null,e):null}function Dx(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function pge(e,t,r,n,i,a){if(!(!a||!a.length)){var o=kx(t,"color")||i.color!=null&&i.color!=="none"&&(kx(t,"colorAlpha")||kx(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new tr(f);return UH(h).drColorMappingBy=c,h}}}function kx(e,t){var r=e.get(t);return j(r)&&r.length?{name:t,range:r}:null}function vge(e,t,r,n,i,a){var o=W({},t);if(i){var s=i.type,l=s==="color"&&UH(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Od=Math.max,rm=Math.min,KR=sr,$2=D,YH=["itemStyle","borderWidth"],gge=["itemStyle","gapWidth"],yge=["upperLabel","show"],mge=["upperLabel","height"];const _ge={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=Xt(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=K(KR(s.width,l[0]),i),c=K(KR(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=Ld(n,h,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=GH(v);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Tge(e,d,v,u,c):p?[p.width,p.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};v.setLayout(x),XH(v,_,!1,0),x=v.getLayout(),$2(g,function(S,b){var C=(g[b+1]||v).getValue();S.setLayout(W({dataExtent:[C,C],borderWidth:0,upperHeight:0},x))})}var w=e.getData().tree.root;w.setLayout(Age(s,p,d),!0),e.setLayoutInfo(s),ZH(w,new Ae(-s.x,-s.y,i,a),g,v,0)}};function XH(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(YH),u=s.get(gge)/2,c=KH(s),f=Math.max(l,c),h=l-u,d=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Od(i-2*h,0),a=Od(a-h-d,0);var p=i*a,v=xge(e,s,p,t,r,n);if(v.length){var g={x:h,y:d,width:i,height:a},y=rm(i,a),m=1/0,_=[];_.area=0;for(var x=0,w=v.length;x<w;){var S=v[x];_.push(S),_.area+=S.getLayout().area;var b=Cge(_,y,t.squareRatio);b<=m?(x++,m=b):(_.area-=_.pop().getLayout().area,qR(_,y,g,u,!1),y=rm(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&qR(_,y,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&p<C&&(r=!0)}for(var x=0,w=v.length;x<w;x++)XH(v[x],t,r,n+1)}}}function xge(e,t,r,n,i,a){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return e.viewChildren=[];o=qe(o,function(d){return!d.isRemoved()}),wge(o,s);var u=bge(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=Sge(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var h=o[c].getValue()/u.sum*r;o[c].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 Sge(e,t,r,n,i){if(!n)return r;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*t<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function wge(e,t){return t&&e.sort(function(r,n){var i=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),e}function bge(e,t,r){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],$2(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 Cge(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Od(u*n/l,l/(u*i)):1/0}function qR(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,h=e.length;f<h;f++){var d=e[f],p={},v=c?d.getLayout().area/c:0,g=p[l[o]]=Od(c-2*n,0),y=r[s[a]]+r[l[a]]-u,m=f===h-1||y<v?y:v,_=p[l[a]]=Od(m-2*n,0);p[s[o]]=r[s[o]]+rm(n,g/2),p[s[a]]=u+rm(n,_/2),u+=m,d.setLayout(p,!0)}r[s[o]]+=c,r[l[o]]-=c}function Tge(e,t,r,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===r)return o;for(var s,l=n*i,u=l*e.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,f=s.children,h=0,d=f.length;h<d;h++)c+=f[h].getValue();var p=a.getValue();if(p===0)return o;u*=c/p;var v=s.getModel(),g=v.get(YH),y=Math.max(g,KH(v));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>cI&&(u=cI),a=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,i*m]}function Age(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function ZH(e,t,r,n,i){var a=e.getLayout(),o=r[i],s=o&&o===e;if(!(o&&!s||i===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new Ae(t.x-a.x,t.y-a.y,t.width,t.height);$2(e.viewChildren||[],function(u){ZH(u,l,r,n,i+1)})}}function KH(e){return e.get(yge)?e.get(mge):0}function Mge(e){e.registerSeriesModel(jve),e.registerChartView(nge),e.registerVisual(fge),e.registerLayout(_ge),Uve(e)}function Dge(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){$e(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function kge(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var h=l.getShallow(c[f],!0);h!=null&&n.setItemVisual(o,c[f],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){q(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");W(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++)i.setItemVisual(o,f[h],n.getItemVisual(l,f[h]))}})})}function Nv(e){return e instanceof Array||(e=[e,e]),e}function Pge(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),i=Nv(t.get("edgeSymbol")),a=Nv(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=Nv(s.getShallow("symbol",!0)),c=Nv(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(W(h,f),h.stroke){case"source":{var d=l.node1.getVisual("style");h.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");h.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var iC="-->",q0=function(e){return e.get("autoCurveness")||null},qH=function(e,t){var r=q0(e),n=20,i=[];if($e(r))n=r;else if(j(r)){e.__curvenessList=r;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},Nd=function(e,t,r){var n=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[r.uid,n,i].join(iC)},QH=function(e){var t=e.split(iC);return[t[0],t[2],t[1]].join(iC)},Ige=function(e,t){var r=Nd(e.node1,e.node2,t);return t.__edgeMap[r]},Ege=function(e,t){var r=aC(Nd(e.node1,e.node2,t),t),n=aC(Nd(e.node2,e.node1,t),t);return r+n},aC=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function Lge(e){q0(e)&&(e.__curvenessList=[],e.__edgeMap={},qH(e))}function Rge(e,t,r,n){if(q0(r)){var i=Nd(e,t,r),a=r.__edgeMap,o=a[QH(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function H2(e,t,r,n){var i=q0(t),a=j(i);if(!i)return null;var o=Ige(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=Ege(e,t);qH(t,u),e.lineStyle=e.lineStyle||{};var c=Nd(e.node1,e.node2,t),f=t.__curvenessList,h=a||u%2?0:1;if(o.isForward)return f[h+s];var d=QH(c),p=aC(d,t),v=f[s+p+h];return n?a?i&&i[0]===0?(p+h)%2?v:-v:((p%2?0:1)+h)%2?v:-v:(p+h)%2?v:-v:f[s+p+h]}function JH(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),W2(r,e)}}function W2(e,t){e.eachEdge(function(r,n){var i=fa(r.getModel().get(["lineStyle","curveness"]),-H2(r,t,n,!0),0),a=Ba(r.node1.getLayout()),o=Ba(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}function Oge(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];D(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=a.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}W2(a.graph,r)}else(!n||n==="none")&&JH(r)})}function hh(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*r+1;return a/n}function dh(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var QR=Math.PI,Px=[];function U2(e,t,r,n){var i=e.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(r){var h=i.pointToData(n),d=h[0],p=h[1],v=[d-l,p-u];Wc(v,v),pg(v,v,c),r.setLayout([l+v[0],u+v[1]],!0);var g=e.get(["circular","rotateLabel"]);e6(r,g,l,u)}Nge[t](e,s,o,c,l,u,f),s.eachEdge(function(y,m){var _=fa(y.getModel().get(["lineStyle","curveness"]),H2(y,e,m),0),x=Ba(y.node1.getLayout()),w=Ba(y.node2.getLayout()),S,b=(x[0]+w[0])/2,C=(x[1]+w[1])/2;+_&&(_*=3,S=[l*_+b*(1-_),u*_+C*(1-_)]),y.setLayout([x,w,S])})}}}var Nge={value:function(e,t,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),h=u*(l?f:1)/2;s+=h,c.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(e,t,r,n,i,a,o){var s=0;Px.length=o;var l=hh(e);t.eachNode(function(f){var h=dh(f);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var d=Math.asin(h/2/n);isNaN(d)&&(d=QR/2),Px[f.dataIndex]=d,s+=d*2});var u=(2*QR-s)/o/2,c=0;t.eachNode(function(f){var h=u+Px[f.dataIndex];c+=h,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=h})}};function e6(e,t,r,n){var i=e.getGraphicEl();if(i){var a=e.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var h=s.ensureState("emphasis");W(h.textConfig||(h.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function zge(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&U2(t,"symbolSize")})}var xu=Uw;function Bge(e,t,r){for(var n=e,i=t,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=Hl(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Ba(f.p),f.edges=null}var h=r.friction==null?.6:r.friction,d=h,p,v;return{warmUp:function(){d=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){v=g},step:function(g){p&&p(n,i);for(var y=[],m=n.length,_=0;_<i.length;_++){var x=i[_];if(!x.ignoreForceLayout){var w=x.n1,S=x.n2;il(y,S.p,w.p);var b=jw(y)-x.d,C=S.w/(w.w+S.w);isNaN(C)&&(C=0),Wc(y,y),!w.fixed&&xu(w.p,w.p,y,C*b*d),!S.fixed&&xu(S.p,S.p,y,-(1-C)*b*d)}}for(var _=0;_<m;_++){var T=n[_];T.fixed||(il(y,l,T.p),xu(T.p,T.p,y,u*d))}for(var _=0;_<m;_++)for(var w=n[_],A=_+1;A<m;A++){var S=n[A];il(y,S.p,w.p);var b=jw(y);b===0&&(sie(y,Math.random()-.5,Math.random()-.5),b=1);var M=(w.rep+S.rep)/b/b;!w.fixed&&xu(w.pp,w.pp,y,M),!S.fixed&&xu(S.pp,S.pp,y,-M)}for(var k=[],_=0;_<m;_++){var T=n[_];T.fixed||(il(k,T.p,T.pp),xu(T.p,T.p,k,d),Or(T.pp,T.p))}d=d*.992;var P=d<.01;v&&v(n,i,P),g&&g(P)}}}function Fge(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(_){var x=a.getId(_);a.setItemLayout(_,n[x]||[NaN,NaN])}):!l||l==="none"?JH(t):l==="circular"&&U2(t,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),h=s.get("edgeLength"),d=j(f)?f:[f,f],p=j(h)?h:[h,h];p=[p[1],p[0]];var v=a.mapArray("value",function(_,x){var w=a.getItemLayout(x),S=Ke(_,u,d);return isNaN(S)&&(S=(d[0]+d[1])/2),{w:S,rep:S,fixed:a.getItemModel(x).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),g=o.mapArray("value",function(_,x){var w=i.getEdgeByIndex(x),S=Ke(_,c,p);isNaN(S)&&(S=(p[0]+p[1])/2);var b=w.getModel(),C=fa(w.getModel().get(["lineStyle","curveness"]),-H2(w,t,x,!0),0);return{n1:v[w.node1.dataIndex],n2:v[w.node2.dataIndex],d:S,curveness:C,ignoreForceLayout:b.get("ignoreForceLayout")}}),y=r.getBoundingRect(),m=Bge(v,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,x){for(var w=0,S=_.length;w<S;w++)_[w].fixed&&Or(_[w].p,i.getNodeByIndex(w).getLayout())}),m.afterStep(function(_,x,w){for(var S=0,b=_.length;S<b;S++)_[S].fixed||i.getNodeByIndex(S).setLayout(_[S].p),n[a.getId(S)]=_[S].p;for(var S=0,b=x.length;S<b;S++){var C=x[S],T=i.getEdgeByIndex(S),A=C.n1.p,M=C.n2.p,k=T.getLayout();k=k?k.slice():[],k[0]=k[0]||[],k[1]=k[1]||[],Or(k[0],A),Or(k[1],M),+C.curveness&&(k[2]=[(A[0]+M[0])/2-(A[1]-M[1])*C.curveness,(A[1]+M[1])/2-(M[0]-A[0])*C.curveness]),T.setLayout(k)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function Vge(e,t,r){var n=W(e.getBoxLayoutParams(),{aspect:r});return Xt(n,{width:t.getWidth(),height:t.getHeight()})}function Gge(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(g){var y=a.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];C0(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=Vge(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],h=l[1]-s[1],d=c.width,p=c.height,v=n.coordinateSystem=new _p;v.zoomLimit=n.get("scaleLimit"),v.setBoundingRect(s[0],s[1],f,h),v.setViewRect(c.x,c.y,d,p),v.setCenter(n.get("center"),t),v.setZoom(n.get("zoom")),r.push(v)}}),r}var JR=Jt.prototype,Ix=ip.prototype,t6=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(t6);function Ex(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var $ge=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new t6},t.prototype.buildPath=function(r,n){Ex(n)?JR.buildPath.call(this,r,n):Ix.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return Ex(this.shape)?JR.pointAt.call(this,r):Ix.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,i=Ex(n)?[n.x2-n.x1,n.y2-n.y1]:Ix.tangentAt.call(this,r);return Wc(i,i)},t}(ke),Lx=["fromSymbol","toSymbol"];function eO(e){return"_"+e+"Type"}function tO(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=nf(i),u=jl(o||0,l);return n+l+u+(a||"")+(s||"")}function rO(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=nf(i),u=jl(o||0,l),c=Gt(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function Hge(e){var t=new $ge({name:"line",subPixelOptimize:!0});return oC(t.shape,e),t}function oC(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 j2=function(e){V(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createLine(r,n,i),a}return t.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=Hge(o);s.shape.percent=0,vt(s,{shape:{percent:1}},a,n),this.add(s),D(Lx,function(l){var u=rO(l,r,n);this.add(u),this[eO(l)]=tO(l,r,n)},this),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};oC(l.shape,s),He(o,l,a,n),D(Lx,function(u){var c=tO(u,r,n),f=eO(u);if(this[f]!==c){this.remove(this.childOfName(u));var h=rO(u,r,n);this.add(h)}this[f]=c},this),this._updateCommonStl(r,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,h=i&&i.focus,d=i&&i.blurScope;if(!i||r.hasItemOption){var p=r.getItemModel(n),v=p.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),f=v.get("disabled"),h=v.get("focus"),d=v.get("blurScope"),c=rr(p)}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(Lx,function(S){var b=this.childOfName(S);if(b){b.setColor(y),b.style.opacity=g.opacity;for(var C=0;C<Hr.length;C++){var T=Hr[C],A=o.getState(T);if(A){var M=A.style||{},k=b.ensureState(T),P=k.style||(k.style={});M.stroke!=null&&(P[b.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(P.opacity=M.opacity)}}b.markRedraw()}},this);var m=a.getRawValue(n);xr(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(S,b){return a.getFormattedLabel(S,b,r.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?r.getName(n):isFinite(m)?At(m):m)+""});var _=this.getTextContent();if(_){var x=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var w=x.get("distance");j(w)||(w=[w,w]),_.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Ct(this,h,d,f)},t.prototype.highlight=function(){Ka(this)},t.prototype.downplay=function(){qa(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");oC(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),h=il([],f,c);Wc(h,h);function d(A,M){var k=A.__specifiedRotation;if(k==null){var P=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else A.attr("rotation",k)}if(n&&(n.setPosition(c),d(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(f),d(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var p=void 0,v=void 0,g=a.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,x=l.tangentAt(_),w=[x[1],-x[0]],S=l.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var b=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(x[1],x[0]);f[0]<c[0]&&(C=Math.PI+C),a.rotation=C}var T=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-m,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=m,v="top";break;default:T=0,v="middle"}switch(a.__position){case"end":a.x=h[0]*y+f[0],a.y=h[1]*m+f[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",v=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*y+c[0],a.y=-h[1]*m+c[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",v=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*b+c[0],a.y=c[1]+T,p=x[0]<0?"right":"left",a.originX=-y*b,a.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=S[0],a.y=S[1]+T,p="center",a.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*b+f[0],a.y=f[1]+T,p=x[0]>=0?"right":"left",a.originX=y*b,a.originY=-T;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||p})}},t}(xe),Y2=function(){function e(t){this.group=new xe,this._LineCtor=t||j2}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=nO(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=nO(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!Wge(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=r.getItemLayout(i);if(Rx(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){cs(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var i=t.getItemLayout(r);if(Rx(i)){var a=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,n,i,a){var o=t.getItemGraphicEl(n);if(!Rx(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},e}();function Wge(e){return e.animators&&e.animators.length>0}function nO(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:rr(t)}}function iO(e){return isNaN(e[0])||isNaN(e[1])}function Rx(e){return e&&!iO(e[0])&&!iO(e[1])}var Ox=[],Nx=[],zx=[],Su=or,Bx=vl,aO=Math.abs;function oO(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){Ox[0]=Su(n[0],i[0],a[0],c),Ox[1]=Su(n[1],i[1],a[1],c);var f=aO(Bx(Ox,t)-l);f<o&&(o=f,s=c)}for(var h=0;h<32;h++){var d=s+u;Nx[0]=Su(n[0],i[0],a[0],s),Nx[1]=Su(n[1],i[1],a[1],s),zx[0]=Su(n[0],i[0],a[0],d),zx[1]=Su(n[1],i[1],a[1],d);var f=Bx(Nx,t)-l;if(aO(f)<.01)break;var p=Bx(zx,t)-l;u/=2,f<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Fx(e,t){var r=[],n=pd,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Ba(u[0]),Ba(u[1])],u[2]&&u.__original.push(Ba(u[2])));var h=u.__original;if(u[2]!=null){if(Or(i[0],h[0]),Or(i[1],h[2]),Or(i[2],h[1]),c&&c!=="none"){var d=dh(s.node1),p=oO(i,h[0],d*t);n(i[0][0],i[1][0],i[2][0],p,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],p,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var d=dh(s.node2),p=oO(i,h[1],d*t);n(i[0][0],i[1][0],i[2][0],p,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],p,r),i[1][1]=r[1],i[2][1]=r[2]}Or(u[0],i[0]),Or(u[1],i[2]),Or(u[2],i[1])}else{if(Or(a[0],h[0]),Or(a[1],h[1]),il(o,a[1],a[0]),Wc(o,o),c&&c!=="none"){var d=dh(s.node1);Uw(a[0],a[0],o,d*t)}if(f&&f!=="none"){var d=dh(s.node2);Uw(a[1],a[1],o,-d*t)}Or(u[0],a[0]),Or(u[1],a[1])}})}function sO(e){return e.type==="view"}var Uge=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new dp,a=new Y2,o=this.group;this._controller=new mp(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(sO(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):He(u,c,r)}Fx(r.getGraph(),hh(r));var f=r.getData();s.updateData(f);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var d=r.forceLayout,p=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,p);var v=r.get("layout");f.graph.eachNode(function(_){var x=_.dataIndex,w=_.getGraphicEl(),S=_.getModel();if(w){w.off("drag").off("dragend");var b=S.get("draggable");b&&w.on("drag",function(T){switch(v){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,p),d.setFixed(x),f.setItemLayout(x,[w.x,w.y]);break;case"circular":f.setItemLayout(x,[w.x,w.y]),_.setLayout({fixed:!0},!0),U2(r,"symbolSize",_,[T.offsetX,T.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(x,[w.x,w.y]),W2(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),w.setDraggable(b,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(Se(w).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var x=_.getGraphicEl(),w=_.getModel().get(["emphasis","focus"]);x&&w==="adjacency"&&(Se(x).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),y=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(_){e6(_,g,y,m)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!X0(u,i,r)}),!sO(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){O2(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){N2(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),Fx(r.getGraph(),hh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=hh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){Fx(r.getGraph(),hh(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(at);function wu(e){return"_EC_"+e}var jge=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[wu(t)]){var i=new Us(t,r);return i.hostGraph=this,this.nodes.push(i),n[wu(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[wu(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if($e(t)&&(t=this.nodes[t]),$e(r)&&(r=this.nodes[r]),t instanceof Us||(t=i[wu(t)]),r instanceof Us||(r=i[wu(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new r6(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Us&&(t=t.id),r instanceof Us&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof Us||(r=this._nodesMap[wu(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(i,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)t.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),Us=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=ae(),r=ae(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,r.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:r.keys()}},e}(),r6=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=ae(),r=ae();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:r.keys()}},e}();function n6(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)}}}Ht(Us,n6("hostGraph","data"));Ht(r6,n6("hostGraph","edgeData"));function i6(e,t,r,n,i){for(var a=new jge(n),o=0;o<e.length;o++)a.addNode(sr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,h=c.target;a.addEdge(f,h,u)&&(l.push(c),s.push(sr(Yt(c.id,null),f+" > "+h)),u++)}var d=r.get("coordinateSystem"),p;if(d==="cartesian2d"||d==="polar")p=ao(e,r);else{var v=lp.get(d),g=v?v.dimensions||[]:[];Me(g,"value")<0&&g.concat(["value"]);var y=cp(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new Vr(y,r),p.initData(e)}var m=new Vr(["value"],r);return m.initData(l,s),i&&i(p,m),FH({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Yge=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new yp(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Ll(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){Lge(this);var s=i6(a,i,this,!0,l);return D(s.edges,function(u){Rge(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),y=v[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var f=Xe.prototype.getModel;function h(p,v){var g=f.call(this,p,v);return g.resolveParentPath=d,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=d,p.getModel=h,p});function d(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),nr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=DG({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Y(this.option.categories||[],function(i){return i.value!=null?i:W({value:0},i)}),n=new Vr(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ft),Xge={type:"graphRoam",event:"graphRoam",update:"none"};function Zge(e){e.registerChartView(Uge),e.registerSeriesModel(Yge),e.registerProcessor(Dge),e.registerVisual(kge),e.registerVisual(Pge),e.registerLayout(Oge),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,zge),e.registerLayout(Fge),e.registerCoordinateSystem("graphView",{dimensions:_p.dimensions,create:Gge}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Rt),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Rt),e.registerAction(Xge,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=B2(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Kge=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),qge=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new Kge},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(ke);function Qge(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=K(r[0],t.getWidth()),s=K(r[1],t.getHeight()),l=K(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function zv(e,t){var r=e==null?"":e+"";return t&&(q(t)?r=t.replace("{value}",r):he(t)&&(r=t(e))),r}var Jge=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=Qge(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),h=f.get("roundCap"),d=h?qy:Wr,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),y=[u,c];BA(y,!l),u=y[0],c=y[1];for(var m=c-u,_=u,x=[],w=0;p&&w<a.length;w++){var S=Math.min(Math.max(a[w][0],0),1);c=u+m*S;var b=new d({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});b.setStyle({fill:a[w][1]}),b.setStyle(v.getLineStyle(["color","width"])),x.push(b),_=c}x.reverse(),D(x,function(T){return s.add(T)});var C=function(T){if(T<=0)return a[0][1];var A;for(A=0;A<a.length;A++)if(a[A][0]>=T&&(A===0?0:a[A-1][0])<T)return a[A][1];return a[A-1][1]};this._renderTicks(r,n,i,C,o,u,c,l,g),this._renderTitleAndDetail(r,n,i,C,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,C,o,u,c,l,g)},t.prototype._renderTicks=function(r,n,i,a,o,s,l,u,c){for(var f=this.group,h=o.cx,d=o.cy,p=o.r,v=+r.get("min"),g=+r.get("max"),y=r.getModel("splitLine"),m=r.getModel("axisTick"),_=r.getModel("axisLabel"),x=r.get("splitNumber"),w=m.get("splitNumber"),S=K(y.get("length"),p),b=K(m.get("length"),p),C=s,T=(l-s)/x,A=T/w,M=y.getModel("lineStyle").getLineStyle(),k=m.getModel("lineStyle").getLineStyle(),P=y.get("distance"),L,E,R=0;R<=x;R++){if(L=Math.cos(C),E=Math.sin(C),y.get("show")){var z=P?P+c:c,O=new Jt({shape:{x1:L*(p-z)+h,y1:E*(p-z)+d,x2:L*(p-S-z)+h,y2:E*(p-S-z)+d},style:M,silent:!0});M.stroke==="auto"&&O.setStyle({stroke:a(R/x)}),f.add(O)}if(_.get("show")){var z=_.get("distance")+P,B=zv(At(R/x*(g-v)+v),_.get("formatter")),I=a(R/x),G=L*(p-S-z)+h,U=E*(p-S-z)+d,N=_.get("rotate"),Z=0;N==="radial"?(Z=-C+2*Math.PI,Z>Math.PI/2&&(Z+=Math.PI)):N==="tangential"?Z=-C-Math.PI/2:$e(N)&&(Z=N*Math.PI/180),Z===0?f.add(new Ve({style:ut(_,{text:B,x:G,y:U,verticalAlign:E<-.8?"top":E>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:I}),silent:!0})):f.add(new Ve({style:ut(_,{text:B,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:I}),silent:!0,originX:G,originY:U,rotation:Z}))}if(m.get("show")&&R!==x){var z=m.get("distance");z=z?z+c:c;for(var oe=0;oe<=w;oe++){L=Math.cos(C),E=Math.sin(C);var te=new Jt({shape:{x1:L*(p-z)+h,y1:E*(p-z)+d,x2:L*(p-b-z)+h,y2:E*(p-b-z)+d},silent:!0,style:k});k.stroke==="auto"&&te.setStyle({stroke:a((R+oe/w)/x)}),f.add(te),C+=A}C-=A}else C+=T}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,d=this._progressEls,p=[],v=r.get(["pointer","show"]),g=r.getModel("progress"),y=g.get("show"),m=r.getData(),_=m.mapDimension("value"),x=+r.get("min"),w=+r.get("max"),S=[x,w],b=[s,l];function C(A,M){var k=m.getItemModel(A),P=k.getModel("pointer"),L=K(P.get("width"),o.r),E=K(P.get("length"),o.r),R=r.get(["pointer","icon"]),z=P.get("offsetCenter"),O=K(z[0],o.r),B=K(z[1],o.r),I=P.get("keepAspect"),G;return R?G=Gt(R,O-L/2,B-E,L,E,null,I):G=new qge({shape:{angle:-Math.PI/2,width:L,r:E,x:O,y:B}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function T(A,M){var k=g.get("roundCap"),P=k?qy:Wr,L=g.get("overlap"),E=L?g.get("width"):c/m.count(),R=L?o.r-E:o.r-(A+1)*E,z=L?o.r:o.r-A*E,O=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:z}});return L&&(O.z2=w-m.get(_,A)%w),O}(y||v)&&(m.diff(h).add(function(A){var M=m.get(_,A);if(v){var k=C(A,s);vt(k,{rotation:-((isNaN(+M)?b[0]:Ke(M,S,b,!0))+Math.PI/2)},r),f.add(k),m.setItemGraphicEl(A,k)}if(y){var P=T(A,s),L=g.get("clip");vt(P,{shape:{endAngle:Ke(M,S,b,L)}},r),f.add(P),yb(r.seriesIndex,m.dataType,A,P),p[A]=P}}).update(function(A,M){var k=m.get(_,A);if(v){var P=h.getItemGraphicEl(M),L=P?P.rotation:s,E=C(A,L);E.rotation=L,He(E,{rotation:-((isNaN(+k)?b[0]:Ke(k,S,b,!0))+Math.PI/2)},r),f.add(E),m.setItemGraphicEl(A,E)}if(y){var R=d[M],z=R?R.shape.endAngle:s,O=T(A,z),B=g.get("clip");He(O,{shape:{endAngle:Ke(k,S,b,B)}},r),f.add(O),yb(r.seriesIndex,m.dataType,A,O),p[A]=O}}).execute(),m.each(function(A){var M=m.getItemModel(A),k=M.getModel("emphasis"),P=k.get("focus"),L=k.get("blurScope"),E=k.get("disabled");if(v){var R=m.getItemGraphicEl(A),z=m.getItemVisual(A,"style"),O=z.fill;if(R instanceof cr){var B=R.style;R.useStyle(W({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},z))}else R.useStyle(z),R.type!=="pointer"&&R.setColor(O);R.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",a(Ke(m.get(_,A),S,[0,1],!0))),R.z2EmphasisLift=0,_r(R,M),Ct(R,P,L,E)}if(y){var I=p[A];I.useStyle(m.getItemVisual(A,"style")),I.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),I.z2EmphasisLift=0,_r(I,M),Ct(I,P,L,E)}}),this._progressEls=p)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Gt(s,n.cx-o/2+K(l[0],n.r),n.cy-o/2+K(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),h=new xe,d=[],p=[],v=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){d[y]=new Ve({silent:!0}),p[y]=new Ve({silent:!0})}).update(function(y,m){d[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),x=new xe,w=a(Ke(_,[c,f],[0,1],!0)),S=m.getModel("title");if(S.get("show")){var b=S.get("offsetCenter"),C=o.cx+K(b[0],o.r),T=o.cy+K(b[1],o.r),A=d[y];A.attr({z2:g?0:2,style:ut(S,{x:C,y:T,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),x.add(A)}var M=m.getModel("detail");if(M.get("show")){var k=M.get("offsetCenter"),P=o.cx+K(k[0],o.r),L=o.cy+K(k[1],o.r),E=K(M.get("width"),o.r),R=K(M.get("height"),o.r),z=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,A=p[y],O=M.get("formatter");A.attr({z2:g?0:2,style:ut(M,{x:P,y:L,text:zv(_,O),width:isNaN(E)?null:E,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:z})}),EV(A,{normal:M},_,function(I){return zv(I,O)}),v&&LV(A,y,l,r,{getFormattedLabel:function(I,G,U,N,Z,oe){return zv(oe?oe.interpolatedValue:_,O)}}),x.add(A)}h.add(x)}),this.group.add(h),this._titleEls=d,this._detailEls=p},t.type="gauge",t}(at),eye=function(e){V(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 of(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ft);function tye(e){e.registerChartView(Jge),e.registerSeriesModel(eye)}var rye=["itemStyle","opacity"],nye=function(e){V(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Zr,s=new Ve;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(rye);c=c??1,i||Ni(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,vt(a,{style:{opacity:c}},o,n)):He(a,{style:{opacity:c},shape:{points:l.points}},o,n),_r(a,s),this._updateLabel(r,n),Ct(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),h=f.fill;xr(o,rr(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var d=c.linePoints;a.setShape({points:d}),i.textGuideLineConfig={anchor:d?new Ce(d[0][0],d[0][1]):null},He(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),C2(i,T2(l),{stroke:h})},t}(Ur),iye=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new nye(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Sd(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(at),aye=function(e){V(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 yp(ee(this.getData,this),ee(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return of(this,{coordDimensions:["value"],encodeDefaulter:be(r2,this)})},t.prototype._defaultLabelLine=function(r){Ll(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ft);function oye(e,t){return Xt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function sye(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();o<s;o++)i[o]=o;return he(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function lye(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var i=e.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,h,d,p;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,d=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,d=(u[1][1]+u[2][1])/2,f="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,d=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),p=[[h,d],[h,d]];else{var v=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=v-_,h=y-5,f="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=v+_,h=y+5,f="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,d=m-5,f="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,d=m+5,f="center"):o==="rightTop"?(v=r==="horizontal"?u[3][0]:u[1][0],g=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(m=g-_,d=m-5,f="center"):(y=v+_,h=y+5,f="top")):o==="rightBottom"?(v=u[2][0],g=u[2][1],r==="horizontal"?(m=g+_,d=m+5,f="center"):(y=v+_,h=y+5,f="bottom")):o==="leftTop"?(v=u[0][0],g=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(m=g-_,d=m-5,f="center"):(y=v-_,h=y-5,f="right")):o==="leftBottom"?(v=r==="horizontal"?u[1][0]:u[3][0],g=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(m=g+_,d=m+5,f="center"):(y=v-_,h=y-5,f="right")):(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r==="horizontal"?(m=g+_,d=m+5,f="center"):(y=v+_,h=y+5,f="left")),r==="horizontal"?(y=v,h=y):(m=g,d=m),p=[[v,g],[y,m]]}l.label={linePoints:p,x:h,y:d,verticalAlign:"middle",textAlign:f,inside:c}})}function uye(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=oye(r,t),s=r.get("orient"),l=o.width,u=o.height,c=sye(n,a),f=o.x,h=o.y,d=s==="horizontal"?[K(r.get("minSize"),u),K(r.get("maxSize"),u)]:[K(r.get("minSize"),l),K(r.get("maxSize"),l)],p=n.getDataExtent(i),v=r.get("min"),g=r.get("max");v==null&&(v=Math.min(p[0],0)),g==null&&(g=p[1]);var y=r.get("funnelAlign"),m=r.get("gap"),_=s==="horizontal"?l:u,x=(_-m*(n.count()-1))/n.count(),w=function(L,E){if(s==="horizontal"){var R=n.get(i,L)||0,z=Ke(R,[v,g],d,!0),O=void 0;switch(y){case"top":O=h;break;case"center":O=h+(u-z)/2;break;case"bottom":O=h+(u-z);break}return[[E,O],[E,O+z]]}var B=n.get(i,L)||0,I=Ke(B,[v,g],d,!0),G;switch(y){case"left":G=f;break;case"center":G=f+(l-I)/2;break;case"right":G=f+l-I;break}return[[G,E],[G+I,E]]};a==="ascending"&&(x=-x,m=-m,s==="horizontal"?f+=l:h+=u,c=c.reverse());for(var S=0;S<c.length;S++){var b=c[S],C=c[S+1],T=n.getItemModel(b);if(s==="horizontal"){var A=T.get(["itemStyle","width"]);A==null?A=x:(A=K(A,l),a==="ascending"&&(A=-A));var M=w(b,f),k=w(C,f+A);f+=A+m,n.setItemLayout(b,{points:M.concat(k.slice().reverse())})}else{var P=T.get(["itemStyle","height"]);P==null?P=x:(P=K(P,u),a==="ascending"&&(P=-P));var M=w(b,h),k=w(C,h+P);h+=P+m,n.setItemLayout(b,{points:M.concat(k.slice().reverse())})}}lye(n)})}function cye(e){e.registerChartView(iye),e.registerSeriesModel(aye),e.registerLayout(uye),e.registerProcessor(gp("funnel"))}var fye=.3,hye=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new xe,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,f=uO(r);s.diff(l).add(h).update(d).remove(p).execute();function h(g){var y=lO(s,o,g,c,u);Vx(y,s,g,f)}function d(g,y){var m=l.getItemGraphicEl(y),_=a6(s,g,c,u);s.setItemGraphicEl(g,m),He(m,{shape:{points:_}},r,g),Ni(m),Vx(m,s,g,f)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var v=dye(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(v)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=uO(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var f=lO(a,this._dataGroup,c,s,o);f.incremental=!0,Vx(f,a,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(at);function dye(e,t,r){var n=e.model,i=e.getRect(),a=new ze({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),vt(a,{shape:{width:i.width,height:i.height}},t,r),a}function a6(e,t,r,n){for(var i=[],a=0;a<r.length;a++){var o=r[a],s=e.get(e.mapDimension(o),t);pye(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function lO(e,t,r,n,i){var a=a6(e,r,n,i),o=new Zr({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function uO(e){var t=e.get("smooth",!0);return t===!0&&(t=fye),t=Za(t),dd(t)&&(t=0),{smooth:t}}function Vx(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var i=t.getItemModel(r),a=i.getModel("emphasis");_r(e,i,"lineStyle"),Ct(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function pye(e,t){return t==="category"?e==null:e==null||isNaN(e)}var vye=function(e){V(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 ao(null,this,{useEncodeDefaulter:ee(gye,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){r===o&&a.push(i.getRawIndex(s))}),a},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(ft);function gye(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return D(t.dimensions,function(n){var i=yye(n);r[n]=i}),r}}function yye(e){return+e.replace("dim","")}var mye=["lineStyle","opacity"],_ye={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(i,a){r.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(mye,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function xye(e){Sye(e),wye(e)}function Sye(e){if(!e.parallel){var t=!1;D(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function wye(e){var t=et(e.parallelAxis);D(t,function(r){if(ge(r)){var n=r.parallelIndex||0,i=et(e.parallel)[n];i&&i.parallelAxisDefault&&Te(r,i.parallelAxisDefault,!1)}})}var bye=5,Cye=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this._model=r,this._api=i,this._handlers||(this._handlers={},D(Tye,function(a,o){i.getZr().on(o,this._handlers[o]=ee(a,this))},this)),rf(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){Td(this,"_throttledDispatchExpand"),D(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(W({type:"parallelAxisExpand"},r))},t.type="parallel",t}(_t),Tye={mousedown:function(e){Gx(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Gx(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>bye)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!Gx(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 Gx(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var Aye=function(e){V(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&&Te(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){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=[],i=qe(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Le),Mye=function(e){V(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Bi);function Kl(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=bu(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=bu(s,[0,o]),i=a=bu(s,[i,a]),n=0}t[0]=bu(t[0],r),t[1]=bu(t[1],r);var l=$x(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=bu(t[n],c);var f;return f=$x(t,n),i!=null&&(f.sign!==l.sign||f.span<i)&&(t[1-n]=t[n]+l.sign*i),f=$x(t,n),a!=null&&f.span>a&&(t[1-n]=t[n]+f.sign*a),t}function $x(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function bu(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Hx=D,o6=Math.min,s6=Math.max,cO=Math.floor,Dye=Math.ceil,fO=At,kye=Math.PI,Pye=function(){function e(t,r,n){this.type="parallel",this._axesMap=ae(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;Hx(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Mye(o,j0(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();Hx(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Ic(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=Xt(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=Bv(t.get("axisExpandWidth"),l),f=Bv(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,d=t.get("axisExpandWindow"),p;if(d)p=Bv(d[1]-d[0],l),d[1]=d[0]+p;else{p=Bv(c*(f-1),l);var v=t.get("axisExpandCenter")||cO(u/2);d=[c*v-p/2],d[1]=d[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var y=[cO(fO(d[0]/c,1))+1,Dye(fO(d[1]/c,1))-1],m=g/c*d[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:d,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Hx(n,function(o,s){var l=(i.axisExpandable?Eye:Iye)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:kye/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],h=c[a],d=Mn();Wl(d,d,h),va(d,d,f),this._axesLayout[o]={position:f,rotation:h,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var h=t.getValues(s,c),d=0,p=o.length;d<p;d++){var v=l[d].getActiveState(h[d]);if(v==="inactive"){f="inactive";break}}}r(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)r.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return Ii([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return me(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,i=r.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),h=f[0]!=null;if(c)h&&c&&s<a*f[0]?(u="jump",l=s-a*f[2]):h&&c&&s>a*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Kl(l,i,o,"all"):u="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[s6(0,p-d/2)],i[1]=o6(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:u}},e}();function Bv(e,t){return o6(s6(e,t[0]),t[1])}function Iye(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function Eye(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e<o[0]?(s=e*a,c=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(i-1-e)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function Lye(e,t){var r=[];return e.eachComponent("parallel",function(n,i){var a=new Pye(n,e,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",Vt).models[0];n.coordinateSystem=i.coordinateSystem}}),r}var Rye={create:Lye},sC=function(e){V(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 Ol([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=me(r);if(n)for(var i=n.length-1;i>=0;i--)ri(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},t}(Le);Ht(sC,fp);var Bl=!0,zd=Math.min,Rc=Math.max,Oye=Math.pow,Nye=1e4,zye=6,Bye=6,hO="globalPan",Fye={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Vye={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},dO={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Gye=0,X2=function(e){V(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new xe,n._uid="brushController_"+Gye++,D(Xye,function(i,a){this._handlers[a]=ee(i,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||Ipe(n,hO,this._uid),D(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=Te(me(dO),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;Epe(r,hO,this._uid),D(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};D(r,function(i){n[i.panelId]=me(i)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=Y(r,function(h){return Te(me(dO),h,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Qa(i,r,u,l).add(c).update(c).remove(f).execute(),this;function l(h,d){return(h.id!=null?h.id:n+d)+"-"+h.brushType}function u(h,d){return l(h.__brushOption,d)}function c(h,d){var p=r[h];if(d!=null&&i[d]===s)a[h]=i[d];else{var v=a[h]=d!=null?(i[d].__brushOption=p,i[d]):u6(o,l6(o,p));Z2(o,v)}}function f(h){i[h]!==s&&o.group.remove(i[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),lC(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ui);function l6(e,t){var r=Q0[t.brushType].createCover(e,t);return r.__brushOption=t,f6(r,t),e.group.add(r),r}function u6(e,t){var r=K2(t);return r.endCreating&&(r.endCreating(e,t),f6(t,t.__brushOption)),t}function c6(e,t){var r=t.__brushOption;K2(t).updateCoverShape(e,t,r.range,r)}function f6(e,t){var r=t.z;r==null&&(r=Nye),e.traverse(function(n){n.z=r,n.z2=r})}function Z2(e,t){K2(t).updateCommon(e,t),c6(e,t)}function K2(e){return Q0[e.__brushOption.brushType]}function q2(e,t,r){var n=e._panels;if(!n)return Bl;var i,a=e._transform;return D(n,function(o){o.isTargetByCursor(t,r,a)&&(i=o)}),i}function h6(e,t){var r=e._panels;if(!r)return Bl;var n=t.__brushOption.panelId;return n!=null?r[n]:Bl}function lC(e){var t=e._covers,r=t.length;return D(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function Fl(e,t){var r=Y(e._covers,function(n){var i=n.__brushOption,a=me(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function $ye(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],i=r[0]-n[0],a=r[1]-n[1],o=Oye(i*i+a*a,.5);return o>zye}function d6(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function p6(e,t,r,n){var i=new xe;return i.add(new ze({name:"main",style:Q2(r),silent:!0,draggable:!0,cursor:"move",drift:be(pO,e,t,i,["n","s","w","e"]),ondragend:be(Fl,t,{isEnd:!0})})),D(n,function(a){i.add(new ze({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:be(pO,e,t,i,a),ondragend:be(Fl,t,{isEnd:!0})}))}),i}function v6(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Rc(i,Bye),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],h=c-a+i/2,d=f-a+i/2,p=c-o,v=f-s,g=p+i,y=v+i;Da(e,t,"main",o,s,p,v),n.transformable&&(Da(e,t,"w",l,u,a,y),Da(e,t,"e",h,u,a,y),Da(e,t,"n",l,u,g,a),Da(e,t,"s",l,d,g,a),Da(e,t,"nw",l,u,a,a),Da(e,t,"ne",h,u,a,a),Da(e,t,"sw",l,d,a,a),Da(e,t,"se",h,d,a,a))}function uC(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(Q2(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?cC(e,a[0]):Wye(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?Vye[s]+"-resize":null})})}function Da(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(jye(J2(e,t,[[n,i],[n+a,i+o]])))}function Q2(e){return pe({strokeNoScale:!0},e.brushStyle)}function g6(e,t,r,n){var i=[zd(e,r),zd(t,n)],a=[Rc(e,r),Rc(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function Hye(e){return xl(e.group)}function cC(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=P0(r[t],Hye(e));return n[i]}function Wye(e,t){var r=[cC(e,t[0]),cC(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function pO(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=y6(t,i,a);D(n,function(u){var c=Fye[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(g6(s[0][0],s[1][0],s[0][1],s[1][1])),Z2(t,r),Fl(t,{isEnd:!1})}function Uye(e,t,r,n){var i=t.__brushOption.range,a=y6(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Z2(e,t),Fl(e,{isEnd:!1})}function y6(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function J2(e,t,r){var n=h6(e,t);return n&&n!==Bl?n.clipPath(r,e._transform):me(r)}function jye(e){var t=zd(e[0][0],e[1][0]),r=zd(e[0][1],e[1][1]),n=Rc(e[0][0],e[1][0]),i=Rc(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function Yye(e,t,r){if(!(!e._brushType||Zye(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=q2(e,t,r);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Bl||s.panelId===a.panelId)&&Q0[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function fC(e){var t=e.event;t.preventDefault&&t.preventDefault()}function hC(e,t,r){return e.childOfName("main").contain(t,r)}function m6(e,t,r,n){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),$ye(e)||i){if(a&&!i){o.brushMode==="single"&&lC(e);var l=me(o);l.brushType=vO(l.brushType,a),l.panelId=a===Bl?null:a.panelId,i=e._creatingCover=l6(e,l),e._covers.push(i)}if(i){var u=Q0[vO(e._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(J2(e,i,e._track)),n&&(u6(e,i),u.updateCommon(e,i)),c6(e,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&q2(e,t,r)&&lC(e)&&(s={isEnd:n,removeOnClick:!0});return s}function vO(e,t){return e==="auto"?t.defaultBrushType:e}var Xye={mousedown:function(e){if(this._dragging)gO(this,e);else if(!e.target||!e.target.draggable){fC(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=q2(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(Yye(this,e,n),this._dragging){fC(e);var i=m6(this,e,n,!1);i&&Fl(this,i)}},mouseup:function(e){gO(this,e)}};function gO(e,t){if(e._dragging){fC(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),a=m6(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&Fl(e,a)}}function Zye(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Q0={lineX:yO(0),lineY:yO(1),rect:{createCover:function(e,t){function r(n){return n}return p6({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=d6(e);return g6(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){v6(e,t,r,n)},updateCommon:uC,contain:hC},polygon:{createCover:function(e,t){var r=new xe;return r.add(new Zr({name:"main",style:Q2(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ur({name:"main",draggable:!0,drift:be(Uye,e,t),ondragend:be(Fl,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:J2(e,t,r)})},updateCommon:uC,contain:hC}};function yO(e){return{createCover:function(t,r){return p6({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=d6(t),n=zd(r[0][e],r[1][e]),i=Rc(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=h6(t,r);if(o!==Bl&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),v6(t,r,l,i)},updateCommon:uC,contain:hC}}function _6(e){return e=eM(e),function(t){return kV(t,e)}}function x6(e,t){return e=eM(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function S6(e,t,r){var n=eM(e);return function(i,a){return n.contain(a[0],a[1])&&!X0(i,t,r)}}function eM(e){return Ae.create(e)}var Kye=["axisLine","axisTickLabel","axisName"],qye=function(e){V(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 X2(n.getZr())).on("brush",ee(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!Qye(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xe,this.group.add(this._axisGroup),!!r.get("show")){var s=eme(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),d=W({strokeContainThreshold:c},h),p=new Gr(r,d);D(Kye,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,u,r,s,c,i),op(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ae.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:_6(f),isTargetByCursor:S6(f,s,a),getLinearBrushOtherExtent:x6(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(Jye(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Y(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(_t);function Qye(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function Jye(e){var t=e.axis;return Y(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function eme(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var tme={type:"axisAreaSelect",event:"axisAreaSelected"};function rme(e){e.registerAction(tme,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 nme={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function w6(e){e.registerComponentView(Cye),e.registerComponentModel(Aye),e.registerCoordinateSystem("parallel",Rye),e.registerPreprocessor(xye),e.registerComponentModel(sC),e.registerComponentView(qye),Lc(e,"parallel",sC,nme),rme(e)}function ime(e){De(w6),e.registerChartView(hye),e.registerSeriesModel(vye),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,_ye)}var ame=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}(),ome=function(e){V(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ame},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){Ka(this)},t.prototype.downplay=function(){qa(this)},t}(ke),sme=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),h=r.getData("edge"),d=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new ome,g=Se(v);g.dataIndex=p.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),x=p.node1.getLayout(),w=p.node1.getModel(),S=w.get("localX"),b=w.get("localY"),C=p.node2.getLayout(),T=p.node2.getModel(),A=T.get("localX"),M=T.get("localY"),k=p.getLayout(),P,L,E,R,z,O,B,I;v.shape.extent=Math.max(1,k.dy),v.shape.orient=d,d==="vertical"?(P=(S!=null?S*u:x.x)+k.sy,L=(b!=null?b*c:x.y)+x.dy,E=(A!=null?A*u:C.x)+k.ty,R=M!=null?M*c:C.y,z=P,O=L*(1-_)+R*_,B=E,I=L*_+R*(1-_)):(P=(S!=null?S*u:x.x)+x.dx,L=(b!=null?b*c:x.y)+k.sy,E=A!=null?A*u:C.x,R=(M!=null?M*c:C.y)+k.ty,z=P*(1-_)+E*_,O=L,B=P*_+E*(1-_),I=R),v.setShape({x1:P,y1:L,x2:E,y2:R,cpx1:z,cpy1:O,cpx2:B,cpy2:I}),v.useStyle(m.getItemStyle()),mO(v.style,d,p);var G=""+y.get("value"),U=rr(y,"edgeLabel");xr(v,U,{labelFetcher:{getFormattedLabel:function(oe,te,fe,ie,le,ue){return r.getFormattedLabel(oe,te,"edge",ie,fa(le,U.normal&&U.normal.get("formatter"),G),ue)}},labelDataIndex:p.dataIndex,defaultText:G}),v.setTextConfig({position:"inside"});var N=y.getModel("emphasis");_r(v,y,"lineStyle",function(oe){var te=oe.getItemStyle();return mO(te,d,p),te}),s.add(v),h.setItemGraphicEl(p.dataIndex,v);var Z=N.get("focus");Ct(v,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,N.get("blurScope"),N.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,w=new ze({shape:{x:y!=null?y*u:v.x,y:m!=null?m*c:v.y,width:v.dx,height:v.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});xr(w,rr(g),{labelFetcher:{getFormattedLabel:function(b,C){return r.getFormattedLabel(b,C,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),w.disableLabelAnimation=!0,w.setStyle("fill",p.getVisual("color")),w.setStyle("decal",p.getVisual("style").decal),_r(w,g),s.add(w),f.setItemGraphicEl(p.dataIndex,w),Se(w).dataType="node";var S=_.get("focus");Ct(w,S==="adjacency"?p.getAdjacentDataIndices():S==="trajectory"?p.getTrajectoryDataIndices():S,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(y,m){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(lme(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(at);function mO(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");q(n)&&q(i)&&(e.fill=new ap(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function lme(e,t,r){var n=new ze({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return vt(n,{shape:{width:e.width+20}},t,r),n}var ume=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Xe(o[l],this,n));if(a&&i){var u=i6(a,i,this,!0,c);return u.data}function c(f,h){f.wrapMethod("getItemModel",function(d,p){var v=d.parentModel,g=v.getData().getItemLayout(p);if(g){var y=g.depth,m=v.levelModels[y];m&&(d.parentModel=m)}return d}),h.wrapMethod("getItemModel",function(d,p){var v=d.parentModel,g=v.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=v.levelModels[m];_&&(d.parentModel=_)}return d})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(d){return isNaN(d)||d==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return nr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,h=this.getDataParams(r,i).data.name;return nr("nameValue",{name:h!=null?h+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(ft);function cme(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=fme(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;dme(u);var f=qe(u,function(v){return v.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),p=r.get("nodeAlign");hme(u,c,n,i,o,s,h,d,p)})}function fme(e,t){return Xt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function hme(e,t,r,n,i,a,o,s,l){pme(e,t,r,i,a,s,l),mme(e,t,a,i,n,o,s),Mme(e,s)}function dme(e){D(e,function(t){var r=Xo(t.outEdges,nm),n=Xo(t.inEdges,nm),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function pme(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=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 d=-1;u.length;){for(var p=0;p<u.length;p++){var v=u[p],g=v.hostGraph.data.getRawDataItem(v.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>d&&(d=g.depth),v.setLayout({depth:y?g.depth:f},!0),a==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var m=0;m<v.outEdges.length;m++){var _=v.outEdges[m],x=t.indexOf(_);s[x]=0;var w=_.node2,S=e.indexOf(w);--l[S]===0&&c.indexOf(w)<0&&c.push(w)}}++f,u=c,c=[]}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 b=d>f-1?d:f-1;o&&o!=="left"&&vme(e,o,a,b);var C=a==="vertical"?(i-r)/b:(n-r)/b;yme(e,C,a)}function b6(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function vme(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}D(e,function(f){b6(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&gme(e,n)}function gme(e,t){D(e,function(r){!b6(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function yme(e,t,r){D(e,function(n){var i=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function mme(e,t,r,n,i,a,o){var s=_me(e,o);xme(s,t,r,n,i,o),Wx(s,i,r,n,o);for(var l=1;a>0;a--)l*=.99,Sme(s,l,o),Wx(s,i,r,n,o),Ame(s,l,o),Wx(s,i,r,n,o)}function _me(e,t){var r=[],n=t==="vertical"?"y":"x",i=db(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function xme(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c<o&&(o=c)}),D(e,function(s){D(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),D(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Wx(e,t,r,n,i){var a=i==="vertical"?"x":"y";D(e,function(o){o.sort(function(v,g){return v.getLayout()[a]-g.getLayout()[a]});for(var s,l,u,c=0,f=o.length,h=i==="vertical"?"dx":"dy",d=0;d<f;d++)l=o[d],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+t;var p=i==="vertical"?n:r;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=f-2;d>=0;--d)l=o[d],u=l.getLayout()[a]+l.getLayout()[h]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function Sme(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=Xo(i.outEdges,wme,r)/Xo(i.outEdges,nm);if(isNaN(a)){var o=i.outEdges.length;a=o?Xo(i.outEdges,bme,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-is(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-is(i,r))*t;i.setLayout({y:l},!0)}}})})}function wme(e,t){return is(e.node2,t)*e.getValue()}function bme(e,t){return is(e.node2,t)}function Cme(e,t){return is(e.node1,t)*e.getValue()}function Tme(e,t){return is(e.node1,t)}function is(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function nm(e){return e.getValue()}function Xo(e,t,r){for(var n=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],r);isNaN(o)||(n+=o)}return n}function Ame(e,t,r){D(e,function(n){D(n,function(i){if(i.inEdges.length){var a=Xo(i.inEdges,Cme,r)/Xo(i.inEdges,nm);if(isNaN(a)){var o=i.inEdges.length;a=o?Xo(i.inEdges,Tme,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-is(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-is(i,r))*t;i.setLayout({y:l},!0)}}})})}function Mme(e,t){var r=t==="vertical"?"x":"y";D(e,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[r]-a.node2.getLayout()[r]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[r]-a.node1.getLayout()[r]})}),D(e,function(n){var i=0,a=0;D(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function Dme(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes,i=r.edges;if(n.length){var a=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),D(n,function(s){var l=new tr({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function kme(e){e.registerChartView(sme),e.registerSeriesModel(ume),e.registerLayout(cme),e.registerVisual(Dme),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var C6=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],d=[i,a],p=d[c].get("type"),v=d[1-c].get("type"),g=t.data;if(g&&l){var y=[];D(g,function(x,w){var S;j(x)?(S=x.slice(),x.unshift(w)):j(x.value)?(S=W({},x),S.value=S.value.slice(),x.value.unshift(w)):S=x,y.push(S)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:f,type:jy(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:jy(v),dimsDef:m.slice()}];return of(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:be(tG,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),T6=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(ft);Ht(T6,C6,!0);var Pme=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=_O(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var h=a.getItemLayout(u);f?(Ni(f),A6(h,f,a,u)):f=_O(h,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(at),Ime=function(){function e(){}return e}(),Eme=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new Ime},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();a<i.length;a++)r.moveTo(i[a][0],i[a][1]),a++,r.lineTo(i[a][0],i[a][1])},t}(ke);function _O(e,t,r,n,i){var a=e.ends,o=new Eme({shape:{points:i?Lme(a,n,e):a}});return A6(e,o,t,r,i),o}function A6(e,t,r,n,i){var a=r.hostModel,o=Ul[i?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},a,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");_r(t,s),Ct(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Lme(e,t,r){return Y(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var Vh=D;function Rme(e){var t=Ome(e);Vh(t,function(r){var n=r.seriesModels;n.length&&(Nme(r),Vh(n,function(i,a){zme(i,r.boxOffsetList[a],r.boxWidthList[a])}))})}function Ome(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=Me(r,i);a<0&&(a=r.length,r[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function Nme(e){var t=e.axis,r=e.seriesModels,n=r.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Vh(r,function(p){l=Math.max(l,p.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Vh(r,function(p){var v=p.get("boxWidth");j(v)||(v=[v,v]),o.push([K(v[0],s)||0,K(v[1],s)||0])});var c=s*.8-2,f=c/n*.3,h=(c-f*(n-1))/n,d=h/2-c/2;Vh(r,function(p,v){a.push(d),d+=f+h,i.push(Math.min(Math.max(h,o[v][0]),o[v][1]))})}function zme(e,t,r){var n=e.coordinateSystem,i=e.getData(),a=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<i.count();f++){var h=i.get(u,f),d=_(h,c[2],f),p=_(h,c[0],f),v=_(h,c[1],f),g=_(h,c[3],f),y=_(h,c[4],f),m=[];x(m,v,!1),x(m,g,!0),m.push(p,v,y,g),w(m,p),w(m,y),w(m,d),i.setItemLayout(f,{initBaseline:d[s],ends:m})}function _(S,b,C){var T=i.get(b,C),A=[];A[o]=S,A[s]=T;var M;return isNaN(S)||isNaN(T)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=t),M}function x(S,b,C){var T=b.slice(),A=b.slice();T[o]+=a,A[o]-=a,C?S.push(T,A):S.push(A,T)}function w(S,b){var C=b.slice(),T=b.slice();C[o]-=a,T[o]+=a,S.push(C,T)}}function Bme(e,t){t=t||{};for(var r=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<e.length;o++){var s=ri(e[o].slice()),l=m_(s,.25),u=m_(s,.5),c=m_(s,.75),f=s[0],h=s[s.length-1],d=(i??1.5)*(c-l),p=a?f:Math.max(f,l-d),v=a?h:Math.min(h,c+d),g=t.itemNameFormatter,y=he(g)?g({value:o}):q(g)?g.replace("{value}",o+""):o+"";r.push([y,p,l,u,c,v]);for(var m=0;m<s.length;m++){var _=s[m];if(_<p||_>v){var x=[y,_];n.push(x)}}}return{boxData:r,outliers:n}}var Fme={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Ir){var n="";Ye(n)}var i=Bme(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Vme(e){e.registerSeriesModel(T6),e.registerChartView(Pme),e.registerLayout(Rme),e.registerTransform(Fme)}var Gme=["color","borderColor"],$me=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){cs(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&xO(u,f))return;var h=Ux(f,c,!0);vt(h,{shape:{points:f.ends}},r,c),jx(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(h);return}var d=n.getItemLayout(c);if(s&&xO(u,d)){a.remove(h);return}h?(He(h,{shape:{points:d.ends}},r,c),Ni(h)):h=Ux(d),jx(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),SO(r,this.group);var n=r.get("clip",!0)?pp(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=Ux(s);jx(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){SO(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}(at),Hme=function(){function e(){}return e}(),Wme=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Hme},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(ke);function Ux(e,t,r){var n=e.ends;return new Wme({shape:{points:r?Ume(n,e):n},z2:100})}function xO(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 jx(e,t,r,n){var i=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,_r(e,i)}function Ume(e,t){return Y(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var jme=function(){function e(){}return e}(),Yx=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new jme},t.prototype.buildPath=function(r,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];r.moveTo(o,i[a++]),r.lineTo(o,i[a++])}else a+=3},t}(ke);function SO(e,t,r,n){var i=e.getData(),a=i.getLayout("largePoints"),o=new Yx({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Yx({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Yx({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),Xx(1,o,e),Xx(-1,s,e),Xx(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function Xx(e,t,r,n){var i=r.get(["itemStyle",e>0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(Gme);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var M6=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ft);Ht(M6,C6,!0);function Yme(e){!e||!j(e.series)||D(e.series,function(t){ge(t)&&t.type==="k"&&(t.type="candlestick")})}var Xme=["itemStyle","borderColor"],Zme=["itemStyle","borderColor0"],Kme=["itemStyle","borderColorDoji"],qme=["itemStyle","color"],Qme=["itemStyle","color0"],Jme={seriesType:"candlestick",plan:tf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?qme:Qme)}function n(a,o){return o.get(a===0?Kme:a>0?Xme:Zme)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");W(f,c)}}}}}},e0e={seriesType:"candlestick",plan:tf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=t0e(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=Y(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=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?p:d};function d(v,g){for(var y,m=g.getStore();(y=v.next())!=null;){var _=m.get(s,y),x=m.get(u,y),w=m.get(c,y),S=m.get(f,y),b=m.get(h,y),C=Math.min(x,w),T=Math.max(x,w),A=z(C,_),M=z(T,_),k=z(S,_),P=z(b,_),L=[];O(L,M,0),O(L,A,1),L.push(I(P),I(M),I(k),I(A));var E=g.getItemModel(y),R=!!E.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:wO(m,y,x,w,c,R),initBaseline:x>w?M[a]:A[a],ends:L,brushRect:B(S,b,_)})}function z(G,U){var N=[];return N[i]=U,N[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(N)}function O(G,U,N){var Z=U.slice(),oe=U.slice();Z[i]=bg(Z[i]+n/2,1,!1),oe[i]=bg(oe[i]-n/2,1,!0),N?G.push(Z,oe):G.push(oe,Z)}function B(G,U,N){var Z=z(G,N),oe=z(U,N);return Z[i]-=n/2,oe[i]-=n/2,{x:Z[0],y:Z[1],width:n,height:oe[1]-Z[1]}}function I(G){return G[i]=bg(G[i],1),G}}function p(v,g){for(var y=oa(v.count*4),m=0,_,x=[],w=[],S,b=g.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(S=v.next())!=null;){var T=b.get(s,S),A=b.get(u,S),M=b.get(c,S),k=b.get(f,S),P=b.get(h,S);if(isNaN(T)||isNaN(k)||isNaN(P)){y[m++]=NaN,m+=3;continue}y[m++]=wO(b,S,A,M,c,C),x[i]=T,x[a]=k,_=t.dataToPoint(x,null,w),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,x[a]=P,_=t.dataToPoint(x,null,w),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function wO(e,t,r,n,i,a){var o;return r>n?o=-1:r<n?o=1:o=a?0:t>0?e.get(i,t-1)<=n?1:-1:1,o}function t0e(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=K(we(e.get("barMaxWidth"),i),i),o=K(we(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?K(s,i):Math.max(Math.min(i/2,a),o)}function r0e(e){e.registerChartView($me),e.registerSeriesModel(M6),e.registerPreprocessor(Yme),e.registerVisual(Jme),e.registerLayout(e0e)}function bO(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 n0e=function(e){V(t,e);function t(r,n){var i=e.call(this)||this,a=new hp(r,n),o=new xe;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=Gt(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}bO(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}bO(i,r)},t.prototype.highlight=function(){Ka(this)},t.prototype.downplay=function(){qa(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var i=this,a=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=nf(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),f=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var d=jl(r.getItemVisual(n,"symbolOffset"),u);d&&(o.x=d[0],o.y=d[1]);var p=r.getItemVisual(n,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var v={};v.showEffectOn=a.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOffset=n/r.count(),v.z=a.getShallow("z")||0,v.zlevel=a.getShallow("zlevel")||0,v.symbolType=l,v.color=f,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?v.showEffectOn!=="render"&&i.startEffectAnimation(v):g==="normal"&&v.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=v,Ct(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(xe),i0e=function(e){V(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 dp(n0e)},t.prototype.render=function(r,n,i){var a=r.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype.updateTransform=function(r,n,i){var a=r.getData();this.group.dirty();var o=vp("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=bie(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(at),a0e=function(e){V(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 ao(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(ft);function o0e(e){e.registerChartView(i0e),e.registerSeriesModel(a0e),e.registerLayout(vp("effectScatter"))}var D6=function(e){V(t,e);function t(r,n,i){var a=e.call(this)||this;return a.add(a.createLine(r,n,i)),a._updateEffectSymbol(r,n),a}return t.prototype.createLine=function(r,n,i){return new j2(r,n,i)},t.prototype._updateEffectSymbol=function(r,n){var i=r.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");j(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Gt(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,a,n))},t.prototype._updateEffectAnimation=function(r,n,i){var a=this.childAt(1);if(a){var o=r.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=sr(n.get("delay"),function(d){return d/r.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;he(f)?h=f(i):h=f,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Do(r.__p1,r.__cp1)+Do(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=or,c=Qw;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),h=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=Do(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*Do(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var i=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,i,n)},t}(xe),k6=function(e){V(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createPolyline(r,n,i),a}return t.prototype._createPolyline=function(r,n,i){var a=r.getItemLayout(n),o=new Zr({shape:{points:a}});this.add(o),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};He(o,s,a,n),this._updateCommonStl(r,n,i)},t.prototype._updateCommonStl=function(r,n,i){var a=this.childAt(0),o=r.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||r.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}a.useStyle(r.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var h=a.ensureState("emphasis");h.style=s,Ct(this,l,u,c)},t.prototype.updateLayout=function(r,n){var i=this.childAt(0);i.setShape("points",r.getItemLayout(n))},t}(xe),s0e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,i){return new k6(r,n,i)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=Do(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<1?r.__t:2-r.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],h=i[l+1];r.x=f[0]*(1-c)+c*h[0],r.y=f[1]*(1-c)+c*h[1];var d=r.__t<1?h[0]-f[0]:f[0]-h[0],p=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(p,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(D6),l0e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),u0e=function(e){V(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new l0e},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){r.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)r.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],f=i[o++],h=i[o++];if(r.moveTo(u,c),a>0){var d=(u+f)/2-(c-h)*a,p=(c+h)/2-(f-u)*a;r.quadraticCurveTo(d,p,f,h)}else r.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var f=a[u++],h=a[u++],d=1;d<c;d++){var p=a[u++],v=a[u++];if(wo(f,h,p,v,s,r,n))return l}l++}else for(var l=0,u=0;u<a.length;){var f=a[u++],h=a[u++],p=a[u++],v=a[u++];if(o>0){var g=(f+p)/2-(h-v)*o,y=(h+v)/2-(p-f)*o;if(J4(f,h,g,y,p,v,s,r,n))return l}else if(wo(f,h,p,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}r=this._rect=new Ae(a,o,s,l)}return r},t}(ke),c0e=function(){function e(){this.group=new xe}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],i=r.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new u0e({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=r.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var o=Se(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),P6={seriesType:"lines",plan:tf(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,h=[],c=i.start;c<i.end;c++){var d=e.getLineCoords(c,o);r&&(s[f++]=d);for(var p=0;p<d;p++)h=t.dataToPoint(o[p],!1,h),s[f++]=h[0],s[f++]=h[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var v=a.getItemModel(c),d=e.getLineCoords(c,o),g=[];if(r)for(var y=0;y<d;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=v.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])}a.setItemLayout(c,g)}}}}}},f0e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&pp(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=P6.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new c0e:new Y2(o?a?s0e:k6:a?D6:j2),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(at),h0e=typeof Uint32Array>"u"?Array:Uint32Array,d0e=typeof Float64Array>"u"?Array:Float64Array;function CO(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Y(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),CA([i,r[0],r[1]])}))}var p0e=function(e){V(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||[],CO(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(CO(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=Sy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Sy(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),$e(r[0])){for(var i=r.length,a=new h0e(i),o=new d0e(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=r[c++];a[l++]=s+n,a[l++]=f;for(var h=0;h<f;h++){var d=r[c++],p=r[c++];o[s++]=d,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var i=new Vr(["value"],this);return i.hasItemOption=!1,i.initData(r.data,[],function(a,o,s,l){if(a instanceof Array)return NaN;i.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),i},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),nr("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(ft);function Fv(e){return e instanceof Array||(e=[e,e]),e}var v0e={seriesType:"lines",reset:function(e){var t=Fv(e.get("symbol")),r=Fv(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=Fv(s.getShallow("symbol",!0)),u=Fv(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function g0e(e){e.registerChartView(f0e),e.registerSeriesModel(p0e),e.registerLayout(P6),e.registerVisual(v0e)}var y0e=256,m0e=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Jo.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),d=t.length;f.width=r,f.height=n;for(var p=0;p<d;++p){var v=t[p],g=v[0],y=v[1],m=v[2],_=i(m);h.globalAlpha=_,h.drawImage(s,g-c,y-c)}if(!f.width||!f.height)return f;for(var x=h.getImageData(0,0,f.width,f.height),w=x.data,S=0,b=w.length,C=this.minOpacity,T=this.maxOpacity,A=T-C;S<b;){var _=w[S+3]/256,M=Math.floor(_*(y0e-1))*4;if(_>0){var k=o(_)?l:u;_>0&&(_=_*A+C),w[S++]=k[M],w[S++]=k[M+1],w[S++]=k[M+2],w[S++]=k[M+3]*_*256}else S+=4}return h.putImageData(x,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Jo.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();function _0e(e,t,r){var n=e[1]-e[0];t=Y(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&r[s]}}function x0e(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 TO(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var S0e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):TO(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(TO(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){cs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Xl(s,"cartesian2d"),u,c,f,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");u=d.getBandWidth()+.5,c=p.getBandWidth()+.5,f=d.scale.getExtent(),h=p.scale.getExtent()}for(var v=this.group,g=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),m=r.getModel(["blur","itemStyle"]).getItemStyle(),_=r.getModel(["select","itemStyle"]).getItemStyle(),x=r.get(["itemStyle","borderRadius"]),w=rr(r),S=r.getModel("emphasis"),b=S.get("focus"),C=S.get("blurScope"),T=S.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;M<a;M++){var k=void 0,P=g.getItemVisual(M,"style");if(l){var L=g.get(A[0],M),E=g.get(A[1],M);if(isNaN(g.get(A[2],M))||isNaN(L)||isNaN(E)||L<f[0]||L>f[1]||E<h[0]||E>h[1])continue;var R=s.dataToPoint([L,E]);k=new ze({shape:{x:R[0]-u/2,y:R[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(A[1],M)))continue;k=new ze({z2:1,shape:s.dataToRect([g.get(A[0],M)]).contentShape,style:P})}if(g.hasItemOption){var z=g.getItemModel(M),O=z.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),x=z.get(["itemStyle","borderRadius"]),b=O.get("focus"),C=O.get("blurScope"),T=O.get("disabled"),w=rr(z)}k.shape.r=x;var B=r.getRawValue(M),I="-";B&&B[2]!=null&&(I=B[2]+""),xr(k,w,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:I}),k.ensureState("emphasis").style=y,k.ensureState("blur").style=m,k.ensureState("select").style=_,Ct(k,b,C,T),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),v.add(k),g.setItemGraphicEl(M,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new m0e;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),d=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),g=p-h,y=v-d,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,C,T){var A=r.dataToPoint([b,C]);return A[0]-=h,A[1]-=d,A.push(T),A}),x=i.getExtent(),w=i.type==="visualMap.continuous"?x0e(x,i.option.range):_0e(x,i.getPieceList(),i.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var S=new cr({style:{width:g,height:y,x:h,y:d,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(at),w0e=function(e){V(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 ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=lp.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(ft);function b0e(e){e.registerChartView(S0e),e.registerSeriesModel(w0e)}var C0e=["itemStyle","borderWidth"],AO=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Zx=new io,T0e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:AO[+c],categoryDim:AO[1-+c]};o.diff(s).add(function(p){if(o.hasValue(p)){var v=DO(o,p),g=MO(o,p,v,h),y=kO(o,h,g);o.setItemGraphicEl(p,y),a.add(y),IO(y,h,g)}}).update(function(p,v){var g=s.getItemGraphicEl(v);if(!o.hasValue(p)){a.remove(g);return}var y=DO(o,p),m=MO(o,p,y,h),_=N6(o,m);g&&_!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(p,null),g=null),g?E0e(g,h,m):g=kO(o,h,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,a.add(g),IO(g,h,m)}).remove(function(p){var v=s.getItemGraphicEl(p);v&&PO(s,p,v.__pictorialSymbolMeta.animationModel,v)}).execute();var d=r.get("clip",!0)?pp(r.coordinateSystem,!1,r):null;return d?a.setClipPath(d):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){PO(a,Se(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(at);function MO(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolagentsize")||2,f=r.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolagentsize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};A0e(r,a,i,n,h),M0e(e,t,i,a,o,h.boundingLength,h.pxSign,c,n,h),D0e(r,h.symbolScale,u,n,h);var d=h.symbolSize,p=jl(r.get("symbolOffset"),d);return k0e(r,d,i,a,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function A0e(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(j(o)){var f=[Kx(s,o[0])-l,Kx(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=Kx(s,o)-l:t?c=n.coordSysExtent[a.index][u]-l:c=r[a.wh];i.boundingLength=c,t&&(i.repeatCutLength=r[a.wh]),i.pxSign=c>0?1:-1}function Kx(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function M0e(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),d=e.getItemVisual(t,"symbolSize"),p;j(d)?p=d.slice():d==null?p=["100%","100%"]:p=[d,d],p[f.index]=K(p[f.index],h),p[c.index]=K(p[c.index],n?h:Math.abs(a)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function D0e(e,t,r,n,i){var a=e.get(C0e)||0;a&&(Zx.attr({scaleX:t[0],scaleY:t[1],rotation:r}),Zx.updateTransform(),a/=Zx.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function k0e(e,t,r,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,d=c.valueDim,p=f.pxSign,v=Math.max(t[d.index]+s,0),g=v;if(n){var y=Math.abs(l),m=sr(e.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var x=K(m,t[d.index]),w=Math.max(v+x*2,0),S=_?0:x*2,b=F4(n),C=b?n:EO((y+S)/w),T=y-C*v;x=T/2/(_?C:Math.max(C-1,1)),w=v+x*2,S=_?0:x*2,!b&&n!=="fixed"&&(C=u?EO((Math.abs(u)+S)/w):0),g=C*w-S,f.repeatTimes=C,f.symbolMargin=x}var A=p*(g/2),M=f.pathPosition=[];M[h.index]=r[h.wh]/2,M[d.index]=o==="start"?A:o==="end"?l-A:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var k=f.bundlePosition=[];k[h.index]=r[h.xy],k[d.index]=r[d.xy];var P=f.barRectShape=W({},r);P[d.wh]=p*Math.max(Math.abs(r[d.wh]),Math.abs(M[d.index]+A)),P[h.wh]=r[h.wh];var L=f.clipShape={};L[h.xy]=-r[h.xy],L[h.wh]=c.ecSize[h.wh],L[d.xy]=0,L[d.wh]=r[d.wh]}function I6(e){var t=e.symbolagentsize,r=Gt(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function E6(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(tM(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?hc(v,null,p(c),r,n):hc(v,null,{scaleX:0,scaleY:0},r,n,function(){i.remove(v)}),c++});c<u;c++){var h=I6(r);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,i.add(h);var d=p(c);hc(h,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},r,n)}function p(v){var g=s.slice(),y=r.pxSign,m=v;return(r.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-v),g[l.index]=f*(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 L6(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?hc(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=I6(r),i.add(a),hc(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function R6(e,t,r){var n=W({},t.barRectShape),i=e.__pictorialBarRect;i?hc(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new ze({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function O6(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=W({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)He(i,{shape:a},s,l);else{a[o.wh]=0,i=new ze({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],Ul[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function DO(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=P0e,r.isAnimationEnabled=I0e,r}function P0e(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function I0e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function kO(e,t,r,n){var i=new xe,a=new xe;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?E6(i,t,r):L6(i,t,r),R6(i,r,n),O6(i,t,r,n),i.__pictorialShapeStr=N6(e,r),i.__pictorialSymbolMeta=r,i}function E0e(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;He(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?E6(e,t,r,!0):L6(e,t,r,!0),R6(e,r,!0),O6(e,t,r,!0)}function PO(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];tM(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){ts(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function N6(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function tM(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function hc(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&Ul[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function IO(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),h=a.get("scale");tM(e,function(v){if(v instanceof cr){var g=v.style;v.useStyle(W({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else v.useStyle(r.style);var y=v.ensureState("emphasis");y.style=o,h&&(y.scaleX=v.scaleX*1.1,y.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var d=t.valueDim.posDesc[+(r.boundingLength>0)],p=e.__pictorialBarRect;p.ignoreClip=!0,xr(p,rr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Ec(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:d}),Ct(e,c,f,a.get("disabled"))}function EO(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var L0e=function(e){V(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=fs(Id.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolagentsize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Id);function R0e(e){e.registerChartView(T0e),e.registerSeriesModel(L0e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,be(m$,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_$("pictorialBar"))}var O0e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(g){return g.name}var d=new Qa(this._layersSeries||[],l,h,h),p=[];d.add(ee(v,this,"add")).update(ee(v,this,"update")).remove(ee(v,this,"remove")).execute();function v(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var x=[],w=[],S,b=l[y].indices,C=0;C<b.length;C++){var T=a.getItemLayout(b[C]),A=T.x,M=T.y0,k=T.y;x.push(A,M),w.push(A,M+k),S=a.getItemVisual(b[C],"style")}var P,L=a.getItemLayout(b[0]),E=r.getModel("label"),R=E.get("margin"),z=r.getModel("emphasis");if(g==="add"){var O=p[y]=new xe;P=new sH({shape:{points:x,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(P),s.add(O),r.isAnimationEnabled()&&P.setClipPath(N0e(P.getBoundingRect(),r,function(){P.removeClipPath()}))}else{var O=_[m];P=O.childAt(0),s.add(O),p[y]=O,He(P,{shape:{points:x,stackedOnPoints:w}},r),Ni(P)}xr(P,rr(r),{labelDataIndex:b[C-1],defaultText:a.getName(b[C-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),P.setTextConfig({position:null,local:!0});var B=P.getTextContent();B&&(B.x=L.x-R,B.y=L.y0+L.y/2),P.useStyle(S),a.setItemGraphicEl(y,P),_r(P,r),Ct(P,z.get("focus"),z.get("blurScope"),z.get("disabled"))}this._layersSeries=l,this._layers=p},t.type="themeRiver",t}(at);function N0e(e,t,r){var n=new ze({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return vt(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var qx=2,z0e=function(e){V(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 yp(ee(this.getData,this),ee(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,i={},a=db(r,function(h){return i.hasOwnProperty(h[0]+"")||(i[h[0]+""]=-1),h[2]}),o=[];a.buckets.each(function(h,d){o.push({name:d,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,r[n]=[f,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var i=this.getReferringComponents("singleAxis",Vt).models[0],a=i.get("type"),o=qe(r.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ae(),c=0,f=0;f<s.length;++f)l.push(s[f][qx]),u.get(s[f][qx])||(u.set(s[f][qx],c),c++);var h=cp(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:jy(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new Vr(h,this);return d.initData(s),d},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),i=[],a=0;a<n;++a)i[a]=a;var o=r.mapDimension("single"),s=db(i,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,h){return r.get(o,f)-r.get(o,h)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,i){j(r)||(r=r?[r]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,h=-1,d=o[c].indices.length,p=0;p<d;++p){var v=a.get(r[0],o[c].indices[p]),g=Math.abs(v-n);g<=f&&(u=v,f=g,h=o[c].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getName(r),s=a.get(a.mapDimension("value"),r);return nr("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}(ft);function B0e(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),i=r.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=r.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=K(s[0],o.height),s[1]=K(s[1],o.height);var u=o.height-s[0]-s[1];LO(n,r,u)}else{s[0]=K(s[0],o.width),s[1]=K(s[1],o.width);var c=o.width-s[0]-s[1];LO(n,r,c)}n.setLayout("layoutInfo",a)})}function LO(e,t,r){if(e.count())for(var n=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension("single"),o=e.mapDimension("value"),s=Y(i,function(g){return Y(g.indices,function(y){var m=n.dataToPoint(e.get(a,y));return m[1]=e.get(o,y),m})}),l=F0e(s),u=l.y0,c=r/l.max,f=i.length,h=i[0].indices.length,d,p=0;p<h;++p){d=u[p]*c,e.setItemLayout(i[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:d,y:s[0][p][1]*c});for(var v=1;v<f;++v)d+=s[v-1][p][1]*c,e.setItemLayout(i[v].indices[p],{layerIndex:v,x:s[v][p][0],y0:d,y:s[v][p][1]*c})}}function F0e(e){for(var t=e.length,r=e[0].length,n=[],i=[],a=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<r;++u)i[u]=(a-n[u])/2;a=0;for(var c=0;c<r;++c){var f=n[c]+i[c];f>a&&(a=f)}return{y0:i,max:a}}function V0e(e){e.registerChartView(O0e),e.registerSeriesModel(z0e),e.registerLayout(B0e),e.registerProcessor(gp("themeRiver"))}var G0e=2,$0e=4,RO=function(e){V(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=G0e,o.textConfig={inside:!0},Se(o).seriesIndex=n.seriesIndex;var s=new Ve({z2:$0e,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;Se(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=W({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var d=n.getVisual("decal");d&&(h.decal=Pc(d,o));var p=fl(l.getModel("itemStyle"),f,!0);W(f,p),D(Hr,function(m){var _=s.ensureState(m),x=l.getModel([m,"itemStyle"]);_.style=x.getItemStyle();var w=fl(x,f);w&&(_.shape=w)}),r?(s.setShape(f),s.shape.r=c.r0,vt(s,{shape:{r:c.r}},i,n.dataIndex)):(He(s,{shape:f},i),Ni(s)),s.useStyle(h),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Ct(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),d=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!v,D(_d,function(y){var m=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),_=y==="normal",x=_?h:h.ensureState(y),w=r.getFormattedLabel(d,y);_&&(w=w||n.node.name),x.style=ut(m,{},null,y!=="normal",!0),w&&(x.style.text=w);var S=m.get("show");S!=null&&!_&&(x.ignore=!S);var b=g(m,"position"),C=_?f:f.states[y],T=C.style.fill;C.textConfig={outsideFill:m.get("color")==="inherit"?T:null,inside:b!=="outside"};var A,M=g(m,"distance")||0,k=g(m,"align"),P=g(m,"rotate"),L=Math.PI*.5,E=Math.PI*1.5,R=Cn(P==="tangential"?Math.PI/2-l:l),z=R>L&&!yd(R-L)&&R<E;b==="outside"?(A=o.r+M,k=z?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,k="center"):k==="left"?(A=o.r0+M,k=z?"right":"left"):k==="right"&&(A=o.r-M,k=z?"left":"right"),x.style.align=k,x.style.verticalAlign=g(m,"verticalAlign")||"middle",x.x=A*u+o.cx,x.y=A*c+o.cy;var O=0;P==="radial"?O=Cn(-l)+(z?Math.PI:0):P==="tangential"?O=Cn(Math.PI/2-l)+(z?Math.PI:0):$e(P)&&(O=P*Math.PI/180),x.rotation=Cn(O)});function g(y,m){var _=y.get(m);return _??a.get(m)}h.dirtyStyle()},t}(Wr),dC="sunburstRootToNode",OO="sunburstHighlight",H0e="sunburstUnhighlight";function W0e(e){e.registerAction({type:dC,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Ld(t,[dC],i);if(o){var s=i.getViewRoot();s&&(t.direction=G2(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:OO,update:"none"},function(t,r,n){t=W({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Ld(t,[OO],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(W(t,{type:"highlight"}))}),e.registerAction({type:H0e,update:"updateView"},function(t,r,n){t=W({},t),n.dispatchAction(W(t,{type:"downplay"}))})}var U0e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var d=this._oldChildren||[];p(h,d),y(l,u),this._initEvents(),this._oldChildren=h;function p(m,_){if(m.length===0&&_.length===0)return;new Qa(_,m,x,x).add(w).update(w).remove(be(w,null)).execute();function x(S){return S.getId()}function w(S,b){var C=S==null?null:m[S],T=b==null?null:_[b];v(C,T)}}function v(m,_){if(!f&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,r,n,i),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var x=new RO(m,r,n,i);c.add(x),s.setItemGraphicEl(m.dataIndex,x)}}}function g(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,r,n,i):(o.virtualPiece=new RO(m,r,n,i),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";zy(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:dC,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(at),j0e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};z6(i);var a=this._levelModels=Y(r.levels||[],function(l){return new Xe(l,this,n)},this),o=V2.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=a[f.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),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=K0(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){$H(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}(ft);function z6(e){var t=0;D(e.children,function(n){z6(n);var i=n.value;j(i)&&(i=i[0]),t+=i});var r=e.value;j(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),j(e.value)?e.value[0]=r:e.value=r}var NO=Math.PI/180;function Y0e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");j(a)||(a=[0,a]),j(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=K(i[0],o),c=K(i[1],s),f=K(a[0],l/2),h=K(a[1],l/2),d=-n.get("startAngle")*NO,p=n.get("minAngle")*NO,v=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&B6(g,m);var _=0;D(g.children,function(R){!isNaN(R.getValue())&&_++});var x=g.getValue(),w=Math.PI/(x||_)*2,S=g.depth>0,b=g.height-(S?-1:1),C=(h-f)/(b||1),T=n.get("clockwise"),A=n.get("stillShowZeroSum"),M=T?1:-1,k=function(R,z){if(R){var O=z;if(R!==v){var B=R.getValue(),I=x===0&&A?w:B*w;I<p&&(I=p),O=z+M*I;var G=R.depth-y-(S?-1:1),U=f+C*G,N=f+C*(G+1),Z=n.getLevelModel(R);if(Z){var oe=Z.get("r0",!0),te=Z.get("r",!0),fe=Z.get("radius",!0);fe!=null&&(oe=fe[0],te=fe[1]),oe!=null&&(U=K(oe,l/2)),te!=null&&(N=K(te,l/2))}R.setLayout({angle:I,startAngle:z,endAngle:O,clockwise:T,cx:u,cy:c,r0:U,r:N})}if(R.children&&R.children.length){var ie=0;D(R.children,function(le){ie+=k(le,z+ie)})}return O-z}};if(S){var P=f,L=f+C,E=Math.PI*2;v.setLayout({angle:E,startAngle:d,endAngle:d+E,clockwise:T,cx:u,cy:c,r0:P,r:L})}k(g,d)})}function B6(e,t){var r=e.children||[];e.children=X0e(r,t),r.length&&D(e.children,function(n){B6(n,t)})}function X0e(e,t){if(he(t)){var r=Y(e,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return r.sort(function(i,a){return t(i.params,a.params)}),Y(r,function(i){return e[i.index]})}else{var n=t==="asc";return e.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function Z0e(e){var t={};function r(n,i,a){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&q(s)&&(s=tb(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");W(u,l)})})}function K0e(e){e.registerChartView(U0e),e.registerSeriesModel(j0e),e.registerLayout(be(Y0e,"sunburst")),e.registerProcessor(be(gp,"sunburst")),e.registerVisual(Z0e),W0e(e)}var zO={color:"fill",borderColor:"stroke"},q0e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ga=Be(),Q0e=function(e){V(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 ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=Ga(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ft);function J0e(e,t){return t=t||[0,0],Y(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function e1e(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:ee(J0e,e)}}}function t1e(e,t){return t=t||[0,0],Y([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function r1e(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:ee(t1e,e)}}}function n1e(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function i1e(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:ee(n1e,e)}}}function a1e(e,t){return t=t||[0,0],Y(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function o1e(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ee(a1e,e)}}}function s1e(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function F6(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ne(e,"text")))}function V6(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ne(n,"text")&&(o.text=n.text),ne(n,"rich")&&(o.rich=n.rich),ne(n,"textFill")&&(o.fill=n.textFill),ne(n,"textStroke")&&(o.stroke=n.textStroke),ne(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ne(n,"fontSize")&&(o.fontSize=n.fontSize),ne(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ne(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ne(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ne(n,"textPosition")&&(i.position=n.textPosition),ne(n,"textOffset")&&(i.offset=n.textOffset),ne(n,"textRotation")&&(i.rotation=n.textRotation),ne(n,"textDistance")&&(i.distance=n.textDistance)}return BO(o,e),D(o.rich,function(l){BO(l,l)}),{textConfig:i,textContent:a}}function BO(e,t){t&&(t.font=t.textFont||t.font,ne(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ne(t,"textAlign")&&(e.align=t.textAlign),ne(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ne(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ne(t,"textWidth")&&(e.width=t.textWidth),ne(t,"textHeight")&&(e.height=t.textHeight),ne(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ne(t,"textPadding")&&(e.padding=t.textPadding),ne(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ne(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ne(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ne(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ne(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ne(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ne(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function FO(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";VO(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){VO(s,s)}),n}function VO(e,t){t&&(ne(t,"fill")&&(e.textFill=t.fill),ne(t,"stroke")&&(e.textStroke=t.fill),ne(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ne(t,"font")&&(e.font=t.font),ne(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ne(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ne(t,"fontSize")&&(e.fontSize=t.fontSize),ne(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ne(t,"align")&&(e.textAlign=t.align),ne(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ne(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ne(t,"width")&&(e.textWidth=t.width),ne(t,"height")&&(e.textHeight=t.height),ne(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ne(t,"padding")&&(e.textPadding=t.padding),ne(t,"borderColor")&&(e.textBorderColor=t.borderColor),ne(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ne(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ne(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ne(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ne(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ne(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ne(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ne(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ne(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ne(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var G6={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},GO=Re(G6);pa(ga,function(e,t){return e[t]=1,e},{});ga.join(", ");var im=["","style","shape","extra"],Oc=Be();function rM(e,t,r,n,i){var a=e+"Animation",o=Xc(e,n,i)||{},s=Oc(t).userDuring;return o.duration>0&&(o.during=s?ee(h1e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),W(o,r[a]),o}function kg(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Oc(e),u=t.style;l.userDuring=t.during;var c={},f={};if(p1e(e,t,f),HO("shape",t,f),HO("extra",t,f),!a&&s&&(d1e(e,t,c),$O("shape",e,t,c),$O("extra",e,t,c),v1e(e,t,u,c)),f.style=u,l1e(e,f,o),c1e(e,t),s)if(a){var h={};D(im,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(h[p]=h[p]||{}),W(p?h[p]:h,v.enterFrom))});var d=rM("enter",e,t,r,i);d.duration>0&&e.animateFrom(h,d)}else u1e(e,t,i||0,r,c);$6(e,t),u?e.dirty():e.markRedraw()}function $6(e,t){for(var r=Oc(e).leaveToProps,n=0;n<im.length;n++){var i=im[n],a=i?t[i]:t;a&&a.leaveTo&&(r||(r=Oc(e).leaveToProps={}),i&&(r[i]=r[i]||{}),W(i?r[i]:r,a.leaveTo))}}function J0(e,t,r,n){if(e){var i=e.parent,a=Oc(e).leaveToProps;if(a){var o=rM("update",e,t,r,0);o.done=function(){i.remove(e)},e.animateTo(a,o)}else i.remove(e)}}function bl(e){return e==="all"}function l1e(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function u1e(e,t,r,n,i){if(i){var a=rM("update",e,t,n,r);a.duration>0&&e.animateFrom(i,a)}}function c1e(e,t){ne(t,"silent")&&(e.silent=t.silent),ne(t,"ignore")&&(e.ignore=t.ignore),e instanceof si&&ne(t,"invisible")&&(e.invisible=t.invisible),e instanceof ke&&ne(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var ji={},f1e={setTransform:function(e,t){return ji.el[e]=t,this},getTransform:function(e){return ji.el[e]},setShape:function(e,t){var r=ji.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=ji.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=ji.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=ji.el.style;if(t)return t[e]},setExtra:function(e,t){var r=ji.el.extra||(ji.el.extra={});return r[e]=t,this},getExtra:function(e){var t=ji.el.extra;if(t)return t[e]}};function h1e(){var e=this,t=e.el;if(t){var r=Oc(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}ji.el=t,n(f1e)}}function $O(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),bl(l))W(o,a);else for(var u=et(l),c=0;c<u.length;c++){var f=u[c],h=a[f];o[f]=h}else if(bl(s)||Me(s,e)>=0){!o&&(o=n[e]={});for(var d=Re(a),c=0;c<d.length;c++){var f=d[c],h=a[f];g1e(i[f],h)&&(o[f]=h)}}}}}function HO(e,t,r){var n=t[e];if(n)for(var i=r[e]={},a=Re(n),o=0;o<a.length;o++){var s=a[o];i[s]=Ph(n[s])}}function d1e(e,t,r){for(var n=t.transition,i=bl(n)?ga:et(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function p1e(e,t,r){for(var n=0;n<GO.length;n++){var i=GO[n],a=G6[i],o=t[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(var n=0;n<ga.length;n++){var s=ga[n];t[s]!=null&&(r[s]=t[s])}}function v1e(e,t,r,n){if(r){var i=e.style,a;if(i){var o=r.transition,s=t.transition;if(o&&!bl(o)){var l=et(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];a[c]=f}}else if(e.getAnimationStyleProps&&(bl(s)||bl(o)||Me(s,"style")>=0)){var h=e.getAnimationStyleProps(),d=h?h.style:null;if(d){!a&&(a=n.style={});for(var p=Re(r),u=0;u<p.length;u++){var c=p[u];if(d[c]){var f=i[c];a[c]=f}}}}}}}function g1e(e,t){return Pr(e)?e!==t:e!=null&&isFinite(e)}var H6=Be(),y1e=["percent","easing","shape","style","extra"];function W6(e){e.stopAnimation("keyframe"),e.attr(H6(e))}function am(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(j(t)){D(t,function(s){am(e,s,r)});return}var n=t.keyframes,i=t.duration;if(r&&i==null){var a=Xc("enter",r,0);i=a&&a.duration}if(!(!n||!i)){var o=H6(e);D(im,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),D(n,function(u){var c=e.animators,f=s?u[s]:u;if(f){var h=Re(f);if(s||(h=qe(h,function(v){return Me(y1e,v)<0})),!!h.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var d=0;d<c.length;d++)c[d]!==l&&c[d].targetName===l.targetName&&c[d].stopTracks(h);s&&(o[s]=o[s]||{});var p=s?o[s]:o;D(h,function(v){p[v]=((s?e[s]:e)||{})[v]}),l.whenWithKeys(i*u.percent,f,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var $a="emphasis",Oo="normal",nM="blur",iM="select",as=[Oo,$a,nM,iM],Qx={normal:["itemStyle"],emphasis:[$a,"itemStyle"],blur:[nM,"itemStyle"],select:[iM,"itemStyle"]},Jx={normal:["label"],emphasis:[$a,"label"],blur:[nM,"label"],select:[iM,"label"]},m1e=["x","y"],_1e="e\0\0",Gn={normal:{},emphasis:{},blur:{},select:{}},x1e={cartesian2d:e1e,geo:r1e,single:i1e,polar:o1e,calendar:s1e};function pC(e){return e instanceof ke}function vC(e){return e instanceof si}function S1e(e,t){t.copyTransform(e),vC(t)&&vC(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,pC(t)&&pC(e)&&t.setShape(e.shape))}var w1e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=WO(r,s,n,i);o||l.removeAll(),s.diff(o).add(function(f){eS(i,null,f,u(f,a),r,l,s)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&J0(h,Ga(h).option,r)}).update(function(f,h){var d=o.getItemGraphicEl(h);eS(i,d,f,u(f,a),r,l,s)}).execute();var c=r.get("clip",!0)?pp(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,i,a,o){var s=n.getData(),l=WO(n,s,i,a),u=this._progressiveEls=[];function c(d){d.isGroup||(d.incremental=!0,d.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var h=eS(null,null,f,l(f,o),n,this.group,s);h&&(h.traverse(c),u.push(h))}},t.prototype.eachRendered=function(r){cs(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(at);function aM(e){var t=e.type,r;if(t==="path"){var n=e.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=Y6(n);r=k0(a,null,i,n.layout||"center"),Ga(r).customPathData=a}else if(t==="image")r=new cr({}),Ga(r).customImagePath=e.style.image;else if(t==="text")r=new Ve({});else if(t==="group")r=new xe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=XA(t);if(!o){var s="";Ye(s)}r=new o}return Ga(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function oM(e,t,r,n,i,a,o){W6(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=m1e);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;ne(u,"textFill")&&(u.fill=u.textFill),ne(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=pC(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Pc(f,e)),l.__decalagent=c}if(vC(t)&&l){var c=l.__decalagent;c&&(l.decal=c)}kg(t,n,a,{dataIndex:r,isInit:o,clearStyle:!0}),am(t,n.keyframeAnimation,a)}function U6(e,t,r,n,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(n===!1){var l=a.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Nl(a)}}function b1e(e,t,r){if(!e.isGroup){var n=e,i=r.currentZ,a=r.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<as.length;s++)C1e(n,t,as[s])}}function C1e(e,t,r){var n=r===Oo,i=n?t:om(t,r),a=i?i.z2:null,o;a!=null&&(o=n?e:e.ensureState(r),o.z2=a||0)}function WO(e,t,r,n){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):x1e[a.type](a));for(var s=pe({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:x,style:S,ordinalRawValue:w,styleEmphasis:b,visual:A,barLayout:M,currentSeriesIndices:k,font:P},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:T1e(e.getData())},u,c,f={},h={},d={},p={},v=0;v<as.length;v++){var g=as[v];d[g]=e.getModel(Qx[g]),p[g]=e.getModel(Jx[g])}function y(L){return L===u?c||(c=t.getItemModel(L)):t.getItemModel(L)}function m(L,E){return t.hasItemOption?L===u?f[E]||(f[E]=y(L).getModel(Qx[E])):y(L).getModel(Qx[E]):d[E]}function _(L,E){return t.hasItemOption?L===u?h[E]||(h[E]=y(L).getModel(Jx[E])):y(L).getModel(Jx[E]):p[E]}return function(L,E){return u=L,c=null,f={},h={},i&&i(pe({dataIndexInside:L,dataIndex:t.getRawIndex(L),actionType:E?E.type:null},l),s)};function x(L,E){return E==null&&(E=u),t.getStore().get(t.getDimensionIndex(L||0),E)}function w(L,E){E==null&&(E=u),L=L||0;var R=t.getDimensionInfo(L);if(!R){var z=t.getDimensionIndex(L);return z>=0?t.getStore().get(z,E):void 0}var O=t.get(R.name,E),B=R&&R.ordinalMeta;return B?B.categories[O]:O}function S(L,E){E==null&&(E=u);var R=t.getItemVisual(E,"style"),z=R&&R.fill,O=R&&R.opacity,B=m(E,Oo).getItemStyle();z!=null&&(B.fill=z),O!=null&&(B.opacity=O);var I={inheritColor:q(z)?z:"#000"},G=_(E,Oo),U=ut(G,null,I,!1,!0);U.text=G.getShallow("show")?we(e.getFormattedLabel(E,Oo),Ec(t,E)):null;var N=Oy(G,I,!1);return T(L,B),B=FO(B,U,N),L&&C(B,L),B.legacy=!0,B}function b(L,E){E==null&&(E=u);var R=m(E,$a).getItemStyle(),z=_(E,$a),O=ut(z,null,null,!0,!0);O.text=z.getShallow("show")?fa(e.getFormattedLabel(E,$a),e.getFormattedLabel(E,Oo),Ec(t,E)):null;var B=Oy(z,null,!0);return T(L,R),R=FO(R,O,B),L&&C(R,L),R.legacy=!0,R}function C(L,E){for(var R in E)ne(E,R)&&(L[R]=E[R])}function T(L,E){L&&(L.textFill&&(E.textFill=L.textFill),L.textPosition&&(E.textPosition=L.textPosition))}function A(L,E){if(E==null&&(E=u),ne(zO,L)){var R=t.getItemVisual(E,"style");return R?R[zO[L]]:null}if(ne(q0e,L))return t.getItemVisual(E,L)}function M(L){if(a.type==="cartesian2d"){var E=a.getBaseAxis();return pfe(pe({axis:E},L))}}function k(){return r.getCurrentSeriesIndices()}function P(L){return ZA(L,r)}}function T1e(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function eS(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=sM(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ct(s,n.focus,n.blurScope,n.emphasisDisabled),s}function sM(e,t,r,n,i,a){var o=-1,s=t;t&&j6(t,n,i)&&(o=Me(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=aM(n),s&&S1e(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Gn.normal.cfg=Gn.normal.conOpt=Gn.emphasis.cfg=Gn.emphasis.conOpt=Gn.blur.cfg=Gn.blur.conOpt=Gn.select.cfg=Gn.select.conOpt=null,Gn.isLegacy=!1,M1e(u,r,n,i,l,Gn),A1e(u,r,n,i,l),oM(e,u,r,n,Gn,i,l),ne(n,"info")&&(Ga(u).info=n.info);for(var c=0;c<as.length;c++){var f=as[c];if(f!==Oo){var h=om(n,f),d=lM(n,h,f);U6(f,u,h,d,Gn)}}return b1e(u,n,i),n.type==="group"&&D1e(e,u,r,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function j6(e,t,r){var n=Ga(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&E1e(a)&&Y6(a)!==n.customPathData||i==="image"&&ne(o,"image")&&o.image!==n.customImagePath}function A1e(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&j6(o,a,n)&&(o=null),o||(o=aM(a),e.setClipPath(o)),oM(null,o,t,a,null,n,i)}}function M1e(e,t,r,n,i,a){if(!e.isGroup){UO(r,null,a),UO(r,$a,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=aM(o),e.setTextContent(c)),oM(null,c,t,o,null,n,i);for(var f=o&&o.style,h=0;h<as.length;h++){var d=as[h];if(d!==Oo){var p=a[d].conOpt;U6(d,c,p,lM(o,p,d),null)}}f?c.dirty():c.markRedraw()}}}}function UO(e,t,r){var n=t?om(e,t):e,i=t?lM(e,n,$a):e.style,a=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?om(s,t):s:null;if(i&&(r.isLegacy||F6(i,a,!!o,!!l))){r.isLegacy=!0;var u=V6(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function om(e,t){return t?e?e[t]:null:e}function lM(e,t,r){var n=t&&t.style;return n==null&&r===$a&&e&&(n=e.styleEmphasis),n}function D1e(e,t,r,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){P1e({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:r,seriesModel:i,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=a[c],h=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),sM(e,h,r,f,i,t)):h.ignore=!0}for(var d=t.childCount()-1;d>=c;d--){var p=t.childAt(d);k1e(t,p,i)}}}function k1e(e,t,r){t&&J0(t,Ga(e).option,r)}function P1e(e){new Qa(e.oldChildren,e.newChildren,jO,jO,e).add(YO).update(YO).remove(I1e).execute()}function jO(e,t){var r=e&&e.name;return r??_1e+t}function YO(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;sM(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function I1e(e){var t=this.context,r=t.oldChildren[e];r&&J0(r,Ga(r).option,t.seriesModel)}function Y6(e){return e&&(e.pathData||e.d)}function E1e(e){return e&&(ne(e,"pathData")||ne(e,"d"))}function L1e(e){e.registerChartView(w1e),e.registerSeriesModel(Q0e)}var qs=Be(),XO=me,tS=ee,uM=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new xe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=be(ZO,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}qO(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=L2(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=qs(t).pointerEl=new Ul[a.type](XO(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=qs(t).labelEl=new Ve(XO(r.label));t.add(a),KO(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=qs(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=qs(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),KO(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=sp(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Xa(u.event)},onmousedown:tS(this._onHandleDragMove,this,0,0),drift:tS(this._onHandleDragMove,this),ondragend:tS(this._onHandleDragEnd,this)}),n.add(i)),qO(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");j(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,rf(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){ZO(this._axisPointerModel,!r&&this._moveAnimation,this._handle,rS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(rS(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(rS(i)),qs(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Td(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 ZO(e,t,r,n){X6(qs(r).lastProp,n)||(qs(r).lastProp=n,t?He(r,n,e):(r.stopAnimation(),r.attr(n)))}function X6(e,t){if(ge(e)&&ge(t)){var r=!0;return D(t,function(n,i){r=r&&X6(e[i],n)}),!!r}else return e===t}function KO(e,t){e[t.get(["label","show"])?"show":"hide"]()}function rS(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function qO(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function cM(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 Z6(e,t,r,n,i){var a=r.get("value"),o=K6(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Qc(s.get("padding")||0),u=s.getFont(),c=tp(o,u),f=i.position,h=c.width+l[1]+l[3],d=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=h),p==="center"&&(f[0]-=h/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=d),v==="middle"&&(f[1]-=d/2),R1e(f,h,d,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:ut(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function R1e(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function K6(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:w2(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),q(o)?a=o.replace("{value}",a):he(o)&&(a=o(s))}return a}function fM(e,t,r){var n=Mn();return Wl(n,n,r.rotation),va(n,n,r.position),Ii([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function q6(e,t,r,n,i,a){var o=Gr.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),Z6(t,n,i,a,{position:fM(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function hM(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Q6(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function QO(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var O1e=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=JO(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=cM(a),d=N1e[u](s,f,c);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=Kb(l.model,i);q6(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Kb(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=fM(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=JO(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var h=(u[1]+u[0])/2,d=[h,h];d[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:d,tooltipOption:p[c]}},t}(uM);function JO(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var N1e={line:function(e,t,r){var n=hM([t,r[0]],[t,r[1]],eN(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:Q6([t-n/2,r[0]],[n,i],eN(e))}}};function eN(e){return e.dim==="x"?0:1}var z1e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Le),Na=Be(),B1e=D;function J6(e,t,r){if(!Ee.node){var n=t.getZr();Na(n).records||(Na(n).records={}),F1e(n,t);var i=Na(n).records[e]||(Na(n).records[e]={});i.handler=r}}function F1e(e,t){if(Na(e).initialized)return;Na(e).initialized=!0,r("click",be(tN,"click")),r("mousemove",be(tN,"mousemove")),r("globalout",G1e);function r(n,i){e.on(n,function(a){var o=$1e(t);B1e(Na(e).records,function(s){s&&i(s,a,o.dispatchAction)}),V1e(o.pendings,t)})}}function V1e(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function G1e(e,t,r){e.handler("leave",null,r)}function tN(e,t,r,n){t.handler(e,r,n)}function $1e(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function gC(e,t){if(!Ee.node){var r=t.getZr(),n=(Na(r).records||{})[e];n&&(Na(r).records[e]=null)}}var H1e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";J6("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){gC("axisPointer",n)},t.prototype.dispose=function(r,n){gC("axisPointer",n)},t.type="axisPointer",t}(_t);function eW(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Rl(a,e);if(o==null||o<0||j(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,d=f==="x"||f==="radius"?1:0,p=a.mapDimension(h),v=[];v[d]=a.get(p,o),v[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(Y(l.dimensions,function(y){return a.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 rN=Be();function W1e(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ee(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Pg(i)&&(i=eW({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Pg(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Pg(i),h={},d={},p={list:[],map:{}},v={showPointer:be(j1e,d),showTooltip:be(Y1e,p)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);D(s.coordSysAxesInfo[m],function(x,w){var S=x.axis,b=q1e(u,x);if(!f&&_&&(!u||b)){var C=b&&b.value;C==null&&!l&&(C=S.pointToData(i)),C!=null&&nN(x,C,v,!1,h)}})});var g={};return D(c,function(y,m){var _=y.linkGroup;_&&!d[m]&&D(_.axesInfo,function(x,w){var S=d[w];if(x!==y&&S){var b=S.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,iN(x),iN(y)))),g[y.key]=b}})}),D(g,function(y,m){nN(c[m],y,v,!0,h)}),X1e(d,c,h),Z1e(p,i,e,o),K1e(c,o,r),h}}function nN(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=U1e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&W(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function U1e(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,r);h=d.dataIndices,f=d.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v<o||p>=0&&s<0)&&(o=v,s=p,i=f,a.length=0),D(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function j1e(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Y1e(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ed(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function X1e(e,t,r){var n=r.axesInfo=[];D(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Z1e(e,t,r,n){if(Pg(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function K1e(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=rN(n)[i]||{},o=rN(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function q1e(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 iN(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 Pg(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function xp(e){Zl.registerAxisPointerClass("CartesianAxisPointer",O1e),e.registerComponentModel(z1e),e.registerComponentView(H1e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!j(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=spe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},W1e)}function Q1e(e){De(MH),De(xp)}var J1e=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var d=cM(a),p=t_e[h](s,l,f,c);p.style=d,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=e_e(n,i,a,l,v);Z6(r,i,a,o,g)},t}(uM);function e_e(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var h=Mn();Wl(h,h,s),va(h,h,[n.cx,n.cy]),u=Ii([o,-i],h);var d=t.getModel("axisLabel").get("rotate")||0,p=Gr.innerTextLayout(s,d*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+i,o]);var g=n.cx,y=n.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/v<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var t_e={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:hM(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:QO(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:QO(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},r_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Le),dM=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Vt).models[0]},t.type="polarAxis",t}(Le);Ht(dM,fp);var n_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(dM),i_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(dM),pM=function(e){V(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}(Bi);pM.prototype.dataToRadius=Bi.prototype.dataToCoord;pM.prototype.radiusToData=Bi.prototype.coordToData;var a_e=Be(),vM=function(e){V(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=tp(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),p=a_e(r.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-d)<=1&&Math.abs(g-o)<=1&&v>d?d=v:(p.lastTickCount=o,p.lastAutoInterval=d),d},t}(Bi);vM.prototype.dataToAngle=Bi.prototype.dataToCoord;vM.prototype.angleToData=Bi.prototype.coordToData;var tW=["radius","angle"],o_e=function(){function e(t){this.dimensions=tW,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new pM,this._angleAxis=new vM,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},e.prototype.convertToPixel=function(t,r,n){var i=aN(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=aN(r);return i===this?this.pointToData(n):null},e}();function aN(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const s_e=o_e;function l_e(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=K(n[0],i),e.cy=K(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:j(l)||(l=[0,l]);var u=[K(l[0],s),K(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function u_e(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();D(Yy(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(Yy(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Ic(n.scale,n.model),Ic(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function c_e(e){return e.mainType==="angleAxis"}function oN(e,t){var r;if(e.type=t.get("type"),e.scale=j0(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),c_e(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var f_e={dimensions:tW,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new s_e(i+"");a.update=u_e;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");oN(o,l),oN(s,u),l_e(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Vt).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},h_e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Vv(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Gv(e){var t=e.getRadiusAxis();return t.inverse?0:1}function sN(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 d_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Y(i.getViewLabels(),function(c){c=me(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});sN(u),sN(s),D(h_e,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&p_e[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Zl),p_e={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Gv(r),f=c?0:1,h,d=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?h=new Ul[d]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new M0({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,e.add(h)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Gv(r)],u=Y(n,function(c){return new Jt({shape:Vv(r,[l,l+s],c.coord)})});e.add(Jn(u,{style:pe(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Gv(r)],c=[],f=0;f<i.length;f++)for(var h=0;h<i[f].length;h++)c.push(new Jt({shape:Vv(r,[u,u+l],i[f][h].coord)}));e.add(Jn(c,{style:pe(s.getModel("lineStyle").getLineStyle(),pe(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");D(o,function(f,h){var d=l,p=f.tickValue,v=a[Gv(r)],g=r.coordToPoint([v+u,f.coord]),y=r.cx,m=r.cy,_=Math.abs(g[0]-y)/v<.3?"center":g[0]>y?"left":"right",x=Math.abs(g[1]-m)/v<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var w=s[p];ge(w)&&w.textStyle&&(d=new Xe(w.textStyle,l,l.ecModel))}var S=new Ve({silent:Gr.isLabelSilent(t),style:ut(d,{x:g[0],y:g[1],fill:d.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:x})});if(e.add(S),c){var b=Gr.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=f.rawLabel,Se(S).eventData=b}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Jt({shape:Vv(r,a,n[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Jn(c[f],{style:pe({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new Jt({shape:Vv(r,a,i[u][c].coord)}));e.add(Jn(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,i,a){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,h=-n[0].coord*f,d=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),v=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new Wr({shape:{cx:r.cx,cy:r.cy,r0:d,r:p,startAngle:h,endAngle:-m*f,clockwise:v},silent:!0})),h=-m*f}for(var g=0;g<c.length;g++)e.add(Jn(c[g],{style:pe({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},v_e=["axisLine","axisTickLabel","axisName"],g_e=["splitLine","splitArea","minorSplitLine"],y_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,a=this._axisGroup=new xe;this.group.add(a);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],h=o.getExtent(),d=__e(s,r,f),p=new Gr(r,d);D(v_e,p.add,p),a.add(p.getGroup()),op(i,a,r),D(g_e,function(v){r.get([v,"show"])&&!o.scale.isBlank()&&m_e[v](this.group,r,s,f,h,u,c)},this)}},t.type="radiusAxis",t}(Zl),m_e={splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=r.getAngleAxis(),f=Math.PI/180,h=c.getExtent(),d=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],v=0;v<a.length;v++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new Ul[d]({shape:{cx:r.cx,cy:r.cy,r:Math.max(a[v].coord,0),startAngle:-h[0]*f,endAngle:-h[1]*f,clockwise:c.inverse}}))}for(var v=0;v<p.length;v++)e.add(Jn(p[v],{style:pe({stroke:l[v%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new io({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));e.add(Jn(u,{style:pe({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,i,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=a[0].coord,h=1;h<a.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Wr({shape:{cx:r.cx,cy:r.cy,r0:f,r:a[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=a[h].coord}for(var h=0;h<c.length;h++)e.add(Jn(c[h],{style:pe({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function __e(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 rW(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function nW(e,t){return t.dim+e.model.componentIndex}function x_e(e,t,r){var n={},i=S_e(qe(t.getSeriesByType(e),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=nW(s,l),c=rW(a),f=i[u][c],h=f.offset,d=f.width,p=s.getOtherAxis(l),v=a.coordinateSystem.cx,g=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;n[c]=n[c]||[];for(var _=o.mapDimension(p.dim),x=o.mapDimension(l.dim),w=ns(o,_),S=l.dim!=="radius"||!a.get("roundCap",!0),b=p.model,C=b.get("startValue"),T=p.dataToCoord(C||0),A=0,M=o.count();A<M;A++){var k=o.get(_,A),P=o.get(x,A),L=k>=0?"p":"n",E=T;w&&(n[c][P]||(n[c][P]={p:T,n:T}),E=n[c][P][L]);var R=void 0,z=void 0,O=void 0,B=void 0;if(p.dim==="radius"){var I=p.dataToCoord(k)-T,G=l.dataToCoord(P);Math.abs(I)<y&&(I=(I<0?-1:1)*y),R=E,z=E+I,O=G-h,B=O-d,w&&(n[c][P][L]=z)}else{var U=p.dataToCoord(k,S)-T,N=l.dataToCoord(P);Math.abs(U)<m&&(U=(U<0?-1:1)*m),R=N+h,z=R+d,O=E,B=E+U,w&&(n[c][P][L]=B)}o.setItemLayout(A,{cx:v,cy:g,r0:R,r:z,startAngle:-O*Math.PI/180,endAngle:-B*Math.PI/180,clockwise:O>=B})}}})}function S_e(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=nW(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;t[l]=f;var d=rW(n);h[d]||f.autoWidthCount++,h[d]=h[d]||{width:0,maxWidth:0};var p=K(n.get("barWidth"),c),v=K(n.get("barMaxWidth"),c),g=n.get("barGap"),y=n.get("barCategoryGap");p&&!h[d].width&&(p=Math.min(f.remainedWidth,p),h[d].width=p,f.remainedWidth-=p),v&&(h[d].maxWidth=v),g!=null&&(f.gap=g),y!=null&&(f.categoryGap=y)});var r={};return D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=K(n.categoryGap,o),l=K(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),D(a,function(v,g){var y=v.maxWidth;y&&y<f&&(y=Math.min(y,u),v.width&&(y=Math.min(y,v.width)),u-=y,v.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var h=0,d;D(a,function(v,g){v.width||(v.width=f),d=v,h+=v.width*(1+l)}),d&&(h-=d.width*l);var p=-h/2;D(a,function(v,g){r[i][g]=r[i][g]||{offset:p,width:v.width},p+=v.width*(1+l)})}),r}var w_e={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},b_e={splitNumber:5},C_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(_t);function T_e(e){De(xp),Zl.registerAxisPointerClass("PolarAxisPointer",J1e),e.registerCoordinateSystem("polar",f_e),e.registerComponentModel(r_e),e.registerComponentView(C_e),Lc(e,"angle",n_e,w_e),Lc(e,"radius",i_e,b_e),e.registerComponentView(d_e),e.registerComponentView(y_e),e.registerLayout(be(x_e,"bar"))}function yC(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,i={},a=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),sr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=t.rotate;return h==null&&(h=e.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-h:h,i.z2=1,i}var A_e=["axisLine","axisTickLabel","axisName"],M_e=["splitArea","splitLine"],D_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new xe;var l=yC(r),u=new Gr(r,l);D(A_e,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),D(M_e,function(c){r.get([c,"show"])&&k_e[c](this,this.group,this._axisGroup,r)},this),op(s,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)},t.prototype.remove=function(){CH(this)},t.type="singleAxis",t}(Zl),k_e={splitLine:function(e,t,r,n){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],h=0,d=i.getTicksCoords({tickModel:a}),p=[],v=[],g=0;g<d.length;++g){var y=i.toGlobalCoord(d[g].coord);c?(p[0]=y,p[1]=u.y,v[0]=y,v[1]=u.y+u.height):(p[0]=u.x,p[1]=y,v[0]=u.x+u.width,v[1]=y);var m=new Jt({shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},silent:!0});Dc(m.shape,l);var _=h++%s.length;f[_]=f[_]||[],f[_].push(m)}for(var x=o.getLineStyle(["color"]),g=0;g<f.length;++g)t.add(Jn(f[g],{style:pe({stroke:s[g%s.length]},x),silent:!0}))}},splitArea:function(e,t,r,n){bH(e,r,n,n)}},Ig=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Le);Ht(Ig,fp.prototype);var P_e=function(e){V(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(Bi),iW=["single"],I_e=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=iW,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=this.dimension,a=new P_e(i,j0(t),[0,0],t.get("type"),t.get("position")),o=a.type==="category";a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();D(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),Ic(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=Xt({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),i=n?[0,t.width]:[0,t.height],a=r.inverse?1:0;r.setExtent(i[a],i[1-a]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),i=n[0]+n[1],a=t.isHorizontal();t.toGlobalCoord=a?function(o){return o+r}:function(o){return i-o+r},t.toLocalCoord=a?function(o){return o-r}:function(o){return i-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=lN(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=lN(r);return i===this?this.pointToData(n):null},e}();function lN(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function E_e(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new I_e(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",Vt).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var L_e={create:E_e,dimensions:iW},uN=["x","y"],R_e=["width","height"],O_e=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=nS(l,1-sm(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=cM(a),d=N_e[f](s,c,u);d.style=h,r.graphicKey=d.type,r.pointer=d}var p=yC(i);q6(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=yC(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=fM(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=sm(o),u=nS(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=nS(s,1-l),h=(f[1]+f[0])/2,d=[h,h];return d[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(uM),N_e={line:function(e,t,r){var n=hM([t,r[0]],[t,r[1]],sm(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:Q6([t-n/2,r[0]],[n,i],sm(e))}}};function sm(e){return e.isHorizontal()?0:1}function nS(e,t){var r=e.getRect();return[r[uN[t]],r[uN[t]]+r[R_e[t]]]}var z_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(_t);function B_e(e){De(xp),Zl.registerAxisPointerClass("SingleAxisPointer",O_e),e.registerComponentView(z_e),e.registerComponentView(D_e),e.registerComponentModel(Ig),Lc(e,"single",Ig,Ig.defaultOption),e.registerCoordinateSystem("single",L_e)}var F_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=Jc(r);e.prototype.init.apply(this,arguments),cN(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),cN(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Le);function cN(e,t){var r=e.cellSize,n;j(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Y([0,1],function(a){return nle(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});rs(e,t,{type:"box",ignoreSize:i})}var V_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new ze({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,h=0;f.time<=n.end.time;h++){p(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var d=f.date;d.setMonth(d.getMonth()+1),f=s.getDateInfo(d)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(r,v,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Zr({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return q(r)&&r?ele(r,n):he(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,d={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},y=this._formatterLabel(v,g),m=new Ve({z2:30,style:ut(o,{text:y})});m.attr(this._yearTextPositionControl(m,d[l],i,l,s)),a.add(m)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||q(s))&&(s&&(n=Tb(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,d=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v<f[h].length-1;v++){var g=f[h][v].slice(),y=this._firstDayOfMonth[v];if(p){var m=this._firstDayPoints[v];g[d]=(m[d]+f[0][v+1][d])/2}var _=o.get("formatter"),x=s[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},S=this._formatterLabel(_,w),b=new Ve({z2:30,style:W(ut(o,{text:S}),this._monthTextPositionControl(g,p,i,u,l))});a.add(b)}}},t.prototype._weekTextPositionControl=function(r,n,i,a,o){var s="center",l="middle",u=r[0],c=r[1],f=i==="start";return n==="horizontal"?(u=u+a+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+a+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,i,a,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||q(c)){c&&(n=Tb(c)||n);var d=n.get(["time","dayOfWeekShort"]);c=d||Y(n.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var p=l.getNextNDay(i.end.time,7-i.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];f=K(f,Math.min(v[1],v[0])),u==="start"&&(p=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+h)%7);var x=new Ve({z2:30,style:W(ut(s,{text:c[_]}),this._weekTextPositionControl(m,a,u,f,v))});o.add(x)}}},t.type="calendar",t}(_t),iS=864e5,G_e=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=ya(t);var r=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+i+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(f){c(a,f)&&(o[i[f]]=a[f]*s[f])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=Xt(o,l);D([0,1],function(f){c(a,f)||(a[f]=u[i[f]]/s[f])});function c(f,h){return f[h]!=null&&f[h]!=="auto"}this._sw=a[0],this._sh=a[1]},e.prototype.dataToPoint=function(t,r){j(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(r&&!(n.time>=i.start.time&&n.time<i.end.time+iS))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,i):this._getDateByWeeksAndDay(r,n-1,i)},e.prototype.convertToPixel=function(t,r,n){var i=fN(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=fN(r);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(j(t)&&t.length===1&&(t=t[0]),j(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);r=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/iS)-Math.floor(r[0].time/iS)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&r<i.fweek||t===i.weeks&&r>i.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function fN(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function $_e(e){e.registerComponentModel(F_e),e.registerComponentView(V_e),e.registerCoordinateSystem("calendar",G_e)}function H_e(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 hN(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function W_e(e,t,r){var n=W({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Te(i,n,!0),rs(i,n,{ignoreSize:!0}),KV(r,i),$v(r,i),$v(r,i,"shape"),$v(r,i,"style"),$v(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var aW=["transition","enterFrom","leaveTo"],U_e=aW.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function $v(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?aW:U_e,i=0;i<n.length;i++){var a=n[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function j_e(e,t){if(e&&(e.hv=t.hv=[hN(t,["left","right"]),hN(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 Y_e=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=i},t.prototype.optionUpdated=function(r,n){var i=this.option,a=(n?i:r).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=W4(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(c,f){var h=c.newOption;h&&(u.push(h),H_e(c,h),W_e(o,f,h),j_e(o[f],h))},this),i.elements=qe(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,i){D(r,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(Le),dN={path:null,compoundPath:null,group:xe,image:cr,text:Ve},jn=Be(),X_e=function(e){V(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=ae()},t.prototype.render=function(r,n,i){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,i)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(l){var u=Yt(l.id,null),c=u!=null?i.get(u):null,f=Yt(l.parentId,null),h=f!=null?i.get(f):a,d=l.type,p=l.style;d==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var v=l.textContent,g=l.textConfig;if(p&&F6(p,d,!!g,!!v)){var y=V6(p,d,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!v&&y.textContent&&(v=y.textContent)}var m=Z_e(l),_=l.$action||"merge",x=_==="merge",w=_==="replace";if(x){var S=!c,b=c;S?b=pN(u,h,l.type,i):(b&&(jn(b).isNew=!1),W6(b)),b&&(kg(b,m,r,{isInit:S}),vN(b,l,o,s))}else if(w){Eg(c,l,i,r);var C=pN(u,h,l.type,i);C&&(kg(C,m,r,{isInit:!0}),vN(C,l,o,s))}else _==="remove"&&($6(c,l),Eg(c,l,i,r));var T=i.get(u);if(T&&v)if(x){var A=T.getTextContent();A?A.attr(v):T.setTextContent(new Ve(v))}else w&&T.setTextContent(new Ve(v));if(T){var M=l.clipPath;if(M){var k=M.type,P=void 0,S=!1;if(x){var L=T.getClipPath();S=!L||jn(L).type!==k,P=S?mC(k):L}else w&&(S=!0,P=mC(k));T.setClipPath(P),kg(P,M,r,{isInit:S}),am(P,M.keyframeAnimation,r)}var E=jn(T);T.setTextConfig(g),E.option=l,K_e(T,r,l),Zc({el:T,componentModel:r,itemName:T.name,itemTooltipOption:l.tooltip}),am(T,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var i=r.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],h=Yt(f.id,null),d=h!=null?o.get(h):null;if(!(!d||!d.isGroup)){var p=d.parent,v=p===a,g=jn(d),y=jn(p);g.width=K(g.option.width,v?s:y.width)||0,g.height=K(g.option.height,v?l:y.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],h=Yt(f.id,null),d=h!=null?o.get(h):null;if(d){var p=d.parent,y=jn(p),m=p===a?{width:s,height:l}:{width:y.width,height:y.height},_={},x=z0(d,f,m,null,{hv:f.hv,boundingMode:f.bounding},_);if(!jn(d).isNew&&x){for(var w=f.transition,S={},b=0;b<u.length;b++){var C=u[b],T=_[C];w&&(bl(w)||Me(w,C)>=0)?S[C]=T:d[C]=T}He(d,S,r,0)}else d.attr(_)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Eg(i,jn(i).option,n,r._lastGraphicModel)}),this._elMap=ae()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(_t);function mC(e){var t=ne(dN,e)?dN[e]:XA(e),r=new t({});return jn(r).type=e,r}function pN(e,t,r,n){var i=mC(r);return t.add(i),n.set(e,i),jn(i).id=e,jn(i).isNew=!0,i}function Eg(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){Eg(a,t,r,n)}),J0(e,t,n),r.removeKey(jn(e).id))}function vN(e,t,r,n){e.isGroup||D([["cursor",si.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ne(t,a)?e[a]=we(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(Re(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=he(a)?a:null}}),ne(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Z_e(e){return e=W({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(ZV),function(t){delete e[t]}),e}function K_e(e,t,r){var n=Se(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Se(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function q_e(e){e.registerComponentModel(Y_e),e.registerComponentView(X_e),e.registerPreprocessor(function(t){var r=t.graphic;j(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var gN=["x","y","radius","angle","single"],Q_e=["cartesian2d","polar","singleAxis"];function J_e(e){var t=e.get("coordinateSystem");return Me(Q_e,t)>=0}function No(e){return e+"Axis"}function exe(e,t){var r=ae(),n=[],i=ae();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,d){var p=r.get(h);p&&p[d]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function oW(e){var t=e.ecModel,r={infoList:[],infoMap:ae()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(No(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var aS=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}(),Bd=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=yN(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=yN(r);Te(this.option,r,!0),Te(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ae(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D(gN,function(i){var a=this.getReferringComponents(No(i),Fae);if(a.specified){n=!0;var o=new aS;D(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var h=new aS;if(h.add(f.componentIndex),r.set(c,h),a=!1,c==="x"||c==="y"){var d=f.getReferringComponents("grid",Vt).models[0];d&&D(u,function(p){f.componentIndex!==p.componentIndex&&d===p.getReferringComponents("grid",Vt).models[0]&&h.add(p.componentIndex)})}}}a&&D(gN,function(u){if(a){var c=i.findComponents({mainType:No(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new aS;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(No(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(No(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Le);function yN(e){var t={};return D(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var txe=function(e){V(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}(Bd),gM=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.dataZoomModel=r,this.ecModel=n,this.api=i},t.type="dataZoom",t}(_t),rxe=function(e){V(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}(gM),Eu=D,mN=ri,nxe=function(){function e(t,r,n,i){this._dimName=t,this._axisIndex=r,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(J_e(r)){var n=No(this._dimName),i=r.getReferringComponents(n,Vt).models[0];i&&this._axisIndex===i.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return me(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Eu(["start","end"],function(h,d){var p=t[h],v=t[h+"Value"];a[d]==="percent"?(p==null&&(p=o[d]),v=i.parse(Ke(p,o,r))):(u=!0,v=v==null?r[d]:i.parse(v),p=Ke(v,r,o)),l[d]=v==null||isNaN(v)?r[d]:v,s[d]=p==null||isNaN(p)?o[d]:p}),mN(l),mN(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(h,d,p,v,g){var y=g?"Span":"ValueSpan";Kl(0,h,p,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)d[m]=Ke(h[m],p,v,!0),g&&(d[m]=i.parse(d[m]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=ixe(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;Eu(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var f=u.getStore(),h=Y(c,function(d){return u.getDimensionIndex(d)},u);u.filterSelf(function(d){for(var p,v,g,y=0;y<c.length;y++){var m=f.get(h[y],d),_=!isNaN(m),x=m<o[0],w=m>o[1];if(_&&!x&&!w)return!0;_&&(g=!0),x&&(p=!0),w&&(v=!0)}return g&&p&&v})}else Eu(c,function(d){if(a==="empty")l.setData(u=u.map(d,function(v){return s(v)?v:NaN}));else{var p={};p[d]=o,u.selectRange(p)}});Eu(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Eu(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Ke(n[0]+o,n,[0,100],!0):a!=null&&(o=Ke(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=N4(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function ixe(e,t,r){var n=[1/0,-1/0];Eu(r,function(o){Nfe(n,o.getData(),t)});var i=e.getAxisModel(),a=b$(i.axis.scale,i,n).calculate();return[a.min,a.max]}var axe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(No(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new nxe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ae();return D(r,function(i){D(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function oxe(e){e.registerAction("dataZoom",function(t,r){var n=exe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var _N=!1;function yM(e){_N||(_N=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,axe),oxe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function sxe(e){e.registerComponentModel(txe),e.registerComponentView(rxe),yM(e)}var Qn=function(){function e(){}return e}(),sW={};function Lu(e,t){sW[e]=t}function lW(e){return sW[e]}var lxe=function(e){V(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,i){var a=lW(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Te(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Le);function uxe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=Xt(n,a,i);Sl(t.get("orient"),e,t.get("itemGap"),o.width,o.height),z0(e,n,a,i)}function uW(e,t){var r=Qc(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new ze({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var cxe=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];D(u,function(p,v){f.push(v)}),new Qa(this._featureNames||[],f).add(h).update(h).remove(be(h,null)).execute(),this._featureNames=f;function h(p,v){var g=f[p],y=f[v],m=u[g],_=new Xe(m,r,r.ecModel),x;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(fxe(g))x={onclick:_.option.onclick,featureName:g};else{var w=lW(g);if(!w)return;x=new w}c[g]=x}else if(x=c[y],!x)return;x.uid=qc("toolbox-feature"),x.model=_,x.ecModel=n,x.api=i;var S=x instanceof Qn;if(!g&&y){S&&x.dispose&&x.dispose(n,i);return}if(!_.get("show")||S&&x.unusable){S&&x.remove&&x.remove(n,i);return}d(_,x,g),_.setIconStatus=function(b,C){var T=this.option,A=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[b]=C,A[b]&&(C==="emphasis"?Ka:qa)(A[b])},x instanceof Qn&&x.render&&x.render(_,n,i,a)}function d(p,v,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=v instanceof Qn&&v.getIcons?v.getIcons():p.get("icon"),x=p.get("title")||{},w,S;q(_)?(w={},w[g]=_):w=_,q(x)?(S={},S[g]=x):S=x;var b=p.iconPaths={};D(w,function(C,T){var A=sp(C,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var M=A.ensureState("emphasis");M.style=m.getItemStyle();var k=new Ve({style:{text:S[T],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:ZA({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});A.setTextContent(k),Zc({el:A,componentModel:r,itemName:T,formatterParamsExtra:{title:S[T]}}),A.__title=S[T],A.on("mouseover",function(){var P=m.getItemStyle(),L=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:m.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||L}),k.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),k.hide()}),(p.get(["iconStatus",T])==="emphasis"?Ka:qa)(A),o.add(A),A.on("click",ee(v.onclick,v,n,i,T)),b[T]=A})}uxe(o,r,i),o.add(uW(o.getBoundingRect(),r)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!he(_)&&v){var x=_.style||(_.style={}),w=tp(v,Ve.makeFont(x)),S=p.x+o.x,b=p.y+o.y+s,C=!1;b+w.height>i.getHeight()&&(y.position="top",C=!0);var T=C?-5-w.height:s+10;S+w.width/2>i.getWidth()?(y.position=["100%",T],x.align="right"):S-w.width/2<0&&(y.position=[0,T],x.align="left")}})},t.prototype.updateView=function(r,n,i,a){D(this._features,function(o){o instanceof Qn&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof Qn&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof Qn&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(_t);function fxe(e){return e.indexOf("my")===0}var hxe=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Ee.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),d=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];d&&(p=window.atob(p));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,v)}else{var _=document.createElement("iframe");document.body.appendChild(_);var x=_.contentWindow,w=x.document;w.open("image/svg+xml","replace"),w.write(p),w.close(),x.focus(),w.execCommand("SaveAs",!0,v),document.body.removeChild(_)}}else{var S=i.get("lang"),b='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',C=window.open();C.document.write(b),C.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Qn),xN="__ec_magicType_stack__",dxe=[["line","bar"],["stack"]],pxe=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return D(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(SN[i]){var s={series:[]},l=function(f){var h=f.subType,d=f.id,p=SN[i](h,d,f,a);p&&(pe(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=f.getReferringComponents(m,Vt).models[0],x=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=x;w++)s[m][x]=s[m][x]||{};s[m][x].boundaryGap=i==="bar"}}};D(dxe,function(f){Me(f,i)>=0&&D(f,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Te({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qn),SN={line:function(e,t,r,n){if(e==="bar")return Te({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 Te({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===xN;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Te({id:t,stack:i?"":xN},n.get(["option","stack"])||{},!0)}};Sa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var e1=new Array(60).join("-"),Nc=" ";function vxe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function gxe(e){var t=[];return D(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Y(r.series,function(d){return d.name})),l=[i.model.getCategories()];D(r.series,function(d){var p=d.getRawData();l.push(d.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(Nc)],c=0;c<l[0].length;c++){for(var f=[],h=0;h<l.length;h++)f.push(l[h][c]);u.push(f.join(Nc))}t.push(u.join(`
224
- `))}),t.join(`
225
-
226
- `+e1+`
227
-
228
- `)}function yxe(e){return Y(e,function(t){var r=t.getRawData(),n=[t.name],i=[];return r.each(r.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=r.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+Nc:"")+i.join(Nc))}),n.join(`
229
- `)}).join(`
230
-
231
- `+e1+`
232
-
233
- `)}function mxe(e){var t=vxe(e);return{value:qe([gxe(t.seriesGroupByCategoryAxis),yxe(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
234
-
235
- `+e1+`
236
-
237
- `),meta:t.meta}}function lm(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _xe(e){var t=e.slice(0,e.indexOf(`
238
- `));if(t.indexOf(Nc)>=0)return!0}var _C=new RegExp("["+Nc+"]+","g");function xxe(e){for(var t=e.split(/\n+/g),r=lm(t.shift()).split(_C),n=[],i=Y(r,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=lm(t[a]).split(_C);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function Sxe(e){for(var t=e.split(/\n+/g),r=lm(t.shift()),n=[],i=0;i<t.length;i++){var a=lm(t[i]);if(a){var o=a.split(_C),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:r,data:n}}function wxe(e,t){var r=e.split(new RegExp(`
239
- *`+e1+`
240
- *`,"g")),n={series:[]};return D(r,function(i,a){if(_xe(i)){var o=xxe(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Sxe(i);n.series.push(o)}}),n}var bxe=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),h=a.get("contentToOption"),d=mxe(r);if(he(f)){var p=f(n.getOption());q(p)?u.innerHTML=p:Ac(p)&&u.appendChild(p)}else{c.readOnly=a.get("readOnly");var v=c.style;v.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",v.color=a.get("textColor"),v.borderColor=a.get("textareaBorderColor"),v.backgroundColor=a.get("textareaColor"),c.value=d.value,u.appendChild(c)}var g=d.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"),x=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var w=this;function S(){i.removeChild(o),w._dom=null}qw(_,"click",S),qw(x,"click",function(){if(h==null&&f!=null||h!=null&&f==null){S();return}var b;try{he(h)?b=h(u,n.getOption()):b=wxe(c.value,g)}catch(C){throw S(),new Error("Data view format error "+C)}b&&n.dispatchAction({type:"changeDataView",newOption:b}),S()}),_.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(x),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Qn);function Cxe(e,t){return Y(e,function(r,n){var i=t&&t[n];if(ge(i)&&!j(i)){var a=ge(r)&&!j(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=pe(r,i),o&&delete r.name,r}else return r})}Sa({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];D(e.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)r.push(W({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:Cxe(n.data,a)})}}),t.mergeOption(pe({series:r},e.newOption))});var cW=D,fW=Be();function Txe(e,t){var r=mM(e);cW(t,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function Axe(e){var t=mM(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return cW(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function Mxe(e){fW(e).snapshots=null}function Dxe(e){return mM(e).length}function mM(e){var t=fW(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var kxe=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){Mxe(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}(Qn);Sa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var Pxe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],_M=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=wN(r,t);D(Ixe,function(o,s){(!n||!n.include||Me(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=oS[n.brushType](0,a,i);n.__rangeOffset={offset:AN[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=oS[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=oS[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?AN[n.brushType](a.values,o.offset,Exe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Y(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:_6(i),isTargetByCursor:S6(i,t,n.coordSysModel),getLinearBrushOtherExtent:x6(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&Me(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=wN(r,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<bN.length;l++)if(bN[l](i,o))return o}return!0},e}();function xC(e){return e[0]>e[1]&&e.reverse(),e}function wN(e,t){return Eh(e,t,{includeMainTypes:Pxe})}var Ixe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ae(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];D(u.getCartesians(),function(f,h){(Me(r,f.getAxis("x").model)>=0||Me(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:CN.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:CN.geo})})}},bN=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],CN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(xl(e)),t}},oS={lineX:be(TN,0),lineY:be(TN,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[xC([i[0],a[0]]),xC([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Y(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function TN(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=xC(Y([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var AN={lineX:be(MN,0),lineY:be(MN,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 Y(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function MN(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function Exe(e,t){var r=DN(e),n=DN(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function DN(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var SC=D,Lxe=Rae("toolbox-dataZoom_"),Rxe=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new X2(i.getZr()),this._brushController.on("brush",ee(this._onBrush,this)).mount()),zxe(r,n,this,a,i),Nxe(r,n)},t.prototype.onclick=function(r,n,i){Oxe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new _M(xM(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),Txe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),d=h.model,p=l(u,d,a),v=p.findRepresentativeAxisProxy(d).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Kl(0,f.slice(),h.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var p=d.getAxisModel(u,c.componentIndex);p&&(h=d)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];SC(r,function(i,a){n.push(me(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Qn),Oxe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Axe(this.ecModel))}};function xM(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 Nxe(e,t){e.setIconStatus("back",Dxe(t)>1?"emphasis":"normal")}function zxe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new _M(xM(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}ule("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=xM(n),o=Eh(e,a);SC(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),SC(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Lxe+u+f};h[c]=f,i.push(h)}return i});function Bxe(e){e.registerComponentModel(lxe),e.registerComponentView(cxe),Lu("saveAsImage",hxe),Lu("magicType",pxe),Lu("dataView",bxe),Lu("dataZoom",Rxe),Lu("restore",kxe),De(sxe)}var Fxe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Le);function hW(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function dW(e){if(Ee.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var pW=dW(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Vxe=dW(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function vW(e,t){if(!e)return t;t=YV(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Gxe(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var $xe=vW(Vxe,"transition"),SM=vW(pW,"transform"),Hxe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ee.transform3dSupported?"will-change:transform;":"");function Wxe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Uxe(e,t,r){if(!q(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=zl(t);var a=Wxe(r),o=Math.max(Math.round(i)*1.5,6),s="",l=SM+":",u;Me(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+d+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+v.join("")+'"></div>'}function jxe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=Ee.transformSupported?","+SM+n:",left"+n+",top"+n),$xe+":"+i}function kN(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ee.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Ee.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+SM+":"+o+";":[["top",0],["left",0],[pW,o]]}function Yxe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Xxe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=MG(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(jxe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(d){var p="border-"+d,v=YV(p),g=e.get(v);g!=null&&n.push(p+":"+g+(d==="color"?"":"px"))}),n.push(Yxe(c)),f!=null&&n.push("padding:"+Qc(f).join("px ")+"px"),n.join(";")+";"}function PN(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&hie(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Zxe=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,Ee.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(q(a)?document.querySelector(a):Ac(a)?a:he(a)&&a(t.getDom()));PN(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Hn(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=Gxe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Hxe+Xxe(t,!this._firstShow,this._longHide)+kN(a[0],a[1],!0)+("border-color:"+zl(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(q(a)&&n.get("trigger")==="item"&&!hW(n)&&(s=Uxe(n,i,a)),q(t))o.innerHTML=t+s;else if(t){o.innerHTML="",j(t)||(t=[t]);for(var l=0;l<t.length;l++)Ac(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(PN(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=kN(n[0],n[1]);D(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Ee.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(ee(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),Kxe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),EN(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;ge(t)&&Ye(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Ve({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:MG(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=IN(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;EN(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=_o(a.borderWidth||0),s=IN(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ee(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function _o(e){return Math.max(0,e)}function IN(e){var t=_o(e.shadowBlur||0),r=_o(e.shadowOffsetX||0),n=_o(e.shadowOffsetY||0);return{left:_o(t-r),right:_o(t+r),top:_o(t-n),bottom:_o(t+n)}}function EN(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var qxe=new ze({shape:{x:-1,y:-1,width:2,height:2}}),Qxe=function(e){V(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(!(Ee.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=Gae(i.get("renderMode"));this._tooltipContent=a==="richText"?new Kxe(n):new Zxe(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(Ee.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?rf(this,"_updatePosition",50,"fixRate"):Td(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");J6("itemTooltip",this._api,ee(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||Ee.node||!i.getDom())){var o=LN(a,i);this._ticket="";var s=a.dataByCoordSys,l=rSe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=qxe;c.x=a.x,c.y=a.y,c.update(),Se(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=eW(a,n),h=f.point[0],d=f.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(LN(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Wf([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Se(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ll(i,function(c){if(Se(c).dataIndex!=null)return l=c,!0;if(Se(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ee(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Wf([n.tooltipOption],a),l=this._renderMode,u=[],c=nr("section",{blocks:[],noHeader:!0}),f=[],h=new W_;D(r,function(m){D(m.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!x||w==null)){var S=K6(w,x.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=nr("section",{header:S,noHeader:!Ci(S),sortBlocks:!0,blocks:[]});c.blocks.push(b),D(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,M=T.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=w2(x.axis,{value:w}),M.axisValueLabel=S,M.marker=h.makeTooltipMarker("item",zl(M.color),l);var k=_E(T.formatTooltip(A,!0,null)),P=k.frag;if(P){var L=Wf([T],a).get("valueFormatter");b.blocks.push(L?W({valueFormatter:L},P):P)}k.text&&f.push(k.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var d=n.position,p=s.get("order"),v=TE(c,h,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?`
241
-
242
- `:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Se(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),d=this._renderMode,p=r.positionDefault,v=Wf([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new W_;y.marker=m.makeTooltipMarker("item",zl(y.color),d);var _=_E(u.formatTooltip(c,!1,f)),x=v.get("order"),w=v.get("valueFormatter"),S=_.frag,b=S?TE(w?W({valueFormatter:w},S):S,m,d,x,a.get("useUTC"),v.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,b,y,C,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Se(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(q(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=me(l),l.content=tn(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=r.positionDefault,p=Wf(f,this._tooltipModel,d?{position:d}:null),v=p.get("content"),g=Math.random()+"",y=new W_;this._showOrMove(p,function(){var m=me(p.get("formatterParams")||{});this._showTooltipContent(p,v,m,g,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(h)if(q(h)){var g=r.ecModel.get("useUTC"),y=j(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=h,m&&(d=E0(y.axisValue,d,g)),d=XV(d,i,!0)}else if(he(h)){var _=ee(function(x,w){x===this._ticket&&(f.setContent(w,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,d=h(i,a,_)}else d=h;f.setContent(d,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||j(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!j(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),he(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),j(n))i=K(n[0],u),a=K(n[1],c);else if(ge(n)){var v=n;v.width=f[0],v.height=f[1];var g=Xt(v,{width:u,height:c});i=g.x,a=g.y,h=null,d=null}else if(q(n)&&l){var y=tSe(n,p,f,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=Jxe(i,a,o,u,c,h?null:20,d?null:20);i=y[0],a=y[1]}if(h&&(i-=RN(h)?f[0]/2:h==="right"?f[0]:0),d&&(a-=RN(d)?f[1]/2:d==="bottom"?f[1]:0),hW(r)){var y=eSe(i,a,o,u,c);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(u,function(h,d){var p=f[d]||{},v=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&v.length===g.length,o&&D(v,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&D(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],x=a[m];_&&x&&x.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){Ee.node||!n.getDom()||(Td(this,"_updatePosition"),this._tooltipContent.dispose(),gC("itemTooltip",n))},t.type="tooltip",t}(_t);function Wf(e,t,r){var n=t.ecModel,i;r?(i=new Xe(r,n,n),i=new Xe(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Xe&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(i=new Xe(o,i,n)))}return i}function LN(e,t){return e.dispatchAction||ee(t.dispatchAction,t)}function Jxe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function eSe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function tSe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function RN(e){return e==="center"||e==="middle"}function rSe(e,t,r){var n=OA(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=rp(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Se(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function nSe(e){De(xp),e.registerComponentModel(Fxe),e.registerComponentView(Qxe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Rt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Rt)}var iSe=["rect","polygon","keep","clear"];function aSe(e,t){var r=et(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 i=e&&e.toolbox;j(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),oSe(s),t&&!s.length&&s.push.apply(s,iSe)}}function oSe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var ON=D;function NN(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function wC(e,t,r){var n={};return ON(t,function(a){var o=n[a]=i();ON(e[a],function(s,l){if(tr.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new tr(u),l==="opacity"&&(u=me(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new tr(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function gW(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&NN(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&NN(t[i])?e[i]=me(t[i]):delete e[i]})}function sSe(e,t,r,n,i,a){var o={};D(e,function(f){var h=tr.prepareVisualTypes(t[f]);o[f]=h});var s;function l(f){return f2(r,s,f)}function u(f,h){zG(r,s,f,h)}r.each(c);function c(f,h){s=f;var d=r.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];v[_]&&v[_].applyVisual(f,l,u)}}}function lSe(e,t,r,n){var i={};return D(e,function(a){var o=tr.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(w){return f2(s,f,w)}function c(w,S){zG(s,f,w,S)}for(var f,h=s.getStore();(f=o.next())!=null;){var d=s.getRawDataItem(f);if(!(d&&d.visualMap===!1))for(var p=n!=null?h.get(l,f):f,v=r(p),g=t[v],y=i[v],m=0,_=y.length;m<_;m++){var x=y[m];g[x]&&g[x].applyVisual(p,u,c)}}}}}function uSe(e){var t=e.brushType,r={point:function(n){return zN[t].point(n,r,e)},rect:function(n){return zN[t].rect(n,r,e)}};return r}var zN={lineX:BN(0),lineY:BN(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])&&Zs(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=n[0];if(Zs(n,i,a)||Zs(n,i+o,a)||Zs(n,i,a+s)||Zs(n,i+o,a+s)||Ae.create(e).contain(l[0],l[1])||oh(i,a,i+o,a,n)||oh(i,a,i,a+s,n)||oh(i+o,a,i+o,a+s,n)||oh(i,a+s,i+o,a+s,n))return!0}}};function BN(e){var t=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[e];return Uf(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Uf(s[0],o)||Uf(s[1],o)||Uf(o[0],s)||Uf(o[1],s)}}}}function Uf(e,t){return t[0]<=e&&e<=t[1]}var FN=["inBrush","outOfBrush"],sS="__ecBrushSelect",bC="__ecInBrushSelectEvent";function yW(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new _M(t.option,e);r.setInputRanges(t.areas,e)})}function cSe(e,t,r){var n=[],i,a;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),yW(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:me(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],h=[],d=[],p=!1;s||(i=u.throttleType,a=u.throttleDelay);var v=Y(o.areas,function(w){var S=pSe[w.brushType],b=pe({boundingRect:S?S(w):void 0},w);return b.selectors=uSe(b),b}),g=wC(o.option,FN,function(w){w.mappingMethod="fixed"});j(c)&&D(c,function(w){f[w]=1});function y(w){return c==="all"||!!f[w]}function m(w){return!!w.length}e.eachSeries(function(w,S){var b=d[S]=[];w.subType==="parallel"?_(w,S):x(w,S,b)});function _(w,S){var b=w.coordinateSystem;p=p||b.hasAxisBrushed(),y(S)&&b.eachActiveState(w.getData(),function(C,T){C==="active"&&(h[T]=1)})}function x(w,S,b){if(!(!w.brushSelector||dSe(o,S))&&(D(v,function(T){o.brushTargetManager.controlSeries(T,w,e)&&b.push(T),p=p||m(b)}),y(S)&&m(b))){var C=w.getData();C.each(function(T){VN(w,b,C,T)&&(h[T]=1)})}}e.eachSeries(function(w,S){var b={seriesId:w.id,seriesIndex:S,seriesName:w.name,dataIndex:[]};l.selected.push(b);var C=d[S],T=w.getData(),A=y(S)?function(M){return h[M]?(b.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return VN(w,C,T,M)?(b.dataIndex.push(T.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(S)?p:m(C))&&sSe(FN,g,T,A)})}),fSe(t,i,a,n,r)}function fSe(e,t,r,n,i){if(i){var a=e.getZr();if(!a[bC]){a[sS]||(a[sS]=hSe);var o=rf(a,sS,r,t);o(e,n)}}}function hSe(e,t){if(!e.isDisposed()){var r=e.getZr();r[bC]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[bC]=!1}}function VN(e,t,r,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(n,r,o.selectors,o))return!0}}function dSe(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(j(r)?Me(r,t)<0:t!==r)}var pSe={rect:function(e){return GN(e.range)},polygon:function(e){for(var t,r=e.range,n=0,i=r.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=r[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&GN(t)}};function GN(e){return new Ae(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var vSe=function(e){V(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 X2(n.getZr())).on("brush",ee(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){yW(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:me(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:me(i),$from:n})},t.type="brush",t}(_t),gSe="#ddd",ySe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&gW(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:gSe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Y(r,function(n){return $N(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=$N(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Le);function $N(e,t){return Te({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Xe(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var mSe=["rect","polygon","lineX","lineY","keep","clear"],_Se=function(e){V(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return D(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:mSe.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}(Qn);function xSe(e){e.registerComponentView(vSe),e.registerComponentModel(ySe),e.registerPreprocessor(aSe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,cSe),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"},Rt),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Rt),Lu("brush",_Se)}var SSe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Le),wSe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=we(r.get("textBaseline"),r.get("textVerticalAlign")),c=new Ve({style:ut(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),d=new Ve({style:ut(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,d.silent=!v&&!g,p&&c.on("click",function(){zy(p,"_"+r.get("target"))}),v&&d.on("click",function(){zy(v,"_"+r.get("subtarget"))}),Se(c).eventData=Se(d).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(d);var y=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Xt(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var x={align:l,verticalAlign:u};c.setStyle(x),d.setStyle(x),y=a.getBoundingRect();var w=_.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var b=new ze({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(b)}},t.type="title",t}(_t);function bSe(e){e.registerComponentModel(SSe),e.registerComponentView(wSe)}var HN=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],D(n,function(u,c){var f=Yt(jc(u),""),h;ge(u)?(h=me(u),h.value=c):h=c,o.push(h),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Vr([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Le),mW=function(e){V(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=fs(HN.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(HN);Ht(mW,F0.prototype);var CSe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(_t),TSe=function(e){V(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Bi),lS=Math.PI,WN=Be(),ASe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return nr("nameValue",{noName:!0,value:c})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=DSe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":q(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:lS/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),d=h.get("show",!0),p=d?h.get("itemSize"):0,v=d?h.get("itemGap"):0,g=p+v,y=r.get(["label","rotate"])||0;y=y*lS/180;var m,_,x,w=h.get("position",!0),S=d&&h.get("showPlayBtn",!0),b=d&&h.get("showPrevBtn",!0),C=d&&h.get("showNextBtn",!0),T=0,A=f;w==="left"||w==="bottom"?(S&&(m=[0,0],T+=g),b&&(_=[T,0],T+=g),C&&(x=[A-p,0],A-=g)):(S&&(m=[A-p,0],A-=g),b&&(_=[0,0],T+=g),C&&(x=[A-p,0],A-=g));var M=[T,A];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:x,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Mn(),l=o.x,u=o.y+o.height;va(s,s,[-l,-u]),Wl(s,s,-lS/2),va(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),f=m(i.getBoundingRect()),h=m(a.getBoundingRect()),d=[i.x,i.y],p=[a.x,a.y];p[0]=d[0]=c[0][0];var v=r.labelPosOpt;if(v==null||q(v)){var g=v==="+"?0:1;_(d,f,c,1,g),_(p,h,c,1,1-g)}else{var g=v>=0?0:1;_(d,f,c,1,g),p[1]=d[1]+v}i.setPosition(d),a.setPosition(p),i.rotation=a.rotation=r.rotation,y(i),y(a);function y(x){x.originX=c[0][0]-x.x,x.originY=c[1][0]-x.y}function m(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function _(x,w,S,b,C){x[b]+=S[b][C]-w[b][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=MSe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new TSe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new xe;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Jt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:W({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Jt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:pe({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],D(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),d=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ee(o._changeTimeline,o,u.value)},g=UN(f,h,n,v);g.ensureState("emphasis").style=d.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),_l(g);var y=Se(g);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],D(u,function(c){var f=c.tickValue,h=l.getItemModel(f),d=h.getModel("label"),p=h.getModel(["emphasis","label"]),v=h.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),y=new Ve({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ee(o._changeTimeline,o,f),silent:!1,style:ut(d,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=ut(p),y.ensureState("progress").style=ut(v),n.add(y),_l(y),WN(y).dataIndex=f,o._tickLabels.push(y)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);h(r.nextBtnPosition,"next",ee(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",ee(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",ee(this._handlePlayClick,this,!c),!0);function h(d,p,v,g){if(d){var y=Oi(we(a.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=kSe(a,p+"Icon",m,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});_.ensureState("emphasis").style=u,n.add(_),_l(_)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ee(u._handlePointerDrag,u),f.ondragend=ee(u._handlePointerDragend,u),jN(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){jN(f,u._progressLine,s,i,a)}};this._currentPointer=UN(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=ri(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return Ii(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<i&&(i=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",WN(i[a]).dataIndex<=r)},t.type="timeline.slider",t}(CSe);function MSe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new U0({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new x2({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Ja}}function DSe(e,t){return Xt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function kSe(e,t,r,n){var i=n.style,a=sp(e.get(["controlStyle",t]),n||{},new Ae(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function UN(e,t,r,n,i,a){var o=t.get("color");if(i)i.setColor(o),r.add(i),a&&a.onUpdate(i);else{var s=e.get("symbol");i=Gt(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),r.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=Te({rectHover:!0,z2:100},n,!0);var u=nf(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=jl(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=e.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function jN(e,t,r,n,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",r));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function PSe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var i=r.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),pe({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function ISe(e){var t=e&&e.timeline;j(t)||(t=t?[t]:[]),D(t,function(r){r&&ESe(r)})}function ESe(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),YN(e),Qs(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});Qs(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!Qs(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}D(e.data||[],function(i){ge(i)&&!j(i)&&(!Qs(i,"value")&&Qs(i,"name")&&(i.value=i.name),YN(i))})}function YN(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};D(n,function(o,s){!a[s]&&!Qs(i,s)&&(i[s]=o)}),r.label&&!Qs(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Qs(e,t){return e.hasOwnProperty(t)}function LSe(e){e.registerComponentModel(mW),e.registerComponentView(ASe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),PSe(e),e.registerPreprocessor(ISe)}function wM(e,t){if(!e)return!1;for(var r=j(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function Hv(e){Ll(e,"label",["show"])}var Wv=Be(),to=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Ee.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Wv(s)[o];if(!l||!l.data){Wv(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&Hv(l),D(l.data,function(c){c instanceof Array?(Hv(c[0]),Hv(c[1])):Hv(c)}),u=this.createMarkerModelFromSeries(l,this,n),W(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Wv(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return nr("section",{header:this.name,blocks:[nr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var i=F0.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(r,n){return Wv(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Le);Ht(to,F0.prototype);var RSe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(to);function CC(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function OSe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Uv(e,t,r,n,i,a){var o=[],s=ns(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=bM(t,l,e),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(r,c),o[a]=t.get(l,c);var f=t.get(n,c),h=ia(t.get(n,c));return h=Math.min(h,20),h>=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var uS={min:be(Uv,"min"),max:be(Uv,"max"),average:be(Uv,"average"),median:be(Uv,"median")};function Fd(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!OSe(t)&&!j(t.coord)&&j(i)){var a=_W(t,r,n,e);if(t=me(t),t.type&&uS[t.type]&&a.baseAxis&&a.valueAxis){var o=Me(i,a.baseAxis.dim),s=Me(i,a.valueAxis.dim),l=uS[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!j(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)uS[u[c]]&&(u[c]=bM(r,r.mapDimension(i[c]),u[c]));return t}}function _W(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(NSe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function NSe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Vd(e,t){return e&&e.containData&&t.coord&&!CC(t)?e.containData(t.coord):!0}function zSe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!CC(t)&&!CC(r)?e.containZone(t.coord,r.coord):!0}function xW(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Yo(o,t[a])}:function(r,n,i,a){return Yo(r.value,t[a])}}function bM(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var cS=Be(),CM=function(e){V(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=ae()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){cS(s).keep=!1}),n.eachSeries(function(s){var l=to.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!cS(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){cS(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=to.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?uV(l):$A(l))})}})},t.type="marker",t}(_t);function XN(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=K(a.get("x"),r.getWidth()),l=K(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var BSe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=to.getMarkerModelFromSeries(a,"markPoint");o&&(XN(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new dp),f=FSe(o,r,n);n.setData(f),XN(n.getData(),r,a),f.each(function(h){var d=f.getItemModel(h),p=d.getShallow("symbol"),v=d.getShallow("symbolSize"),g=d.getShallow("symbolRotate"),y=d.getShallow("symbolOffset"),m=d.getShallow("symbolKeepAspect");if(he(p)||he(v)||he(g)||he(y)){var _=n.getRawValue(h),x=n.getDataParams(h);he(p)&&(p=p(_,x)),he(v)&&(v=v(_,x)),he(g)&&(g=g(_,x)),he(y)&&(y=y(_,x))}var w=d.getModel("itemStyle").getItemStyle(),S=up(l,"color");w.fill||(w.fill=S),f.setItemVisual(h,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:w})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(d){Se(d).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(CM);function FSe(e,t,r){var n;e?n=Y(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return W(W({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Vr(n,r),a=Y(r.get("data"),be(Fd,t));e&&(a=qe(a,be(Vd,e)));var o=xW(!!e,n);return i.initData(a,null,o),i}function VSe(e){e.registerComponentModel(RSe),e.registerComponentView(BSe),e.registerPreprocessor(function(t){wM(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var GSe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(to),jv=Be(),$Se=function(e,t,r,n){var i=e.getData(),a;if(j(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=sr(n.yAxis,n.xAxis);else{var u=_W(n,i,t,e);s=u.valueAxis;var c=h$(i,u.valueDataDim);l=bM(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,d=me(n),p={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,p.coord[h]=1/0;var v=r.get("precision");v>=0&&$e(l)&&(l=+l.toFixed(Math.min(v,20))),d.coord[f]=p.coord[f]=l,a=[d,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[Fd(e,a[0]),Fd(e,a[1]),W({},a[2])];return g[2].type=g[2].type||null,Te(g[2],g[0]),Te(g[2],g[1]),g};function um(e){return!isNaN(e)&&!isFinite(e)}function ZN(e,t,r,n){var i=1-e,a=n.dimensions[e];return um(t[i])&&um(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function HSe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(ZN(1,r,n,e)||ZN(0,r,n,e)))return!0}return Vd(e,t[0])&&Vd(e,t[1])}function fS(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=K(o.get("x"),i.getWidth()),u=K(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),h=e.get(c[1],t);s=a.dataToPoint([f,h])}if(Xl(a,"cartesian2d")){var d=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;um(e.get(c[0],t))?s[0]=d.toGlobalCoord(d.getExtent()[r?0:1]):um(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var WSe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=to.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=jv(o).from,u=jv(o).to;l.each(function(c){fS(l,c,!0,a,i),fS(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Y2);this.group.add(c.group);var f=USe(o,r,n),h=f.from,d=f.to,p=f.line;jv(n).from=h,jv(n).to=d,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");j(v)||(v=[v,v]),j(g)||(g=[g,g]),j(y)||(y=[y,y]),j(m)||(m=[m,m]),f.from.each(function(x){_(h,x,!0),_(d,x,!1)}),p.each(function(x){var w=p.getItemModel(x).getModel("lineStyle").getLineStyle();p.setItemLayout(x,[h.getItemLayout(x),d.getItemLayout(x)]),w.stroke==null&&(w.stroke=h.getItemVisual(x,"style").fill),p.setItemVisual(x,{fromSymbolKeepAspect:h.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(x,"symbolOffset"),fromSymbolRotate:h.getItemVisual(x,"symbolRotate"),fromSymbolSize:h.getItemVisual(x,"symbolSize"),fromSymbol:h.getItemVisual(x,"symbol"),toSymbolKeepAspect:d.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(x,"symbolOffset"),toSymbolRotate:d.getItemVisual(x,"symbolRotate"),toSymbolSize:d.getItemVisual(x,"symbolSize"),toSymbol:d.getItemVisual(x,"symbol"),style:w})}),c.updateData(p),f.line.eachItemGraphicEl(function(x){Se(x).dataModel=n,x.traverse(function(w){Se(w).dataModel=n})});function _(x,w,S){var b=x.getItemModel(w);fS(x,w,S,r,a);var C=b.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=up(l,"color")),x.setItemVisual(w,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:we(b.get("symbolOffset",!0),m[S?0:1]),symbolRotate:we(b.get("symbolRotate",!0),y[S?0:1]),symbolSize:we(b.get("symbolSize"),g[S?0:1]),symbol:we(b.get("symbol",!0),v[S?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(CM);function USe(e,t,r){var n;e?n=Y(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return W(W({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Vr(n,r),a=new Vr(n,r),o=new Vr([],r),s=Y(r.get("data"),be($Se,t,e,r));e&&(s=qe(s,be(HSe,e)));var l=xW(!!e,n);return i.initData(Y(s,function(u){return u[0]}),null,l),a.initData(Y(s,function(u){return u[1]}),null,l),o.initData(Y(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function jSe(e){e.registerComponentModel(GSe),e.registerComponentView(WSe),e.registerPreprocessor(function(t){wM(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var YSe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(to),Yv=Be(),XSe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Fd(e,i),s=Fd(e,a),l=o.coord,u=s.coord;l[0]=sr(l[0],-1/0),l[1]=sr(l[1],-1/0),u[0]=sr(u[0],1/0),u[1]=sr(u[1],1/0);var c=CA([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function cm(e){return!isNaN(e)&&!isFinite(e)}function KN(e,t,r,n){var i=1-e;return cm(t[i])&&cm(r[i])}function ZSe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Xl(e,"cartesian2d")?r&&n&&(KN(1,r,n)||KN(0,r,n))?!0:zSe(e,i,a):Vd(e,i)||Vd(e,a)}function qN(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=K(o.get(r[0]),i.getWidth()),u=K(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),h=a.clampData(c),d=a.clampData(f),p=[];r[0]==="x0"?p[0]=h[0]>d[0]?f[0]:c[0]:p[0]=h[0]>d[0]?c[0]:f[0],r[1]==="y0"?p[1]=h[1]>d[1]?f[1]:c[1]:p[1]=h[1]>d[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),y=[v,g];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(Xl(a,"cartesian2d")){var m=a.getAxis("x"),_=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);cm(v)?s[0]=m.toGlobalCoord(m.getExtent()[r[0]==="x0"?0:1]):cm(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var QN=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],KSe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=to.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Y(QN,function(f){return qN(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new xe});this.group.add(c.group),this.markKeep(c);var f=qSe(o,r,n);n.setData(f),f.each(function(h){var d=Y(QN,function(C){return qN(f,h,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),y=v.getExtent(),m=[p.parse(f.get("x0",h)),p.parse(f.get("x1",h))],_=[v.parse(f.get("y0",h)),v.parse(f.get("y1",h))];ri(m),ri(_);var x=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),w=!x;f.setItemLayout(h,{points:d,allClipped:w});var S=f.getItemModel(h).getModel("itemStyle").getItemStyle(),b=up(l,"color");S.fill||(S.fill=b,q(S.fill)&&(S.fill=Ty(S.fill,.4))),S.stroke||(S.stroke=b),f.setItemVisual(h,"style",S)}),f.diff(Yv(c).data).add(function(h){var d=f.getItemLayout(h);if(!d.allClipped){var p=new Ur({shape:{points:d.points}});f.setItemGraphicEl(h,p),c.group.add(p)}}).update(function(h,d){var p=Yv(c).data.getItemGraphicEl(d),v=f.getItemLayout(h);v.allClipped?p&&c.group.remove(p):(p?He(p,{shape:{points:v.points}},n,h):p=new Ur({shape:{points:v.points}}),f.setItemGraphicEl(h,p),c.group.add(p))}).remove(function(h){var d=Yv(c).data.getItemGraphicEl(h);c.group.remove(d)}).execute(),f.eachItemGraphicEl(function(h,d){var p=f.getItemModel(d),v=f.getItemVisual(d,"style");h.useStyle(f.getItemVisual(d,"style")),xr(h,rr(p),{labelFetcher:n,labelDataIndex:d,defaultText:f.getName(d)||"",inheritColor:q(v.fill)?Ty(v.fill,1):"#000"}),_r(h,p),Ct(h,null,null,p.get(["emphasis","disabled"])),Se(h).dataModel=n}),Yv(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(CM);function qSe(e,t,r){var n,i,a=["x0","y0","x1","y1"];if(e){var o=Y(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return W(W({},f),{name:u,ordinalMeta:null})});i=Y(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new Vr(i,r)}else i=[{name:"value",type:"float"}],n=new Vr(i,r);var s=Y(r.get("data"),be(XSe,t,e,r));e&&(s=qe(s,be(ZSe,e)));var l=e?function(u,c,f,h){var d=u.coord[Math.floor(h/2)][h%2];return Yo(d,i[h])}:function(u,c,f,h){return Yo(u.value,i[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}function QSe(e){e.registerComponentModel(YSe),e.registerComponentView(KSe),e.registerPreprocessor(function(t){wM(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var JSe=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"])}},TC=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),j(n)&&D(n,function(a,o){q(a)&&(a={type:a}),n[o]=Te(a,JSe(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):c=!0}else c=!0;c&&RA(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ae(),s=Y(a,function(l){return(q(l)||$e(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Xe(l,this,this.ecModel))},this);this._data=qe(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;D(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;D(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;D(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Me(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Le),Cu=be,AC=D,Xv=xe,SW=function(e){V(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 Xv),this.group.add(this._selectorGroup=new Xv),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=Xt(c,f,h),p=this.layoutInner(r,o,d,a,l,u),v=Xt(pe({width:p.width,height:p.height},c),f,h);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=uW(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ae(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),AC(n.getData(),function(d,p){var v=d.get("name");if(!this.newlineDisabled&&(v===""||v===`
243
- `)){var g=new Xv;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(v)[0];if(!c.get(v))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),w=m.getVisual("style"),S=this._createItem(y,v,p,d,n,r,_,w,x,f,a);S.on("click",Cu(JN,v,null,a,h)).on("mouseover",Cu(MC,y.name,null,a,h)).on("mouseout",Cu(DC,y.name,null,a,h)),i.ssr&&S.eachChild(function(b){var C=Se(b);C.seriesIndex=y.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),c.set(v,!0)}else i.eachRawSeries(function(b){if(!c.get(v)&&b.legendVisualProvider){var C=b.legendVisualProvider;if(!C.containName(v))return;var T=C.indexOfName(v),A=C.getItemVisual(T,"style"),M=C.getItemVisual(T,"legendIcon"),k=Dn(A.fill);k&&k[3]===0&&(k[3]=.2,A=W(W({},A),{fill:Va(k,"rgba")}));var P=this._createItem(b,v,p,d,n,r,{},A,M,f,a);P.on("click",Cu(JN,null,v,a,h)).on("mouseover",Cu(MC,null,v,a,h)).on("mouseout",Cu(DC,null,v,a,h)),i.ssr&&P.eachChild(function(L){var E=Se(L);E.seriesIndex=b.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();AC(r,function(u){var c=u.type,f=new Ve({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);xr(f,{normal:h,emphasis:d},{defaultText:u.title}),_l(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var d=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var x=ewe(c,a,l,u,d,g,h),w=new Xv,S=a.getModel("textStyle");if(he(r.getLegendIcon)&&(!_||_==="inherit"))w.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;w.add(twe({itemWidth:p,itemHeight:v,icon:c,iconRotate:b,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?p+5:-5,T=s,A=o.get("formatter"),M=n;q(A)&&A?M=A.replace("{name}",n??""):he(A)&&(M=A(n));var k=g?S.getTextColor():a.get("inactiveColor");w.add(new Ve({style:ut(S,{text:M,x:C,y:v/2,fill:k,align:T,verticalAlign:"middle"},{inheritColor:k})}));var P=new ze({shape:w.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&Zc({el:P,componentModel:o,itemName:n,itemTooltipOption:L.option}),w.add(P),w.eachChild(function(E){E.silent=!0}),P.silent=!f,this.getContentGroup().add(w),_l(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Sl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Sl("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",y=v===0?"height":"width",m=v===0?"y":"x";s==="end"?d[v]+=c[g]+p:f[v]+=h[g]+p,d[1-v]+=c[y]/2-h[y]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+p+h[g],_[y]=Math.max(c[y],h[y]),_[m]=Math.min(0,h[m]+d[1-v]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(_t);function ewe(e,t,r,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),AC(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Pc(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function twe(e){var t=e.icon||"roundRect",r=Gt(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function JN(e,t,r,n){DC(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),MC(e,t,r,n)}function wW(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function MC(e,t,r,n){wW(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function DC(e,t,r,n){wW(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function rwe(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 jf(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===`
244
- `||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function nwe(e){e.registerAction("legendToggleSelect","legendselectchanged",be(jf,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",be(jf,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",be(jf,"inverseSelect")),e.registerAction("legendSelect","legendselected",be(jf,"select")),e.registerAction("legendUnSelect","legendunselected",be(jf,"unSelect"))}function bW(e){e.registerComponentModel(TC),e.registerComponentView(SW),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,rwe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),nwe(e)}var iwe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=Jc(r);e.prototype.init.call(this,r,n,i),ez(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),ez(this,this.option,r)},t.type="legend.scroll",t.defaultOption=fs(TC.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(TC);function ez(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,rs(t,r,{type:"box",ignoreSize:!!i})}var tz=xe,hS=["width","height"],dS=["x","y"],awe=function(e){V(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 tz),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new tz)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),h=j(f)?f:[f,f];p("pagePrev",0);var d=n.getModel("pageTextStyle");c.add(new Ve({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var y=v+"DataIndex",m=sp(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:ee(u._pageGo,u,y,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=v,c.add(m)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=hS[u],f=dS[u],h=hS[1-u],d=dS[1-u];o&&Sl("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],y=me(i);o&&(y[c]=i[c]-v[c]-p);var m=this._layoutContentAndController(r,a,y,u,c,h,d,f);if(o){if(s==="end")g[u]+=m[c]+p;else{var _=v[c]+p;g[u]-=_,m[f]-=_}m[c]+=v[c]+p,g[1-u]+=m[d]+m[h]/2-v[h]/2,m[h]=Math.max(m[h],v[h]),m[d]=Math.min(m[d],v[d]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;Sl(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Sl("horizontal",h,r.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),p=h.getBoundingRect(),v=this._showController=d[o]>i[o],g=[-d.x,-d.y];n||(g[a]=c[u]);var y=[0,0],m=[-p.x,-p.y],_=we(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var x=r.get("pageButtonPosition",!0);x==="end"?m[a]+=i[o]-p[o]:y[a]+=p[o]+_}m[1-a]+=d[s]/2-p[s]/2,c.setPosition(g),f.setPosition(y),h.setPosition(m);var w={x:0,y:0};if(w[o]=v?i[o]:d[o],w[s]=Math.max(d[s],p[s]),w[l]=Math.min(0,p[l]+m[1-a]),f.__rectSize=i[o],v){var S={x:0,y:0};S[o]=Math.max(i[o]-p[o]-_,0),S[s]=w[s],f.setClipPath(new ze({shape:S})),f.__rectSize=S[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(r);return b.pageIndex!=null&&He(c,{x:b.contentPosition[0],y:b.contentPosition[1]},v?r:null),this._updatePageInfoView(r,b),w},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;D(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",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),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=hS[o],l=dS[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,d=h?1:0,p={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=x(f);p.contentPosition[o]=-v.s;for(var g=u+1,y=v,m=v,_=null;g<=h;++g)_=x(c[g]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=v,m=v,_=null;g>=-1;--g)_=x(c[g]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function x(S){if(S){var b=S.getBoundingRect(),C=b[l]+S[l];return{s:C,e:C+b[s],i:S.__legendDataIndex}}}function w(S,b){return S.e>=b&&S.s<=b+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(SW);function owe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function swe(e){De(bW),e.registerComponentModel(iwe),e.registerComponentView(awe),owe(e)}function lwe(e){De(bW),De(swe)}var uwe=function(e){V(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=fs(Bd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Bd),TM=Be();function cwe(e,t,r){TM(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function fwe(e,t){for(var r=TM(e).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||CW(r,o))}}}function CW(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function hwe(e,t){var r={model:t,containsPoint:be(pwe,t),dispatchAction:be(dwe,e),dataZoomInfoMap:null,controller:null},n=r.controller=new mp(e.getZr());return D(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function dwe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function pwe(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function vwe(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function gwe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=TM(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ae());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=oW(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,hwe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ae());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){CW(i,a);return}var c=vwe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),rf(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var ywe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),cwe(i,r,{pan:ee(pS.pan,this),zoom:ee(pS.zoom,this),scrollMove:ee(pS.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){fwe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(gM),pS={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=vS[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Kl(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:rz(function(e,t,r,n,i,a){var o=vS[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:rz(function(e,t,r,n,i,a){var o=vS[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function rz(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Kl(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var vS={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function TW(e){yM(e),e.registerComponentModel(uwe),e.registerComponentView(ywe),gwe(e)}var mwe=function(e){V(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=fs(Bd.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Bd),Yf=ze,nz=7,_we=1,gS=30,xwe=7,Xf="horizontal",iz="vertical",Swe=5,wwe=["line","bar","candlestick","scatter"],bwe={easing:"cubicOut",duration:100,delay:0},Cwe=function(e){V(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=ee(this._onBrush,this),this._onBrushEnd=ee(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),rf(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Td(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 xe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?xwe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Xf?{right:s.width-o.x-o.width,top:s.height-gS-nz-a,width:o.width,height:gS}:{right:nz,top:o.y,width:gS,height:o.height},u=Jc(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Xt(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===iz&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Xf&&!o?{scaleY:l?1:-1,scaleX:1}:i===Xf&&o?{scaleY:l?1:-1,scaleX:-1}:i===iz&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Yf({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Yf({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ee(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var d=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),x;o.each([l],function(T,A){if(_>0&&A%_){m+=y;return}var M=T==null||isNaN(T)||T==="",k=M?0:Ke(T,f,d,!0);M&&!x&&A?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&x&&(v.push([m,0]),g.push([m,0])),v.push([m,k]),g.push([m,k]),m+=y,x=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var w=this.dataZoomModel;function S(T){var A=w.getModel(T?"selectedDataBackground":"dataBackground"),M=new xe,k=new Ur({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Zr({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(P),M}for(var b=0;b<3;b++){var C=S(b===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!i&&!(n!==!0&&Me(wwe,u.get("type"))<0)){var c=a.getComponent(No(o),s).axis,f=Twe(o),h,d=u.coordinateSystem;f!=null&&d.getOtherAxis&&(h=d.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),h=n.filler=new Yf({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Yf({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:_we,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var x=l.get("handleIcon");!Vy[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var w=Gt(x,-1,0,2,2,null,!0);w.attr({cursor:az(this._orient),draggable:!0,drift:ee(this._onDragMove,this,_),ondragend:ee(this._onDragEnd,this),onmouseover:ee(this._showDataInfo,this,!0),onmouseout:ee(this._showDataInfo,this,!1),z2:5});var S=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=K(b,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),_l(w);var C=l.get("handleColor");C!=null&&(w.style.fill=C),o.add(i[_]=w);var T=l.getModel("textStyle");r.add(a[_]=new Ve({silent:!0,invisible:!0,style:ut(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var d=h;if(f){var p=K(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new ze({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=Gt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));d=n.moveZone=new ze({invisible:!0,shape:{y:s[1]-m,height:p+m}}),d.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(y),o.add(d)}d.attr({draggable:!0,cursor:az(this._orient),drift:ee(this._onDragMove,this,"all"),ondragstart:ee(this._showDataInfo,this,!0),ondragend:ee(this._onDragEnd,this),onmouseover:ee(this._showDataInfo,this,!0),onmouseout:ee(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ke(r[0],[0,100],n,!0),Ke(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Kl(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?Ke(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ke(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=ri([Ke(a[0],o,l,!0),Ke(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=ri(i.slice()),o=this._size;D([0,1],function(d){var p=n.handles[d],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[d]+(d?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],h=f.getClipPath();h||(h=new ze,f.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var h=ri(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(p){var v=xl(i.handles[p].parent,this.group),g=P0(p===0?"right":"left",v),y=this._handleWidth/2+Swe,m=Ii([h[p]+(p===0?-y:y),this._size[1]/2],v);a[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Xf?"middle":g,align:o===Xf?g:"center",text:s[p]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return he(a)?a(r,s):q(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,Xa(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ii([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Ce(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ri([Ke(i.x,o,s,!0),Ke(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Xa(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Yf({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?bwe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=oW(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(gM);function Twe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function az(e){return e==="vertical"?"ns-resize":"ew-resize"}function AW(e){e.registerComponentModel(mwe),e.registerComponentView(Cwe),yM(e)}function Awe(e){De(TW),De(AW)}var MW={get:function(e,t,r){var n=me((Mwe[e]||{})[t]);return r&&j(n)?n[n.length-1]:n}},Mwe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},oz=tr.mapVisual,Dwe=tr.eachVisual,kwe=j,sz=D,Pwe=ri,Iwe=Ke,fm=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&gW(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ee(r,this),this.controllerVisuals=wC(this.option.controller,n,r),this.targetVisuals=wC(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=et(r),n},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],j(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(q(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(he(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(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=Pwe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Te(a,i),Te(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){kwe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,d){var p=f[h],v=f[d];p&&!v&&(v=f[d]={},sz(p,function(g,y){if(tr.isValidType(y)){var m=MW.get(y,"inactive",s);m!=null&&(v[y]=m,y==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,d=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";sz(this.stateList,function(y){var m=this.itemSize,_=f[y];_||(_=f[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=h&&me(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=d&&me(d)||(s?m[0]:[m[0],m[0]])),_.symbol=oz(_.symbol,function(S){return S==="none"?g:S});var x=_.symbolSize;if(x!=null){var w=-1/0;Dwe(x,function(S){S>w&&(w=S)}),_.symbolSize=oz(x,function(S){return Iwe(S,[0,w],[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,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Le),lz=[20,140],Ewe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=lz[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=lz[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):j(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=ri((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=uz(this,"outOfRange",this.getExtent()),i=uz(this,"inRange",this.option.range.slice()),a=[];function o(d,p){a.push({value:d,color:r(d,p)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=fs(fm.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(fm);function uz(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var DW=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,i=Qc(n.get("padding")||0),a=r.getBoundingRect();r.add(new ze({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(d){return s[d]}function c(d,p){s[d]=p}var f=o.controllerVisuals[a||o.getValueState(r)],h=tr.prepareVisualTypes(f);return D(h,function(d){var p=f[d];i.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",p=f.__alphaForOpacity),tr.dependsOn(d,n)&&p&&p.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;z0(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(_t),cz=[["left","right","width"],["top","bottom","height"]];function kW(e,t,r){var n=e.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=cz[o],l=[0,null,10],u={},c=0;c<3;c++)u[cz[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],h=Xt(u,a,n.padding);return s[(h.margin[f[2]]||0)+h[f[0]]+h[f[1]]*.5<a[f[1]]*.5?0:1]}function Lg(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 Yi=Ke,Lwe=D,fz=Math.min,yS=Math.max,Rwe=12,Owe=6,Nwe=function(e){V(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=ee(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ee(this._hideIndicator,this)},t.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Ve({style:ut(d,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":f,align:h==="horizontal"?f:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=kW(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new xe;u.add(c),c.add(i.outOfRange=hz()),c.add(i.inRange=hz(null,s?pz(this._orient):null,ee(this._dragHandle,this,"all",!1),ee(this._dragHandle,this,"all",!0))),c.setClipPath(new ze({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),h=yS(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,h,o),this._createHandle(n,u,1,a,h,o)),this._createIndicator(n,u,a,h,o),r.add(u)},t.prototype._createHandle=function(r,n,i,a,o,s){var l=ee(this._dragHandle,this,i,!1),u=ee(this._dragHandle,this,i,!0),c=Oi(r.get("handleSize"),a[0]),f=Gt(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=pz(this._orient);f.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Xa(y.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),ol(f,!0),n.add(f);var d=this.visualMapModel.textStyleModel,p=new Ve({cursor:h,draggable:!0,drift:l,onmousemove:function(y){Xa(y.event)},ondragend:u,style:ut(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[i]=f,g.handleLabelPoints[i]=v,g.handleLabels[i]=p},t.prototype._createIndicator=function(r,n,i,a,o){var s=Oi(r.get("indicatorSize"),i[0]),l=Gt(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof cr){var c=l.style;l.useStyle(W({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,h=new Ve({silent:!0,invisible:!0,style:ut(f,{x:0,y:0,text:""})});this.group.add(h);var d=[(o==="horizontal"?a/2:Owe)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():dz(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[Yi(n[0],i,a,!0),Yi(n[1],i,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Kl(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[Yi(a[0],o,s,!0),Yi(a[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new ap(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new xe(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();Lwe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=Yi(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=d/l[0],f.x=l[0]-d/2;var p=Ii(i.handleLabelPoints[c],xl(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},d=this.getControllerVisual(r,"color",h),p=this.getControllerVisual(r,"symbolSize"),v=Yi(r,s,u,!0),g=l[0]-p/2,y={x:f.x,y:f.y};f.y=v,f.x=g;var m=Ii(c.indicatorLabelPoint,xl(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",c.mainGroup),w=this._orient,S=w==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:S?x:"middle",align:S?"center":x});var b={x:g,y:v,style:{fill:d}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(b,T),_.animateTo(C,T)}else f.attr(b),_.attr(C);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 i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=fz(yS(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=fz(yS(o[0],r),o[1]);var l=zwe(i,s,o),u=[r-l,r+l],c=Yi(r,o,s,!0),f=[Yi(u[0],o,s,!0),Yi(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,d=[];(n||dz(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=zae(h,d);this._dispatchHighDown("downplay",Lg(p[0],i)),this._dispatchHighDown("highlight",Lg(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(ll(r.target,function(l){var u=Se(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Lg(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,i,a){var o=xl(n,a?null:this.group);return j(r)?Ii(r,o,i):P0(r,o,i)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(DW);function hz(e,t,r,n){return new Ur({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){Xa(i.event)},ondragend:n})}function zwe(e,t,r){var n=Rwe/2,i=e.get("hoverLinkDataSize");return i&&(n=Yi(i,t,r,!0)/2),n}function dz(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function pz(e){return e==="vertical"?"ns-resize":"ew-resize"}var Bwe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Fwe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},Vwe=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var i=e.pipelineContext;!n.isTargetSeries(e)||i&&i.large||r.push(lSe(n.stateList,n.targetVisuals,ee(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var a=i.getVisualMeta(ee(Gwe,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function Gwe(e,t,r,n){for(var i=t.targetVisuals[n],a=tr.prepareVisualTypes(i),o={color:up(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,h)}return o.color;function f(d){return o[d]}function h(d,p){o[d]=p}}var vz=D;function $we(e){var t=e&&e.visualMap;j(t)||(t=t?[t]:[]),vz(t,function(r){if(r){Tu(r,"splitList")&&!Tu(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&j(n)&&vz(n,function(i){ge(i)&&(Tu(i,"start")&&!Tu(i,"min")&&(i.min=i.start),Tu(i,"end")&&!Tu(i,"max")&&(i.max=i.end))})}})}function Tu(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var gz=!1;function PW(e){gz||(gz=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(Bwe,Fwe),D(Vwe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor($we))}function IW(e){e.registerComponentModel(Ewe),e.registerComponentView(Nwe),PW(e)}var Hwe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Wwe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=me(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Y(this._pieceList,function(l){return l=me(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=tr.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=MW.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=me(r)},t.prototype.getValueState=function(r){var n=tr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=tr.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var d=r(h,f);c[0]===-1/0?i[0]=d:c[1]===1/0?i[1]=d:n.push({value:c[0],color:d},{value:c[1],color:d})}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(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=fs(fm.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}(fm),Wwe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),fI(e),D(e,function(u,c){u.index=c,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),yz(t,e)},pieces:function(e){var t=this.option;D(t.pieces,function(r,n){ge(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],d=0;d<3&&o[f]==null;d++)o[f]=r[h[d]],s[f]=l[d],c[f]=d===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=tr.retrieveVisuals(r),e.push(i)},this),yz(t,e),fI(e),D(e,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function yz(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var Uwe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=sr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),D(c.viewPieceList,function(d){var p=d.piece,v=new xe;v.onclick=ee(this._onItemClick,this,p),this._enableHoverLink(v,d.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);v.add(new Ve({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,h,l),Sl(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Lg(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return kW(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new xe,l=this.visualMapModel.textStyleModel;s.add(new Ve({style:ut(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Y(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(Gt(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=me(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!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}(DW);function EW(e){e.registerComponentModel(Hwe),e.registerComponentView(Uwe),PW(e)}function jwe(e){De(IW),De(EW)}var Ywe={label:{enabled:!0},decal:{show:!1}},mz=Be(),Xwe={};function Zwe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=me(Ywe);Te(n.label,e.getLocaleModel().get("aria"),!1),Te(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ae();e.eachSeries(function(h){if(!h.isColorBySeries()){var d=f.get(h.type);d||(d={},f.set(h.type,d)),mz(h).scope=d}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if(he(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var m=Db(h.ecModel,h.name,Xwe,e.getSeriesCount()),_=d.getVisual("decal");d.setVisual("decal",x(_,m))}else{var p=h.getRawData(),v={},g=mz(h).scope;d.each(function(w){var S=d.getRawIndex(w);v[S]=w});var y=p.count();p.each(function(w){var S=v[w],b=p.getName(w)||w+"",C=Db(h.ecModel,b,g,y),T=d.getItemVisual(S,"decal");d.setItemVisual(S,"decal",x(T,C))})}function x(w,S){var b=w?W(W({},S),w):S;return b.dirty=!0,b}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=pe(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=e.getSeriesCount(),d=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,v=Math.min(h,p),g;if(!(h<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],x=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(x,{seriesCount:h}),e.eachSeries(function(C,T){if(T<v){var A=void 0,M=C.get("name"),k=M?"withName":"withoutName";A=h>1?f.get(["series","multiple",k]):f.get(["series","single",k]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>d){var L=f.get(["data","partialData"]);A+=o(L,{displayCnt:d})}else A+=f.get(["data","allData"]);for(var E=f.get(["data","separator","middle"]),R=f.get(["data","separator","end"]),z=[],O=0;O<P.count();O++)if(O<d){var B=P.getName(O),I=P.getValues(O),G=f.get(["data",B?"withName":"withoutName"]);z.push(o(G,{name:B,value:I.join(E)}))}A+=z.join(E)+R,_.push(A)}});var w=f.getModel(["series","multiple","separator"]),S=w.get("middle"),b=w.get("end");g+=_.join(S)+b,u.setAttribute("aria-label",g)}}}}function o(u,c){if(!q(u))return u;var f=u;return D(c,function(h,d){f=f.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function Kwe(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 qwe(e){e.registerPreprocessor(Kwe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Zwe)}var _z={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Qwe=function(){function e(t){var r=this._condVal=q(t)?new RegExp(t):nie(t)?t:null;if(r==null){var n="";Ye(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return q(r)?this._condVal.test(t):$e(r)?this._condVal.test(t+""):!1},e}(),Jwe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),ebe=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}(),tbe=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}(),rbe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),nbe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function AM(e,t){if(e===!0||e===!1){var r=new Jwe;return r.value=e,r}var n="";return LW(e)||Ye(n),e.and?xz("and",e,t):e.or?xz("or",e,t):e.not?ibe(e,t):abe(e,t)}function xz(e,t,r){var n=t[e],i="";j(n)||Ye(i),n.length||Ye(i);var a=e==="and"?new ebe:new tbe;return a.children=Y(n,function(o){return AM(o,r)}),a.children.length||Ye(i),a}function ibe(e,t){var r=e.not,n="";LW(r)||Ye(n);var i=new rbe;return i.child=AM(r,t),i.child||Ye(n),i}function abe(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=Re(e),o=e.parser,s=o?pG(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=ne(_z,u)?_z[u]:u,f=e[u],h=s?s(f):f,d=Wle(c,h)||c==="reg"&&new Qwe(h);d||Ye(r),i.push(d)}}i.length||Ye(r);var p=new nbe;return p.valueGetterParam=n,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}function LW(e){return ge(e)&&!Pr(e)}var obe=function(){function e(t,r){this._cond=AM(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function sbe(e,t){return new obe(e,t)}var lbe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=sbe(e.config,{valueGetterAttrMap:ae({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ne(s,"dimension")||Ye(l);var c=t.getDimensionInfo(u);return c||Ye(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},ube={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=et(r);i.length||Ye(n);var a=[];D(i,function(c){var f=c.dimension,h=c.order,d=c.parser,p=c.incomparable;if(f==null&&Ye(n),h!=="asc"&&h!=="desc"&&Ye(n),p&&p!=="min"&&p!=="max"){var v="";Ye(v)}if(h!=="asc"&&h!=="desc"){var g="";Ye(g)}var y=t.getDimensionInfo(f);y||Ye(n);var m=d?pG(d):null;d&&!m&&Ye(n),a.push({dimIdx:y.index,parser:m,comparator:new gG(h,p)})});var o=t.sourceFormat;o!==Ir&&o!==fi&&Ye(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<a.length;h++){var d=a[h],p=t.retrieveValueFromItem(c,d.dimIdx),v=t.retrieveValueFromItem(f,d.dimIdx);d.parser&&(p=d.parser(p),v=d.parser(v));var g=d.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function cbe(e){e.registerTransform(lbe),e.registerTransform(ube)}var fbe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new xG(this),bE(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),bE(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:ha},t}(Le),hbe=function(e){V(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(_t);function dbe(e){e.registerComponentModel(fbe),e.registerComponentView(hbe)}var Ui=ma.CMD;function Zu(e,t){return Math.abs(e-t)<1e-5}function kC(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(P,L){i&&i.length>2&&n.push(i),i=[P,L]}function c(P,L,E,R){Zu(P,E)&&Zu(L,R)||i.push(P,L,E,R,E,R)}function f(P,L,E,R,z,O){var B=Math.abs(L-P),I=Math.tan(B/4)*4/3,G=L<P?-1:1,U=Math.cos(P),N=Math.sin(P),Z=Math.cos(L),oe=Math.sin(L),te=U*z+E,fe=N*O+R,ie=Z*z+E,le=oe*O+R,ue=z*I*G,re=O*I*G;i.push(te-ue*N,fe+re*U,ie+ue*oe,le-re*Z,ie,le)}for(var h,d,p,v,g=0;g<r;){var y=t[g++],m=g===1;switch(m&&(a=t[g],o=t[g+1],s=a,l=o,(y===Ui.L||y===Ui.C||y===Ui.Q)&&(i=[s,l])),y){case Ui.M:a=s=t[g++],o=l=t[g++],u(s,l);break;case Ui.L:h=t[g++],d=t[g++],c(a,o,h,d),a=h,o=d;break;case Ui.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case Ui.Q:h=t[g++],d=t[g++],p=t[g++],v=t[g++],i.push(a+2/3*(h-a),o+2/3*(d-o),p+2/3*(h-p),v+2/3*(d-v),p,v),a=p,o=v;break;case Ui.A:var _=t[g++],x=t[g++],w=t[g++],S=t[g++],b=t[g++],C=t[g++]+b;g+=1;var T=!t[g++];h=Math.cos(b)*w+_,d=Math.sin(b)*S+x,m?(s=h,l=d,u(s,l)):c(a,o,h,d),a=Math.cos(C)*w+_,o=Math.sin(C)*S+x;for(var A=(T?-1:1)*Math.PI/2,M=b;T?M>C:M<C;M+=A){var k=T?Math.max(M+A,C):Math.min(M+A,C);f(M,k,_,x,w,S)}break;case Ui.R:s=a=t[g++],l=o=t[g++],h=s+t[g++],d=l+t[g++],u(h,l),c(h,l,h,d),c(h,d,s,d),c(s,d,s,l),c(s,l,h,l);break;case Ui.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function PC(e,t,r,n,i,a,o,s,l,u){if(Zu(e,r)&&Zu(t,n)&&Zu(i,o)&&Zu(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-e,d=s-t,p=Math.sqrt(h*h+d*d);h/=p,d/=p;var v=r-e,g=n-t,y=i-o,m=a-s,_=v*v+g*g,x=y*y+m*m;if(_<f&&x<f){l.push(o,s);return}var w=h*v+d*g,S=-h*y-d*m,b=_-w*w,C=x-S*S;if(b<f&&w>=0&&C<f&&S>=0){l.push(o,s);return}var T=[],A=[];es(e,r,i,o,.5,T),es(t,n,a,s,.5,A),PC(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],l,u),PC(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],l,u)}function pbe(e,t){var r=kC(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],h=a[u++],d=a[u++],p=a[u++],v=a[u++];PC(s,l,c,f,h,d,p,v,o,t),s=p,l=v}n.push(o)}return n}function RW(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function Sz(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=RW([l,u],c?0:1,t),h=(c?s:u)/f.length,d=0;d<f.length;d++)for(var p=(c?u:s)/f[d],v=0;v<f[d];v++){var g={};c?(g.startAngle=a+h*d,g.endAngle=a+h*(d+1),g.r0=n+p*v,g.r=n+p*(v+1)):(g.startAngle=a+p*v,g.endAngle=a+p*(v+1),g.r0=n+h*d,g.r=n+h*(d+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function vbe(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=RW([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,h=0;h<o.length;h++)for(var d=e[l]/o[h],p=0;p<o[h];p++){var v={};v[u]=h*f,v[c]=p*d,v[s]=f,v[l]=d,v.x+=e.x,v.y+=e.y,r.push(v)}}function wz(e,t,r,n){return e*n-r*t}function gbe(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,h=wz(c,f,l,u);if(Math.abs(h)<1e-6)return null;var d=e-i,p=t-a,v=wz(d,p,c,f)/h;return v<0||v>1?null:new Ce(v*l+e,v*u+t)}function ybe(e,t,r){var n=new Ce;Ce.sub(n,r,t),n.normalize();var i=new Ce;Ce.sub(i,e,t);var a=i.dot(n);return a}function Au(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function mbe(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=gbe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:ybe(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(g,y){return g.projPt-y.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],p=[h],v=[d],a=u.idx+1;a<=c.idx;a++)Au(p,e[a].slice());Au(p,d),Au(p,h);for(var a=c.idx+1;a<=u.idx+n;a++)Au(v,e[a%n].slice());return Au(v,h),Au(v,d),[{points:p},{points:v}]}function bz(e){var t=e.points,r=[],n=[];C0(t,r,n);var i=new Ae(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Ce,c=new Ce;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),mbe(t,u,c)}function hm(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);hm(e,a[0],i,n),hm(e,a[1],r-i,n)}return n}function _be(e,t){for(var r=[],n=0;n<t;n++)r.push(WA(e));return r}function xbe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function Sbe(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function wbe(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":vbe(n,t,r),i=ze;break;case"sector":Sz(n,t,r),i=Wr;break;case"circle":Sz({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=Wr;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Y(pbe(e.getUpdatedPathProxy(),o),function(y){return Sbe(y)}),l=s.length;if(l===0)hm(bz,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=Y(s,function(y){var m=[],_=[];C0(y,m,_);var x=(_[1]-m[1])*(_[0]-m[0]);return c+=x,{poly:y,area:x}});f.sort(function(y,m){return m.area-y.area});for(var h=t,u=0;u<l;u++){var d=f[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(d.area/c*t);p<0||(hm(bz,{points:d.poly},p,r),h-=p)}}i=Ur;break}if(!i)return _be(e,t);for(var v=[],u=0;u<r.length;u++){var g=new i;g.setShape(r[u]),xbe(e,g),v.push(g)}return v}function bbe(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,d=2;d<s;){var p=o[d-2],v=o[d-1],g=o[d++],y=o[d++],m=o[d++],_=o[d++],x=o[d++],w=o[d++];if(h<=0){f.push(g,y,m,_,x,w);continue}for(var S=Math.min(h,c-1)+1,b=1;b<=S;b++){var C=b/S;es(p,g,m,x,C,i),es(v,y,_,w,C,a),p=i[3],v=a[3],f.push(i[1],a[1],i[2],a[2],p,v),g=i[5],y=a[5],m=i[6],_=a[6]}h-=S-1}return o===e?[f,t]:[e,f]}function Cz(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function Cbe(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=bbe(l,u),c=r[0],f=r[1],n=c,i=f):(f=Cz(i||l,l),c=l):(c=Cz(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function Tz(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function Tbe(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var d=h===0?c:(c+h-2)%l+2,p=e[d]-r[0],v=e[d+1]-r[1],g=t[h]-n[0],y=t[h+1]-n[1],m=g-p,_=y-v;f+=m*m+_*_}f<a&&(a=f,o=u)}return o}function Abe(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 Mbe(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=Tz(s),c=Tz(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],h=[],d=0,p=1/0,v=[],g=s.length;a&&(s=Abe(s));for(var y=Tbe(s,l,u,c)*6,m=g-2,_=0;_<m;_+=2){var x=(y+_)%m+2;f[_+2]=s[x]-u[0],f[_+3]=s[x+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var w=n/r,S=-n/2;S<=n/2;S+=w){for(var b=Math.sin(S),C=Math.cos(S),T=0,_=0;_<s.length;_+=2){var A=f[_],M=f[_+1],k=l[_]-c[0],P=l[_+1]-c[1],L=k*C-P*b,E=k*b+P*C;v[_]=L,v[_+1]=E;var R=L-A,z=E-M;T+=R*R+z*z}if(T<p){p=T,d=S;for(var O=0;O<v.length;O++)h[O]=v[O]}}i.push({from:f,to:h,fromCp:u,toCp:c,rotation:-d})}return i}function dm(e){return e.__isCombineMorphing}var OW="__mOriginal_";function pm(e,t,r){var n=OW+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Gh(e,t){var r=OW+t;e[r]&&(e[t]=e[r],e[r]=null)}function Az(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function NW(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=Cbe(kC(r),kC(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&Az(a,s),l&&Az(o,l),pm(t,"updateTransform",{replace:u}),t.transform=null;var c=Mbe(a,o,10,Math.PI),f=[];pm(t,"buildPath",{replace:function(h){for(var d=t.__morphT,p=1-d,v=[],g=0;g<c.length;g++){var y=c[g],m=y.from,_=y.to,x=y.rotation*d,w=y.fromCp,S=y.toCp,b=Math.sin(x),C=Math.cos(x);vg(v,w,S,d);for(var T=0;T<m.length;T+=2){var A=m[T],M=m[T+1],k=_[T],P=_[T+1],L=A*p+k*d,E=M*p+P*d;f[T]=L*C-E*b+v[0],f[T+1]=L*b+E*C+v[1]}var R=f[0],z=f[1];h.moveTo(R,z);for(var T=2;T<m.length;){var k=f[T++],P=f[T++],O=f[T++],B=f[T++],I=f[T++],G=f[T++];R===k&&z===P&&O===I&&B===G?h.lineTo(I,G):h.bezierCurveTo(k,P,O,B,I,G),R=I,z=G}}}})}function MM(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;NW(e,t),t.__morphT=0;function a(){Gh(t,"buildPath"),Gh(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},pe({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function Dbe(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function vm(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Y(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Y(a,function(s,l){return{cp:s,z:Dbe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function zW(e){return wbe(e.path,e.count)}function IC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function kbe(e,t,r){var n=[];function i(w){for(var S=0;S<w.length;S++){var b=w[S];dm(b)?i(b.childrenRef()):b instanceof ke&&n.push(b)}}i(e);var a=n.length;if(!a)return IC();var o=r.dividePath||zW,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),IC();n=vm(n),s=vm(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Oa,h=0;h<a;h++){var d=n[h],p=s[h];p.parent=t,p.copyTransform(f),c||NW(d,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(w){for(var S=0;S<s.length;S++)s[S].addSelfToZr(w)}pm(t,"addSelfToZr",{after:function(w){v(w)}}),pm(t,"removeSelfFromZr",{after:function(w){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(w)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Gh(t,"addSelfToZr"),Gh(t,"removeSelfFromZr")}var y=s.length;if(c)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var x=c?pe({delay:(r.delay||0)+c(h,y,n[h],s[h]),done:_},r):r;MM(n[h],s[h],x)}else t.__morphT=0,t.animateTo({__morphT:1},pe({during:function(w){for(var S=0;S<y;S++){var b=s[S];b.__morphT=t.__morphT,b.dirtyShape()}u&&u(w)},done:function(){g();for(var w=0;w<e.length;w++)Gh(e[w],"updateTransform");l&&l()}},r));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Pbe(e,t,r){var n=t.length,i=[],a=r.dividePath||zW;function o(d){for(var p=0;p<d.length;p++){var v=d[p];dm(v)?o(v.childrenRef()):v instanceof ke&&i.push(v)}}if(dm(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(WA(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),IC()}i=vm(i),t=vm(t);for(var f=r.individualDelay,u=0;u<n;u++){var h=f?pe({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;MM(i[u],t[u],h)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function Mz(e){return j(e[0])}function Dz(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var Ibe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=WA(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function mS(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=Xc("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;Mz(e)&&(u=e,c=t),Mz(t)&&(u=t,c=e);function f(y,m,_,x,w){var S=y.many,b=y.one;if(S.length===1&&!w){var C=m?S[0]:b,T=m?b:S[0];if(dm(C))f({many:[C],one:T},!0,_,x,!0);else{var A=s?pe({delay:s(_,x)},l):l;MM(C,T,A),a(C,T,C,T,A)}}else for(var M=pe({dividePath:Ibe[r],individualDelay:s&&function(z,O,B,I){return s(z+_,x)}},l),k=m?kbe(S,b,M):Pbe(b,S,M),P=k.fromIndividuals,L=k.toIndividuals,E=P.length,R=0;R<E;R++){var A=s?pe({delay:s(R,E)},l):l;a(P[R],L[R],m?S[R]:y.one,m?y.one:S[R],A)}}for(var h=u?u===e:e.length>t.length,d=u?Dz(c,u):Dz(h?t:e,[h?e:t]),p=0,v=0;v<d.length;v++)p+=d[v].many.length;for(var g=0,v=0;v<d.length;v++)f(d[v],h,g,p),g+=d[v].many.length}function js(e){if(!e)return[];if(j(e)){for(var t=[],r=0;r<e.length;r++)t.push(js(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof ke&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var BW=1e4,Ebe=0,kz=1,Pz=2,Lbe=Be();function Rbe(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var i=e.getDimensionInfo(r[n]);if(i&&i.otherDims[t]===0)return r[n]}}function Obe(e,t,r){var n=e.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=e.get(n.name,t);return i&&i.categories[a]||a+""}}function Iz(e,t,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=Rbe(e,i);if(a){var o=Obe(e,t,a);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function Ez(e){var t=[];return D(e,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>BW))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:Iz(n,o,i,!1),childGroupId:Iz(n,o,i,!0),divide:r.divide,dataIndex:o})}),t}function _S(e,t,r){e.traverse(function(n){n instanceof ke&&vt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function xS(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Mu(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function Nbe(e,t,r){var n=Xc("update",r,t);n&&e.traverse(function(i){if(i instanceof si){var a=Mse(i);a&&i.animateFrom({style:a},n)}})}function zbe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function FW(e,t,r){var n=Ez(e),i=Ez(t);function a(_,x,w,S,b){(w||_)&&x.animateFrom({style:w&&w!==_?W(W({},w.style),_.style):_.style},b)}var o=!1,s=Ebe,l=ae(),u=ae();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=kz;break}var h=i[c].childGroupId;if(h&&l.get(h)){s=Pz;break}}function d(_,x){return function(w){var S=w.data,b=w.dataIndex;return x?S.getId(b):_?s===kz?w.childGroupId:w.groupId:s===Pz?w.childGroupId:w.groupId}}var p=zbe(n,i),v={};if(!p)for(var c=0;c<i.length;c++){var g=i[c],y=g.data.getItemGraphicEl(g.dataIndex);y&&(v[y.id]=!0)}function m(_,x){var w=n[x],S=i[_],b=S.data.hostModel,C=w.data.getItemGraphicEl(w.dataIndex),T=S.data.getItemGraphicEl(S.dataIndex);if(C===T){T&&Nbe(T,S.dataIndex,b);return}C&&v[C.id]||T&&(Mu(T),C?(Mu(C),xS(C),o=!0,mS(js(C),js(T),S.divide,b,_,a)):_S(T,b,_))}new Qa(n,i,d(!0,p),d(!1,p),null,"multiple").update(m).updateManyToOne(function(_,x){var w=i[_],S=w.data,b=S.hostModel,C=S.getItemGraphicEl(w.dataIndex),T=qe(Y(x,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==C&&!v[A.id]});C&&(Mu(C),T.length?(D(T,function(A){Mu(A),xS(A)}),o=!0,mS(js(T),js(C),w.divide,b,_,a)):_S(C,b,w.dataIndex))}).updateOneToMany(function(_,x){var w=n[x],S=w.data.getItemGraphicEl(w.dataIndex);if(!(S&&v[S.id])){var b=qe(Y(_,function(T){return i[T].data.getItemGraphicEl(i[T].dataIndex)}),function(T){return T&&T!==S}),C=i[_[0]].data.hostModel;b.length&&(D(b,function(T){return Mu(T)}),S?(Mu(S),xS(S),o=!0,mS(js(S),js(b),w.divide,C,_[0],a)):D(b,function(T){return _S(T,C,_[0])}))}}).updateManyToMany(function(_,x){new Qa(x,_,function(w){return n[w].data.getId(n[w].dataIndex)},function(w){return i[w].data.getId(i[w].dataIndex)}).update(function(w,S){m(_[w],x[S])}).execute()}).execute(),o&&D(t,function(_){var x=_.data,w=x.hostModel,S=w&&r.getViewOfSeriesModel(w),b=Xc("update",w,0);S&&w.isAnimationEnabled()&&b&&b.duration>0&&S.group.traverse(function(C){C instanceof ke&&!C.animators.length&&C.animateFrom({style:{opacity:0}},b)})})}function Lz(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function Rz(e){return j(e)?e.sort().join(","):e}function bo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function Bbe(e,t){var r=ae(),n=ae(),i=ae();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=Lz(a),c=Rz(u);n.set(c,{dataGroupId:s,data:l}),j(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=Lz(a),u=Rz(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:bo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:bo(s),data:s}]});else if(j(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:bo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:bo(s)}]})}else{var h=i.get(l);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:bo(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:bo(s)})}}}}),r}function Oz(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 Fbe(e,t,r,n){var i=[],a=[];D(et(e.from),function(o){var s=Oz(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:bo(t.oldData[s]),groupIdDim:o.dimension})}),D(et(e.to),function(o){var s=Oz(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:bo(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&FW(i,a,n)}function Vbe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(et(n.seriesTransition),function(i){D(et(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][Ag]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=Lbe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)D(et(a),function(d){Fbe(d,i,n,r)});else{var o=Bbe(i,n);D(o.keys(),function(d){var p=o.get(d);FW(p.oldSeries,p.newSeries,r)})}D(n.updatedSeries,function(d){d[Ag]&&(d[Ag]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<BW&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}De([Zhe]);De([Whe]);De([vde,Pde,Vde,_pe,Ppe,gve,Wve,Mge,Zge,tye,cye,ime,kme,Vme,r0e,o0e,g0e,b0e,R0e,V0e,K0e,L1e]);De(Q1e);De(T_e);De(zH);De(B_e);De(w6);De($_e);De(q_e);De(Bxe);De(nSe);De(xp);De(xSe);De(bSe);De(LSe);De(VSe);De(jSe);De(QSe);De(lwe);De(Awe);De(TW);De(AW);De(jwe);De(IW);De(EW);De(qwe);De(cbe);De(dbe);De(Vbe);De(che);const gm={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},EC=e=>e?new Date(e).toLocaleString():"",Gbe=e=>e?new Date(e).toLocaleTimeString():"",VW=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({type:"line",name:n,data:e[r]})),Nz={type:"value",boundaryGap:[0,"5%"]},$be=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(Nz).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...Nz,...t?{name:t}:{}},Hbe=({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o})=>({title:{text:t,x:10,y:10},dataZoom:[{type:"inside",start:0,end:100}],tooltip:{trigger:"axis",formatter:s=>Array.isArray(s)&&s.length>0&&s.some(l=>!!l.value)?s.reduce((l,{axisValue:u,color:c,seriesName:f,value:h},d)=>`
245
- ${d===0?EC(u):""}
246
- ${l}
247
- <br>
248
- <span style="color:${c};">
249
- ${f}:&nbsp${i?i(h):h}
250
- </span>
251
- `,""):"No data",borderWidth:0},xAxis:{type:"category",axisLabel:{formatter:Gbe},data:e.time},yAxis:$be({splitAxis:a,yAxisLabels:o}),series:VW({charts:e,lines:r}),grid:{x:60,y:70,x2:40,y2:40},color:n,toolbox:{feature:{dataZoom:{show:!0,title:{zoom:"Zoom Select",back:"Zoom Reset"}},saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),Wbe=(e,t)=>({symbol:"none",label:{formatter:r=>`Run #${r.dataIndex+1}`},lineStyle:{color:t?gm.DARK.axisColor:gm.LIGHT.axisColor},data:(e.markers||[]).map(r=>({xAxis:r}))}),Ube=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,end:i}]=r,a=n>0&&i<100;e.setOption({dataZoom:[{type:"inside",start:n,end:i},{type:"slider",show:a,start:n,end:i}]})},jbe=fQ;function Ybe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o}){const[s,l]=F.useState(null),u=jbe(({theme:{isDarkMode:f}})=>f),c=F.useRef(null);return F.useEffect(()=>{if(!c.current)return;const f=Ece(c.current);f.setOption(Hbe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o})),f.on("datazoom",Ube(f));const h=()=>f.resize();return window.addEventListener("resize",h),f.group="swarmCharts",Lce("swarmCharts"),l(f),()=>{Rce(f),window.removeEventListener("resize",h)}},[c]),F.useEffect(()=>{const f=r.every(({key:h})=>!!e[h]);s&&f&&s.setOption({xAxis:{data:e.time},series:r.map(({key:h,yAxisIndex:d,...p},v)=>({...p,data:e[h],...a?{yAxisIndex:d||v}:{},...v===0?{markLine:Wbe(e,u)}:{}}))})},[e,s,r,u]),F.useEffect(()=>{if(s){const{textColor:f,axisColor:h,backgroundColor:d,splitLine:p}=u?gm.DARK:gm.LIGHT;s.setOption({backgroundColor:d,textStyle:{color:f},title:{textStyle:{color:f}},legend:{icon:"circle",inactiveColor:f,textStyle:{color:f}},tooltip:{backgroundColor:d,textStyle:{color:f}},xAxis:{axisLine:{lineStyle:{color:h}}},yAxis:{axisLine:{lineStyle:{color:h}},splitLine:{lineStyle:{color:p}}}})}},[s,u]),F.useEffect(()=>{s&&s.setOption({series:VW({charts:e,lines:r})})},[r]),H.jsx("div",{ref:c,style:{width:"100%",height:"300px"}})}const Xbe=pl.percentilesToChart?pl.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],Zbe=["#eeff00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],Kbe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:Xbe,colors:Zbe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function GW({charts:e}){return H.jsx("div",{children:Kbe.map((t,r)=>H.jsx(Ybe,{...t,charts:e},`swarm-chart-${r}`))})}const qbe=({ui:{charts:e}})=>({charts:e});qd(qbe)(GW);function Qbe(e){return(e*100).toFixed(1)+"%"}function LC({classRatio:e}){return H.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>H.jsxs("li",{children:[`${Qbe(r)} ${t}`,n&&H.jsx(LC,{classRatio:n})]},`nested-ratio-${t}`))})}function $W({ratios:{perClass:e,total:t}}){return!e&&!t?null:H.jsxs("div",{children:[e&&H.jsxs(H.Fragment,{children:[H.jsx("h3",{children:"Ratio Per Class"}),H.jsx(LC,{classRatio:e})]}),t&&H.jsxs(H.Fragment,{children:[H.jsx("h3",{children:"Total Ratio"}),H.jsx(LC,{classRatio:t})]})]})}const Jbe=({ui:{ratios:e}})=>({ratios:e});qd(Jbe)($W);const SS={DARK:"dark",LIGHT:"light"},HW=localStorage.theme===SS.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?SS.DARK:SS.LIGHT,eCe={isDarkMode:!1},WW=Gq({name:"theme",initialState:eCe,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}});WW.actions;const tCe=WW.reducer,rCe=e=>KT({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}}),nCe=rCe(window.theme||HW),iCe=(window.theme||HW)==="dark",aCe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"totalRps",title:"RPS",round:2},{key:"totalFailPerSec",title:"Failures/s",round:2}],oCe=Eq({reducer:U3({theme:tCe}),preloadedState:{theme:{isDarkMode:iCe}}});function sCe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return H.jsx(tJ,{store:oCe,children:H.jsxs(YY,{theme:nCe,children:[H.jsx(PZ,{}),H.jsxs(AZ,{maxWidth:"lg",sx:{my:4},children:[H.jsxs(zn,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[H.jsx(Ar,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&H.jsx(nK,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),H.jsxs(zn,{sx:{my:2},children:[H.jsxs(zn,{sx:{display:"flex",columnGap:.5},children:[H.jsx(Ar,{fontWeight:600,children:"During:"}),H.jsxs(Ar,{children:[EC(r)," - ",EC(n)]})]}),H.jsxs(zn,{sx:{display:"flex",columnGap:.5},children:[H.jsx(Ar,{fontWeight:600,children:"Target Host:"}),H.jsx(Ar,{children:a||"None"})]}),H.jsxs(zn,{sx:{display:"flex",columnGap:.5},children:[H.jsx(Ar,{fontWeight:600,children:"Script:"}),H.jsx(Ar,{children:e})]})]}),H.jsxs(zn,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[H.jsxs(zn,{children:[H.jsx(Ar,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),H.jsx(r4,{stats:s,tableStructure:aCe})]}),!!u.length&&H.jsxs(zn,{children:[H.jsx(Ar,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),H.jsx(Dne,{responseTimes:u})]}),H.jsxs(zn,{children:[H.jsx(Ar,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),H.jsx(JF,{errors:l})]}),!!o.length&&H.jsxs(zn,{children:[H.jsx(Ar,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),H.jsx(QF,{exceptions:o})]}),H.jsxs(zn,{children:[H.jsx(Ar,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),H.jsx(GW,{charts:i})]}),H.jsxs(zn,{children:[H.jsx(Ar,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),H.jsx($W,{ratios:c})]})]})]})]})})}const lCe=wS.createRoot(document.getElementById("root"));lCe.render(H.jsx(_9,{fallbackRender:S9,children:H.jsx(sCe,{...T9})}));
252
- </script>
253
- </head>
254
-
255
- <body>
256
- <div id="root"></div>
257
-
258
- <script>
259
- window.templateArgs = {"end_time": "2025-01-20T16:44:01Z", "exceptions_statistics": [], "failures_statistics": [], "history": [{"current_fail_per_sec": 0, "current_rps": 0, "response_time_percentile_0.5": 2400.0, "response_time_percentile_0.95": 2400.0, "time": "2025-01-20T16:43:44Z", "total_avg_response_time": 2129.99, "user_count": 3}, {"current_fail_per_sec": 0, "current_rps": 0.2857142857142857, "response_time_percentile_0.5": 2400.0, "response_time_percentile_0.95": 2500.0, "time": "2025-01-20T16:43:49Z", "total_avg_response_time": 2324.62, "user_count": 5}, {"current_fail_per_sec": 0, "current_rps": 0.9, "response_time_percentile_0.5": 2400.0, "response_time_percentile_0.95": 2800.0, "time": "2025-01-20T16:43:54Z", "total_avg_response_time": 2411.86, "user_count": 8}, {"current_fail_per_sec": 0, "current_rps": 1.0, "response_time_percentile_0.5": 2400.0, "response_time_percentile_0.95": 2800.0, "time": "2025-01-20T16:43:59Z", "total_avg_response_time": 2360.91, "user_count": 10}, {"current_fail_per_sec": 0, "current_rps": 1.2, "response_time_percentile_0.5": 2500.0, "response_time_percentile_0.95": 6500.0, "time": "2025-01-20T16:44:01Z", "total_avg_response_time": 2733.45, "user_count": 10}], "host": "None", "is_report": true, "locustfile": "load_test.py", "percentiles_to_chart": [0.5, 0.95], "requests_statistics": [{"avg_content_length": 1654.65, "avg_response_time": 2733.450949192047, "current_fail_per_sec": 0.0, "current_rps": 1.2, "max_response_time": 6519.0, "median_response_time": 2400.0, "method": "STREAM_END", "min_response_time": 1843.0, "name": "reasoning_engine_stream_end", "num_failures": 0, "num_requests": 20, "response_time_percentile_0.95": 6500.0, "response_time_percentile_0.99": 6500.0, "safe_name": "reasoning_engine_stream_end", "total_fail_per_sec": 0.0, "total_rps": 0.9449910217714972}, {"avg_content_length": 1654.65, "avg_response_time": 2733.450949192047, "current_fail_per_sec": 0.0, "current_rps": 1.2, "max_response_time": 6519.0, "median_response_time": 2400.0, "method": "", "min_response_time": 1843.0, "name": "Aggregated", "num_failures": 0, "num_requests": 20, "response_time_percentile_0.95": 6500.0, "response_time_percentile_0.99": 6500.0, "safe_name": "Aggregated", "total_fail_per_sec": 0.0, "total_rps": 0.9449910217714972}], "response_time_statistics": [{"0.5": 2400.0, "0.6": 2400.0, "0.7": 2500.0, "0.8": 2600.0, "0.9": 5700.0, "0.95": 6500.0, "0.99": 6500.0, "1.0": 6500.0, "method": "STREAM_END", "name": "reasoning_engine_stream_end"}, {"0.5": 2400.0, "0.6": 2400.0, "0.7": 2500.0, "0.8": 2600.0, "0.9": 5700.0, "0.95": 6500.0, "0.99": 6500.0, "1.0": 6500.0, "method": "", "name": "Aggregated"}], "show_download_link": false, "start_time": "2025-01-20T16:43:39Z", "tasks": {"per_class": {"ChatStreamUser": {"ratio": 1.0, "tasks": {"chat_stream": {"ratio": 1.0}}}}, "total": {"ChatStreamUser": {"ratio": 1.0, "tasks": {"chat_stream": {"ratio": 1.0}}}}}}
260
- window.theme = ""
261
- </script>
262
-
263
- </body>
264
- </html>