win-chart 1.6.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs.js +306 -0
- package/dist/bundle.esm.js +306 -0
- package/dist/bundle.umd.js +306 -0
- package/dist/index.d.ts +111 -0
- package/{esm → dist/types}/components/win-card/components/ChartContent.d.ts +1 -2
- package/{esm/components/win-card-mobile → dist/types/components/win-card}/components/Indicator.d.ts +1 -1
- package/{esm/components/win-card-mobile → dist/types/components/win-card}/components/IndicatorArea.d.ts +1 -1
- package/dist/types/components/win-card/components/IndicatorInfo.d.ts +11 -0
- package/{esm → dist/types}/components/win-chart/index.d.ts +1 -3
- package/{esm → dist/types}/components/win-chart/utils/getAreaSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getBarSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getChartOptions.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getColumnSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getDualSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getFunnelSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getLineSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getPieSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/getRadarSpec.d.ts +1 -1
- package/{esm → dist/types}/components/win-chart/utils/tool.d.ts +1 -1
- package/{esm → dist/types}/index.d.ts +2 -1
- package/dist/types/services/IndicatorService.d.ts +19 -0
- package/dist/types/services/WorkbenchService.d.ts +17 -0
- package/{esm/components/win-chart/utils/type.d.ts → dist/types/types/index.d.ts} +22 -9
- package/{esm → dist/types}/types/indicator.d.ts +2 -2
- package/{esm → dist/types}/types/interface.d.ts +11 -0
- package/{esm → dist/types}/utils/index.d.ts +0 -3
- package/{esm → dist/types}/utils/map.d.ts +1 -1
- package/{esm → dist/types}/utils/url.d.ts +0 -5
- package/dist/types/utils/util.d.ts +14 -0
- package/package.json +29 -34
- package/esm/api/request.js +0 -89
- package/esm/api/request.js.map +0 -1
- package/esm/components/NoContent.js +0 -70
- package/esm/components/NoContent.js.map +0 -1
- package/esm/components/VisionUserConfigContext.js +0 -4
- package/esm/components/VisionUserConfigContext.js.map +0 -1
- package/esm/components/hover-view.js +0 -27
- package/esm/components/hover-view.js.map +0 -1
- package/esm/components/icon.js +0 -36
- package/esm/components/icon.js.map +0 -1
- package/esm/components/panel-title-tab.js +0 -40
- package/esm/components/panel-title-tab.js.map +0 -1
- package/esm/components/win-card/components/ChartContent.js +0 -45
- package/esm/components/win-card/components/ChartContent.js.map +0 -1
- package/esm/components/win-card/components/Indicator.d.ts +0 -2
- package/esm/components/win-card/components/Indicator.js +0 -40
- package/esm/components/win-card/components/Indicator.js.map +0 -1
- package/esm/components/win-card/components/IndicatorArea.d.ts +0 -2
- package/esm/components/win-card/components/IndicatorArea.js +0 -57
- package/esm/components/win-card/components/IndicatorArea.js.map +0 -1
- package/esm/components/win-card/components/IndicatorInfo.d.ts +0 -14
- package/esm/components/win-card/components/IndicatorInfo.js +0 -67
- package/esm/components/win-card/components/IndicatorInfo.js.map +0 -1
- package/esm/components/win-card/components/MatterContent.js +0 -124
- package/esm/components/win-card/components/MatterContent.js.map +0 -1
- package/esm/components/win-card/components/MatterList.js +0 -115
- package/esm/components/win-card/components/MatterList.js.map +0 -1
- package/esm/components/win-card/components/SelectDecoration.js +0 -43
- package/esm/components/win-card/components/SelectDecoration.js.map +0 -1
- package/esm/components/win-card/components/WinRankContent.js +0 -99
- package/esm/components/win-card/components/WinRankContent.js.map +0 -1
- package/esm/components/win-card/index.js +0 -270
- package/esm/components/win-card/index.js.map +0 -1
- package/esm/components/win-card/utils/interface.d.ts +0 -12
- package/esm/components/win-card/utils/interface.js +0 -1
- package/esm/components/win-card/utils/tool.d.ts +0 -1
- package/esm/components/win-card/utils/tool.js +0 -14
- package/esm/components/win-card/utils/tool.js.map +0 -1
- package/esm/components/win-card-mobile/components/ChartContent.d.ts +0 -8
- package/esm/components/win-card-mobile/components/ChartContent.js +0 -36
- package/esm/components/win-card-mobile/components/ChartContent.js.map +0 -1
- package/esm/components/win-card-mobile/components/DualLineBar.d.ts +0 -2
- package/esm/components/win-card-mobile/components/DualLineBar.js +0 -41
- package/esm/components/win-card-mobile/components/DualLineBar.js.map +0 -1
- package/esm/components/win-card-mobile/components/Indicator.js +0 -40
- package/esm/components/win-card-mobile/components/Indicator.js.map +0 -1
- package/esm/components/win-card-mobile/components/IndicatorArea.js +0 -59
- package/esm/components/win-card-mobile/components/IndicatorArea.js.map +0 -1
- package/esm/components/win-card-mobile/components/IndicatorInfo.d.ts +0 -13
- package/esm/components/win-card-mobile/components/IndicatorInfo.js +0 -72
- package/esm/components/win-card-mobile/components/IndicatorInfo.js.map +0 -1
- package/esm/components/win-card-mobile/components/SelectDecoration.d.ts +0 -9
- package/esm/components/win-card-mobile/components/SelectDecoration.js +0 -33
- package/esm/components/win-card-mobile/components/SelectDecoration.js.map +0 -1
- package/esm/components/win-card-mobile/index.d.ts +0 -7
- package/esm/components/win-card-mobile/index.js +0 -215
- package/esm/components/win-card-mobile/index.js.map +0 -1
- package/esm/components/win-card-mobile/utils/interface.d.ts +0 -10
- package/esm/components/win-card-mobile/utils/interface.js +0 -1
- package/esm/components/win-card-mobile/utils/tool.d.ts +0 -1
- package/esm/components/win-card-mobile/utils/tool.js +0 -8
- package/esm/components/win-chart/components/chart-wrapper.js +0 -14
- package/esm/components/win-chart/components/chart-wrapper.js.map +0 -1
- package/esm/components/win-chart/index.js +0 -61
- package/esm/components/win-chart/index.js.map +0 -1
- package/esm/components/win-chart/theme/win-dark.json +0 -372
- package/esm/components/win-chart/theme/win-light.json +0 -372
- package/esm/components/win-chart/utils/const.js +0 -34
- package/esm/components/win-chart/utils/getAreaSpec.js +0 -149
- package/esm/components/win-chart/utils/getAreaSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getBarSpec.js +0 -66
- package/esm/components/win-chart/utils/getBarSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getChartOptions.js +0 -47
- package/esm/components/win-chart/utils/getChartOptions.js.map +0 -1
- package/esm/components/win-chart/utils/getColumnSpec.js +0 -119
- package/esm/components/win-chart/utils/getColumnSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getDualSpec.js +0 -168
- package/esm/components/win-chart/utils/getDualSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getFunnelSpec.js +0 -66
- package/esm/components/win-chart/utils/getFunnelSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getLineSpec.js +0 -52
- package/esm/components/win-chart/utils/getLineSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getPieSpec.js +0 -126
- package/esm/components/win-chart/utils/getPieSpec.js.map +0 -1
- package/esm/components/win-chart/utils/getRadarSpec.js +0 -88
- package/esm/components/win-chart/utils/getRadarSpec.js.map +0 -1
- package/esm/components/win-chart/utils/tool.js +0 -163
- package/esm/components/win-chart/utils/tool.js.map +0 -1
- package/esm/components/win-chart/utils/type.js +0 -39
- package/esm/components/win-icon/index.js +0 -79
- package/esm/components/win-icon/index.js.map +0 -1
- package/esm/components/win-wrappers/card-wrapper.js +0 -170
- package/esm/components/win-wrappers/card-wrapper.js.map +0 -1
- package/esm/components/win-wrappers/dot-wrapper.js +0 -29
- package/esm/components/win-wrappers/dot-wrapper.js.map +0 -1
- package/esm/components/win-wrappers/iframe-wrapper.js +0 -14
- package/esm/components/win-wrappers/iframe-wrapper.js.map +0 -1
- package/esm/components/win-wrappers/request-wrapper.js +0 -170
- package/esm/components/win-wrappers/request-wrapper.js.map +0 -1
- package/esm/hooks/useCardOptionList.js +0 -58
- package/esm/hooks/useCardOptionList.js.map +0 -1
- package/esm/hooks/useHasIntersected.js +0 -33
- package/esm/hooks/useHasIntersected.js.map +0 -1
- package/esm/index.js +0 -7
- package/esm/index.js.map +0 -1
- package/esm/services/CardService.js +0 -183
- package/esm/services/CardService.js.map +0 -1
- package/esm/services/IndicatorService.d.ts +0 -138
- package/esm/services/IndicatorService.js +0 -732
- package/esm/services/IndicatorService.js.map +0 -1
- package/esm/services/WorkbenchService.d.ts +0 -129
- package/esm/services/WorkbenchService.js +0 -718
- package/esm/services/WorkbenchService.js.map +0 -1
- package/esm/types/enum.js +0 -98
- package/esm/types/index.d.ts +0 -14
- package/esm/types/index.js +0 -9
- package/esm/types/index.js.map +0 -1
- package/esm/types/indicator.js +0 -1
- package/esm/types/interface.js +0 -1
- package/esm/types/portal.js +0 -1
- package/esm/types/report.js +0 -1
- package/esm/types/type.js +0 -1
- package/esm/types/user.js +0 -1
- package/esm/typings.d.ts +0 -1
- package/esm/utils/arms.js +0 -46
- package/esm/utils/arr.js +0 -132
- package/esm/utils/arr.js.map +0 -1
- package/esm/utils/const.js +0 -11
- package/esm/utils/index.js +0 -14
- package/esm/utils/index.js.map +0 -1
- package/esm/utils/init.js +0 -7
- package/esm/utils/init.js.map +0 -1
- package/esm/utils/map.js +0 -509
- package/esm/utils/map.js.map +0 -1
- package/esm/utils/number.d.ts +0 -44
- package/esm/utils/number.js +0 -92
- package/esm/utils/number.js.map +0 -1
- package/esm/utils/str.js +0 -21
- package/esm/utils/tools.d.ts +0 -7
- package/esm/utils/tools.js +0 -35
- package/esm/utils/tools.js.map +0 -1
- package/esm/utils/tree.d.ts +0 -49
- package/esm/utils/tree.js +0 -153
- package/esm/utils/tree.js.map +0 -1
- package/esm/utils/url.js +0 -40
- package/esm/utils/url.js.map +0 -1
- package/esm/utils/util.d.ts +0 -38
- package/esm/utils/util.js +0 -89
- package/esm/utils/util.js.map +0 -1
- /package/{esm → dist/types}/api/request.d.ts +0 -0
- /package/{esm → dist/types}/components/NoContent.d.ts +0 -0
- /package/{esm → dist/types}/components/VisionUserConfigContext.d.ts +0 -0
- /package/{esm → dist/types}/components/hover-view.d.ts +0 -0
- /package/{esm → dist/types}/components/icon.d.ts +0 -0
- /package/{esm → dist/types}/components/panel-title-tab.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/components/MatterContent.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/components/MatterList.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/components/SelectDecoration.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/components/WinRankContent.d.ts +0 -0
- /package/{esm → dist/types}/components/win-card/index.d.ts +0 -0
- /package/{esm → dist/types}/components/win-chart/components/chart-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/components/win-chart/utils/const.d.ts +0 -0
- /package/{esm → dist/types}/components/win-icon/index.d.ts +0 -0
- /package/{esm → dist/types}/components/win-wrappers/card-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/components/win-wrappers/dot-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/components/win-wrappers/iframe-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/components/win-wrappers/request-wrapper.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useCardOptionList.d.ts +0 -0
- /package/{esm → dist/types}/hooks/useHasIntersected.d.ts +0 -0
- /package/{esm → dist/types}/services/CardService.d.ts +0 -0
- /package/{esm → dist/types}/types/enum.d.ts +0 -0
- /package/{esm → dist/types}/types/portal.d.ts +0 -0
- /package/{esm → dist/types}/types/report.d.ts +0 -0
- /package/{esm → dist/types}/types/type.d.ts +0 -0
- /package/{esm → dist/types}/types/user.d.ts +0 -0
- /package/{esm → dist/types}/utils/arr.d.ts +0 -0
- /package/{esm → dist/types}/utils/const.d.ts +0 -0
- /package/{esm → dist/types}/utils/init.d.ts +0 -0
- /package/{esm → dist/types}/utils/str.d.ts +0 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import e,{useRef as t,useDebugValue as n,createElement as i,useContext as o,useState as r,useEffect as a,useCallback as s,Fragment as l}from"react";import c,{TextEncoder as u}from"util";import p,{Readable as d}from"stream";import h from"path";import f from"http";import g from"https";import m from"url";import v from"fs";import y from"assert";import x from"tty";import b from"os";import _ from"zlib";import w from"events";import{CnBox as S,Box as M,CnPagination as C,Select as I,Balloon as T,CnMessage as A,CnMenuItem as D,CnDropdown as k,Icon as E,CnMenu as O}from"@cainiaofe/cn-ui";var L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P,R={exports:{}},z={};var V,B={};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/"production"===process.env.NODE_ENV?R.exports=function(){if(P)return z;P=1;var t=e,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,i){var s,l={},c=null,u=null;for(s in void 0!==i&&(c=""+i),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,s)&&!a.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:n,type:e,key:c,ref:u,props:l,_owner:r.current}}return z.Fragment=i,z.jsx=s,z.jsxs=s,z}():R.exports=(V||(V=1,"production"!==process.env.NODE_ENV&&function(){var t=e,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator",v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];!function(e,t,n){var i=v.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(t+="%s",n=n.concat([i]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var x,b=!1,_=!1,w=!1,S=!1,M=!1;function C(e){return e.displayName||"Context"}function I(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case i:return"Portal";case a:return"Profiler";case r:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return C(e)+".Consumer";case s:return C(e._context)+".Provider";case c:return function(e,t,n){var i=e.displayName;if(i)return i;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case d:var t=e.displayName||null;return null!==t?t:I(e.type)||"Memo";case h:var n=e,f=n._payload,g=n._init;try{return I(g(f))}catch(e){return null}}return null}x=Symbol.for("react.module.reference");var T,A,D,k,E,O,L,N=Object.assign,P=0;function R(){}R.__reactDisabledLog=!0;var z,V=v.ReactCurrentDispatcher;function j(e,t,n){if(void 0===z)try{throw Error()}catch(e){var i=e.stack.trim().match(/\n( *(at )?)/);z=i&&i[1]||""}return"\n"+z+e}var F,G=!1,H="function"==typeof WeakMap?WeakMap:Map;function W(e,t){if(!e||G)return"";var n,i=F.get(e);if(void 0!==i)return i;G=!0;var o,r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=V.current,V.current=null,function(){if(0===P){T=console.log,A=console.info,D=console.warn,k=console.error,E=console.group,O=console.groupCollapsed,L=console.groupEnd;var e={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}P++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var p="\n"+s[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&F.set(e,p),p}}while(c>=1&&u>=0);break}}}finally{G=!1,V.current=o,function(){if(0==--P){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:T}),info:N({},e,{value:A}),warn:N({},e,{value:D}),error:N({},e,{value:k}),group:N({},e,{value:E}),groupCollapsed:N({},e,{value:O}),groupEnd:N({},e,{value:L})})}P<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=r}var d=e?e.displayName||e.name:"",h=d?j(d):"";return"function"==typeof e&&F.set(e,h),h}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return W(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return j(e);switch(e){case u:return j("Suspense");case p:return j("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return W(e.render,!1);case d:return U(e.type,t,n);case h:var i=e,o=i._payload,r=i._init;try{return U(r(o),t,n)}catch(e){}}return""}F=new H;var Y=Object.prototype.hasOwnProperty,q={},X=v.ReactDebugCurrentFrame;function $(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);X.setExtraStackFrame(n)}else X.setExtraStackFrame(null)}var Z=Array.isArray;function K(e){return Z(e)}function J(e){return""+e}function Q(e){if(function(e){try{return J(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),J(e)}var ee,te,ne,ie=v.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var re=function(e,t,i,o,r,a,s){var l={$$typeof:n,type:e,key:t,ref:i,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,n,i,o){var r,a={},s=null,l=null;for(r in void 0!==n&&(Q(n),s=""+n),function(e){if(Y.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),s=""+t.key),function(e){if(Y.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&ie.current&&t&&ie.current.stateNode!==t){var n=I(ie.current.type);ne[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(ie.current.type),e.ref),ne[n]=!0)}}(t,o)),t)Y.call(t,r)&&!oe.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps){var c=e.defaultProps;for(r in c)void 0===a[r]&&(a[r]=c[r])}if(s||l){var u="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){ee||(ee=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,u),l&&function(e,t){var n=function(){te||(te=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,u)}return re(e,s,l,o,i,ie.current,a)}var se,le=v.ReactCurrentOwner,ce=v.ReactDebugCurrentFrame;function ue(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);ce.setExtraStackFrame(n)}else ce.setExtraStackFrame(null)}function pe(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(le.current){var e=I(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}se=!1;var he={};function fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=de();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!he[n]){he[n]=!0;var i="";e&&e._owner&&e._owner!==le.current&&(i=" It was passed a child from "+I(e._owner.type)+"."),ue(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),ue(null)}}}function ge(e,t){if("object"==typeof e)if(K(e))for(var n=0;n<e.length;n++){var i=e[n];pe(i)&&fe(i,t)}else if(pe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var r,a=o.call(e);!(r=a.next()).done;)pe(r.value)&&fe(r.value,t)}}function me(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==d)return;t=n.propTypes}if(t){var i=I(n);!function(e,t,n,i,o){var r=Function.call.bind(Y);for(var a in e)if(r(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((i||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||($(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,a,typeof s),$(null)),s instanceof Error&&!(s.message in q)&&(q[s.message]=!0,$(o),y("Failed %s type: %s",n,s.message),$(null))}}(t,e.props,"prop",i,e)}else void 0===n.PropTypes||se||(se=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ve(e,t,i,g,m,v){var C=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||M||e===r||e===u||e===p||S||e===f||b||_||w)||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===x||void 0!==e.getModuleId)}(e);if(!C){var T="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A,D=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);T+=D||de(),null===e?A="null":K(e)?A="array":void 0!==e&&e.$$typeof===n?(A="<"+(I(e.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):A=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,T)}var k=ae(e,t,i,m,v);if(null==k)return k;if(C){var E=t.children;if(void 0!==E)if(g)if(K(E)){for(var O=0;O<E.length;O++)ge(E[O],e);Object.freeze&&Object.freeze(E)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ge(E,e)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var i=t[n];if("children"!==i&&"key"!==i){ue(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),ue(null);break}}null!==e.ref&&(ue(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ue(null))}(k):me(k),k}var ye=function(e,t,n){return ve(e,t,n,!1)},xe=function(e,t,n){return ve(e,t,n,!0)};B.Fragment=o,B.jsx=ye,B.jsxs=xe}()),B);var j=R.exports,F=function(e,t){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},F(e,t)};function G(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var H=function(){return H=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},H.apply(this,arguments)};function W(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function U(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var Y=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,q=U((function(e){return Y.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),X="-ms-",$="-moz-",Z="-webkit-",K="comm",J="rule",Q="decl",ee="@import",te="@keyframes",ne="@layer",ie=Math.abs,oe=String.fromCharCode,re=Object.assign;function ae(e){return e.trim()}function se(e,t){return(e=t.exec(e))?e[0]:e}function le(e,t,n){return e.replace(t,n)}function ce(e,t,n){return e.indexOf(t,n)}function ue(e,t){return 0|e.charCodeAt(t)}function pe(e,t,n){return e.slice(t,n)}function de(e){return e.length}function he(e){return e.length}function fe(e,t){return t.push(e),e}function ge(e,t){return e.filter((function(e){return!se(e,t)}))}var me=1,ve=1,ye=0,xe=0,be=0,_e="";function we(e,t,n,i,o,r,a,s){return{value:e,root:t,parent:n,type:i,props:o,children:r,line:me,column:ve,length:a,return:"",siblings:s}}function Se(e,t){return re(we("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Me(e){for(;e.root;)e=Se(e.root,{children:[e]});fe(e,e.siblings)}function Ce(){return be=xe>0?ue(_e,--xe):0,ve--,10===be&&(ve=1,me--),be}function Ie(){return be=xe<ye?ue(_e,xe++):0,ve++,10===be&&(ve=1,me++),be}function Te(){return ue(_e,xe)}function Ae(){return xe}function De(e,t){return pe(_e,e,t)}function ke(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 Ee(e){return ae(De(xe-1,Ne(91===e?e+2:40===e?e+1:e)))}function Oe(e){for(;(be=Te())&&be<33;)Ie();return ke(e)>2||ke(be)>3?"":" "}function Le(e,t){for(;--t&&Ie()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return De(e,Ae()+(t<6&&32==Te()&&32==Ie()))}function Ne(e){for(;Ie();)switch(be){case e:return xe;case 34:case 39:34!==e&&39!==e&&Ne(be);break;case 40:41===e&&Ne(e);break;case 92:Ie()}return xe}function Pe(e,t){for(;Ie()&&e+be!==57&&(e+be!==84||47!==Te()););return"/*"+De(t,xe-1)+"*"+oe(47===e?e:Ie())}function Re(e){for(;!ke(Te());)Ie();return De(e,xe)}function ze(e){return function(e){return _e="",e}(Ve("",null,null,null,[""],e=function(e){return me=ve=1,ye=de(_e=e),xe=0,[]}(e),0,[0],e))}function Ve(e,t,n,i,o,r,a,s,l){for(var c=0,u=0,p=a,d=0,h=0,f=0,g=1,m=1,v=1,y=0,x="",b=o,_=r,w=i,S=x;m;)switch(f=y,y=Ie()){case 40:if(108!=f&&58==ue(S,p-1)){-1!=ce(S+=le(Ee(y),"&","&\f"),"&\f",ie(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Ee(y);break;case 9:case 10:case 13:case 32:S+=Oe(f);break;case 92:S+=Le(Ae()-1,7);continue;case 47:switch(Te()){case 42:case 47:fe(je(Pe(Ie(),Ae()),t,n,l),l);break;default:S+="/"}break;case 123*g:s[c++]=de(S)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==v&&(S=le(S,/\f/g,"")),h>0&&de(S)-p&&fe(h>32?Fe(S+";",i,n,p-1,l):Fe(le(S," ","")+";",i,n,p-2,l),l);break;case 59:S+=";";default:if(fe(w=Be(S,t,n,c,u,o,s,x,b=[],_=[],p,r),r),123===y)if(0===u)Ve(S,t,w,w,b,r,p,s,_);else switch(99===d&&110===ue(S,3)?100:d){case 100:case 108:case 109:case 115:Ve(e,w,w,i&&fe(Be(e,w,w,0,0,o,s,x,o,b=[],p,_),_),o,_,p,s,i?b:_);break;default:Ve(S,w,w,w,[""],_,0,s,_)}}c=u=h=0,g=v=1,x=S="",p=a;break;case 58:p=1+de(S),h=f;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==Ce())continue;switch(S+=oe(y),y*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(de(S)-1)*v,v=1;break;case 64:45===Te()&&(S+=Ee(Ie())),d=Te(),u=p=de(x=S+=Re(Ae())),y++;break;case 45:45===f&&2==de(S)&&(g=0)}}return r}function Be(e,t,n,i,o,r,a,s,l,c,u,p){for(var d=o-1,h=0===o?r:[""],f=he(h),g=0,m=0,v=0;g<i;++g)for(var y=0,x=pe(e,d+1,d=ie(m=a[g])),b=e;y<f;++y)(b=ae(m>0?h[y]+" "+x:le(x,/&\f/g,h[y])))&&(l[v++]=b);return we(e,t,n,0===o?J:s,l,c,u,p)}function je(e,t,n,i){return we(e,t,n,K,oe(be),pe(e,2,-2),0,i)}function Fe(e,t,n,i,o){return we(e,t,n,Q,pe(e,0,i),pe(e,i+1,-1),i,o)}function Ge(e,t,n){switch(function(e,t){return 45^ue(e,0)?(((t<<2^ue(e,0))<<2^ue(e,1))<<2^ue(e,2))<<2^ue(e,3):0}(e,t)){case 5103:return Z+"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 Z+e+e;case 4789:return $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+e+$+e+X+e+e;case 5936:switch(ue(e,t+11)){case 114:return Z+e+X+le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+X+le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+X+le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Z+e+X+e+e;case 6165:return Z+e+X+"flex-"+e+e;case 5187:return Z+e+le(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+X+"flex-$1$2")+e;case 5443:return Z+e+X+"flex-item-"+le(e,/flex-|-self/g,"")+(se(e,/flex-|baseline/)?"":X+"grid-row-"+le(e,/flex-|-self/g,""))+e;case 4675:return Z+e+X+"flex-line-pack"+le(e,/align-content|flex-|-self/g,"")+e;case 5548:return Z+e+X+le(e,"shrink","negative")+e;case 5292:return Z+e+X+le(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+le(e,"-grow","")+Z+e+X+le(e,"grow","positive")+e;case 4554:return Z+le(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return le(le(le(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return le(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return le(le(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4200:if(!se(e,/flex-|baseline/))return X+"grid-column-align"+pe(e,t)+e;break;case 2592:case 3360:return X+le(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,se(e.props,/grid-\w+-end/)}))?~ce(e+(n=n[t].value),"span",0)?e:X+le(e,"-start","")+e+X+"grid-row-span:"+(~ce(n,"span",0)?se(n,/\d+/):+se(n,/\d+/)-+se(e,/\d+/))+";":X+le(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return se(e.props,/grid-\w+-start/)}))?e:X+le(le(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return le(e,/(.+)-inline(.+)/,Z+"$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(de(e)-1-t>6)switch(ue(e,t+1)){case 109:if(45!==ue(e,t+4))break;case 102:return le(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+$+(108==ue(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ce(e,"stretch",0)?Ge(le(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return le(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,i,o,r,a,s){return X+n+":"+i+s+(o?X+n+"-span:"+(r?a:+a-+i)+s:"")+e}));case 4949:if(121===ue(e,t+6))return le(e,":",":"+Z)+e;break;case 6444:switch(ue(e,45===ue(e,14)?18:11)){case 120:return le(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Z+(45===ue(e,14)?"inline-":"")+"box$3$1"+Z+"$2$3$1"+X+"$2box$3")+e;case 100:return le(e,":",":"+X)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return le(e,"scroll-","scroll-snap-")+e}return e}function He(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function We(e,t,n,i){switch(e.type){case ne:if(e.children.length)break;case ee:case Q:return e.return=e.return||e.value;case K:return"";case te:return e.return=e.value+"{"+He(e.children,i)+"}";case J:if(!de(e.value=e.props.join(",")))return""}return de(n=He(e.children,i))?e.return=e.value+"{"+n+"}":""}function Ue(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case Q:return void(e.return=Ge(e.value,e.length,n));case te:return He([Se(e,{value:le(e.value,"@","@"+Z)})],i);case J:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(se(t,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Me(Se(e,{props:[le(t,/:(read-\w+)/,":"+$+"$1")]})),Me(Se(e,{props:[t]})),re(e,{props:ge(n,i)});break;case"::placeholder":Me(Se(e,{props:[le(t,/:(plac\w+)/,":"+Z+"input-$1")]})),Me(Se(e,{props:[le(t,/:(plac\w+)/,":"+$+"$1")]})),Me(Se(e,{props:[le(t,/:(plac\w+)/,X+"input-$1")]})),Me(Se(e,{props:[t]})),re(e,{props:ge(n,i)})}return""}))}}var Ye={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qe="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Xe="active",$e="data-styled-version",Ze="6.1.8",Ke="/*!sc*/\n",Je="undefined"!=typeof window&&"HTMLElement"in window,Qe=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),et=/invalid hook call/i,tt=new Set,nt=function(e,n){if("production"!==process.env.NODE_ENV){var i=n?' with the id of "'.concat(n,'"'):"",o="The component ".concat(e).concat(i," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var a=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];et.test(e)?(a=!1,tt.delete(o)):r.apply(void 0,W([e],t,!1))},t(),a&&!tt.has(o)&&(console.warn(o),tt.add(o))}catch(e){et.test(e.message)&&tt.delete(o)}finally{console.error=r}}},it=Object.freeze([]),ot=Object.freeze({});var rt=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),at=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,st=/(^-|-$)/g;function lt(e){return e.replace(at,"-").replace(st,"")}var ct=/(a)(d)/gi,ut=52,pt=function(e){return String.fromCharCode(e+(e>25?39:97))};function dt(e){var t,n="";for(t=Math.abs(e);t>ut;t=t/ut|0)n=pt(t%ut)+n;return(pt(t%ut)+n).replace(ct,"$1-$2")}var ht,ft=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},gt=function(e){return ft(5381,e)};function mt(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function vt(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var yt="function"==typeof Symbol&&Symbol.for,xt=yt?Symbol.for("react.memo"):60115,bt=yt?Symbol.for("react.forward_ref"):60112,_t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},St={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Mt=((ht={})[bt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ht[xt]=St,ht);function Ct(e){return("type"in(t=e)&&t.type.$$typeof)===xt?St:"$$typeof"in e?Mt[e.$$typeof]:_t;var t}var It=Object.defineProperty,Tt=Object.getOwnPropertyNames,At=Object.getOwnPropertySymbols,Dt=Object.getOwnPropertyDescriptor,kt=Object.getPrototypeOf,Et=Object.prototype;function Ot(e,t,n){if("string"!=typeof t){if(Et){var i=kt(t);i&&i!==Et&&Ot(e,i,n)}var o=Tt(t);At&&(o=o.concat(At(t)));for(var r=Ct(e),a=Ct(t),s=0;s<o.length;++s){var l=o[s];if(!(l in wt||n&&n[l]||a&&l in a||r&&l in r)){var c=Dt(t,l);try{It(e,l,c)}catch(e){}}}}return e}function Lt(e){return"function"==typeof e}function Nt(e){return"object"==typeof e&&"styledComponentId"in e}function Pt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Rt(e,t){if(0===e.length)return"";for(var n=e[0],i=1;i<e.length;i++)n+=t?t+e[i]:e[i];return n}function zt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Vt(e,t,n){if(void 0===n&&(n=!1),!n&&!zt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Vt(e[i],t[i]);else if(zt(t))for(var i in t)e[i]=Vt(e[i],t[i]);return e}function Bt(e,t){Object.defineProperty(e,"toString",{value:t})}var jt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],i=[],o=1,r=e.length;o<r;o+=1)i.push(e[o]);return i.forEach((function(e){n=n.replace(/%[a-z]/,e)})),n}function Gt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Ft.apply(void 0,W([jt[e]],t,!1)).trim())}var Ht=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;e>=o;)if((o<<=1)<0)throw Gt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var r=i;r<o;r++)this.groupSizes[r]=0}for(var a=this.indexOfGroup(e+1),s=(r=0,t.length);r<s;r++)this.tag.insertRule(a,t[r])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),i=n+t;this.groupSizes[e]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],i=this.indexOfGroup(e),o=i+n,r=i;r<o;r++)t+="".concat(this.tag.getRule(r)).concat(Ke);return t},e}(),Wt=new Map,Ut=new Map,Yt=1,qt=function(e){if(Wt.has(e))return Wt.get(e);for(;Ut.has(Yt);)Yt++;var t=Yt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw Gt(16,"".concat(t));return Wt.set(e,t),Ut.set(t,e),t},Xt=function(e,t){Yt=t+1,Wt.set(e,t),Ut.set(t,e)},$t="style[".concat(qe,"][").concat($e,'="').concat(Ze,'"]'),Zt=new RegExp("^".concat(qe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Kt=function(e,t,n){for(var i,o=n.split(","),r=0,a=o.length;r<a;r++)(i=o[r])&&e.registerName(t,i)},Jt=function(e,t){for(var n,i=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Ke),o=[],r=0,a=i.length;r<a;r++){var s=i[r].trim();if(s){var l=s.match(Zt);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(Xt(u,c),Kt(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}};var Qt=function(e){var t=document.head,n=e||t,i=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(qe,"]")));return t[t.length-1]}(n),r=void 0!==o?o.nextSibling:null;i.setAttribute(qe,Xe),i.setAttribute($e,Ze);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&i.setAttribute("nonce",a),n.insertBefore(i,r),i},en=function(){function e(e){this.element=Qt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,i=t.length;n<i;n++){var o=t[n];if(o.ownerNode===e)return o}throw Gt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),tn=function(){function e(e){this.element=Qt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),nn=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),on=Je,rn={isServer:!Je,useCSSOMInjection:!Qe},an=function(){function e(e,t,n){void 0===e&&(e=ot),void 0===t&&(t={});var i=this;this.options=H(H({},rn),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Je&&on&&(on=!1,function(e){for(var t=document.querySelectorAll($t),n=0,i=t.length;n<i;n++){var o=t[n];o&&o.getAttribute(qe)!==Xe&&(Jt(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Bt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,i="",o=function(n){var o=function(e){return Ut.get(e)}(n);if(void 0===o)return"continue";var r=e.names.get(o),a=t.getGroup(n);if(void 0===r||0===a.length)return"continue";var s="".concat(qe,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==r&&r.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),i+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Ke)},r=0;r<n;r++)o(r);return i}(i)}))}return e.registerId=function(e){return qt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(H(H({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new nn(n):t?new en(n):new tn(n)}(this.options),new Ht(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(qt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(qt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(qt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),sn=/&/g,ln=/^\s*\/\/.*$/gm;function cn(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=cn(e.children,t)),e}))}var un=new an,pn=function(e){var t,n,i,o=void 0===e?ot:e,r=o.options,a=void 0===r?ot:r,s=o.plugins,l=void 0===s?it:s,c=function(e,i,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===J&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(sn,n).replace(i,c))})),a.prefix&&u.push(Ue),u.push(We);var p=function(e,o,r,s){void 0===o&&(o=""),void 0===r&&(r=""),void 0===s&&(s="&"),t=s,n=o,i=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(ln,""),c=ze(r||o?"".concat(r," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=cn(c,a.namespace));var p,d=[];return He(c,function(e){var t=he(e);return function(n,i,o,r){for(var a="",s=0;s<t;s++)a+=e[s](n,i,o,r)||"";return a}}(u.concat((p=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&p(e)})))),d};return p.hash=l.length?l.reduce((function(e,t){return t.name||Gt(15),ft(e,t.name)}),5381).toString():"",p}(),dn=e.createContext({shouldForwardProp:void 0,styleSheet:un,stylis:pn});function hn(){return o(dn)}dn.Consumer,e.createContext(void 0);var fn=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=pn);var i=n.name+t.hash;e.hasNameForId(n.id,i)||e.insertRules(n.id,i,t(n.rules,i,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Bt(this,(function(){throw Gt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=pn),this.name+e.hash},e}(),gn=function(e){return e>="A"&&e<="Z"};function mn(e){for(var t="",n=0;n<e.length;n++){var i=e[n];if(1===n&&"-"===i&&"-"===e[0])return e;gn(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var vn=function(e){return null==e||!1===e||""===e},yn=function(e){var t,n,i=[];for(var o in e){var r=e[o];e.hasOwnProperty(o)&&!vn(r)&&(Array.isArray(r)&&r.isCss||Lt(r)?i.push("".concat(mn(o),":"),r,";"):zt(r)?i.push.apply(i,W(W(["".concat(o," {")],yn(r),!1),["}"],!1)):i.push("".concat(mn(o),": ").concat((t=o,null==(n=r)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Ye||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return i};function xn(e,t,n,i){if(vn(e))return[];if(Nt(e))return[".".concat(e.styledComponentId)];if(Lt(e)){if(!Lt(r=e)||r.prototype&&r.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof fn||zt(o)||null===o||console.error("".concat(mt(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),xn(o,t,n,i)}var r;return e instanceof fn?n?(e.inject(n,i),[e.getName(i)]):[e]:zt(e)?yn(e):Array.isArray(e)?Array.prototype.concat.apply(it,e.map((function(e){return xn(e,t,n,i)}))):[e.toString()]}var bn=gt(Ze),_n=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Lt(n)&&!Nt(n))return!1}return!0}(e),this.componentId=t,this.baseHash=ft(bn,t),this.baseStyle=n,an.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=Pt(i,this.staticRulesId);else{var o=Rt(xn(this.rules,e,t,n)),r=dt(ft(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,r)){var a=n(o,".".concat(r),void 0,this.componentId);t.insertRules(this.componentId,r,a)}i=Pt(i,r),this.staticRulesId=r}else{for(var s=ft(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==process.env.NODE_ENV&&(s=ft(s,u));else if(u){var p=Rt(xn(u,e,t,n));s=ft(s,p+c),l+=p}}if(l){var d=dt(s>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),i=Pt(i,d)}}return i},e}(),wn=e.createContext(void 0);wn.Consumer;var Sn={},Mn=new Set;function Cn(t,o,r){var a=Nt(t),s=t,l=!vt(t),c=o.attrs,u=void 0===c?it:c,p=o.componentId,d=void 0===p?function(e,t){var n="string"!=typeof e?"sc":lt(e);Sn[n]=(Sn[n]||0)+1;var i="".concat(n,"-").concat(function(e){return dt(gt(e)>>>0)}(Ze+n+Sn[n]));return t?"".concat(t,"-").concat(i):i}(o.displayName,o.parentComponentId):p,h=o.displayName,f=void 0===h?function(e){return vt(e)?"styled.".concat(e):"Styled(".concat(mt(e),")")}(t):h,g=o.displayName&&o.componentId?"".concat(lt(o.displayName),"-").concat(o.componentId):o.componentId||d,m=a&&s.attrs?s.attrs.concat(u).filter(Boolean):u,v=o.shouldForwardProp;if(a&&s.shouldForwardProp){var y=s.shouldForwardProp;if(o.shouldForwardProp){var x=o.shouldForwardProp;v=function(e,t){return y(e,t)&&x(e,t)}}else v=y}var b=new _n(r,g,a?s.componentStyle:void 0);function _(t,o){return function(t,o,r){var a=t.attrs,s=t.componentStyle,l=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,p=t.target,d=e.useContext(wn),h=hn(),f=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&n(u);var g=function(e,t,n){return void 0===n&&(n=ot),e.theme!==n.theme&&e.theme||t||n.theme}(o,d,l)||ot,m=function(e,t,n){for(var i,o=H(H({},t),{className:void 0,theme:n}),r=0;r<e.length;r+=1){var a=Lt(i=e[r])?i(o):i;for(var s in a)o[s]="className"===s?Pt(o[s],a[s]):"style"===s?H(H({},o[s]),a[s]):a[s]}return t.className&&(o.className=Pt(o.className,t.className)),o}(a,o,g),v=m.as||p,y={};for(var x in m)void 0===m[x]||"$"===x[0]||"as"===x||"theme"===x&&m.theme===g||("forwardedAs"===x?y.as=m.forwardedAs:f&&!f(x,v)||(y[x]=m[x],f||"development"!==process.env.NODE_ENV||q(x)||Mn.has(x)||!rt.has(v)||(Mn.add(x),console.warn('styled-components: it looks like an unknown prop "'.concat(x,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var b=function(e,t){var i=hn(),o=e.generateAndInjectStyles(t,i.styleSheet,i.stylis);return"production"!==process.env.NODE_ENV&&n(o),o}(s,m);"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(b);var _=Pt(c,u);return b&&(_+=" "+b),m.className&&(_+=" "+m.className),y[vt(v)&&!rt.has(v)?"class":"className"]=_,y.ref=r,i(v,y)}(w,t,o)}_.displayName=f;var w=e.forwardRef(_);return w.attrs=m,w.componentStyle=b,w.displayName=f,w.shouldForwardProp=v,w.foldedComponentIds=a?Pt(s.foldedComponentIds,s.styledComponentId):"",w.styledComponentId=g,w.target=a?s.target:t,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0,o=t;i<o.length;i++)Vt(e,o[i],!0);return e}({},s.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(nt(f,g),w.warnTooManyClasses=function(e,t){var n={},i=!1;return function(o){if(!i&&(n[o]=!0,Object.keys(n).length>=200)){var r=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(r,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),i=!0,n={}}}}(f,g)),Bt(w,(function(){return".".concat(w.styledComponentId)})),l&&Ot(w,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function In(e,t){for(var n=[e[0]],i=0,o=t.length;i<o;i+=1)n.push(t[i],e[i+1]);return n}var Tn=function(e){return Object.assign(e,{isCss:!0})};function An(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Lt(e)||zt(e))return Tn(xn(In(it,W([e],t,!0))));var i=e;return 0===t.length&&1===i.length&&"string"==typeof i[0]?xn(i):Tn(xn(In(i,t)))}function Dn(e,t,n){if(void 0===n&&(n=ot),!t)throw Gt(1,t);var i=function(i){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];return e(t,n,An.apply(void 0,W([i],o,!1)))};return i.attrs=function(i){return Dn(e,t,H(H({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},i.withConfig=function(i){return Dn(e,t,H(H({},n),i))},i}var kn=function(e){return Dn(Cn,e)},En=kn;rt.forEach((function(e){En[e]=kn(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var On="__sc-".concat(qe,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[On]||(window[On]=0),1===window[On]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[On]+=1);const Ln=En.div`
|
|
11
|
+
height: 100%;
|
|
12
|
+
`;var Nn,Pn,Rn,zn;!function(e){e.NONE="none",e.ADD="add",e.COPY="copy",e.EDIT="edit",e.VIEW="view",e.DELETE="delete",e.FEEDBACK="feedback",e.REVIEW="review",e.BATCH_ADD="batch_add",e.BATCH_OPERATE="batch_operate",e.AUTHORIZED="authorized"}(Nn||(Nn={})),function(e){e.INDICATOR="INDICATOR",e.INDICATOR_AREA="INDICATOR_AREA",e.AREA_CHART="AREA_CHART",e.LINE_CHART="LINE_CHART",e.COLUMN_CHART="COLUMN_CHART",e.STACK_COLUMN_CHART="STACK_COLUMN_CHART",e.BAR_CHART="BAR_CHART",e.DUAL_LINE_BAR_CHART="DUAL_LINE_COLUMN_CHART",e.FUNNEL_CHART="FUNNEL_CHART",e.PIE_CHART="PIE_CHART",e.PIE_CHART_RESERVE="PIE_CHART_RESERVE",e.CYCLE_CHART="CYCLE_CHART",e.RADAR_CHART="RADAR_CHART",e.RADAR_CHART_RESERVE="RADAR_CHART_RESERVE",e.CUSTOM_CARD="CUSTOM_CARD"}(Pn||(Pn={})),function(e){e.PENDING="PENDING",e.CREATE="CREATE",e.COMPLETE="COMPLETE"}(Rn||(Rn={})),function(e){e[e.MINI_AREA=0]="MINI_AREA",e[e.AREA=1]="AREA",e[e.DUAL_LINE_BAR=2]="DUAL_LINE_BAR",e[e.STACK_DUAL_LINE_BAR=3]="STACK_DUAL_LINE_BAR",e[e.COLUMN=4]="COLUMN",e[e.STACK_COLUMN=5]="STACK_COLUMN",e[e.LINE=6]="LINE",e[e.BAR=7]="BAR",e[e.FUNNEL=8]="FUNNEL",e[e.PIE=9]="PIE",e[e.CYCLE=10]="CYCLE",e[e.RADAR=11]="RADAR"}(zn||(zn={}));const Vn=["#3D84FF","#00DCF0","#FCBC26","#00DB75","#BDB8FF","#40B4FF","#FFA101","#90ABE0","#6EE67A","#6B84FF","#FA6B69"],Bn={grid:{top:24,left:0,right:12,bottom:32,containLabel:!0},color:Vn,legend:{itemWidth:10,itemHeight:10,bottom:0,type:"scroll",icon:"circle"}};function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jn.apply(this,arguments)}function Fn(e,t){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fn(e,t)}function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gn(e)}function Hn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hn=function(){return!!e})()}function Wn(e){var t="function"==typeof Map?new Map:void 0;return Wn=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Hn())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var o=new(e.bind.apply(e,i));return n&&Fn(o,n.prototype),o}(e,arguments,Gn(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fn(n,e)},Wn(e)}var Un={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found and no default was provided.\n\n",75:"important requires a valid style object, got a %s instead.\n\n",76:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",77:'remToPx expects a value in "rem" but you provided it in "%s".\n\n',78:'base must be set in "px" or "%" but you set it in "%s".\n'};function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i,o=t[0],r=[];for(i=1;i<t.length;i+=1)r.push(t[i]);return r.forEach((function(e){o=o.replace(/%[a-z]/,e)})),o}var qn=function(e){var t,n;function i(t){var n;if("production"===process.env.NODE_ENV)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this;else{for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];n=e.call(this,Yn.apply(void 0,[Un[t]].concat(o)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,Fn(t,n),i}(Wn(Error));function Xn(e){return Math.round(255*e)}function $n(e,t,n){return Xn(e)+","+Xn(t)+","+Xn(n)}function Zn(e,t,n,i){if(void 0===i&&(i=$n),0===t)return i(n,n,n);var o=(e%360+360)%360/60,r=(1-Math.abs(2*n-1))*t,a=r*(1-Math.abs(o%2-1)),s=0,l=0,c=0;o>=0&&o<1?(s=r,l=a):o>=1&&o<2?(s=a,l=r):o>=2&&o<3?(l=r,c=a):o>=3&&o<4?(l=a,c=r):o>=4&&o<5?(s=a,c=r):o>=5&&o<6&&(s=r,c=a);var u=n-r/2;return i(s+u,l+u,c+u)}var Kn={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var Jn=/^#[a-fA-F0-9]{6}$/,Qn=/^#[a-fA-F0-9]{8}$/,ei=/^#[a-fA-F0-9]{3}$/,ti=/^#[a-fA-F0-9]{4}$/,ni=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ii=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,oi=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ri=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function ai(e){if("string"!=typeof e)throw new qn(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Kn[t]?"#"+Kn[t]:e}(e);if(t.match(Jn))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Qn)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(ei))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(ti)){var i=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:i}}var o=ni.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var r=ii.exec(t.substring(0,50));if(r)return{red:parseInt(""+r[1],10),green:parseInt(""+r[2],10),blue:parseInt(""+r[3],10),alpha:parseFloat(""+r[4])>1?parseFloat(""+r[4])/100:parseFloat(""+r[4])};var a=oi.exec(t);if(a){var s="rgb("+Zn(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=ni.exec(s);if(!l)throw new qn(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=ri.exec(t.substring(0,50));if(c){var u="rgb("+Zn(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",p=ni.exec(u);if(!p)throw new qn(4,t,u);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new qn(5)}function si(e){return function(e){var t,n=e.red/255,i=e.green/255,o=e.blue/255,r=Math.max(n,i,o),a=Math.min(n,i,o),s=(r+a)/2;if(r===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l=r-a,c=s>.5?l/(2-r-a):l/(r+a);switch(r){case n:t=(i-o)/l+(i<o?6:0);break;case i:t=(o-n)/l+2;break;default:t=(n-i)/l+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:c,lightness:s,alpha:e.alpha}:{hue:t,saturation:c,lightness:s}}(ai(e))}var li=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function ci(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function ui(e){return ci(Math.round(255*e))}function pi(e,t,n){return li("#"+ui(e)+ui(t)+ui(n))}function di(e,t,n){return Zn(e,t,n,pi)}function hi(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return li("#"+ci(e)+ci(t)+ci(n));if("object"==typeof e&&void 0===t&&void 0===n)return li("#"+ci(e.red)+ci(e.green)+ci(e.blue));throw new qn(6)}function fi(e,t,n,i){if("string"==typeof e&&"number"==typeof t){var o=ai(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof i)return i>=1?hi(e,t,n):"rgba("+e+","+t+","+n+","+i+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===i)return e.alpha>=1?hi(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new qn(7)}var gi=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},mi=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},vi=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},yi=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function xi(e){if("object"!=typeof e)throw new qn(8);if(mi(e))return fi(e);if(gi(e))return hi(e);if(yi(e))return function(e,t,n,i){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof i)return i>=1?di(e,t,n):"rgba("+Zn(e,t,n)+","+i+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===i)return e.alpha>=1?di(e.hue,e.saturation,e.lightness):"rgba("+Zn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new qn(2)}(e);if(vi(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return di(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return di(e.hue,e.saturation,e.lightness);throw new qn(1)}(e);throw new qn(8)}function bi(e,t,n){return function(){var i=n.concat(Array.prototype.slice.call(arguments));return i.length>=t?e.apply(this,i):bi(e,t,i)}}function _i(e){return bi(e,e.length,[])}function wi(e,t,n){return Math.max(e,Math.min(t,n))}_i((function(e,t){if("transparent"===t)return t;var n=si(t);return xi(jn({},n,{hue:n.hue+parseFloat(e)}))})),_i((function(e,t){if("transparent"===t)return t;var n=si(t);return xi(jn({},n,{lightness:wi(0,1,n.lightness-parseFloat(e))}))})),_i((function(e,t){if("transparent"===t)return t;var n=si(t);return xi(jn({},n,{saturation:wi(0,1,n.saturation-parseFloat(e))}))})),_i((function(e,t){if("transparent"===t)return t;var n=si(t);return xi(jn({},n,{lightness:wi(0,1,n.lightness+parseFloat(e))}))}));var Si=_i((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var i=ai(t),o=jn({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),r=ai(n),a=jn({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),s=o.alpha-a.alpha,l=2*parseFloat(e)-1,c=((l*s==-1?l:l+s)/(1+l*s)+1)/2,u=1-c;return fi({red:Math.floor(o.red*c+a.red*u),green:Math.floor(o.green*c+a.green*u),blue:Math.floor(o.blue*c+a.blue*u),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})})),Mi=Si;_i((function(e,t){if("transparent"===t)return t;var n=ai(t);return fi(jn({},n,{alpha:wi(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))})),_i((function(e,t){if("transparent"===t)return t;var n=si(t);return xi(jn({},n,{saturation:wi(0,1,n.saturation+parseFloat(e))}))})),_i((function(e,t){return"transparent"===t?t:xi(jn({},si(t),{hue:parseFloat(e)}))})),_i((function(e,t){return"transparent"===t?t:xi(jn({},si(t),{lightness:parseFloat(e)}))})),_i((function(e,t){return"transparent"===t?t:xi(jn({},si(t),{saturation:parseFloat(e)}))})),_i((function(e,t){return"transparent"===t?t:Mi(parseFloat(e),"rgb(0, 0, 0)",t)})),_i((function(e,t){return"transparent"===t?t:Mi(parseFloat(e),"rgb(255, 255, 255)",t)})),_i((function(e,t){if("transparent"===t)return t;var n=ai(t);return fi(jn({},n,{alpha:wi(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}));var Ci=function(e){try{return!!e()}catch(e){return!0}},Ii=!Ci((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Ti=Ii,Ai=Function.prototype,Di=Ai.call,ki=Ti&&Ai.bind.bind(Di,Di),Ei=Ti?ki:function(e){return function(){return Di.apply(e,arguments)}},Oi=Ei,Li=Oi({}.toString),Ni=Oi("".slice),Pi=function(e){return Ni(Li(e),8,-1)},Ri=Ci,zi=Pi,Vi=Object,Bi=Ei("".split),ji=Ri((function(){return!Vi("z").propertyIsEnumerable(0)}))?function(e){return"String"==zi(e)?Bi(e,""):Vi(e)}:Vi,Fi=function(e){return null==e},Gi=Fi,Hi=TypeError,Wi=function(e){if(Gi(e))throw Hi("Can't call method on "+e);return e},Ui=ji,Yi=Wi,qi=function(e){return Ui(Yi(e))},Xi=function(e){return e&&e.Math==Math&&e},$i=Xi("object"==typeof globalThis&&globalThis)||Xi("object"==typeof window&&window)||Xi("object"==typeof self&&self)||Xi("object"==typeof L&&L)||function(){return this}()||L||Function("return this")(),Zi={exports:{}},Ki=$i,Ji=Object.defineProperty,Qi=function(e,t){try{Ji(Ki,e,{value:t,configurable:!0,writable:!0})}catch(n){Ki[e]=t}return t},eo=Qi,to="__core-js_shared__",no=$i[to]||eo(to,{}),io=no;(Zi.exports=function(e,t){return io[e]||(io[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"});var oo,ro,ao=Zi.exports,so=Wi,lo=Object,co=function(e){return lo(so(e))},uo=co,po=Ei({}.hasOwnProperty),ho=Object.hasOwn||function(e,t){return po(uo(e),t)},fo=Ei,go=0,mo=Math.random(),vo=fo(1..toString),yo=function(e){return"Symbol("+(void 0===e?"":e)+")_"+vo(++go+mo,36)},xo=$i,bo="undefined"!=typeof navigator&&String(navigator.userAgent)||"",_o=xo.process,wo=xo.Deno,So=_o&&_o.versions||wo&&wo.version,Mo=So&&So.v8;Mo&&(ro=(oo=Mo.split("."))[0]>0&&oo[0]<4?1:+(oo[0]+oo[1])),!ro&&bo&&(!(oo=bo.match(/Edge\/(\d+)/))||oo[1]>=74)&&(oo=bo.match(/Chrome\/(\d+)/))&&(ro=+oo[1]);var Co=ro,Io=Co,To=Ci,Ao=$i.String,Do=!!Object.getOwnPropertySymbols&&!To((function(){var e=Symbol();return!Ao(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Io&&Io<41})),ko=Do&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Eo=ao,Oo=ho,Lo=yo,No=Do,Po=ko,Ro=$i.Symbol,zo=Eo("wks"),Vo=Po?Ro.for||Ro:Ro&&Ro.withoutSetter||Lo,Bo=function(e){return Oo(zo,e)||(zo[e]=No&&Oo(Ro,e)?Ro[e]:Vo("Symbol."+e)),zo[e]},jo="object"==typeof document&&document.all,Fo={all:jo,IS_HTMLDDA:void 0===jo&&void 0!==jo},Go=Fo.all,Ho=Fo.IS_HTMLDDA?function(e){return"function"==typeof e||e===Go}:function(e){return"function"==typeof e},Wo=Ho,Uo=Fo.all,Yo=Fo.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Wo(e)||e===Uo}:function(e){return"object"==typeof e?null!==e:Wo(e)},qo=Yo,Xo=String,$o=TypeError,Zo=function(e){if(qo(e))return e;throw $o(Xo(e)+" is not an object")},Ko={},Jo=!Ci((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Qo=Jo&&Ci((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),er={},tr=Yo,nr=$i.document,ir=tr(nr)&&tr(nr.createElement),or=function(e){return ir?nr.createElement(e):{}},rr=or,ar=!Jo&&!Ci((function(){return 7!=Object.defineProperty(rr("div"),"a",{get:function(){return 7}}).a})),sr=Ii,lr=Function.prototype.call,cr=sr?lr.bind(lr):function(){return lr.apply(lr,arguments)},ur=$i,pr=Ho,dr=function(e,t){return arguments.length<2?(n=ur[e],pr(n)?n:void 0):ur[e]&&ur[e][t];var n},hr=Ei({}.isPrototypeOf),fr=dr,gr=Ho,mr=hr,vr=Object,yr=ko?function(e){return"symbol"==typeof e}:function(e){var t=fr("Symbol");return gr(t)&&mr(t.prototype,vr(e))},xr=String,br=function(e){try{return xr(e)}catch(e){return"Object"}},_r=Ho,wr=br,Sr=TypeError,Mr=function(e){if(_r(e))return e;throw Sr(wr(e)+" is not a function")},Cr=Mr,Ir=Fi,Tr=function(e,t){var n=e[t];return Ir(n)?void 0:Cr(n)},Ar=cr,Dr=Ho,kr=Yo,Er=TypeError,Or=cr,Lr=Yo,Nr=yr,Pr=Tr,Rr=function(e,t){var n,i;if("string"===t&&Dr(n=e.toString)&&!kr(i=Ar(n,e)))return i;if(Dr(n=e.valueOf)&&!kr(i=Ar(n,e)))return i;if("string"!==t&&Dr(n=e.toString)&&!kr(i=Ar(n,e)))return i;throw Er("Can't convert object to primitive value")},zr=TypeError,Vr=Bo("toPrimitive"),Br=function(e,t){if(!Lr(e)||Nr(e))return e;var n,i=Pr(e,Vr);if(i){if(void 0===t&&(t="default"),n=Or(i,e,t),!Lr(n)||Nr(n))return n;throw zr("Can't convert object to primitive value")}return void 0===t&&(t="number"),Rr(e,t)},jr=yr,Fr=function(e){var t=Br(e,"string");return jr(t)?t:t+""},Gr=Jo,Hr=ar,Wr=Qo,Ur=Zo,Yr=Fr,qr=TypeError,Xr=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,Zr="enumerable",Kr="configurable",Jr="writable";er.f=Gr?Wr?function(e,t,n){if(Ur(e),t=Yr(t),Ur(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Jr in n&&!n[Jr]){var i=$r(e,t);i&&i[Jr]&&(e[t]=n.value,n={configurable:Kr in n?n[Kr]:i[Kr],enumerable:Zr in n?n[Zr]:i[Zr],writable:!1})}return Xr(e,t,n)}:Xr:function(e,t,n){if(Ur(e),t=Yr(t),Ur(n),Hr)try{return Xr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw qr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Qr=Math.ceil,ea=Math.floor,ta=Math.trunc||function(e){var t=+e;return(t>0?ea:Qr)(t)},na=ta,ia=function(e){var t=+e;return t!=t||0===t?0:na(t)},oa=ia,ra=Math.max,aa=Math.min,sa=function(e,t){var n=oa(e);return n<0?ra(n+t,0):aa(n,t)},la=ia,ca=Math.min,ua=function(e){return e>0?ca(la(e),9007199254740991):0},pa=function(e){return ua(e.length)},da=qi,ha=sa,fa=pa,ga=function(e){return function(t,n,i){var o,r=da(t),a=fa(r),s=ha(i,a);if(e&&n!=n){for(;a>s;)if((o=r[s++])!=o)return!0}else for(;a>s;s++)if((e||s in r)&&r[s]===n)return e||s||0;return!e&&-1}},ma={includes:ga(!0),indexOf:ga(!1)},va={},ya=ho,xa=qi,ba=ma.indexOf,_a=va,wa=Ei([].push),Sa=function(e,t){var n,i=xa(e),o=0,r=[];for(n in i)!ya(_a,n)&&ya(i,n)&&wa(r,n);for(;t.length>o;)ya(i,n=t[o++])&&(~ba(r,n)||wa(r,n));return r},Ma=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ca=Sa,Ia=Ma,Ta=Object.keys||function(e){return Ca(e,Ia)},Aa=Jo,Da=Qo,ka=er,Ea=Zo,Oa=qi,La=Ta;Ko.f=Aa&&!Da?Object.defineProperties:function(e,t){Ea(e);for(var n,i=Oa(t),o=La(t),r=o.length,a=0;r>a;)ka.f(e,n=o[a++],i[n]);return e};var Na,Pa=dr("document","documentElement"),Ra=yo,za=ao("keys"),Va=function(e){return za[e]||(za[e]=Ra(e))},Ba=Zo,ja=Ko,Fa=Ma,Ga=va,Ha=Pa,Wa=or,Ua="prototype",Ya="script",qa=Va("IE_PROTO"),Xa=function(){},$a=function(e){return"<"+Ya+">"+e+"</"+Ya+">"},Za=function(e){e.write($a("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ka=function(){try{Na=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Ka="undefined"!=typeof document?document.domain&&Na?Za(Na):(t=Wa("iframe"),n="java"+Ya+":",t.style.display="none",Ha.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write($a("document.F=Object")),e.close(),e.F):Za(Na);for(var i=Fa.length;i--;)delete Ka[Ua][Fa[i]];return Ka()};Ga[qa]=!0;var Ja=Object.create||function(e,t){var n;return null!==e?(Xa[Ua]=Ba(e),n=new Xa,Xa[Ua]=null,n[qa]=e):n=Ka(),void 0===t?n:ja.f(n,t)},Qa=Bo,es=Ja,ts=er.f,ns=Qa("unscopables"),is=Array.prototype;null==is[ns]&&ts(is,ns,{configurable:!0,value:es(null)});var os,rs,as,ss=function(e){is[ns][e]=!0},ls={},cs=Ho,us=$i.WeakMap,ps=cs(us)&&/native code/.test(String(us)),ds=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hs=er,fs=ds,gs=Jo?function(e,t,n){return hs.f(e,t,fs(1,n))}:function(e,t,n){return e[t]=n,e},ms=ps,vs=$i,ys=Yo,xs=gs,bs=ho,_s=no,ws=Va,Ss=va,Ms="Object already initialized",Cs=vs.TypeError,Is=vs.WeakMap;if(ms||_s.state){var Ts=_s.state||(_s.state=new Is);Ts.get=Ts.get,Ts.has=Ts.has,Ts.set=Ts.set,os=function(e,t){if(Ts.has(e))throw Cs(Ms);return t.facade=e,Ts.set(e,t),t},rs=function(e){return Ts.get(e)||{}},as=function(e){return Ts.has(e)}}else{var As=ws("state");Ss[As]=!0,os=function(e,t){if(bs(e,As))throw Cs(Ms);return t.facade=e,xs(e,As,t),t},rs=function(e){return bs(e,As)?e[As]:{}},as=function(e){return bs(e,As)}}var Ds={set:os,get:rs,has:as,enforce:function(e){return as(e)?rs(e):os(e,{})},getterFor:function(e){return function(t){var n;if(!ys(t)||(n=rs(t)).type!==e)throw Cs("Incompatible receiver, "+e+" required");return n}}},ks={},Es={},Os={}.propertyIsEnumerable,Ls=Object.getOwnPropertyDescriptor,Ns=Ls&&!Os.call({1:2},1);Es.f=Ns?function(e){var t=Ls(this,e);return!!t&&t.enumerable}:Os;var Ps=Jo,Rs=cr,zs=Es,Vs=ds,Bs=qi,js=Fr,Fs=ho,Gs=ar,Hs=Object.getOwnPropertyDescriptor;ks.f=Ps?Hs:function(e,t){if(e=Bs(e),t=js(t),Gs)try{return Hs(e,t)}catch(e){}if(Fs(e,t))return Vs(!Rs(zs.f,e,t),e[t])};var Ws={exports:{}},Us=Jo,Ys=ho,qs=Function.prototype,Xs=Us&&Object.getOwnPropertyDescriptor,$s=Ys(qs,"name"),Zs={EXISTS:$s,PROPER:$s&&"something"===function(){}.name,CONFIGURABLE:$s&&(!Us||Us&&Xs(qs,"name").configurable)},Ks=Ho,Js=no,Qs=Ei(Function.toString);Ks(Js.inspectSource)||(Js.inspectSource=function(e){return Qs(e)});var el=Js.inspectSource,tl=Ei,nl=Ci,il=Ho,ol=ho,rl=Jo,al=Zs.CONFIGURABLE,sl=el,ll=Ds.enforce,cl=Ds.get,ul=String,pl=Object.defineProperty,dl=tl("".slice),hl=tl("".replace),fl=tl([].join),gl=rl&&!nl((function(){return 8!==pl((function(){}),"length",{value:8}).length})),ml=String(String).split("String"),vl=Ws.exports=function(e,t,n){"Symbol("===dl(ul(t),0,7)&&(t="["+hl(ul(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!ol(e,"name")||al&&e.name!==t)&&(rl?pl(e,"name",{value:t,configurable:!0}):e.name=t),gl&&n&&ol(n,"arity")&&e.length!==n.arity&&pl(e,"length",{value:n.arity});try{n&&ol(n,"constructor")&&n.constructor?rl&&pl(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=ll(e);return ol(i,"source")||(i.source=fl(ml,"string"==typeof t?t:"")),e};Function.prototype.toString=vl((function(){return il(this)&&cl(this).source||sl(this)}),"toString");var yl=Ws.exports,xl=Ho,bl=er,_l=yl,wl=Qi,Sl=function(e,t,n,i){i||(i={});var o=i.enumerable,r=void 0!==i.name?i.name:t;if(xl(n)&&_l(n,r,i),i.global)o?e[t]=n:wl(t,n);else{try{i.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:bl.f(e,t,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return e},Ml={},Cl=Sa,Il=Ma.concat("length","prototype");Ml.f=Object.getOwnPropertyNames||function(e){return Cl(e,Il)};var Tl={};Tl.f=Object.getOwnPropertySymbols;var Al,Dl,kl,El=dr,Ol=Ml,Ll=Tl,Nl=Zo,Pl=Ei([].concat),Rl=El("Reflect","ownKeys")||function(e){var t=Ol.f(Nl(e)),n=Ll.f;return n?Pl(t,n(e)):t},zl=ho,Vl=Rl,Bl=ks,jl=er,Fl=Ci,Gl=Ho,Hl=/#|\.prototype\./,Wl=function(e,t){var n=Yl[Ul(e)];return n==Xl||n!=ql&&(Gl(t)?Fl(t):!!t)},Ul=Wl.normalize=function(e){return String(e).replace(Hl,".").toLowerCase()},Yl=Wl.data={},ql=Wl.NATIVE="N",Xl=Wl.POLYFILL="P",$l=Wl,Zl=$i,Kl=ks.f,Jl=gs,Ql=Sl,ec=Qi,tc=function(e,t,n){for(var i=Vl(t),o=jl.f,r=Bl.f,a=0;a<i.length;a++){var s=i[a];zl(e,s)||n&&zl(n,s)||o(e,s,r(t,s))}},nc=$l,ic=function(e,t){var n,i,o,r,a,s=e.target,l=e.global,c=e.stat;if(n=l?Zl:c?Zl[s]||ec(s,{}):(Zl[s]||{}).prototype)for(i in t){if(r=t[i],o=e.dontCallGetSet?(a=Kl(n,i))&&a.value:n[i],!nc(l?i:s+(c?".":"#")+i,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;tc(r,o)}(e.sham||o&&o.sham)&&Jl(r,"sham",!0),Ql(n,i,r,e)}},oc=!Ci((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),rc=ho,ac=Ho,sc=co,lc=oc,cc=Va("IE_PROTO"),uc=Object,pc=uc.prototype,dc=lc?uc.getPrototypeOf:function(e){var t=sc(e);if(rc(t,cc))return t[cc];var n=t.constructor;return ac(n)&&t instanceof n?n.prototype:t instanceof uc?pc:null},hc=Ci,fc=Ho,gc=Yo,mc=dc,vc=Sl,yc=Bo("iterator"),xc=!1;[].keys&&("next"in(kl=[].keys())?(Dl=mc(mc(kl)))!==Object.prototype&&(Al=Dl):xc=!0);var bc=!gc(Al)||hc((function(){var e={};return Al[yc].call(e)!==e}));bc&&(Al={}),fc(Al[yc])||vc(Al,yc,(function(){return this}));var _c={IteratorPrototype:Al,BUGGY_SAFARI_ITERATORS:xc},wc=er.f,Sc=ho,Mc=Bo("toStringTag"),Cc=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Sc(e,Mc)&&wc(e,Mc,{configurable:!0,value:t})},Ic=_c.IteratorPrototype,Tc=Ja,Ac=ds,Dc=Cc,kc=ls,Ec=function(){return this},Oc=Ei,Lc=Mr,Nc=Ho,Pc=String,Rc=TypeError,zc=function(e,t,n){try{return Oc(Lc(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},Vc=Zo,Bc=function(e){if("object"==typeof e||Nc(e))return e;throw Rc("Can't set "+Pc(e)+" as a prototype")},jc=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=zc(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return Vc(n),Bc(i),t?e(n,i):n.__proto__=i,n}}():void 0),Fc=ic,Gc=cr,Hc=Ho,Wc=function(e,t,n,i){var o=t+" Iterator";return e.prototype=Tc(Ic,{next:Ac(+!i,n)}),Dc(e,o,!1),kc[o]=Ec,e},Uc=dc,Yc=jc,qc=Cc,Xc=gs,$c=Sl,Zc=ls,Kc=Zs.PROPER,Jc=Zs.CONFIGURABLE,Qc=_c.IteratorPrototype,eu=_c.BUGGY_SAFARI_ITERATORS,tu=Bo("iterator"),nu="keys",iu="values",ou="entries",ru=function(){return this},au=function(e,t,n,i,o,r,a){Wc(n,t,i);var s,l,c,u=function(e){if(e===o&&g)return g;if(!eu&&e in h)return h[e];switch(e){case nu:case iu:case ou:return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",d=!1,h=e.prototype,f=h[tu]||h["@@iterator"]||o&&h[o],g=!eu&&f||u(o),m="Array"==t&&h.entries||f;if(m&&(s=Uc(m.call(new e)))!==Object.prototype&&s.next&&(Uc(s)!==Qc&&(Yc?Yc(s,Qc):Hc(s[tu])||$c(s,tu,ru)),qc(s,p,!0)),Kc&&o==iu&&f&&f.name!==iu&&(Jc?Xc(h,"name",iu):(d=!0,g=function(){return Gc(f,this)})),o)if(l={values:u(iu),keys:r?g:u(nu),entries:u(ou)},a)for(c in l)(eu||d||!(c in h))&&$c(h,c,l[c]);else Fc({target:t,proto:!0,forced:eu||d},l);return h[tu]!==g&&$c(h,tu,g,{name:o}),Zc[t]=g,l},su=function(e,t){return{value:e,done:t}},lu=qi,cu=ss,uu=ls,pu=Ds,du=er.f,hu=au,fu=su,gu=Jo,mu="Array Iterator",vu=pu.set,yu=pu.getterFor(mu),xu=hu(Array,"Array",(function(e,t){vu(this,{type:mu,target:lu(e),index:0,kind:t})}),(function(){var e=yu(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,fu(void 0,!0)):fu("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values"),bu=uu.Arguments=uu.Array;if(cu("keys"),cu("values"),cu("entries"),gu&&"values"!==bu.name)try{du(bu,"name",{value:"values"})}catch(Bae){}var _u=Pi,wu=Ei,Su=function(e){if("Function"===_u(e))return wu(e)},Mu=Mr,Cu=Ii,Iu=Su(Su.bind),Tu=function(e,t){return Mu(e),void 0===t?e:Cu?Iu(e,t):function(){return e.apply(t,arguments)}},Au=ls,Du=Bo("iterator"),ku=Array.prototype,Eu={};Eu[Bo("toStringTag")]="z";var Ou="[object z]"===String(Eu),Lu=Ou,Nu=Ho,Pu=Pi,Ru=Bo("toStringTag"),zu=Object,Vu="Arguments"==Pu(function(){return arguments}()),Bu=Lu?Pu:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=zu(e),Ru))?n:Vu?Pu(t):"Object"==(i=Pu(t))&&Nu(t.callee)?"Arguments":i},ju=Bu,Fu=Tr,Gu=Fi,Hu=ls,Wu=Bo("iterator"),Uu=function(e){if(!Gu(e))return Fu(e,Wu)||Fu(e,"@@iterator")||Hu[ju(e)]},Yu=cr,qu=Mr,Xu=Zo,$u=br,Zu=Uu,Ku=TypeError,Ju=cr,Qu=Zo,ep=Tr,tp=Tu,np=cr,ip=Zo,op=br,rp=function(e){return void 0!==e&&(Au.Array===e||ku[Du]===e)},ap=pa,sp=hr,lp=function(e,t){var n=arguments.length<2?Zu(e):t;if(qu(n))return Xu(Yu(n,e));throw Ku($u(e)+" is not iterable")},cp=Uu,up=function(e,t,n){var i,o;Qu(e);try{if(!(i=ep(e,"return"))){if("throw"===t)throw n;return n}i=Ju(i,e)}catch(e){o=!0,i=e}if("throw"===t)throw n;if(o)throw i;return Qu(i),n},pp=TypeError,dp=function(e,t){this.stopped=e,this.result=t},hp=dp.prototype,fp=function(e,t,n){var i,o,r,a,s,l,c,u=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=tp(t,u),m=function(e){return i&&up(i,"normal",e),new dp(!0,e)},v=function(e){return p?(ip(e),f?g(e[0],e[1],m):g(e[0],e[1])):f?g(e,m):g(e)};if(d)i=e.iterator;else if(h)i=e;else{if(!(o=cp(e)))throw pp(op(e)+" is not iterable");if(rp(o)){for(r=0,a=ap(e);a>r;r++)if((s=v(e[r]))&&sp(hp,s))return s;return new dp(!1)}i=lp(e,o)}for(l=d?e.next:i.next;!(c=np(l,i)).done;){try{s=v(c.value)}catch(e){up(i,"throw",e)}if("object"==typeof s&&s&&sp(hp,s))return s}return new dp(!1)},gp=Fr,mp=er,vp=ds,yp=function(e,t,n){var i=gp(t);i in e?mp.f(e,i,vp(0,n)):e[i]=n},xp=fp,bp=yp;ic({target:"Object",stat:!0},{fromEntries:function(e){var t={};return xp(e,(function(e,n){bp(t,e,n)}),{AS_ENTRIES:!0}),t}});var _p=$i;_p.Object.fromEntries;var wp=or("span").classList,Sp=wp&&wp.constructor&&wp.constructor.prototype,Mp=Sp===Object.prototype?void 0:Sp,Cp=$i,Ip={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Tp=Mp,Ap=xu,Dp=gs,kp=Bo,Ep=kp("iterator"),Op=kp("toStringTag"),Lp=Ap.values,Np=function(e,t){if(e){if(e[Ep]!==Lp)try{Dp(e,Ep,Lp)}catch(t){e[Ep]=Lp}if(e[Op]||Dp(e,Op,t),Ip[t])for(var n in Ap)if(e[n]!==Ap[n])try{Dp(e,n,Ap[n])}catch(t){e[n]=Ap[n]}}};for(var Pp in Ip)Np(Cp[Pp]&&Cp[Pp].prototype,Pp);Np(Tp,"DOMTokenList");var Rp=Bu,zp=String,Vp=function(e){if("Symbol"===Rp(e))throw TypeError("Cannot convert a Symbol value to a string");return zp(e)},Bp=function(e,t){return void 0===e?arguments.length<2?"":t:Vp(e)},jp=Jo,Fp=Ci,Gp=Zo,Hp=Ja,Wp=Bp,Up=Error.prototype.toString,Yp=Fp((function(){if(jp){var e=Hp(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==Up.call(e))return!0}return"2: 1"!==Up.call({message:1,name:2})||"Error"!==Up.call({})}))?function(){var e=Gp(this),t=Wp(e.name,"Error"),n=Wp(e.message);return t?n?t+": "+n:t:n}:Up,qp=Sl,Xp=Yp,$p=Error.prototype;$p.toString!==Xp&&qp($p,"toString",Xp);var Zp=co,Kp=Ta;ic({target:"Object",stat:!0,forced:Ci((function(){Kp(1)}))},{keys:function(e){return Kp(Zp(e))}});var Jp=Bu,Qp=Ou?{}.toString:function(){return"[object "+Jp(this)+"]"};Ou||Sl(Object.prototype,"toString",Qp,{unsafe:!0});var ed={exports:{}},td={},nd=sa,id=pa,od=yp,rd=Array,ad=Math.max,sd=Pi,ld=qi,cd=Ml.f,ud=function(e,t,n){for(var i=id(e),o=nd(t,i),r=nd(void 0===n?i:n,i),a=rd(ad(r-o,0)),s=0;o<r;o++,s++)od(a,s,e[o]);return a.length=s,a},pd="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];td.f=function(e){return pd&&"Window"==sd(e)?function(e){try{return cd(e)}catch(e){return ud(pd)}}(e):cd(ld(e))};var dd=Ci((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),hd=Ci,fd=Yo,gd=Pi,md=dd,vd=Object.isExtensible,yd=hd((function(){vd(1)}))||md?function(e){return!!fd(e)&&((!md||"ArrayBuffer"!=gd(e))&&(!vd||vd(e)))}:vd,xd=!Ci((function(){return Object.isExtensible(Object.preventExtensions({}))})),bd=ic,_d=Ei,wd=va,Sd=Yo,Md=ho,Cd=er.f,Id=Ml,Td=td,Ad=yd,Dd=xd,kd=!1,Ed=yo("meta"),Od=0,Ld=function(e){Cd(e,Ed,{value:{objectID:"O"+Od++,weakData:{}}})},Nd=ed.exports={enable:function(){Nd.enable=function(){},kd=!0;var e=Id.f,t=_d([].splice),n={};n[Ed]=1,e(n).length&&(Id.f=function(n){for(var i=e(n),o=0,r=i.length;o<r;o++)if(i[o]===Ed){t(i,o,1);break}return i},bd({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Td.f}))},fastKey:function(e,t){if(!Sd(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Md(e,Ed)){if(!Ad(e))return"F";if(!t)return"E";Ld(e)}return e[Ed].objectID},getWeakData:function(e,t){if(!Md(e,Ed)){if(!Ad(e))return!0;if(!t)return!1;Ld(e)}return e[Ed].weakData},onFreeze:function(e){return Dd&&kd&&Ad(e)&&!Md(e,Ed)&&Ld(e),e}};wd[Ed]=!0;var Pd=ed.exports,Rd=hr,zd=TypeError,Vd=function(e,t){if(Rd(t,e))return e;throw zd("Incorrect invocation")},Bd=Bo("iterator"),jd=!1;try{var Fd=0,Gd={next:function(){return{done:!!Fd++}},return:function(){jd=!0}};Gd[Bd]=function(){return this},Array.from(Gd,(function(){throw 2}))}catch(Bae){}var Hd=Ho,Wd=Yo,Ud=jc,Yd=function(e,t,n){var i,o;return Ud&&Hd(i=t.constructor)&&i!==n&&Wd(o=i.prototype)&&o!==n.prototype&&Ud(e,o),e},qd=ic,Xd=$i,$d=Ei,Zd=$l,Kd=Sl,Jd=Pd,Qd=fp,eh=Vd,th=Ho,nh=Fi,ih=Yo,oh=Ci,rh=function(e,t){if(!t&&!jd)return!1;var n=!1;try{var i={};i[Bd]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n},ah=Cc,sh=Yd,lh=function(e,t,n){var i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),r=i?"set":"add",a=Xd[e],s=a&&a.prototype,l=a,c={},u=function(e){var t=$d(s[e]);Kd(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!ih(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!ih(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!ih(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Zd(e,!th(a)||!(o||s.forEach&&!oh((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,i,r),Jd.enable();else if(Zd(e,!0)){var p=new l,d=p[r](o?{}:-0,1)!=p,h=oh((function(){p.has(1)})),f=rh((function(e){new a(e)})),g=!o&&oh((function(){for(var e=new a,t=5;t--;)e[r](t,t);return!e.has(-0)}));f||((l=t((function(e,t){eh(e,s);var n=sh(new a,e,l);return nh(t)||Qd(t,n[r],{that:n,AS_ENTRIES:i}),n}))).prototype=s,s.constructor=l),(h||g)&&(u("delete"),u("has"),i&&u("get")),(g||d)&&u(r),o&&s.clear&&delete s.clear}return c[e]=l,qd({global:!0,constructor:!0,forced:l!=a},c),ah(l,e),o||n.setStrong(l,e,i),l},ch=yl,uh=er,ph=function(e,t,n){return n.get&&ch(n.get,t,{getter:!0}),n.set&&ch(n.set,t,{setter:!0}),uh.f(e,t,n)},dh=Sl,hh=dr,fh=ph,gh=Jo,mh=Bo("species"),vh=Ja,yh=ph,xh=function(e,t,n){for(var i in t)dh(e,i,t[i],n);return e},bh=Tu,_h=Vd,wh=Fi,Sh=fp,Mh=au,Ch=su,Ih=function(e){var t=hh(e);gh&&t&&!t[mh]&&fh(t,mh,{configurable:!0,get:function(){return this}})},Th=Jo,Ah=Pd.fastKey,Dh=Ds.set,kh=Ds.getterFor,Eh={getConstructor:function(e,t,n,i){var o=e((function(e,o){_h(e,r),Dh(e,{type:t,index:vh(null),first:void 0,last:void 0,size:0}),Th||(e.size=0),wh(o)||Sh(o,e[i],{that:e,AS_ENTRIES:n})})),r=o.prototype,a=kh(t),s=function(e,t,n){var i,o,r=a(e),s=l(e,t);return s?s.value=n:(r.last=s={index:o=Ah(t,!0),key:t,value:n,previous:i=r.last,next:void 0,removed:!1},r.first||(r.first=s),i&&(i.next=s),Th?r.size++:e.size++,"F"!==o&&(r.index[o]=s)),e},l=function(e,t){var n,i=a(e),o=Ah(t);if("F"!==o)return i.index[o];for(n=i.first;n;n=n.next)if(n.key==t)return n};return xh(r,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Th?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),i=l(t,e);if(i){var o=i.next,r=i.previous;delete n.index[i.index],i.removed=!0,r&&(r.next=o),o&&(o.previous=r),n.first==i&&(n.first=o),n.last==i&&(n.last=r),Th?n.size--:t.size--}return!!i},forEach:function(e){for(var t,n=a(this),i=bh(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),xh(r,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),Th&&yh(r,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var i=t+" Iterator",o=kh(t),r=kh(i);Mh(e,t,(function(e,t){Dh(this,{type:i,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=r(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Ch("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,Ch(void 0,!0))}),n?"entries":"values",!n,!0),Ih(t)}};lh("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Eh),lh("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Eh);var Oh="undefined"!=typeof process&&"process"==Pi(process),Lh=Oh,Nh={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},Ph=Error,Rh=Ei("".replace),zh=String(Ph("zxcasd").stack),Vh=/\n\s*at [^:]*:[^\n]*/,Bh=Vh.test(zh),jh=function(e,t){if(Bh&&"string"==typeof e&&!Ph.prepareStackTrace)for(;t--;)e=Rh(e,Vh,"");return e},Fh=ic,Gh=function(e){try{if(Lh)return Function('return require("'+e+'")')()}catch(e){}},Hh=dr,Wh=Ci,Uh=Ja,Yh=ds,qh=er.f,Xh=Sl,$h=ph,Zh=ho,Kh=Vd,Jh=Zo,Qh=Yp,ef=Bp,tf=Nh,nf=jh,of=Ds,rf=Jo,af="DOMException",sf="DATA_CLONE_ERR",lf=Hh("Error"),cf=Hh(af)||function(){try{(new(Hh("MessageChannel")||Gh("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name==sf&&25==e.code)return e.constructor}}(),uf=cf&&cf.prototype,pf=lf.prototype,df=of.set,hf=of.getterFor(af),ff="stack"in lf(af),gf=function(e){return Zh(tf,e)&&tf[e].m?tf[e].c:0},mf=function(){Kh(this,vf);var e=arguments.length,t=ef(e<1?void 0:arguments[0]),n=ef(e<2?void 0:arguments[1],"Error"),i=gf(n);if(df(this,{type:af,name:n,message:t,code:i}),rf||(this.name=n,this.message=t,this.code=i),ff){var o=lf(t);o.name=af,qh(this,"stack",Yh(1,nf(o.stack,1)))}},vf=mf.prototype=Uh(pf),yf=function(e){return{enumerable:!0,configurable:!0,get:e}},xf=function(e){return yf((function(){return hf(this)[e]}))};rf&&($h(vf,"code",xf("code")),$h(vf,"message",xf("message")),$h(vf,"name",xf("name"))),qh(vf,"constructor",Yh(1,mf));var bf=Wh((function(){return!(new cf instanceof lf)})),_f=bf||Wh((function(){return pf.toString!==Qh||"2: 1"!==String(new cf(1,2))})),wf=bf||Wh((function(){return 25!==new cf(1,"DataCloneError").code}));bf||25!==cf[sf]||uf[sf];Fh({global:!0,constructor:!0,forced:bf},{DOMException:bf?mf:cf});var Sf=Hh(af),Mf=Sf.prototype;for(var Cf in _f&&cf===Sf&&Xh(Mf,"toString",Qh),wf&&rf&&cf===Sf&&$h(Mf,"code",yf((function(){return gf(Jh(this).name)}))),tf)if(Zh(tf,Cf)){var If=tf[Cf],Tf=If.s,Af=Yh(6,If.c);Zh(Sf,Tf)||qh(Sf,Tf,Af),Zh(Mf,Tf)||qh(Mf,Tf,Af)}var Df=ic,kf=$i,Ef=dr,Of=ds,Lf=er.f,Nf=ho,Pf=Vd,Rf=Yd,zf=Bp,Vf=Nh,Bf=jh,jf=Jo,Ff="DOMException",Gf=Ef("Error"),Hf=Ef(Ff),Wf=function(){Pf(this,Uf);var e=arguments.length,t=zf(e<1?void 0:arguments[0]),n=zf(e<2?void 0:arguments[1],"Error"),i=new Hf(t,n),o=Gf(t);return o.name=Ff,Lf(i,"stack",Of(1,Bf(o.stack,1))),Rf(i,this,Wf),i},Uf=Wf.prototype=Hf.prototype,Yf="stack"in Gf(Ff),qf="stack"in new Hf(1,2),Xf=Hf&&jf&&Object.getOwnPropertyDescriptor(kf,Ff),$f=!(!Xf||Xf.writable&&Xf.configurable),Zf=Yf&&!$f&&!qf;Df({global:!0,constructor:!0,forced:Zf},{DOMException:Zf?Wf:Hf});var Kf=Ef(Ff),Jf=Kf.prototype;if(Jf.constructor!==Kf)for(var Qf in Lf(Jf,"constructor",Of(1,Kf)),Vf)if(Nf(Vf,Qf)){var eg=Vf[Qf],tg=eg.s;Nf(Kf,tg)||Lf(Kf,tg,Of(6,eg.c))}var ng="DOMException";Cc(dr(ng),ng);var ig=Ei,og=Ci,rg=Ho,ag=Bu,sg=el,lg=function(){},cg=[],ug=dr("Reflect","construct"),pg=/^\s*(?:class|function)\b/,dg=ig(pg.exec),hg=!pg.exec(lg),fg=function(e){if(!rg(e))return!1;try{return ug(lg,cg,e),!0}catch(e){return!1}},gg=function(e){if(!rg(e))return!1;switch(ag(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hg||!!dg(pg,sg(e))}catch(e){return!0}};gg.sham=!0;var mg,vg=!ug||og((function(){var e;return fg(fg.call)||!fg(Object)||!fg((function(){e=!0}))||e}))?gg:fg,yg=TypeError,xg=Zo,bg=cr,_g=ho,wg=hr,Sg=function(){var e=xg(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Mg=RegExp.prototype,Cg=Ei,Ig=Map.prototype,Tg={Map:Map,set:Cg(Ig.set),get:Cg(Ig.get),has:Cg(Ig.has),remove:Cg(Ig.delete),proto:Ig},Ag=Ei,Dg=Set.prototype,kg={Set:Set,add:Ag(Dg.add),has:Ag(Dg.has),remove:Ag(Dg.delete),proto:Dg},Eg=ds,Og=!Ci((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Eg(1,7)),7!==e.stack)})),Lg="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ng=!Lg&&!Oh&&"object"==typeof window&&"object"==typeof document,Pg=Ci,Rg=Co,zg=Ng,Vg=Lg,Bg=Oh,jg=$i.structuredClone,Fg=!!jg&&!Pg((function(){if(Vg&&Rg>92||Bg&&Rg>94||zg&&Rg>97)return!1;var e=new ArrayBuffer(8),t=jg(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength})),Gg=ic,Hg=$i,Wg=dr,Ug=Ei,Yg=Ci,qg=yo,Xg=Ho,$g=vg,Zg=Fi,Kg=Yo,Jg=yr,Qg=fp,em=Zo,tm=Bu,nm=ho,im=yp,om=gs,rm=pa,am=function(e,t){if(e<t)throw yg("Not enough arguments");return e},sm=function(e){var t=e.flags;return void 0!==t||"flags"in Mg||_g(e,"flags")||!wg(Mg,e)?t:bg(Sg,e)},lm=Tg,cm=kg,um=Og,pm=Fg,dm=Hg.Object,hm=Hg.Array,fm=Hg.Date,gm=Hg.Error,mm=Hg.EvalError,vm=Hg.RangeError,ym=Hg.ReferenceError,xm=Hg.SyntaxError,bm=Hg.TypeError,_m=Hg.URIError,wm=Hg.PerformanceMark,Sm=Hg.WebAssembly,Mm=Sm&&Sm.CompileError||gm,Cm=Sm&&Sm.LinkError||gm,Im=Sm&&Sm.RuntimeError||gm,Tm=Wg("DOMException"),Am=lm.Map,Dm=lm.has,km=lm.get,Em=lm.set,Om=cm.Set,Lm=cm.add,Nm=Wg("Object","keys"),Pm=Ug([].push),Rm=Ug((!0).valueOf),zm=Ug(1..valueOf),Vm=Ug("".valueOf),Bm=Ug(fm.prototype.getTime),jm=qg("structuredClone"),Fm="DataCloneError",Gm="Transferring",Hm=function(e){return!Yg((function(){var t=new Hg.Set([7]),n=e(t),i=e(dm(7));return n==t||!n.has(7)||"object"!=typeof i||7!=i}))&&e},Wm=function(e,t){return!Yg((function(){var n=new t,i=e({a:n,b:n});return!(i&&i.a===i.b&&i.a instanceof t&&i.a.stack===n.stack)}))},Um=Hg.structuredClone,Ym=!Wm(Um,gm)||!Wm(Um,Tm)||(mg=Um,!!Yg((function(){var e=mg(new Hg.AggregateError([1],jm,{cause:3}));return"AggregateError"!=e.name||1!=e.errors[0]||e.message!=jm||3!=e.cause}))),qm=!Um&&Hm((function(e){return new wm(jm,{detail:e}).detail})),Xm=Hm(Um)||qm,$m=function(e){throw new Tm("Uncloneable type: "+e,Fm)},Zm=function(e,t){throw new Tm((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",Fm)},Km=function(e,t){return Xm||Zm(t),Xm(e)},Jm=function(e,t,n){if(Dm(t,e))return km(t,e);var i,o,r,a,s,l;if("SharedArrayBuffer"===(n||tm(e)))i=Xm?Xm(e):e;else{var c=Hg.DataView;c||"function"==typeof e.slice||Zm("ArrayBuffer");try{if("function"!=typeof e.slice||e.resizable){o=e.byteLength,r="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,i=new ArrayBuffer(o,r),a=new c(e),s=new c(i);for(l=0;l<o;l++)s.setUint8(l,a.getUint8(l))}else i=e.slice(0)}catch(e){throw new Tm("ArrayBuffer is detached",Fm)}}return Em(t,e,i),i},Qm=function(e,t,n,i,o){var r=Hg[t];return Kg(r)||Zm(t),new r(Jm(e.buffer,o),n,i)},ev=function(e,t,n){this.object=e,this.type=t,this.metadata=n},tv=function(e,t,n){if(Jg(e)&&$m("Symbol"),!Kg(e))return e;if(t){if(Dm(t,e))return km(t,e)}else t=new Am;var i,o,r,a,s,l,c,u,p=tm(e);switch(p){case"Array":r=hm(rm(e));break;case"Object":r={};break;case"Map":r=new Am;break;case"Set":r=new Om;break;case"RegExp":r=new RegExp(e.source,sm(e));break;case"Error":switch(o=e.name){case"AggregateError":r=Wg("AggregateError")([]);break;case"EvalError":r=mm();break;case"RangeError":r=vm();break;case"ReferenceError":r=ym();break;case"SyntaxError":r=xm();break;case"TypeError":r=bm();break;case"URIError":r=_m();break;case"CompileError":r=Mm();break;case"LinkError":r=Cm();break;case"RuntimeError":r=Im();break;default:r=gm()}break;case"DOMException":r=new Tm(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":r=n?new ev(e,p):Jm(e,t,p);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":l="DataView"===p?e.byteLength:e.length,r=n?new ev(e,p,{offset:e.byteOffset,length:l}):Qm(e,p,e.byteOffset,l,t);break;case"DOMQuad":try{r=new DOMQuad(tv(e.p1,t,n),tv(e.p2,t,n),tv(e.p3,t,n),tv(e.p4,t,n))}catch(t){r=Km(e,p)}break;case"File":if(Xm)try{r=Xm(e),tm(r)!==p&&(r=void 0)}catch(e){}if(!r)try{r=new File([e],e.name,e)}catch(e){}r||Zm(p);break;case"FileList":if(a=function(){var e;try{e=new Hg.DataTransfer}catch(t){try{e=new Hg.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(s=0,l=rm(e);s<l;s++)a.items.add(tv(e[s],t,n));r=a.files}else r=Km(e,p);break;case"ImageData":try{r=new ImageData(tv(e.data,t,n),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){r=Km(e,p)}break;default:if(Xm)r=Xm(e);else switch(p){case"BigInt":r=dm(e.valueOf());break;case"Boolean":r=dm(Rm(e));break;case"Number":r=dm(zm(e));break;case"String":r=dm(Vm(e));break;case"Date":r=new fm(Bm(e));break;case"Blob":try{r=e.slice(0,e.size,e.type)}catch(e){Zm(p)}break;case"DOMPoint":case"DOMPointReadOnly":i=Hg[p];try{r=i.fromPoint?i.fromPoint(e):new i(e.x,e.y,e.z,e.w)}catch(e){Zm(p)}break;case"DOMRect":case"DOMRectReadOnly":i=Hg[p];try{r=i.fromRect?i.fromRect(e):new i(e.x,e.y,e.width,e.height)}catch(e){Zm(p)}break;case"DOMMatrix":case"DOMMatrixReadOnly":i=Hg[p];try{r=i.fromMatrix?i.fromMatrix(e):new i(e)}catch(e){Zm(p)}break;case"AudioData":case"VideoFrame":Xg(e.clone)||Zm(p);try{r=e.clone()}catch(e){$m(p)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Zm(p);default:$m(p)}}switch(Em(t,e,r),p){case"Array":case"Object":for(c=Nm(e),s=0,l=rm(c);s<l;s++)u=c[s],im(r,u,tv(e[u],t,n));break;case"Map":e.forEach((function(e,i){Em(r,tv(i,t,n),tv(e,t,n))}));break;case"Set":e.forEach((function(e){Lm(r,tv(e,t,n))}));break;case"Error":om(r,"message",tv(e.message,t,n)),nm(e,"cause")&&om(r,"cause",tv(e.cause,t,n)),"AggregateError"==o&&(r.errors=tv(e.errors,t,n));case"DOMException":um&&om(r,"stack",tv(e.stack,t,n))}return r},nv=function(e,t){if(!Kg(e))return e;if(Dm(t,e))return km(t,e);var n,i,o,r,a,s,l,c;if(e instanceof ev)switch(n=e.type,i=e.object,n){case"ArrayBuffer":case"SharedArrayBuffer":c=Jm(i,t,n);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":o=e.metadata,c=Qm(i,n,o.offset,o.length,t)}else switch(tm(e)){case"Array":case"Object":for(s=Nm(e),r=0,a=rm(s);r<a;r++)e[l=s[r]]=nv(e[l],t);break;case"Map":c=new Am,e.forEach((function(e,n){Em(c,nv(n,t),nv(e,t))}));break;case"Set":c=new Om,e.forEach((function(e){Lm(c,nv(e,t))}));break;case"Error":e.message=nv(e.message,t),nm(e,"cause")&&(e.cause=nv(e.cause,t)),"AggregateError"==e.name&&(e.errors=nv(e.errors,t));case"DOMException":um&&(e.stack=nv(e.stack,t))}return Em(t,e,c||e),c||e};Gg({global:!0,enumerable:!0,sham:!pm,forced:Ym},{structuredClone:function(e){var t,n,i=am(arguments.length,1)>1&&!Zg(arguments[1])?em(arguments[1]):void 0,o=i?i.transfer:void 0,r=!1;void 0!==o&&(n=function(e,t){if(!Kg(e))throw bm("Transfer option cannot be converted to a sequence");var n=[];Qg(e,(function(e){Pm(n,em(e))}));for(var i,o,r,a,s,l=0,c=rm(n),u=[];l<c;)if(i=n[l++],"ArrayBuffer"!==(o=tm(i))){if(Dm(t,i))throw new Tm("Duplicate transferable",Fm);if(pm)a=Um(i,{transfer:[i]});else switch(o){case"ImageBitmap":r=Hg.OffscreenCanvas,$g(r)||Zm(o,Gm);try{(s=new r(i.width,i.height)).getContext("bitmaprenderer").transferFromImageBitmap(i),a=s.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":Xg(i.clone)&&Xg(i.close)||Zm(o,Gm);try{a=i.clone(),i.close()}catch(e){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Zm(o,Gm)}if(void 0===a)throw new Tm("This object cannot be transferred: "+o,Fm);Em(t,i,a)}else Pm(u,i);return u}(o,t=new Am),r=!!rm(n));var a=tv(e,t,r);return r&&(function(e,t){for(var n,i,o=0,r=rm(e);o<r;){if(n=e[o++],Dm(t,n))throw new Tm("Duplicate transferable",Fm);pm?i=Um(n,{transfer:[n]}):(Xg(n.transfer)||Zm("ArrayBuffer",Gm),i=n.transfer()),Em(t,n,i)}}(o,t=new Am),a=nv(a,t)),a}}),_p.structuredClone;var iv=co,ov=pa,rv=ia,av=ss;ic({target:"Array",proto:!0},{at:function(e){var t=iv(this),n=ov(t),i=rv(e),o=i>=0?i:n+i;return o<0||o>=n?void 0:t[o]}}),av("at");var sv=$i,lv=Ei;(function(e,t){lv(sv[e].prototype[t])})("Array","at"),ic({target:"Object",stat:!0},{hasOwn:ho}),_p.Object.hasOwn;var cv=$i;ic({global:!0,forced:cv.globalThis!==cv},{globalThis:cv});const uv="/workbench/widget/data",pv=(e,t)=>{const n=Object.entries(t).filter((e=>![null,void 0].includes(e[1]))).map((e=>e.join("="))).join("&");return e.includes("?")?`${e}&${n}`:`${e}?${n}`},dv=e=>()=>!!e&&globalThis.open(e);function hv({success:e,data:t,errorMsg:n}){if(!e)throw new Error(n);return t}function fv(e,t){return e.find((e=>e.value===t))?.label}const gv=[{label:"平米",value:"smeter"},{label:"元",value:"yuan"},{label:"%",value:"percent"},{label:"个",value:"number"},{label:"分",value:"score"},{label:"万元",value:"wan_yuan"},{label:"百万",value:"million"},{label:"亿元",value:"billion"},{label:"万方",value:"wan_square"}];Pn.INDICATOR,(new Map).set("ALL",{label:"全部"}).set("CARD",{label:"卡片"}).set("MENU",{label:"菜单"}).set("REPORT",{label:"报表"}).set("CONTRACT",{label:"招商合同"}).set("BUSINESS_APPLY",{label:"商务条件申请"}).set("SECURITY",{label:"安全隐患"}).set("RISK",{label:"风险"}).set("PARK_REFORM",{label:"园区改造"}),Rn.PENDING,Rn.CREATE,Rn.COMPLETE,Pn.INDICATOR,Pn.INDICATOR_AREA,Pn.AREA_CHART,Pn.LINE_CHART,Pn.DUAL_LINE_BAR_CHART,Pn.COLUMN_CHART,Pn.STACK_COLUMN_CHART,Pn.BAR_CHART,Pn.FUNNEL_CHART,Pn.PIE_CHART,Pn.PIE_CHART_RESERVE,Pn.CYCLE_CHART,Pn.RADAR_CHART,Pn.RADAR_CHART_RESERVE;const mv=new Map;mv.set(Pn.CUSTOM_CARD,{templateUrl:"https://img.alicdn.com/imgextra/i3/O1CN011Bi11a1YzaZCM32a3_!!6000000003130-2-tps-1376-800.png",type:"Custom",sizeList:[{label:"1行 × 1列",value:"1,1"},{label:"1行 × 2列",value:"1,2"},{label:"2行 × 1列",value:"2,1"},{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"4行 × 4列",value:"4,4"}]}),mv.set(Pn.DUAL_LINE_BAR_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i1/O1CN01oW8CLa1lrsvlcyBHV_!!6000000004873-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"2行 × 6列",value:"2,6"}]}),mv.set(Pn.INDICATOR,{templateUrl:"https://img.alicdn.com/imgextra/i4/O1CN01FnE5KR1EV5typW3ya_!!6000000000356-2-tps-332-272.png",type:"Indicator",sizeList:[{label:"1行 × 1列",value:"1,1"}]}),mv.set(Pn.INDICATOR_AREA,{templateUrl:"https://img.alicdn.com/imgextra/i3/O1CN01IiUDn81hQctefyf11_!!6000000004272-2-tps-680-272.png",type:"IndicatorChart",sizeList:[{label:"1行 × 2列",value:"1,2"}]}),mv.set(Pn.AREA_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN01I6IkaB1iE5fcXcIXU_!!6000000004380-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"}],winChartType:zn.AREA}),mv.set(Pn.LINE_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN0181hNue1nRRIIpXPUf_!!6000000005086-2-tps-1376-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"2行 × 6列",value:"2,6"}],winChartType:zn.LINE}),mv.set(Pn.COLUMN_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i4/O1CN01iIxIfy1jYWxlzTSGb_!!6000000004560-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"2行 × 6列",value:"2,6"}]}),mv.set(Pn.STACK_COLUMN_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i3/O1CN01G9tHC81ImHE4RVLbC_!!6000000000935-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"},{label:"2行 × 6列",value:"2,6"}]}),mv.set(Pn.BAR_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i1/O1CN01fS4z2F1lBI66teufq_!!6000000004780-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"},{label:"2行 × 4列",value:"2,4"}]}),mv.set(Pn.PIE_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i4/O1CN01aG0pam21xPZ0KAldD_!!6000000007051-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),mv.set(Pn.PIE_CHART_RESERVE,{templateUrl:"https://img.alicdn.com/imgextra/i4/O1CN01aG0pam21xPZ0KAldD_!!6000000007051-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),mv.set(Pn.CYCLE_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN01ZkptA11f6M8UT8XGw_!!6000000003957-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),mv.set(Pn.FUNNEL_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i1/O1CN01Cmqcqi1HWsHscvuPN_!!6000000000766-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),mv.set(Pn.RADAR_CHART,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN01Pk7XU01hztOlrBMQe_!!6000000004349-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),mv.set(Pn.RADAR_CHART_RESERVE,{templateUrl:"https://img.alicdn.com/imgextra/i2/O1CN01Pk7XU01hztOlrBMQe_!!6000000004349-2-tps-680-560.png",type:"Chart",sizeList:[{label:"2行 × 2列",value:"2,2"}]}),(new Map).set("INDICATOR_CENTER",{iconType:"icon-zhibiaozhongxin1",color:"#347FFF"}).set("NEWS_NOTICE",{iconType:"icon-xinxiansudi1",color:"#00C267"}).set("EARTH_SCREEN",{iconType:"icon-xinxiansudi1",color:"#00C267"}).set("GOOD_HABITS",{iconType:"icon-v-function",color:"#347FFF"}).set("OPERATE_SCORE",{iconType:"icon-jingyingpaihang",color:"#FFA101"}).set("QUARTERLY_SCORE",{iconType:"icon-jidupingfen",color:"#FFA101"}).set("RISK",{iconType:"icon-fengxiandapan1",color:"#F15451"});function vv(e){return Array.isArray(e)&&e.length>0}!function(){var e=1e3,t=6e4,n=36e5,i="millisecond",o="second",r="minute",a="hour",s="day",l="week",c="month",u="quarter",p="year",d="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(i,c),r=n-o<0,a=t.clone().add(i+(r?-1:1),c);return+(-(i+(n-o)/(r?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:p,w:l,d:s,D:d,h:a,m:r,s:o,ms:i,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},x="en",b={};b[x]=m;var _="$isDayjsObject",w=function(e){return e instanceof I||!(!e||!e[_])},S=function e(t,n,i){var o;if(!t)return x;if("string"==typeof t){var r=t.toLowerCase();b[r]&&(o=r),n&&(b[r]=n,o=r);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!i&&o&&(x=o),o||!i&&x},M=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new I(n)},C=y;C.l=S,C.i=w,C.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var I=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(f);if(i){var o=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return M(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<M(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,i=!!C.u(t)||t,u=C.p(e),h=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return i?o:o.endOf(s)},f=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case p:return i?h(1,0):h(31,11);case c:return i?h(1,m):h(0,m+1);case l:var x=this.$locale().weekStart||0,b=(g<x?g+7:g)-x;return h(i?v-b:v+(6-b),m);case s:case d:return f(y+"Hours",0);case a:return f(y+"Minutes",1);case r:return f(y+"Seconds",2);case o:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),h=(n={},n[s]=u+"Date",n[d]=u+"Date",n[c]=u+"Month",n[p]=u+"FullYear",n[a]=u+"Hours",n[r]=u+"Minutes",n[o]=u+"Seconds",n[i]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===p){var g=this.clone().set(d,1);g.$d[h](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(i,u){var d,h=this;i=Number(i);var f=C.p(u),g=function(e){var t=M(h);return C.w(t.date(t.date()+Math.round(e*i)),h)};if(f===c)return this.set(c,this.$M+i);if(f===p)return this.set(p,this.$y+i);if(f===s)return g(1);if(f===l)return g(7);var m=(d={},d[r]=t,d[a]=n,d[o]=e,d)[f]||1,v=this.$d.getTime()+i*m;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var i=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),r=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,p=function(e,n,o,r){return e&&(e[n]||e(t,i))||o[n].slice(0,r)},d=function(e){return C.s(r%12||12,e,"0")},f=u||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(g,(function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return p(n.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,l,2);case"ddd":return p(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(r);case"HH":return C.s(r,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(r,a,!0);case"A":return f(r,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,d,h){var f,g=this,m=C.p(d),v=M(i),y=(v.utcOffset()-this.utcOffset())*t,x=this-v,b=function(){return C.m(g,v)};switch(m){case p:f=b()/12;break;case c:f=b();break;case u:f=b()/3;break;case l:f=(x-y)/6048e5;break;case s:f=(x-y)/864e5;break;case a:f=x/n;break;case r:f=x/t;break;case o:f=x/e;break;default:f=x}return h?f:C.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return b[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=S(e,t,!0);return i&&(n.$L=i),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),T=I.prototype;M.prototype=T,[["$ms",i],["$s",o],["$m",r],["$H",a],["$W",s],["$M",c],["$y",p],["$D",d]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,I,M),e.$i=!0),M},M.locale=S,M.isDayjs=w,M.unix=function(e){return M(1e3*e)},M.en=b[x],M.Ls=b,M.p={}}();const yv=(e,t=2)=>"number"==typeof e?`${Number((100*e).toFixed(t))}%`:"-%";function xv(e){return Array.isArray(e)?[...new Set(e)]:[]}const bv=e=>Array.isArray(e)&&0!==e.length?e.reduce(((e,t)=>{const n=Number(t);return e+(Object.is(n,NaN)?0:n)}),0):0,_v=e=>Array.isArray(e)?e.sort(((e,t)=>t.value-e.value)):e,wv=e=>({boundaryGap:!0,axisTick:{alignWithLabel:!0},data:xv(e.data?.map((e=>e.label))),axisLabel:{rotate:e.xAxisLabelRotate,formatter:t=>{const n=e.xAxisLabelLength;return"number"==typeof n&&t.length>n?`${t.slice(0,n)}...`:t}}}),Sv=(e,t)=>(e.sort(((e,n)=>t.indexOf(e.label)-t.indexOf(n.label))),e);var Mv=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Cv=new function(){this.browser=new Mv,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Cv.wxa=!0,Cv.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Cv.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Cv.node=!0,Cv.svgSupported=!0):function(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),r=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]);o&&(n.ie=!0,n.version=o[1]);r&&(n.edge=!0,n.version=r[1],n.newEdge=+r[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,Cv);var Iv=12,Tv="sans-serif",Av=Iv+"px "+Tv;var Dv,kv,Ev=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),o=(e.charCodeAt(n)-20)/100;t[i]=o}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Ov={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!Dv){var n=Ov.createCanvas();Dv=n&&n.getContext("2d")}if(Dv)return kv!==t&&(kv=Dv.font=t||Av),Dv.measureText(e);e=e||"";var i=/(\d+)px/.exec(t=t||Av),o=i&&+i[1]||Iv,r=0;if(t.indexOf("mono")>=0)r=o*e.length;else for(var a=0;a<e.length;a++){var s=Ev[e[a]];r+=null==s?o:s*o}return{width:r}},loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}},Lv=iy(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),Nv=iy(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),Pv=Object.prototype.toString,Rv=Array.prototype,zv=Rv.forEach,Vv=Rv.filter,Bv=Rv.slice,jv=Rv.map,Fv=function(){}.constructor,Gv=Fv?Fv.prototype:null,Hv="__proto__",Wv=2311;function Uv(){return Wv++}function Yv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function qv(e){if(null==e||"object"!=typeof e)return e;var t=e,n=Pv.call(e);if("[object Array]"===n){if(!Dy(e)){t=[];for(var i=0,o=e.length;i<o;i++)t[i]=qv(e[i])}}else if(Nv[n]){if(!Dy(e)){var r=e.constructor;if(r.from)t=r.from(e);else{t=new r(e.length);for(i=0,o=e.length;i<o;i++)t[i]=e[i]}}}else if(!Lv[n]&&!Dy(e)&&!my(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==Hv&&(t[a]=qv(e[a]));return t}function Xv(e,t,n){if(!hy(t)||!hy(e))return n?qv(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==Hv){var o=e[i],r=t[i];!hy(r)||!hy(o)||ly(r)||ly(o)||my(r)||my(o)||fy(r)||fy(o)||Dy(r)||Dy(o)?!n&&i in e||(e[i]=qv(t[i])):Xv(o,r,n)}return e}function $v(e,t){for(var n=e[0],i=1,o=e.length;i<o;i++)n=Xv(n,e[i],t);return n}function Zv(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Hv&&(e[n]=t[n]);return e}function Kv(e,t,n){for(var i=ry(t),o=0;o<i.length;o++){var r=i[o];(n?null!=t[r]:null==e[r])&&(e[r]=t[r])}return e}function Jv(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function Qv(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),o=0;o<i.length;o++){var r=i[o];"constructor"!==r&&(n?null!=t[r]:null==e[r])&&(e[r]=t[r])}else Kv(e,t,n)}function ey(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function ty(e,t,n){if(e&&t)if(e.forEach&&e.forEach===zv)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e);else for(var r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function ny(e,t,n){if(!e)return[];if(!t)return Sy(e);if(e.map&&e.map===jv)return e.map(t,n);for(var i=[],o=0,r=e.length;o<r;o++)i.push(t.call(n,e[o],o,e));return i}function iy(e,t,n,i){if(e&&t){for(var o=0,r=e.length;o<r;o++)n=t.call(i,n,e[o],o,e);return n}}function oy(e,t,n){if(!e)return[];if(!t)return Sy(e);if(e.filter&&e.filter===Vv)return e.filter(t,n);for(var i=[],o=0,r=e.length;o<r;o++)t.call(n,e[o],o,e)&&i.push(e[o]);return i}function ry(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var ay=Gv&&cy(Gv.bind)?Gv.call.bind(Gv.bind):function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(Bv.call(arguments)))}};function sy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(Bv.call(arguments)))}}function ly(e){return Array.isArray?Array.isArray(e):"[object Array]"===Pv.call(e)}function cy(e){return"function"==typeof e}function uy(e){return"string"==typeof e}function py(e){return"[object String]"===Pv.call(e)}function dy(e){return"number"==typeof e}function hy(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function fy(e){return!!Lv[Pv.call(e)]}function gy(e){return!!Nv[Pv.call(e)]}function my(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function vy(e){return null!=e.colorStops}function yy(e){return"[object RegExp]"===Pv.call(e)}function xy(e){return e!=e}function by(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(null!=e[n])return e[n]}function _y(e,t){return null!=e?e:t}function wy(e,t,n){return null!=e?e:null!=t?t:n}function Sy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Bv.apply(e,t)}function My(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function Cy(e,t){if(!e)throw new Error(t)}function Iy(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ty="__ec_primitive__";function Ay(e){e[Ty]=!0}function Dy(e){return e[Ty]}var ky=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return ry(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Ey="function"==typeof Map;var Oy=function(){function e(t){var n=ly(t);this.data=Ey?new Map:new ky;var i=this;function o(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(o):t&&ty(t,o)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach((function(n,i){e.call(t,n,i)}))},e.prototype.keys=function(){var e=this.data.keys();return Ey?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Ly(e){return new Oy(e)}function Ny(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var o=e.length;for(i=0;i<t.length;i++)n[i+o]=t[i];return n}function Py(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&Zv(n,t),n}function Ry(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function zy(e,t){return e.hasOwnProperty(t)}function Vy(){}var By=180/Math.PI;function jy(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function Fy(e,t){return e[0]=t[0],e[1]=t[1],e}function Gy(e){return[e[0],e[1]]}function Hy(e,t,n){return e[0]=t,e[1]=n,e}function Wy(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Uy(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function Yy(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function qy(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}function Xy(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function $y(e,t){var n=qy(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Zy(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ky=Zy;var Jy=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function Qy(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function ex(e,t,n){var i=t[0],o=t[1];return e[0]=n[0]*i+n[2]*o+n[4],e[1]=n[1]*i+n[3]*o+n[5],e}function tx(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function nx(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var ix=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},ox=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ix(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,o=n-this._x,r=i-this._y;this._x=n,this._y=i,t.drift(o,r,e),this.handler.dispatchToElement(new ix(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new ix(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new ix(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ix(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ix(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),rx=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof t&&(i=n,n=t,t=null),!n||!e)return this;var r=this._$eventProcessor;null!=t&&r&&r.normalizeQuery&&(t=r.normalizeQuery(t)),o[e]||(o[e]=[]);for(var a=0;a<o[e].length;a++)if(o[e][a].h===n)return this;var s={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=o[e].length-1,c=o[e][l];return c&&c.callAtLast?o[e].splice(l,0,s):o[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],o=0,r=n[e].length;o<r;o++)n[e][o].h!==t&&i.push(n[e][o]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],o=this._$eventProcessor;if(i)for(var r=t.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!o||!o.filter||null==l.query||o.filter(e,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],o=this._$eventProcessor;if(i)for(var r=t.length,a=t[r-1],s=i.length,l=0;l<s;l++){var c=i[l];if(!o||!o.filter||null==c.query||o.filter(e,c.query))switch(r){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,r-1))}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e}(),ax=Math.log(2);function sx(e,t,n,i,o,r){var a=i+"-"+o,s=e.length;if(r.hasOwnProperty(a))return r[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~o)/ax);return e[n][l]}for(var c=i|1<<n,u=n+1;i&1<<u;)u++;for(var p=0,d=0,h=0;d<s;d++){var f=1<<d;f&o||(p+=(h%2?-1:1)*e[n][d]*sx(e,t-1,u,c,o|f,r),h++)}return r[a]=p,p}function lx(e,t){var n=[[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]]],i={},o=sx(n,8,0,0,0,i);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*sx(n,7,0===a?1:0,1<<a,1<<s,i)/o*t[a];return function(e,t,n){var i=t*r[6]+n*r[7]+1;e[0]=(t*r[0]+n*r[1]+r[2])/i,e[1]=(t*r[3]+n*r[4]+r[5])/i}}}var cx="___zrEVENTSAVED",ux=[];function px(e,t,n,i,o){if(t.getBoundingClientRect&&Cv.domSupported&&!dx(t)){var r=t[cx]||(t[cx]={}),a=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=r%2,l=(r>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",o[l]+":0",i[1-s]+":auto",o[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,r),s=function(e,t,n){for(var i=n?"invTrans":"trans",o=t[i],r=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),p=2*c,d=u.left,h=u.top;a.push(d,h),l=l&&r&&d===r[p]&&h===r[p+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&o?o:(t.srcCoords=a,t[i]=n?lx(s,a):lx(a,s))}(a,r,o);if(s)return s(e,n,i),!0}return!1}function dx(e){return"CANVAS"===e.nodeName.toUpperCase()}var hx=/([&<>"'])/g,fx={"&":"&","<":"<",">":">",'"':""","'":"'"};function gx(e){return null==e?"":(e+"").replace(hx,(function(e,t){return fx[t]}))}var mx=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vx=[],yx=Cv.browser.firefox&&+Cv.browser.version.split(".")[0]<39;function xx(e,t,n,i){return n=n||{},i?bx(e,t,n):yx&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):bx(e,t,n),n}function bx(e,t,n){if(Cv.domSupported&&e.getBoundingClientRect){var i=t.clientX,o=t.clientY;if(dx(e)){var r=e.getBoundingClientRect();return n.zrX=i-r.left,void(n.zrY=o-r.top)}if(px(vx,e,i,o))return n.zrX=vx[0],void(n.zrY=vx[1])}n.zrX=n.zrY=0}function _x(e){return e||window.event}function Sx(e,t,n){if(null!=(t=_x(t)).zrX)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&xx(e,o,t,n)}else{xx(e,t,t,n);var r=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(t);t.zrDelta=r?r/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&mx.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function Mx(e,t,n,i){e.addEventListener(t,n,i)}var Cx=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Ix(e){return 2===e.which||3===e.which}var Tx=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var o={points:[],touches:[],target:t,event:e},r=0,a=i.length;r<a;r++){var s=i[r],l=xx(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},e.prototype._recognize=function(e){for(var t in Dx)if(Dx.hasOwnProperty(t)){var n=Dx[t](this._track,e);if(n)return n}},e}();function Ax(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var Dx={pinch:function(e,t){var n=e.length;if(n){var i,o=(e[n-1]||{}).points,r=(e[n-2]||{}).points||o;if(r&&r.length>1&&o&&o.length>1){var a=Ax(o)/Ax(r);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((i=o)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function kx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Ex(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 Ox(e,t,n){var i=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],r=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=o,e[2]=r,e[3]=a,e[4]=s,e[5]=l,e}function Lx(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Nx(e,t,n,i){void 0===i&&(i=[0,0]);var o=t[0],r=t[2],a=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(n),p=Math.cos(n);return e[0]=o*p+s*u,e[1]=-o*u+s*p,e[2]=r*p+l*u,e[3]=-r*u+p*l,e[4]=p*(a-i[0])+u*(c-i[1])+i[0],e[5]=p*(c-i[1])-u*(a-i[0])+i[1],e}function Px(e,t,n){var i=n[0],o=n[1];return e[0]=t[0]*i,e[1]=t[1]*o,e[2]=t[2]*i,e[3]=t[3]*o,e[4]=t[4]*i,e[5]=t[5]*o,e}function Rx(e,t){var n=t[0],i=t[2],o=t[4],r=t[1],a=t[3],s=t[5],l=n*a-r*i;return l?(l=1/l,e[0]=a*l,e[1]=-r*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*o)*l,e[5]=(r*o-n*s)*l,e):null}var zx=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var o=1-i;e.x=o*t.x+i*n.x,e.y=o*t.y+i*n.y},e}(),Vx=Math.min,Bx=Math.max,jx=new zx,Fx=new zx,Gx=new zx,Hx=new zx,Wx=new zx,Ux=new zx,Yx=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=Vx(e.x,this.x),n=Vx(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Bx(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Bx(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,o=[1,0,0,1,0,0];return Lx(o,o,[-t.x,-t.y]),Px(o,o,[n,i]),Lx(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,o=i.x,r=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,c=t.x+t.width,u=t.y,p=t.y+t.height,d=!(r<l||c<o||s<u||p<a);if(n){var h=1/0,f=0,g=Math.abs(r-l),m=Math.abs(c-o),v=Math.abs(s-u),y=Math.abs(p-a),x=Math.min(g,m),b=Math.min(v,y);r<l||c<o?x>f&&(f=x,g<m?zx.set(Ux,-g,0):zx.set(Ux,m,0)):x<h&&(h=x,g<m?zx.set(Wx,g,0):zx.set(Wx,-m,0)),s<u||p<a?b>f&&(f=b,v<y?zx.set(Ux,0,-v):zx.set(Ux,0,y)):x<h&&(h=x,v<y?zx.set(Wx,0,v):zx.set(Wx,0,-y))}return n&&zx.copy(n,d?Wx:Ux),d},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=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 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var o=i[0],r=i[3],a=i[4],s=i[5];return t.x=n.x*o+a,t.y=n.y*r+s,t.width=n.width*o,t.height=n.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}jx.x=Gx.x=n.x,jx.y=Hx.y=n.y,Fx.x=Hx.x=n.x+n.width,Fx.y=Gx.y=n.y+n.height,jx.transform(i),Hx.transform(i),Fx.transform(i),Gx.transform(i),t.x=Vx(jx.x,Fx.x,Gx.x,Hx.x),t.y=Vx(jx.y,Fx.y,Gx.y,Hx.y);var l=Bx(jx.x,Fx.x,Gx.x,Hx.x),c=Bx(jx.y,Fx.y,Gx.y,Hx.y);t.width=l-t.x,t.height=c-t.y}else t!==n&&e.copy(t,n)},e}(),qx=Yx,Xx="silent";function $x(){Cx(this.event)}var Zx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return G(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(rx),Kx=function(e,t){this.x=e,this.y=t},Jx=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qx=new qx(0,0,0,0),eb=function(e){function t(t,n,i,o,r){var a=e.call(this)||this;return a._hovered=new Kx(0,0),a.storage=t,a.painter=n,a.painterRoot=o,a._pointerSize=r,i=i||new Zx,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new ox(a),a}return G(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(ty(Jx,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=ib(this,t,n),o=this._hovered,r=o.target;r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target);var a=this._hovered=i?new Kx(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),r&&s!==r&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==r&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Kx(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var i=(e=e||{}).target;if(!i||!i.silent){for(var o="on"+t,r=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:$x}}(t,e,n);i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(t,r),i=i.__hostTarget?i.__hostTarget:i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(t,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[o]&&e[o].call(e,r),e.trigger&&e.trigger(t,r)})))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),o=new Kx(e,t);if(nb(i,o,e,t,n),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=new qx(e-s,t-s,a,a),c=i.length-1;c>=0;c--){var u=i[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Qx.copy(u.getBoundingRect()),u.transform&&Qx.applyTransform(u.transform),Qx.intersect(l)&&r.push(u))}if(r.length)for(var p=Math.PI/12,d=2*Math.PI,h=0;h<s;h+=4)for(var f=0;f<d;f+=p){if(nb(r,o,e+h*Math.cos(f),t+h*Math.sin(f),n),o.target)return o}}return o},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new Tx);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var o=i.type;e.gestureEvent=o;var r=new Kx;r.target=i.target,this.dispatchToElement(r,o,i.event)}},t}(rx);function tb(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i=e,o=void 0,r=!1;i;){if(i.ignoreClip&&(r=!0),!r){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1}i.silent&&(o=!0);var s=i.__hostTarget;i=s||i.parent}return!o||Xx}return!1}function nb(e,t,n,i,o){for(var r=e.length-1;r>=0;r--){var a=e[r],s=void 0;if(a!==o&&!a.ignore&&(s=tb(a,n,i))&&(!t.topTarget&&(t.topTarget=a),s!==Xx)){t.target=a;break}}}function ib(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}ty(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){eb.prototype[e]=function(t){var n,i,o=t.zrX,r=t.zrY,a=ib(this,o,r);if("mouseup"===e&&a||(i=(n=this.findHover(o,r)).target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Ky(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var ob=eb,rb=32,ab=7;function sb(e,t,n,i){var o=t+1;if(o===n)return 1;if(i(e[o++],e[t])<0){for(;o<n&&i(e[o],e[o-1])<0;)o++;!function(e,t,n){n--;for(;t<n;){var i=e[t];e[t++]=e[n],e[n--]=i}}(e,t,o)}else for(;o<n&&i(e[o],e[o-1])>=0;)o++;return o-t}function lb(e,t,n,i,o){for(i===t&&i++;i<n;i++){for(var r,a=e[i],s=t,l=i;s<l;)o(a,e[r=s+l>>>1])<0?l=r:s=r+1;var c=i-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=a}}function cb(e,t,n,i,o,r){var a=0,s=0,l=1;if(r(e,t[n+o])>0){for(s=i-o;l<s&&r(e,t[n+o+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(e,t[n+o-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var c=a;a=o-l,l=o-c}for(a++;a<l;){var u=a+(l-a>>>1);r(e,t[n+u])>0?a=u+1:l=u}return l}function ub(e,t,n,i,o,r){var a=0,s=0,l=1;if(r(e,t[n+o])<0){for(s=o+1;l<s&&r(e,t[n+o-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var c=a;a=o-l,l=o-c}else{for(s=i-o;l<s&&r(e,t[n+o+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;a<l;){var u=a+(l-a>>>1);r(e,t[n+u])<0?l=u:a=u+1}return l}function pb(e,t){var n,i,o=ab,r=0,a=[];function s(s){var l=n[s],c=i[s],u=n[s+1],p=i[s+1];i[s]=c+p,s===r-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),r--;var d=ub(e[u],e,l,c,0,t);l+=d,0!==(c-=d)&&0!==(p=cb(e[l+c-1],e,u,p,p-1,t))&&(c<=p?function(n,i,r,s){var l=0;for(l=0;l<i;l++)a[l]=e[n+l];var c=0,u=r,p=n;if(e[p++]=e[u++],0==--s){for(l=0;l<i;l++)e[p+l]=a[c+l];return}if(1===i){for(l=0;l<s;l++)e[p+l]=e[u+l];return void(e[p+s]=a[c])}var d,h,f,g=o;for(;;){d=0,h=0,f=!1;do{if(t(e[u],a[c])<0){if(e[p++]=e[u++],h++,d=0,0==--s){f=!0;break}}else if(e[p++]=a[c++],d++,h=0,1==--i){f=!0;break}}while((d|h)<g);if(f)break;do{if(0!==(d=ub(e[u],a,c,i,0,t))){for(l=0;l<d;l++)e[p+l]=a[c+l];if(p+=d,c+=d,(i-=d)<=1){f=!0;break}}if(e[p++]=e[u++],0==--s){f=!0;break}if(0!==(h=cb(a[c],e,u,s,0,t))){for(l=0;l<h;l++)e[p+l]=e[u+l];if(p+=h,u+=h,0===(s-=h)){f=!0;break}}if(e[p++]=a[c++],1==--i){f=!0;break}g--}while(d>=ab||h>=ab);if(f)break;g<0&&(g=0),g+=2}if((o=g)<1&&(o=1),1===i){for(l=0;l<s;l++)e[p+l]=e[u+l];e[p+s]=a[c]}else{if(0===i)throw new Error;for(l=0;l<i;l++)e[p+l]=a[c+l]}}(l,c,u,p):function(n,i,r,s){var l=0;for(l=0;l<s;l++)a[l]=e[r+l];var c=n+i-1,u=s-1,p=r+s-1,d=0,h=0;if(e[p--]=e[c--],0==--i){for(d=p-(s-1),l=0;l<s;l++)e[d+l]=a[l];return}if(1===s){for(h=(p-=i)+1,d=(c-=i)+1,l=i-1;l>=0;l--)e[h+l]=e[d+l];return void(e[p]=a[u])}var f=o;for(;;){var g=0,m=0,v=!1;do{if(t(a[u],e[c])<0){if(e[p--]=e[c--],g++,m=0,0==--i){v=!0;break}}else if(e[p--]=a[u--],m++,g=0,1==--s){v=!0;break}}while((g|m)<f);if(v)break;do{if(0!==(g=i-ub(a[u],e,n,i,i-1,t))){for(i-=g,h=(p-=g)+1,d=(c-=g)+1,l=g-1;l>=0;l--)e[h+l]=e[d+l];if(0===i){v=!0;break}}if(e[p--]=a[u--],1==--s){v=!0;break}if(0!==(m=s-cb(e[c],a,0,s,s-1,t))){for(s-=m,h=(p-=m)+1,d=(u-=m)+1,l=0;l<m;l++)e[h+l]=a[d+l];if(s<=1){v=!0;break}}if(e[p--]=e[c--],0==--i){v=!0;break}f--}while(g>=ab||m>=ab);if(v)break;f<0&&(f=0),f+=2}(o=f)<1&&(o=1);if(1===s){for(h=(p-=i)+1,d=(c-=i)+1,l=i-1;l>=0;l--)e[h+l]=e[d+l];e[p]=a[u]}else{if(0===s)throw new Error;for(d=p-(s-1),l=0;l<s;l++)e[d+l]=a[l]}}(l,c,u,p))}return n=[],i=[],{mergeRuns:function(){for(;r>1;){var e=r-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;s(e)}},forceMergeRuns:function(){for(;r>1;){var e=r-2;e>0&&i[e-1]<i[e+1]&&e--,s(e)}},pushRun:function(e,t){n[r]=e,i[r]=t,r+=1}}}function db(e,t,n,i){n||(n=0),i||(i=e.length);var o=i-n;if(!(o<2)){var r=0;if(o<rb)lb(e,n,i,n+(r=sb(e,n,i,t)),t);else{var a=pb(e,t),s=function(e){for(var t=0;e>=rb;)t|=1&e,e>>=1;return e+t}(o);do{if((r=sb(e,n,i,t))<s){var l=o;l>s&&(l=s),lb(e,n,n+l,n+r,t),r=l}a.pushRun(n,r),a.mergeRuns(),o-=r,n+=r}while(0!==o);a.forceMergeRuns()}}}var hb=1,fb=4,gb=!1;function mb(){gb||(gb=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function vb(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var yb=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vb}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,o=t.length;i<o;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,db(n,vb)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];for(var o=i,r=e;o;)o.parent=r,o.updateTransform(),t.push(o),r=o,o=o.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=hb),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(mb(),c.z=0),isNaN(c.z2)&&(mb(),c.z2=0),isNaN(c.zlevel)&&(mb(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var i=Jv(this._roots,e);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}(),xb=Cv.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},bb={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 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},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,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.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?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-bb.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?.5*bb.bounceIn(2*e):.5*bb.bounceOut(2*e-1)+.5}},_b=Math.pow,wb=Math.sqrt,Sb=1e-8,Mb=1e-4,Cb=wb(3),Ib=1/3,Tb=jy(),Ab=jy(),Db=jy();function kb(e){return e>-Sb&&e<Sb}function Eb(e){return e>Sb||e<-Sb}function Ob(e,t,n,i,o){var r=1-o;return r*r*(r*e+3*o*t)+o*o*(o*i+3*r*n)}function Lb(e,t,n,i,o){var r=1-o;return 3*(((t-e)*r+2*(n-t)*o)*r+(i-n)*o*o)}function Nb(e,t,n,i,o,r){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),c=e-o,u=s*s-3*a*l,p=s*l-9*a*c,d=l*l-3*s*c,h=0;if(kb(u)&&kb(p)){if(kb(s))r[0]=0;else(M=-l/s)>=0&&M<=1&&(r[h++]=M)}else{var f=p*p-4*u*d;if(kb(f)){var g=p/u,m=-g/2;(M=-s/a+g)>=0&&M<=1&&(r[h++]=M),m>=0&&m<=1&&(r[h++]=m)}else if(f>0){var v=wb(f),y=u*s+1.5*a*(-p+v),x=u*s+1.5*a*(-p-v);(M=(-s-((y=y<0?-_b(-y,Ib):_b(y,Ib))+(x=x<0?-_b(-x,Ib):_b(x,Ib))))/(3*a))>=0&&M<=1&&(r[h++]=M)}else{var b=(2*u*s-3*a*p)/(2*wb(u*u*u)),_=Math.acos(b)/3,w=wb(u),S=Math.cos(_),M=(-s-2*w*S)/(3*a),C=(m=(-s+w*(S+Cb*Math.sin(_)))/(3*a),(-s+w*(S-Cb*Math.sin(_)))/(3*a));M>=0&&M<=1&&(r[h++]=M),m>=0&&m<=1&&(r[h++]=m),C>=0&&C<=1&&(r[h++]=C)}}return h}function Pb(e,t,n,i,o){var r=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(kb(a)){if(Eb(r))(u=-s/r)>=0&&u<=1&&(o[l++]=u)}else{var c=r*r-4*a*s;if(kb(c))o[0]=-r/(2*a);else if(c>0){var u,p=wb(c),d=(-r-p)/(2*a);(u=(-r+p)/(2*a))>=0&&u<=1&&(o[l++]=u),d>=0&&d<=1&&(o[l++]=d)}}return l}function Rb(e,t,n,i,o,r){var a=(t-e)*o+e,s=(n-t)*o+t,l=(i-n)*o+n,c=(s-a)*o+a,u=(l-s)*o+s,p=(u-c)*o+c;r[0]=e,r[1]=a,r[2]=c,r[3]=p,r[4]=p,r[5]=u,r[6]=l,r[7]=i}function zb(e,t,n,i,o,r,a,s,l,c,u){var p,d,h,f,g,m=.005,v=1/0;Tb[0]=l,Tb[1]=c;for(var y=0;y<1;y+=.05)Ab[0]=Ob(e,n,o,a,y),Ab[1]=Ob(t,i,r,s,y),(f=Jy(Tb,Ab))<v&&(p=y,v=f);v=1/0;for(var x=0;x<32&&!(m<Mb);x++)d=p-m,h=p+m,Ab[0]=Ob(e,n,o,a,d),Ab[1]=Ob(t,i,r,s,d),f=Jy(Ab,Tb),d>=0&&f<v?(p=d,v=f):(Db[0]=Ob(e,n,o,a,h),Db[1]=Ob(t,i,r,s,h),g=Jy(Db,Tb),h<=1&&g<v?(p=h,v=g):m*=.5);return u&&(u[0]=Ob(e,n,o,a,p),u[1]=Ob(t,i,r,s,p)),wb(v)}function Vb(e,t,n,i,o,r,a,s,l){for(var c=e,u=t,p=0,d=1/l,h=1;h<=l;h++){var f=h*d,g=Ob(e,n,o,a,f),m=Ob(t,i,r,s,f),v=g-c,y=m-u;p+=Math.sqrt(v*v+y*y),c=g,u=m}return p}function Bb(e,t,n,i){var o=1-i;return o*(o*e+2*i*t)+i*i*n}function jb(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function Fb(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function Gb(e,t,n,i,o){var r=(t-e)*i+e,a=(n-t)*i+t,s=(a-r)*i+r;o[0]=e,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=n}function Hb(e,t,n,i,o,r,a,s,l){var c,u=.005,p=1/0;Tb[0]=a,Tb[1]=s;for(var d=0;d<1;d+=.05){Ab[0]=Bb(e,n,o,d),Ab[1]=Bb(t,i,r,d),(m=Jy(Tb,Ab))<p&&(c=d,p=m)}p=1/0;for(var h=0;h<32&&!(u<Mb);h++){var f=c-u,g=c+u;Ab[0]=Bb(e,n,o,f),Ab[1]=Bb(t,i,r,f);var m=Jy(Ab,Tb);if(f>=0&&m<p)c=f,p=m;else{Db[0]=Bb(e,n,o,g),Db[1]=Bb(t,i,r,g);var v=Jy(Db,Tb);g<=1&&v<p?(c=g,p=v):u*=.5}}return l&&(l[0]=Bb(e,n,o,c),l[1]=Bb(t,i,r,c)),wb(p)}function Wb(e,t,n,i,o,r,a){for(var s=e,l=t,c=0,u=1/a,p=1;p<=a;p++){var d=p*u,h=Bb(e,n,o,d),f=Bb(t,i,r,d),g=h-s,m=f-l;c+=Math.sqrt(g*g+m*m),s=h,l=f}return c}var Ub=/cubic-bezier\(([0-9,\.e ]+)\)/;function Yb(e){var t=e&&Ub.exec(e);if(t){var n=t[1].split(","),i=+Iy(n[0]),o=+Iy(n[1]),r=+Iy(n[2]),a=+Iy(n[3]);if(isNaN(i+o+r+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:Nb(0,i,r,1,e,s)&&Ob(0,o,a,1,s[0])}}}var qb=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Vy,this.ondestroy=e.ondestroy||Vy,this.onrestart=e.onrestart||Vy,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,o=i/n;o<0&&(o=0),o=Math.min(o,1);var r=this.easingFunc,a=r?r(o):o;if(this.onframe(a),1===o){if(!this.loop)return!0;var s=i%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=cy(e)?e:bb[e]||Yb(e)},e}(),Xb=function(e){this.value=e},$b=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Xb(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Zb=function(){function e(e){this._list=new $b,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,o=null;if(null==i[e]){var r=n.len(),a=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var s=n.head;n.remove(s),delete i[s.key],o=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new Xb(t),a.key=e,n.insertEntry(a),i[e]=a}return o},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Kb={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 Jb(e){return(e=Math.round(e))<0?0:e>255?255:e}function Qb(e){return e<0?0:e>1?1:e}function e_(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Jb(parseFloat(t)/100*255):Jb(parseInt(t,10))}function t_(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Qb(parseFloat(t)/100):Qb(parseFloat(t))}function n_(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function i_(e,t,n){return e+(t-e)*n}function o_(e,t,n,i,o){return e[0]=t,e[1]=n,e[2]=i,e[3]=o,e}function r_(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var a_=new Zb(20),s_=null;function l_(e,t){s_&&r_(s_,t),s_=a_.put(e,s_||t.slice())}function c_(e,t){if(e){t=t||[];var n=a_.get(e);if(n)return r_(t,n);var i=(e+="").replace(/ /g,"").toLowerCase();if(i in Kb)return r_(t,Kb[i]),l_(e,t),t;var o,r=i.length;if("#"===i.charAt(0))return 4===r||5===r?(o=parseInt(i.slice(1,4),16))>=0&&o<=4095?(o_(t,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===r?parseInt(i.slice(4),16)/15:1),l_(e,t),t):void o_(t,0,0,0,1):7===r||9===r?(o=parseInt(i.slice(1,7),16))>=0&&o<=16777215?(o_(t,(16711680&o)>>16,(65280&o)>>8,255&o,9===r?parseInt(i.slice(7),16)/255:1),l_(e,t),t):void o_(t,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===r){var l=i.substr(0,a),c=i.substr(a+1,s-(a+1)).split(","),u=1;switch(l){case"rgba":if(4!==c.length)return 3===c.length?o_(t,+c[0],+c[1],+c[2],1):o_(t,0,0,0,1);u=t_(c.pop());case"rgb":return c.length>=3?(o_(t,e_(c[0]),e_(c[1]),e_(c[2]),3===c.length?u:t_(c[3])),l_(e,t),t):void o_(t,0,0,0,1);case"hsla":return 4!==c.length?void o_(t,0,0,0,1):(c[3]=t_(c[3]),u_(c,t),l_(e,t),t);case"hsl":return 3!==c.length?void o_(t,0,0,0,1):(u_(c,t),l_(e,t),t);default:return}}o_(t,0,0,0,1)}}function u_(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=t_(e[1]),o=t_(e[2]),r=o<=.5?o*(i+1):o+i-o*i,a=2*o-r;return o_(t=t||[],Jb(255*n_(a,r,n+1/3)),Jb(255*n_(a,r,n)),Jb(255*n_(a,r,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function p_(e,t){var n=c_(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return g_(n,4===n.length?"rgba":"rgb")}}function d_(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),o=Math.floor(i),r=Math.ceil(i),a=t[o],s=t[r],l=i-o;return n[0]=Jb(i_(a[0],s[0],l)),n[1]=Jb(i_(a[1],s[1],l)),n[2]=Jb(i_(a[2],s[2],l)),n[3]=Qb(i_(a[3],s[3],l)),n}}function h_(e,t,n,i){var o=c_(e);if(e)return o=function(e){if(e){var t,n,i=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(i,o,r),s=Math.max(i,o,r),l=s-a,c=(s+a)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-i)/6+l/2)/l,p=((s-o)/6+l/2)/l,d=((s-r)/6+l/2)/l;i===s?t=d-p:o===s?t=1/3+u-d:r===s&&(t=2/3+p-u),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,n,c];return null!=e[3]&&h.push(e[3]),h}}(o),null!=t&&(o[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=n&&(o[1]=t_(n)),null!=i&&(o[2]=t_(i)),g_(u_(o),"rgba")}function f_(e,t){var n=c_(e);if(n&&null!=t)return n[3]=Qb(t),g_(n,"rgba")}function g_(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function m_(e,t){var n=c_(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var v_=new Zb(100);function y_(e){if(uy(e)){var t=v_.get(e);return t||(t=p_(e,-.1),v_.put(e,t)),t}if(vy(e)){var n=Zv({},e);return n.colorStops=ny(e.colorStops,(function(e){return{offset:e.offset,color:p_(e.color,-.1)}})),n}return e}var x_=Math.round;function b_(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=c_(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var __=1e-4;function w_(e){return e<__&&e>-__}function S_(e){return x_(1e3*e)/1e3}function M_(e){return x_(1e4*e)/1e4}var C_={left:"start",right:"end",center:"middle",middle:"middle"};function I_(e){return e&&!!e.image}function T_(e){return I_(e)||function(e){return e&&!!e.svgElement}(e)}function A_(e){return"linear"===e.type}function D_(e){return"radial"===e.type}function k_(e){return e&&("linear"===e.type||"radial"===e.type)}function E_(e){return"url(#"+e+")"}function O_(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function L_(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*By,o=_y(e.scaleX,1),r=_y(e.scaleY,1),a=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===o&&1===r||l.push("scale("+o+","+r+")"),(a||s)&&l.push("skew("+x_(a*By)+"deg, "+x_(s*By)+"deg)"),l.join(" ")}var N_=Cv.hasGlobalWindow&&cy(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!=typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return"production"!==process.env.NODE_ENV&&Yv("Base64 isn't natively supported in the current environment."),null},P_=Array.prototype.slice;function R_(e,t,n){return(t-e)*n+e}function z_(e,t,n,i){for(var o=t.length,r=0;r<o;r++)e[r]=R_(t[r],n[r],i);return e}function V_(e,t,n,i){for(var o=t.length,r=0;r<o;r++)e[r]=t[r]+n[r]*i;return e}function B_(e,t,n,i){for(var o=t.length,r=o&&t[0].length,a=0;a<o;a++){e[a]||(e[a]=[]);for(var s=0;s<r;s++)e[a][s]=t[a][s]+n[a][s]*i}return e}function j_(e,t){for(var n=e.length,i=t.length,o=n>i?t:e,r=Math.min(n,i),a=o[r-1]||{color:[0,0,0,0],offset:0},s=r;s<Math.max(n,i);s++)o.push({offset:a.offset,color:a.color.slice()})}function F_(e,t,n){var i=e,o=t;if(i.push&&o.push){var r=i.length,a=o.length;if(r!==a)if(r>a)i.length=a;else for(var s=r;s<a;s++)i.push(1===n?o[s]:P_.call(o[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=o[s]);else for(var c=0;c<l;c++)isNaN(i[s][c])&&(i[s][c]=o[s][c])}}function G_(e){if(ey(e)){var t=e.length;if(ey(e[0])){for(var n=[],i=0;i<t;i++)n.push(P_.call(e[i]));return n}return P_.call(e)}return e}function H_(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]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function W_(e){return 4===e||5===e}function U_(e){return 1===e||2===e}var Y_=[0,0,0,0],q_=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,t,n){this._needsSort=!0;var i=this.keyframes,o=i.length,r=!1,a=6,s=t;if(ey(t)){var l=function(e){return ey(e&&e[0])?2:1}(t);a=l,(1===l&&!dy(t[0])||2===l&&!dy(t[0][0]))&&(r=!0)}else if(dy(t)&&!xy(t))a=0;else if(uy(t))if(isNaN(+t)){var c=c_(t);c&&(s=c,a=3)}else a=0;else if(vy(t)){var u=Zv({},s);u.colorStops=ny(t.colorStops,(function(e){return{offset:e.offset,color:c_(e.color)}})),A_(t)?a=4:D_(t)&&(a=5),s=u}0===o?this.valType=a:a===this.valType&&6!==a||(r=!0),this.discrete=this.discrete||r;var p={time:e,value:s,rawValue:t,percent:0};return n&&(p.easing=n,p.easingFunc=cy(n)?n:bb[n]||Yb(n)),i.push(p),p},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,o=n.length,r=n[o-1],a=this.discrete,s=U_(i),l=W_(i),c=0;c<o;c++){var u=n[c],p=u.value,d=r.value;u.percent=u.time/e,a||(s&&c!==o-1?F_(p,d,i):l&&j_(p.colorStops,d.colorStops))}if(!a&&5!==i&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;var h=n[0].value;for(c=0;c<o;c++)0===i?n[c].additiveValue=n[c].value-h:3===i?n[c].additiveValue=V_([],n[c].value,h,-1):U_(i)&&(n[c].additiveValue=1===i?V_([],n[c].value,h,-1):B_([],n[c].value,h,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,o,r=null!=this._additiveTrack,a=r?"additiveValue":"value",s=this.valType,l=this.keyframes,c=l.length,u=this.propName,p=3===s,d=this._lastFr,h=Math.min;if(1===c)i=o=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=h(d+1,c-1);n>=0&&!(l[n].percent<=t);n--);n=h(n,c-2)}else{for(n=d;n<c&&!(l[n].percent>t);n++);n=h(n-1,c-2)}o=l[n+1],i=l[n]}if(i&&o){this._lastFr=n,this._lastFrP=t;var f=o.percent-i.percent,g=0===f?1:h((t-i.percent)/f,1);o.easingFunc&&(g=o.easingFunc(g));var m=r?this._additiveValue:p?Y_:e[u];if(!U_(s)&&!p||m||(m=this._additiveValue=[]),this.discrete)e[u]=g<1?i.rawValue:o.rawValue;else if(U_(s))1===s?z_(m,i[a],o[a],g):function(e,t,n,i){for(var o=t.length,r=o&&t[0].length,a=0;a<o;a++){e[a]||(e[a]=[]);for(var s=0;s<r;s++)e[a][s]=R_(t[a][s],n[a][s],i)}}(m,i[a],o[a],g);else if(W_(s)){var v=i[a],y=o[a],x=4===s;e[u]={type:x?"linear":"radial",x:R_(v.x,y.x,g),y:R_(v.y,y.y,g),colorStops:ny(v.colorStops,(function(e,t){var n=y.colorStops[t];return{offset:R_(e.offset,n.offset,g),color:H_(z_([],e.color,n.color,g))}})),global:y.global},x?(e[u].x2=R_(v.x2,y.x2,g),e[u].y2=R_(v.y2,y.y2,g)):e[u].r=R_(v.r,y.r,g)}else if(p)z_(m,i[a],o[a],g),r||(e[u]=H_(m));else{var b=R_(i[a],o[a],g);r?this._additiveValue=b:e[u]=b}r&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;0===t?e[n]=e[n]+i:3===t?(c_(e[n],Y_),V_(Y_,Y_,i,1),e[n]=H_(Y_)):1===t?V_(e[n],e[n],i,1):2===t&&B_(e[n],e[n],i,1)},e}(),X_=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?Yv("Can' use additive animation on looped animation."):(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(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ry(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var o=this._tracks,r=0;r<n.length;r++){var a=n[r],s=o[a];if(!s){s=o[a]=new q_(a);var l=void 0,c=this._getAdditiveTrack(a);if(c){var u=c.keyframes,p=u[u.length-1];l=p&&p.value,3===c.valType&&l&&(l=H_(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,G_(l),i),this._trackKeys.push(a)}s.addKeyframe(e,G_(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(e);o&&(t=o)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var r=this._trackKeys[o],a=this._tracks[r],s=this._getAdditiveTrack(r),l=a.keyframes,c=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=l[c-1];u&&(t._target[a.propName]=u.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var p=new qb({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var i=t._additiveAnimators;if(i){for(var o=!1,r=0;r<i.length;r++)if(i[r]._clip){o=!0;break}o||(t._additiveAnimators=null)}for(r=0;r<n.length;r++)n[r].step(t._target,e);var a=t._onframeCbs;if(a)for(r=0;r<a.length;r++)a[r](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return ny(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<e.length;o++){var r=n[e[o]];r&&!r.isFinished()&&(t?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}var a=!0;for(o=0;o<i.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var o=t[i],r=this._tracks[o];if(r&&!r.isFinished()){var a=r.keyframes,s=a[n?0:a.length-1];s&&(e[o]=G_(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||ry(e);for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(o){var r=o.keyframes;if(r.length>1){var a=r.pop();o.addKeyframe(a.time,e[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}();function $_(){return(new Date).getTime()}var Z_,K_,J_=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return G(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=$_()-this._pausedTime,n=t-this._time,i=this._head;i;){var o=i.next;i.step(t,n)?(i.ondestroy(),this.removeClip(i),i=o):i=o}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,xb((function t(){e._running&&(xb(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=$_(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=$_(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=$_()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new X_(e,t.loop);return this.addAnimator(n),n},t}(rx),Q_=Cv.domSupported,ew=(K_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Z_=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:ny(Z_,(function(e){var t=e.replace("mouse","pointer");return K_.hasOwnProperty(t)?t:e}))}),tw=["mousemove","mouseup"],nw=["pointermove","pointerup"],iw=!1;function ow(e){var t=e.pointerType;return"pen"===t||"touch"===t}function rw(e){e&&(e.zrByTouch=!0)}function aw(e,t){for(var n=t,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}var sw=function(e,t){this.stopPropagation=Vy,this.stopImmediatePropagation=Vy,this.preventDefault=Vy,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},lw={mousedown:function(e){e=Sx(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Sx(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=Sx(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){aw(this,(e=Sx(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){iw=!0,e=Sx(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){iw||(e=Sx(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){rw(e=Sx(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),lw.mousemove.call(this,e),lw.mousedown.call(this,e)},touchmove:function(e){rw(e=Sx(this.dom,e)),this.handler.processGesture(e,"change"),lw.mousemove.call(this,e)},touchend:function(e){rw(e=Sx(this.dom,e)),this.handler.processGesture(e,"end"),lw.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&lw.click.call(this,e)},pointerdown:function(e){lw.mousedown.call(this,e)},pointermove:function(e){ow(e)||lw.mousemove.call(this,e)},pointerup:function(e){lw.mouseup.call(this,e)},pointerout:function(e){ow(e)||lw.mouseout.call(this,e)}};ty(["click","dblclick","contextmenu"],(function(e){lw[e]=function(t){t=Sx(this.dom,t),this.trigger(e,t)}}));var cw={pointermove:function(e){ow(e)||cw.mousemove.call(this,e)},pointerup:function(e){cw.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 uw(e,t){var n=t.domHandlers;Cv.pointerEventsSupported?ty(ew.pointer,(function(i){dw(t,i,(function(t){n[i].call(e,t)}))})):(Cv.touchEventsSupported&&ty(ew.touch,(function(i){dw(t,i,(function(o){n[i].call(e,o),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),ty(ew.mouse,(function(i){dw(t,i,(function(o){o=_x(o),t.touching||n[i].call(e,o)}))})))}function pw(e,t){function n(n){dw(t,n,(function(i){i=_x(i),aw(e,i.target)||(i=function(e,t){return Sx(e.dom,new sw(e,t),!0)}(e,i),t.domHandlers[n].call(e,i))}),{capture:!0})}Cv.pointerEventsSupported?ty(nw,n):Cv.touchEventsSupported||ty(tw,n)}function dw(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,Mx(e.domTarget,t,n,i)}function hw(e){var t,n,i,o,r=e.mounted;for(var a in r)r.hasOwnProperty(a)&&(t=e.domTarget,n=a,i=r[a],o=e.listenerOpts[a],t.removeEventListener(n,i,o));e.mounted={}}var fw=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},gw=function(e){function t(t,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new fw(t,lw),Q_&&(i._globalHandlerScope=new fw(document,cw)),uw(i,i._localHandlerScope),i}return G(t,e),t.prototype.dispose=function(){hw(this._localHandlerScope),Q_&&hw(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Q_&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?pw(this,t):hw(t)}},t}(rx),mw=1;Cv.hasGlobalWindow&&(mw=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var vw=mw,yw="#333",xw="#ccc",bw=kx,_w=5e-5;function ww(e){return e>_w||e<-5e-5}var Sw=[],Mw=[],Cw=[1,0,0,1,0,0],Iw=Math.abs,Tw=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ww(this.rotation)||ww(this.x)||ww(this.y)||ww(this.scaleX-1)||ww(this.scaleY-1)||ww(this.skewX)||ww(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):bw(n),e&&(t?Ox(n,e,n):Ex(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(bw(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Sw);var n=Sw[0]<0?-1:1,i=Sw[1]<0?-1:1,o=((Sw[0]-n)*t+n)/Sw[0]||0,r=((Sw[1]-i)*t+i)/Sw[1]||0;e[0]*=o,e[1]*=o,e[2]*=r,e[3]*=r}this.invTransform=this.invTransform||[1,0,0,1,0,0],Rx(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),o=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(o),t=Math.sqrt(t),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],Ox(Mw,e.invTransform,t),t=Mw);var n=this.originX,i=this.originY;(n||i)&&(Cw[4]=n,Cw[5]=i,Ox(Mw,t,Cw),Mw[4]-=n,Mw[5]-=i,t=Mw),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&ex(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&ex(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Iw(e[0]-1)>1e-10&&Iw(e[3]-1)>1e-10?Math.sqrt(Iw(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Dw(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,o=e.scaleX,r=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,c=e.x,u=e.y,p=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var h=n+a,f=i+s;t[4]=-h*o-p*f*r,t[5]=-f*r-d*h*o}else t[4]=t[5]=0;return t[0]=o,t[3]=r,t[1]=d*o,t[2]=p*r,l&&Nx(t,t,l),t[4]+=n+c,t[5]+=i+u,t},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}(),Aw=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Dw(e,t){for(var n=0;n<Aw.length;n++){var i=Aw[n];e[i]=t[i]}}var kw={};function Ew(e,t){var n=kw[t=t||Av];n||(n=kw[t]=new Zb(500));var i=n.get(e);return null==i&&(i=Ov.measureText(e,t).width,n.put(e,i)),i}function Ow(e,t,n,i){var o=Ew(e,t),r=Rw(t),a=Nw(0,o,n),s=Pw(0,r,i);return new qx(a,s,o,r)}function Lw(e,t,n,i){var o=((e||"")+"").split("\n");if(1===o.length)return Ow(o[0],t,n,i);for(var r=new qx(0,0,0,0),a=0;a<o.length;a++){var s=Ow(o[a],t,n,i);0===a?r.copy(s):r.union(s)}return r}function Nw(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Pw(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function Rw(e){return Ew("国",e)}function zw(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Vw(e,t,n){var i=t.position||"inside",o=null!=t.distance?t.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,c=n.y,u="left",p="top";if(i instanceof Array)l+=zw(i[0],n.width),c+=zw(i[1],n.height),u=null,p=null;else switch(i){case"left":l-=o,c+=s,u="right",p="middle";break;case"right":l+=o+a,c+=s,p="middle";break;case"top":l+=a/2,c-=o,u="center",p="bottom";break;case"bottom":l+=a/2,c+=r+o,u="center";break;case"inside":l+=a/2,c+=s,u="center",p="middle";break;case"insideLeft":l+=o,c+=s,p="middle";break;case"insideRight":l+=a-o,c+=s,u="right",p="middle";break;case"insideTop":l+=a/2,c+=o,u="center";break;case"insideBottom":l+=a/2,c+=r-o,u="center",p="bottom";break;case"insideTopLeft":l+=o,c+=o;break;case"insideTopRight":l+=a-o,c+=o,u="right";break;case"insideBottomLeft":l+=o,c+=r-o,p="bottom";break;case"insideBottomRight":l+=a-o,c+=r-o,u="right",p="bottom"}return(e=e||{}).x=l,e.y=c,e.align=u,e.verticalAlign=p,e}var Bw="__zr_normal__",jw=Aw.concat(["ignore"]),Fw=iy(Aw,(function(e,t){return e[t]=!0,e}),{ignore:!1}),Gw={},Hw=new qx(0,0,0,0),Ww=function(){function e(e){this.id=Uv(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,o=t.innerTransformable,r=void 0,a=void 0,s=!1;o.parent=i?this:null;var l=!1;if(o.copyTransform(t),null!=n.position){var c=Hw;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Gw,n,c):Vw(Gw,n,c),o.x=Gw.x,o.y=Gw.y,r=Gw.align,a=Gw.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var p=void 0,d=void 0;"center"===u?(p=.5*c.width,d=.5*c.height):(p=zw(u[0],c.width),d=zw(u[1],c.height)),l=!0,o.originX=-o.x+p+(i?0:c.x),o.originY=-o.y+d+(i?0:c.y)}}null!=n.rotation&&(o.rotation=n.rotation);var h=n.offset;h&&(o.x+=h[0],o.y+=h[1],l||(o.originX=-h[0],o.originY=-h[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),(m=m||"#000")===g.fill&&v===g.stroke&&y===g.autoStroke&&r===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=r,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=hb,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?xw:yw},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&c_(t);n||(n=[255,255,255,1]);for(var i=n[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,g_(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Zv(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(hy(e))for(var n=ry(e),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==Bw)){var r=i.targetName,a=r?t[r]:t;i.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,jw)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var o=n[i];null==e[o]||o in t||(t[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Bw,!1,e)},e.prototype.useState=function(e,t,n,i){var o=e===Bw;if(this.hasState()||!o){var r=this.currentStates,a=this.stateTransition;if(!(Jv(r,e)>=0)||!t&&1!==r.length){var s;if(this.stateProxy&&!o&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||o){o||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,u=this._textGuide;return c&&c.useState(e,t,n,l),u&&u.useState(e,t,n,l),o?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~hb),s}Yv("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],o=this.currentStates,r=e.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(e[s]!==o[s]){a=!1;break}if(a)return;for(s=0;s<r;s++){var l=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&i.push(c)}var u=i[r-1],p=!!(u&&u.hoverLayer||n);p&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),h=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&h&&h.duration>0,h);var f=this._textContent,g=this._textGuide;f&&f.useStates(e,t,p),g&&g.useStates(e,t,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~hb)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Jv(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),o=Jv(i,e),r=Jv(i,t)>=0;o>=0?r?i.splice(o,1):i[o]=t:n&&!r&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var o=e[i];Zv(n,o),o.textConfig&&Zv(t=t||{},o.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,o,r){var a=!(t&&i);t&&t.textConfig?(this.textConfig=Zv({},i?this.textConfig:n.textConfig),Zv(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<jw.length;c++){var u=jw[c],p=o&&Fw[u];t&&null!=t[u]?p?(l=!0,s[u]=t[u]):this[u]=t[u]:a&&null!=n[u]&&(p?(l=!0,s[u]=n[u]):this[u]=n[u])}if(!o)for(c=0;c<this.animators.length;c++){var d=this.animators[c],h=d.targetName;d.getLoop()||d.__changeFinalValue(h?(t||n)[h]:t||n)}l&&this._transitionState(e,s,r)},e.prototype._attachComponent=function(e){if(!e.__zr||e.__hostTarget){if(e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}else if("production"!==process.env.NODE_ENV)throw new Error("Recursive component attachment.")}else if("production"!==process.env.NODE_ENV)throw new Error("Text element has been added to zrender.")},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),"production"!==process.env.NODE_ENV&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Tw,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Zv(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=hb;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var i=e?this[e]:this;if("production"===process.env.NODE_ENV||i){var o=new X_(i,t,n);return e&&(o.targetName=e),this.addAnimator(o,e),o}Yv('Property "'+e+'" is not existed in element '+this.id)},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during((function(){i.updateDuringAnimation(t)})).done((function(){var t=i.animators,n=Jv(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,o=[],r=0;r<i;r++){var a=n[r];e&&e!==a.scope?o.push(a):a.stop(t)}return this.animators=o,this},e.prototype.animateTo=function(e,t,n){Uw(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Uw(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var o=Uw(this,t,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=e},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=hb;var n={};function i(e,t,i){n[e+t+i]||(console.warn("DEPRECATED: '"+e+"' has been deprecated. use '"+t+"', '"+i+"' instead"),n[e+t+i]=!0)}function o(e,n,o,r){function a(e,t){Object.defineProperty(t,0,{get:function(){return e[o]},set:function(t){e[o]=t}}),Object.defineProperty(t,1,{get:function(){return e[r]},set:function(t){e[r]=t}})}Object.defineProperty(t,e,{get:function(){("production"!==process.env.NODE_ENV&&i(e,o,r),this[n])||a(this,this[n]=[]);return this[n]},set:function(t){"production"!==process.env.NODE_ENV&&i(e,o,r),this[o]=t[0],this[r]=t[1],this[n]=t,a(this,t)}})}Object.defineProperty&&(o("position","_legacyPos","x","y"),o("scale","_legacyScale","scaleX","scaleY"),o("origin","_legacyOrigin","originX","originY"))}(),e}();function Uw(e,t,n,i,o){var r=[];Xw(e,"",e,t,n=n||{},i,r,o);var a=r.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,--a<=0&&(s?l&&l():c&&c())},p=function(){--a<=0&&(s?l&&l():c&&c())};a||l&&l(),r.length>0&&n.during&&r[0].during((function(e,t){n.during(t)}));for(var d=0;d<r.length;d++){var h=r[d];u&&h.done(u),p&&h.aborted(p),n.force&&h.duration(n.duration),h.start(n.easing)}return r}function Yw(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function qw(e,t,n){if(ey(t[n]))if(ey(e[n])||(e[n]=[]),gy(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),Yw(e[n],t[n],i))}else{var o=t[n],r=e[n],a=o.length;if(ey(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?Yw(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else Yw(r,o,a);r.length=o.length}else e[n]=t[n]}function Xw(e,t,n,i,o,r,a,s){for(var l=ry(i),c=o.duration,u=o.delay,p=o.additive,d=o.setToFinal,h=!hy(r),f=e.animators,g=[],m=0;m<l.length;m++){var v=l[m],y=i[v];if(null!=y&&null!=n[v]&&(h||r[v]))if(!hy(y)||ey(y)||vy(y))g.push(v);else{if(t){s||(n[v]=y,e.updateDuringAnimation(t));continue}Xw(e,v,n[v],y,o,r&&r[v],a,s)}else s||(n[v]=y,e.updateDuringAnimation(t),g.push(v))}var x=g.length;if(!p&&x)for(var b=0;b<f.length;b++){if((w=f[b]).targetName===t)if(w.stopTracks(g)){var _=Jv(f,w);f.splice(_,1)}}if(o.force||(g=oy(g,(function(e){return t=i[e],o=n[e],!(t===o||ey(t)&&ey(o)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}(t,o));var t,o})),x=g.length),x>0||o.force&&!a.length){var w,S=void 0,M=void 0,C=void 0;if(s){M={},d&&(S={});for(b=0;b<x;b++){M[v=g[b]]=n[v],d?S[v]=i[v]:n[v]=i[v]}}else if(d){C={};for(b=0;b<x;b++){C[v=g[b]]=G_(n[v]),qw(n,i,v)}}(w=new X_(n,!1,!1,p?oy(f,(function(e){return e.targetName===t})):null)).targetName=t,o.scope&&(w.scope=o.scope),d&&S&&w.whenWithKeys(0,S,g),C&&w.whenWithKeys(0,C,g),w.whenWithKeys(null==c?500:c,s?M:i,g).delay(u||0),e.addAnimator(w,t),a.push(w)}}Qv(Ww,rx),Qv(Ww,Tw);var $w=Ww,Zw=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return G(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),"production"!==process.env.NODE_ENV&&e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=Jv(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=Jv(n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];e.call(t,o,i)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=e.call(t,i);i.isGroup&&!o&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new qx(0,0,0,0),n=e||this._children,i=[],o=null,r=0;r<n.length;r++){var a=n[r];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(qx.applyTransform(t,s,l),(o=o||t.clone()).union(t)):(o=o||s.clone()).union(s)}}return o||t},t}($w);Zw.prototype.type="group";
|
|
13
|
+
/*!
|
|
14
|
+
* ZRender, a high performance 2d drawing library.
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
17
|
+
* All rights reserved.
|
|
18
|
+
*
|
|
19
|
+
* LICENSE
|
|
20
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
21
|
+
*/
|
|
22
|
+
var Kw={},Jw={};var Qw,eS=function(){function e(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var o=new yb,r=n.renderer||"canvas";if(Kw[r]||(r=ry(Kw)[0]),"production"!==process.env.NODE_ENV&&!Kw[r])throw new Error("Renderer '"+r+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Kw[r](t,o,n,e),s=n.ssr||a.ssrOnly;this.storage=o,this.painter=a;var l,c=Cv.node||Cv.worker||s?null:new gw(a.getViewportRoot(),a.root),u=n.useCoarsePointer;(null==u||"auto"===u?Cv.touchEventsSupported:!!u)&&(l=_y(n.pointerSize,44)),this.handler=new ob(o,a,c,a.root,l),this.animation=new J_({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return m_(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,o=0;o<i;o++)n+=m_(t[o].color,1);return(n/=i)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||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(e){var t,n=$_();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=$_();t?(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(e){this._sleepAfterStill=e},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&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Zw&&e[t].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,function(e){delete Jw[e]}(this.id))},e}();function tS(e,t){var n=new eS(Uv(),e,t);return Jw[n.id]=n,n}var nS=1e-4,iS=20;function oS(e,t,n,i){var o=t[0],r=t[1],a=n[0],s=n[1],l=r-o,c=s-a;if(0===l)return 0===c?a:(a+s)/2;if(i)if(l>0){if(e<=o)return a;if(e>=r)return s}else{if(e>=o)return a;if(e<=r)return s}else{if(e===o)return a;if(e===r)return s}return(e-o)/l*c+a}function rS(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return uy(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function aS(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),iS),e=(+e).toFixed(t),n?e:+e}function sS(e){return e.sort((function(e,t){return e-t})),e}function lS(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return cS(e)}function cS(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,o=n>0?n:t.length,r=t.indexOf("."),a=r<0?0:o-1-r;return Math.max(0,a-i)}function uS(e,t){var n=Math.log,i=Math.LN10,o=Math.floor(n(e[1]-e[0])/i),r=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function pS(e,t){var n=Math.max(lS(e),lS(t)),i=e+t;return n>iS?i:aS(i,n)}var dS=9007199254740991;function hS(e){var t=2*Math.PI;return(e%t+t)%t}function fS(e){return e>-nS&&e<nS}var gS=/^(?:(\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 mS(e){if(e instanceof Date)return e;if(uy(e)){var t=gS.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}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)}return null==e?new Date(NaN):new Date(Math.round(e))}function vS(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function yS(e,t){var n=vS(e),i=Math.pow(10,n),o=e/i;return e=(t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10)*i,n>=-20?+e.toFixed(n<0?-n:0):e}function xS(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),o=+e[i-1],r=n-i;return r?o+r*(e[i]-o):o}function bS(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var o=e[i].interval,r=e[i].close,a=0;a<2;a++)o[a]<=t&&(o[a]=t,r[a]=a?1:1-n),t=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]==(n?-1:1)||!n&&s(e,t,1))}}function _S(e){var t=parseFloat(e);return t==e&&(0!==t||!uy(e)||e.indexOf("x")<=0)?t:NaN}function wS(e){return!isNaN(_S(e))}function SS(){return Math.round(9*Math.random())}function MS(e,t){return 0===t?e:MS(t,e%t)}function CS(e,t){return null==e?t:null==t?e:e*t/MS(e,t)}var IS="[ECharts] ",TS={},AS="undefined"!=typeof console&&console.warn&&console.log;function DS(e,t,n){if(AS){if(n){if(TS[t])return;TS[t]=!0}console[e](IS+t)}}function kS(e,t){DS("warn",e,t)}function ES(e,t){DS("error",e,t)}function OS(e){"production"!==process.env.NODE_ENV&&DS("warn","DEPRECATED: "+e,!0)}function LS(e,t,n){"production"!==process.env.NODE_ENV&&OS((n?"["+n+"]":"")+e+" is deprecated, use "+t+" instead.")}function NS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";if("production"!==process.env.NODE_ENV){var i=function(e){return void 0===e?"undefined":e===1/0?"Infinity":e===-1/0?"-Infinity":xy(e)?"NaN":e instanceof Date?"Date("+e.toISOString()+")":cy(e)?"function () { ... }":yy(e)?e+"":null};n=ny(e,(function(e){if(uy(e))return e;var t=i(e);if(null!=t)return t;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(e,(function(e,t){var n=i(t);return null==n?t:n}))}catch(e){return"?"}})).join(" ")}return n}function PS(e){throw new Error(e)}function RS(e,t,n){return(t-e)*n+e}var zS="series\0",VS="\0_ec_\0";function BS(e){return e instanceof Array?e:null==e?[]:[e]}function jS(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!e.emphasis[t].hasOwnProperty(r)&&e[t].hasOwnProperty(r)&&(e.emphasis[t][r]=e[t][r])}}}var FS=["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 GS(e){return!hy(e)||ly(e)||e instanceof Date?e:e.value}function HS(e){return hy(e)&&!(e instanceof Array)}function WS(e,t,n){var i="normalMerge"===n,o="replaceMerge"===n,r="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Ly();ty(t,(function(e,n){hy(e)?"production"!==process.env.NODE_ENV&&(null==e.id||$S(e.id)||XS(e.id),null==e.name||$S(e.name)||XS(e.name)):t[n]=null}));var s,l,c=function(e,t,n){var i=[];if("replaceAll"===n)return i;for(var o=0;o<e.length;o++){var r=e[o];r&&null!=r.id&&t.set(r.id,o),i.push({existing:"replaceMerge"===n||KS(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(e,a,n);return(i||o)&&function(e,t,n,i){ty(i,(function(o,r){if(o&&null!=o.id){var a=YS(o.id),s=n.get(a);if(null!=s){var l=e[s];Cy(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=o,l.existing=t[s],i[r]=null}}}))}(c,e,a,t),i&&function(e,t){ty(t,(function(n,i){if(n&&null!=n.name)for(var o=0;o<e.length;o++){var r=e[o].existing;if(!e[o].newOption&&r&&(null==r.id||null==n.id)&&!KS(n)&&!KS(r)&&US("name",r,n))return e[o].newOption=n,void(t[i]=null)}}))}(c,t),i||o?function(e,t,n){ty(t,(function(t){if(t){for(var i,o=0;(i=e[o])&&(i.newOption||KS(i.existing)||i.existing&&null!=t.id&&!US("id",t,i.existing));)o++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),o++}}))}(c,t,o):r&&function(e,t){ty(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(c,t),s=c,l=Ly(),ty(s,(function(e){var t=e.existing;t&&l.set(t.id,e)})),ty(s,(function(e){var t=e.newOption;Cy(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),ty(s,(function(e,t){var n=e.existing,i=e.newOption,o=e.keyInfo;if(hy(i)){if(o.name=null!=i.name?YS(i.name):n?n.name:zS+t,n)o.id=YS(n.id);else if(null!=i.id)o.id=YS(i.id);else{var r=0;do{o.id="\0"+o.name+"\0"+r++}while(l.get(o.id))}l.set(o.id,e)}})),c}function US(e,t,n){var i=qS(t[e],null),o=qS(n[e],null);return null!=i&&null!=o&&i===o}function YS(e){if("production"!==process.env.NODE_ENV&&null==e)throw new Error;return qS(e,"")}function qS(e,t){return null==e?t:uy(e)?e:dy(e)||py(e)?e+"":t}function XS(e){"production"!==process.env.NODE_ENV&&kS("`"+e+"` is invalid id or name. Must be a string or number.")}function $S(e){return py(e)||wS(e)}function ZS(e){var t=e.name;return!(!t||!t.indexOf(zS))}function KS(e){return e&&null!=e.id&&0===YS(e.id).indexOf(VS)}function JS(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?ly(t.dataIndex)?ny(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?ly(t.name)?ny(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function QS(){var e="__ec_inner_"+eM++;return function(t){return t[e]||(t[e]={})}}var eM=SS();function tM(e,t,n){var i=nM(t,n),o=i.mainTypeSpecified,r=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!o&&s&&r.set(s,{}),r.each((function(t,i){var o=rM(e,i,t,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=o.models,a[i+"Model"]=o.models[0]})),a}function nM(e,t){var n;if(uy(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var o=Ly(),r={},a=!1;return ty(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&Jv(t.includeMainTypes,s)<0))a=a||!!s,(o.get(s)||o.set(s,{}))[l]=e}else r[n]=e})),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var iM={useDefault:!0,enableAll:!1,enableNone:!1},oM={useDefault:!1,enableAll:!0,enableNone:!0};function rM(e,t,n,i){i=i||iM;var o=n.index,r=n.id,a=n.name,s={models:null,specified:null!=o||null!=r||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===o||!1===o?(Cy(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===o&&(Cy(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=a=null),s.models=e.queryComponents({mainType:t,index:o,id:r,name:a}),s)}function aM(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function sM(e,t){var n=Ly(),i=[];return ty(e,(function(e){var o=t(e);(n.get(o)||(i.push(o),n.set(o,[]))).push(e)})),{keys:i,buckets:n}}function lM(e,t,n,i,o){var r=null==t||"auto"===t;if(null==i)return i;if(dy(i))return aS(f=RS(n||0,i,o),r?Math.max(lS(n||0),lS(i)):t);if(uy(i))return o<1?n:i;for(var a=[],s=n,l=i,c=Math.max(s?s.length:0,l.length),u=0;u<c;++u){var p=e.getDimensionInfo(u);if(p&&"ordinal"===p.type)a[u]=(o<1&&s?s:l)[u];else{var d=s&&s[u]?s[u]:0,h=l[u],f=RS(d,h,o);a[u]=aS(f,r?Math.max(lS(d),lS(h)):t)}}return a}var cM=".",uM="___EC__COMPONENT__CONTAINER___",pM="___EC__EXTENDED_CLASS___";function dM(e){var t={main:"",sub:""};if(e){var n=e.split(cM);t.main=n[0]||"",t.sub=n[1]||""}return t}function hM(e,t){e.$constructor=e,e.extend=function(e){"production"!==process.env.NODE_ENV&&ty(t,(function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?" in "+e.type:"")+".")}));var n,i,o=this;return cy(i=o)&&/^class\s/.test(Function.prototype.toString.call(i))?n=function(e){function t(){return e.apply(this,arguments)||this}return G(t,e),t}(o):(n=function(){(e.$constructor||o).apply(this,arguments)},function(e,t){var n=e.prototype;function i(){}for(var o in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(o)&&(e.prototype[o]=n[o]);e.prototype.constructor=e,e.superClass=t}(n,this)),Zv(n.prototype,e),n[pM]=!0,n.extend=this.extend,n.superCall=mM,n.superApply=vM,n.superClass=o,n}}function fM(e,t){e.extend=t.extend}var gM=Math.round(10*Math.random());function mM(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function vM(e,t,n){return this.superClass.prototype[t].apply(e,n)}function yM(e){var t={};e.registerClass=function(e){var n,i=e.type||e.prototype.type;if(i){Cy(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),e.prototype.type=i;var o=dM(i);if(o.sub){if(o.sub!==uM){var r=function(e){var n=t[e.main];n&&n[uM]||((n=t[e.main]={})[uM]=!0);return n}(o);r[o.sub]=e}}else"production"!==process.env.NODE_ENV&&t[o.main]&&console.warn(o.main+" exists."),t[o.main]=e}return e},e.getClass=function(e,n,i){var o=t[e];if(o&&o[uM]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return o},e.getClassesByMainType=function(e){var n=dM(e),i=[],o=t[n.main];return o&&o[uM]?ty(o,(function(e,t){t!==uM&&i.push(e)})):i.push(o),i},e.hasClass=function(e){var n=dM(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return ty(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=dM(e),i=t[n.main];return i&&i[uM]}}function xM(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,o){for(var r={},a=0;a<e.length;a++){var s=e[a][1];if(!(i&&Jv(i,s)>=0||o&&Jv(o,s)<0)){var l=n.getShallow(s,t);null!=l&&(r[e[a][0]]=l)}}return r}}var bM=xM([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),_M=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return bM(this,e,t)},e}(),wM=new Zb(50);function SM(e){if("string"==typeof e){var t=wM.get(e);return t&&t.image}return e}function MM(e,t,n,i,o){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var r=wM.get(e),a={hostEl:n,cb:i,cbPayload:o};return r?!IM(t=r.image)&&r.pending.push(a):((t=Ov.loadImage(e,CM,CM)).__zrImageSrc=e,wM.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function CM(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function IM(e){return e&&e.width&&e.height}var TM=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function AM(e,t,n,i,o){if(!t)return"";var r=(e+"").split("\n");o=DM(t,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=kM(r[a],o);return r.join("\n")}function DM(e,t,n,i){var o=Zv({},i=i||{});o.font=t,n=_y(n,"..."),o.maxIterations=_y(i.maxIterations,2);var r=o.minChar=_y(i.minChar,0);o.cnCharWidth=Ew("国",t);var a=o.ascCharWidth=Ew("a",t);o.placeholder=_y(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<r&&s>=a;l++)s-=a;var c=Ew(n,t);return c>s&&(n="",c=0),s=e-c,o.ellipsis=n,o.ellipsisWidth=c,o.contentWidth=s,o.containerWidth=e,o}function kM(e,t){var n=t.containerWidth,i=t.font,o=t.contentWidth;if(!n)return"";var r=Ew(e,i);if(r<=n)return e;for(var a=0;;a++){if(r<=o||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?EM(e,o,t.ascCharWidth,t.cnCharWidth):r>0?Math.floor(e.length*o/r):0;r=Ew(e=e.substr(0,s),i)}return""===e&&(e=t.placeholder),e}function EM(e,t,n,i){for(var o=0,r=0,a=e.length;r<a&&o<t;r++){var s=e.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}var OM=function(){},LM=function(e){this.tokens=[],e&&(this.tokens=e)},NM=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function PM(e,t,n,i,o){var r,a,s=""===t,l=o&&n.rich[o]||{},c=e.lines,u=l.font||n.font,p=!1;if(i){var d=l.padding,h=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=zw(l.width,i.width)+h;c.length>0&&f+i.accumWidth>i.width&&(r=t.split("\n"),p=!0),i.accumWidth=f}else{var g=VM(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+h,a=g.linesWidths,r=g.lines}}else r=t.split("\n");for(var m=0;m<r.length;m++){var v=r[m],y=new OM;if(y.styleName=o,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[m]:Ew(v,u),m||p)c.push(new LM([y]));else{var x=(c[c.length-1]||(c[0]=new LM)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=y:(v||!b||s)&&x.push(y)}}}var RM=iy(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function zM(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!RM[e]}function VM(e,t,n,i,o){for(var r=[],a=[],s="",l="",c=0,u=0,p=0;p<e.length;p++){var d=e.charAt(p);if("\n"!==d){var h=Ew(d,t),f=!i&&!zM(d);(r.length?u+h>n:o+u+h>n)?u?(s||l)&&(f?(s||(s=l,l="",u=c=0),r.push(s),a.push(u-c),l+=d,s="",u=c+=h):(l&&(s+=l,l="",c=0),r.push(s),a.push(u),s=d,u=h)):f?(r.push(l),a.push(c),l=d,c=h):(r.push(d),a.push(h)):(u+=h,f?(l+=d,c+=h):(l&&(s+=l,l="",c=0),s+=d))}else l&&(s+=l,u+=c),r.push(s),a.push(u),s="",l="",c=0,u=0}return r.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(r.push(s),a.push(u)),1===r.length&&(u+=o),{accumWidth:u,lines:r,linesWidths:a}}var BM="__zr_style_"+Math.round(10*Math.random()),jM={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},FM={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jM[BM]=!0;var GM=["z","z2","invisible"],HM=["invisible"],WM=function(e){function t(t){return e.call(this,t)||this}var n;return G(t,e),t.prototype._init=function(t){for(var n=ry(t),i=0;i<n.length;i++){var o=n[i];"style"===o?this.useStyle(t[o]):e.prototype.attrKV.call(this,o,t[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){UM.copy(e.getBoundingRect()),e.transform&&UM.applyTransform(e.transform);return YM.width=t,YM.height=n,!UM.intersect(YM)}(this,e,t)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,r=i.shadowOffsetX||0,a=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new qx(0,0,0,0)),t?qx.applyTransform(e,n,t):e.copy(n),(o||r||a)&&(e.width+=2*o+Math.abs(r),e.height+=2*o+Math.abs(a),e.x=Math.min(e.x,e.x+r-o),e.y=Math.min(e.y,e.y+a-o));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new qx(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:Zv(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Py(jM,e)},t.prototype.useStyle=function(e){e[BM]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[BM]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,GM)},t.prototype._applyStateObj=function(t,n,i,o,r,a){e.prototype._applyStateObj.call(this,t,n,i,o,r,a);var s,l=!(n&&o);if(n&&n.style?r?o?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(r){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var u=ry(c),p=0;p<u.length;p++){(h=u[p])in s&&(s[h]=s[h],this.style[h]=c[h])}var d=ry(s);for(p=0;p<d.length;p++){var h=d[p];this.style[h]=this.style[h]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?HM:GM;for(p=0;p<f.length;p++){h=f[p];n&&null!=n[h]?this[h]=n[h]:l&&null!=i[h]&&(this[h]=i[h])}},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),o=0;o<t.length;o++){var r=t[o];r.style&&(n=n||{},this._mergeStyle(n,r.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,t){return Zv(e,t),e},t.prototype.getAnimationStyleProps=function(){return FM},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|hb)),t}($w),UM=new qx(0,0,0,0),YM=new qx(0,0,0,0);var qM=WM,XM=Math.min,$M=Math.max,ZM=Math.sin,KM=Math.cos,JM=2*Math.PI,QM=jy(),eC=jy(),tC=jy();function nC(e,t,n){if(0!==e.length){for(var i=e[0],o=i[0],r=i[0],a=i[1],s=i[1],l=1;l<e.length;l++)i=e[l],o=XM(o,i[0]),r=$M(r,i[0]),a=XM(a,i[1]),s=$M(s,i[1]);t[0]=o,t[1]=a,n[0]=r,n[1]=s}}function iC(e,t,n,i,o,r){o[0]=XM(e,n),o[1]=XM(t,i),r[0]=$M(e,n),r[1]=$M(t,i)}var oC=[],rC=[];function aC(e,t,n,i,o,r,a,s,l,c){var u=Pb,p=Ob,d=u(e,n,o,a,oC);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var h=0;h<d;h++){var f=p(e,n,o,a,oC[h]);l[0]=XM(f,l[0]),c[0]=$M(f,c[0])}d=u(t,i,r,s,rC);for(h=0;h<d;h++){var g=p(t,i,r,s,rC[h]);l[1]=XM(g,l[1]),c[1]=$M(g,c[1])}l[0]=XM(e,l[0]),c[0]=$M(e,c[0]),l[0]=XM(a,l[0]),c[0]=$M(a,c[0]),l[1]=XM(t,l[1]),c[1]=$M(t,c[1]),l[1]=XM(s,l[1]),c[1]=$M(s,c[1])}function sC(e,t,n,i,o,r,a,s){var l=Fb,c=Bb,u=$M(XM(l(e,n,o),1),0),p=$M(XM(l(t,i,r),1),0),d=c(e,n,o,u),h=c(t,i,r,p);a[0]=XM(e,o,d),a[1]=XM(t,r,h),s[0]=$M(e,o,d),s[1]=$M(t,r,h)}function lC(e,t,n,i,o,r,a,s,l){var c=tx,u=nx,p=Math.abs(o-r);if(p%JM<1e-4&&p>1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(QM[0]=KM(o)*n+e,QM[1]=ZM(o)*i+t,eC[0]=KM(r)*n+e,eC[1]=ZM(r)*i+t,c(s,QM,eC),u(l,QM,eC),(o%=JM)<0&&(o+=JM),(r%=JM)<0&&(r+=JM),o>r&&!a?r+=JM:o<r&&a&&(o+=JM),a){var d=r;r=o,o=d}for(var h=0;h<r;h+=Math.PI/2)h>o&&(tC[0]=KM(h)*n+e,tC[1]=ZM(h)*i+t,c(s,tC,s),u(l,tC,l))}var cC={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},uC=[],pC=[],dC=[],hC=[],fC=[],gC=[],mC=Math.min,vC=Math.max,yC=Math.cos,xC=Math.sin,bC=Math.abs,_C=Math.PI,wC=2*_C,SC="undefined"!=typeof Float32Array,MC=[];function CC(e){return Math.round(e/_C*1e8)/1e8%2*_C}function IC(e,t){var n=CC(e[0]);n<0&&(n+=wC);var i=n-e[0],o=e[1];o+=i,!t&&o-n>=wC?o=n+wC:t&&n-o>=wC?o=n-wC:!t&&n>o?o=n+(wC-CC(n-o)):t&&n<o&&(o=n-(wC-CC(o-n))),e[0]=n,e[1]=o}var TC=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(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(e,t,n){(n=n||0)>0&&(this._ux=bC(n/vw/e)||0,this._uy=bC(n/vw/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(cC.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=bC(e-this._xi),i=bC(t-this._yi),o=n>this._ux||i>this._uy;if(this.addData(cC.L,e,t),this._ctx&&o&&this._ctx.lineTo(e,t),o)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var r=n*n+i*i;r>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=r)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,o,r){return this._drawPendingPt(),this.addData(cC.C,e,t,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,o,r),this._xi=o,this._yi=r,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(cC.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,o,r){this._drawPendingPt(),MC[0]=i,MC[1]=o,IC(MC,r),i=MC[0];var a=(o=MC[1])-i;return this.addData(cC.A,e,t,n,n,i,a,0,r?0:1),this._ctx&&this._ctx.arc(e,t,n,i,o,r),this._xi=yC(o)*n+e,this._yi=xC(o)*n+t,this},e.prototype.arcTo=function(e,t,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,o),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(cC.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(cC.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!SC||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,o=0;o<t;o++)n+=e[o].len();SC&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(o=0;o<t;o++)for(var r=e[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},e.prototype.addData=function(e,t,n,i,o,r,a,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,SC&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){dC[0]=dC[1]=fC[0]=fC[1]=Number.MAX_VALUE,hC[0]=hC[1]=gC[0]=gC[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,o=0,r=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(o=n=t[e],r=i=t[e+1]),a){case cC.M:n=o=t[e++],i=r=t[e++],fC[0]=o,fC[1]=r,gC[0]=o,gC[1]=r;break;case cC.L:iC(n,i,t[e],t[e+1],fC,gC),n=t[e++],i=t[e++];break;case cC.C:aC(n,i,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],fC,gC),n=t[e++],i=t[e++];break;case cC.Q:sC(n,i,t[e++],t[e++],t[e],t[e+1],fC,gC),n=t[e++],i=t[e++];break;case cC.A:var l=t[e++],c=t[e++],u=t[e++],p=t[e++],d=t[e++],h=t[e++]+d;e+=1;var f=!t[e++];s&&(o=yC(d)*u+l,r=xC(d)*p+c),lC(l,c,u,p,d,h,f,fC,gC),n=yC(h)*u+l,i=xC(h)*p+c;break;case cC.R:iC(o=n=t[e++],r=i=t[e++],o+t[e++],r+t[e++],fC,gC);break;case cC.Z:n=o,i=r}tx(dC,dC,fC),nx(hC,hC,gC)}return 0===e&&(dC[0]=dC[1]=hC[0]=hC[1]=0),new qx(dC[0],dC[1],hC[0]-dC[0],hC[1]-dC[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,u=0,p=0;p<t;){var d=e[p++],h=1===p;h&&(a=o=e[p],s=r=e[p+1]);var f=-1;switch(d){case cC.M:o=a=e[p++],r=s=e[p++];break;case cC.L:var g=e[p++],m=(x=e[p++])-r;(bC(D=g-o)>n||bC(m)>i||p===t-1)&&(f=Math.sqrt(D*D+m*m),o=g,r=x);break;case cC.C:var v=e[p++],y=e[p++],x=(g=e[p++],e[p++]),b=e[p++],_=e[p++];f=Vb(o,r,v,y,g,x,b,_,10),o=b,r=_;break;case cC.Q:f=Wb(o,r,v=e[p++],y=e[p++],g=e[p++],x=e[p++],10),o=g,r=x;break;case cC.A:var w=e[p++],S=e[p++],M=e[p++],C=e[p++],I=e[p++],T=e[p++],A=T+I;p+=1,h&&(a=yC(I)*M+w,s=xC(I)*C+S),f=vC(M,C)*mC(wC,Math.abs(T)),o=yC(A)*M+w,r=xC(A)*C+S;break;case cC.R:a=o=e[p++],s=r=e[p++],f=2*e[p++]+2*e[p++];break;case cC.Z:var D=a-o;m=s-r;f=Math.sqrt(D*D+m*m),o=a,r=s}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var n,i,o,r,a,s,l,c,u,p,d=this.data,h=this._ux,f=this._uy,g=this._len,m=t<1,v=0,y=0,x=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=t*this._pathLen))e:for(var b=0;b<g;){var _=d[b++],w=1===b;switch(w&&(n=o=d[b],i=r=d[b+1]),_!==cC.L&&x>0&&(e.lineTo(u,p),x=0),_){case cC.M:n=o=d[b++],i=r=d[b++],e.moveTo(o,r);break;case cC.L:a=d[b++],s=d[b++];var S=bC(a-o),M=bC(s-r);if(S>h||M>f){if(m){if(v+(X=l[y++])>c){var C=(c-v)/X;e.lineTo(o*(1-C)+a*C,r*(1-C)+s*C);break e}v+=X}e.lineTo(a,s),o=a,r=s,x=0}else{var I=S*S+M*M;I>x&&(u=a,p=s,x=I)}break;case cC.C:var T=d[b++],A=d[b++],D=d[b++],k=d[b++],E=d[b++],O=d[b++];if(m){if(v+(X=l[y++])>c){Rb(o,T,D,E,C=(c-v)/X,uC),Rb(r,A,k,O,C,pC),e.bezierCurveTo(uC[1],pC[1],uC[2],pC[2],uC[3],pC[3]);break e}v+=X}e.bezierCurveTo(T,A,D,k,E,O),o=E,r=O;break;case cC.Q:T=d[b++],A=d[b++],D=d[b++],k=d[b++];if(m){if(v+(X=l[y++])>c){Gb(o,T,D,C=(c-v)/X,uC),Gb(r,A,k,C,pC),e.quadraticCurveTo(uC[1],pC[1],uC[2],pC[2]);break e}v+=X}e.quadraticCurveTo(T,A,D,k),o=D,r=k;break;case cC.A:var L=d[b++],N=d[b++],P=d[b++],R=d[b++],z=d[b++],V=d[b++],B=d[b++],j=!d[b++],F=P>R?P:R,G=bC(P-R)>.001,H=z+V,W=!1;if(m)v+(X=l[y++])>c&&(H=z+V*(c-v)/X,W=!0),v+=X;if(G&&e.ellipse?e.ellipse(L,N,P,R,B,z,H,j):e.arc(L,N,F,z,H,j),W)break e;w&&(n=yC(z)*P+L,i=xC(z)*R+N),o=yC(H)*P+L,r=xC(H)*R+N;break;case cC.R:n=o=d[b],i=r=d[b+1],a=d[b++],s=d[b++];var U=d[b++],Y=d[b++];if(m){if(v+(X=l[y++])>c){var q=c-v;e.moveTo(a,s),e.lineTo(a+mC(q,U),s),(q-=U)>0&&e.lineTo(a+U,s+mC(q,Y)),(q-=Y)>0&&e.lineTo(a+vC(U-q,0),s+Y),(q-=U)>0&&e.lineTo(a,s+vC(Y-q,0));break e}v+=X}e.rect(a,s,U,Y);break;case cC.Z:if(m){var X;if(v+(X=l[y++])>c){C=(c-v)/X;e.lineTo(o*(1-C)+n*C,r*(1-C)+i*C);break e}v+=X}e.closePath(),o=n,r=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=cC,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function AC(e,t,n,i,o,r,a){if(0===o)return!1;var s=o,l=0;if(a>t+s&&a>i+s||a<t-s&&a<i-s||r>e+s&&r>n+s||r<e-s&&r<n-s)return!1;if(e===n)return Math.abs(r-e)<=s/2;var c=(l=(t-i)/(e-n))*r-a+(e*i-n*t)/(e-n);return c*c/(l*l+1)<=s/2*s/2}function DC(e,t,n,i,o,r,a,s,l,c,u){if(0===l)return!1;var p=l;return!(u>t+p&&u>i+p&&u>r+p&&u>s+p||u<t-p&&u<i-p&&u<r-p&&u<s-p||c>e+p&&c>n+p&&c>o+p&&c>a+p||c<e-p&&c<n-p&&c<o-p&&c<a-p)&&zb(e,t,n,i,o,r,a,s,c,u,null)<=p/2}function kC(e,t,n,i,o,r,a,s,l){if(0===a)return!1;var c=a;return!(l>t+c&&l>i+c&&l>r+c||l<t-c&&l<i-c&&l<r-c||s>e+c&&s>n+c&&s>o+c||s<e-c&&s<n-c&&s<o-c)&&Hb(e,t,n,i,o,r,s,l,null)<=c/2}var EC=2*Math.PI;function OC(e){return(e%=EC)<0&&(e+=EC),e}var LC=2*Math.PI;function NC(e,t,n,i,o,r,a,s,l){if(0===a)return!1;var c=a;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(i-o)%LC<1e-4)return!0;if(r){var p=i;i=OC(o),o=OC(p)}else i=OC(i),o=OC(o);i>o&&(o+=LC);var d=Math.atan2(l,s);return d<0&&(d+=LC),d>=i&&d<=o||d+LC>=i&&d+LC<=o}function PC(e,t,n,i,o,r){if(r>t&&r>i||r<t&&r<i)return 0;if(i===t)return 0;var a=(r-t)/(i-t),s=i<t?1:-1;1!==a&&0!==a||(s=i<t?.5:-.5);var l=a*(n-e)+e;return l===o?1/0:l>o?s:0}var RC=TC.CMD,zC=2*Math.PI,VC=1e-4;var BC=[-1,-1,-1],jC=[-1,-1];function FC(e,t,n,i,o,r,a,s,l,c){if(c>t&&c>i&&c>r&&c>s||c<t&&c<i&&c<r&&c<s)return 0;var u,p=Nb(t,i,r,s,c,BC);if(0===p)return 0;for(var d=0,h=-1,f=void 0,g=void 0,m=0;m<p;m++){var v=BC[m],y=0===v||1===v?.5:1;Ob(e,n,o,a,v)<l||(h<0&&(h=Pb(t,i,r,s,jC),jC[1]<jC[0]&&h>1&&(u=void 0,u=jC[0],jC[0]=jC[1],jC[1]=u),f=Ob(t,i,r,s,jC[0]),h>1&&(g=Ob(t,i,r,s,jC[1]))),2===h?v<jC[0]?d+=f<t?y:-y:v<jC[1]?d+=g<f?y:-y:d+=s<g?y:-y:v<jC[0]?d+=f<t?y:-y:d+=s<f?y:-y)}return d}function GC(e,t,n,i,o,r,a,s){if(s>t&&s>i&&s>r||s<t&&s<i&&s<r)return 0;var l=function(e,t,n,i,o){var r=e-2*t+n,a=2*(t-e),s=e-i,l=0;if(kb(r))Eb(a)&&(u=-s/a)>=0&&u<=1&&(o[l++]=u);else{var c=a*a-4*r*s;if(kb(c))(u=-a/(2*r))>=0&&u<=1&&(o[l++]=u);else if(c>0){var u,p=wb(c),d=(-a-p)/(2*r);(u=(-a+p)/(2*r))>=0&&u<=1&&(o[l++]=u),d>=0&&d<=1&&(o[l++]=d)}}return l}(t,i,r,s,BC);if(0===l)return 0;var c=Fb(t,i,r);if(c>=0&&c<=1){for(var u=0,p=Bb(t,i,r,c),d=0;d<l;d++){var h=0===BC[d]||1===BC[d]?.5:1;Bb(e,n,o,BC[d])<a||(BC[d]<c?u+=p<t?h:-h:u+=r<p?h:-h)}return u}h=0===BC[0]||1===BC[0]?.5:1;return Bb(e,n,o,BC[0])<a?0:r<t?h:-h}function HC(e,t,n,i,o,r,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);BC[0]=-l,BC[1]=l;var c=Math.abs(i-o);if(c<1e-4)return 0;if(c>=zC-1e-4){i=0,o=zC;var u=r?1:-1;return a>=BC[0]+e&&a<=BC[1]+e?u:0}if(i>o){var p=i;i=o,o=p}i<0&&(i+=zC,o+=zC);for(var d=0,h=0;h<2;h++){var f=BC[h];if(f+e>a){var g=Math.atan2(s,f);u=r?1:-1;g<0&&(g=zC+g),(g>=i&&g<=o||g+zC>=i&&g+zC<=o)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),d+=u)}}return d}function WC(e,t,n,i,o){for(var r,a,s,l,c=e.data,u=e.len(),p=0,d=0,h=0,f=0,g=0,m=0;m<u;){var v=c[m++],y=1===m;switch(v===RC.M&&m>1&&(n||(p+=PC(d,h,f,g,i,o))),y&&(f=d=c[m],g=h=c[m+1]),v){case RC.M:d=f=c[m++],h=g=c[m++];break;case RC.L:if(n){if(AC(d,h,c[m],c[m+1],t,i,o))return!0}else p+=PC(d,h,c[m],c[m+1],i,o)||0;d=c[m++],h=c[m++];break;case RC.C:if(n){if(DC(d,h,c[m++],c[m++],c[m++],c[m++],c[m],c[m+1],t,i,o))return!0}else p+=FC(d,h,c[m++],c[m++],c[m++],c[m++],c[m],c[m+1],i,o)||0;d=c[m++],h=c[m++];break;case RC.Q:if(n){if(kC(d,h,c[m++],c[m++],c[m],c[m+1],t,i,o))return!0}else p+=GC(d,h,c[m++],c[m++],c[m],c[m+1],i,o)||0;d=c[m++],h=c[m++];break;case RC.A:var x=c[m++],b=c[m++],_=c[m++],w=c[m++],S=c[m++],M=c[m++];m+=1;var C=!!(1-c[m++]);r=Math.cos(S)*_+x,a=Math.sin(S)*w+b,y?(f=r,g=a):p+=PC(d,h,r,a,i,o);var I=(i-x)*w/_+x;if(n){if(NC(x,b,w,S,S+M,C,t,I,o))return!0}else p+=HC(x,b,w,S,S+M,C,I,o);d=Math.cos(S+M)*_+x,h=Math.sin(S+M)*w+b;break;case RC.R:if(f=d=c[m++],g=h=c[m++],r=f+c[m++],a=g+c[m++],n){if(AC(f,g,r,g,t,i,o)||AC(r,g,r,a,t,i,o)||AC(r,a,f,a,t,i,o)||AC(f,a,f,g,t,i,o))return!0}else p+=PC(r,g,r,a,i,o),p+=PC(f,a,f,g,i,o);break;case RC.Z:if(n){if(AC(d,h,f,g,t,i,o))return!0}else p+=PC(d,h,f,g,i,o);d=f,h=g}}return n||(s=h,l=g,Math.abs(s-l)<VC)||(p+=PC(d,h,f,g,i,o)||0),0!==p}var UC=Kv({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},jM),YC={style:Kv({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},FM.style)},qC=Aw.concat(["invisible","culling","z","z2","zlevel","parent"]),XC=function(e){function t(t){return e.call(this,t)||this}var n;return G(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(e){n.buildPath(e,n.shape)}),o.silent=!0;var r=o.style;for(var a in i)r[a]!==i[a]&&(r[a]=i[a]);r.fill=i.fill?i.decal:null,r.decal=null,r.shadowColor=null,i.strokeFirst&&(r.stroke=null);for(var s=0;s<qC.length;++s)o[qC[s]]=this[qC[s]];o.__dirty|=hb}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=ry(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<n.length;o++){var r=n[o],a=t[r];"style"===r?this.style?Zv(this.style,a):this.useStyle(a):"shape"===r?Zv(this.shape,a):e.prototype.attrKV.call(this,r,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(uy(e)){var t=m_(e,0);return t>.5?yw:t>.2?"#eee":xw}if(e)return xw}return yw},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(uy(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===m_(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~fb},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new TC(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&fb)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var r=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){r.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(r.width+=s/a,r.height+=s/a,r.x-=s/a/2,r.y-=s/a/2)}return r}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),o=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var r=this.path;if(this.hasStroke()){var a=o.lineWidth,s=o.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,i){return WC(e,t,!0,n,i)}(r,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return WC(e,0,!1,t,n)}(r,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=fb,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:Zv(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&fb)},t.prototype.createStyle=function(e){return Py(UC,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Zv({},this.shape))},t.prototype._applyStateObj=function(t,n,i,o,r,a){e.prototype._applyStateObj.call(this,t,n,i,o,r,a);var s,l=!(n&&o);if(n&&n.shape?r?o?s=n.shape:(s=Zv({},i.shape),Zv(s,n.shape)):(s=Zv({},o?this.shape:i.shape),Zv(s,n.shape)):l&&(s=i.shape),s)if(r){this.shape=Zv({},this.shape);for(var c={},u=ry(s),p=0;p<u.length;p++){var d=u[p];"object"==typeof s[d]?this.shape[d]=s[d]:c[d]=s[d]}this._transitionState(t,{shape:c},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),o=0;o<t.length;o++){var r=t[o];r.shape&&(n=n||{},this._mergeStyle(n,r.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return YC},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return G(n,t),n.prototype.getDefaultStyle=function(){return qv(e.style)},n.prototype.getDefaultShape=function(){return qv(e.shape)},n}(t);for(var i in e)"function"==typeof e[i]&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|hb|fb)),t}(qM),$C=XC,ZC=Kv({strokeFirst:!0,font:Av,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},UC),KC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Py(ZC,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Lw(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(qM);KC.prototype.type="tspan";var JC=KC,QC=Kv({x:0,y:0},jM),eI={style:Kv({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},FM.style)};var tI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.createStyle=function(e){return Py(QC,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i,o=(i=t.image)&&"string"!=typeof i&&i.width&&i.height?t.image:this.__image;if(!o)return 0;var r="width"===e?"height":"width",a=t[r];return null==a?o[e]:o[e]/o[r]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return eI},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new qx(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(qM);tI.prototype.type="image";var nI=tI;var iI=Math.round;function oI(e,t,n){if(t){var i=t.x1,o=t.x2,r=t.y1,a=t.y2;e.x1=i,e.x2=o,e.y1=r,e.y2=a;var s=n&&n.lineWidth;return s?(iI(2*i)===iI(2*o)&&(e.x1=e.x2=aI(i,s,!0)),iI(2*r)===iI(2*a)&&(e.y1=e.y2=aI(r,s,!0)),e):e}}function rI(e,t,n){if(t){var i=t.x,o=t.y,r=t.width,a=t.height;e.x=i,e.y=o,e.width=r,e.height=a;var s=n&&n.lineWidth;return s?(e.x=aI(i,s,!0),e.y=aI(o,s,!0),e.width=Math.max(aI(i+r,s,!1)-e.x,0===r?0:1),e.height=Math.max(aI(o+a,s,!1)-e.y,0===a?0:1),e):e}}function aI(e,t,n){if(!t)return e;var i=iI(2*e);return(i+iI(t))%2==0?i/2:(i+(n?1:-1))/2}var sI=function(){this.x=0,this.y=0,this.width=0,this.height=0},lI={},cI=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultShape=function(){return new sI},t.prototype.buildPath=function(e,t){var n,i,o,r;if(this.subPixelOptimize){var a=rI(lI,t,this.style);n=a.x,i=a.y,o=a.width,r=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,o=t.width,r=t.height;t.r?function(e,t){var n,i,o,r,a,s=t.x,l=t.y,c=t.width,u=t.height,p=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"==typeof p?n=i=o=r=p:p instanceof Array?1===p.length?n=i=o=r=p[0]:2===p.length?(n=o=p[0],i=r=p[1]):3===p.length?(n=p[0],i=r=p[1],o=p[2]):(n=p[0],i=p[1],o=p[2],r=p[3]):n=i=o=r=0,n+i>c&&(n*=c/(a=n+i),i*=c/a),o+r>c&&(o*=c/(a=o+r),r*=c/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),n+r>u&&(n*=u/(a=n+r),r*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-i,l),0!==i&&e.arc(s+c-i,l+i,i,-Math.PI/2,0),e.lineTo(s+c,l+u-o),0!==o&&e.arc(s+c-o,l+u-o,o,0,Math.PI/2),e.lineTo(s+r,l+u),0!==r&&e.arc(s+r,l+u-r,r,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,i,o,r)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($C);cI.prototype.type="rect";var uI=cI,pI={fill:"#000"},dI={style:Kv({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},FM.style)},hI=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=pI,n.attr(t),n}return G(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];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 t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,bI(e=this.style),ty(e.rich,bI),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);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 e=new qx(0,0,0,0),t=this._children,n=[],i=null,o=0;o<t.length;o++){var r=t[o],a=r.getBoundingRect(),s=r.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(i=i||e.clone()).union(e)):(i=i||a.clone()).union(a)}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||pI},t.prototype.setTextContent=function(e){if("production"!==process.env.NODE_ENV)throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return Zv(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=ry(t),i=0;i<n.length;i++){var o=n[i];e[o]=e[o]||{},Zv(e[o],t[o])}},t.prototype.getAnimationStyleProps=function(){return dI},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||Av,n=e.padding,i=function(e,t){null!=e&&(e+="");var n,i=t.overflow,o=t.padding,r=t.font,a="truncate"===i,s=Rw(r),l=_y(t.lineHeight,s),c=!!t.backgroundColor,u="truncate"===t.lineOverflow,p=t.width,d=(n=null==p||"break"!==i&&"breakAll"!==i?e?e.split("\n"):[]:e?VM(e,t.font,p,"breakAll"===i,0).lines:[]).length*l,h=_y(t.height,d);if(d>h&&u){var f=Math.floor(h/l);n=n.slice(0,f)}if(e&&a&&null!=p)for(var g=DM(p,r,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<n.length;m++)n[m]=kM(n[m],g);var v=h,y=0;for(m=0;m<n.length;m++)y=Math.max(Ew(n[m],r),y);null==p&&(p=y);var x=y;return o&&(v+=o[0]+o[2],x+=o[1]+o[3],p+=o[1]+o[3]),c&&(x=p),{lines:n,height:h,outerWidth:x,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:d,width:p}}(MI(e),e),o=CI(e),r=!!e.backgroundColor,a=i.outerHeight,s=i.outerWidth,l=i.contentWidth,c=i.lines,u=i.lineHeight,p=this._defaultStyle,d=e.x||0,h=e.y||0,f=e.align||p.align||"left",g=e.verticalAlign||p.verticalAlign||"top",m=d,v=Pw(h,i.contentHeight,g);if(o||n){var y=Nw(d,s,f),x=Pw(h,a,g);o&&this._renderBackground(e,e,y,x,s,a)}v+=u/2,n&&(m=SI(d,f,n),"top"===g?v+=n[0]:"bottom"===g&&(v-=n[2]));for(var b=0,_=!1,w=(wI("fill"in e?e.fill:(_=!0,p.fill))),S=(_I("stroke"in e?e.stroke:r||p.autoStroke&&!_?null:(b=2,p.stroke))),M=e.textShadowBlur>0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),I=i.calculatedLineHeight,T=0;T<c.length;T++){var A=this._getOrCreateChild(JC),D=A.createStyle();A.useStyle(D),D.text=c[T],D.x=m,D.y=v,f&&(D.textAlign=f),D.textBaseline="middle",D.opacity=e.opacity,D.strokeFirst=!0,M&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||"transparent",D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=S,D.fill=w,S&&(D.lineWidth=e.lineWidth||b,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,yI(D,e),v+=u,C&&A.setBoundingRect(new qx(Nw(D.x,e.width,D.textAlign),Pw(D.y,I,D.textBaseline),l,I))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new NM;if(null!=e&&(e+=""),!e)return n;for(var i,o=t.width,r=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===a},l=TM.lastIndex=0;null!=(i=TM.exec(e));){var c=i.index;c>l&&PM(n,e.substring(l,c),t,s),PM(n,i[2],t,s,i[1]),l=TM.lastIndex}l<e.length&&PM(n,e.substring(l,e.length),t,s);var u=[],p=0,d=0,h=t.padding,f="truncate"===a,g="truncate"===t.lineOverflow;function m(e,t,n){e.width=t,e.lineHeight=n,p+=n,d=Math.max(d,t)}e:for(var v=0;v<n.lines.length;v++){for(var y=n.lines[v],x=0,b=0,_=0;_<y.tokens.length;_++){var w=(O=y.tokens[_]).styleName&&t.rich[O.styleName]||{},S=O.textPadding=w.padding,M=S?S[1]+S[3]:0,C=O.font=w.font||t.font;O.contentHeight=Rw(C);var I=_y(w.height,O.contentHeight);if(O.innerHeight=I,S&&(I+=S[0]+S[2]),O.height=I,O.lineHeight=wy(w.lineHeight,t.lineHeight,I),O.align=w&&w.align||t.align,O.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=r&&p+O.lineHeight>r){_>0?(y.tokens=y.tokens.slice(0,_),m(y,b,x),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break e}var T=w.width,A=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))O.percentWidth=T,u.push(O),O.contentWidth=Ew(O.text,C);else{if(A){var D=w.backgroundColor,k=D&&D.image;k&&IM(k=SM(k))&&(O.width=Math.max(O.width,k.width*I/k.height))}var E=f&&null!=o?o-b:null;null!=E&&E<O.width?!A||E<M?(O.text="",O.width=O.contentWidth=0):(O.text=AM(O.text,E-M,C,t.ellipsis,{minChar:t.truncateMinChar}),O.width=O.contentWidth=Ew(O.text,C)):O.contentWidth=Ew(O.text,C)}O.width+=M,b+=O.width,w&&(x=Math.max(x,O.lineHeight))}m(y,b,x)}for(n.outerWidth=n.width=_y(o,d),n.outerHeight=n.height=_y(r,p),n.contentHeight=p,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]),v=0;v<u.length;v++){var O,L=(O=u[v]).percentWidth;O.width=parseInt(L,10)/100*n.width}return n}(MI(e),e),n=t.width,i=t.outerWidth,o=t.outerHeight,r=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,c=e.align||l.align,u=e.verticalAlign||l.verticalAlign,p=Nw(a,i,c),d=Pw(s,o,u),h=p,f=d;r&&(h+=r[3],f+=r[0]);var g=h+n;CI(e)&&this._renderBackground(e,e,p,d,i,o);for(var m=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var y=t.lines[v],x=y.tokens,b=x.length,_=y.lineHeight,w=y.width,S=0,M=h,C=g,I=b-1,T=void 0;S<b&&(!(T=x[S]).align||"left"===T.align);)this._placeToken(T,e,_,f,M,"left",m),w-=T.width,M+=T.width,S++;for(;I>=0&&"right"===(T=x[I]).align;)this._placeToken(T,e,_,f,C,"right",m),w-=T.width,C-=T.width,I--;for(M+=(n-(M-h)-(g-C)-w)/2;S<=I;)T=x[S],this._placeToken(T,e,_,f,M+T.width/2,"center",m),M+=T.width,S++;f+=_}},t.prototype._placeToken=function(e,t,n,i,o,r,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=i+n/2;"top"===l?c=i+e.height/2:"bottom"===l&&(c=i+n-e.height/2),!e.isLineHolder&&CI(s)&&this._renderBackground(s,t,"right"===r?o-e.width:"center"===r?o-e.width/2:o,c-e.height/2,e.width,e.height);var u=!!s.backgroundColor,p=e.textPadding;p&&(o=SI(o,r,p),c-=e.height/2-p[0]-e.innerHeight/2);var d=this._getOrCreateChild(JC),h=d.createStyle();d.useStyle(h);var f=this._defaultStyle,g=!1,m=0,v=wI("fill"in s?s.fill:"fill"in t?t.fill:(g=!0,f.fill)),y=_I("stroke"in s?s.stroke:"stroke"in t?t.stroke:u||a||f.autoStroke&&!g?null:(m=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;h.text=e.text,h.x=o,h.y=c,x&&(h.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,h.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",h.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,h.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),h.textAlign=r,h.textBaseline="middle",h.font=e.font||Av,h.opacity=wy(s.opacity,t.opacity,1),yI(h,s),y&&(h.lineWidth=wy(s.lineWidth,t.lineWidth,m),h.lineDash=_y(s.lineDash,t.lineDash),h.lineDashOffset=t.lineDashOffset||0,h.stroke=y),v&&(h.fill=v);var b=e.contentWidth,_=e.contentHeight;d.setBoundingRect(new qx(Nw(h.x,b,h.textAlign),Pw(h.y,_,h.textBaseline),b,_))},t.prototype._renderBackground=function(e,t,n,i,o,r){var a,s,l,c=e.backgroundColor,u=e.borderWidth,p=e.borderColor,d=c&&c.image,h=c&&!d,f=e.borderRadius,g=this;if(h||e.lineHeight||u&&p){(a=this._getOrCreateChild(uI)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=o,m.height=r,m.r=f,a.dirtyShape()}if(h)(l=a.style).fill=c||null,l.fillOpacity=_y(e.fillOpacity,1);else if(d){(s=this._getOrCreateChild(nI)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=c.image,v.x=n,v.y=i,v.width=o,v.height=r}u&&p&&((l=a.style).lineWidth=u,l.stroke=p,l.strokeOpacity=_y(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=wy(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return xI(e)&&(t=[e.fontStyle,e.fontWeight,vI(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Iy(t)||e.textFont||e.font},t}(qM),fI={left:!0,right:1,center:1},gI={top:1,bottom:1,middle:1},mI=["fontStyle","fontWeight","fontSize","fontFamily"];function vI(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?Iv+"px":e+"px":e}function yI(e,t){for(var n=0;n<mI.length;n++){var i=mI[n],o=t[i];null!=o&&(e[i]=o)}}function xI(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function bI(e){if(e){e.font=hI.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||fI[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||gI[n]?n:"top",e.padding&&(e.padding=My(e.padding))}}function _I(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function wI(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function SI(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function MI(e){var t=e.text;return null!=t&&(t+=""),t}function CI(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var II=hI,TI=QS(),AI=function(e,t,n,i){if(i){var o=TI(i);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,o.ssrType="chart","group"===i.type&&i.traverse((function(i){var o=TI(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"}))}},DI=1,kI={},EI=QS(),OI=QS(),LI=0,NI=1,PI=2,RI=["emphasis","blur","select"],zI=["normal","emphasis","blur","select"],VI=10,BI=9,jI="highlight",FI="downplay",GI="select",HI="unselect",WI="toggleSelect";function UI(e){return null!=e&&"none"!==e}function YI(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function qI(e){YI(e,"emphasis",PI)}function XI(e){e.hoverState===PI&&YI(e,"normal",LI)}function $I(e){YI(e,"blur",NI)}function ZI(e){e.hoverState===NI&&YI(e,"normal",LI)}function KI(e){e.selected=!0}function JI(e){e.selected=!1}function QI(e,t,n){t(e,n)}function eT(e,t,n){QI(e,t,n),e.isGroup&&e.traverse((function(e){QI(e,t,n)}))}function tT(e,t){switch(t){case"emphasis":e.hoverState=PI;break;case"normal":e.hoverState=LI;break;case"blur":e.hoverState=NI;break;case"select":e.selected=!0}}function nT(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,i){var o=n&&Jv(n,"select")>=0,r=!1;if(e instanceof $C){var a=EI(e),s=o&&a.selectFill||a.normalFill,l=o&&a.selectStroke||a.normalStroke;if(UI(s)||UI(l)){var c=(i=i||{}).style||{};"inherit"===c.fill?(r=!0,i=Zv({},i),(c=Zv({},c)).fill=s):!UI(c.fill)&&UI(s)?(r=!0,i=Zv({},i),(c=Zv({},c)).fill=y_(s)):!UI(c.stroke)&&UI(l)&&(r||(i=Zv({},i),c=Zv({},c)),c.stroke=y_(l)),i.style=c}}if(i&&null==i.z2){r||(i=Zv({},i));var u=e.z2EmphasisLift;i.z2=e.z2+(null!=u?u:VI)}return i}(this,0,t,n);if("blur"===e)return function(e,t,n){var i=Jv(e.currentStates,t)>=0,o=e.style.opacity,r=i?null:function(e,t,n,i){for(var o=e.style,r={},a=0;a<t.length;a++){var s=t[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&"style"===c.targetName&&c.saveTo(r,t)}return r}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Zv({},n),a=Zv({opacity:i?o:.1*r.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=Zv({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:BI)}return n}(this,0,n)}return n}function iT(e){e.stateProxy=nT;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=nT),n&&(n.stateProxy=nT)}function oT(e,t){!dT(e,t)&&!e.__highByOuter&&eT(e,qI)}function rT(e,t){!dT(e,t)&&!e.__highByOuter&&eT(e,XI)}function aT(e,t){e.__highByOuter|=1<<(t||0),eT(e,qI)}function sT(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&eT(e,XI)}function lT(e){eT(e,$I)}function cT(e){eT(e,ZI)}function uT(e){eT(e,KI)}function pT(e){eT(e,JI)}function dT(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function hT(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,o){var r=OI(o),a="series"===t,s=a?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!a&&i.push(s),r.isBlured&&(s.group.traverse((function(e){ZI(e)})),a&&n.push(o)),r.isBlured=!1})),ty(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function fT(e,t,n,i){var o=i.getModel();function r(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&cT(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=o.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries((function(e){var o=a===e,c=e.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&s?c===s:o)||"series"===t&&o)){if(i.getViewOfSeriesModel(e).group.traverse((function(e){e.__highByOuter&&o&&"self"===t||$I(e)})),ey(t))r(e.getData(),t);else if(hy(t))for(var u=ry(t),p=0;p<u.length;p++)r(e.getData(u[p]),t[u[p]]);l.push(e),OI(e).isBlured=!0}})),o.eachComponent((function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,o)}}))}}function gT(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){OI(i).isBlured=!0;var o=n.getViewOfComponentModel(i);o&&o.focusBlurEnabled&&o.group.traverse((function(e){$I(e)}))}}}function mT(e,t,n,i){var o={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return o;var r=i.getModel().getComponent(e,t);if(!r)return o;var a=i.getViewOfComponentModel(r);if(!a||!a.findHighDownDispatchers)return o;for(var s,l=a.findHighDownDispatchers(n),c=0;c<l.length;c++)if("production"===process.env.NODE_ENV||IT(l[c])||ES("param should be highDownDispatcher"),"self"===TI(l[c]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function vT(e){ty(e.getAllData(),(function(t){var n=t.data,i=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,i)?uT(t):pT(t)}))}))}function yT(e){var t=[];return e.eachSeries((function(e){ty(e.getAllData(),(function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var r={dataIndex:o,seriesIndex:e.seriesIndex};null!=i&&(r.dataType=i),t.push(r)}}))})),t}function xT(e,t,n){CT(e,!0),eT(e,iT),_T(e,t,n)}function bT(e,t,n,i){i?function(e){CT(e,!1)}(e):xT(e,t,n)}function _T(e,t,n){var i=TI(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var wT=["emphasis","blur","select"],ST={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function MT(e,t,n,i){n=n||"itemStyle";for(var o=0;o<wT.length;o++){var r=wT[o],a=t.getModel([r,n]);e.ensureState(r).style=i?i(a):a[ST[n]]()}}function CT(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function IT(e){return!(!e||!e.__highDownDispatcher)}function TT(e){var t=e.type;return t===GI||t===HI||t===WI}function AT(e){var t=e.type;return t===jI||t===FI}var DT=TC.CMD,kT=[[],[],[]],ET=Math.sqrt,OT=Math.atan2;function LT(e,t){if(t){var n,i,o,r,a,s,l=e.data,c=e.len(),u=DT.M,p=DT.C,d=DT.L,h=DT.R,f=DT.A,g=DT.Q;for(o=0,r=0;o<c;){switch(n=l[o++],r=o,i=0,n){case u:case d:i=1;break;case p:i=3;break;case g:i=2;break;case f:var m=t[4],v=t[5],y=ET(t[0]*t[0]+t[1]*t[1]),x=ET(t[2]*t[2]+t[3]*t[3]),b=OT(-t[1]/x,t[0]/y);l[o]*=y,l[o++]+=m,l[o]*=x,l[o++]+=v,l[o++]*=y,l[o++]*=x,l[o++]+=b,l[o++]+=b,r=o+=2;break;case h:s[0]=l[o++],s[1]=l[o++],ex(s,s,t),l[r++]=s[0],l[r++]=s[1],s[0]+=l[o++],s[1]+=l[o++],ex(s,s,t),l[r++]=s[0],l[r++]=s[1]}for(a=0;a<i;a++){var _=kT[a];_[0]=l[o++],_[1]=l[o++],ex(_,_,t),l[r++]=_[0],l[r++]=_[1]}}e.increaseVersion()}}var NT=Math.sqrt,PT=Math.sin,RT=Math.cos,zT=Math.PI;function VT(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function BT(e,t){return(e[0]*t[0]+e[1]*t[1])/(VT(e)*VT(t))}function jT(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(BT(e,t))}function FT(e,t,n,i,o,r,a,s,l,c,u){var p=l*(zT/180),d=RT(p)*(e-n)/2+PT(p)*(t-i)/2,h=-1*PT(p)*(e-n)/2+RT(p)*(t-i)/2,f=d*d/(a*a)+h*h/(s*s);f>1&&(a*=NT(f),s*=NT(f));var g=(o===r?-1:1)*NT((a*a*(s*s)-a*a*(h*h)-s*s*(d*d))/(a*a*(h*h)+s*s*(d*d)))||0,m=g*a*h/s,v=g*-s*d/a,y=(e+n)/2+RT(p)*m-PT(p)*v,x=(t+i)/2+PT(p)*m+RT(p)*v,b=jT([1,0],[(d-m)/a,(h-v)/s]),_=[(d-m)/a,(h-v)/s],w=[(-1*d-m)/a,(-1*h-v)/s],S=jT(_,w);if(BT(_,w)<=-1&&(S=zT),BT(_,w)>=1&&(S=0),S<0){var M=Math.round(S/zT*1e6)/1e6;S=2*zT+M%2*zT}u.addData(c,y,x,a,s,b,S,p,r)}var GT=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,HT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var WT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.applyTransform=function(e){},t}($C);function UT(e){return null!=e.setData}function YT(e,t){var n=function(e){var t=new TC;if(!e)return t;var n,i=0,o=0,r=i,a=o,s=TC.CMD,l=e.match(GT);if(!l)return t;for(var c=0;c<l.length;c++){for(var u=l[c],p=u.charAt(0),d=void 0,h=u.match(HT)||[],f=h.length,g=0;g<f;g++)h[g]=parseFloat(h[g]);for(var m=0;m<f;){var v=void 0,y=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,M=i,C=o,I=void 0,T=void 0;switch(p){case"l":i+=h[m++],o+=h[m++],d=s.L,t.addData(d,i,o);break;case"L":i=h[m++],o=h[m++],d=s.L,t.addData(d,i,o);break;case"m":i+=h[m++],o+=h[m++],d=s.M,t.addData(d,i,o),r=i,a=o,p="l";break;case"M":i=h[m++],o=h[m++],d=s.M,t.addData(d,i,o),r=i,a=o,p="L";break;case"h":i+=h[m++],d=s.L,t.addData(d,i,o);break;case"H":i=h[m++],d=s.L,t.addData(d,i,o);break;case"v":o+=h[m++],d=s.L,t.addData(d,i,o);break;case"V":o=h[m++],d=s.L,t.addData(d,i,o);break;case"C":d=s.C,t.addData(d,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),i=h[m-2],o=h[m-1];break;case"c":d=s.C,t.addData(d,h[m++]+i,h[m++]+o,h[m++]+i,h[m++]+o,h[m++]+i,h[m++]+o),i+=h[m-2],o+=h[m-1];break;case"S":v=i,y=o,I=t.len(),T=t.data,n===s.C&&(v+=i-T[I-4],y+=o-T[I-3]),d=s.C,M=h[m++],C=h[m++],i=h[m++],o=h[m++],t.addData(d,v,y,M,C,i,o);break;case"s":v=i,y=o,I=t.len(),T=t.data,n===s.C&&(v+=i-T[I-4],y+=o-T[I-3]),d=s.C,M=i+h[m++],C=o+h[m++],i+=h[m++],o+=h[m++],t.addData(d,v,y,M,C,i,o);break;case"Q":M=h[m++],C=h[m++],i=h[m++],o=h[m++],d=s.Q,t.addData(d,M,C,i,o);break;case"q":M=h[m++]+i,C=h[m++]+o,i+=h[m++],o+=h[m++],d=s.Q,t.addData(d,M,C,i,o);break;case"T":v=i,y=o,I=t.len(),T=t.data,n===s.Q&&(v+=i-T[I-4],y+=o-T[I-3]),i=h[m++],o=h[m++],d=s.Q,t.addData(d,v,y,i,o);break;case"t":v=i,y=o,I=t.len(),T=t.data,n===s.Q&&(v+=i-T[I-4],y+=o-T[I-3]),i+=h[m++],o+=h[m++],d=s.Q,t.addData(d,v,y,i,o);break;case"A":x=h[m++],b=h[m++],_=h[m++],w=h[m++],S=h[m++],FT(M=i,C=o,i=h[m++],o=h[m++],w,S,x,b,_,d=s.A,t);break;case"a":x=h[m++],b=h[m++],_=h[m++],w=h[m++],S=h[m++],FT(M=i,C=o,i+=h[m++],o+=h[m++],w,S,x,b,_,d=s.A,t)}}"z"!==p&&"Z"!==p||(d=s.Z,t.addData(d),i=r,o=a),n=d}return t.toStatic(),t}(e),i=Zv({},t);return i.buildPath=function(e){if(UT(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},i.applyTransform=function(e){LT(n,e),this.dirtyShape()},i}function qT(e,t){return new WT(YT(e,t))}function XT(e,t){t=t||{};var n=new $C;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?LT(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var $T=function(){this.cx=0,this.cy=0,this.r=0},ZT=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultShape=function(){return new $T},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}($C);ZT.prototype.type="circle";var KT=ZT,JT=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},QT=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultShape=function(){return new JT},t.prototype.buildPath=function(e,t){var n=.5522848,i=t.cx,o=t.cy,r=t.rx,a=t.ry,s=r*n,l=a*n;e.moveTo(i-r,o),e.bezierCurveTo(i-r,o-l,i-s,o-a,i,o-a),e.bezierCurveTo(i+s,o-a,i+r,o-l,i+r,o),e.bezierCurveTo(i+r,o+l,i+s,o+a,i,o+a),e.bezierCurveTo(i-s,o+a,i-r,o+l,i-r,o),e.closePath()},t}($C);QT.prototype.type="ellipse";var eA=QT,tA=Math.PI,nA=2*tA,iA=Math.sin,oA=Math.cos,rA=Math.acos,aA=Math.atan2,sA=Math.abs,lA=Math.sqrt,cA=Math.max,uA=Math.min,pA=1e-4;function dA(e,t,n,i,o,r,a){var s=e-n,l=t-i,c=(a?r:-r)/lA(s*s+l*l),u=c*l,p=-c*s,d=e+u,h=t+p,f=n+u,g=i+p,m=(d+f)/2,v=(h+g)/2,y=f-d,x=g-h,b=y*y+x*x,_=o-r,w=d*g-f*h,S=(x<0?-1:1)*lA(cA(0,_*_*b-w*w)),M=(w*x-y*S)/b,C=(-w*y-x*S)/b,I=(w*x+y*S)/b,T=(-w*y+x*S)/b,A=M-m,D=C-v,k=I-m,E=T-v;return A*A+D*D>k*k+E*E&&(M=I,C=T),{cx:M,cy:C,x0:-u,y0:-p,x1:M*(o/_-1),y1:C*(o/_-1)}}function hA(e,t){var n,i=cA(t.r,0),o=cA(t.r0||0,0),r=i>0;if(r||o>0){if(r||(i=o,o=0),o>i){var a=i;i=o,o=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var c=t.cx,u=t.cy,p=!!t.clockwise,d=sA(l-s),h=d>nA&&d%nA;if(h>pA&&(d=h),i>pA)if(d>nA-pA)e.moveTo(c+i*oA(s),u+i*iA(s)),e.arc(c,u,i,s,l,!p),o>pA&&(e.moveTo(c+o*oA(l),u+o*iA(l)),e.arc(c,u,o,l,s,p));else{var f=void 0,g=void 0,m=void 0,v=void 0,y=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,M=void 0,C=void 0,I=void 0,T=void 0,A=void 0,D=void 0,k=i*oA(s),E=i*iA(s),O=o*oA(l),L=o*iA(l),N=d>pA;if(N){var P=t.cornerRadius;P&&(n=function(e){var t;if(ly(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(P),f=n[0],g=n[1],m=n[2],v=n[3]);var R=sA(i-o)/2;if(y=uA(R,m),x=uA(R,v),b=uA(R,f),_=uA(R,g),M=w=cA(y,x),C=S=cA(b,_),(w>pA||S>pA)&&(I=i*oA(l),T=i*iA(l),A=o*oA(s),D=o*iA(s),d<tA)){var z=function(e,t,n,i,o,r,a,s){var l=n-e,c=i-t,u=a-o,p=s-r,d=p*l-u*c;if(!(d*d<pA))return[e+(d=(u*(t-r)-p*(e-o))/d)*l,t+d*c]}(k,E,A,D,I,T,O,L);if(z){var V=k-z[0],B=E-z[1],j=I-z[0],F=T-z[1],G=1/iA(rA((V*j+B*F)/(lA(V*V+B*B)*lA(j*j+F*F)))/2),H=lA(z[0]*z[0]+z[1]*z[1]);M=uA(w,(i-H)/(G+1)),C=uA(S,(o-H)/(G-1))}}}if(N)if(M>pA){var W=uA(m,M),U=uA(v,M),Y=dA(A,D,k,E,i,W,p),q=dA(I,T,O,L,i,U,p);e.moveTo(c+Y.cx+Y.x0,u+Y.cy+Y.y0),M<w&&W===U?e.arc(c+Y.cx,u+Y.cy,M,aA(Y.y0,Y.x0),aA(q.y0,q.x0),!p):(W>0&&e.arc(c+Y.cx,u+Y.cy,W,aA(Y.y0,Y.x0),aA(Y.y1,Y.x1),!p),e.arc(c,u,i,aA(Y.cy+Y.y1,Y.cx+Y.x1),aA(q.cy+q.y1,q.cx+q.x1),!p),U>0&&e.arc(c+q.cx,u+q.cy,U,aA(q.y1,q.x1),aA(q.y0,q.x0),!p))}else e.moveTo(c+k,u+E),e.arc(c,u,i,s,l,!p);else e.moveTo(c+k,u+E);if(o>pA&&N)if(C>pA){W=uA(f,C),Y=dA(O,L,I,T,o,-(U=uA(g,C)),p),q=dA(k,E,A,D,o,-W,p);e.lineTo(c+Y.cx+Y.x0,u+Y.cy+Y.y0),C<S&&W===U?e.arc(c+Y.cx,u+Y.cy,C,aA(Y.y0,Y.x0),aA(q.y0,q.x0),!p):(U>0&&e.arc(c+Y.cx,u+Y.cy,U,aA(Y.y0,Y.x0),aA(Y.y1,Y.x1),!p),e.arc(c,u,o,aA(Y.cy+Y.y1,Y.cx+Y.x1),aA(q.cy+q.y1,q.cx+q.x1),p),W>0&&e.arc(c+q.cx,u+q.cy,W,aA(q.y1,q.x1),aA(q.y0,q.x0),!p))}else e.lineTo(c+O,u+L),e.arc(c,u,o,l,s,p);else e.lineTo(c+O,u+L)}else e.moveTo(c,u);e.closePath()}}}var fA=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},gA=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultShape=function(){return new fA},t.prototype.buildPath=function(e,t){hA(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($C);gA.prototype.type="sector";var mA=gA,vA=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},yA=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultShape=function(){return new vA},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,o=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,o,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,o,!0)},t}($C);yA.prototype.type="ring";var xA=yA;function bA(e,t,n){var i=t.smooth,o=t.points;if(o&&o.length>=2){if(i){var r=function(e,t,n,i){var o,r,a,s,l=[],c=[],u=[],p=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)tx(a,a,e[d]),nx(s,s,e[d]);tx(a,a,i[0]),nx(s,s,i[1])}for(d=0,h=e.length;d<h;d++){var f=e[d];if(n)o=e[d?d-1:h-1],r=e[(d+1)%h];else{if(0===d||d===h-1){l.push(Gy(e[d]));continue}o=e[d-1],r=e[d+1]}Yy(c,r,o),Xy(c,c,t);var g=Zy(f,o),m=Zy(f,r),v=g+m;0!==v&&(g/=v,m/=v),Xy(u,c,-g),Xy(p,c,m);var y=Wy([],f,u),x=Wy([],f,p);i&&(nx(y,y,a),tx(y,y,s),nx(x,x,a),tx(x,x,s)),l.push(y),l.push(x)}return n&&l.push(l.shift()),l}(o,i,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s<(n?a:a-1);s++){var l=r[2*s],c=r[2*s+1],u=o[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(o[0][0],o[0][1]);s=1;for(var p=o.length;s<p;s++)e.lineTo(o[s][0],o[s][1])}n&&e.closePath()}}var _A=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},wA=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultShape=function(){return new _A},t.prototype.buildPath=function(e,t){bA(e,t,!0)},t}($C);wA.prototype.type="polygon";var SA=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},MA=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new SA},t.prototype.buildPath=function(e,t){bA(e,t,!1)},t}($C);MA.prototype.type="polyline";var CA={},IA=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},TA=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new IA},t.prototype.buildPath=function(e,t){var n,i,o,r;if(this.subPixelOptimize){var a=oI(CA,t,this.style);n=a.x1,i=a.y1,o=a.x2,r=a.y2}else n=t.x1,i=t.y1,o=t.x2,r=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,i),s<1&&(o=n*(1-s)+o*s,r=i*(1-s)+r*s),e.lineTo(o,r))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}($C);TA.prototype.type="line";var AA=[],DA=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function kA(e,t,n){var i=e.cpx2,o=e.cpy2;return null!=i||null!=o?[(n?Lb:Ob)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Lb:Ob)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?jb:Bb)(e.x1,e.cpx1,e.x2,t),(n?jb:Bb)(e.y1,e.cpy1,e.y2,t)]}var EA=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new DA},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,o=t.x2,r=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,c=t.cpy2,u=t.percent;0!==u&&(e.moveTo(n,i),null==l||null==c?(u<1&&(Gb(n,a,o,u,AA),a=AA[1],o=AA[2],Gb(i,s,r,u,AA),s=AA[1],r=AA[2]),e.quadraticCurveTo(a,s,o,r)):(u<1&&(Rb(n,a,l,o,u,AA),a=AA[1],l=AA[2],o=AA[3],Rb(i,s,c,r,u,AA),s=AA[1],c=AA[2],r=AA[3]),e.bezierCurveTo(a,s,l,c,o,r)))},t.prototype.pointAt=function(e){return kA(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=kA(this.shape,e,!0);return $y(t,t)},t}($C);EA.prototype.type="bezier-curve";var OA=EA,LA=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},NA=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new LA},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,o=Math.max(t.r,0),r=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(r),c=Math.sin(r);e.moveTo(l*o+n,c*o+i),e.arc(n,i,o,r,a,!s)},t}($C);NA.prototype.type="arc";var PA=NA,RA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return G(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),$C.prototype.getBoundingRect.call(this)},t}($C),zA=RA,VA=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),BA=VA,jA=function(e){function t(t,n,i,o,r,a){var s=e.call(this,r)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==o?0:o,s.type="linear",s.global=a||!1,s}return G(t,e),t}(BA),FA=function(e){function t(t,n,i,o,r){var a=e.call(this,o)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=r||!1,a}return G(t,e),t}(BA),GA=FA,HA=[0,0],WA=[0,0],UA=new zx,YA=new zx,qA=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new zx;for(n=0;n<2;n++)this._axes[n]=new zx;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,o=e.x,r=e.y,a=o+e.width,s=r+e.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,s),n[3].set(o,s),t)for(var l=0;l<4;l++)n[l].transform(t);zx.sub(i[0],n[1],n[0]),zx.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return UA.set(1/0,1/0),YA.set(0,0),!this._intersectCheckOneSide(this,e,UA,YA,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,UA,YA,i,-1)&&(n=!1,i)||i||zx.copy(t,n?UA:YA),n},e.prototype._intersectCheckOneSide=function(e,t,n,i,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,HA),this._getProjMinMaxOnAxis(s,t._corners,WA),HA[1]<WA[0]||HA[0]>WA[1]){if(a=!1,o)return a;var c=Math.abs(WA[0]-HA[1]),u=Math.abs(HA[0]-WA[1]);Math.min(c,u)>i.len()&&(c<u?zx.scale(i,l,-c*r):zx.scale(i,l,u*r))}else if(n){c=Math.abs(WA[0]-HA[1]),u=Math.abs(HA[0]-WA[1]);Math.min(c,u)<n.len()&&(c<u?zx.scale(n,l,c*r):zx.scale(n,l,-u*r))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],o=this._origin,r=t[0].dot(i)+o[e],a=r,s=r,l=1;l<t.length;l++){var c=t[l].dot(i)+o[e];a=Math.min(c,a),s=Math.max(c,s)}n[0]=a,n[1]=s},e}(),XA=qA,$A=[],ZA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return G(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new qx(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform($A)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(e,t))return!0}return!1},t}(qM),KA=ZA,JA=QS();function QA(e,t,n,i,o){var r;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();r=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,c=void 0,u=void 0;return i?(l=_y(i.duration,200),c=_y(i.easing,"cubicOut"),u=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),c=t.getShallow(s?"animationEasingUpdate":"animationEasing"),u=t.getShallow(s?"animationDelayUpdate":"animationDelay")),r&&(null!=r.duration&&(l=r.duration),null!=r.easing&&(c=r.easing),null!=r.delay&&(u=r.delay)),cy(u)&&(u=u(n,o)),cy(l)&&(l=l(n)),{duration:l||0,delay:u,easing:c}}return null}function eD(e,t,n,i,o,r,a){var s,l=!1;cy(o)?(a=r,r=o,o=null):hy(o)&&(r=o.cb,a=o.during,l=o.isFrom,s=o.removeOpt,o=o.dataIndex);var c="leave"===e;c||t.stopAnimation("leave");var u=QA(e,i,o,c?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,o):null);if(u&&u.duration>0){var p={duration:u.duration,delay:u.delay||0,easing:u.easing,done:r,force:!!r||!!a,setToFinal:!c,scope:e,during:a};l?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),r&&r()}function tD(e,t,n,i,o,r){eD("update",e,t,n,i,o,r)}function nD(e,t,n,i,o,r){eD("enter",e,t,n,i,o,r)}function iD(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function oD(e,t,n,i,o,r){iD(e)||eD("leave",e,t,n,i,o,r)}function rD(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),oD(e,{style:{opacity:0}},t,n,i)}function aD(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||rD(e,t,n,i)})):rD(e,t,n,i)}function sD(e){JA(e).oldStyle=e.style}var lD=Math.max,cD=Math.min,uD={};var pD=function(e,t){var n=YT(e,t);return function(e){function t(t){var i=e.call(this,t)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return G(t,e),t}(WT)};function dD(e,t){uD[e]=t}function hD(e){if(uD.hasOwnProperty(e))return uD[e]}function fD(e,t,n,i){var o=qT(e,t);return n&&("center"===i&&(n=mD(n,o.getBoundingRect())),yD(o,n)),o}function gD(e,t,n){var i=new nI({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var o={width:e.width,height:e.height};i.setStyle(mD(t,o))}}});return i}function mD(e,t){var n,i=t.width/t.height,o=e.height*i;return n=o<=e.width?e.height:(o=e.width)/i,{x:e.x+e.width/2-o/2,y:e.y+e.height/2-n/2,width:o,height:n}}var vD=function(e,t){for(var n=[],i=e.length,o=0;o<i;o++){var r=e[o];n.push(r.getUpdatedPathProxy(!0))}var a=new $C(t);return a.createPathProxy(),a.buildPath=function(e){if(UT(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function yD(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function xD(e,t){return oI(e,e,{lineWidth:t}),e}var bD=aI;function _D(e,t){for(var n=kx([]);e&&e!==t;)Ox(n,e.getLocalTransform(),n),e=e.parent;return n}function wD(e,t,n){return t&&!ey(t)&&(t=Tw.getLocalTransform(t)),n&&(t=Rx([],t)),ex([],e,t)}function SD(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),o=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),r=["left"===e?-i:"right"===e?i:0,"top"===e?-o:"bottom"===e?o:0];return r=wD(r,t,n),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function MD(e){return!e.isGroup}function CD(e,t,n){if(e&&t){var i=function(e){var t={};return e.traverse((function(e){MD(e)&&e.anid&&(t[e.anid]=e)})),t}(e);t.traverse((function(e){if(MD(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),tD(e,r,n,TI(e).dataIndex)}}}))}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Zv({},e.shape)),t}}function ID(e,t){return ny(e,(function(e){var n=e[0];n=lD(n,t.x),n=cD(n,t.x+t.width);var i=e[1];return i=lD(i,t.y),[n,i=cD(i,t.y+t.height)]}))}function TD(e,t,n){var i=Zv({rectHover:!0},t),o=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(o.image=e.slice(8),Kv(o,n),new nI(i)):fD(e.replace("path://",""),i,n,"center")}function AD(e,t,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(DD(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function DD(e,t,n,i,o,r,a,s){var l,c=n-e,u=i-t,p=a-o,d=s-r,h=kD(p,d,c,u);if((l=h)<=1e-6&&l>=-1e-6)return!1;var f=e-o,g=t-r,m=kD(f,g,c,u)/h;if(m<0||m>1)return!1;var v=kD(f,g,p,d)/h;return!(v<0||v>1)}function kD(e,t,n,i){return e*i-n*t}function ED(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,o=uy(t)?{formatter:t}:t,r=n.mainType,a=n.componentIndex,s={componentType:r,name:i,$vars:["name"]};s[r+"Index"]=a;var l=e.formatterParamsExtra;l&&ty(ry(l),(function(e){zy(s,e)||(s[e]=l[e],s.$vars.push(e))}));var c=TI(e.el);c.componentMainType=r,c.componentIndex=a,c.tooltipConfig={name:i,option:Kv({content:i,formatterParams:s},o)}}function OD(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function LD(e,t){if(e)if(ly(e))for(var n=0;n<e.length;n++)OD(e[n],t);else OD(e,t)}dD("circle",KT),dD("ellipse",eA),dD("sector",mA),dD("ring",xA),dD("polygon",wA),dD("polyline",MA),dD("rect",uI),dD("line",TA),dD("bezierCurve",OA),dD("arc",PA);var ND=Object.freeze({__proto__:null,Arc:PA,BezierCurve:OA,BoundingRect:qx,Circle:KT,CompoundPath:zA,Ellipse:eA,Group:Zw,Image:nI,IncrementalDisplayable:KA,Line:TA,LinearGradient:jA,OrientedBoundingRect:XA,Path:$C,Point:zx,Polygon:wA,Polyline:MA,RadialGradient:GA,Rect:uI,Ring:xA,Sector:mA,Text:II,applyTransform:wD,clipPointsByRect:ID,clipRectByRect:function(e,t){var n=lD(e.x,t.x),i=cD(e.x+e.width,t.x+t.width),o=lD(e.y,t.y),r=cD(e.y+e.height,t.y+t.height);if(i>=n&&r>=o)return{x:n,y:o,width:i-n,height:r-o}},createIcon:TD,extendPath:function(e,t){return pD(e,t)},extendShape:function(e){return $C.extend(e)},getShapeClass:hD,getTransform:_D,groupTransition:CD,initProps:nD,isElementRemoved:iD,lineLineIntersect:DD,linePolygonIntersect:AD,makeImage:gD,makePath:fD,mergePath:vD,registerShape:dD,removeElement:oD,removeElementWithFadeOut:aD,resizePath:yD,setTooltipConfig:ED,subPixelOptimize:bD,subPixelOptimizeLine:xD,subPixelOptimizeRect:function(e){return rI(e.shape,e.shape,e.style),e},transformDirection:SD,traverseElements:LD,updateProps:tD}),PD={};function RD(e,t){for(var n=0;n<RI.length;n++){var i=RI[n],o=t[i],r=e.ensureState(i);r.style=r.style||{},r.style.text=o}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function zD(e,t,n){var i,o=e.labelFetcher,r=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;o&&(i=o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=cy(e.defaultText)?e.defaultText(r,e,n):e.defaultText);for(var l={normal:i},c=0;c<RI.length;c++){var u=RI[c],p=t[u];l[u]=_y(o?o.getFormattedLabel(r,u,null,a,p&&p.get("formatter")):null,i)}return l}function VD(e,t,n,i){n=n||PD;for(var o=e instanceof II,r=!1,a=0;a<zI.length;a++){if((d=t[zI[a]])&&d.getShallow("show")){r=!0;break}}var s=o?e:e.getTextContent();if(r){o||(s||(s=new II,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=zD(n,t),c=t.normal,u=!!c.getShallow("show"),p=jD(c,i&&i.normal,n,!1,!o);p.text=l.normal,o||e.setTextConfig(FD(c,n,!1));for(a=0;a<RI.length;a++){var d,h=RI[a];if(d=t[h]){var f=s.ensureState(h),g=!!_y(d.getShallow("show"),u);if(g!==u&&(f.ignore=!g),f.style=jD(d,i&&i[h],n,!0,!o),f.style.text=l[h],!o)e.ensureState(h).textConfig=FD(d,n,!0)}}s.silent=!!c.getShallow("silent"),null!=s.style.x&&(p.x=s.style.x),null!=s.style.y&&(p.y=s.style.y),s.ignore=!u,s.useStyle(p),s.dirty(),n.enableTextSetter&&(qD(s).setLabelText=function(e){var i=zD(n,t,e);RD(s,i)})}else s&&(s.ignore=!0);e.dirty()}function BD(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<RI.length;i++){var o=RI[i];n[o]=e.getModel([o,t])}return n}function jD(e,t,n,i,o){var r={};return function(e,t,n,i,o){n=n||PD;var r,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||PD).rich;if(n){t=t||{};for(var i=ry(n),o=0;o<i.length;o++){t[i[o]]=1}}e=e.parentModel}return t}(t);if(l)for(var c in r={},l)if(l.hasOwnProperty(c)){var u=t.getModel(["rich",c]);UD(r[c]={},u,s,n,i,o,!1,!0)}r&&(e.rich=r);var p=t.get("overflow");p&&(e.overflow=p);var d=t.get("minMargin");null!=d&&(e.margin=d);UD(e,t,s,n,i,o,!0,!1)}(r,e,n,i,o),t&&Zv(r,t),r}function FD(e,t,n){t=t||{};var i,o={},r=e.getShallow("rotate"),a=_y(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(i=e.getShallow("position")||(n?null:"inside"))&&(i=t.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=s&&(o.offset=s),null!=r&&(r*=Math.PI/180,o.rotation=r),null!=a&&(o.distance=a),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}var GD=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],HD=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],WD=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function UD(e,t,n,i,o,r,a,s){n=!o&&n||PD;var l=i&&i.inheritColor,c=t.getShallow("color"),u=t.getShallow("textBorderColor"),p=_y(t.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||("production"!==process.env.NODE_ENV&&"auto"===c&&LS("color: 'auto'","color: 'inherit'"),c=l||null),"inherit"!==u&&"auto"!==u||("production"!==process.env.NODE_ENV&&"auto"===u&&LS("color: 'auto'","color: 'inherit'"),u=l||null),r||(c=c||n.color,u=u||n.textBorderColor),null!=c&&(e.fill=c),null!=u&&(e.stroke=u);var d=_y(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var h=_y(t.getShallow("textBorderType"),n.textBorderType);null!=h&&(e.lineDash=h);var f=_y(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),o||null!=p||s||(p=i&&i.defaultOpacity),null!=p&&(e.opacity=p),o||r||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var g=0;g<GD.length;g++){var m=GD[g];null!=(y=_y(t.getShallow(m),n[m]))&&(e[m]=y)}for(g=0;g<HD.length;g++){m=HD[g];null!=(y=t.getShallow(m))&&(e[m]=y)}if(null==e.verticalAlign){var v=t.getShallow("baseline");null!=v&&(e.verticalAlign=v)}if(!a||!i.disableBox){for(g=0;g<WD.length;g++){var y;m=WD[g];null!=(y=t.getShallow(m))&&(e[m]=y)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||("production"!==process.env.NODE_ENV&&"auto"===e.backgroundColor&&LS("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||("production"!==process.env.NODE_ENV&&"auto"===e.borderColor&&LS("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function YD(e,t){var n=t&&t.getModel("textStyle");return Iy([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var qD=QS();function XD(e,t,n,i){if(e){var o=qD(e);o.prevValue=o.value,o.value=n;var r=t.normal;o.valueAnimation=r.get("valueAnimation"),o.valueAnimation&&(o.precision=r.get("precision"),o.defaultInterpolatedText=i,o.statesModels=t)}}function $D(e,t,n,i,o){var r=qD(e);if(r.valueAnimation&&r.prevValue!==r.value){var a=r.defaultInterpolatedText,s=_y(r.interpolatedValue,r.prevValue),l=r.value;e.percent=0,(null==r.prevValue?nD:tD)(e,{percent:1},i,t,null,(function(i){var c=lM(n,r.precision,s,l,i);r.interpolatedValue=1===i?null:c;var u=zD({labelDataIndex:t,labelFetcher:o,defaultText:a?a(c):c+""},r.statesModels,c);RD(e,u)}))}}var ZD,KD,JD=["textStyle","color"],QD=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ek=new II,tk=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(JD):null)},e.prototype.getFont=function(){return YD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<QD.length;n++)t[QD[n]]=this.getShallow(QD[n]);return ek.useStyle(t),ek.update(),ek.getBoundingRect()},e}(),nk=tk,ik=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ok=xM(ik),rk=function(){function e(){}return e.prototype.getLineStyle=function(e){return ok(this,e)},e}(),ak=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sk=xM(ak),lk=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return sk(this,e,t)},e}(),ck=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){Xv(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var o=this.parentModel;o&&(i=o.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,o=i?this.parsePath(t):null;return new e(i?this._doGet(o):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(qv(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!Cv.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&(!e[i]||null!=(n=n&&"object"==typeof n?n[e[i]]:null));i++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();hM(ck),ZD=ck,KD=["__\0is_clz",gM++].join("_"),ZD.prototype[KD]=!0,"production"!==process.env.NODE_ENV&&Cy(!ZD.isInstance,'The method "is" can not be defined.'),ZD.isInstance=function(e){return!(!e||!e[KD])},Qv(ck,rk),Qv(ck,lk),Qv(ck,_M),Qv(ck,nk);var uk=ck,pk=Math.round(10*Math.random());function dk(e){return[e||"",pk++].join("_")}function hk(e,t){return Xv(Xv({},e,!0),t,!0)}var fk="ZH",gk="EN",mk=gk,vk={},yk={},xk=Cv.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||mk).toUpperCase().indexOf(fk)>-1?fk:mk;function bk(e,t){e=e.toUpperCase(),yk[e]=new uk(t),vk[e]=t}function _k(e){return yk[e]}bk(gk,{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:". "}}}}),bk(fk,{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 wk=1e3,Sk=60*wk,Mk=60*Sk,Ck=24*Mk,Ik=365*Ck,Tk={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}"},Ak="{yyyy}-{MM}-{dd}",Dk={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ak,hour:Ak+" "+Tk.hour,minute:Ak+" "+Tk.minute,second:Ak+" "+Tk.second,millisecond:Tk.none},kk=["year","month","day","hour","minute","second","millisecond"],Ek=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ok(e,t){return"0000".substr(0,t-(e+="").length)+e}function Lk(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 Nk(e){return e===Lk(e)}function Pk(e,t,n,i){var o=mS(e),r=o[Vk(n)](),a=o[Bk(n)]()+1,s=Math.floor((a-1)/3)+1,l=o[jk(n)](),c=o["get"+(n?"UTC":"")+"Day"](),u=o[Fk(n)](),p=(u-1)%12+1,d=o[Gk(n)](),h=o[Hk(n)](),f=o[Wk(n)](),g=(i instanceof uk?i:_k(i||xk)||yk[mk]).getModel("time"),m=g.get("month"),v=g.get("monthAbbr"),y=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,Ok(r%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,Ok(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Ok(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[c]).replace(/{ee}/g,x[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Ok(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Ok(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Ok(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ok(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ok(f,3)).replace(/{S}/g,f+"")}function Rk(e,t){var n=mS(e),i=n[Bk(t)]()+1,o=n[jk(t)](),r=n[Fk(t)](),a=n[Gk(t)](),s=n[Hk(t)](),l=0===n[Wk(t)](),c=l&&0===s,u=c&&0===a,p=u&&0===r,d=p&&1===o;return d&&1===i?"year":d?"month":p?"day":u?"hour":c?"minute":l?"second":"millisecond"}function zk(e,t,n){var i=dy(e)?mS(e):e;switch(t=t||Rk(e,n)){case"year":return i[Vk(n)]();case"half-year":return i[Bk(n)]()>=6?1:0;case"quarter":return Math.floor((i[Bk(n)]()+1)/4);case"month":return i[Bk(n)]();case"day":return i[jk(n)]();case"half-day":return i[Fk(n)]()/24;case"hour":return i[Fk(n)]();case"minute":return i[Gk(n)]();case"second":return i[Hk(n)]();case"millisecond":return i[Wk(n)]()}}function Vk(e){return e?"getUTCFullYear":"getFullYear"}function Bk(e){return e?"getUTCMonth":"getMonth"}function jk(e){return e?"getUTCDate":"getDate"}function Fk(e){return e?"getUTCHours":"getHours"}function Gk(e){return e?"getUTCMinutes":"getMinutes"}function Hk(e){return e?"getUTCSeconds":"getSeconds"}function Wk(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Uk(e){return e?"setUTCFullYear":"setFullYear"}function Yk(e){return e?"setUTCMonth":"setMonth"}function qk(e){return e?"setUTCDate":"setDate"}function Xk(e){return e?"setUTCHours":"setHours"}function $k(e){return e?"setUTCMinutes":"setMinutes"}function Zk(e){return e?"setUTCSeconds":"setSeconds"}function Kk(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Jk(e){if(!wS(e))return uy(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Qk(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var eE=My;function tE(e,t,n){function i(e){return e&&Iy(e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var r="time"===t,a=e instanceof Date;if(r||a){var s=r?mS(e):e;if(!isNaN(+s))return Pk(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return py(e)?i(e):dy(e)&&o(e)?e+"":"-";var l=_S(e);return o(l)?Jk(l):py(e)?i(e):"boolean"==typeof e?e+"":"-"}var nE=["a","b","c","d","e","f","g"],iE=function(e,t){return"{"+e+(null==t?"":t)+"}"};function oE(e,t,n){ly(t)||(t=[t]);var i=t.length;if(!i)return"";for(var o=t[0].$vars||[],r=0;r<o.length;r++){var a=nE[r];e=e.replace(iE(a),iE(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var c=t[s][o[l]];e=e.replace(iE(nE[l],s),n?gx(c):c)}return e}function rE(e,t){return t=t||"transparent",uy(e)?e:hy(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function aE(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var sE=ty,lE=["left","right","top","bottom","width","height"],cE=[["width","left","right"],["height","top","bottom"]];function uE(e,t,n,i,o){var r=0,a=0;null==i&&(i=1/0),null==o&&(o=1/0);var s=0;t.eachChild((function(l,c){var u,p,d=l.getBoundingRect(),h=t.childAt(c+1),f=h&&h.getBoundingRect();if("horizontal"===e){var g=d.width+(f?-f.x+d.x:0);(u=r+g)>i||l.newline?(r=0,u=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(p=a+m)>o||l.newline?(r+=s+n,a=0,p=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===e?r=u+n:a=p+n)}))}var pE=uE;function dE(e,t,n){n=eE(n||0);var i=t.width,o=t.height,r=rS(e.left,i),a=rS(e.top,o),s=rS(e.right,i),l=rS(e.bottom,o),c=rS(e.width,i),u=rS(e.height,o),p=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(c)&&(c=i-s-d-r),isNaN(u)&&(u=o-l-p-a),null!=h&&(isNaN(c)&&isNaN(u)&&(h>i/o?c=.8*i:u=.8*o),isNaN(c)&&(c=h*u),isNaN(u)&&(u=c/h)),isNaN(r)&&(r=i-s-c-d),isNaN(a)&&(a=o-l-u-p),e.left||e.right){case"center":r=i/2-c/2-n[3];break;case"right":r=i-c-d}switch(e.top||e.bottom){case"middle":case"center":a=o/2-u/2-n[0];break;case"bottom":a=o-u-p}r=r||0,a=a||0,isNaN(c)&&(c=i-d-r-(s||0)),isNaN(u)&&(u=o-p-a-(l||0));var f=new qx(r+n[3],a+n[0],c,u);return f.margin=n,f}function hE(e,t,n,i,o,r){var a,s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if((r=r||e).x=e.x,r.y=e.y,!s&&!l)return!1;if("raw"===c)a="group"===e.type?new qx(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();(a=a.clone()).applyTransform(u)}var p=dE(Kv({width:a.width,height:a.height},t),n,i),d=s?p.x-a.x:0,h=l?p.y-a.y:0;return"raw"===c?(r.x=d,r.y=h):(r.x+=d,r.y+=h),r===e&&e.markRedraw(),!0}function fE(e){var t=e.layoutMode||e.constructor.layoutMode;return hy(t)?t:t?{type:t}:null}function gE(e,t,n){var i=n&&n.ignoreSize;!ly(i)&&(i=[i,i]);var o=a(cE[0],0),r=a(cE[1],1);function a(n,o){var r={},a=0,c={},u=0;if(sE(n,(function(t){c[t]=e[t]})),sE(n,(function(e){s(t,e)&&(r[e]=c[e]=t[e]),l(r,e)&&a++,l(c,e)&&u++})),i[o])return l(t,n[1])?c[n[2]]=null:l(t,n[2])&&(c[n[1]]=null),c;if(2!==u&&a){if(a>=2)return r;for(var p=0;p<n.length;p++){var d=n[p];if(!s(r,d)&&s(e,d)){r[d]=e[d];break}}return r}return c}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,n){sE(e,(function(e){t[e]=n[e]}))}c(cE[0],e,o),c(cE[1],e,r)}function mE(e){return vE({},e)}function vE(e,t){return t&&e&&sE(lE,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}sy(uE,"vertical"),sy(uE,"horizontal");var yE=QS(),xE=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.uid=dk("ec_cpt_model"),o}return G(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=fE(this),i=n?mE(e):{};Xv(e,t.getTheme().get(this.mainType)),Xv(e,this.getDefaultOption()),n&&gE(e,i,n)},t.prototype.mergeOption=function(e,t){Xv(this.option,e,!0);var n=fE(this);n&&gE(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[pM])}(e))return e.defaultOption;var t=yE(this);if(!t.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;a>=0;a--)r=Xv(r,n[a],!0);t.defaultOption=r}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return rM(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(uk);fM(xE,uk),yM(xE),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=dM(e);t[i.main]=n},e.determineSubType=function(n,i){var o=i.type;if(!o){var r=dM(n).main;e.hasSubTypes(n)&&t[r]&&(o=t[r](i))}return o}}(xE),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,i,o,r){if(e.length){var a=function(e){var i={},o=[];return ty(e,(function(r){var a=n(i,r),s=function(e,t){var n=[];return ty(e,(function(e){Jv(t,e)>=0&&n.push(e)})),n}(a.originalDeps=t(r),e);a.entryCount=s.length,0===a.entryCount&&o.push(r),ty(s,(function(e){Jv(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(i,e);Jv(t.successor,e)<0&&t.successor.push(r)}))})),{graph:i,noEntryList:o}}(i),s=a.graph,l=a.noEntryList,c={};for(ty(e,(function(e){c[e]=!0}));l.length;){var u=l.pop(),p=s[u],d=!!c[u];d&&(o.call(r,u,p.originalDeps.slice()),delete c[u]),ty(p.successor,d?f:h)}ty(c,(function(){var t="";throw"production"!==process.env.NODE_ENV&&(t=NS("Circular dependency may exists: ",c,e,i)),new Error(t)}))}function h(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function f(e){c[e]=!0,h(e)}}}(xE,(function(e){var t=[];ty(xE.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=ny(t,(function(e){return dM(e).main})),"dataset"!==e&&Jv(t,"dataset")<=0&&t.unshift("dataset");return t}));var bE=xE,_E="";"undefined"!=typeof navigator&&(_E=navigator.platform||"");var wE="rgba(0, 0, 0, 0.2)",SE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:wE,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wE,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wE,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wE,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wE,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wE,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_E.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},ME=Ly(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),CE="original",IE="arrayRows",TE="objectRows",AE="keyedColumns",DE="typedArray",kE="unknown",EE="column",OE="row",LE={Must:1,Might:2,Not:3},NE=QS();function PE(e,t,n){var i={},o=zE(t);if(!o||!e)return i;var r,a,s=[],l=[],c=t.ecModel,u=NE(c).datasetMap,p=o.uid+"_"+n.seriesLayoutBy;ty(e=e.slice(),(function(t,n){var o=hy(t)?t:e[n]={name:t};"ordinal"===o.type&&null==r&&(r=n,a=f(o)),i[o.name]=[]}));var d=u.get(p)||u.set(p,{categoryWayDim:a,valueWayDim:0});function h(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function f(e){var t=e.dimsDef;return t?t.length:1}return ty(e,(function(e,t){var n=e.name,o=f(e);if(null==r){var a=d.valueWayDim;h(i[n],a,o),h(l,a,o),d.valueWayDim+=o}else if(r===t)h(i[n],0,o),h(s,0,o);else{a=d.categoryWayDim;h(i[n],a,o),h(l,a,o),d.categoryWayDim+=o}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function RE(e,t,n){var i={};if(!zE(e))return i;var o,r=t.sourceFormat,a=t.dimensionsDefine;r!==TE&&r!==AE||ty(a,(function(e,t){"name"===(hy(e)?e.name:e)&&(o=t)}));var s=function(){for(var e={},i={},s=[],l=0,c=Math.min(5,n);l<c;l++){var u=BE(t.data,r,t.seriesLayoutBy,a,t.startIndex,l);s.push(u);var p=u===LE.Not;if(p&&null==e.v&&l!==o&&(e.v=l),(null==e.n||e.n===e.v||!p&&s[e.n]===LE.Not)&&(e.n=l),d(e)&&s[e.n]!==LE.Not)return e;p||(u===LE.Might&&null==i.v&&l!==o&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(i)?i:null}();if(s){i.value=[s.v];var l=null!=o?o:s.n;i.itemName=[l],i.seriesName=[l]}return i}function zE(e){if(!e.get("data",!0))return rM(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},iM).models[0]}function VE(e,t){return BE(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function BE(e,t,n,i,o,r){var a,s,l;if(gy(e))return LE.Not;if(i){var c=i[r];hy(c)?(s=c.name,l=c.type):uy(c)&&(s=c)}if(null!=l)return"ordinal"===l?LE.Must:LE.Not;if(t===IE){var u=e;if(n===OE){for(var p=u[r],d=0;d<(p||[]).length&&d<5;d++)if(null!=(a=x(p[o+d])))return a}else for(d=0;d<u.length&&d<5;d++){var h=u[o+d];if(h&&null!=(a=x(h[r])))return a}}else if(t===TE){var f=e;if(!s)return LE.Not;for(d=0;d<f.length&&d<5;d++){if((v=f[d])&&null!=(a=x(v[s])))return a}}else if(t===AE){var g=e;if(!s)return LE.Not;if(!(p=g[s])||gy(p))return LE.Not;for(d=0;d<p.length&&d<5;d++)if(null!=(a=x(p[d])))return a}else if(t===CE){var m=e;for(d=0;d<m.length&&d<5;d++){var v,y=GS(v=m[d]);if(!ly(y))return LE.Not;if(null!=(a=x(y[r])))return a}}function x(e){var t=uy(e);return null!=e&&isFinite(e)&&""!==e?t?LE.Might:LE.Not:t&&"-"!==e?LE.Must:void 0}return LE.Not}var jE=Ly();var FE,GE,HE,WE=QS(),UE=QS(),YE=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var i=BS(this.get("color",!0)),o=this.get("colorLayer",!0);return XE(this,WE,i,o,e,t,n)},e.prototype.clearColorPalette=function(){!function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}(this,WE)},e}();function qE(e,t,n,i){var o=BS(e.get(["aria","decal","decals"]));return XE(e,UE,o,null,t,n,i)}function XE(e,t,n,i,o,r,a){var s=t(r=r||e),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(o))return c[o];var u=null!=a&&i?function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}(i,a):n;if((u=u||n)&&u.length){var p=u[l];return o&&(c[o]=p),s.paletteIdx=(l+1)%u.length,p}}var $E="\0_ec_inner",ZE={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},KE={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},JE={};var QE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.init=function(e,t,n,i,o,r){i=i||{},this.option=null,this._theme=new uk(i),this._locale=new uk(o),this._optionManager=r},t.prototype.setOption=function(e,t,n){"production"!==process.env.NODE_ENV&&(Cy(null!=e,"option is null/undefined"),Cy(1!==e[$E],"please use chart.getOption()"));var i=nO(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,nO(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var o=i.mountOption("recreate"===e);"production"!==process.env.NODE_ENV&&ty(o,(function(e,t){if(!bE.hasClass(t)){var n=ZE[t];n&&!JE[n]&&(ES("Component "+t+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),JE[n]=!0)}})),this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(o,t)):HE(this,o),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var r=i.getTimelineOption(this);r&&(n=!0,this._mergeOption(r,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&ty(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,o=this._componentsCount,r=[],a=Ly(),s=t&&t.replaceMergeMainTypeMap;NE(this).datasetMap=Ly(),ty(e,(function(e,t){null!=e&&(bE.hasClass(t)?t&&(r.push(t),a.set(t,!0)):n[t]=null==n[t]?qv(e):Xv(n[t],e,!0))})),s&&s.each((function(e,t){bE.hasClass(t)&&!a.get(t)&&(r.push(t),a.set(t,!0))})),bE.topologicalTravel(r,bE.getAllClassMainTypes(),(function(t){var r=function(e,t,n){var i=jE.get(t);if(!i)return n;var o=i(e);if(!o)return n;if("production"!==process.env.NODE_ENV)for(var r=0;r<o.length;r++)Cy(KS(o[r]));return n.concat(o)}(this,t,BS(e[t])),a=i.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=WS(a,r,l);(function(e,t,n){ty(e,(function(e){var i=e.newOption;hy(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,i){return t.type?t.type:n?n.subType:i.determineSubType(e,t)}(t,i,e.existing,n))}))})(c,t,bE),n[t]=null,i.set(t,null),o.set(t,0);var u,p,d=[],h=[],f=0;ty(c,(function(e,n){var i=e.existing,o=e.newOption;if(o){var r="series"===t,a=bE.getClass(t,e.keyInfo.subType,!r);if(!a){if("production"!==process.env.NODE_ENV){var s=e.keyInfo.subType,l=KE[s];JE[s]||(JE[s]=!0,ES(l?"Series "+s+" is used but not imported.\nimport { "+l+" } from 'echarts/charts';\necharts.use(["+l+"]);":"Unknown series "+s))}return}if("tooltip"===t){if(u)return void("production"!==process.env.NODE_ENV&&(p||(kS("Currently only one tooltip component is allowed."),p=!0)));u=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1);else{var c=Zv({componentIndex:n},e.keyInfo);Zv(i=new a(o,this,this,c),c),e.brandNew&&(i.__requireNewView=!0),i.init(o,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),h.push(i),f++):(d.push(void 0),h.push(void 0))}),this),n[t]=d,i.set(t,h),o.set(t,f),"series"===t&&FE(this)}),this),this._seriesIndices||FE(this)},t.prototype.getOption=function(){var e=qv(this.option);return ty(e,(function(t,n){if(bE.hasClass(n)){for(var i=BS(t),o=i.length,r=!1,a=o-1;a>=0;a--)i[a]&&!KS(i[a])?r=!0:(i[a]=null,!r&&o--);i.length=o,e[n]=i}})),delete e[$E],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var o=0;o<n.length;o++)if(n[o])return n[o]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,o=e.id,r=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=i?(n=[],ty(BS(i),(function(e){a[e]&&n.push(a[e])}))):n=null!=o?eO("id",o,a):null!=r?eO("name",r,a):oy(a,(function(e){return!!e})),tO(n,e)):[]},t.prototype.findComponents=function(e){var t,n=e.query,i=e.mainType,o=function(e){var t=i+"Index",n=i+"Id",o=i+"Name";return!e||null==e[t]&&null==e[n]&&null==e[o]?null:{mainType:i,index:e[t],id:e[n],name:e[o]}}(n),r=o?this.queryComponents(o):oy(this._componentsMap.get(i),(function(e){return!!e}));return t=tO(r,e),e.filter?oy(t,e.filter):t},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(cy(e)){var o=t,r=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&r.call(o,t,i,i.componentIndex)}}))}else for(var a=uy(e)?i.get(e):hy(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=qS(e,null);return oy(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return oy(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return oy(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){GE(this),ty(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){ty(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){GE(this),ty(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&t.call(n,o,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return ty(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return GE(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){GE(this);var n=[];ty(this._seriesIndices,(function(i){var o=this._componentsMap.get("series")[i];e.call(t,o,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Ly(n)},t.prototype.restoreData=function(e){FE(this);var t=this._componentsMap,n=[];t.each((function(e,t){bE.hasClass(t)&&n.push(t)})),bE.topologicalTravel(n,bE.getAllClassMainTypes(),(function(n){ty(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,o=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=o&&e.name!==o}}(t,e)||t.restoreData()}))}))},t.internalField=(FE=function(e){var t=e._seriesIndices=[];ty(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Ly(t)},GE=function(e){if("production"!==process.env.NODE_ENV&&!e._seriesIndices)throw new Error("Option should contains series.")},void(HE=function(e,t){e.option={},e.option[$E]=1,e._componentsMap=Ly({series:[]}),e._componentsCount=Ly();var n=t.aria;hy(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;ty(t,(function(t,i){"colorLayer"===i&&n||bE.hasClass(i)||("object"==typeof t?e[i]=e[i]?Xv(e[i],t,!1):qv(t):null==e[i]&&(e[i]=t))}))}(t,e._theme.option),Xv(t,SE,!1),e._mergeOption(t,null)})),t}(uk);function eO(e,t,n){if(ly(t)){var i=Ly();return ty(t,(function(e){null!=e&&(null!=qS(e,null)&&i.set(e,!0))})),oy(n,(function(t){return t&&i.get(t[e])}))}var o=qS(t,null);return oy(n,(function(t){return t&&null!=o&&t[e]===o}))}function tO(e,t){return t.hasOwnProperty("subType")?oy(e,(function(e){return e&&e.subType===t.subType})):e}function nO(e){var t=Ly();return e&&ty(BS(e.replaceMerge),(function(e){"production"!==process.env.NODE_ENV&&Cy(bE.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Qv(QE,YE);var iO=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],oO=function(e){ty(iO,(function(t){this[t]=ay(e[t],e)}),this)},rO={},aO=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];ty(rO,(function(i,o){var r=i.create(e,t);n=n.concat(r||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){ty(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){rO[e]=t},e.get=function(e){return rO[e]},e}(),sO=/^(min|max)?(.+)$/,lO=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(ty(BS(e.series),(function(e){e&&e.data&&gy(e.data)&&Ay(e.data)})),ty(BS(e.dataset),(function(e){e&&e.source&&gy(e.source)&&Ay(e.source)}))),e=qv(e);var i=this._optionBackup,o=function(e,t,n){var i,o,r=[],a=e.baseOption,s=e.timeline,l=e.options,c=e.media,u=!!e.media,p=!!(l||s||a&&a.timeline);a?(o=a).timeline||(o.timeline=s):((p||u)&&(e.options=e.media=null),o=e);u&&(ly(c)?ty(c,(function(e){"production"!==process.env.NODE_ENV&&e&&!e.option&&hy(e.query)&&hy(e.query.option)&&ES("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),e&&e.option&&(e.query?r.push(e):i||(i=e))})):"production"!==process.env.NODE_ENV&&ES("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function d(e){ty(t,(function(t){t(e,n)}))}return d(o),ty(l,(function(e){return d(e)})),ty(r,(function(e){return d(e.option)})),{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}(e,t,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],qv(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=qv(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,i=this._api.getWidth(),o=this._api.getHeight(),r=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!r.length&&!a)return l;for(var c=0,u=r.length;c<u;c++)cO(r[c].query,i,o)&&s.push(c);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=ny(s,(function(e){return qv(-1===e?a.option:r[e].option)}))),this._currentMediaIndices=s,l},e}();function cO(e,t,n){var i={width:t,height:n,aspectratio:t/n},o=!0;return ty(e,(function(e,t){var n=t.match(sO);if(n&&n[1]&&n[2]){var r=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(i[a],e,r)||(o=!1)}})),o}var uO=lO,pO=ty,dO=hy,hO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function fO(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=hO.length;n<i;n++){var o=hO[n],r=t.normal,a=t.emphasis;r&&r[o]&&("production"!==process.env.NODE_ENV&&LS("itemStyle.normal."+o,o),e[o]=e[o]||{},e[o].normal?Xv(e[o].normal,r[o]):e[o].normal=r[o],r[o]=null),a&&a[o]&&("production"!==process.env.NODE_ENV&&LS("itemStyle.emphasis."+o,"emphasis."+o),e[o]=e[o]||{},e[o].emphasis?Xv(e[o].emphasis,a[o]):e[o].emphasis=a[o],a[o]=null)}}function gO(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,o=e[t].emphasis;i&&("production"!==process.env.NODE_ENV&&OS("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),n?(e[t].normal=e[t].emphasis=null,Kv(e[t],i)):e[t]=i),o&&("production"!==process.env.NODE_ENV&&OS(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=o,o.focus&&(e.emphasis.focus=o.focus),o.blurScope&&(e.emphasis.blurScope=o.blurScope))}}function mO(e){gO(e,"itemStyle"),gO(e,"lineStyle"),gO(e,"areaStyle"),gO(e,"label"),gO(e,"labelLine"),gO(e,"upperLabel"),gO(e,"edgeLabel")}function vO(e,t){var n=dO(e)&&e[t],i=dO(n)&&n.textStyle;if(i){"production"!==process.env.NODE_ENV&&OS("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var o=0,r=FS.length;o<r;o++){var a=FS[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function yO(e){e&&(mO(e),vO(e,"label"),e.emphasis&&vO(e.emphasis,"label"))}function xO(e){return ly(e)?e:e?[e]:[]}function bO(e){return(ly(e)?e[0]:e)||{}}function _O(e,t){pO(xO(e.series),(function(e){dO(e)&&function(e){if(dO(e)){fO(e),mO(e),vO(e,"label"),vO(e,"upperLabel"),vO(e,"edgeLabel"),e.emphasis&&(vO(e.emphasis,"label"),vO(e.emphasis,"upperLabel"),vO(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(fO(t),yO(t));var n=e.markLine;n&&(fO(n),yO(n));var i=e.markArea;i&&yO(i);var o=e.data;if("graph"===e.type){o=o||e.nodes;var r=e.links||e.edges;if(r&&!gy(r))for(var a=0;a<r.length;a++)yO(r[a]);ty(e.categories,(function(e){mO(e)}))}if(o&&!gy(o))for(a=0;a<o.length;a++)yO(o[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)yO(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)ly(l[a])?(yO(l[a][0]),yO(l[a][1])):yO(l[a])}"gauge"===e.type?(vO(e,"axisLabel"),vO(e,"title"),vO(e,"detail")):"treemap"===e.type?(gO(e.breadcrumb,"itemStyle"),ty(e.levels,(function(e){mO(e)}))):"tree"===e.type&&mO(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),pO(n,(function(t){pO(xO(e[t]),(function(e){e&&(vO(e,"axisLabel"),vO(e.axisPointer,"label"))}))})),pO(xO(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;vO(t,"axisLabel"),vO(t&&t.axisPointer,"label")})),pO(xO(e.calendar),(function(e){gO(e,"itemStyle"),vO(e,"dayLabel"),vO(e,"monthLabel"),vO(e,"yearLabel")})),pO(xO(e.radar),(function(e){vO(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name,"production"!==process.env.NODE_ENV&&OS("name property in radar component has been changed to axisName")),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap,"production"!==process.env.NODE_ENV&&OS("nameGap property in radar component has been changed to axisNameGap")),"production"!==process.env.NODE_ENV&&pO(e.indicator,(function(e){e.text&&LS("text","name","radar.indicator")}))})),pO(xO(e.geo),(function(e){dO(e)&&(yO(e),pO(xO(e.regions),(function(e){yO(e)})))})),pO(xO(e.timeline),(function(e){yO(e),gO(e,"label"),gO(e,"itemStyle"),gO(e,"controlStyle",!0);var t=e.data;ly(t)&&ty(t,(function(e){hy(e)&&(gO(e,"label"),gO(e,"itemStyle"))}))})),pO(xO(e.toolbox),(function(e){gO(e,"iconStyle"),pO(e.feature,(function(e){gO(e,"iconStyle")}))})),vO(bO(e.axisPointer),"label"),vO(bO(e.tooltip).axisPointer,"label")}function wO(e){e&&ty(SO,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var SO=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],MO=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],CO=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function IO(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<CO.length;n++){var i=CO[n][1],o=CO[n][0];null!=t[i]&&(t[o]=t[i],"production"!==process.env.NODE_ENV&&LS(i,o))}}function TO(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&("production"!==process.env.NODE_ENV&&LS("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function AO(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,"production"!==process.env.NODE_ENV&&LS("downplay","blur","sunburst"))}function DO(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&DO(e[n].children,t)}function kO(e,t){_O(e,t),e.series=BS(e.series),ty(e.series,(function(e){if(hy(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow,"production"!==process.env.NODE_ENV&&LS("clipOverflow","clip","line"));else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise,"production"!==process.env.NODE_ENV&&LS("clockWise","clockwise")),TO(e.label),(o=e.data)&&!gy(o))for(var n=0;n<o.length;n++)TO(o[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&("production"!==process.env.NODE_ENV&&LS("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var i=function(e,t){for(var n=t.split(","),i=e,o=0;o<n.length&&null!=(i=i&&i[n[o]]);o++);return i}(e,"pointer.color");null!=i&&function(e,t,n,i){for(var o,r=t.split(","),a=e,s=0;s<r.length-1;s++)null==a[o=r[s]]&&(a[o]={}),a=a[o];(i||null==a[r[s]])&&(a[r[s]]=n)}(e,"itemStyle.color",i)}else if("bar"===t){var o;if(IO(e),IO(e.backgroundStyle),IO(e.emphasis),(o=e.data)&&!gy(o))for(n=0;n<o.length;n++)"object"==typeof o[n]&&(IO(o[n]),IO(o[n]&&o[n].emphasis))}else if("sunburst"===t){var r=e.highlightPolicy;r&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=r,"production"!==process.env.NODE_ENV&&LS("highlightPolicy","emphasis.focus","sunburst"))),AO(e),DO(e.data,AO)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&("production"!==process.env.NODE_ENV&&LS("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&("production"!==process.env.NODE_ENV&&LS("mapType","map","map"),e.map=e.mapType),e.mapLocation&&("production"!==process.env.NODE_ENV&&OS("`mapLocation` is not used anymore."),Kv(e,e.mapLocation)));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&("production"!==process.env.NODE_ENV&&LS("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),wO(e)}})),e.dataRange&&(e.visualMap=e.dataRange),ty(MO,(function(t){var n=e[t];n&&(ly(n)||(n=[n]),ty(n,(function(e){wO(e)})))}))}function EO(e){ty(e,(function(t,n){var i=[],o=[NaN,NaN],r=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(r,(function(r,c,u){var p,d,h=a.get(t.stackedDimension,u);if(isNaN(h))return o;s?d=a.getRawIndex(u):p=a.get(t.stackedByDimension,u);for(var f=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,p)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&h>=0&&v>0||"samesign"===l&&h<=0&&v<0){h=pS(h,v),f=v;break}}}return i[0]=h,i[1]=f,i}))}))}var OO,LO,NO,PO,RO,zO=function(e){this.data=e.data||(e.sourceFormat===AE?{}:[]),this.sourceFormat=e.sourceFormat||kE,this.seriesLayoutBy=e.seriesLayoutBy||EE,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&VE(this,n)===LE.Must&&(i.type="ordinal")}};function VO(e){return e instanceof zO}function BO(e,t,n){n=n||FO(e);var i=t.seriesLayoutBy,o=function(e,t,n,i,o){var r,a;if(!e)return{dimensionsDefine:GO(o),startIndex:a,dimensionsDetectedCount:r};if(t===IE){var s=e;"auto"===i||null==i?HO((function(e){null!=e&&"-"!==e&&(uy(e)?null==a&&(a=1):a=0)}),n,s,10):a=dy(i)?i:i?1:0,o||1!==a||(o=[],HO((function(e,t){o[t]=null!=e?e+"":""}),n,s,1/0)),r=o?o.length:n===OE?s.length:s[0]?s[0].length:null}else if(t===TE)o||(o=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t)return ry(t)}(e));else if(t===AE)o||(o=[],ty(e,(function(e,t){o.push(t)})));else if(t===CE){var l=GS(e[0]);r=ly(l)&&l.length||1}else t===DE&&"production"!==process.env.NODE_ENV&&Cy(!!o,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:GO(o),dimensionsDetectedCount:r}}(e,n,i,t.sourceHeader,t.dimensions);return new zO({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:qv(t)})}function jO(e){return new zO({data:e,sourceFormat:gy(e)?DE:CE})}function FO(e){var t=kE;if(gy(e))t=DE;else if(ly(e)){0===e.length&&(t=IE);for(var n=0,i=e.length;n<i;n++){var o=e[n];if(null!=o){if(ly(o)||gy(o)){t=IE;break}if(hy(o)){t=TE;break}}}}else if(hy(e))for(var r in e)if(zy(e,r)&&ey(e[r])){t=AE;break}return t}function GO(e){if(e){var t=Ly();return ny(e,(function(e,n){var i={name:(e=hy(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i}))}}function HO(e,t,n,i){if(t===OE)for(var o=0;o<n.length&&o<i;o++)e(n[o]?n[o][0]:null,o);else{var r=n[0]||[];for(o=0;o<r.length&&o<i;o++)e(r[o],o)}}function WO(e){var t=e.sourceFormat;return t===TE||t===AE}var UO=function(){function e(e,t){var n=VO(e)?e:jO(e);this._source=n;var i=this._data=n.data;if(n.sourceFormat===DE){if("production"!==process.env.NODE_ENV&&null==t)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=i}RO(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;RO=function(e,o,r){var a=r.sourceFormat,s=r.seriesLayoutBy,l=r.startIndex,c=r.dimensionsDefine,u=PO[tL(a,s)];if("production"!==process.env.NODE_ENV&&Cy(u,"Invalide sourceFormat: "+a),Zv(e,u),a===DE)e.getItem=t,e.count=i,e.fillStorage=n;else{var p=XO(a,s);e.getItem=ay(p,null,o,l,c);var d=KO(a,s);e.count=ay(d,null,o,l,c)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,o=i*e,r=0;r<i;r++)t[r]=n[o+r];return t},n=function(e,t,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],c=null==s[1]?-1/0:s[1],u=t-e,p=n[a],d=0;d<u;d++){var h=o[d*r+a];p[e+d]=h,h<l&&(l=h),h>c&&(c=h)}s[0]=l,s[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function o(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[IE+"_"+EE]={pure:!0,appendData:o},e[IE+"_"+OE]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[TE]={pure:!0,appendData:o},e[AE]={pure:!0,appendData:function(e){var t=this._data;ty(e,(function(e,n){for(var i=t[n]||(t[n]=[]),o=0;o<(e||[]).length;o++)i.push(e[o])}))}},e[CE]={appendData:o},e[DE]={persistent:!1,pure:!0,appendData:function(e){"production"!==process.env.NODE_ENV&&Cy(gy(e),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},PO=e}(),e}(),YO=function(e,t,n,i){return e[i]},qO=((OO={})[IE+"_"+EE]=function(e,t,n,i){return e[i+t]},OO[IE+"_"+OE]=function(e,t,n,i,o){i+=t;for(var r=o||[],a=e,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},OO[TE]=YO,OO[AE]=function(e,t,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=n[a].name;if("production"!==process.env.NODE_ENV&&null==s)throw new Error;var l=e[s];r[a]=l?l[i]:null}return r},OO[CE]=YO,OO);function XO(e,t){var n=qO[tL(e,t)];return"production"!==process.env.NODE_ENV&&Cy(n,'Do not support get item on "'+e+'", "'+t+'".'),n}var $O=function(e,t,n){return e.length},ZO=((LO={})[IE+"_"+EE]=function(e,t,n){return Math.max(0,e.length-t)},LO[IE+"_"+OE]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},LO[TE]=$O,LO[AE]=function(e,t,n){var i=n[0].name;if("production"!==process.env.NODE_ENV&&null==i)throw new Error;var o=e[i];return o?o.length:0},LO[CE]=$O,LO);function KO(e,t){var n=ZO[tL(e,t)];return"production"!==process.env.NODE_ENV&&Cy(n,'Do not support count on "'+e+'", "'+t+'".'),n}var JO=function(e,t,n){return e[t]},QO=((NO={})[IE]=JO,NO[TE]=function(e,t,n){return e[n]},NO[AE]=JO,NO[CE]=function(e,t,n){var i=GS(e);return i instanceof Array?i[t]:i},NO[DE]=JO,NO);function eL(e){var t=QO[e];return"production"!==process.env.NODE_ENV&&Cy(t,'Do not support get value on "'+e+'".'),t}function tL(e,t){return e===IE?e+"_"+t:e}function nL(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var o=e.getStore(),r=o.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=o.getDimensionProperty(a);return eL(r)(i,a,s)}var l=i;return r===CE&&(l=GS(i)),l}}}var iL=/\{@(.+?)\}/g,oL=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),o=n.getRawIndex(e),r=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],c=s&&s.stroke,u=this.mainType,p="series"===u,d=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:r,dataIndex:o,data:a,dataType:t,value:i,color:l,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,i,o,r){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);(r&&(s.value=r.interpolatedValue),null!=i&&ly(s.value)&&(s.value=s.value[i]),o)||(o=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return cy(o)?(s.status=t,s.dimensionIndex=i,o(s)):uy(o)?oE(o,s).replace(iL,(function(t,n){var i=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(i-1)&&(o=+o.slice(1,i-1),"production"!==process.env.NODE_ENV&&isNaN(o)&&ES("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=nL(a,e,o);if(r&&ly(r.interpolatedValue)){var l=a.getDimensionIndex(o);l>=0&&(s=r.interpolatedValue[l])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return nL(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function rL(e){var t,n;return hy(e)?e.type?n=e:"production"!==process.env.NODE_ENV&&console.warn("The return type of `formatTooltip` is not supported: "+NS(e)):t=e,{text:t,frag:n}}function aL(e){return new sL(e)}var sL=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var r,a=u(this._modBy),s=this._modDataCount||0,l=u(e&&e.modBy),c=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}a===l&&s===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,r=this._doReset(i)),this._modBy=l,this._modDataCount=c;var p=e&&e.step;if(n?("production"!==process.env.NODE_ENV&&Cy(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):("production"!==process.env.NODE_ENV&&Cy(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,h=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(r||d<h)){var f=this._progress;if(ly(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,h,l,c);else this._doProgress(f,d,h,l,c)}this._dueIndex=h;var m=null!=this._settedOutputEnd?this._settedOutputEnd:h;"production"!==process.env.NODE_ENV&&Cy(m>=this._outputDueEnd),this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,o){lL.reset(t,n,i,o),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:lL.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),ly(t)&&!t.length&&(t=null)),this._progress=t,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(e){"production"!==process.env.NODE_ENV&&Cy(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),lL=function(){var e,t,n,i,o,r={reset:function(l,c,u,p){t=l,e=c,n=u,i=p,o=Math.ceil(i/n),r.next=n>1&&i>0?s:a}};return r;function a(){return t<e?t++:null}function s(){var r=t%o*n+Math.ceil(t/o),a=t>=e?null:r<i?r:t;return t++,a}}();function cL(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||dy(e)||null==e||"-"===e||(e=+mS(e)),null==e||""===e?NaN:+e)}var uL=Ly({number:function(e){return parseFloat(e)},time:function(e){return+mS(e)},trim:function(e){return uy(e)?Iy(e):e}});function pL(e){return uL.get(e)}var dL={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}},hL=function(){function e(e,t){if(!dy(t)){var n="";"production"!==process.env.NODE_ENV&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),PS(n)}this._opFn=dL[e],this._rvalFloat=_S(t)}return e.prototype.evaluate=function(e){return dy(e)?this._opFn(e,this._rvalFloat):this._opFn(_S(e),this._rvalFloat)},e}(),fL=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=dy(e)?e:_S(e),i=dy(t)?t:_S(t),o=isNaN(n),r=isNaN(i);if(o&&(n=this._incomparable),r&&(i=this._incomparable),o&&r){var a=uy(e),s=uy(t);a&&(n=s?e:0),s&&(i=a?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),gL=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=_S(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=_S(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function mL(e,t){return"eq"===e||"ne"===e?new gL("eq"===e,t):zy(dL,e)?new hL(e,t):null}var vL=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return cL(e,t)},e}();function yL(e){var t=e.sourceFormat;if(!ML(t)){var n="";"production"!==process.env.NODE_ENV&&(n="`getRawData` is not supported in source format "+t),PS(n)}return e.data}function xL(e){var t=e.sourceFormat,n=e.data;if(!ML(t)){var i="";"production"!==process.env.NODE_ENV&&(i="`cloneRawData` is not supported in source format "+t),PS(i)}if(t===IE){for(var o=[],r=0,a=n.length;r<a;r++)o.push(n[r].slice());return o}if(t===TE){for(o=[],r=0,a=n.length;r<a;r++)o.push(Zv({},n[r]));return o}}function bL(e,t,n){if(null!=n)return dy(n)||!isNaN(n)&&!zy(t,n)?e[n]:zy(t,n)?t[n]:void 0}function _L(e){return qv(e)}var wL=Ly();function SL(e,t,n,i){var o="";t.length||("production"!==process.env.NODE_ENV&&(o="Must have at least one upstream dataset."),PS(o)),hy(e)||("production"!==process.env.NODE_ENV&&(o="transform declaration must be an object rather than "+typeof e+"."),PS(o));var r=e.type,a=wL.get(r);a||("production"!==process.env.NODE_ENV&&(o='Can not find transform on type "'+r+'".'),PS(o));var s,l=ny(t,(function(e){return function(e,t){var n=new vL,i=e.data,o=n.sourceFormat=e.sourceFormat,r=e.startIndex,a="";e.seriesLayoutBy!==EE&&("production"!==process.env.NODE_ENV&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),PS(a));var s=[],l={},c=e.dimensionsDefine;if(c)ty(c,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(s.push(i),null!=n){var o="";zy(l,n)&&("production"!==process.env.NODE_ENV&&(o='dimension name "'+n+'" duplicated.'),PS(o)),l[n]=i}}));else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var p=XO(o,EE);t.__isBuiltIn&&(n.getRawDataItem=function(e){return p(i,r,s,e)},n.getRawData=ay(yL,null,e)),n.cloneRawData=ay(xL,null,e);var d=KO(o,EE);n.count=ay(d,null,i,r,s);var h=eL(o);n.retrieveValue=function(e,t){var n=p(i,r,s,e);return f(n,t)};var f=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=s[t];return n?h(e,t,n.name):void 0}};return n.getDimensionInfo=ay(bL,null,s,l),n.cloneAllDimensionInfo=ay(_L,null,s),n}(e,a)})),c=BS(a.transform({upstream:l[0],upstreamList:l,config:qv(e.config)}));if("production"!==process.env.NODE_ENV&&e.print){var u=ny(c,(function(e){var t=null!=i?" === pipe index: "+i:"";return["=== dataset index: "+n.datasetIndex+t+" ===","- transform result data:",NS(e.data),"- transform result dimensions:",NS(e.dimensions)].join("\n")})).join("\n");DS("log",u,s)}return ny(c,(function(e,n){var i,o="";hy(e)||("production"!==process.env.NODE_ENV&&(o="A transform should not return some empty results."),PS(o)),e.data||("production"!==process.env.NODE_ENV&&(o="Transform result data should be not be null or undefined"),PS(o)),ML(FO(e.data))||("production"!==process.env.NODE_ENV&&(o="Transform result data should be array rows or object rows."),PS(o));var r=t[0];if(r&&0===n&&!e.dimensions){var a=r.startIndex;a&&(e.data=r.data.slice(0,a).concat(e.data)),i={seriesLayoutBy:EE,sourceHeader:a,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:EE,sourceHeader:0,dimensions:e.dimensions};return BO(e.data,i,null)}))}function ML(e){return e===IE||e===TE}var CL,IL="undefined",TL=typeof Uint32Array===IL?Array:Uint32Array,AL=typeof Uint16Array===IL?Array:Uint16Array,DL=typeof Int32Array===IL?Array:Int32Array,kL=typeof Float64Array===IL?Array:Float64Array,EL={float:kL,int:DL,ordinal:Array,number:Array,time:kL};function OL(e){return e>65535?TL:AL}function LL(e,t,n,i,o){var r=EL[n||"float"];if(o){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new r(i),c=0;c<s;c++)l[c]=a[c];e[t]=l}}else e[t]=new r(i)}var NL=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ly()}return e.prototype.initData=function(e,t,n){"production"!==process.env.NODE_ENV&&Cy(cy(e.getItem)&&cy(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),o=this.defaultDimValueGetter=CL[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[];var r=WO(i);this._dimensions=ny(t,(function(e){return"production"!==process.env.NODE_ENV&&r&&Cy(null!=e.property),{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(e);if(null!=o){if(i[o].type===t)return o}else o=i.length;return i[o]={type:t},n.set(e,o),this._chunks[o]=new EL[t||"float"](this._rawCount),this._rawExtent[o]=[1/0,-1/0],o},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length;0===r&&(o[e]=[1/0,-1/0]);for(var s=o[e],l=r;l<a;l++){var c=n[l]=t.parseAndCollect(n[l]);isNaN(c)||(s[0]=Math.min(c,s[0]),s[1]=Math.max(c,s[1]))}i.ordinalMeta=t,i.ordinalOffset=a,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){"production"!==process.env.NODE_ENV&&Cy(!this._indices,"appendData can only be called on raw data.");var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<o;l++){LL(n,l,(h=i[l]).type,s,!0)}for(var c=[],u=a;u<s;u++)for(var p=u-a,d=0;d<o;d++){var h=i[d],f=CL.arrayRows.call(this,e[p]||c,h.property,p,d);n[d][u]=f;var g=r[d];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=ny(r,(function(e){return e.property})),c=0;c<a;c++){var u=r[c];s[c]||(s[c]=[1/0,-1/0]),LL(o,c,u.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,o,s);else for(var p=[],d=e;d<t;d++){p=i.getItem(d,p);for(var h=0;h<a;h++){var f=o[h],g=this._dimValueGetter(p,l[h],d,h);f[d]=g;var m=s[h];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=e;o=0;for(var r=i.length;o<r;o++)n.push(this.get(i[o],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(t+=o)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(t[r]<e)i=r+1;else{if(!(t[r]>e))return r;o=r-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks[e],o=[];if(!i)return o;null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,c=this.count();l<c;l++){var u=t-i[this.getRawIndex(l)],p=Math.abs(u);p<=n&&((p<r||p===r&&u>=0&&a<0)&&(r=p,a=u,s=0),u===a&&(o[s++]=l))}return o.length=s,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var o=0;o<i;o++)e[o]=t[o]}else e=new n(t.buffer,0,i)}else{e=new(n=OL(this._rawCount))(this.count());for(o=0;o<e.length;o++)e[o]=o}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(OL(n._rawCount))(i),r=[],a=e.length,s=0,l=e[0],c=n._chunks,u=0;u<i;u++){var p=void 0,d=n.getRawIndex(u);if(0===a)p=t(u);else if(1===a){p=t(c[l][d],u)}else{for(var h=0;h<a;h++)r[h]=c[e[h]][d];r[h]=u,p=t.apply(null,r)}p&&(o[s++]=d)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=ry(e),o=i.length;if(!o)return this;var r=t.count(),a=new(OL(t._rawCount))(r),s=0,l=i[0],c=e[l][0],u=e[l][1],p=t._chunks,d=!1;if(!t._indices){var h=0;if(1===o){for(var f=p[i[0]],g=0;g<n;g++){((x=f[g])>=c&&x<=u||isNaN(x))&&(a[s++]=h),h++}d=!0}else if(2===o){f=p[i[0]];var m=p[i[1]],v=e[i[1]][0],y=e[i[1]][1];for(g=0;g<n;g++){var x=f[g],b=m[g];(x>=c&&x<=u||isNaN(x))&&(b>=v&&b<=y||isNaN(b))&&(a[s++]=h),h++}d=!0}}if(!d)if(1===o)for(g=0;g<r;g++){var _=t.getRawIndex(g);((x=p[i[0]][_])>=c&&x<=u||isNaN(x))&&(a[s++]=_)}else for(g=0;g<r;g++){for(var w=!0,S=(_=t.getRawIndex(g),0);S<o;S++){var M=i[S];((x=p[M][_])<e[M][0]||x>e[M][1])&&(w=!1)}w&&(a[s++]=t.getRawIndex(g))}return s<r&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,o=[],r=t.length,a=e.count(),s=[],l=e._rawExtent,c=0;c<t.length;c++)l[t[c]]=[1/0,-1/0];for(var u=0;u<a;u++){for(var p=e.getRawIndex(u),d=0;d<r;d++)s[d]=i[t[d]][p];s[r]=u;var h=n&&n.apply(null,s);if(null!=h){"object"!=typeof h&&(o[0]=h,h=o);for(c=0;c<h.length;c++){var f=t[c],g=h[c],m=l[f],v=i[f];v&&(v[p]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,o,r=this.clone([e],!0),a=r._chunks[e],s=this.count(),l=0,c=Math.floor(1/t),u=this.getRawIndex(0),p=new(OL(this._rawCount))(Math.min(2*(Math.ceil(s/c)+2),s));p[l++]=u;for(var d=1;d<s-1;d+=c){for(var h=Math.min(d+c,s-1),f=Math.min(d+2*c,s),g=(f+h)/2,m=0,v=h;v<f;v++){var y=a[C=this.getRawIndex(v)];isNaN(y)||(m+=y)}m/=f-h;var x=d,b=Math.min(d+c,s),_=d-1,w=a[u];n=-1,o=x;var S=-1,M=0;for(v=x;v<b;v++){var C;y=a[C=this.getRawIndex(v)];isNaN(y)?(M++,S<0&&(S=C)):(i=Math.abs((_-g)*(y-w)-(_-v)*(m-w)))>n&&(n=i,o=C)}M>0&&M<b-x&&(p[l++]=Math.min(S,o),o=Math.max(S,o)),p[l++]=o,u=o}return p[l++]=this.getRawIndex(s-1),r._count=l,r._indices=p,r.getRawIndex=this._getRawIdx,r},e.prototype.downSample=function(e,t,n,i){for(var o=this.clone([e],!0),r=o._chunks,a=[],s=Math.floor(1/t),l=r[e],c=this.count(),u=o._rawExtent[e]=[1/0,-1/0],p=new(OL(this._rawCount))(Math.ceil(c/s)),d=0,h=0;h<c;h+=s){s>c-h&&(s=c-h,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(h+f);a[f]=l[g]}var m=n(a),v=this.getRawIndex(Math.min(h+i(a,m)||0,c-1));l[v]=m,m<u[0]&&(u[0]=m),m>u[1]&&(u[1]=m),p[d++]=v}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:t(o);break;case 1:t(i[e[0]][a],o);break;case 2:t(i[e[0]][a],i[e[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][a];l[s]=o,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var i,o=this.count();if(!this._indices)return this._rawExtent[e].slice();if(i=this._extent[e])return i.slice();for(var r=(i=n)[0],a=i[1],s=0;s<o;s++){var l=t[this.getRawIndex(s)];l<r&&(r=l),l>a&&(a=l)}return i=[r,a],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][t]);return n},e.prototype.clone=function(t,n){var i,o,r=new e,a=this._chunks,s=t&&iy(t,(function(e,t){return e[t]=!0,e}),{});if(s)for(var l=0;l<a.length;l++)r._chunks[l]=s[l]?(i=a[l],o=void 0,(o=i.constructor)===Array?i.slice():new o(i)):a[l];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=qv(this._extent),e._rawExtent=qv(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return cL(e[i],this._dimensions[i])}CL={arrayRows:e,objectRows:function(e,t,n,i){return cL(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var o=e&&(null==e.value?e:e.value);return cL(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}(),PL=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),o=!!i.length;if(zL(n)){var r=n,a=void 0,s=void 0,l=void 0;if(o){var c=i[0];c.prepareSource(),a=(l=c.getSource()).data,s=l.sourceFormat,t=[c._getVersionSign()]}else s=gy(a=r.get("data",!0))?DE:CE,t=[];var u=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},d=_y(u.seriesLayoutBy,p.seriesLayoutBy)||null,h=_y(u.sourceHeader,p.sourceHeader),f=_y(u.dimensions,p.dimensions);e=d!==p.seriesLayoutBy||!!h!=!!p.sourceHeader||f?[BO(a,{seriesLayoutBy:d,sourceHeader:h,dimensions:f},s)]:[]}else{var g=n;if(o){var m=this._applyTransform(i);e=m.sourceList,t=m.upstreamSignList}else{e=[BO(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}"production"!==process.env.NODE_ENV&&Cy(e&&t),this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0);if("production"!==process.env.NODE_ENV&&Cy(null!=o||null!=i),null!=o){var r="";1!==e.length&&("production"!==process.env.NODE_ENV&&(r="When using `fromTransformResult`, there should be only one upstream dataset"),VL(r))}var a,s=[],l=[];return ty(e,(function(e){e.prepareSource();var t=e.getSource(o||0),n="";null==o||t||("production"!==process.env.NODE_ENV&&(n="Can not retrieve result by `fromTransformResult`: "+o),VL(n)),s.push(t),l.push(e._getVersionSign())})),i?t=function(e,t,n){var i=BS(e),o=i.length,r="";o||("production"!==process.env.NODE_ENV&&(r="If `transform` declared, it should at least contain one transform."),PS(r));for(var a=0,s=o;a<s;a++)t=SL(i[a],t,n,1===o?null:a),a!==s-1&&(t.length=Math.max(t.length,1));return t}(i,s,{datasetIndex:n.componentIndex}):null!=o&&(t=[(a=s[0],new zO({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:qv(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){"production"!==process.env.NODE_ENV&&Cy(zL(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=this._storeList,o=i[0];o||(o=i[0]={});var r=o[n];if(!r){var a=this._getUpstreamSourceManagers()[0];zL(this._sourceHost)&&a?r=a._innerGetDataStore(e,t,n):(r=new NL).initData(new UO(t,e.length),e),o[n]=r}return r},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(zL(e)){var t=zE(e);return t?[t.getSourceManager()]:[]}return ny(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?rM(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},iM).models:[]}(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(zL(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=i;e=o.get("seriesLayoutBy",!0),t=o.get("sourceHeader",!0),n=o.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function RL(e){e.option.transform&&Ay(e.option.transform)}function zL(e){return"series"===e.mainType}function VL(e){throw new Error(e)}var BL="line-height:1";function jL(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,o=e.fontWeight||"400",r=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+gx(i+"")+"px;color:"+gx(n)+";font-weight:"+gx(o+""),valueStyle:"font-size:"+gx(a+"")+"px;color:"+gx(r)+";font-weight:"+gx(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:s}}}var FL=[0,10,20,30],GL=["","\n","\n\n","\n\n\n"];function HL(e,t){return t.type=e,t}function WL(e){return"section"===e.type}function UL(e){return WL(e)?qL:XL}function YL(e){if(WL(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return ty(e.blocks,(function(e){var n=YL(e);n>=t&&(t=n+ +(i&&(!n||WL(e)&&!e.noHeader)))})),t}return 0}function qL(e,t,n,i){var o,r=t.noHeader,a=(o=YL(t),{html:FL[o],richText:GL[o]}),s=[],l=t.blocks||[];Cy(!l||ly(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(zy(u,c)){var p=new fL(u[c],null);l.sort((function(e,t){return p.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===c&&l.reverse()}ty(l,(function(n,o){var r=t.valueFormatter,l=UL(n)(r?Zv(Zv({},e),{valueFormatter:r}):e,n,o>0?a.html:0,i);null!=l&&s.push(l)}));var d="richText"===e.renderMode?s.join(a.richText):ZL(s.join(""),r?n:a.html);if(r)return d;var h=tE(t.header,"ordinal",e.useUTC),f=jL(i,e.renderMode).nameStyle;return"richText"===e.renderMode?KL(e,h,f)+a.richText+d:ZL('<div style="'+f+";"+BL+';">'+gx(h)+"</div>"+d,n)}function XL(e,t,n,i){var o=e.renderMode,r=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return ny(e=ly(e)?e:[e],(function(e,t){return tE(e,ly(h)?h[t]:h,c)}))};if(!r||!a){var p=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),d=r?"":tE(l,"ordinal",c),h=t.valueType,f=a?[]:u(t.value,t.dataIndex),g=!s||!r,m=!s&&r,v=jL(i,o),y=v.nameStyle,x=v.valueStyle;return"richText"===o?(s?"":p)+(r?"":KL(e,d,y))+(a?"":function(e,t,n,i,o){var r=[o],a=i?10:20;return n&&r.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ly(t)?t.join(" "):t,r)}(e,f,g,m,x)):ZL((s?"":p)+(r?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+gx(e)+"</span>"}(d,!s,y))+(a?"":function(e,t,n,i){var o=n?"10px":"20px",r=t?"float:right;margin-left:"+o:"";return e=ly(e)?e:[e],'<span style="'+r+";"+i+'">'+ny(e,(function(e){return gx(e)})).join(" ")+"</span>"}(f,g,m,x)),n)}}function $L(e,t,n,i,o,r){if(e)return UL(e)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,r)}function ZL(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+BL+';">'+e+'<div style="clear:both"></div></div>'}function KL(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function JL(e,t){return rE(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function QL(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var eN=function(){function e(){this.richTextStyles={},this._nextStyleNameId=SS()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,o=function(e,t){var n=uy(e)?{color:e,extraCssText:t}:e||{},i=n.color,o=n.type;t=n.extraCssText;var r=n.renderMode||"html";return i?"html"===r?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+gx(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+gx(i)+";"+(t||"")+'"></span>':{renderMode:r,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:t,type:e,renderMode:n,markerId:i});return uy(o)?o:("production"!==process.env.NODE_ENV&&Cy(i),this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};ly(t)?ty(t,(function(e){return Zv(n,e)})):Zv(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function tN(e){var t,n,i,o,r=e.series,a=e.dataIndex,s=e.multipleSeries,l=r.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,p=r.getRawValue(a),d=ly(p),h=JL(r,a);if(u>1||d&&!u){var f=function(e,t,n,i,o){var r=t.getData(),a=iy(e,(function(e,t,n){var i=r.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],c=[];function u(e,t){var n=r.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?c.push(HL("nameValue",{markerType:"subItem",markerColor:o,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?ty(i,(function(e){u(nL(r,n,e),e)})):ty(e,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}(p,r,a,c,h);t=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,o=f.inlineValues[0]}else if(u){var g=l.getDimensionInfo(c[0]);o=t=nL(l,a,c[0]),n=g.type}else o=t=d?p[0]:p;var m=ZS(r),v=m&&r.name||"",y=l.getName(a),x=s?v:y;return HL("section",{header:v,noHeader:s||!m,sortParam:o,blocks:[HL("nameValue",{markerType:"item",markerColor:h,name:x,noName:!Iy(x),value:t,valueType:n,dataIndex:a})].concat(i||[])})}var nN=QS();function iN(e,t){return e.getName(t)||e.getId(t)}var oN="__universalTransitionEnabled",rN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return G(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=aL({count:sN,reset:lN}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(nN(this).sourceManager=new PL(this)).prepareSource();var i=this.getInitialData(e,n);uN(i,this),this.dataTask.context.data=i,"production"!==process.env.NODE_ENV&&Cy(i,"getInitialData returned invalid data."),nN(this).dataBeforeProcessed=i,aN(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=fE(this),i=n?mE(e):{},o=this.subType;bE.hasClass(o)&&(o+="Series"),Xv(e,t.getTheme().get(this.subType)),Xv(e,this.getDefaultOption()),jS(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&gE(e,i,n)},t.prototype.mergeOption=function(e,t){e=Xv(this.option,e,!0),this.fillDataTextStyle(e.data);var n=fE(this);n&&gE(this.option,e,n);var i=nN(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,t);uN(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,nN(this).dataBeforeProcessed=o,aN(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!gy(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&jS(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=dN(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return nN(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=dN(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}nN(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Ly(e)},t.prototype.getSourceManager=function(){return nN(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return nN(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return tN({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Cv.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,o=YE.prototype.getColorFromPalette.call(this,e,t,n);return o||(o=i.getColorFromPalette(e,t,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var r=0;r<e.length;r++){var a=iN(o,e[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=ry(e),n=[],i=0;i<t.length;i++){var o=e[t[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[iN(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[oN])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,o=this.option,r=o.selectedMode,a=t.length;if(r&&a)if("series"===r)o.selectedMap="all";else if("multiple"===r){hy(o.selectedMap)||(o.selectedMap={});for(var s=o.selectedMap,l=0;l<a;l++){var c=t[l];s[p=iN(e,c)]=!0,this._selectedDataIndicesMap[p]=e.getRawIndex(c)}}else if("single"===r||!0===r){var u=t[a-1],p=iN(e,u);o.selectedMap=((n={})[p]=!0,n),this._selectedDataIndicesMap=((i={})[p]=e.getRawIndex(u),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return bE.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(bE);function aN(e){var t=e.name;ZS(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return ty(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}(e)||t)}function sN(e){return e.model.getRawData().count()}function lN(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),cN}function cN(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function uN(e,t){ty(Ny(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,sy(pN,t))}))}function pN(e,t){var n=dN(e);return n&&n.setOutputEnd((t||this).count()),t}function dN(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(e.uid))}return i}}Qv(rN,oL),Qv(rN,YE),fM(rN,bE);var hN=rN,fN=function(){function e(){this.group=new Zw,this.uid=dk("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();hM(fN),yM(fN);var gN=fN;function mN(){var e=QS();return function(t){var n=e(t),i=t.pipelineContext,o=!!n.large,r=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(o===a&&r===s)&&"reset"}}var vN=QS(),yN=mN(),xN=function(){function e(){this.group=new Zw,this.uid=dk("viewChart"),this.renderTask=aL({plan:wN,reset:SN}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){if("production"!==process.env.NODE_ENV)throw new Error("render method must been implemented")},e.prototype.highlight=function(e,t,n,i){var o=e.getData(i&&i.dataType);o?_N(o,i,"emphasis"):"production"!==process.env.NODE_ENV&&ES("Unknown dataType "+i.dataType)},e.prototype.downplay=function(e,t,n,i){var o=e.getData(i&&i.dataType);o?_N(o,i,"normal"):"production"!==process.env.NODE_ENV&&ES("Unknown dataType "+i.dataType)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){LD(this.group,e)},e.markUpdateMethod=function(e,t){vN(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function bN(e,t,n){e&&IT(e)&&("emphasis"===t?aT:sT)(e,n)}function _N(e,t,n){var i=JS(e,t),o=t&&null!=t.highlightKey?function(e){var t=kI[e];return null==t&&DI<=32&&(t=kI[e]=DI++),t}(t.highlightKey):null;null!=i?ty(BS(i),(function(t){bN(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){bN(e,n,o)}))}function wN(e){return yN(e.model)}function SN(e){var t=e.model,n=e.ecModel,i=e.api,o=e.payload,r=t.pipelineContext.progressiveRender,a=e.view,s=o&&vN(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,o),MN[l]}hM(xN,["dispose"]),yM(xN);var MN={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)}}},CN=xN,IN="\0__throttleOriginMethod",TN="\0__throttleRate",AN="\0__throttleType";function DN(e,t,n){var i,o,r,a,s,l=0,c=0,u=null;function p(){c=(new Date).getTime(),u=null,e.apply(r,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];i=(new Date).getTime(),r=this,a=e;var h=s||t,f=s||n;s=null,o=i-(f?l:c)-h,clearTimeout(u),f?u=setTimeout(p,h):o>=0?p():u=setTimeout(p,-o),l=i};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(e){s=e},d}function kN(e,t,n,i){var o=e[t];if(o){var r=o[IN]||o,a=o[AN];if(o[TN]!==n||a!==i){if(null==n||!i)return e[t]=r;(o=e[t]=DN(r,n,"debounce"===i))[IN]=r,o[AN]=i,o[TN]=n}return o}}function EN(e,t){var n=e[t];n&&n[IN]&&(n.clear&&n.clear(),e[t]=n[IN])}var ON=QS(),LN={itemStyle:xM(ak,!0),lineStyle:xM(ik,!0)},NN={lineStyle:"stroke",itemStyle:"fill"};function PN(e,t){var n=e.visualStyleMapper||LN[t];return n||(console.warn("Unknown style type '"+t+"'."),LN.itemStyle)}function RN(e,t){var n=e.visualDrawType||NN[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var zN={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",o=e.getModel(i),r=PN(e,i)(o),a=o.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=RN(e,i),l=r[s],c=cy(l)?l:null,u="auto"===r.fill||"auto"===r.stroke;if(!r[s]||c||u){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());r[s]||(r[s]=p,n.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||cy(r.fill)?p:r.fill,r.stroke="auto"===r.stroke||cy(r.stroke)?p:r.stroke}if(n.setVisual("style",r),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),o=Zv({},r);o[s]=c(i),t.setItemVisual(n,"style",o)}}}},VN=new uk,BN={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",o=PN(e,i),r=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){VN.option=n[i];var a=o(VN);Zv(e.ensureUniqueItemVisual(t,"style"),a),VN.option.decal&&(e.setItemVisual(t,"decal",VN.option.decal),VN.option.decal.dirty=!0),r in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},jN={performRawSeries:!0,overallReset:function(e){var t=Ly();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,o=t.get(i);o||(o={},t.set(i,o)),ON(e).scope=o}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},o=t.getData(),r=ON(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=RN(t,a);o.each((function(e){var t=o.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e];if(o.getItemVisual(a,"colorFromPalette")){var l=o.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",u=n.count();l[s]=t.getColorFromPalette(c,r,u)}}))}}))}},FN=Math.PI;var GN=function(){function e(e,t,n,i){this._stageTaskMap=Ly(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,o=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,r=i&&i.modDataCount;return{step:o,modBy:null!=r?Math.ceil(r/o):null,modDataCount:r}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,r=e.get("large")&&i>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:a,large:r}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Ly();e.eachSeries((function(e){var i=e.getProgressive(),o=e.uid;n.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;ty(this._allHandlers,(function(i){var o=e.get(i.uid)||e.set(i.uid,{}),r="";"production"!==process.env.NODE_ENV&&(r='"reset" and "overallReset" must not be both specified.'),Cy(!(i.reset&&i.overallReset),r),i.reset&&this._createSeriesStageTask(i,o,t,n),i.overallReset&&this._createOverallStageTask(i,o,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var o=e.renderTask,r=o.context;r.model=t,r.ecModel=n,r.api=i,o.__block=!e.incrementalPrepareRender,this._pipe(t,o)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var o=!1,r=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}ty(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=r._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var p,d=u.agentStubMap;d.each((function(e){a(i,e)&&(e.dirty(),p=!0)})),p&&u.dirty(),r.updatePayload(u,n);var h=r.getPerformArgs(u,i.block);d.each((function(e){e.perform(h)})),u.perform(h)&&(o=!0)}else c&&c.each((function(s,l){a(i,s)&&s.dirty();var c=r.getPerformArgs(s,i.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),r.updatePayload(s,n),s.perform(c)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var o=this,r=t.seriesTaskMap,a=t.seriesTaskMap=Ly(),s=e.seriesType,l=e.getTargetSeries;function c(t){var s=t.uid,l=a.set(s,r&&r.get(s)||aL({plan:qN,reset:XN,count:KN}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,i).each(c)},e.prototype._createOverallStageTask=function(e,t,n,i){var o=this,r=t.overallTask=t.overallTask||aL({reset:HN});r.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:o};var a=r.agentStubMap,s=r.agentStubMap=Ly(),l=e.seriesType,c=e.getTargetSeries,u=!0,p=!1,d="";function h(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(p=!0,aL({reset:WN,onDirty:YN})));n.context={model:e,overallProgress:u},n.agent=r,n.__block=u,o._pipe(e,n)}"production"!==process.env.NODE_ENV&&(d='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),Cy(!e.createOnAllSeries,d),l?n.eachRawSeriesByType(l,h):c?c(n,i).each(h):(u=!1,ty(n.getSeries(),h)),p&&r.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return cy(e)&&(e={overallReset:e,seriesType:JN(e)}),e.uid=dk("stageHandler"),t&&(e.visualType=t),e},e}();function HN(e){e.overallReset(e.ecModel,e.api,e.payload)}function WN(e){return e.overallProgress&&UN}function UN(){this.agent.dirty(),this.getDownstream().dirty()}function YN(){this.agent&&this.agent.dirty()}function qN(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function XN(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=BS(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ny(t,(function(e,t){return ZN(t)})):$N}var $N=ZN(0);function ZN(e){return function(t,n){var i=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var r=t.start;r<t.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(t,i)}}function KN(e){return e.data.count()}function JN(e){QN=null;try{e(eP,tP)}catch(e){}return QN}var QN,eP={},tP={};function nP(e,t){for(var n in t.prototype)e[n]=Vy}nP(eP,QE),nP(tP,oO),eP.eachSeriesByType=eP.eachRawSeriesByType=function(e){QN=e},eP.eachComponent=function(e){"series"===e.mainType&&e.subType&&(QN=e.subType)};var iP=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],oP={color:iP,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],iP]},rP="#B9B8CE",aP="#100C2A",sP=function(){return{axisLine:{lineStyle:{color:rP}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lP=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],cP={darkMode:!0,color:lP,backgroundColor:aP,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:rP}},textStyle:{color:rP},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:rP}},dataZoom:{borderColor:"#71708A",textStyle:{color:rP},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:rP}},timeline:{lineStyle:{color:rP},label:{color:rP},controlStyle:{color:rP,borderColor:rP}},calendar:{itemStyle:{color:aP},dayLabel:{color:rP},monthLabel:{color:rP},yearLabel:{color:rP}},timeAxis:sP(),logAxis:sP(),valueAxis:sP(),categoryAxis:sP(),line:{symbol:"circle"},graph:{color:lP},gauge:{title:{color:rP},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:rP},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};cP.categoryAxis.splitLine.show=!1;var uP=cP,pP=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(uy(e)){var o=dM(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var r=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};ty(e,(function(e,o){for(var s=!1,l=0;l<r.length;l++){var c=r[l],u=o.lastIndexOf(c);if(u>0&&u===o.length-c.length){var p=o.slice(0,u);"data"!==p&&(t.mainType=p,t[c.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(o)&&(n[o]=e,s=!0),s||(i[o]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,r=n.model,a=n.view;if(!r||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return c(s,r,"mainType")&&c(s,r,"subType")&&c(s,r,"index","componentIndex")&&c(s,r,"name")&&c(s,r,"id")&&c(l,o,"name")&&c(l,o,"dataIndex")&&c(l,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,o));function c(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),dP=["symbol","symbolSize","symbolRotate","symbolOffset"],hP=dP.concat(["symbolKeepAspect"]),fP={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},o={},r=!1,a=0;a<dP.length;a++){var s=dP[a],l=e.get(s);cy(l)?(r=!0,o[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(Zv({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var c=ry(o);return{dataEach:r?function(t,n){for(var i=e.getRawValue(n),r=e.getDataParams(n),a=0;a<c.length;a++){var s=c[a];t.setItemVisual(n,s,o[s](i,r))}}:null}}}}},gP={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),i=0;i<hP.length;i++){var o=hP[i],r=n.getShallow(o,!0);null!=r&&e.setItemVisual(t,o,r)}}:null}}};function mP(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}function vP(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+t)}}function yP(e,t,n,i){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}function xP(e,t){function n(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){i.push(e.seriesIndex)})),i}ty([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,o){t=Zv({},t),"production"!==process.env.NODE_ENV&&LS(t.type,e[1]),o.dispatchAction(Zv(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function bP(e,t,n,i,o){var r=e+t;n.isSilent(r)||("production"!==process.env.NODE_ENV&&OS("event "+r+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,i=e.option.selectedMap,a=o.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),c=JS(l,o.fromActionPayload);n.trigger(r,{type:r,seriesId:e.id,name:ly(c)?l.getName(c[0]):l.getName(c),selected:uy(i)?i:Zv({},i)})}})))}function _P(e,t,n){for(var i;e&&(!t(e)||(i=e,!n));)e=e.__hostTarget||e.parent;return i}var wP=Math.round(9*Math.random()),SP="function"==typeof Object.defineProperty,MP=function(){function e(){this._id="__ec_inner_"+wP++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return SP?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),CP=$C.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,o=t.width/2,r=t.height/2;e.moveTo(n,i-r),e.lineTo(n+o,i+r),e.lineTo(n-o,i+r),e.closePath()}}),IP=$C.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,o=t.width/2,r=t.height/2;e.moveTo(n,i-r),e.lineTo(n+o,i),e.lineTo(n,i+r),e.lineTo(n-o,i),e.closePath()}}),TP=$C.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,o=t.width/5*3,r=Math.max(o,t.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,c=Math.asin(s/a),u=Math.cos(c)*a,p=Math.sin(c),d=Math.cos(c),h=.6*a,f=.7*a;e.moveTo(n-u,l+s),e.arc(n,l,a,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+u-p*h,l+s+d*h,n,i-f,n,i),e.bezierCurveTo(n,i-f,n-u+p*h,l+s+d*h,n-u,l+s),e.closePath()}}),AP=$C.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,o=t.x,r=t.y,a=i/3*2;e.moveTo(o,r),e.lineTo(o+a,r+n),e.lineTo(o,r+n/4*3),e.lineTo(o-a,r+n),e.lineTo(o,r),e.closePath()}}),DP={line:function(e,t,n,i,o){o.x1=e,o.y1=t+i/2,o.x2=e+n,o.y2=t+i/2},rect:function(e,t,n,i,o){o.x=e,o.y=t,o.width=n,o.height=i},roundRect:function(e,t,n,i,o){o.x=e,o.y=t,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(e,t,n,i,o){var r=Math.min(n,i);o.x=e,o.y=t,o.width=r,o.height=r},circle:function(e,t,n,i,o){o.cx=e+n/2,o.cy=t+i/2,o.r=Math.min(n,i)/2},diamond:function(e,t,n,i,o){o.cx=e+n/2,o.cy=t+i/2,o.width=n,o.height=i},pin:function(e,t,n,i,o){o.x=e+n/2,o.y=t+i/2,o.width=n,o.height=i},arrow:function(e,t,n,i,o){o.x=e+n/2,o.y=t+i/2,o.width=n,o.height=i},triangle:function(e,t,n,i,o){o.cx=e+n/2,o.cy=t+i/2,o.width=n,o.height=i}},kP={};ty({line:TA,rect:uI,roundRect:uI,square:uI,circle:KT,diamond:IP,pin:TP,arrow:AP,triangle:CP},(function(e,t){kP[t]=new e}));var EP=$C.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=Vw(e,t,n),o=this.shape;return o&&"pin"===o.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var o=kP[i];o||(o=kP[i="rect"]),DP[i](t.x,t.y,t.width,t.height,o.shape),o.buildPath(e,o.shape,n)}}});function OP(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function LP(e,t,n,i,o,r,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?gD(e.slice(8),new qx(t,n,i,o),a?"center":"cover"):0===e.indexOf("path://")?fD(e.slice(7),{},new qx(t,n,i,o),a?"center":"cover"):new EP({shape:{symbolType:e,x:t,y:n,width:i,height:o}})).__isEmptyBrush=l,s.setColor=OP,r&&s.setColor(r),s}function NP(e){return ly(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function PP(e,t){if(null!=e)return ly(e)||(e=[e,e]),[rS(e[0],t[0])||0,rS(_y(e[1],e[0]),t[1])||0]}function RP(e){return isFinite(e)}function zP(e,t,n){for(var i="radial"===t.type?function(e,t,n){var i=n.width,o=n.height,r=Math.min(i,o),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*i+n.x,s=s*o+n.y,l*=r),a=RP(a)?a:.5,s=RP(s)?s:.5,l=l>=0&&RP(l)?l:.5,e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var i=null==t.x?0:t.x,o=null==t.x2?1:t.x2,r=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(i=i*n.width+n.x,o=o*n.width+n.x,r=r*n.height+n.y,a=a*n.height+n.y),i=RP(i)?i:0,o=RP(o)?o:1,r=RP(r)?r:0,a=RP(a)?a:0,e.createLinearGradient(i,r,o,a)}(e,t,n),o=t.colorStops,r=0;r<o.length;r++)i.addColorStop(o[r].offset,o[r].color);return i}function VP(e){return parseInt(e,10)}function BP(e,t,n){var i=["width","height"][t],o=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[o]||VP(s[i])||VP(e.style[i]))-(VP(s[r])||0)-(VP(s[a])||0)|0}function jP(e){var t,n,i=e.style,o=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,n=i.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:dy(t)?[t]:ly(t)?t:null:null),r=i.lineDashOffset;if(o){var a=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(o=ny(o,(function(e){return e/a})),r/=a)}return[o,r]}var FP=new TC(!0);function GP(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function HP(e){return"string"==typeof e&&"none"!==e}function WP(e){var t=e.fill;return null!=t&&"none"!==t}function UP(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function YP(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function qP(e,t,n){var i=MM(t.image,t.__image,n);if(IM(i)){var o=e.createPattern(i,t.repeat||"repeat");if("function"==typeof DOMMatrix&&o&&o.setTransform){var r=new DOMMatrix;r.translateSelf(t.x||0,t.y||0),r.rotateSelf(0,0,(t.rotation||0)*By),r.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(r)}return o}}var XP=["shadowBlur","shadowOffsetX","shadowOffsetY"],$P=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ZP(e,t,n,i,o){var r=!1;if(!i&&t===(n=n||{}))return!1;if(i||t.opacity!==n.opacity){iR(e,o),r=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?jM.opacity:a}(i||t.blend!==n.blend)&&(r||(iR(e,o),r=!0),e.globalCompositeOperation=t.blend||jM.blend);for(var s=0;s<XP.length;s++){var l=XP[s];(i||t[l]!==n[l])&&(r||(iR(e,o),r=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(r||(iR(e,o),r=!0),e.shadowColor=t.shadowColor||jM.shadowColor),r}function KP(e,t,n,i,o){var r=oR(t,o.inHover),a=i?null:n&&oR(n,o.inHover)||{};if(r===a)return!1;var s=ZP(e,r,a,i,o);if((i||r.fill!==a.fill)&&(s||(iR(e,o),s=!0),HP(r.fill)&&(e.fillStyle=r.fill)),(i||r.stroke!==a.stroke)&&(s||(iR(e,o),s=!0),HP(r.stroke)&&(e.strokeStyle=r.stroke)),(i||r.opacity!==a.opacity)&&(s||(iR(e,o),s=!0),e.globalAlpha=null==r.opacity?1:r.opacity),t.hasStroke()){var l=r.lineWidth/(r.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(iR(e,o),s=!0),e.lineWidth=l)}for(var c=0;c<$P.length;c++){var u=$P[c],p=u[0];(i||r[p]!==a[p])&&(s||(iR(e,o),s=!0),e[p]=r[p]||u[1])}return s}function JP(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}var QP=1,eR=2,tR=3,nR=4;function iR(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function oR(e,t){return t&&e.__hoverStyle||e.style}function rR(e,t){aR(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function aR(e,t,n,i){var o=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~hb,void(t.__isRendered=!1);var r=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(r,a)||(a&&a.length&&(iR(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length&&(iR(e,n),e.save(),function(e,t,n){for(var i=!1,o=0;o<e.length;o++){var r=e[o];i=i||r.isZeroArea(),JP(t,r),t.beginPath(),r.buildPath(t,r.shape),t.clip()}n.allClipped=i}(r,e,n),s=!0),n.prevElClipPaths=r),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u,p,d=t instanceof $C&&t.autoBatch&&function(e){var t=WP(e),n=GP(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(u=o,p=c.transform,u&&p?u[0]!==p[0]||u[1]!==p[1]||u[2]!==p[2]||u[3]!==p[3]||u[4]!==p[4]||u[5]!==p[5]:u||p)?(iR(e,n),JP(e,t)):d||iR(e,n);var h=oR(t,n.inHover);t instanceof $C?(n.lastDrawType!==QP&&(l=!0,n.lastDrawType=QP),KP(e,t,c,l,n),d&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,i){var o,r=GP(n),a=WP(n),s=n.strokePercent,l=s<1,c=!t.path;t.silent&&!l||!c||t.createPathProxy();var u=t.path||FP,p=t.__dirty;if(!i){var d=n.fill,h=n.stroke,f=a&&!!d.colorStops,g=r&&!!h.colorStops,m=a&&!!d.image,v=r&&!!h.image,y=void 0,x=void 0,b=void 0,_=void 0,w=void 0;(f||g)&&(w=t.getBoundingRect()),f&&(y=p?zP(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(x=p?zP(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),m&&(b=p||!t.__canvasFillPattern?qP(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),v&&(_=p||!t.__canvasStrokePattern?qP(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),f?e.fillStyle=y:m&&(b?e.fillStyle=b:a=!1),g?e.strokeStyle=x:v&&(_?e.strokeStyle=_:r=!1)}var S,M,C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(o=jP(t))[0],M=o[1]);var I=!0;(c||p&fb)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),I=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),I&&u.rebuildPath(e,l?s:1),S&&(e.setLineDash(S),e.lineDashOffset=M),i||(n.strokeFirst?(r&&YP(e,n),a&&UP(e,n)):(a&&UP(e,n),r&&YP(e,n))),S&&e.setLineDash([])}(e,t,h,d),d&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):t instanceof JC?(n.lastDrawType!==tR&&(l=!0,n.lastDrawType=tR),KP(e,t,c,l,n),function(e,t,n){var i,o=n.text;if(null!=o&&(o+=""),o){e.font=n.font||Av,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var r=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=(i=jP(t))[0],a=i[1]),r&&(e.setLineDash(r),e.lineDashOffset=a),n.strokeFirst?(GP(n)&&e.strokeText(o,n.x,n.y),WP(n)&&e.fillText(o,n.x,n.y)):(WP(n)&&e.fillText(o,n.x,n.y),GP(n)&&e.strokeText(o,n.x,n.y)),r&&e.setLineDash([])}}(e,t,h)):t instanceof nI?(n.lastDrawType!==eR&&(l=!0,n.lastDrawType=eR),function(e,t,n,i,o){ZP(e,oR(t,o.inHover),n&&oR(n,o.inHover),i,o)}(e,t,c,l,n),function(e,t,n){var i=t.__image=MM(n.image,t.__image,t,t.onload);if(i&&IM(i)){var o=n.x||0,r=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(i,c,u,n.sWidth,n.sHeight,o,r,a,s)}else if(n.sx&&n.sy){var p=a-(c=n.sx),d=s-(u=n.sy);e.drawImage(i,c,u,p,d,o,r,a,s)}else e.drawImage(i,o,r,a,s)}}(e,t,h)):t.getTemporalDisplayables&&(n.lastDrawType!==nR&&(l=!0,n.lastDrawType=nR),function(e,t,n){var i=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var r,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(r=t.getCursor(),a=i.length;r<a;r++){(u=i[r]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),aR(e,u,s,r===a-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}for(var l=0,c=o.length;l<c;l++){var u;(u=o[l]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),aR(e,u,s,l===c-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),d&&i&&iR(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var sR=new MP,lR=new Zb(100),cR=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function uR(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),o="svg"===i.painter.type;e.dirty&&sR.delete(e);var r=sR.get(e);if(r)return r;var a=Kv(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});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,r=[n],s=!0,l=0;l<cR.length;++l){var c=a[cR[l]];if(null!=c&&!ly(c)&&!uy(c)&&!dy(c)&&"boolean"!=typeof c){s=!1;break}r.push(c)}if(s){t=r.join(",")+(o?"-svg":"");var u=lR.get(t);u&&(o?e.svgElement=u:e.image=u)}var p,d=dR(a.dashArrayX),h=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(dy(e)){var t=Math.ceil(e);return[t,t]}var n=ny(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(a.dashArrayY),f=pR(a.symbol),g=(b=d,ny(b,(function(e){return hR(e)}))),m=hR(h),v=!o&&Ov.createCanvas(),y=o&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=CS(e,g[t]);var i=1;for(t=0,n=f.length;t<n;++t)i=CS(i,f[t].length);e*=i;var o=m*g.length*f.length;if("production"!==process.env.NODE_ENV){var r=function(e){console.warn("Calculated decal size is greater than "+e+" due to decal option settings so "+e+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+e+" to be larger to avoid incontinuity.")};e>a.maxTileWidth&&r("maxTileWidth"),o>a.maxTileHeight&&r("maxTileHeight")}return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();var b;v&&(v.width=x.width*n,v.height=x.height*n,p=v.getContext("2d"));(function(){p&&(p.clearRect(0,0,v.width,v.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<h.length;++t)e+=h[t];if(e<=0)return;var r=-m,s=0,l=0,c=0;for(;r<x.height;){if(s%2==0){for(var u=l/2%f.length,g=0,b=0,_=0;g<2*x.width;){var w=0;for(t=0;t<d[c].length;++t)w+=d[c][t];if(w<=0)break;if(b%2==0){var S=.5*(1-a.symbolSize),M=g+d[c][b]*S,C=r+h[s]*S,I=d[c][b]*a.symbolSize,T=h[s]*a.symbolSize,A=_/2%f[u].length;D(M,C,I,T,f[u][A])}g+=d[c][b],++_,++b===d[c].length&&(b=0)}++c===d.length&&(c=0)}r+=h[s],++l,++s===h.length&&(s=0)}function D(e,t,r,s,l){var c=o?1:n,u=LP(l,e*c,t*c,r*c,s*c,a.color,a.symbolKeepAspect);if(o){var d=i.painter.renderOneToVNode(u);d&&y.children.push(d)}else rR(p,u)}})(),s&&lR.put(t,v||y);e.image=v,e.svgElement=y,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=o?1:1/n,sR.set(e,s),e.dirty=!1,s}function pR(e){if(!e||0===e.length)return[["rect"]];if(uy(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!uy(e[n])){t=!1;break}if(t)return pR([e]);var i=[];for(n=0;n<e.length;++n)uy(e[n])?i.push([e[n]]):i.push(e[n]);return i}function dR(e){if(!e||0===e.length)return[[0,0]];if(dy(e))return[[o=Math.ceil(e),o]];for(var t=!0,n=0;n<e.length;++n)if(!dy(e[n])){t=!1;break}if(t)return dR([e]);var i=[];for(n=0;n<e.length;++n)if(dy(e[n])){var o=Math.ceil(e[n]);i.push([o,o])}else{(o=ny(e[n],(function(e){return Math.ceil(e)}))).length%2==1?i.push(o.concat(o)):i.push(o)}return i}function hR(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var fR=new rx,gR={};var mR=2e3,vR=4500,yR={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:mR,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:vR,ARIA:6e3,DECAL:7e3}},xR="__flagInMainProcess",bR="__pendingUpdate",_R="__needsUpdateStatus",wR=/^[a-zA-Z0-9_]+$/,SR="__connectUpdateStatus";function MR(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return IR(this,e,t);ZR(this.id)}}function CR(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IR(this,e,t)}}function IR(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),rx.prototype[t].apply(e,n)}var TR,AR,DR,kR,ER,OR,LR,NR,PR,RR,zR,VR,BR,jR,FR,GR,HR,WR,UR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t}(rx),YR=UR.prototype;YR.on=CR("on"),YR.off=CR("off");var qR=function(e){function t(t,n,i){var o=e.call(this,new pP)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},uy(n)&&(n=nz[n]),o._dom=t;var r="canvas",a="auto",s=!1;if("production"!==process.env.NODE_ENV){var l=Cv.hasGlobalWindow?window:global;l&&(r=_y(l.__ECHARTS__DEFAULT__RENDERER__,r),a=_y(l.__ECHARTS__DEFAULT__COARSE_POINTER,a),s=_y(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}i.ssr&&(Qw=function(e){var t=TI(e),n=t.dataIndex;if(null!=n){var i=Ly();return i.set("series_index",t.seriesIndex),i.set("data_index",n),t.ssrType&&i.set("ssr_type",t.ssrType),i}});var c=o._zr=tS(t,{renderer:i.renderer||r,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:_y(i.useDirtyRect,s),useCoarsePointer:_y(i.useCoarsePointer,a),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=DN(ay(c.flush,c),17),(n=qv(n))&&kO(n,!0),o._theme=n,o._locale=function(e){if(uy(e)){var t=vk[e.toUpperCase()]||{};return e===fk||e===gk?qv(t):Xv(qv(t),qv(vk[mk]),!1)}return Xv(qv(e),qv(vk[mk]),!1)}(i.locale||xk),o._coordSysMgr=new aO;var u=o._api=FR(o);function p(e,t){return e.__prio-t.__prio}return db(tz,p),db(QR,p),o._scheduler=new GN(o,u,QR,tz),o._messageCenter=new UR,o._initEvents(),o.resize=ay(o.resize,o),c.animation.on("frame",o._onframe,o),RR(c,o),zR(c,o),Ay(o),o}return G(t,e),t.prototype._onframe=function(){if(!this._disposed){WR(this);var e=this._scheduler;if(this[bR]){var t=this[bR].silent;this[xR]=!0;try{TR(this),kR.update.call(this,null,this[bR].updateParams)}catch(e){throw this[xR]=!1,this[bR]=null,e}this._zr.flush(),this[xR]=!1,this[bR]=null,NR.call(this,t),PR.call(this,t)}else if(e.unfinished){var n=1,i=this._model,o=this._api;e.unfinished=!1;do{var r=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),OR(this,i),e.performVisualTasks(i),jR(this,this._model,o,"remain",{}),n-=+new Date-r}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(this[xR])"production"!==process.env.NODE_ENV&&ES("`setOption` should not be called during main process.");else if(this._disposed)ZR(this.id);else{var i,o,r;if(hy(t)&&(n=t.lazyUpdate,i=t.silent,o=t.replaceMerge,r=t.transition,t=t.notMerge),this[xR]=!0,!this._model||t){var a=new uO(this._api),s=this._theme,l=this._model=new QE;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:o},ez);var c={seriesTransition:r,optionChanged:!0};if(n)this[bR]={silent:i,updateParams:c},this[xR]=!1,this.getZr().wakeUp();else{try{TR(this),kR.update.call(this,null,c)}catch(e){throw this[bR]=null,this[xR]=!1,e}this._ssr||this._zr.flush(),this[bR]=null,this[xR]=!1,NR.call(this,i),PR.call(this,i)}}},t.prototype.setTheme=function(){OS("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||Cv.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return"production"!==process.env.NODE_ENV&&LS("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;if("production"!==process.env.NODE_ENV&&"canvas"!==t.type)throw new Error("renderToCanvas can only be used in the canvas renderer.");return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;if("production"!==process.env.NODE_ENV&&"svg"!==t.type)throw new Error("renderToSVGString can only be used in the svg renderer.");return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Cv.svgSupported){var e=this._zr;return ty(e.storage.getDisplayList(),(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,i=[],o=this;ty(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=o._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return ty(i,(function(e){e.group.ignore=!1})),r}ZR(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,o=Math.max,r=1/0;if(rz[n]){var a=r,s=r,l=-1/0,c=-1/0,u=[],p=e&&e.pixelRatio||this.getDevicePixelRatio();ty(oz,(function(r,p){if(r.group===n){var d=t?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas(qv(e)),h=r.getDom().getBoundingClientRect();a=i(h.left,a),s=i(h.top,s),l=o(h.right,l),c=o(h.bottom,c),u.push({dom:d,left:h.left,top:h.top})}}));var d=(l*=p)-(a*=p),h=(c*=p)-(s*=p),f=Ov.createCanvas(),g=tS(f,{renderer:t?"svg":"canvas"});if(g.resize({width:d,height:h}),t){var m="";return ty(u,(function(e){var t=e.left-a,n=e.top-s;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new uI({shape:{x:0,y:0,width:d,height:h},style:{fill:e.connectedBackgroundColor}})),ty(u,(function(e){var t=new nI({style:{x:e.left*p-a,y:e.top*p-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}ZR(this.id)},t.prototype.convertToPixel=function(e,t){return ER(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return ER(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return ty(tM(this._model,e),(function(e,i){i.indexOf("Models")>=0&&ty(e,(function(e){var o=e.coordinateSystem;if(o&&o.containPoint)n=n||!!o.containPoint(t);else if("seriesModels"===i){var r=this._chartsMap[e.__viewId];r&&r.containPoint?n=n||r.containPoint(t,e):"production"!==process.env.NODE_ENV&&kS(i+": "+(r?"The found component do not support containPoint.":"No view mapping to the found component."))}else"production"!==process.env.NODE_ENV&&kS(i+": containPoint is not supported")}),this)}),this),!!n;ZR(this.id)},t.prototype.getVisual=function(e,t){var n=tM(this._model,e,{defaultMainType:"series"}),i=n.seriesModel;"production"!==process.env.NODE_ENV&&(i||kS("There is no specified series model"));var o=i.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=r?mP(o,r,t):vP(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,i=this;ty($R,(function(e){var t=function(t){var n,o=i.getModel(),r=t.target,a="globalout"===e;if(a?n={}:r&&_P(r,(function(e){var t=TI(e);if(t&&null!=t.dataIndex){var i=t.dataModel||o.getSeriesByIndex(t.seriesIndex);return n=i&&i.getDataParams(t.dataIndex,t.dataType,r)||{},!0}if(t.eventData)return n=Zv({},t.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var c=s&&null!=l&&o.getComponent(s,l),u=c&&i["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];"production"!==process.env.NODE_ENV&&(a||c&&u||kS("model or view can not be found by params")),n.event=t,n.type=e,i._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:c,view:u},i.trigger(e,n)}};t.zrEventfulCallAtLast=!0,i._zr.on(e,t,i)})),ty(JR,(function(e,t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),ty(["selectchanged"],(function(e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?(bP("map","selectchanged",t,i,e),bP("pie","selectchanged",t,i,e)):"select"===e.fromAction?(bP("map","selected",t,i,e),bP("pie","selected",t,i,e)):"unselect"===e.fromAction&&(bP("map","unselected",t,i,e),bP("pie","unselected",t,i,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?ZR(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)ZR(this.id);else{this._disposed=!0,this.getDom()&&aM(this.getDom(),sz,"");var e=this,t=e._api,n=e._model;ty(e._componentsViews,(function(e){e.dispose(n,t)})),ty(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete oz[e.id]}},t.prototype.resize=function(e){if(this[xR])"production"!==process.env.NODE_ENV&&ES("`resize` should not be called during main process.");else if(this._disposed)ZR(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[bR]&&(null==i&&(i=this[bR].silent),n=!0,this[bR]=null),this[xR]=!0;try{n&&TR(this),kR.update.call(this,{type:"resize",animation:Zv({duration:0},e&&e.animation)})}catch(e){throw this[xR]=!1,e}this[xR]=!1,NR.call(this,i),PR.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)ZR(this.id);else if(hy(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),iz[e]){var n=iz[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}else"production"!==process.env.NODE_ENV&&kS("Loading effects "+e+" not exists.")},t.prototype.hideLoading=function(){this._disposed?ZR(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Zv({},e);return t.type=JR[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)ZR(this.id);else if(hy(t)||(t={silent:!!t}),KR[e.type]&&this._model)if(this[xR])this._pendingActions.push(e);else{var n=t.silent;LR.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&Cv.browser.weChat&&this._throttledZrFlush(),NR.call(this,n),PR.call(this,n)}},t.prototype.updateLabelLayout=function(){fR.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)ZR(this.id);else{var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);"production"!==process.env.NODE_ENV&&Cy(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&t.push(o)}e.selected&&e.states.select&&t.push("select"),e.hoverState===PI&&e.states.emphasis?t.push("emphasis"):e.hoverState===NI&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,o=e.get("zlevel")||0;t.eachRendered((function(e){return i(e,n,o,-1/0),!0}))}}function i(e,t,n,o){var r=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)o=Math.max(i(s[l],t,n,o),o);else e.z=t,e.zlevel=n,o=Math.max(e.z2,o);if(r&&(r.z=t,r.zlevel=n,isFinite(o)&&(r.z2=o+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(o)&&(a.z2=o+(c&&c.showAbove?1:-1))}return o}function o(e,t){t.eachRendered((function(e){if(!iD(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function r(e,n){var i=e.getModel("stateAnimation"),o=e.isAnimationEnabled(),r=i.get("duration"),a=r>0?{duration:r,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(iD(e))return;if(e instanceof $C&&function(e){var t=EI(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(o){e.stateTransition=a;var i=e.getTextContent(),r=e.getTextGuideLine();i&&(i.stateTransition=a),r&&(r.stateTransition=a)}e.__dirty&&t(e)}}))}TR=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),AR(e,!0),AR(e,!1),t.plan()},AR=function(e,t){for(var n=e._model,i=e._scheduler,o=t?e._componentsViews:e._chartsViews,r=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<o.length;l++)o[l].__alive=!1;function c(e){var l=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,u=!l&&r[c];if(!u){var p=dM(e.type),d=t?gN.getClass(p.main,p.sub):CN.getClass(p.sub);"production"!==process.env.NODE_ENV&&Cy(d,p.sub+" does not exist."),(u=new d).init(n,s),r[c]=u,o.push(u),a.add(u.group)}e.__viewId=u.__id=c,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(u,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&c(t)})):n.eachSeries(c);for(l=0;l<o.length;){var u=o[l];u.__alive?l++:(!t&&u.renderTask.dispose(),a.remove(u.group),u.dispose(n,s),o.splice(l,1),r[u.__id]===u&&delete r[u.__id],u.__id=u.group.__ecComponentInfo=null)}},DR=function(e,t,n,i,o){var r=e._model;if(r.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};o&&(s.subType=o);var l,c=n.excludeSeriesId;null!=c&&(l=Ly(),ty(BS(c),(function(e){var t=qS(e,null);null!=t&&l.set(t,!0)}))),r&&r.eachComponent(s,(function(t){if(!(l&&null!=l.get(t.id)))if(AT(n))if(t instanceof hN)n.type!==jI||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var i=e.seriesIndex,o=e.getData(t.dataType);if(o){var r=JS(o,t);r=(ly(r)?r[0]:r)||0;var a=o.getItemGraphicEl(r);if(!a)for(var s=o.count(),l=0;!a&&l<s;)a=o.getItemGraphicEl(l++);if(a){var c=TI(a);fT(i,c.focus,c.blurScope,n)}else{var u=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);null!=u&&fT(i,u,p,n)}}else"production"!==process.env.NODE_ENV&&ES("Unknown dataType "+t.dataType)}(t,n,e._api);else{var i=mT(t.mainType,t.componentIndex,n.name,e._api),o=i.focusSelf,r=i.dispatchers;n.type===jI&&o&&!n.notBlur&&gT(t.mainType,t.componentIndex,e._api),r&&ty(r,(function(e){n.type===jI?aT(e):sT(e)}))}else TT(n)&&t instanceof hN&&(!function(e,t,n){if(TT(t)){var i=t.dataType,o=JS(e.getData(i),t);ly(o)||(o=[o]),e[t.type===WI?"toggleSelect":t.type===GI?"select":"unselect"](o,i)}}(t,n,e._api),vT(t),HR(e))}),e),r&&r.eachComponent(s,(function(t){l&&null!=l.get(t.id)||u(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else ty([].concat(e._componentsViews).concat(e._chartsViews),u);function u(i){i&&i.__alive&&i[t]&&i[t](i.__model,r,e._api,n)}},kR={prepareAndUpdate:function(e){TR(this),kR.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,o=this._api,r=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),a.create(i,o),s.performDataProcessorTasks(i,t),OR(this,i),a.update(i,o),e(i),s.performVisualTasks(i,t),VR(this,i,o,t,n);var l=i.get("backgroundColor")||"transparent",c=i.get("darkMode");r.setBackgroundColor(l),null!=c&&"auto"!==c&&r.setDarkMode(c),fR.trigger("afterupdate",i,o)}},updateTransform:function(t){var n=this,i=this._model,o=this._api;if(i){i.setUpdatePayload(t);var r=[];i.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,o,t);l&&l.update&&r.push(s)}else r.push(s)}}));var a=Ly();i.eachSeries((function(e){var r=n._chartsMap[e.__viewId];if(r.updateTransform){var s=r.updateTransform(e,i,o,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:a}),jR(this,i,o,t,{},a),fR.trigger("afterupdate",i,o)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),CN.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),VR(this,n,this._api,t,{}),fR.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),CN.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,o){if("series"!==e){var r=n.getViewOfComponentModel(o);r&&r.__alive&&r.updateVisual(o,i,n._api,t)}})),i.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,i,n._api,t)})),fR.trigger("afterupdate",i,this._api))},updateLayout:function(e){kR.update.call(this,e)}},ER=function(e,t,n,i){if(e._disposed)ZR(e.id);else{for(var o,r=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=tM(r,n),l=0;l<a.length;l++){var c=a[l];if(c[t]&&null!=(o=c[t](r,s,i)))return o}"production"!==process.env.NODE_ENV&&kS("No coordinate system that supports "+t+" found by the given finder.")}},OR=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},LR=function(e,t){var n=this,i=this.getModel(),o=e.type,r=e.escapeConnect,a=KR[o],s=a.actionInfo,l=(s.update||"update").split(":"),c=l.pop(),u=null!=l[0]&&dM(l[0]);this[xR]=!0;var p=[e],d=!1;e.batch&&(d=!0,p=ny(e.batch,(function(t){return(t=Kv(Zv({},t),e)).batch=null,t})));var h,f=[],g=TT(e),m=AT(e);if(m&&hT(this._api),ty(p,(function(t){if((h=(h=a.action(t,n._model,n._api))||Zv({},t)).type=s.event||h.type,f.push(h),m){var i=nM(e),o=i.queryOptionMap,r=i.mainTypeSpecified?o.keys()[0]:"series";DR(n,c,t,r),HR(n)}else g?(DR(n,c,t,"series"),HR(n)):u&&DR(n,c,t,u.main,u.sub)})),"none"!==c&&!m&&!g&&!u)try{this[bR]?(TR(this),kR.update.call(this,e),this[bR]=null):kR[c].call(this,e)}catch(e){throw this[xR]=!1,e}if(h=d?{type:s.event||o,escapeConnect:r,batch:f}:f[0],this[xR]=!1,!t){var v=this._messageCenter;if(v.trigger(h.type,h),g){var y={type:"selectchanged",escapeConnect:r,selected:yT(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(y.type,y)}}},NR=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();LR.call(this,n,e)}},PR=function(e){!e&&this.trigger("updated")},RR=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[bR]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},zR=function(e,t){e.on("mouseover",(function(e){var n=_P(e.target,IT);n&&(!function(e,t,n){"production"===process.env.NODE_ENV||IT(e)||ES("param should be highDownDispatcher");var i=TI(e),o=mT(i.componentMainType,i.componentIndex,i.componentHighDownName,n),r=o.dispatchers,a=o.focusSelf;r?(a&&gT(i.componentMainType,i.componentIndex,n),ty(r,(function(e){return oT(e,t)}))):(fT(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&gT(i.componentMainType,i.componentIndex,n),oT(e,t))}(n,e,t._api),HR(t))})).on("mouseout",(function(e){var n=_P(e.target,IT);n&&(!function(e,t,n){"production"===process.env.NODE_ENV||IT(e)||ES("param should be highDownDispatcher"),hT(n);var i=TI(e),o=mT(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;o?ty(o,(function(e){return rT(e,t)})):rT(e,t)}(n,e,t._api),HR(t))})).on("click",(function(e){var n=_P(e.target,(function(e){return null!=TI(e).dataIndex}),!0);if(n){var i=n.selected?"unselect":"select",o=TI(n);t._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},VR=function(e,t,n,i,o){!function(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,o){var r=o.get("zlevel")||0,a=o.get("z")||0,s=o.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:r,z:a,idx:o.componentIndex,type:e,key:s})})),i){var o,r,a=t.concat(n);db(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),ty(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.key;null!=o&&(i=Math.max(o,i)),a?(i===o&&a!==r&&i++,r=a):r&&(i===o&&i++,r=""),o=i,n.setZLevel(i)}))}}(t),BR(e,t,n,i,o),ty(e._chartsViews,(function(e){e.__alive=!1})),jR(e,t,n,i,o),ty(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},BR=function(e,t,i,a,s,l){ty(l||e._componentsViews,(function(e){var s=e.__model;o(s,e),e.render(s,t,i,a),n(s,e),r(s,e)}))},jR=function(e,t,i,a,s,l){var c=e._scheduler;s=Zv(s||{},{updatedSeries:t.getSeries()}),fR.trigger("series:beforeupdate",t,i,s);var u=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;c.updatePayload(i,a),o(t,n),l&&l.get(t.uid)&&i.dirty(),i.perform(c.getPerformArgs(i))&&(u=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),vT(t)})),c.unfinished=u||c.unfinished,fR.trigger("series:layoutlabels",t,i,s),fR.trigger("series:transition",t,i,s),t.eachSeries((function(t){var i=e._chartsMap[t.__viewId];n(t,i),r(t,i)})),function(e,t){var n=e._zr,i=n.storage,o=0;i.traverse((function(e){e.isGroup||o++})),o>t.get("hoverLayerThreshold")&&!Cv.node&&!Cv.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),fR.trigger("series:afterupdate",t,i,s)},HR=function(e){e[_R]=!0,e.getZr().wakeUp()},WR=function(e){e[_R]&&(e.getZr().storage.traverse((function(e){iD(e)||t(e)})),e[_R]=!1)},FR=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return G(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){aT(t,n),HR(e)},n.prototype.leaveEmphasis=function(t,n){sT(t,n),HR(e)},n.prototype.enterBlur=function(t){lT(t),HR(e)},n.prototype.leaveBlur=function(t){cT(t),HR(e)},n.prototype.enterSelect=function(t){uT(t),HR(e)},n.prototype.leaveSelect=function(t){pT(t),HR(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(oO))(e)},GR=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][SR]=t}}ty(JR,(function(n,i){e._messageCenter.on(i,(function(n){if(rz[e.group]&&0!==e[SR]){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),o=[];ty(oz,(function(t){t!==e&&t.group===e.group&&o.push(t)})),t(o,0),ty(o,(function(e){1!==e[SR]&&e.dispatchAction(i)})),t(o,2)}}))}))}}(),t}(rx),XR=qR.prototype;XR.on=MR("on"),XR.off=MR("off"),XR.one=function(e,t,n){var i=this;OS("ECharts#one is deprecated."),this.on.call(this,e,(function n(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];t&&t.apply&&t.apply(this,o),i.off(e,n)}),n)};var $R=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ZR(e){"production"!==process.env.NODE_ENV&&kS("Instance "+e+" has been disposed")}var KR={},JR={},QR=[],ez=[],tz=[],nz={},iz={},oz={},rz={},az=+new Date-0,sz="_echarts_instance_";function lz(e,t,n){var i=!(n&&n.ssr);if(i){if("production"!==process.env.NODE_ENV&&!e)throw new Error("Initialize failed: invalid dom.");var o=function(e){return oz[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,sz)]}(e);if(o)return"production"!==process.env.NODE_ENV&&kS("There is a chart instance already initialized on the dom."),o;"production"!==process.env.NODE_ENV&&(!my(e)||"CANVAS"===e.nodeName.toUpperCase()||(e.clientWidth||n&&null!=n.width)&&(e.clientHeight||n&&null!=n.height)||kS("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload."))}var r=new qR(e,t,n);return r.id="ec_"+az++,oz[r.id]=r,i&&aM(e,sz,r.id),GR(r),fR.trigger("afterinit",r),r}function cz(e,t){nz[e]=t}function uz(e){Jv(ez,e)<0&&ez.push(e)}function pz(e,t){mz(QR,e,t,2e3)}function dz(e,t){fR.on(e,t)}function hz(e,t,n){cy(t)&&(n=t,t="");var i=hy(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,JR[t]||(Cy(wR.test(i)&&wR.test(t)),KR[i]||(KR[i]={action:n,actionInfo:e}),JR[t]=i)}function fz(e,t){mz(tz,e,t,3e3,"visual")}var gz=[];function mz(e,t,n,i,o){if((cy(t)||hy(t))&&(n=t,t=i),"production"!==process.env.NODE_ENV){if(isNaN(t)||null==t)throw new Error("Illegal priority");ty(e,(function(e){Cy(e.__raw!==n)}))}if(!(Jv(gz,n)>=0)){gz.push(n);var r=GN.wrapStageHandler(n,o);r.__prio=t,r.__raw=n,e.push(r)}}function vz(e,t){iz[e]=t}var yz=function(e){var t=(e=qv(e)).type,n="";t||("production"!==process.env.NODE_ENV&&(n="Must have a `type` when `registerTransform`."),PS(n));var i=t.split(":");2!==i.length&&("production"!==process.env.NODE_ENV&&(n='Name must include namespace like "ns:regression".'),PS(n));var o=!1;"echarts"===i[0]&&(t=i[1],o=!0),e.__isBuiltIn=o,wL.set(t,e)};fz(mR,zN),fz(vR,BN),fz(vR,jN),fz(mR,fP),fz(vR,gP),fz(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");n&&(i.ensureUniqueItemVisual(e,"style").decal=uR(n,t))}));var o=i.getVisual("decal");if(o)i.getVisual("style").decal=uR(o,t)}}))})),uz(kO),pz(900,(function(e){var t=Ly();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),o=e.getData(),r={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(r)}})),t.each(EO)})),vz("default",(function(e,t){Kv(t=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 n=new Zw,i=new uI({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var o,r=new II({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 uI({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((o=new PA({shape:{startAngle:-FN/2,endAngle:-FN/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*FN/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*FN/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var n=r.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),hz({type:jI,event:jI,update:jI},Vy),hz({type:FI,event:FI,update:FI},Vy),hz({type:GI,event:GI,update:GI},Vy),hz({type:HI,event:HI,update:HI},Vy),hz({type:WI,event:WI,update:WI},Vy),cz("light",oP),cz("dark",uP);var xz=[],bz={registerPreprocessor:uz,registerProcessor:pz,registerPostInit:function(e){dz("afterinit",e)},registerPostUpdate:function(e){dz("afterupdate",e)},registerUpdateLifecycle:dz,registerAction:hz,registerCoordinateSystem:function(e,t){aO.register(e,t)},registerLayout:function(e,t){mz(tz,e,t,1e3,"layout")},registerVisual:fz,registerTransform:yz,registerLoading:vz,registerMap:function(e,t,n){var i,o=(i="registerMap","production"!==process.env.NODE_ENV&&(gR[i]||ES("Implementation of "+i+" doesn't exists.")),gR[i]);o&&o(e,t,n)},registerImpl:function(e,t){"production"!==process.env.NODE_ENV&&gR[e]&&ES("Already has an implementation of "+e+"."),gR[e]=t},PRIORITY:yR,ComponentModel:bE,ComponentView:gN,SeriesModel:hN,ChartView:CN,registerComponentModel:function(e){bE.registerClass(e)},registerComponentView:function(e){gN.registerClass(e)},registerSeriesModel:function(e){hN.registerClass(e)},registerChartView:function(e){CN.registerClass(e)},registerSubTypeDefaulter:function(e,t){bE.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,Kw[e]=n}};function _z(e){ly(e)?ty(e,(function(e){_z(e)})):Jv(xz,e)>=0||(xz.push(e),cy(e)&&(e={install:e}),e.install(bz))}function wz(e){return null==e?0:e.length||1}function Sz(e){return e}var Mz=function(){function e(e,t,n,i,o,r){this._old=e,this._new=t,this._oldKeyGetter=n||Sz,this._newKeyGetter=i||Sz,this.context=o,this._diffModeMultiple="multiple"===r}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),o=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var r=0;r<e.length;r++){var a=i[r],s=n[a],l=wz(s);if(l>1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,r)}else 1===l?(n[a]=null,this._update&&this._update(s,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},o=[],r=[];this._initIndexMap(e,n,o,"_oldKeyGetter"),this._initIndexMap(t,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],c=i[s],u=wz(l),p=wz(c);if(u>1&&1===p)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&p>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===p)this._update&&this._update(c,l),i[s]=null;else if(u>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[s]=null;else if(u>1)for(var d=0;d<u;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=t[i],r=wz(o);if(r>1)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var o=this._diffModeMultiple,r=0;r<e.length;r++){var a="_ec_"+this[i](e[r],r);if(o||(n[r]=a),t){var s=t[a],l=wz(s);0===l?(t[a]=r,o&&n.push(a)):1===l?t[a]=[s,r]:s.push(r)}}},e}(),Cz=Mz,Iz=function(){function e(e,t){this._encode=e,this._schema=t}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 Tz(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Az(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var Dz=function(e){this.otherDims={},null!=e&&Zv(this,e)},kz=QS(),Ez={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Oz=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Pz(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return _y(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=WO(this.source),n=!Rz(e),i="",o=[],r=0,a=0;r<e;r++){var s=void 0,l=void 0,c=void 0,u=this.dimensions[a];if(u&&u.storeDimIndex===r)s=t?u.name:null,l=u.type,c=u.ordinalMeta,a++;else{var p=this.getSourceDimension(r);p&&(s=t?p.name:null,l=p.type)}o.push({property:s,type:l,ordinalMeta:c}),!t||null==s||u&&u.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=Ez[l]||"f",c&&(i+=c.uid),i+="$"}var d=this.source;return{dimensions:o,hash:[d.seriesLayoutBy,d.startIndex,i].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===t)o.isCalculationCoord||(i=o.name),n++;else{var r=this.getSourceDimension(t);r&&(i=r.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Lz(e){return e instanceof Oz}function Nz(e){for(var t=Ly(),n=0;n<(e||[]).length;n++){var i=e[n],o=hy(i)?i.name:i;null!=o&&null==t.get(o)&&t.set(o,n)}return t}function Pz(e){var t=kz(e);return t.dimNameMap||(t.dimNameMap=Nz(e.dimensionsDefine))}function Rz(e){return e>30}var zz,Vz,Bz,jz,Fz,Gz,Hz,Wz=hy,Uz=ny,Yz="undefined"==typeof Int32Array?Array:Int32Array,qz=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Xz=["_approximateExtent"],$z=function(){function e(e,t){var n;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 i=!1;Lz(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var o={},r=[],a={},s=!1,l={},c=0;c<n.length;c++){var u=n[c],p=uy(u)?new Dz({name:u}):u instanceof Dz?u:new Dz(u),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);var h=p.otherDims=p.otherDims||{};r.push(d),o[d]=p,null!=l[d]&&(s=!0),p.createInvertedIndices&&(a[d]=[]),0===h.itemName&&(this._nameDimIdx=c),0===h.itemId&&(this._idDimIdx=c),"production"!==process.env.NODE_ENV&&Cy(i||p.storeDimIndex>=0),i&&(p.storeDimIndex=c)}if(this.dimensions=r,this._dimInfos=o,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=Ly();ty(r,(function(e){f.set(o[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);return i?i.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(dy(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if("production"!==process.env.NODE_ENV&&null==t)throw new Error("Unknown dimension "+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,o=this;if(e instanceof NL&&(i=e),!i){var r=this.dimensions,a=VO(e)||ey(e)?new UO(e,r.length):e;i=new NL;var s=Uz(r,(function(e){return{type:o._dimInfos[e].type,property:e}}));i.initData(a,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(e,t){var n={},i=n.encode={},o=Ly(),r=[],a=[],s={};ty(e.dimensions,(function(t){var n,l=e.getDimensionInfo(t),c=l.coordDim;if(c){"production"!==process.env.NODE_ENV&&Cy(null==ME.get(c));var u=l.coordDimIndex;Tz(i,c)[u]=t,l.isExtraCoord||(o.set(c,1),"ordinal"!==(n=l.type)&&"time"!==n&&(r[0]=t),Tz(s,c)[u]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}ME.each((function(e,t){var n=Tz(i,t),o=l.otherDims[t];null!=o&&!1!==o&&(n[o]=l.name)}))}));var l=[],c={};o.each((function(e,t){var n=i[t];c[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=ny(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=c;var u=i.label;u&&u.length&&(r=u.slice());var p=i.tooltip;return p&&p.length?a=p.slice():a.length||(a=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=a,n.userOutput=new Iz(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),i=n.start,o=n.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=i;a<o;a++){var s=a-i;this._nameList[a]=t[s],r&&Hz(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==DE&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===CE&&!n.pure)for(var r=[],a=e;a<t;a++){var s=n.getItem(a,r);if(!this.hasItemOption&&HS(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=qS(l,null));var c=s.id;null==o[a]&&null!=c&&(o[a]=qS(c,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)Hz(this,a);zz(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Wz(e)?Zv(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=Bz(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return Vz(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return ly(e)?i.getValues(Uz(e,(function(e){return n._getStoreDimIndex(e)})),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if("production"!==process.env.NODE_ENV&&!n)throw new Error("Do not supported yet");var i=n[t];return null==i||isNaN(i)?-1:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){cy(e)&&(n=t,t=e,e=[]);var i=n||this,o=Uz(jz(e),this._getStoreDimIndex,this);this._store.each(o,i?ay(t,i):t)},e.prototype.filterSelf=function(e,t,n){cy(e)&&(n=t,t=e,e=[]);var i=n||this,o=Uz(jz(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?ay(t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={};return ty(ry(e),(function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){cy(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,i){var o=n||i||this,r=Uz(jz(e),this._getStoreDimIndex,this),a=Gz(this);return a._store=this._store.map(r,o?ay(t,o):t),a},e.prototype.modify=function(e,t,n,i){var o=this,r=n||i||this;"production"!==process.env.NODE_ENV&&ty(jz(e),(function(e){o.getDimensionInfo(e).isCalculationCoord||console.error("Danger: only stack dimension can be modified")}));var a=Uz(jz(e),this._getStoreDimIndex,this);this._store.modify(a,r?ay(t,r):t)},e.prototype.downSample=function(e,t,n,i){var o=Gz(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),o},e.prototype.lttbDownSample=function(e,t){var n=Gz(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new uk(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Cz(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return Vz(e,t)}),(function(e){return Vz(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Wz(e)?Zv(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var o=i[t];return null==o&&(ly(o=this.getVisual(t))?o=o.slice():Wz(o)&&(o=Zv({},o)),i[t]=o),o},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Wz(t)?Zv(i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Wz(e)?Zv(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?Zv(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;AI(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){ty(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Uz(this.dimensions,this._getDimInfo,this),this.hostModel)),Fz(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];cy(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Sy(arguments)))})},e.internalField=(zz=function(e){var t=e._invertedIndicesMap;ty(t,(function(n,i){var o=e._dimInfos[i],r=o.ordinalMeta,a=e._store;if(r){n=t[i]=new Yz(r.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(o.storeDimIndex,s)]=s}}))},Bz=function(e,t,n){return qS(e._getCategory(t,n),null)},Vz=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=Bz(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},jz=function(e){return ly(e)||(e=null!=e?[e]:[]),e},Gz=function(t){var n=new e(t._schema?t._schema:Uz(t.dimensions,t._getDimInfo,t),t.hostModel);return Fz(n,t),n},Fz=function(e,t){ty(qz.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,ty(Xz,(function(n){e[n]=qv(t[n])})),e._calculationInfo=Zv({},t._calculationInfo)},void(Hz=function(e,t){var n=e._nameList,i=e._idList,o=e._nameDimIdx,r=e._idDimIdx,a=n[t],s=i[t];if(null==a&&null!=o&&(n[t]=a=Bz(e,o,t)),null==s&&null!=r&&(i[t]=s=Bz(e,r,t)),null==s&&null!=a){var l=e._nameRepeatCount,c=l[a]=(l[a]||0)+1;s=a,c>1&&(s+="__ec__"+c),i[t]=s}})),e}();function Zz(e,t){VO(e)||(e=jO(e));var n=(t=t||{}).coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],o=Ly(),r=[],a=function(e,t,n,i){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return ty(t,(function(e){var t;hy(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))})),o}(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Rz(a),l=i===e.dimensionsDefine,c=l?Pz(e):Nz(i),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,a));for(var p=Ly(u),d=new DL(a),h=0;h<d.length;h++)d[h]=-1;function f(e){var t=d[e];if(t<0){var n=i[e],o=hy(n)?n:{name:n},a=new Dz,s=o.name;null!=s&&null!=c.get(s)&&(a.name=a.displayName=s),null!=o.type&&(a.type=o.type),null!=o.displayName&&(a.displayName=o.displayName);var l=r.length;return d[e]=l,a.storeDimIndex=e,r.push(a),a}return r[t]}if(!s)for(h=0;h<a;h++)f(h);p.each((function(e,t){var n=BS(e).slice();if(1===n.length&&!uy(n[0])&&n[0]<0)p.set(t,!1);else{var i=p.set(t,[]);ty(n,(function(e,n){var o=uy(e)?c.get(e):e;null!=o&&o<a&&(i[n]=o,m(f(o),t,n))}))}}));var g=0;function m(e,t,n){null!=ME.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,o.set(t,!0))}ty(n,(function(e){var t,n,i,o;if(uy(e))t=e,o={};else{t=(o=e).name;var r=o.ordinalMeta;o.ordinalMeta=null,(o=Zv({},o)).ordinalMeta=r,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var s=p.get(t);if(!1!==s){if(!(s=BS(s)).length)for(var c=0;c<(n&&n.length||1);c++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}ty(s,(function(e,r){var a=f(e);if(l&&null!=o.type&&(a.type=o.type),m(Kv(a,o),t,r),null==a.name&&n){var s=n[r];!hy(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&Kv(a.otherDims,i)}))}}));var v=t.generateCoord,y=t.generateCoordCount,x=null!=y;y=v?y||1:0;var b=v||"value";function _(e){null==e.name&&(e.name=e.coordDim)}if(s)ty(r,(function(e){_(e)})),r.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Kz(b,o,x),S.coordDimIndex=0,(!v||y<=0)&&(S.isExtraCoord=!0),y--),_(S),null!=S.type||VE(e,w)!==LE.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(e){for(var t=Ly(),n=0;n<e.length;n++){var i=e[n],o=i.name,r=t.get(o)||0;r>0&&(i.name=o+(r-1)),r++,t.set(o,r)}}(r),new Oz({source:e,dimensions:r,fullDimensionCount:a,dimensionOmitted:s})}function Kz(e,t,n){if(n||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var Jz=function(e){this.coordSysDims=[],this.axisMap=Ly(),this.categoryAxisMap=Ly(),this.coordSysName=e};var Qz={cartesian2d:function(e,t,n,i){var o=e.getReferringComponents("xAxis",iM).models[0],r=e.getReferringComponents("yAxis",iM).models[0];if("production"!==process.env.NODE_ENV){if(!o)throw new Error('xAxis "'+by(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!r)throw new Error('yAxis "'+by(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],n.set("x",o),n.set("y",r),eV(o)&&(i.set("x",o),t.firstCategoryDimIndex=0),eV(r)&&(i.set("y",r),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var o=e.getReferringComponents("singleAxis",iM).models[0];if("production"!==process.env.NODE_ENV&&!o)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],n.set("single",o),eV(o)&&(i.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var o=e.getReferringComponents("polar",iM).models[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");if("production"!==process.env.NODE_ENV){if(!a)throw new Error("angleAxis option not found");if(!r)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",a),eV(r)&&(i.set("radius",r),t.firstCategoryDimIndex=0),eV(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var o=e.ecModel,r=o.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=r.dimensions.slice();ty(r.parallelAxisIndex,(function(e,r){var s=o.getComponent("parallelAxis",e),l=a[r];n.set(l,s),eV(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=r))}))}};function eV(e){return"category"===e.get("type")}function tV(e,t,n){var i,o,r,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!Lz(e.schema)}(t)?(o=t.schema,i=o.dimensions,r=t.store):i=t;var l,c,u,p,d=!(!e||!e.get("stack"));if(ty(i,(function(e,t){uy(e)&&(i[t]=e={name:e}),d&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),c||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(c=e))})),!c||a||l||(a=!0),c){u="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=c.coordDim,f=c.type,g=0;ty(i,(function(e){e.coordDim===h&&g++}));var m={name:u,coordDim:h,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:p,coordDim:p,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(r&&(m.storeDimIndex=r.ensureCalculationDimension(p,f),v.storeDimIndex=r.ensureCalculationDimension(u,f)),o.appendCalculationDimension(m),o.appendCalculationDimension(v)):(i.push(m),i.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:p,stackResultDimension:u}}function nV(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function iV(e,t){return nV(e,t)?e.getCalculationInfo("stackResultDimension"):t}function oV(e,t,n){n=n||{};var i,o=t.getSourceManager(),r=!1;e?(r=!0,i=jO(e)):r=(i=o.getSource()).sourceFormat===CE;var a=function(e){var t=e.get("coordinateSystem"),n=new Jz(t),i=Qz[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,i=e.get("coordinateSystem"),o=aO.get(i);return t&&t.coordSysDims&&(n=ny(t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var o=i.get("type");n.type=Az(o)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,c=cy(l)?l:l?sy(PE,s,t):null,u=Zz(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!r}),p=function(e,t,n){var i,o;return n&&ty(e,(function(e,r){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=r),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(o=!0)})),o||null==i||(e[i].otherDims.itemName=0),i}(u.dimensions,n.createInvertedIndices,a),d=r?null:o.getSharedDataStore(u),h=tV(t,{schema:u,store:d}),f=new $z(u,t);f.setCalculationInfo(h);var g=null!=p&&function(e){if(e.sourceFormat===CE){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return!ly(GS(t))}}(i)?function(e,t,n,i){return i===p?n:this.defaultDimValueGetter(e,t,n,i)}:null;return f.hasItemOption=!1,f.initData(r?i:d,null,g),f}var rV=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();yM(rV);var aV=rV,sV=0,lV=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++sV}return e.createByAxisModel=function(t){var n=t.option,i=n.data,o=i&&ny(i,cV);return new e({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!uy(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return null==(t=i.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Ly(this.categories))},e}();function cV(e){return hy(e)&&null!=e.value?e.value:e+""}function uV(e){return"interval"===e.type||"log"===e.type}function pV(e,t,n,i){var o={},r=e[1]-e[0],a=o.interval=yS(r/t,!0);null!=n&&a<n&&(a=o.interval=n),null!=i&&a>i&&(a=o.interval=i);var s=o.intervalPrecision=hV(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),fV(e,0,t),fV(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(o.niceTickExtent=[aS(Math.ceil(e[0]/a)*a,s),aS(Math.floor(e[1]/a)*a,s)],e),o}function dV(e){var t=Math.pow(10,vS(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,aS(n*t)}function hV(e){return lS(e)+2}function fV(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function gV(e,t){return e>=t[0]&&e<=t[1]}function mV(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function vV(e,t){return e*(t[1]-t[0])+t[0]}var yV=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new lV({})),ly(i)&&(i=new lV({categories:ny(i,(function(e){return hy(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return G(t,e),t.prototype.parse=function(e){return null==e?NaN:uy(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return gV(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return mV(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(vV(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,t.length);o<a;++o){var s=t[o];n[o]=s,i[s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(aV);aV.registerClass(yV);var xV=yV,bV=aS,_V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return G(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return gV(e,this._extent)},t.prototype.normalize=function(e){return mV(e,this._extent)},t.prototype.scale=function(e){return vV(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=hV(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!t)return r;n[0]<i[0]&&(e?r.push({value:bV(i[0]-t,o)}):r.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=bV(a+t,o))!==r[r.length-1].value);)if(r.length>1e4)return[];var s=r.length?r[r.length-1].value:i[1];return n[1]>s&&(e?r.push({value:bV(s+t,o)}):r.push({value:n[1]})),r},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<t.length;o++){for(var r=t[o],a=t[o-1],s=0,l=[],c=(r.value-a.value)/e;s<e-1;){var u=bV(a.value+(s+1)*c);u>i[0]&&u<i[1]&&l.push(u),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=lS(e.value)||0:"auto"===n&&(n=this._intervalPrecision),Jk(bV(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var r=pV(i,e,t,n);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(t[0]=bV(Math.floor(t[0]/o)*o)),e.fixMax||(t[1]=bV(Math.ceil(t[1]/o)*o))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(aV);aV.registerClass(_V);var wV=_V,SV="undefined"!=typeof Float32Array,MV=SV?Float32Array:Array;function CV(e){return ly(e)?SV?new Float32Array(e):e:new MV(e)}var IV="__ec_stack_";function TV(e){return e.get("stack")||IV+e.seriesIndex}function AV(e){return e.dim+e.index}function DV(e,t){var n=[];return t.eachSeriesByType(e,(function(e){NV(e)&&n.push(e)})),n}function kV(e){var t=function(e){var t={};ty(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=e.getData(),o=n.dim+"_"+n.index,r=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var c=a.get(r,s);t[o]?t[o].push(c):t[o]=[c]}}));var n={};for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];if(o){o.sort((function(e,t){return e-t}));for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];s>0&&(r=null===r?s:Math.min(r,s))}n[i]=r}}return n}(e),n=[];return ty(e,(function(e){var i,o=e.coordinateSystem.getBaseAxis(),r=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var a=o.dim+"_"+o.index,s=t[a],l=Math.abs(r[1]-r[0]),c=o.scale.getExtent(),u=Math.abs(c[1]-c[0]);i=s?l/u*s:l}else{var p=e.getData();i=Math.abs(r[1]-r[0])/p.count()}var d=rS(e.get("barWidth"),i),h=rS(e.get("barMaxWidth"),i),f=rS(e.get("barMinWidth")||(PV(e)?.5:1),i),g=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:h,barMinWidth:f,barGap:g,barCategoryGap:m,axisKey:AV(o),stackId:TV(e)})})),EV(n)}function EV(e){var t={};ty(e,(function(e,n){var i=e.axisKey,o=e.bandWidth,r=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=r.stacks;t[i]=r;var s=e.stackId;a[s]||r.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var c=e.barMaxWidth;c&&(a[s].maxWidth=c);var u=e.barMinWidth;u&&(a[s].minWidth=u);var p=e.barGap;null!=p&&(r.gap=p);var d=e.barCategoryGap;null!=d&&(r.categoryGap=d)}));var n={};return ty(t,(function(e,t){n[t]={};var i=e.stacks,o=e.bandWidth,r=e.categoryGap;if(null==r){var a=ry(i).length;r=Math.max(35-4*a,15)+"%"}var s=rS(r,o),l=rS(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,p=(c-s)/(u+(u-1)*l);p=Math.max(p,0),ty(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,c-=i+l*i,u--}else{var i=p;t&&t<i&&(i=Math.min(t,c)),n&&n>i&&(i=n),i!==p&&(e.width=i,c-=i+l*i,u--)}})),p=(c-s)/(u+(u-1)*l),p=Math.max(p,0);var d,h=0;ty(i,(function(e,t){e.width||(e.width=p),d=e,h+=e.width*(1+l)})),d&&(h-=d.width*l);var f=-h/2;ty(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:o,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function OV(e,t){var n=DV(e,t),i=kV(n);ty(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),o=TV(e),r=i[AV(n)][o],a=r.offset,s=r.width;t.setLayout({bandWidth:r.bandWidth,offset:a,size:s})}))}function LV(e){return{seriesType:e,plan:mN(),reset:function(e){if(NV(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=n.getOtherAxis(i),r=t.getDimensionIndex(t.mapDimension(o.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(o.dim),c=t.getCalculationInfo("stackResultDimension"),u=nV(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),p=o.isHorizontal(),d=function(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,o),h=PV(e),f=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),m=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){for(var i,o=e.count,l=h&&CV(3*o),c=h&&s&&CV(3*o),y=h&&CV(o),x=n.master.getRect(),b=p?x.width:x.height,_=t.getStore(),w=0;null!=(i=e.next());){var S=_.get(u?g:r,i),M=_.get(a,i),C=d,I=void 0;u&&(I=+S-_.get(r,i));var T=void 0,A=void 0,D=void 0,k=void 0;if(p){var E=n.dataToPoint([S,M]);if(u)C=n.dataToPoint([I,M])[0];T=C,A=E[1]+v,D=E[0]-C,k=m,Math.abs(D)<f&&(D=(D<0?-1:1)*f)}else{E=n.dataToPoint([M,S]);if(u)C=n.dataToPoint([M,I])[1];T=E[0]+v,A=C,D=m,k=E[1]-C,Math.abs(k)<f&&(k=(k<=0?-1:1)*f)}h?(l[w]=T,l[w+1]=A,l[w+2]=p?D:k,c&&(c[w]=p?x.x:T,c[w+1]=p?A:x.y,c[w+2]=b),y[i]=i):t.setItemLayout(i,{x:T,y:A,width:D,height:k}),w+=3}h&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:c,valueAxisHorizontal:p})}}}}}}function NV(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function PV(e){return e.pipelineContext&&e.pipelineContext.large}var RV=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return G(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Pk(e.value,Dk[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Lk(this._minLevelUnit))]||Dk.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC");return function(e,t,n,i,o){var r=null;if(uy(n))r=n;else if(cy(n))r=n(e.value,t,{level:e.level});else{var a=Zv({},Tk);if(e.level>0)for(var s=0;s<kk.length;++s)a[kk[s]]="{primary|"+a[kk[s]]+"}";var l=n?!1===n.inherit?n:Kv(n,a):a,c=Rk(e.value,o);if(l[c])r=l[c];else if(l.inherit){for(s=Ek.indexOf(c)-1;s>=0;--s)if(l[c]){r=l[c];break}r=r||a.none}if(ly(r)){var u=null==e.level?0:e.level>=0?e.level:r.length+e.level;r=r[u=Math.min(u,r.length-1)]}}return Pk(new Date(e.value),r,o,i)}(e,t,n,this.getSetting("locale"),i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),o=function(e,t,n,i){var o=1e4,r=Ek,a=0;function s(e,t,n,o,r,a,s){for(var l=new Date(t),c=t,u=l[o]();c<n&&c<=i[1];)s.push({value:c}),u+=e,l[r](u),c=l.getTime();s.push({value:c,notAdd:!0})}function l(e,o,r){var a=[],l=!o.length;if(!function(e,t,n,i){var o=mS(t),r=mS(n),a=function(e){return zk(o,e,i)===zk(r,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},p=function(){return u()&&a("minute")},d=function(){return p()&&a("second")},h=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return p();case"second":return d();case"millisecond":return h()}}(Lk(e),i[0],i[1],n)){l&&(o=[{value:HV(new Date(i[0]),e,n)},{value:i[1]}]);for(var c=0;c<o.length-1;c++){var u=o[c].value,p=o[c+1].value;if(u!==p){var d=void 0,h=void 0,f=void 0,g=!1;switch(e){case"year":d=Math.max(1,Math.round(t/Ck/365)),h=Vk(n),f=Uk(n);break;case"half-year":case"quarter":case"month":d=BV(t),h=Bk(n),f=Yk(n);break;case"week":case"half-week":case"day":d=VV(t),h=jk(n),f=qk(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=jV(t),h=Fk(n),f=Xk(n);break;case"minute":d=FV(t,!0),h=Gk(n),f=$k(n);break;case"second":d=FV(t,!1),h=Hk(n),f=Zk(n);break;case"millisecond":d=GV(t),h=Wk(n),f=Kk(n)}s(d,u,p,h,f,g,a),"year"===e&&r.length>1&&0===c&&r.unshift({value:r[0].value-d})}}for(c=0;c<a.length;c++)r.push(a[c]);return a}}for(var c=[],u=[],p=0,d=0,h=0;h<r.length&&a++<o;++h){var f=Lk(r[h]);if(Nk(r[h]))if(l(r[h],c[c.length-1]||[],u),f!==(r[h+1]?Lk(r[h+1]):null)){if(u.length){d=p,u.sort((function(e,t){return e.value-t.value}));for(var g=[],m=0;m<u.length;++m){var v=u[m].value;0!==m&&u[m-1].value===v||(g.push(u[m]),v>=i[0]&&v<=i[1]&&p++)}var y=(i[1]-i[0])/t;if(p>1.5*y&&d>y/1.5)break;if(c.push(g),p>y||e===r[h])break}u=[]}}"production"!==process.env.NODE_ENV&&a>=o&&kS("Exceed safe limit.");var x=oy(ny(c,(function(e){return oy(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),b=[],_=x.length-1;for(h=0;h<x.length;++h)for(var w=x[h],S=0;S<w.length;++S)b.push({value:w[S].value,level:_-h});b.sort((function(e,t){return e.value-t.value}));var M=[];for(h=0;h<b.length;++h)0!==h&&b[h].value===b[h-1].value||M.push(b[h]);return M}(this._minLevelUnit,this._approxInterval,i,t);return(n=n.concat(o)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=Ck,t[1]+=Ck),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Ck}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var r=zV.length,a=Math.min(function(e,t,n,i){for(;n<i;){var o=n+i>>>1;e[o][1]<t?n=o+1:i=o}return n}(zV,this._approxInterval,0,r),r-1);this._interval=zV[a][1],this._minLevelUnit=zV[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return dy(e)?e:+mS(e)},t.prototype.contain=function(e){return gV(this.parse(e),this._extent)},t.prototype.normalize=function(e){return mV(this.parse(e),this._extent)},t.prototype.scale=function(e){return vV(e,this._extent)},t.type="time",t}(wV),zV=[["second",wk],["minute",Sk],["hour",Mk],["quarter-day",6*Mk],["half-day",12*Mk],["day",1.2*Ck],["half-week",3.5*Ck],["week",7*Ck],["month",31*Ck],["quarter",95*Ck],["half-year",Ik/2],["year",Ik]];function VV(e,t){return(e/=Ck)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function BV(e){return(e/=30*Ck)>6?6:e>3?3:e>2?2:1}function jV(e){return(e/=Mk)>12?12:e>6?6:e>3.5?4:e>2?2:1}function FV(e,t){return(e/=t?Sk:wk)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function GV(e){return yS(e,!0)}function HV(e,t,n){var i=new Date(e);switch(Lk(t)){case"year":case"month":i[Yk(n)](0);case"day":i[qk(n)](1);case"hour":i[Xk(n)](0);case"minute":i[$k(n)](0);case"second":i[Zk(n)](0),i[Kk(n)](0)}return i.getTime()}aV.registerClass(RV);var WV=RV,UV=aV.prototype,YV=wV.prototype,qV=aS,XV=Math.floor,$V=Math.ceil,ZV=Math.pow,KV=Math.log,JV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new wV,t._interval=0,t}return G(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent();return ny(YV.getTicks.call(this,e),(function(e){var t=e.value,o=aS(ZV(this.base,t));return o=t===n[0]&&this._fixMin?eB(o,i[0]):o,{value:o=t===n[1]&&this._fixMax?eB(o,i[1]):o}}),this)},t.prototype.setExtent=function(e,t){var n=KV(this.base);e=KV(Math.max(0,e))/n,t=KV(Math.max(0,t))/n,YV.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=UV.getExtent.call(this);t[0]=ZV(e,t[0]),t[1]=ZV(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=eB(t[0],n[0])),this._fixMax&&(t[1]=eB(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=KV(e[0])/KV(t),e[1]=KV(e[1])/KV(t),UV.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i,o=(i=n,Math.pow(10,vS(i)));for(e/n*o<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var r=[aS($V(t[0]/o)*o),aS(XV(t[1]/o)*o)];this._interval=o,this._niceExtent=r}},t.prototype.calcNiceExtent=function(e){YV.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return gV(e=KV(e)/KV(this.base),this._extent)},t.prototype.normalize=function(e){return mV(e=KV(e)/KV(this.base),this._extent)},t.prototype.scale=function(e){return e=vV(e,this._extent),ZV(this.base,e)},t.type="log",t}(aV),QV=JV.prototype;function eB(e,t){return qV(e,lS(t))}QV.getMinorTicks=YV.getMinorTicks,QV.getLabel=YV.getLabel,aV.registerClass(JV);var tB=JV,nB=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var o=this._modelMinRaw=t.get("min",!0);cy(o)?this._modelMinNum=aB(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=aB(e,o));var r=this._modelMaxRaw=t.get("max",!0);if(cy(r)?this._modelMaxNum=aB(e,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=aB(e,r)),i)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=ly(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?("production"!==process.env.NODE_ENV&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[zw(s[0],1),zw(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,c=null!=s;null==a&&(a=e?i?0:NaN:t-o[0]*r),null==s&&(s=e?i?i-1:NaN:n+o[1]*r),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var u=xy(a)||xy(s)||e&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!c&&(s=0));var p=this._determinedMin,d=this._determinedMax;return null!=p&&(a=p,l=!0),null!=d&&(s=d,c=!0),{min:a,max:s,minFixed:l,maxFixed:c,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){"production"!==process.env.NODE_ENV&&Cy(!this.frozen),this[oB[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=iB[e];"production"!==process.env.NODE_ENV&&Cy(!this.frozen&&null==this[n]),this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),iB={min:"_determinedMin",max:"_determinedMax"},oB={min:"_dataMin",max:"_dataMax"};function rB(e,t,n){var i=e.rawExtentInfo;return i||(i=new nB(e,t,n),e.rawExtentInfo=i,i)}function aB(e,t){return null==t?null:xy(t)?NaN:e.parse(t)}function sB(e,t){var n=e.type,i=rB(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var o=i.min,r=i.max,a=t.ecModel;if(a&&"time"===n){var s=DV("bar",a),l=!1;if(ty(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var c=kV(s),u=function(e,t,n,i){var o=n.axis.getExtent(),r=o[1]-o[0],a=function(e,t,n){if(e&&t){var i=e[AV(t)];return null!=i&&null!=n?i[TV(n)]:i}}(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;ty(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;ty(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,p=u/(1-(s+l)/r)-u;return t+=p*(l/c),e-=p*(s/c),{min:e,max:t}}(o,r,t,c);o=u.min,r=u.max}}return{extent:[o,r],fixMin:i.minFixed,fixMax:i.maxFixed}}function lB(e,t){var n=t,i=sB(e,n),o=i.extent,r=n.get("splitNumber");e instanceof tB&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(o[0],o[1]),e.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function cB(e,t){if(t=t||e.get("type"))switch(t){case"category":return new xV({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new WV({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(aV.getClass(t)||wV)}}function uB(e){var t,n,i=e.getLabelModel().get("formatter"),o="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=i,function(t,i){return e.scale.getFormattedLabel(t,i,n)}):uy(i)?function(t){return function(n){var i=e.scale.getLabel(n);return t.replace("{value}",null!=i?i:"")}}(i):cy(i)?(t=i,function(n,i){return null!=o&&(i=n.value-o),t(pB(e,n),i,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function pB(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function dB(e,t){var n=t*Math.PI/180,i=e.width,o=e.height,r=i*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n));return new qx(e.x,e.y,r,a)}function hB(e){var t=e.get("interval");return null==t?"auto":t}function fB(e){return"category"===e.type&&0===hB(e.getLabelModel())}function gB(e,t){var n={};return ty(e.mapDimensionsAll(t),(function(t){n[iV(e,t)]=!0})),ry(n)}var mB=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),vB=1e-8;function yB(e,t){return Math.abs(e-t)<vB}function xB(e,t,n){var i=0,o=e[0];if(!o)return!1;for(var r=1;r<e.length;r++){var a=e[r];i+=PC(o[0],o[1],a[0],a[1],t,n),o=a}var s=e[0];return yB(o[0],s[0])&&yB(o[1],s[1])||(i+=PC(o[0],o[1],s[0],s[1],t,n)),0!==i}var bB=[];function _B(e,t){for(var n=0;n<e.length;n++)ex(e[n],e[n],t)}function wB(e,t,n,i){for(var o=0;o<e.length;o++){var r=e[o];i&&(r=i.project(r)),r&&isFinite(r[0])&&isFinite(r[1])&&(tx(t,t,r),nx(n,n,r))}}var SB=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),MB=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},CB=function(e){this.type="linestring",this.points=e},IB=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.type="geoJSON",o.geometries=n,o._center=i&&[i[0],i[1]],o}return G(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var o=t[i],r=o.exterior,a=r&&r.length;a>n&&(e=o,n=a)}if(e)return function(e){for(var t=0,n=0,i=0,o=e.length,r=e[o-1][0],a=e[o-1][1],s=0;s<o;s++){var l=e[s][0],c=e[s][1],u=r*c-l*a;t+=u,n+=(r+l)*u,i+=(a+c)*u,r=l,a=c}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0];return ty(this.geometries,(function(t){"polygon"===t.type?wB(t.exterior,n,i,e):ty(t.points,(function(t){wB(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new qx(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var r=n[i];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(xB(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(xB(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var o=this.getBoundingRect(),r=o.width/o.height;n?i||(i=n/r):n=r*i;for(var a=new qx(e,t,n,i),s=o.calculateTransform(a),l=this.geometries,c=0;c<l.length;c++){var u=l[c];"polygon"===u.type?(_B(u.exterior,s),ty(u.interiors,(function(e){_B(e,s)}))):ty(u.points,(function(e){_B(e,s)}))}(o=this._rect).copy(a),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(SB),TB=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return G(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=kx(bB),o=e;o&&!o.isGeoSVGGraphicRoot;)Ox(i,o.getLocalTransform(),i),o=o.parent;return Rx(i,i),ex(n,n,i),n},t}(SB);function AB(e,t,n){for(var i=0;i<e.length;i++)e[i]=DB(e[i],t[i],n)}function DB(e,t,n){for(var i=[],o=t[0],r=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),o=s+=o,r=l+=r,i.push([s/n,l/n])}return i}function kB(e,t){return ny(oy((e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;return null==n&&(n=1024),ty(t.features,(function(e){var t=e.geometry,i=t.encodeOffsets,o=t.coordinates;if(i)switch(t.type){case"LineString":t.coordinates=DB(o,i,n);break;case"Polygon":case"MultiLineString":AB(o,i,n);break;case"MultiPolygon":ty(o,(function(e,t){return AB(e,i[t],n)}))}})),t.UTF8Encoding=!1,t}(e)).features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,o=[];switch(i.type){case"Polygon":var r=i.coordinates;o.push(new MB(r[0],r.slice(1)));break;case"MultiPolygon":ty(i.coordinates,(function(e){e[0]&&o.push(new MB(e[0],e.slice(1)))}));break;case"LineString":o.push(new CB([i.coordinates]));break;case"MultiLineString":o.push(new CB(i.coordinates))}var a=new IB(n[t||"name"],o,n.cp);return a.properties=n,a}))}var EB=QS();function OB(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=NB(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=uB(e);return{labels:ny(t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}function LB(e,t){return"category"===e.type?function(e,t){var n,i,o=PB(e,"ticks"),r=hB(t),a=RB(o,r);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(cy(r))n=BB(e,r,!0);else if("auto"===r){var s=NB(e,e.getLabelModel());i=s.labelCategoryInterval,n=ny(s.labels,(function(e){return e.tickValue}))}else n=VB(e,i=r,!0);return zB(o,r,{ticks:n,tickCategoryInterval:i})}(e,t):{ticks:ny(e.scale.getTicks(),(function(e){return e.value}))}}function NB(e,t){var n,i,o=PB(e,"labels"),r=hB(t),a=RB(o,r);return a||(cy(r)?n=BB(e,r):(i="auto"===r?function(e){var t=EB(e).autoInterval;return null!=t?t:EB(e).autoInterval=e.calculateCategoryInterval()}(e):r,n=VB(e,i)),zB(o,r,{labels:n,labelCategoryInterval:i}))}function PB(e,t){return EB(e)[t]||(EB(e)[t]=[])}function RB(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function zB(e,t,n){return e.push({key:t,value:n}),n}function VB(e,t,n){var i=uB(e),o=e.scale,r=o.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=r[0],u=o.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var p=fB(e),d=a.get("showMinLabel")||p,h=a.get("showMaxLabel")||p;d&&c!==r[0]&&g(r[0]);for(var f=c;f<=r[1];f+=l)g(f);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:o.getLabel(t),tickValue:e})}return h&&f-l!==r[1]&&g(r[1]),s}function BB(e,t,n){var i=e.scale,o=uB(e),r=[];return ty(i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&r.push(n?s:{formattedLabel:o(e),rawLabel:a,tickValue:s})})),r}var jB=[0,1],FB=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return uS(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&GB(n=n.slice(),i.count()),oS(e,jB,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&GB(n=n.slice(),i.count());var o=oS(e,n,jB,t);return this.scale.scale(o)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=ny(LB(this,t).ticks,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,i){var o=t.length;if(!e.onBand||n||!o)return;var r,a,s=e.getExtent();if(1===o)t[0].coord=s[0],r=t[1]={coord:s[1]};else{var l=t[o-1].tickValue-t[0].tickValue,c=(t[o-1].coord-t[0].coord)/l;ty(t,(function(e){e.coord-=c/2})),a=1+e.scale.getExtent()[1]-t[o-1].tickValue,r={coord:t[o-1].coord+c*a},t.push(r)}var u=s[0]>s[1];p(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift());i&&p(s[0],t[0].coord)&&t.unshift({coord:s[0]});p(s[1],r.coord)&&(i?r.coord=s[1]:t.pop());i&&p(r.coord,s[1])&&t.push({coord:s[1]});function p(e,t){return e=aS(e),t=aS(t),u?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),ny(this.scale.getMinorTicks(e),(function(e){return ny(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return OB(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 e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(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()}}(e),n=uB(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,o=e.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(i)),p=Math.abs(c*Math.sin(i)),d=0,h=0;l<=r[1];l+=s){var f,g,m=Lw(n({value:l}),t.font,"center","top");f=1.3*m.width,g=1.3*m.height,d=Math.max(d,f,7),h=Math.max(h,g,7)}var v=d/u,y=h/p;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(v,y))),b=EB(e.model),_=e.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&b.axisExtent0===_[0]&&b.axisExtent1===_[1]?x=w:(b.lastTickCount=a,b.lastAutoInterval=x,b.axisExtent0=_[0],b.axisExtent1=_[1]),x}(this)},e}();function GB(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var HB=FB,WB=2*Math.PI,UB=TC.CMD,YB=["top","right","bottom","left"];function qB(e,t,n,i,o){var r=n.width,a=n.height;switch(e){case"top":i.set(n.x+r/2,n.y-t),o.set(0,-1);break;case"bottom":i.set(n.x+r/2,n.y+a+t),o.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),o.set(-1,0);break;case"right":i.set(n.x+r+t,n.y+a/2),o.set(1,0)}}function XB(e,t,n,i,o,r,a,s,l){a-=e,s-=t;var c=Math.sqrt(a*a+s*s),u=(a/=c)*n+e,p=(s/=c)*n+t;if(Math.abs(i-o)%WB<1e-4)return l[0]=u,l[1]=p,c-n;if(r){var d=i;i=OC(o),o=OC(d)}else i=OC(i),o=OC(o);i>o&&(o+=WB);var h=Math.atan2(s,a);if(h<0&&(h+=WB),h>=i&&h<=o||h+WB>=i&&h+WB<=o)return l[0]=u,l[1]=p,c-n;var f=n*Math.cos(i)+e,g=n*Math.sin(i)+t,m=n*Math.cos(o)+e,v=n*Math.sin(o)+t,y=(f-a)*(f-a)+(g-s)*(g-s),x=(m-a)*(m-a)+(v-s)*(v-s);return y<x?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(x))}function $B(e,t,n,i,o,r,a,s){var l=o-e,c=r-t,u=n-e,p=i-t,d=Math.sqrt(u*u+p*p),h=(l*(u/=d)+c*(p/=d))/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var f=a[0]=e+h*u,g=a[1]=t+h*p;return Math.sqrt((f-o)*(f-o)+(g-r)*(g-r))}function ZB(e,t,n,i,o,r,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,c=a[0]=Math.min(Math.max(o,e),s),u=a[1]=Math.min(Math.max(r,t),l);return Math.sqrt((c-o)*(c-o)+(u-r)*(u-r))}var KB=[];function JB(e,t,n){var i=ZB(t.x,t.y,t.width,t.height,e.x,e.y,KB);return n.set(KB[0],KB[1]),i}function QB(e,t,n){for(var i,o,r=0,a=0,s=0,l=0,c=1/0,u=t.data,p=e.x,d=e.y,h=0;h<u.length;){var f=u[h++];1===h&&(s=r=u[h],l=a=u[h+1]);var g=c;switch(f){case UB.M:r=s=u[h++],a=l=u[h++];break;case UB.L:g=$B(r,a,u[h],u[h+1],p,d,KB,!0),r=u[h++],a=u[h++];break;case UB.C:g=zb(r,a,u[h++],u[h++],u[h++],u[h++],u[h],u[h+1],p,d,KB),r=u[h++],a=u[h++];break;case UB.Q:g=Hb(r,a,u[h++],u[h++],u[h],u[h+1],p,d,KB),r=u[h++],a=u[h++];break;case UB.A:var m=u[h++],v=u[h++],y=u[h++],x=u[h++],b=u[h++],_=u[h++];h+=1;var w=!!(1-u[h++]);i=Math.cos(b)*y+m,o=Math.sin(b)*x+v,h<=1&&(s=i,l=o),g=XB(m,v,x,b,b+_,w,(p-m)*x/y+m,d,KB),r=Math.cos(b+_)*y+m,a=Math.sin(b+_)*x+v;break;case UB.R:g=ZB(s=r=u[h++],l=a=u[h++],u[h++],u[h++],p,d,KB);break;case UB.Z:g=$B(r,a,s,l,p,d,KB,!0),r=s,a=l}g<c&&(c=g,n.set(KB[0],KB[1]))}return c}var ej=new zx,tj=new zx,nj=new zx,ij=new zx,oj=new zx;function rj(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var o=e.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||YB,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,c=o.anchor,u=e.getComputedTransform(),p=u&&Rx([],u),d=t.get("length2")||0;c&&nj.copy(c);for(var h=0;h<a.length;h++){qB(a[h],0,s,ej,ij),zx.scaleAndAdd(tj,ej,ij,d),tj.transform(p);var f=e.getBoundingRect(),g=c?c.distance(tj):e instanceof $C?QB(tj,e.path,nj):JB(tj,f,nj);g<l&&(l=g,tj.transform(u),nj.transform(u),nj.toArray(r[0]),tj.toArray(r[1]),ej.toArray(r[2]))}lj(r,t.get("minTurnAngle")),n.setShape({points:r})}}}var aj=[],sj=new zx;function lj(e,t){if(t<=180&&t>0){t=t/180*Math.PI,ej.fromArray(e[0]),tj.fromArray(e[1]),nj.fromArray(e[2]),zx.sub(ij,ej,tj),zx.sub(oj,nj,tj);var n=ij.len(),i=oj.len();if(!(n<.001||i<.001)){ij.scale(1/n),oj.scale(1/i);var o=ij.dot(oj);if(Math.cos(t)<o){var r=$B(tj.x,tj.y,nj.x,nj.y,ej.x,ej.y,aj,!1);sj.fromArray(aj),sj.scaleAndAdd(oj,r/Math.tan(Math.PI-t));var a=nj.x!==tj.x?(sj.x-tj.x)/(nj.x-tj.x):(sj.y-tj.y)/(nj.y-tj.y);if(isNaN(a))return;a<0?zx.copy(sj,tj):a>1&&zx.copy(sj,nj),sj.toArray(e[1])}}}}function cj(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,ej.fromArray(e[0]),tj.fromArray(e[1]),nj.fromArray(e[2]),zx.sub(ij,tj,ej),zx.sub(oj,nj,tj);var i=ij.len(),o=oj.len();if(!(i<.001||o<.001))if(ij.scale(1/i),oj.scale(1/o),ij.dot(t)<Math.cos(n)){var r=$B(tj.x,tj.y,nj.x,nj.y,ej.x,ej.y,aj,!1);sj.fromArray(aj);var a=Math.PI/2,s=a+Math.acos(oj.dot(t))-n;if(s>=a)zx.copy(sj,nj);else{sj.scaleAndAdd(oj,r/Math.tan(Math.PI/2-s));var l=nj.x!==tj.x?(sj.x-tj.x)/(nj.x-tj.x):(sj.y-tj.y)/(nj.y-tj.y);if(isNaN(l))return;l<0?zx.copy(sj,tj):l>1&&zx.copy(sj,nj)}sj.toArray(e[1])}}}function uj(e,t,n,i){var o="normal"===n,r=o?e:e.ensureState(n);r.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?e.useStyle(s):r.style=s}function pj(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var o=Ky(i[0],i[1]),r=Ky(i[1],i[2]);if(!o||!r)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(o,r)*n,s=Qy([],i[1],i[0],a/o),l=Qy([],i[1],i[2],a/r),c=Qy([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u<i.length;u++)e.lineTo(i[u][0],i[u][1])}function dj(e,t,n){var i=e.getTextGuideLine(),o=e.getTextContent();if(o){for(var r=t.normal,a=r.get("show"),s=o.ignore,l=0;l<zI.length;l++){var c=zI[l],u=t[c],p="normal"===c;if(u){var d=u.get("show");if((p?s:_y(o.states[c]&&o.states[c].ignore,s))||!_y(d,a)){var h=p?i:i&&i.states[c];h&&(h.ignore=!0),i&&uj(i,!0,c,u);continue}i||(i=new MA,e.setTextGuideLine(i),p||!s&&a||uj(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),uj(i,!1,c,u)}}if(i){Kv(i.style,n),i.style.fill=null;var f=r.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=pj}}else i&&e.removeTextGuideLine()}function hj(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<RI.length;i++){var o=RI[i];n[o]=e.getModel([o,t])}return n}function fj(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var o=i.label,r=o.getComputedTransform(),a=o.getBoundingRect(),s=!r||r[1]<1e-5&&r[2]<1e-5,l=o.style.margin||0,c=a.clone();c.applyTransform(r),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var u=s?new XA(a,r):null;t.push({label:o,labelLine:i.labelLine,rect:c,localRect:a,obb:u,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:r})}}return t}function gj(e,t,n,i,o,r){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,c=!1,u=0,p=0;p<a;p++){var d=e[p],h=d.rect;(s=h[t]-l)<0&&(h[t]-=s,d.label[t]-=s,c=!0),u+=Math.max(-s,0),l=h[t]+h[n]}u>0&&r&&b(-u/a,0,a);var f,g,m=e[0],v=e[a-1];return y(),f<0&&_(-f,.8),g<0&&_(g,.8),y(),x(f,g,1),x(g,f,-1),y(),f<0&&w(-f),g<0&&w(g),c}function y(){f=m.rect[t]-i,g=o-v.rect[t]-v.rect[n]}function x(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){b(i*n,0,a);var o=i+e;o<0&&_(-o*n,1)}else _(-e*n,1)}}function b(n,i,o){0!==n&&(c=!0);for(var r=i;r<o;r++){var a=e[r];a.rect[t]+=n,a.label[t]+=n}}function _(i,o){for(var r=[],s=0,l=1;l<a;l++){var c=e[l-1].rect,u=Math.max(e[l].rect[t]-c[t]-c[n],0);r.push(u),s+=u}if(s){var p=Math.min(Math.abs(i)/s,o);if(i>0)for(l=0;l<a-1;l++){b(r[l]*p,0,l+1)}else for(l=a-1;l>0;l--){b(-(r[l-1]*p),l,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?b(n,0,i+1):b(-n,a-i-1,a),(e-=n)<=0)return}}function mj(e,t,n,i){return gj(e,"y","height",t,n,i)}function vj(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new qx(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var o=0;o<e.length;o++){var r=e[o],a=r.axisAligned,s=r.localRect,l=r.transform,c=r.label,u=r.labelLine;n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=r.obb,d=!1,h=0;h<t.length;h++){var f=t[h];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new XA(f.localRect,f.transform)),p||(p=new XA(s,l)),p.intersect(f.obb)){d=!0;break}}}d?(i(c),u&&i(u)):(c.attr("ignore",r.defaultAttr.ignore),u&&u.attr("ignore",r.defaultAttr.labelGuideIgnore),t.push(r))}}function yj(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function xj(e,t){var n=e.label,i=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:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:yj(i&&i.shape.points)}}var bj=["align","verticalAlign","width","height","fontSize"],_j=new Tw,wj=QS(),Sj=QS();function Mj(e,t,n){for(var i=0;i<n.length;i++){var o=n[i];null!=t[o]&&(e[o]=t[o])}}var Cj=["x","y","rotation"],Ij=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,o){var r=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();qx.applyTransform(l,l,s),s?_j.setLocalTransform(s):(_j.x=_j.y=_j.rotation=_j.originX=_j.originY=0,_j.scaleX=_j.scaleY=1),_j.rotation=OC(_j.rotation);var c,u=i.__hostTarget;if(u){c=u.getBoundingRect().plain();var p=u.getComputedTransform();qx.applyTransform(c,c,p)}var d=c&&u.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:o,computedLayoutOption:null,rect:l,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:_j.x,y:_j.y,scaleX:_j.scaleX,scaleY:_j.scaleY,rotation:_j.rotation,style:{x:r.x,y:r.y,align:r.align,verticalAlign:r.verticalAlign,width:r.width,height:r.height,fontSize:r.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(cy(i)||ry(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var o=e.getTextContent(),r=TI(e);o&&!o.disableLabelLayout&&t._addLabel(r.dataIndex,r.dataType,n,o,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){rj(e,t)}}for(var o=0;o<this._labelList.length;o++){var r=this._labelList[o],a=r.label,s=a.__hostTarget,l=r.defaultAttr,c=void 0;c=(c=cy(r.layoutOption)?r.layoutOption(xj(r,s)):r.layoutOption)||{},r.computedLayoutOption=c;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:l.attachedPos,rotation:null!=c.rotate?c.rotate*u:l.attachedRot,offset:[c.dx||0,c.dy||0]});var p=!1;if(null!=c.x?(a.x=rS(c.x,t),a.setStyle("x",0),p=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=c.y?(a.y=rS(c.y,n),a.setStyle("y",0),p=!0):(a.y=l.y,a.setStyle("y",l.style.y)),c.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),p=!1)}wj(a).needsUpdateLabelLine=p,a.rotation=null!=c.rotate?c.rotate*u:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var h=0;h<bj.length;h++){var f=bj[h];a.setStyle(f,null!=c[f]?c[f]:l.style[f])}if(c.draggable){if(a.draggable=!0,a.cursor="move",s){var g=r.seriesModel;if(null!=r.dataIndex)g=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex);a.on("drag",i(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t,n=e.getWidth(),i=e.getHeight(),o=fj(this._labelList),r=oy(o,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),a=oy(o,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));gj(r,"x","width",0,n,t),mj(a,0,i),vj(oy(o,(function(e){return e.layoutOption.hideOverlap})))},e.prototype.processLabelsOverall=function(){var e=this;ty(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,o=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var r=!i,a=t.getTextContent();!r&&a&&(r=wj(a).needsUpdateLabelLine),r&&e._updateLabelLine(t,n),o&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=TI(e),o=i.dataIndex;if(n&&null!=o){var r=t.getData(i.dataType),a=r.getItemModel(o),s={},l=r.getItemVisual(o,"style");if(l){var c=r.getVisual("drawType");s.stroke=l[c]}var u=a.getModel("labelLine");dj(e,hj(a),s),rj(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!iD(e))){var o=(h=wj(n)).oldLayout,r=TI(e),a=r.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(r.dataType);if(o){n.attr(o);var c=e.prevStates;c&&(Jv(c,"select")>=0&&n.attr(h.oldLayoutSelect),Jv(c,"emphasis")>=0&&n.attr(h.oldLayoutEmphasis)),tD(n,s,t,a)}else if(n.attr(s),!qD(n).valueAnimation){var u=_y(n.style.opacity,1);n.style.opacity=0,nD(n,{style:{opacity:u}},t,a)}if(h.oldLayout=s,n.states.select){var p=h.oldLayoutSelect={};Mj(p,s,Cj),Mj(p,n.states.select,Cj)}if(n.states.emphasis){var d=h.oldLayoutEmphasis={};Mj(d,s,Cj),Mj(d,n.states.emphasis,Cj)}$D(n,a,l,t,t)}if(i&&!i.ignore&&!i.invisible){o=(h=Sj(i)).oldLayout;var h,f={points:i.shape.points};o?(i.attr({shape:o}),tD(i,{shape:f},t)):(i.setShape(f),i.style.strokePercent=0,nD(i,{style:{strokePercent:1}},t)),h.oldLayout=f}},e}(),Tj=QS();var Aj=Math.sin,Dj=Math.cos,kj=Math.PI,Ej=2*Math.PI,Oj=180/kj,Lj=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,o,r){this._add("C",e,t,n,i,o,r)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,o,r){this.ellipse(e,t,n,n,0,i,o,r)},e.prototype.ellipse=function(e,t,n,i,o,r,a,s){var l=a-r,c=!s,u=Math.abs(l),p=w_(u-Ej)||(c?l>=Ej:-l>=Ej),d=l>0?l%Ej:l%Ej+Ej,h=!1;h=!!p||!w_(u)&&d>=kj==!!c;var f=e+n*Dj(r),g=t+i*Aj(r);this._start&&this._add("M",f,g);var m=Math.round(o*Oj);if(p){var v=1/this._p,y=(c?1:-1)*(Ej-v);this._add("A",n,i,m,1,+c,e+n*Dj(r+y),t+i*Aj(r+y)),v>.01&&this._add("A",n,i,m,0,+c,f,g)}else{var x=e+n*Dj(a),b=t+i*Aj(a);this._add("A",n,i,m,+h,+c,x,b)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),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(e,t,n,i,o,r,a,s,l){for(var c=[],u=this._p,p=1;p<arguments.length;p++){var d=arguments[p];if(isNaN(d))return void(this._invalid=!0);c.push(Math.round(d*u)/u)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),Nj="none",Pj=Math.round;var Rj=["lineCap","miterLimit","lineJoin"],zj=ny(Rj,(function(e){return"stroke-"+e.toLowerCase()}));function Vj(e,t,n,i){var o=null==t.opacity?1:t.opacity;if(n instanceof nI)e("opacity",o);else{if(function(e){var t=e.fill;return null!=t&&t!==Nj}(t)){var r=b_(t.fill);e("fill",r.color);var a=null!=t.fillOpacity?t.fillOpacity*r.opacity*o:r.opacity*o;(i||a<1)&&e("fill-opacity",a)}else e("fill",Nj);if(function(e){var t=e.stroke;return null!=t&&t!==Nj}(t)){var s=b_(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,c=l?(t.lineWidth||0)/l:0,u=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*o:s.opacity*o,p=t.strokeFirst;if((i||1!==c)&&e("stroke-width",c),(i||p)&&e("paint-order",p?"stroke":"fill"),(i||u<1)&&e("stroke-opacity",u),t.lineDash){var d=jP(n),h=d[0],f=d[1];h&&(f=Pj(f||0),e("stroke-dasharray",h.join(",")),(f||i)&&e("stroke-dashoffset",f))}else i&&e("stroke-dasharray",Nj);for(var g=0;g<Rj.length;g++){var m=Rj[g];if(i||t[m]!==UC[m]){var v=t[m]||UC[m];v&&e(zj[g],v)}}}else i&&e("stroke",Nj)}}var Bj="http://www.w3.org/2000/svg",jj="http://www.w3.org/1999/xlink",Fj="http://www.w3.org/2000/xmlns/",Gj="http://www.w3.org/XML/1998/namespace",Hj="ecmeta_";function Wj(e){return document.createElementNS(Bj,e)}function Uj(e,t,n,i,o){return{tag:e,attrs:n||{},children:i,text:o,key:t}}function Yj(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var i=t.children,o=t.tag,r=t.attrs,a=t.text;return function(e,t){var n=[];if(t)for(var i in t){var o=t[i],r=i;!1!==o&&(!0!==o&&null!=o&&(r+='="'+o+'"'),n.push(r))}return"<"+e+" "+n.join(" ")+">"}(o,r)+("style"!==o?gx(a):a||"")+(i?""+n+ny(i,(function(t){return e(t)})).join(n)+n:"")+("</"+o+">")}(e)}function qj(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Xj(e,t,n,i){return Uj("svg","root",{width:e,height:t,xmlns:Bj,"xmlns:xlink":jj,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var $j=0;function Zj(){return $j++}var Kj={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"},Jj="transform-origin";function Qj(e,t,n){var i=Zv({},e.shape);Zv(i,t),e.buildPath(n,i);var o=new Lj;return o.reset(O_(e)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function eF(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[Jj]=n+"px "+i+"px")}var tF={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function nF(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function iF(e){return uy(e)?Kj[e]?"cubic-bezier("+Kj[e]+")":Yb(e)?e:"":""}function oF(e,t,n,i){var o=e.animators,r=o.length,a=[];if(e instanceof zA){var s=function(e,t,n){var i,o,r=e.shape.paths,a={};if(ty(r,(function(e){var t=qj(n.zrId);t.animation=!0,oF(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,l=ry(r),c=l.length;if(c){var u=r[o=l[c-1]];for(var p in u){var d=u[p];a[p]=a[p]||{d:""},a[p].d+=d.d||""}for(var h in s){var f=s[h].animation;f.indexOf(o)>=0&&(i=f)}}})),i){t.d=!1;var s=nF(a,n);return i.replace(o,s)}}(e,t,n);if(s)a.push(s);else if(!r)return}else if(!r)return;for(var l={},c=0;c<r;c++){var u=o[c],p=[u.getMaxTime()/1e3+"s"],d=iF(u.getClip().easing),h=u.getDelay();d?p.push(d):p.push("linear"),h&&p.push(h/1e3+"s"),u.getLoop()&&p.push("infinite");var f=p.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(u)}function g(o){var r,a=o[1],s=a.length,l={},c={},u={},p="animation-timing-function";function d(e,t,n){for(var i=e.getTracks(),o=e.getMaxTime(),r=0;r<i.length;r++){var a=i[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var c=0;c<s.length;c++){var u=s[c],d=Math.round(u.time/o*100)+"%",h=iF(u.easing),f=u.rawValue;(uy(f)||dy(f))&&(t[d]=t[d]||{},t[d][l]=u.rawValue,h&&(t[d][p]=h))}}}}for(var h=0;h<s;h++){(S=(w=a[h]).targetName)?"shape"===S&&d(w,c):!i&&d(w,l)}for(var f in l){var g={};Dw(g,e),Zv(g,l[f]);var m=L_(g),v=l[f][p];u[f]=m?{transform:m}:{},eF(u[f],g),v&&(u[f][p]=v)}var y=!0;for(var f in c){u[f]=u[f]||{};var x=!r;v=c[f][p];x&&(r=new TC);var b=r.len();r.reset(),u[f].d=Qj(e,c[f],r);var _=r.len();if(!x&&b!==_){y=!1;break}v&&(u[f][p]=v)}if(!y)for(var f in u)delete u[f].d;if(!i)for(h=0;h<s;h++){var w,S;"style"===(S=(w=a[h]).targetName)&&d(w,u,(function(e){return tF[e]}))}var M,C=ry(u),I=!0;for(h=1;h<C.length;h++){var T=C[h-1],A=C[h];if(u[T][Jj]!==u[A][Jj]){I=!1;break}M=u[T][Jj]}if(I&&M){for(var f in u)u[f][Jj]&&delete u[f][Jj];t[Jj]=M}if(oy(C,(function(e){return ry(u[e]).length>0})).length)return nF(u,n)+" "+o[0]+" both"}for(var m in l){(s=g(l[m]))&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+Zj();n.cssNodes["."+v]={animation:a.join(",")},t.class=v}}function rF(e,t,n,i){var o=JSON.stringify(e),r=n.cssStyleCache[o];r||(r=n.zrId+"-cls-"+Zj(),n.cssStyleCache[o]=r,n.cssNodes["."+r+(i?":hover":"")]=e),t.class=t.class?t.class+" "+r:r}var aF=Math.round;function sF(e){return e&&uy(e.src)}function lF(e){return e&&cy(e.toDataURL)}function cF(e,t,n,i){Vj((function(o,r){var a="fill"===o||"stroke"===o;a&&k_(r)?bF(t,e,o,i):a&&T_(r)?_F(n,e,o,i):e[o]=a&&"none"===r?"transparent":r}),t,n,!1),function(e,t,n){var i=e.style;if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(i)){var o=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(e),r=n.shadowCache,a=r[o];if(!a){var s=e.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=i.shadowOffsetX||0,p=i.shadowOffsetY||0,d=i.shadowBlur,h=b_(i.shadowColor),f=h.opacity,g=h.color,m=d/2/l+" "+d/2/c;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=Uj("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Uj("feDropShadow","",{dx:u/l,dy:p/c,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),r[o]=a}t.filter=E_(a)}}(n,e,i)}function uF(e,t){var n=function(e){if("function"==typeof Qw)return Qw(e)}(t);n&&(n.each((function(t,n){null!=t&&(e[(Hj+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[Hj+"silent"]="true"))}function pF(e){return w_(e[0]-1)&&w_(e[1])&&w_(e[2])&&w_(e[3]-1)}function dF(e,t,n){if(t&&(!function(e){return w_(e[4])&&w_(e[5])}(t)||!pF(t))){var i=n?10:1e4;e.transform=pF(t)?"translate("+aF(t[4]*i)/i+" "+aF(t[5]*i)/i+")":function(e){return"matrix("+S_(e[0])+","+S_(e[1])+","+S_(e[2])+","+S_(e[3])+","+M_(e[4])+","+M_(e[5])+")"}(t)}}function hF(e,t,n){for(var i=e.points,o=[],r=0;r<i.length;r++)o.push(aF(i[r][0]*n)/n),o.push(aF(i[r][1]*n)/n);t.points=o.join(" ")}function fF(e){return!e.smooth}var gF,mF,vF={circle:[(gF=["cx","cy","r"],mF=ny(gF,(function(e){return"string"==typeof e?[e,e]:e})),function(e,t,n){for(var i=0;i<mF.length;i++){var o=mF[i],r=e[o[0]];null!=r&&(t[o[1]]=aF(r*n)/n)}})],polyline:[hF,fF],polygon:[hF,fF]};function yF(e,t){var n=e.style,i=e.shape,o=vF[e.type],r={},a=t.animation,s="path",l=e.style.strokePercent,c=t.compress&&O_(e)||4;if(!o||t.willUpdate||o[1]&&!o[1](i)||a&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||l<1){var u=!e.path||e.shapeChanged();e.path||e.createPathProxy();var p=e.path;u&&(p.beginPath(),e.buildPath(p,e.shape),e.pathUpdated());var d=p.getVersion(),h=e,f=h.__svgPathBuilder;h.__svgPathVersion===d&&f&&l===h.__svgPathStrokePercent||(f||(f=h.__svgPathBuilder=new Lj),f.reset(c),p.rebuildPath(f,l),f.generateStr(),h.__svgPathVersion=d,h.__svgPathStrokePercent=l),r.d=f.getStr()}else{s=e.type;var g=Math.pow(10,c);o[0](i,r,g)}return dF(r,e.transform),cF(r,n,e,t),uF(r,e),t.animation&&oF(e,r,t),t.emphasis&&function(e,t,n){if(!e.ignore)if(e.isSilent())rF(c={"pointer-events":"none"},t,n,!0);else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var r=e.style&&e.style.fill,a=e.states.select&&e.states.select.style&&e.states.select.style.fill,s=e.currentStates.indexOf("select")>=0&&a||r;s&&(o=y_(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&e.transform?e.transform[0]:1);var c={cursor:"pointer"};o&&(c.fill=o),i.stroke&&(c.stroke=i.stroke),l&&(c["stroke-width"]=l),rF(c,t,n,!0)}}(e,r,t),Uj(s,e.id+"",r)}function xF(e,t){return e instanceof $C?yF(e,t):e instanceof nI?function(e,t){var n=e.style,i=n.image;if(i&&!uy(i)&&(sF(i)?i=i.src:lF(i)&&(i=i.toDataURL())),i){var o=n.x||0,r=n.y||0,a={href:i,width:n.width,height:n.height};return o&&(a.x=o),r&&(a.y=r),dF(a,e.transform),cF(a,n,e,t),uF(a,e),t.animation&&oF(e,a,t),Uj("image",e.id+"",a)}}(e,t):e instanceof JC?function(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var o=n.font||Av,r=n.x||0,a=function(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}(n.y||0,Rw(o),n.textBaseline),s={"dominant-baseline":"central","text-anchor":C_[n.textAlign]||n.textAlign};if(xI(n)){var l="",c=n.fontStyle,u=vI(n.fontSize);if(!parseFloat(u))return;var p=n.fontFamily||Tv,d=n.fontWeight;l+="font-size:"+u+";font-family:"+p+";",c&&"normal"!==c&&(l+="font-style:"+c+";"),d&&"normal"!==d&&(l+="font-weight:"+d+";"),s.style=l}else s.style="font: "+o;return i.match(/\s/)&&(s["xml:space"]="preserve"),r&&(s.x=r),a&&(s.y=a),dF(s,e.transform),cF(s,n,e,t),uF(s,e),t.animation&&oF(e,s,t),Uj("text",e.id+"",s,void 0,i)}}(e,t):void 0}function bF(e,t,n,i){var o,r=e[n],a={gradientUnits:r.global?"userSpaceOnUse":"objectBoundingBox"};if(A_(r))o="linearGradient",a.x1=r.x,a.y1=r.y,a.x2=r.x2,a.y2=r.y2;else{if(!D_(r))return void("production"!==process.env.NODE_ENV&&Yv("Illegal gradient type."));o="radialGradient",a.cx=_y(r.x,.5),a.cy=_y(r.y,.5),a.r=_y(r.r,.5)}for(var s=r.colorStops,l=[],c=0,u=s.length;c<u;++c){var p=100*M_(s[c].offset)+"%",d=b_(s[c].color),h=d.color,f=d.opacity,g={offset:p};g["stop-color"]=h,f<1&&(g["stop-opacity"]=f),l.push(Uj("stop",c+"",g))}var m=Yj(Uj(o,"",a,l)),v=i.gradientCache,y=v[m];y||(y=i.zrId+"-g"+i.gradientIdx++,v[m]=y,a.id=y,i.defs[y]=Uj(o,y,a,l)),t[n]=E_(y)}function _F(e,t,n,i){var o,r=e.style[n],a=e.getBoundingRect(),s={},l=r.repeat,c="no-repeat"===l,u="repeat-x"===l,p="repeat-y"===l;if(I_(r)){var d=r.imageWidth,h=r.imageHeight,f=void 0,g=r.image;if(uy(g)?f=g:sF(g)?f=g.src:lF(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";Cy(d,m),Cy(h,m)}else if(null==d||null==h){var v=function(e,t){if(e){var n=e.elm,i=d||t.width,o=h||t.height;"pattern"===e.tag&&(u?(o=1,i/=a.width):p&&(i=1,o/=a.height)),e.attrs.width=i,e.attrs.height=o,n&&(n.setAttribute("width",i),n.setAttribute("height",o))}},y=MM(f,null,e,(function(e){c||v(w,e),v(o,e)}));y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}o=Uj("image","img",{href:f,width:d,height:h}),s.width=d,s.height=h}else r.svgElement&&(o=qv(r.svgElement),s.width=r.svgWidth,s.height=r.svgHeight);if(o){var x,b;c?x=b=1:u?(b=1,x=s.width/a.width):p?(x=1,b=s.height/a.height):s.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(s.width=x),null==b||isNaN(b)||(s.height=b);var _=L_(r);_&&(s.patternTransform=_);var w=Uj("pattern","",s,[o]),S=Yj(w),M=i.patternCache,C=M[S];C||(C=i.zrId+"-p"+i.patternIdx++,M[S]=C,s.id=C,w=i.defs[C]=Uj("pattern",C,s,[o])),t[n]=E_(C)}}function wF(e,t,n){var i=n.clipPathCache,o=n.defs,r=i[e.id];if(!r){var a={id:r=n.zrId+"-c"+n.clipPathIdx++};i[e.id]=r,o[r]=Uj("clipPath",r,a,[yF(e,n)])}t["clip-path"]=E_(r)}function SF(e){return document.createTextNode(e)}function MF(e,t,n){e.insertBefore(t,n)}function CF(e,t){e.removeChild(t)}function IF(e,t){e.appendChild(t)}function TF(e){return e.parentNode}function AF(e){return e.nextSibling}function DF(e,t){e.textContent=t}var kF=58,EF=120,OF=Uj("","");function LF(e){return void 0===e}function NF(e){return void 0!==e}function PF(e,t,n){for(var i={},o=t;o<=n;++o){var r=e[o].key;void 0!==r&&("production"!==process.env.NODE_ENV&&null!=i[r]&&console.error("Duplicate key "+r),i[r]=o)}return i}function RF(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function zF(e){var t,n=e.children,i=e.tag;if(NF(i)){var o=e.elm=Wj(i);if(jF(OF,e),ly(n))for(t=0;t<n.length;++t){var r=n[t];null!=r&&IF(o,zF(r))}else NF(e.text)&&!hy(e.text)&&IF(o,SF(e.text))}else e.elm=SF(e.text);return e.elm}function VF(e,t,n,i,o){for(;i<=o;++i){var r=n[i];null!=r&&MF(e,zF(r),t)}}function BF(e,t,n,i){for(;n<=i;++n){var o=t[n];if(null!=o)if(NF(o.tag))CF(TF(o.elm),o.elm);else CF(e,o.elm)}}function jF(e,t){var n,i=t.elm,o=e&&e.attrs||{},r=t.attrs||{};if(o!==r){for(n in r){var a=r[n];o[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:n.charCodeAt(0)!==EF?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(Fj,n,a):n.charCodeAt(3)===kF?i.setAttributeNS(Gj,n,a):n.charCodeAt(5)===kF?i.setAttributeNS(jj,n,a):i.setAttribute(n,a))}for(n in o)n in r||i.removeAttribute(n)}}function FF(e,t){var n=t.elm=e.elm,i=e.children,o=t.children;e!==t&&(jF(e,t),LF(t.text)?NF(i)&&NF(o)?i!==o&&function(e,t,n){for(var i,o,r,a=0,s=0,l=t.length-1,c=t[0],u=t[l],p=n.length-1,d=n[0],h=n[p];a<=l&&s<=p;)null==c?c=t[++a]:null==u?u=t[--l]:null==d?d=n[++s]:null==h?h=n[--p]:RF(c,d)?(FF(c,d),c=t[++a],d=n[++s]):RF(u,h)?(FF(u,h),u=t[--l],h=n[--p]):RF(c,h)?(FF(c,h),MF(e,c.elm,AF(u.elm)),c=t[++a],h=n[--p]):RF(u,d)?(FF(u,d),MF(e,u.elm,c.elm),u=t[--l],d=n[++s]):(LF(i)&&(i=PF(t,a,l)),LF(o=i[d.key])||(r=t[o]).tag!==d.tag?MF(e,zF(d),c.elm):(FF(r,d),t[o]=void 0,MF(e,r.elm,c.elm)),d=n[++s]);(a<=l||s<=p)&&(a>l?VF(e,null==n[p+1]?null:n[p+1].elm,n,s,p):BF(e,t,a,l))}(n,i,o):NF(o)?(NF(e.text)&&DF(n,""),VF(n,null,o,0,o.length-1)):NF(i)?BF(n,i,0,i.length-1):NF(e.text)&&DF(n,""):e.text!==t.text&&(NF(i)&&BF(n,i,0,i.length-1),DF(n,t.text)))}var GF=0,HF=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=WF("refreshHover"),this.configLayer=WF("configLayer"),this.storage=t,this._opts=n=Zv({},n),this.root=e,this._id="zr"+GF++,this._oldVNode=Xj(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=Wj("svg");jF(null,this._oldVNode),i.appendChild(o),e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(RF(e,t))FF(e,t);else{var n=e.elm,i=TF(n);zF(t),null!==i&&(MF(i,t.elm,AF(n)),BF(i,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return xF(e,qj(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,o=qj(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis;var r=[],a=this._bgVNode=function(e,t,n,i){var o;if(n&&"none"!==n)if(o=Uj("rect","bg",{width:e,height:t,x:"0",y:"0"}),k_(n))bF({fill:n},o.attrs,"fill",i);else if(T_(n))_F({style:{fill:n},dirty:Vy,getBoundingRect:function(){return{width:e,height:t}}},o.attrs,"fill",i);else{var r=b_(n),a=r.color,s=r.opacity;o.attrs.fill=a,s<1&&(o.attrs["fill-opacity"]=s)}return o}(n,i,this._backgroundColor,o);a&&r.push(a);var s=e.compress?null:this._mainVNode=Uj("g","main",{},[]);this._paintList(t,o,s?s.children:r),s&&r.push(s);var l=ny(ry(o.defs),(function(e){return o.defs[e]}));if(l.length&&r.push(Uj("defs","defs",{},l)),e.animation){var c=function(e,t,n){var i=(n=n||{}).newline?"\n":"",o=" {"+i,r=i+"}",a=ny(ry(e),(function(t){return t+o+ny(ry(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+r})).join(i),s=ny(ry(t),(function(e){return"@keyframes "+e+o+ny(ry(t[e]),(function(n){return n+o+ny(ry(t[e][n]),(function(i){var o=t[e][n][i];return"d"===i&&(o='path("'+o+'")'),i+":"+o+";"})).join(i)+r})).join(i)+r})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}(o.cssNodes,o.cssAnims,{newline:!0});if(c){var u=Uj("style","stl",{},[],c);r.push(u)}}return Xj(n,i,r,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},Yj(this.renderToVNode({animation:_y(e.cssAnimation,!0),emphasis:_y(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:_y(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,o,r=e.length,a=[],s=0,l=0,c=0;c<r;c++){var u=e[c];if(!u.invisible){var p=u.__clipPaths,d=p&&p.length||0,h=o&&o.length||0,f=void 0;for(f=Math.max(d-1,h-1);f>=0&&(!p||!o||p[f]!==o[f]);f--);for(var g=h-1;g>f;g--)i=a[--s-1];for(var m=f+1;m<d;m++){var v={};wF(p[m],v,t);var y=Uj("g","clip-g-"+l++,v,[]);(i?i.children:n).push(y),a[s++]=y,i=y}o=p;var x=xF(u,t);x&&(i?i.children:n).push(x)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,o=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&o&&(o.style.display="none",e=BP(i,0,n),t=BP(i,1,n),o.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,o){var r=o.style;r.width=e+"px",r.height=t+"px"}if(T_(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},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(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=N_(t))&&n+"base64,"+t:n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function WF(e){return function(){"production"!==process.env.NODE_ENV&&Yv('In SVG mode painter not support method "'+e+'"')}}var UF=HF;function YF(e,t,n){var i=Ov.createCanvas(),o=t.getWidth(),r=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=o+"px",a.height=r+"px",i.setAttribute("data-zr-dom-id",e)),i.width=o*n,i.height=r*n,i}var qF=function(e){function t(t,n,i){var o,r=e.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,i=i||vw,"string"==typeof t?o=YF(t,n,i):hy(t)&&(t=(o=t).id),r.id=t,r.dom=o;var a=o.style;return a&&(Ry(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),r.painter=n,r.dpr=i,r}return G(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=YF("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o,r=[],a=this.maxRepaintRectCount,s=!1,l=new qx(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===r.length){(t=new qx(0,0,0,0)).copy(e),r.push(t)}else{for(var t,n=!1,i=1/0,o=0,c=0;c<r.length;++c){var u=r[c];if(u.intersect(e)){var p=new qx(0,0,0,0);p.copy(u),p.union(e),r[c]=p,n=!0;break}if(s){l.copy(e),l.union(u);var d=e.width*e.height,h=u.width*u.height,f=l.width*l.height-d-h;f<i&&(i=f,o=c)}}if(s&&(r[o].union(e),n=!0),!n)(t=new qx(0,0,0,0)).copy(e),r.push(t);s||(s=r.length>=a)}}for(var u=this.__startIndex;u<this.__endIndex;++u){if(h=e[u]){var p=h.shouldBePainted(n,i,!0,!0);(f=h.__isRendered&&(h.__dirty&hb||!p)?h.getPrevPaintRect():null)&&c(f);var d=p&&(h.__dirty&hb||!h.__isRendered)?h.getPaintRect():null;d&&c(d)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h,f;p=(h=t[u])&&h.shouldBePainted(n,i,!0,!0);if(h&&(!p||!h.__zr)&&h.__isRendered)(f=h.getPrevPaintRect())&&c(f)}do{o=!1;for(u=0;u<r.length;)if(r[u].isZero())r.splice(u,1);else{for(var g=u+1;g<r.length;)r[u].intersect(r[g])?(o=!0,r[u].union(r[g]),r.splice(g,1)):g++;u++}}while(o);return this._paintRects=r,r},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=e+"px",o.height=t+"px"),i.width=e*n,i.height=t*n,r&&(r.width=e*n,r.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,o=this.ctx,r=i.width,a=i.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,c=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,r/c,a/c));var p=this.domBack;function d(e,n,i,r){if(o.clearRect(e,n,i,r),t&&"transparent"!==t){var a=void 0;if(vy(t))a=(t.global||t.__width===i&&t.__height===r)&&t.__canvasGradient||zP(o,t,{x:0,y:0,width:i,height:r}),t.__canvasGradient=a,t.__width=i,t.__height=r;else null!=t.image&&(t.scaleX=t.scaleX||c,t.scaleY=t.scaleY||c,a=qP(o,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}}));o.save(),o.fillStyle=a||t,o.fillRect(e,n,i,r),o.restore()}s&&(o.save(),o.globalAlpha=l,o.drawImage(p,e,n,i,r),o.restore())}!n||s?d(0,0,r,a):n.length&&ty(n,(function(e){d(e.x*c,e.y*c,e.width*c,e.height*c)}))},t}(rx),XF=qF,$F=1e5,ZF=314159,KF=.01;var JF=function(){function e(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=Zv({},n||{}),this.dpr=n.devicePixelRatio||vw,this._singleCanvas=o,this.root=e,e.style&&(Ry(e),e.innerHTML=""),this.storage=t;var r=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(o){var s=e,l=s.width,c=s.height;null!=n.width&&(l=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=c*this.dpr,this._width=l,this._height=c;var u=new XF(s,this,this.dpr);u.__builtin__=!0,u.initContext(),a[314159]=u,u.zlevel=ZF,r.push(ZF),this._domRoot=e}else{this._width=BP(e,0,n),this._height=BP(e,1,n);var p=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(p)}}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var o=0;o<i.length;o++){var r=i[o],a=this._layers[r];if(!a.__builtin__&&a.refresh){var s=0===o?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<t;r++){var a=e[r];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer($F)),i||(i=n.ctx).save(),aR(i,a,o,r===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer($F)},e.prototype.paintOne=function(e,t){rR(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var o=this._doPaintList(e,t,n),r=o.finished,a=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),r)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;xb((function(){s._paintList(e,t,n,i)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(ZF).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var i=this,o=[],r=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&o.push(l)}for(var c=!0,u=!1,p=function(a){var s,l=o[a],p=l.ctx,h=r&&l.createRepaintRects(e,t,d._width,d._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,h);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,h)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var o=e[s];if(o.__inHover&&(u=!0),i._doPaintEl(o,l,r,t,n,s===l.__endIndex-1),g)if(Date.now()-m>15)break}n.prevElClipPaths&&p.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var b=d.dpr,_=0;_<h.length;++_){var w=h[_];p.save(),p.beginPath(),p.rect(w.x*b,w.y*b,w.width*b,w.height*b),p.clip(),x(w),p.restore()}else p.save(),x(),p.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},d=this,h=0;h<o.length;h++)p(h);return Cv.wxa&&ty(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:c,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,i,o,r){var a=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(aR(a,e,o,r),e.setPrevPaintRect(s))}else aR(a,e,o,r)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ZF);var n=this._layers[e];return n||((n=new XF("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Xv(n,this._layerConfig[e],!0):this._layerConfig[e-KF]&&Xv(n,this._layerConfig[e-KF],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,o=i.length,r=this._domRoot,a=null,s=-1;if(n[e])"production"!==process.env.NODE_ENV&&Yv("ZLevel "+e+" has been used already");else if(function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(o>0&&e>i[0]){for(s=0;s<o-1&&!(i[s]<e&&i[s+1]>e);s++);a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?r.insertBefore(t.dom,l.nextSibling):r.appendChild(t.dom)}else r.firstChild?r.insertBefore(t.dom,r.firstChild):r.appendChild(t.dom);t.painter||(t.painter=this)}else"production"!==process.env.NODE_ENV&&Yv("Layer of zlevel "+e+" is not valid")},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];e.call(t,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&e.call(t,r,o)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||e.call(t,r,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){r&&(r.__endIndex!==e&&(r.__dirty=!0),r.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var i,o,r=null,a=0;for(o=0;o<e.length;o++){var s,l=(s=e[o]).zlevel,c=void 0;i!==l&&(i=l,a=0),s.incremental?((c=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):c=this.getLayer(l+(a>0?KF:0),this._needsManuallyCompositing),c.__builtin__||Yv("ZLevel "+l+" has been used by unkown layer "+c.id),c!==r&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,t(o),r=c),s.__dirty&hb&&!s.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,ty(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Xv(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===e||o===e+KF)Xv(this._layers[o],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(Jv(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,o=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=BP(o,0,i),t=BP(o,1,i),n.style.display="",this._width!==e||t!==this._height){for(var r in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(ZF).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new XF("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,o=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,o):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var c=a[s];aR(n,c,r,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),QF=JF;var eG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return G(t,e),t.prototype.getInitialData=function(e){if("production"!==process.env.NODE_ENV){var t=e.coordinateSystem;if("polar"!==t&&"cartesian2d"!==t)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return oV(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Zw,n=LP("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),r="none"===i?"circle":i,a=.8*e.itemHeight,s=LP(r,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?o:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),r.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},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}(hN),tG=eG;function nG(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var o=nL(e,t,n[0]);return null!=o?o+"":null}if(i){for(var r=[],a=0;a<n.length;a++)r.push(nL(e,t,n[a]));return r.join(" ")}}function iG(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!ly(t))return t+"";for(var i=[],o=0;o<n.length;o++){var r=e.getDimensionIndex(n[o]);r>=0&&i.push(t[r])}return i.join(" ")}var oG=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.updateData(t,n,i,o),r}return G(t,e),t.prototype._createSymbol=function(e,t,n,i,o){this.removeAll();var r=LP(e,-1,-1,2,2,null,o);r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=rG,this._symbolType=e,this.add(r)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){aT(this.childAt(0))},t.prototype.downplay=function(){sT(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,o){this.silent=!1;var r=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=r!==this._symbolType,c=o&&o.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(r,e,n,s,u)}else{(d=this.childAt(0)).silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(p):tD(d,p,a,n),sD(d)}if(this._updateCommon(e,n,s,i,o),l){var d=this.childAt(0);if(!c){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,nD(d,p,a,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,c,u,p,d,h,f=this.childAt(0),g=e.hostModel;if(i&&(r=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,c=i.blurScope,p=i.labelStatesModels,d=i.hoverScale,h=i.cursorStyle,u=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(t),v=m.getModel("emphasis");r=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),c=v.get("blurScope"),u=v.get("disabled"),p=BD(m),d=v.getShallow("scale"),h=m.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(y||0)*Math.PI/180||0);var x=PP(e.getItemVisual(t,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),h&&f.attr("cursor",h);var b=e.getItemVisual(t,"style"),_=b.fill;if(f instanceof nI){var w=f.style;f.useStyle(Zv({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else f.__isEmptyBrush?f.useStyle(Zv({},b)):f.useStyle(b),f.style.decal=null,f.setColor(_,o&&o.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var C=o&&o.useNameLabel;VD(f,p,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return C?e.getName(t):nG(e,t)},inheritColor:_,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=f.ensureState("emphasis");I.style=r,f.ensureState("select").style=s,f.ensureState("blur").style=a;var T=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;I.scaleX=this._sizeX*T,I.scaleY=this._sizeY*T,this.setSymbolScale(1),bT(this,l,c,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),o=TI(this).dataIndex,r=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&oD(a,{style:{opacity:0}},t,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}})}else i.removeTextContent();oD(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:o,cb:e,removeOpt:r})},t.getSymbolSize=function(e,t){return NP(e.getItemVisual(t,"symbolSize"))},t}(Zw);function rG(e,t){this.parent.drift(e,t)}function aG(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function sG(e){return null==e||hy(e)||(e={isIgnore:e}),e||{}}function lG(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:BD(t),cursorStyle:t.get("cursor")}}var cG=function(){function e(e){this.group=new Zw,this._SymbolCtor=e||oG}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=sG(t);var n=this.group,i=e.hostModel,o=this._data,r=this._SymbolCtor,a=t.disableAnimation,s=lG(e),l={disableAnimation:a},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};o||n.removeAll(),e.diff(o).add((function(i){var o=c(i);if(aG(e,o,i,t)){var a=new r(e,i,s,l);a.setPosition(o),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(u,p){var d=o.getItemGraphicEl(p),h=c(u);if(aG(e,h,u,t)){var f=e.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new r(e,u,s,l)).setPosition(h);else{d.updateData(e,u,s,l);var m={x:h[0],y:h[1]};a?d.attr(m):tD(d,m,i)}n.add(d),e.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=lG(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=sG(n);for(var o=e.start;o<e.end;o++){var r=t.getItemLayout(o);if(aG(t,r,o,n)){var a=new this._SymbolCtor(t,o,this._seriesScope);a.traverse(i),a.setPosition(r),this.group.add(a),t.setItemGraphicEl(o,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){LD(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();function uG(e,t,n){var i=e.getBaseAxis(),o=e.getOtherAxis(i),r=function(e,t){var n=0,i=e.scale.getExtent();"start"===t?n=i[0]:"end"===t?n=i[1]:dy(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(o,n),a=i.dim,s=o.dim,l=t.mapDimension(s),c=t.mapDimension(a),u="x"===s||"radius"===s?1:0,p=ny(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,h=t.getCalculationInfo("stackResultDimension");return nV(t,p[0])&&(d=!0,p[0]=h),nV(t,p[1])&&(d=!0,p[1]=h),{dataDimsForPoint:p,valueStart:r,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function pG(e,t,n,i){var o=NaN;e.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=e.valueStart);var r=e.baseDataOffset,a=[];return a[r]=n.get(e.baseDim,i),a[1-r]=o,t.dataToPoint(a)}var dG=Math.min,hG=Math.max;function fG(e,t){return isNaN(e)||isNaN(t)}function gG(e,t,n,i,o,r,a,s,l){for(var c,u,p,d,h,f,g=n,m=0;m<i;m++){var v=t[2*g],y=t[2*g+1];if(g>=o||g<0)break;if(fG(v,y)){if(l){g+=r;continue}break}if(g===n)e[r>0?"moveTo":"lineTo"](v,y),p=v,d=y;else{var x=v-c,b=y-u;if(x*x+b*b<.5){g+=r;continue}if(a>0){for(var _=g+r,w=t[2*_],S=t[2*_+1];w===v&&S===y&&m<i;)m++,g+=r,w=t[2*(_+=r)],S=t[2*_+1],x=(v=t[2*g])-c,b=(y=t[2*g+1])-u;var M=m+1;if(l)for(;fG(w,S)&&M<i;)M++,w=t[2*(_+=r)],S=t[2*_+1];var C=.5,I=0,T=0,A=void 0,D=void 0;if(M>=i||fG(w,S))h=v,f=y;else{I=w-c,T=S-u;var k=v-c,E=w-v,O=y-u,L=S-y,N=void 0,P=void 0;if("x"===s){var R=I>0?1:-1;h=v-R*(N=Math.abs(k))*a,f=y,A=v+R*(P=Math.abs(E))*a,D=y}else if("y"===s){var z=T>0?1:-1;h=v,f=y-z*(N=Math.abs(O))*a,A=v,D=y+z*(P=Math.abs(L))*a}else N=Math.sqrt(k*k+O*O),h=v-I*a*(1-(C=(P=Math.sqrt(E*E+L*L))/(P+N))),f=y-T*a*(1-C),D=y+T*a*C,A=dG(A=v+I*a*C,hG(w,v)),D=dG(D,hG(S,y)),A=hG(A,dG(w,v)),f=y-(T=(D=hG(D,dG(S,y)))-y)*N/P,h=dG(h=v-(I=A-v)*N/P,hG(c,v)),f=dG(f,hG(u,y)),A=v+(I=v-(h=hG(h,dG(c,v))))*P/N,D=y+(T=y-(f=hG(f,dG(u,y))))*P/N}e.bezierCurveTo(p,d,h,f,v,y),p=A,d=D}else e.lineTo(v,y)}c=v,u=y,g+=r}return m}var mG=function(){this.smooth=0,this.smoothConstraint=!0},vG=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return G(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new mG},t.prototype.buildPath=function(e,t){var n=t.points,i=0,o=n.length/2;if(t.connectNulls){for(;o>0&&fG(n[2*o-2],n[2*o-1]);o--);for(;i<o&&fG(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=gG(e,n,i,o,o,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=TC.CMD,a="x"===t,s=[],l=0;l<o.length;){var c=void 0,u=void 0,p=void 0,d=void 0,h=void 0,f=void 0,g=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:if(c=o[l++],u=o[l++],(g=a?(e-n)/(c-n):(e-i)/(u-i))<=1&&g>=0){var m=a?(u-i)*g+i:(c-n)*g+n;return a?[e,m]:[m,e]}n=c,i=u;break;case r.C:c=o[l++],u=o[l++],p=o[l++],d=o[l++],h=o[l++],f=o[l++];var v=a?Nb(n,c,p,h,e,s):Nb(i,u,d,f,e,s);if(v>0)for(var y=0;y<v;y++){var x=s[y];if(x<=1&&x>=0){m=a?Ob(i,u,d,f,x):Ob(n,c,p,h,x);return a?[e,m]:[m,e]}}n=h,i=f}}},t}($C),yG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t}(mG),xG=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return G(t,e),t.prototype.getDefaultShape=function(){return new yG},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,o=0,r=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;r>0&&fG(n[2*r-2],n[2*r-1]);r--);for(;o<r&&fG(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=gG(e,n,o,r,r,1,t.smooth,a,t.connectNulls);gG(e,i,o+s-1,s,r,-1,t.stackedOnSmooth,a,t.connectNulls),o+=s+1,e.closePath()}},t}($C);function bG(e,t,n,i,o){var r=e.getArea(),a=r.x,s=r.y,l=r.width,c=r.height,u=n.get(["lineStyle","width"])||2;a-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var p=new uI({shape:{x:a,y:s,width:l,height:c}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),f=d.inverse;h?(f&&(p.shape.x+=l),p.shape.width=0):(f||(p.shape.y+=c),p.shape.height=0);var g=cy(o)?function(e){o(e,p)}:null;nD(p,{shape:{width:l,height:c,x:a,y:s}},n,null,i,g)}return p}function _G(e,t,n){var i=e.getArea(),o=aS(i.r0,1),r=aS(i.r,1),a=new mA({shape:{cx:aS(e.cx,1),cy:aS(e.cy,1),r0:o,r:r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=o,nD(a,{shape:{endAngle:i.endAngle,r:r}},n));return a}function wG(e,t,n,i,o){return e?"polar"===e.type?_G(e,t,n):"cartesian2d"===e.type?bG(e,t,n,i,o):null:null}function SG(e,t){return e.type===t}function MG(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function CG(e){for(var t=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<e.length;){var a=e[r++],s=e[r++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[t,n],[i,o]]}function IG(e,t){var n=CG(e),i=n[0],o=n[1],r=CG(t),a=r[0],s=r[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function TG(e){return dy(e)?e:e?.5:0}function AG(e,t,n,i){var o=t.getBaseAxis(),r="x"===o.dim||"radius"===o.dim?0:1,a=[],s=0,l=[],c=[],u=[],p=[];if(i){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||p.push(e[s],e[s+1]);e=p}for(s=0;s<e.length-2;s+=2)switch(u[0]=e[s+2],u[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],a.push(c[0],c[1]),n){case"end":l[r]=u[r],l[1-r]=c[1-r],a.push(l[0],l[1]);break;case"middle":var d=(c[r]+u[r])/2,h=[];l[r]=h[r]=d,l[1-r]=c[1-r],h[1-r]=u[1-r],a.push(l[0],l[1]),a.push(h[0],h[1]);break;default:l[r]=c[r],l[1-r]=u[1-r],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function DG(e,t){var n,i,o=[],r=e.length;function a(e,t,n){var i=e.coord;return{coord:n,color:function(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),o=Math.floor(i),r=Math.ceil(i),a=c_(t[o]),s=c_(t[r]),l=i-o,c=g_([Jb(i_(a[0],s[0],l)),Jb(i_(a[1],s[1],l)),Jb(i_(a[2],s[2],l)),Qb(i_(a[3],s[3],l))],"rgba");return n?{color:c,leftIndex:o,rightIndex:r,value:i}:c}}((n-i)/(t.coord-i),[e.color,t.color])}}for(var s=0;s<r;s++){var l=e[s],c=l.coord;if(c<0)n=l;else{if(c>t){i?o.push(a(i,l,t)):n&&o.push(a(n,l,0),a(n,l,t));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}function kG(e,t,n){var i=e.get("showAllSymbol"),o="auto"===i;if(!i||o){var r=n.getAxesByScale("ordinal")[0];if(r&&(!o||!function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var o=t.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*oG.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}(r,t))){var a=t.mapDimension(r.dim),s={};return ty(r.getViewLabels(),(function(e){var t=r.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function EG(e,t){return isNaN(e)||isNaN(t)}function OG(e,t){return[e[2*t],e[2*t+1]]}function LG(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<RI.length;t++)if(e.get([RI[t],"endLabel","show"]))return!0;return!1}function NG(e,t,n,i){if(SG(t,"cartesian2d")){var o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=LG(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,r,o,t)}:null,c=t.getBaseAxis().isHorizontal(),u=bG(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var p=u.shape,d=Math.max(p.width,p.height);c?(p.y-=d,p.height+=2*d):(p.x-=d,p.width+=2*d)}return l&&l(1,u),u}return"production"!==process.env.NODE_ENV&&i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),_G(t,n,i)}var PG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.init=function(){var e=new Zw,t=new cG;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,o=e.coordinateSystem,r=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=a.getLayout("points")||[],u="polar"===o.type,p=this._coordSys,d=this._symbolDraw,h=this._polyline,f=this._polygon,g=this._lineGroup,m=!t.ssr&&e.get("animation"),v=!l.isEmpty(),y=l.get("origin"),x=uG(o,a,y),b=v&&function(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),o=CV(2*i),r=0;r<i;r++){var a=pG(n,e,t,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(o,a,x),_=e.get("showSymbol"),w=e.get("connectNulls"),S=_&&!u&&kG(e,a,o),M=this._data;M&&M.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),M.setItemGraphicEl(t,null))})),_||d.remove(),r.add(g);var C,I=!u&&e.get("step");o&&o.getArea&&e.get("clip",!0)&&(null!=(C=o.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=function(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count())if("cartesian2d"===t.type){for(var o,r,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if("x"===(o=s&&s.coordDim)||"y"===o){r=i[a];break}}if(r){var l=t.getAxis(o),c=ny(r.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,p=r.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),p.reverse());var d=DG(c,"x"===o?n.getWidth():n.getHeight()),h=d.length;if(!h&&u)return c[0].coord<0?p[1]?p[1]:c[u-1].color:p[0]?p[0]:c[0].color;var f=d[0].coord-10,g=d[h-1].coord+10,m=g-f;if(m<.001)return"transparent";ty(d,(function(e){e.offset=(e.coord-f)/m})),d.push({offset:h?d[h-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:p[0]||"transparent"});var v=new jA(0,0,0,0,d,!0);return v[o]=f,v[o+"2"]=g,v}"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style only support x or y dimension.")}else"production"!==process.env.NODE_ENV&&console.warn("Visual map on line style is only supported on cartesian2d.")}(a,o,n)||a.getVisual("style")[a.getVisual("drawType")];if(h&&p.type===o.type&&I===this._step){v&&!f?f=this._newPolygon(c,b):f&&!v&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(e,o,rE(T));var A=g.getClipPath();if(A)nD(A,{shape:NG(this,o,!1,e).shape},e);else g.setClipPath(NG(this,o,!0,e));_&&d.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),MG(this._stackedOnPoints,b)&&MG(this._points,c)||(m?this._doUpdateAnimation(a,b,o,n,I,y,w):(I&&(c=AG(c,o,I,w),b&&(b=AG(b,o,I,w))),h.setShape({points:c}),f&&f.setShape({points:c,stackedOnPoints:b})))}else _&&d.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),m&&this._initSymbolLabelAnimation(a,o,C),I&&(c=AG(c,o,I,w),b&&(b=AG(b,o,I,w))),h=this._newPolyline(c),v?f=this._newPolygon(c,b):f&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(e,o,rE(T)),g.setClipPath(NG(this,o,!0,e));var D=e.getModel("emphasis"),k=D.get("focus"),E=D.get("blurScope"),O=D.get("disabled");(h.useStyle(Kv(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),MT(h,e,"lineStyle"),h.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(h.getState("emphasis").style.lineWidth=+h.style.lineWidth+1);TI(h).seriesIndex=e.seriesIndex,bT(h,k,E,O);var L=TG(e.get("smooth")),N=e.get("smoothMonotone");if(h.setShape({smooth:L,smoothMonotone:N,connectNulls:w}),f){var P=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(Kv(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(R=TG(P.get("smooth"))),f.setShape({smooth:L,stackedOnSmooth:R,smoothMonotone:N,connectNulls:w}),MT(f,e,"areaStyle"),TI(f).seriesIndex=e.seriesIndex,bT(f,k,E,O)}var z=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=I,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,h),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){TI(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var o=e.getData(),r=JS(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var a=o.getLayout("points"),s=o.getItemGraphicEl(r);if(!s){var l=a[2*r],c=a[2*r+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,p=e.get("z")||0;(s=new oG(o,r)).x=l,s.y=c,s.setZ(u,p);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=p,d.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else CN.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var o=e.getData(),r=JS(o,i);if(this._changePolyState("normal"),null!=r&&r>=0){var a=o.getItemGraphicEl(r);a&&(a.__temp?(o.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else CN.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;tT(this._polyline,e),t&&tT(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new vG({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new xG({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,o,r=t.getBaseAxis(),a=r.inverse;"cartesian2d"===t.type?(i=r.isHorizontal(),o=!1):"polar"===t.type&&(i="angle"===r.dim,o=!0);var s=e.hostModel,l=s.get("animationDuration");cy(l)&&(l=l(null));var c=s.get("animationDelay")||0,u=cy(c)?c(null):c;e.eachItemGraphicEl((function(e,r){var s=e;if(s){var p=[e.x,e.y],d=void 0,h=void 0,f=void 0;if(n)if(o){var g=n,m=t.pointToCoord(p);i?(d=g.startAngle,h=g.endAngle,f=-m[1]/180*Math.PI):(d=g.r0,h=g.r,f=m[0])}else{var v=n;i?(d=v.x,h=v.x+v.width,f=e.x):(d=v.y+v.height,h=v.y,f=e.y)}var y=h===d?0:(f-d)/(h-d);a&&(y=1-y);var x=cy(c)?c(r):l*y+u,b=s.getSymbolPath(),_=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(LG(e)){var o=e.getData(),r=this._polyline,a=o.getLayout("points");if(!a)return r.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new II({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);var l=function(e){for(var t=e.length/2;t>0&&EG(e[2*t-2],e[2*t-1]);t--);return t-1}(a);l>=0&&(VD(r,BD(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?iG(o,n):nG(o,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),o=n.inverse,r=i?o?"right":"left":"center",a=i?"middle":o?"top":"bottom";return{normal:{align:e.get("align")||r,verticalAlign:e.get("verticalAlign")||a}}}(i,t)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,o,r,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,p=u.get("connectNulls"),d=r.get("precision"),h=r.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?h:0)*(m?-1:1),b=(g?0:-h)*(m?-1:1),_=g?"x":"y",w=function(e,t,n){for(var i,o,r=e.length/2,a="x"===n?0:1,s=0,l=-1,c=0;c<r;c++)if(o=e[2*c+a],!isNaN(o)&&!isNaN(e[2*c+1-a]))if(0!==c){if(i<=t&&o>=t||i>=t&&o<=t){l=c;break}s=c,i=o}else i=o;return{range:[s,l],t:(t-i)/(o-i)}}(c,y,_),S=w.range,M=S[1]-S[0],C=void 0;if(M>=1){if(M>1&&!p){var I=OG(c,S[0]);s.attr({x:I[0]+x,y:I[1]+b}),o&&(C=u.getRawValue(S[0]))}else{(I=l.getPointOn(y,_))&&s.attr({x:I[0]+x,y:I[1]+b});var T=u.getRawValue(S[0]),A=u.getRawValue(S[1]);o&&(C=lM(n,d,T,A,w.t))}i.lastFrameIndex=S[0]}else{var D=1===e||i.lastFrameIndex>0?S[0]:0;I=OG(c,D);o&&(C=u.getRawValue(D)),s.attr({x:I[0]+x,y:I[1]+b})}if(o){var k=qD(s);"function"==typeof k.setLabelText&&k.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,o,r,a){var s=this._polyline,l=this._polygon,c=e.hostModel,u=function(e,t,n,i,o,r,a,s){for(var l=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),c=[],u=[],p=[],d=[],h=[],f=[],g=[],m=uG(o,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x<l.length;x++){var b=l[x],_=!0,w=void 0,S=void 0;switch(b.cmd){case"=":w=2*b.idx,S=2*b.idx1;var M=v[w],C=v[w+1],I=y[S],T=y[S+1];(isNaN(M)||isNaN(C))&&(M=I,C=T),c.push(M,C),u.push(I,T),p.push(n[w],n[w+1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(b.idx1));break;case"+":var A=b.idx,D=m.dataDimsForPoint,k=o.dataToPoint([t.get(D[0],A),t.get(D[1],A)]);S=2*A,c.push(k[0],k[1]),u.push(y[S],y[S+1]);var E=pG(m,o,t,A);p.push(E[0],E[1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(A));break;case"-":_=!1}_&&(h.push(b),f.push(f.length))}f.sort((function(e,t){return g[e]-g[t]}));var O=c.length,L=CV(O),N=CV(O),P=CV(O),R=CV(O),z=[];for(x=0;x<f.length;x++){var V=f[x],B=2*x,j=2*V;L[B]=c[j],L[B+1]=c[j+1],N[B]=u[j],N[B+1]=u[j+1],P[B]=p[j],P[B+1]=p[j+1],R[B]=d[j],R[B+1]=d[j+1],z[x]=h[V]}return{current:L,next:N,stackedOnCurrent:P,stackedOnNext:R,status:z}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),p=u.current,d=u.stackedOnCurrent,h=u.next,f=u.stackedOnNext;if(o&&(p=AG(u.current,n,o,a),d=AG(u.stackedOnCurrent,n,o,a),h=AG(u.next,n,o,a),f=AG(u.stackedOnNext,n,o,a)),IG(p,h)>3e3||l&&IG(d,f)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=p;var g={shape:{points:h}};u.current!==p&&(g.shape.__points=u.next),s.stopAnimation(),tD(s,g,c),l&&(l.setShape({points:p,stackedOnPoints:d}),l.stopAnimation(),tD(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=u.status,y=0;y<v.length;y++){if("="===v[y].cmd){var x=e.getItemGraphicEl(v[y].idx1);x&&m.push({el:x,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,i=2*m[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(CN),RG=PG;function zG(e,t){return{seriesType:e,plan:mN(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,o=e.pipelineContext,r=t||o.large;if(i){var a=ny(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");nV(n,a[0])&&(a[0]=l),nV(n,a[1])&&(a[1]=l);var c=n.getStore(),u=n.getDimensionIndex(a[0]),p=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,o=r&&CV(n*s),a=[],l=[],d=e.start,h=0;d<e.end;d++){var f=void 0;if(1===s){var g=c.get(u,d);f=i.dataToPoint(g,null,l)}else a[0]=c.get(u,d),a[1]=c.get(p,d),f=i.dataToPoint(a,null,l);r?(o[h++]=f[0],o[h++]=f[1]):t.setItemLayout(d,f.slice())}r&&t.setLayout("points",o)}}}}}}var VG={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,i=0;i<e.length;i++){var o=e[i],r=Math.abs(o);r>t&&(t=r,n=o)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},BG=function(e){return Math.round(e.length/2)};function jG(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),o=e.get("sampling"),r=e.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===r.type&&o){var s=r.getBaseAxis(),l=r.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(u||1),d=Math.round(a/p);if(isFinite(d)&&d>1){"lttb"===o&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var h=void 0;uy(o)?h=VG[o]:cy(o)&&(h=o),h&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,h,BG))}}}}}var FG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.getInitialData=function(e,t){return oV(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),r=i.dataToPoint(o);if(n)ty(i.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=o[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(r[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var c=void 0,u=void 0,p=1,d=0;d<i.length;d++){var h=i[d].coord,f=d===i.length-1?i[d-1].tickValue+p:i[d].tickValue;if(f===s){u=h;break}if(f<s)c=h;else if(null!=c&&f>s){u=(h+c)/2;break}1===d&&(p=f-i[0].tickValue)}null==u&&(c?c&&(u=i[i.length-1].coord):u=i[0].coord),r[n]=e.toGlobalCoord(u)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;r[c]+=s+l/2}return r}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}(hN);hN.registerClass(FG);var GG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.getInitialData=function(){return oV(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=hk(FG.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}(FG),HG=GG,WG=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},UG=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return G(t,e),t.prototype.getDefaultShape=function(){return new WG},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,o=Math.max(t.r0||0,0),r=Math.max(t.r,0),a=.5*(r-o),s=o+a,l=t.startAngle,c=t.endAngle,u=t.clockwise,p=2*Math.PI,d=u?c-l<p:l-c<p;d||(l=c-(u?p:-p));var h=Math.cos(l),f=Math.sin(l),g=Math.cos(c),m=Math.sin(c);d?(e.moveTo(h*o+n,f*o+i),e.arc(h*s+n,f*s+i,a,-Math.PI+l,l,!u)):e.moveTo(h*r+n,f*r+i),e.arc(n,i,r,l,c,!u),e.arc(g*s+n,m*s+i,a,c-2*Math.PI,c-Math.PI,!u),0!==o&&e.arc(n,i,o,c,l,u)},t}($C);function YG(e,t,n){return t*Math.sin(e)*(n?-1:1)}function qG(e,t,n){return t*Math.cos(e)*(n?1:-1)}function XG(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;ly(i)||(i=[i,i,i,i]);var o=Math.abs(t.r||0-t.r0||0);return{cornerRadius:ny(i,(function(e){return zw(e,o)}))}}var $G=Math.max,ZG=Math.min;var KG=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return G(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");"cartesian2d"===o||"polar"===o?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i)):"production"!==process.env.NODE_ENV&&kS("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){LD(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var o,r=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?o=c.isHorizontal():"polar"===l.type&&(o="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,p=function(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();"production"!==process.env.NODE_ENV&&n&&("category"!==i.type&&kS("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==t.type&&kS("`realtimeSort` will not work because this bar series is not on cartesian2d."));if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}(e,l);p&&this._enableRealtimeSort(p,a,n);var d=e.get("clip",!0)||p,h=function(e,t){var n=e.getArea&&e.getArea();if(SG(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var o=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}(l,a);r.removeClipPath();var f=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],x=this._backgroundEls,b=i&&i.isInitSort,_=i&&"changeAxisOrder"===i.type;function w(e){var t=rH[l.type](a,e),n=function(e,t,n){var i="polar"===e.type?mA:uI;return new i({shape:dH(t,n,e),silent:!0,z2:0})}(l,o,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=rH[l.type](a,t,n);if(g&&w(t),a.hasValue(t)&&oH[l.type](i)){var s=!1;d&&(s=JG[l.type](h,i));var m=QG[l.type](e,a,t,i,o,u,c.model,!1,f);p&&(m.forceLabelAnimation=!0),sH(m,a,t,n,i,e,o,"polar"===l.type),b?m.attr({shape:i}):p?eH(p,u,m,i,t,o,!1,!1):nD(m,{shape:i},e,t),a.setItemGraphicEl(t,m),r.add(m),m.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),S=rH[l.type](a,t,i);if(g){var M=void 0;0===x.length?M=w(n):((M=x[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("cornerRadius",v),y[t]=M);var C=rH[l.type](a,t);tD(M,{shape:dH(o,C,l)},u,t)}var I=s.getItemGraphicEl(n);if(a.hasValue(t)&&oH[l.type](S)){var T=!1;if(d&&(T=JG[l.type](h,S))&&r.remove(I),I?sD(I):I=QG[l.type](e,a,t,S,o,u,c.model,!!I,f),p&&(I.forceLabelAnimation=!0),_){var A=I.getTextContent();if(A){var D=qD(A);null!=D.prevValue&&(D.prevValue=D.value)}}else sH(I,a,t,i,S,e,o,"polar"===l.type);b?I.attr({shape:S}):p?eH(p,u,I,S,t,o,!0,_):tD(I,{shape:S},e,t,null),a.setItemGraphicEl(t,I),I.ignore=T,r.add(I)}else r.remove(I)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&aD(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Zw);S.removeAll();for(var M=0;M<y.length;++M)S.add(y[M]);r.add(S),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),uH(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),uH(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&wG(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var r=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(o.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,r,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var o=n(t);o=null==o?NaN:o,i.push({dataIndex:t,mappedValue:o,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:ny(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,o=e.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(o,i.getRawOrdinalNumber(a)),c=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(c>r)return!0;r=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),o=Math.max(0,i[0]),r=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=r;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var o=this._dataSort(e,n,t);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,o=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){aD(t,e,TI(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(CN),JG={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var o=e.x+e.width,r=e.y+e.height,a=$G(t.x,e.x),s=ZG(t.x+t.width,o),l=$G(t.y,e.y),c=ZG(t.y+t.height,r),u=s<a,p=c<l;return t.x=u&&a>o?s:a,t.y=p&&l>r?c:l,t.width=u?0:s-a,t.height=p?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||p},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var o=ZG(t.r,e.r),r=$G(t.r0,e.r0);t.r=o,t.r0=r;var a=o-r<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},QG={cartesian2d:function(e,t,n,i,o,r,a,s,l){var c=new uI({shape:Zv({},i),z2:1});(c.__dataIndex=n,c.name="item",r)&&(c.shape[o?"height":"width"]=0);return c},polar:function(e,t,n,i,o,r,a,s,l){var c=!o&&l?UG:mA,u=new c({shape:i,z2:1});u.name="item";var p,d,h=aH(o);if(u.calculateTextPosition=(p=h,d=({isRoundCap:c===UG}||{}).isRoundCap,function(e,t,n){var i=t.position;if(!i||i instanceof Array)return Vw(e,t,n);var o=p(i),r=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,u=a.r0,h=(c+u)/2,f=a.startAngle,g=a.endAngle,m=(f+g)/2,v=d?Math.abs(c-u)/2:0,y=Math.cos,x=Math.sin,b=s+c*y(f),_=l+c*x(f),w="left",S="top";switch(o){case"startArc":b=s+(u-r)*y(m),_=l+(u-r)*x(m),w="center",S="top";break;case"insideStartArc":b=s+(u+r)*y(m),_=l+(u+r)*x(m),w="center",S="bottom";break;case"startAngle":b=s+h*y(f)+YG(f,r+v,!1),_=l+h*x(f)+qG(f,r+v,!1),w="right",S="middle";break;case"insideStartAngle":b=s+h*y(f)+YG(f,-r+v,!1),_=l+h*x(f)+qG(f,-r+v,!1),w="left",S="middle";break;case"middle":b=s+h*y(m),_=l+h*x(m),w="center",S="middle";break;case"endArc":b=s+(c+r)*y(m),_=l+(c+r)*x(m),w="center",S="bottom";break;case"insideEndArc":b=s+(c-r)*y(m),_=l+(c-r)*x(m),w="center",S="top";break;case"endAngle":b=s+h*y(g)+YG(g,r+v,!0),_=l+h*x(g)+qG(g,r+v,!0),w="left",S="middle";break;case"insideEndAngle":b=s+h*y(g)+YG(g,-r+v,!0),_=l+h*x(g)+qG(g,-r+v,!0),w="right",S="middle";break;default:return Vw(e,t,n)}return(e=e||{}).x=b,e.y=_,e.align=w,e.verticalAlign=S,e}),r){var f=o?"r":"endAngle",g={};u.shape[f]=o?i.r0:i.startAngle,g[f]=i[f],(s?tD:nD)(u,{shape:g},r)}return u}};function eH(e,t,n,i,o,r,a,s){var l,c;r?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?tD:nD)(n,{shape:l},t,o,null),(a?tD:nD)(n,{shape:c},t?e.baseAxis.model:null,o)}function tH(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var nH=["x","y","width","height"],iH=["cx","cy","r","startAngle","endAngle"],oH={cartesian2d:function(e){return!tH(e,nH)},polar:function(e){return!tH(e,iH)}},rH={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),o=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,o=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),r=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,o,r)}(n,i):0,r=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function aH(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function sH(e,t,n,i,o,r,a,s){var l=t.getItemVisual(n,"style");if(s){if(!r.get("roundCap")){var c=e.shape;Zv(c,XG(i.getModel("itemStyle"),c,!0)),e.setShape(c)}}else{var u=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var p=i.getShallow("cursor");p&&e.attr("cursor",p);var d=s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",h=BD(i);VD(e,h,{labelFetcher:r,labelDataIndex:n,defaultText:nG(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var f=e.getTextContent();if(s&&f){var g=i.get(["label","position"]);e.textConfig.inside="middle"===g||null,function(e,t,n,i){if(dy(i))e.setTextConfig({rotation:i});else if(ly(t))e.setTextConfig({rotation:0});else{var o,r=e.shape,a=r.clockwise?r.startAngle:r.endAngle,s=r.clockwise?r.endAngle:r.startAngle,l=(a+s)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=l;break;case"startAngle":case"insideStartAngle":o=a;break;case"endAngle":case"insideEndAngle":o=s;break;default:return void e.setTextConfig({rotation:0})}var u=1.5*Math.PI-o;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}(e,"outside"===g?d:g,aH(a),i.get(["label","rotate"]))}XD(f,h,r.getRawValue(n),(function(e){return iG(t,e)}));var m=i.getModel(["emphasis"]);bT(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),MT(e,i),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(o)&&(e.style.fill="none",e.style.stroke="none",ty(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var lH=function(){},cH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return G(t,e),t.prototype.getDefaultShape=function(){return new lH},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[o]=n[l+2],r[i]=n[l+i],r[o]=n[l+o],e.rect(r[0],r[1],a[0],a[1])},t}($C);function uH(e,t,n,i){var o=e.getData(),r=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=e.getModel("backgroundStyle"),c=o.getLayout("largeBackgroundPoints");if(c){var u=new cH({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=r,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),t.add(u),n&&n.push(u)}var p=new cH({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=r,p.largeDataIndices=a,p.barWidth=s,t.add(p),p.useStyle(o.getVisual("style")),TI(p).seriesIndex=e.seriesIndex,e.get("silent")||(p.on("mousedown",pH),p.on("mousemove",pH)),n&&n.push(p)}var pH=DN((function(e){var t=function(e,t,n){for(var i=e.baseDimIdx,o=1-i,r=e.shape.points,a=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,p=r.length/3;u<p;u++){var d=3*u;if(l[i]=c,l[o]=r[d+2],s[i]=r[d+i],s[o]=r[d+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}(this,e.offsetX,e.offsetY);TI(this).dataIndex=t>=0?t:null}),30,!1);function dH(e,t,n){if(SG(n,"cartesian2d")){var i=t,o=n.getArea();return{x:e?i.x:o.x,y:e?o.y:i.y,width:e?i.width:o.width,height:e?o.height:i.height}}var r=t;return{cx:(o=n.getArea()).cx,cy:o.cy,r0:e?o.r0:r.r0,r:e?o.r:r.r,startAngle:e?r.startAngle:0,endAngle:e?r.endAngle:2*Math.PI}}var hH=KG;var fH=2*Math.PI,gH=Math.PI/180;function mH(e,t){return dE(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function vH(e,t){var n=mH(e,t),i=e.get("center"),o=e.get("radius");ly(o)||(o=[0,o]);var r,a,s=rS(n.width,t.getWidth()),l=rS(n.height,t.getHeight()),c=Math.min(s,l),u=rS(o[0],c/2),p=rS(o[1],c/2),d=e.coordinateSystem;if(d){var h=d.dataToPoint(i);r=h[0]||0,a=h[1]||0}else ly(i)||(i=[i,i]),r=rS(i[0],s)+n.x,a=rS(i[1],l)+n.y;return{cx:r,cy:a,r0:u,r:p}}function yH(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),o=mH(e,n),r=vH(e,n),a=r.cx,s=r.cy,l=r.r,c=r.r0,u=-e.get("startAngle")*gH,p=e.get("endAngle"),d=e.get("padAngle")*gH;p="auto"===p?u-fH:-p*gH;var h=e.get("minAngle")*gH+d,f=0;t.each(i,(function(e){!isNaN(e)&&f++}));var g=t.getSum(i),m=Math.PI/(g||f)*2,v=e.get("clockwise"),y=e.get("roseType"),x=e.get("stillShowZeroSum"),b=t.getDataExtent(i);b[0]=0;var _=v?1:-1,w=[u,p],S=_*d/2;IC(w,!v),u=w[0],p=w[1];var M=Math.abs(p-u),C=M,I=0,T=u;if(t.setLayout({viewRect:o,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:c,r:y?NaN:l});else{(i="area"!==y?0===g&&x?m:e*m:M/f)<h?(i=h,C-=h):I+=e;var o=T+_*i,r=0,u=0;d>i?u=r=T+_*i/2:(r=T+S,u=o-S),t.setItemLayout(n,{angle:i,startAngle:r,endAngle:u,clockwise:v,cx:a,cy:s,r0:c,r:y?oS(e,b,[c,l]):l}),T=o}})),C<fH&&f)if(C<=.001){var A=M/f;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=A;var o=0,r=0;A<d?r=o=u+_*(n+.5)*A:(o=u+_*n*A+S,r=u+_*(n+1)*A-S),i.startAngle=o,i.endAngle=r}}))}else m=C/I,T=u,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),o=i.angle===h?h:e*m,r=0,a=0;o<d?a=r=T+_*o/2:(r=T+S,a=T+_*o-S),i.startAngle=r,i.endAngle=a,T+=_*o}}))}))}function xH(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),o=0;o<n.length;o++)if(!n[o].isSelected(t))return!1;return!0}))}}}}var bH=Math.PI/180;function _H(e,t,n,i,o,r,a,s,l,c){if(!(e.length<2)){for(var u=e.length,p=0;p<u;p++)if("outer"===e[p].position&&"labelLine"===e[p].labelAlignTo){var d=e[p].label.x-c;e[p].linePoints[1][0]+=d,e[p].label.x=c}mj(e,l,l+a)&&function(e){for(var r={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],c=l.label.y>n?a:r,u=Math.abs(l.label.y-n);if(u>=c.maxY){var p=l.label.x-t-l.len2*o,d=i+l.len,f=Math.abs(p)<d?Math.sqrt(u*u/(1-p*p/d/d)):d;c.rB=f,c.maxY=u}c.list.push(l)}h(r),h(a)}(e)}function h(e){for(var r=e.rB,a=r*r,s=0;s<e.list.length;s++){var l=e.list[s],c=Math.abs(l.label.y-n),u=i+l.len,p=u*u,d=Math.sqrt((1-Math.abs(c*c/a))*p),h=t+(d+l.len2)*o,f=h-l.label.x;wH(l,l.targetTextWidth-f*o,!0),l.label.x=h}}}function wH(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,o=i.style,r=e.rect,a=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,c=o.overflow,u=r.width+(a?0:l);if(t<u||n){var p=r.height;if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var h=t-l,f=t<u?h:n?h>e.unconstrainedWidth?null:h:null;i.setStyle("width",f)}var g=i.getBoundingRect();r.width=g.width;var m=(i.style.margin||0)+2.1;r.height=g.height+m,r.y-=(r.height-p)/2}}}function SH(e){return"center"===e.position}function MH(e){var t,n,i=e.getData(),o=[],r=!1,a=(e.get("minShowLabelAngle")||0)*bH,s=i.getLayout("viewRect"),l=i.getLayout("r"),c=s.width,u=s.x,p=s.y,d=s.height;function h(e){e.ignore=!0}i.each((function(e){var s=i.getItemGraphicEl(e),p=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(e),m=g.getModel("label"),v=m.get("position")||g.get(["emphasis","label","position"]),y=m.get("distanceToLabelLine"),x=m.get("alignTo"),b=rS(m.get("edgeDistance"),c),_=m.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=rS(S,c);var M=w.get("length2");if(M=rS(M,c),Math.abs(p.endAngle-p.startAngle)<a)return ty(d.states,h),d.ignore=!0,void(f&&(ty(f.states,h),f.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(d)){var C,I,T,A,D=(p.startAngle+p.endAngle)/2,k=Math.cos(D),E=Math.sin(D);t=p.cx,n=p.cy;var O="inside"===v||"inner"===v;if("center"===v)C=p.cx,I=p.cy,A="center";else{var L=(O?(p.r+p.r0)/2*k:p.r*k)+t,N=(O?(p.r+p.r0)/2*E:p.r*E)+n;if(C=L+3*k,I=N+3*E,!O){var P=L+k*(S+l-p.r),R=N+E*(S+l-p.r),z=P+(k<0?-1:1)*M;C="edge"===x?k<0?u+b:u+c-b:z+(k<0?-y:y),I=R,T=[[L,N],[P,R],[z,R]]}A=O?"center":"edge"===x?k>0?"right":"left":k>0?"left":"right"}var V=Math.PI,B=0,j=m.get("rotate");if(dy(j))B=j*(V/180);else if("center"===v)B=0;else if("radial"===j||!0===j){B=k<0?-D+V:-D}else if("tangential"===j&&"outside"!==v&&"outer"!==v){var F=Math.atan2(k,E);F<0&&(F=2*V+F),E>0&&(F=V+F),B=F-V}if(r=!!B,d.x=C,d.y=I,d.rotation=B,d.setStyle({verticalAlign:"middle"}),O){d.setStyle({align:A});var G=d.states.select;G&&(G.x+=d.x,G.y+=d.y)}else{var H=d.getBoundingRect().clone();H.applyTransform(d.getComputedTransform());var W=(d.style.margin||0)+2.1;H.y-=W/2,H.height+=W,o.push({label:d,labelLine:f,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new zx(k,E),linePoints:T,textAlign:A,labelDistance:y,labelAlignTo:x,edgeDistance:b,bleedMargin:_,rect:H,unconstrainedWidth:H.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:O})}})),!r&&e.get("avoidLabelOverlap")&&function(e,t,n,i,o,r,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,p=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;SH(e[d])||(h.x<t?(u=Math.min(u,h.x),l.push(e[d])):(p=Math.max(p,h.x),c.push(e[d])))}for(d=0;d<e.length;d++)if(!SH(m=e[d])&&m.linePoints){if(null!=m.labelStyleWidth)continue;h=m.label;var f=m.linePoints,g=void 0;g="edge"===m.labelAlignTo?h.x<t?f[2][0]-m.labelDistance-a-m.edgeDistance:a+o-m.edgeDistance-f[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?h.x<t?u-a-m.bleedMargin:a+o-p-m.bleedMargin:h.x<t?h.x-a-m.bleedMargin:a+o-h.x-m.bleedMargin,m.targetTextWidth=g,wH(m,g)}for(_H(c,t,n,i,1,0,r,0,s,p),_H(l,t,n,i,-1,0,r,0,s,u),d=0;d<e.length;d++){var m;if(!SH(m=e[d])&&m.linePoints){h=m.label,f=m.linePoints;var v="edge"===m.labelAlignTo,y=h.style.padding,x=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:x,_=m.rect.width+b,w=f[1][0]-f[2][0];v?h.x<t?f[2][0]=a+m.edgeDistance+_+m.labelDistance:f[2][0]=a+o-m.edgeDistance-_-m.labelDistance:(h.x<t?f[2][0]=h.x+m.labelDistance:f[2][0]=h.x-m.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=h.y}}}(o,t,n,l,c,d,u,p);for(var f=0;f<o.length;f++){var g=o[f],m=g.label,v=g.labelLine,y=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),y&&(ty(m.states,h),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(v){var b=g.linePoints;y||!b?(ty(v.states,h),v.ignore=!0):(lj(b,g.minTurnAngle),cj(b,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new zx(b[0][0],b[0][1])})}}}var CH=function(e){function t(t,n,i){var o=e.call(this)||this;o.z2=2;var r=new II;return o.setTextContent(r),o.updateData(t,n,i,!0),o}return G(t,e),t.prototype.updateData=function(e,t,n,i){var o=this,r=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),c=Zv(XG(a.getModel("itemStyle"),l,!0),l);if(isNaN(c.startAngle))o.setShape(c);else{if(i){o.setShape(c);var u=r.getShallow("animationType");r.ecModel.ssr?(nD(o,{scaleX:0,scaleY:0},r,{dataIndex:t,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===u?(o.shape.r=l.r0,nD(o,{shape:{r:l.r}},r,t)):null!=n?(o.setShape({startAngle:n,endAngle:n}),nD(o,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,t)):(o.shape.endAngle=l.startAngle,tD(o,{shape:{endAngle:l.endAngle}},r,t))}else sD(o),tD(o,{shape:c},r,t);o.useStyle(e.getItemVisual(t,"style")),MT(o,a);var p=(l.startAngle+l.endAngle)/2,d=r.get("selectedOffset"),h=Math.cos(p)*d,f=Math.sin(p)*d,g=a.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(r,e,t),o.ensureState("emphasis").shape=Zv({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},XG(s.getModel("itemStyle"),l)),Zv(o.ensureState("select"),{x:h,y:f,shape:XG(a.getModel(["select","itemStyle"]),l)}),Zv(o.ensureState("blur"),{shape:XG(a.getModel(["blur","itemStyle"]),l)});var m=o.getTextGuideLine(),v=o.getTextContent();m&&Zv(m.ensureState("select"),{x:h,y:f}),Zv(v.ensureState("select"),{x:h,y:f}),bT(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var i=this,o=t.getItemModel(n),r=o.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;VD(i,BD(o),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var u=e.get(["label","position"]);if("outside"!==u&&"outer"!==u)i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new MA,this.setTextGuideLine(p)),dj(this,hj(o),{stroke:s,opacity:wy(r.get(["lineStyle","opacity"]),l,1)})}},t}(mA),IH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return G(t,e),t.prototype.render=function(e,t,n,i){var o,r=e.getData(),a=this._data,s=this.group;if(!a&&r.count()>0){for(var l=r.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<r.count();++c)l=r.getItemLayout(c);l&&(o=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===r.count()&&e.get("showEmptyCircle")){var u=new mA({shape:vH(e,n)});u.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=u,s.add(u)}r.diff(a).add((function(e){var t=new CH(r,e,o);r.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(r,e,o),n.off("click"),s.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){aD(a.getItemGraphicEl(t),e,t)})).execute(),MH(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=r)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,o=e[1]-n.cy,r=Math.sqrt(i*i+o*o);return r<=n.r&&r>=n.r0}},t.type="pie",t}(CN),TH=IH;function AH(e,t,n){t=ly(t)&&{coordDimensions:t}||Zv({encodeDefine:e.getEncode()},t);var i=e.getSource(),o=Zz(i,t).dimensions,r=new $z(o,e);return r.initData(i,n),r}var DH=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),kH=DH,EH=QS(),OH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new kH(ay(this.getData,this),ay(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return AH(this,{coordDimensions:["value"],encodeDefaulter:sy(RE,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=EH(n),o=i.seats;if(!o){var r=[];n.each(n.mapDimension("value"),(function(e){r.push(e)})),o=i.seats=function(e,t){var n=iy(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];for(var i=Math.pow(10,t),o=ny(e,(function(e){return(isNaN(e)?0:e)/n*i*100})),r=100*i,a=ny(o,(function(e){return Math.floor(e)})),s=iy(a,(function(e,t){return e+t}),0),l=ny(o,(function(e,t){return e-a[t]}));s<r;){for(var c=Number.NEGATIVE_INFINITY,u=null,p=0,d=l.length;p<d;++p)l[p]>c&&(c=l[p],u=p);++a[u],l[u]=0,++s}return ny(a,(function(e){return e/i}))}(r,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=o[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){jS(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(hN),LH=OH;var NH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return G(t,e),t.prototype.getInitialData=function(e,t){return oV(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(hN),PH=NH,RH=function(){},zH=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return G(t,e),t.prototype.getDefaultShape=function(){return new RH},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,o=t.size,r=this.symbolProxy,a=r.shape,s=e.getContext?e.getContext():e,l=s&&o[0]<4,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],p=i[n++];isNaN(u)||isNaN(p)||(c&&!c.contain(u,p)||(a.x=u-o[0]/2,a.y=p-o[1]/2,a.width=o[0],a.height=o[1],r.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,o=this._ctx,r=this.softClipShape;if(o){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(r&&!r.contain(a,s)||o.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,o=n.size,r=Math.max(o[0],4),a=Math.max(o[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-r/2,u=i[l+1]-a/2;if(e>=c&&t>=u&&e<=c+r&&t<=u+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return e=n[0],t=n[1],i.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,o=i[0],r=i[1],a=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u<n.length;){var p=n[u++],d=n[u++];a=Math.min(p,a),l=Math.max(p,l),s=Math.min(d,s),c=Math.max(d,c)}e=this._rect=new qx(a-o/2,s-r/2,l-a+o,c-s+r)}return e},t}($C),VH=function(){function e(){this.group=new Zw}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],o=t.getLayout("points"),r=i&&i.shape.points;if(r&&r.length<2e4){var a=r.length,s=new Float32Array(a+o.length);s.set(r),s.set(o,a),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:o}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new zH({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=n.clipShape||null,e.symbolProxy=LP(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var r=e.shape.size[0]<4;e.useStyle(i.getModel("itemStyle").getItemStyle(r?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=TI(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),BH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateSymbolDraw(i,e).incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=zG("").reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new VH:new cG,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(CN),jH=BH,FH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),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}(bE),GH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",iM).models[0]},t.type="cartesian2dAxis",t}(bE);Qv(GH,mB);var HH={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)"]}}},WH=Xv({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},HH),UH=Xv({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}}},HH),YH={category:WH,value:UH,time:Xv({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},UH),log:Kv({logBase:10},UH)},qH={value:1,category:1,time:1,log:1};function XH(e,t,n,i){ty(qH,(function(o,r){var a=Xv(Xv({},YH[r],!0),i,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+r,n}return G(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=fE(this),i=n?mE(e):{};Xv(e,t.getTheme().get(r+"Axis")),Xv(e,this.getDefaultOption()),e.type=$H(e),n&&gE(e,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=lV.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+r,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",$H)}function $H(e){return e.type||(e.data?"category":"value")}var ZH=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return ny(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),oy(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),KH=["x","y"];function JH(e){return"interval"===e.type||"time"===e.type}var QH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=KH,t}return G(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(JH(e)&&JH(t)){var n=e.getExtent(),i=t.getExtent(),o=this.dataToPoint([n[0],i[0]]),r=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(r[0]-o[0])/a,c=(r[1]-o[1])/s,u=o[0]-n[0]*l,p=o[1]-i[0]*c,d=this._transform=[l,0,0,c,u,p];this._invTransform=Rx([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),o=this.getArea(),r=new qx(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(r)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return ex(n,e,this._transform);var r=this.getAxis("x"),a=this.getAxis("y");return n[0]=r.toGlobalCoord(r.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(o,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),t[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return ex(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=o.coordToData(o.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1])-e,o=Math.min(n[0],n[1])-e,r=Math.max(t[0],t[1])-i+e,a=Math.max(n[0],n[1])-o+e;return new qx(i,o,r,a)},t}(ZH),eW=function(e){function t(t,n,i,o,r){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=o||"value",a.position=r||"bottom",a}return G(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(HB),tW=eW;function nW(e,t,n){n=n||{};var i=e.coordinateSystem,o=t.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,c=o.dim,u=i.getRect(),p=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,f="x"===c?[p[2]-h,p[3]+h]:[p[0]-h,p[1]+h];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}r.position=["y"===c?f[d[l]]:p[0],"x"===c?f[d[l]]:p[3]],r.rotation=Math.PI/2*("x"===c?0:1);r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],r.labelOffset=a?f[d[s]]-f[d.onZero]:0,t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),by(n.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var m=t.get(["axisLabel","rotate"]);return r.labelRotate="top"===l?-m:m,r.z2=1,r}function iW(e){return"cartesian2d"===e.get("coordinateSystem")}function oW(e){var t={xAxisModel:null,yAxisModel:null};return ty(t,(function(n,i){var o=i.replace(/Model$/,""),r=e.getReferringComponents(o,iM).models[0];if("production"!==process.env.NODE_ENV&&!r)throw new Error(o+' "'+wy(e.get(o+"Index"),e.get(o+"Id"),0)+'" not found');t[i]=r})),t}var rW=Math.log;function aW(e,t,n){var i=wV.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,s=i.getInterval.call(n),l=sB(e,t),c=l.extent,u=l.fixMin,p=l.fixMax;if("log"===e.type){var d=rW(e.base);c=[rW(c[0])/d,rW(c[1])/d]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:p});var h=i.getExtent.call(e);u&&(c[0]=h[0]),p&&(c[1]=h[1]);var f=i.getInterval.call(e),g=c[0],m=c[1];if(u&&p)f=(m-g)/a;else if(u)for(m=c[0]+f*a;m<c[1]&&isFinite(m)&&isFinite(c[1]);)f=dV(f),m=c[0]+f*a;else if(p)for(g=c[1]-f*a;g>c[0]&&isFinite(g)&&isFinite(c[0]);)f=dV(f),g=c[1]-f*a;else{e.getTicks().length-1>a&&(f=dV(f));var v=f*a;(g=aS((m=Math.ceil(c[1]/f)*f)-v))<0&&c[0]>=0?(g=0,m=aS(v)):m>0&&c[1]<=0&&(m=0,g=-aS(v))}var y=(o[0].value-r[0].value)/s,x=(o[a].value-r[a].value)/s;if(i.setExtent.call(e,g+f*y,m+f*x),i.setInterval.call(e,f),(y||x)&&i.setNiceExtent.call(e,g+f,m-f),"production"!==process.env.NODE_ENV){var b=i.getTicks.call(e);b[1]&&(!function(e){var t=Math.pow(10,vS(Math.abs(e))),n=Math.abs(e/t);return 0===n||1===n||2===n||3===n||5===n}(f)||cS(b[1].value)>cS(f))&&kS("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var sW=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=KH,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=ry(e),i=n.length;if(i){for(var o=[],r=i-1;r>=0;r--){var a=e[+n[r]],s=a.model,l=a.scale;uV(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(lB(l,s),uV(l)&&(t=a))}o.length&&(t||lB((t=o.pop()).scale,t.model),ty(o,(function(e){aW(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var o={};ty(n.x,(function(e){cW(n,"y",e,o)})),ty(n.y,(function(e){cW(n,"x",e,o)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),o=!n&&e.get("containLabel"),r=dE(i,{width:t.getWidth(),height:t.getHeight()});this._rect=r;var a=this._axesList;function s(){ty(a,(function(e){var t=e.isHorizontal(),n=t?[0,r.width]:[0,r.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),function(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}(e,t?r.x:r.y)}))}s(),o&&(ty(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent();o=n instanceof xV?n.count():(i=n.getTicks()).length;var a,s=e.getLabelModel(),l=uB(e),c=1;o>40&&(c=Math.ceil(o/40));for(var u=0;u<o;u+=c){var p=l(i?i[u]:{value:r[0]+u},u),d=dB(s.getTextRect(p),s.get("rotate")||0);a?a.union(d):a=d}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);r[n]-=t[n]+i,"top"===e.position?r.y+=t.height+i:"left"===e.position&&(r.x+=t.width+i)}}})),s()),ty(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}hy(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===e||o[i].getAxis("y").index===t)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,o=e.xAxisModel||i&&i.getReferringComponents("xAxis",iM).models[0],r=e.yAxisModel||i&&i.getReferringComponents("yAxis",iM).models[0],a=e.gridModel,s=this._coordsList;if(i)Jv(s,t=i.coordinateSystem)<0&&(t=null);else if(o&&r)t=this.getCartesian(o.componentIndex,r.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(r)n=this.getAxis("y",r.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,o=this,r={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(lW(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=r.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=r.left?"right":"left"),r[l]=!0;var c=new tW(t,cB(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=o,c.index=i,o._axesList.push(c),a[t][i]=c,s[t]++}}}this._axesMap=a,ty(a.x,(function(t,n){ty(a.y,(function(o,r){var a="x"+n+"y"+r,s=new QH(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(o)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){ty(gB(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}ty(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(iW(e)){var i=oW(e),o=i.xAxisModel,r=i.yAxisModel;if(!lW(o,t)||!lW(r,t))return;var a=this.getCartesian(o.componentIndex,r.componentIndex),s=e.getData(),l=a.getAxis("x"),c=a.getAxis("y");n(s,l),n(s,c)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return ty(this.getCartesians(),(function(i){var o=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),r=i.getOtherAxis(o);Jv(t,o)<0&&t.push(o),Jv(n,r)<0&&n.push(r)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(o,r){var a=new e(o,t,n);a.name="grid_"+r,a.resize(o,n,!0),o.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if(iW(e)){var t=oW(e),n=t.xAxisModel,i=t.yAxisModel,o=n.getCoordSysModel();if("production"!==process.env.NODE_ENV){if(!o)throw new Error('Grid "'+wy(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==i.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var r=o.coordinateSystem;e.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=KH,e}();function lW(e,t){return e.getCoordSysModel()===t}function cW(e,t,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)uW(r[l])&&(o=r[l]);else for(var c in r)if(r.hasOwnProperty(c)&&uW(r[c])&&!i[u(r[c])]){o=r[c];break}o&&(i[u(o)]=!0)}function u(e){return e.dim+"_"+e.index}}function uW(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}(e)}var pW=sW,dW=Math.PI,hW=function(){function e(e,t){this.group=new Zw,this.opt=t,this.axisModel=e,Kv(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Zw({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!fW[e]},e.prototype.add=function(e){fW[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,o,r=hS(t-e);return fS(r)?(o=n>0?"top":"bottom",i="center"):fS(r-dW)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=r>0&&r<dW?n>0?"right":"left":n>0?"left":"right"),{rotation:r,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),fW={axisLine:function(e,t,n,i){var o=t.get(["axisLine","show"]);if("auto"===o&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),o){var r=t.axis.getExtent(),a=i.transform,s=[r[0],0],l=[r[1],0],c=s[0]>l[0];a&&(ex(s,s,a),ex(l,l,a));var u=Zv({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new TA({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});xD(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var d=t.get(["axisLine","symbol"]);if(null!=d){var h=t.get(["axisLine","symbolSize"]);uy(d)&&(d=[d,d]),(uy(h)||dy(h))&&(h=[h,h]);var f=PP(t.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];ty([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,i){if("none"!==d[i]&&null!=d[i]){var o=LP(d[i],-g/2,-m/2,g,m,u.stroke,!0),r=t.r+t.offset,a=c?l:s;o.attr({rotation:t.rotate,x:a[0]+r*Math.cos(e.rotation),y:a[1]-r*Math.sin(e.rotation),silent:!0,z2:11}),n.add(o)}}))}}},axisTickLabel:function(e,t,n,i){var o=function(e,t,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||o.scale.isBlank())return;for(var s=r.getModel("lineStyle"),l=i.tickDirection*r.get("length"),c=yW(o.getTicksCoords(),t.transform,l,Kv(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<c.length;u++)e.add(c[u]);return c}(n,i,t,e),r=function(e,t,n,i){var o=n.axis,r=by(i.axisLabelShow,n.get(["axisLabel","show"]));if(!r||o.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=o.getViewLabels(),c=(by(i.labelRotate,a.get("rotate"))||0)*dW/180,u=hW.innerTextLayout(i.rotation,c,i.labelDirection),p=n.getCategories&&n.getCategories(!0),d=[],h=hW.isLabelSilent(n),f=n.get("triggerEvent");return ty(l,(function(r,c){var g="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(r.tickValue):r.tickValue,m=r.formattedLabel,v=r.rawLabel,y=a;if(p&&p[g]){var x=p[g];hy(x)&&x.textStyle&&(y=new uk(x.textStyle,a,n.ecModel))}var b=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=o.dataToCoord(g),w=y.getShallow("align",!0)||u.textAlign,S=_y(y.getShallow("alignMinLabel",!0),w),M=_y(y.getShallow("alignMaxLabel",!0),w),C=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,I=_y(y.getShallow("verticalAlignMinLabel",!0),C),T=_y(y.getShallow("verticalAlignMaxLabel",!0),C),A=new II({x:_,y:i.labelOffset+i.labelDirection*s,rotation:u.rotation,silent:h,z2:10+(r.level||0),style:jD(y,{text:m,align:0===c?S:c===l.length-1?M:w,verticalAlign:0===c?I:c===l.length-1?T:C,fill:cy(b)?b("category"===o.type?v:"value"===o.type?g+"":g,c):b})});if(A.anid="label_"+g,f){var D=hW.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=v,D.tickIndex=c,"category"===o.type&&(D.dataIndex=g),TI(A).eventData=D}t.add(A),A.updateTransform(),d.push(A),e.add(A),A.decomposeTransform()})),d}(n,i,t,e);(function(e,t,n){if(fB(e.axis))return;var i=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var r=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],p=n[n.length-1],d=n[n.length-2];!1===i?(gW(r),gW(c)):mW(r,a)&&(i?(gW(a),gW(u)):(gW(r),gW(c)));!1===o?(gW(s),gW(p)):mW(l,s)&&(o?(gW(l),gW(d)):(gW(s),gW(p)))}(t,r,o),function(e,t,n,i){var o=n.axis,r=n.getModel("minorTick");if(!r.get("show")||o.scale.isBlank())return;var a=o.getMinorTicksCoords();if(!a.length)return;for(var s=r.getModel("lineStyle"),l=i*r.get("length"),c=Kv(s.getLineStyle(),Kv(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<a.length;u++)for(var p=yW(a[u],t.transform,l,c,"minorticks_"+u),d=0;d<p.length;d++)e.add(p[d])}(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&vj(fj(ny(r,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}}))))},axisName:function(e,t,n,i){var o=by(e.axisName,t.get("name"));if(o){var r,a,s=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,p=t.axis.getExtent(),d=p[0]>p[1]?-1:1,h=["start"===s?p[0]-d*u:"end"===s?p[1]+d*u:(p[0]+p[1])/2,vW(s)?e.labelOffset+l*u:0],f=t.get("nameRotate");null!=f&&(f=f*dW/180),vW(s)?r=hW.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(r=function(e,t,n,i){var o,r,a=hS(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;fS(a-dW/2)?(r=l?"bottom":"top",o="center"):fS(a-1.5*dW)?(r=l?"top":"bottom",o="center"):(r="middle",o=a<1.5*dW&&a>dW/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:o,textVerticalAlign:r}}(e.rotation,s,f||0,p),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(r.rotation)),!isFinite(a)&&(a=null)));var g=c.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,y=by(e.nameTruncateMaxWidth,m.maxWidth,a),x=new II({x:h[0],y:h[1],rotation:r.rotation,silent:hW.isLabelSilent(t),style:jD(c,{text:o,font:g,overflow:"truncate",width:y,ellipsis:v,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||r.textAlign,verticalAlign:c.get("verticalAlign")||r.textVerticalAlign}),z2:1});if(ED({el:x,componentModel:t,itemName:o}),x.__fullText=o,x.anid="name",t.get("triggerEvent")){var b=hW.makeAxisEventDataBase(t);b.targetType="axisName",b.name=o,TI(x).eventData=b}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function gW(e){e&&(e.ignore=!0)}function mW(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var o=kx([]);return Nx(o,o,-e.rotation),n.applyTransform(Ox([],o,e.getLocalTransform())),i.applyTransform(Ox([],o,t.getLocalTransform())),n.intersect(i)}}function vW(e){return"middle"===e||"center"===e}function yW(e,t,n,i,o){for(var r=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,t&&(ex(a,a,t),ex(s,s,t));var u=new TA({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});xD(u.shape,u.style.lineWidth),u.anid=o+"_"+e[l].tickValue,r.push(u)}return r}function xW(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var i=t.getComponent("tooltip"),o=t.getComponent("axisPointer"),r=o.get("link",!0)||[],a=[];ty(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=SW(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var c=n.model.getModel("tooltip",i);if(ty(n.getAxes(),sy(h,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var u="axis"===c.get("trigger"),p="cross"===c.get(["axisPointer","type"]),d=n.getTooltipAxes(c.get(["axisPointer","axis"]));(u||p)&&ty(d.baseAxes,sy(h,!p||"cross",u)),p&&ty(d.otherAxes,sy(h,"cross",!1))}}function h(i,s,u){var p=u.model.getModel("axisPointer",o),d=p.get("show");if(d&&("auto"!==d||i||wW(p))){null==s&&(s=p.get("triggerTooltip")),p=i?function(e,t,n,i,o,r){var a=t.getModel("axisPointer"),s={};ty(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){s[e]=qv(a.get(e))})),s.snap="category"!==e.type&&!!r,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===o){var c=a.get(["label","show"]);if(l.show=null==c||c,!r){var u=s.lineStyle=a.get("crossStyle");u&&Kv(l,u.textStyle)}}return e.model.getModel("axisPointer",new uk(s,n,i))}(u,c,o,t,i,s):p;var h=p.get("snap"),f=p.get("triggerEmphasis"),g=SW(u.model),m=s||h||"category"===u.type,v=e.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:p,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:h,useHandle:wW(p),seriesModels:[],linkGroup:null};l[g]=v,e.seriesInvolved=e.seriesInvolved||m;var y=function(e,t){for(var n=t.model,i=t.dim,o=0;o<e.length;o++){var r=e[o]||{};if(bW(r[i+"AxisId"],n.id)||bW(r[i+"AxisIndex"],n.componentIndex)||bW(r[i+"AxisName"],n.name))return o}}(r,u);if(null!=y){var x=a[y]||(a[y]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=r[y].mapper,v.linkGroup=x}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),o=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==t.get(["axisPointer","show"],!0)&&ty(e.coordSysAxesInfo[SW(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function bW(e,t){return"all"===e||ly(e)&&Jv(e,t)>=0||e===t}function _W(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[SW(e)]}function wW(e){return!!e.get(["handle","show"])}function SW(e){return e.type+"||"+e.id}var MW={},CW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(t,n,i,o){this.axisPointerClass&&function(e){var t=_W(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,o=n.option,r=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=wW(n);null==r&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),o.value=a,s&&(o.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var r=function(e){var t=_W(e);return t&&t.axisPointerModel}(e);r?(this._axisPointer||(this._axisPointer=new o)).render(e,r,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){if("production"!==process.env.NODE_ENV&&MW[e])throw new Error("axisPointer "+e+" exists");MW[e]=t},t.getAxisPointerClass=function(e){return e&&MW[e]},t.type="axis",t}(gN),IW=QS();function TW(e,t,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitArea"),a=r.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),c=o.getTicksCoords({tickModel:r,clamp:!0});if(c.length){var u=s.length,p=IW(e).splitAreaColors,d=Ly(),h=0;if(p)for(var f=0;f<c.length;f++){var g=p.get(c[f].tickValue);if(null!=g){h=(g+(u-1)*f)%u;break}}var m=o.toGlobalCoord(c[0].coord),v=a.getAreaStyle();s=ly(s)?s:[s];for(f=1;f<c.length;f++){var y=o.toGlobalCoord(c[f].coord),x=void 0,b=void 0,_=void 0,w=void 0;o.isHorizontal()?(x=m,b=l.y,_=y-x,w=l.height,m=x+_):(x=l.x,b=m,_=l.width,m=b+(w=y-b));var S=c[f-1].tickValue;null!=S&&d.set(S,h),t.add(new uI({anid:null!=S?"area_"+S:null,shape:{x:x,y:b,width:_,height:w},style:Kv({fill:s[h]},v),autoBatch:!0,silent:!0})),h=(h+1)%u}IW(e).splitAreaColors=d}}}function AW(e){IW(e).splitAreaColors=null}var DW=["axisLine","axisTickLabel","axisName"],kW=["splitArea","splitLine","minorSplitLine"],EW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return G(t,e),t.prototype.render=function(t,n,i,o){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Zw,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=nW(a,t),l=new hW(t,Zv({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(uV(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));ty(DW,l.add,l),this._axisGroup.add(l.getGroup()),ty(kW,(function(e){t.get([e,"show"])&&OW[e](this,this._axisGroup,t,a)}),this),o&&"changeAxisOrder"===o.type&&o.isInitSort||CD(r,this._axisGroup,t),e.prototype.render.call(this,t,n,i,o)}},t.prototype.remove=function(){AW(this)},t.type="cartesianAxis",t}(CW),OW={splitLine:function(e,t,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=ly(s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=o.isHorizontal(),u=0,p=o.getTicksCoords({tickModel:r}),d=[],h=[],f=a.getLineStyle(),g=0;g<p.length;g++){var m=o.toGlobalCoord(p[g].coord);c?(d[0]=m,d[1]=l.y,h[0]=m,h[1]=l.y+l.height):(d[0]=l.x,d[1]=m,h[0]=l.x+l.width,h[1]=m);var v=u++%s.length,y=p[g].tickValue,x=new TA({anid:null!=y?"line_"+p[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:Kv({stroke:s[v]},f),silent:!0});xD(x.shape,f.lineWidth),t.add(x)}}},minorSplitLine:function(e,t,n,i){var o=n.axis,r=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=o.isHorizontal(),l=o.getMinorTicksCoords();if(l.length)for(var c=[],u=[],p=r.getLineStyle(),d=0;d<l.length;d++)for(var h=0;h<l[d].length;h++){var f=o.toGlobalCoord(l[d][h].coord);s?(c[0]=f,c[1]=a.y,u[0]=f,u[1]=a.y+a.height):(c[0]=a.x,c[1]=f,u[0]=a.x+a.width,u[1]=f);var g=new TA({anid:"minor_line_"+l[d][h].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:u[0],y2:u[1]},style:p,silent:!0});xD(g.shape,p.lineWidth),t.add(g)}},splitArea:function(e,t,n,i){TW(e,t,n,i)}},LW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="xAxis",t}(EW),NW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=LW.type,t}return G(t,e),t.type="yAxis",t}(EW),PW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return G(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new uI({shape:e.coordinateSystem.getRect(),style:Kv({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(gN),RW={offset:0};function zW(e){e.registerComponentView(PW),e.registerComponentModel(FH),e.registerCoordinateSystem("cartesian2d",pW),XH(e,"x",GH,RW),XH(e,"y",GH,RW),e.registerComponentView(LW),e.registerComponentView(NW),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function VW(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var o=i.getIndicatorAxes();ty(o,(function(e,r){t.each(t.mapDimension(o[r].dim),(function(e,t){n[t]=n[t]||[];var o=i.dataToPoint(e,r);n[t][r]=BW(o)?o:jW(i)}))})),t.each((function(e){var o=function(e,t,n){if(e&&t)for(var i=0,o=e.length;i<o;i++)if(t.call(n,e[i],i,e))return e[i]}(n[e],(function(e){return BW(e)}))||jW(i);n[e].push(o.slice()),t.setItemLayout(e,n[e])}))}}))}function BW(e){return!isNaN(e[0])&&!isNaN(e[1])}function jW(e){return[e.cx,e.cy]}function FW(e){var t=e.polar;if(t){ly(t)||(t=[t]);var n=[];ty(t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],ly(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}ty(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var GW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,o=this.group,r=e.getData(),a=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=NP(e.getItemVisual(t,"symbolSize")),o=LP(n,-1,-1,2,2),r=e.getItemVisual(t,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:r*Math.PI/180||0}),o}}function l(t,n,i,o,r,a){i.removeAll();for(var l=0;l<n.length-1;l++){var c=s(o,r);c&&(c.__dimIdx=l,t[l]?(c.setPosition(t[l]),ND[a?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},e,r)):c.setPosition(n[l]),i.add(c))}}function c(e){return ny(e,(function(e){return[i.cx,i.cy]}))}r.diff(a).add((function(t){var n=r.getItemLayout(t);if(n){var i=new wA,o=new MA,a={shape:{points:n}};i.shape.points=c(n),o.shape.points=c(n),nD(i,a,e,t),nD(o,a,e,t);var s=new Zw,u=new Zw;s.add(o),s.add(i),s.add(u),l(o.shape.points,n,u,r,t,!0),r.setItemGraphicEl(t,s)}})).update((function(t,n){var i=a.getItemGraphicEl(n),o=i.childAt(0),s=i.childAt(1),c=i.childAt(2),u={shape:{points:r.getItemLayout(t)}};u.shape.points&&(l(o.shape.points,u.shape.points,c,r,t,!1),sD(s),sD(o),tD(o,u,e),tD(s,u,e),r.setItemGraphicEl(t,i))})).remove((function(e){o.remove(a.getItemGraphicEl(e))})).execute(),r.eachItemGraphicEl((function(e,t){var n=r.getItemModel(t),i=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=r.getItemVisual(t,"style"),c=l.fill;o.add(e),i.useStyle(Kv(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),MT(i,n,"lineStyle"),MT(a,n,"areaStyle");var u=n.getModel("areaStyle"),p=u.isEmpty()&&u.parentModel.isEmpty();a.ignore=p,ty(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=i&&p})),a.useStyle(Kv(u.getAreaStyle(),{fill:c,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),h=d.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof nI){var i=e.style;e.useStyle(Zv({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(c),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=qv(h);var o=r.getStore().get(r.getDimensionIndex(e.__dimIdx),t);(null==o||isNaN(o))&&(o=""),VD(e,BD(n),{labelFetcher:r.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:o,inheritColor:c,defaultOpacity:l.opacity})})),bT(e,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(CN),HW=GW,WW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return G(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new kH(ay(this.getData,this),ay(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return AH(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),o=this.coordinateSystem.getIndicatorAxes(),r=this.getData().getName(e),a=""===r?this.name:r,s=JL(this,e);return HL("section",{header:a,sortBlocks:!0,blocks:ny(o,(function(t){var n=i.get(i.mapDimension(t.dim),e);return HL("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(ny(n.dimensions,(function(e){return t.mapDimension(e)})),e),o=0,r=i.length;o<r;o++)if(!isNaN(i[o])){var a=n.getIndicatorAxes();return n.coordToPoint(a[o].dataToCoord(i[o]),o)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(hN),UW=WW,YW=YH.value;function qW(e,t){return Kv({show:t},e)}var XW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),r=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),p=ny(this.get("indicator")||[],(function(p){null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var d=a;null!=p.color&&(d=Kv({color:p.color},a));var h=Xv(qv(p),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:o,axisLabel:r,name:p.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:u},!1);if(uy(l)){var f=h.name;h.name=l.replace("{value}",null!=f?f:"")}else cy(l)&&(h.name=l(h.name,h));var g=new uk(h,null,this.ecModel);return Qv(g,mB.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=p},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:Xv({lineStyle:{color:"#bbb"}},YW.axisLine),axisLabel:qW(YW.axisLabel,!1),axisTick:qW(YW.axisTick,!1),splitLine:qW(YW.splitLine,!0),splitArea:qW(YW.splitArea,!0),indicator:[]},t}(bE),$W=XW,ZW=["axisLine","axisTickLabel","axisName"],KW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem;ty(ny(t.getIndicatorAxes(),(function(e){var n=e.model.get("showName")?e.name:"";return new hW(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(e){ty(ZW,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),o=e.getModel("splitLine"),r=e.getModel("splitArea"),a=o.getModel("lineStyle"),s=r.getModel("areaStyle"),l=o.get("show"),c=r.get("show"),u=a.get("color"),p=s.get("color"),d=ly(u)?u:[u],h=ly(p)?p:[p],f=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,y=t.cy,x=0;x<m.length;x++){if(l)f[T(f,d,x)].push(new KT({shape:{cx:v,cy:y,r:m[x].coord}}));if(c&&x<m.length-1)g[T(g,h,x)].push(new xA({shape:{cx:v,cy:y,r0:m[x].coord,r:m[x+1].coord}}))}else{var b,_=ny(n,(function(e,n){var i=e.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),ny(i,(function(e){return t.coordToPoint(e.coord,n)}))})),w=[];for(x=0;x<=b;x++){for(var S=[],M=0;M<n.length;M++)S.push(_[M][x]);if(S[0]?S.push(S[0].slice()):"production"!==process.env.NODE_ENV&&console.error("Can't draw value axis "+x),l)f[T(f,d,x)].push(new MA({shape:{points:S}}));if(c&&w)g[T(g,h,x-1)].push(new wA({shape:{points:S.concat(w)}}));w=S.slice().reverse()}}var C=a.getLineStyle(),I=s.getAreaStyle();ty(g,(function(e,t){this.group.add(vD(e,{style:Kv({stroke:"none",fill:h[t%h.length]},I),silent:!0}))}),this),ty(f,(function(e,t){this.group.add(vD(e,{style:Kv({fill:"none",stroke:d[t%d.length]},C),silent:!0}))}),this)}function T(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(gN),JW=KW,QW=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.type="value",o.angle=0,o.name="",o}return G(t,e),t}(HB),eU=QW,tU=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=ny(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new eU(n,new wV);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var o,r=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(r-c.angle);u<a&&(o=c,s=l,a=u)}return[s,+(o&&o.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),o=t.getHeight(),r=Math.min(i,o)/2;this.cx=rS(n[0],i),this.cy=rS(n[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(uy(a)||dy(a))&&(a=[0,a]),this.r0=rS(a[0],r),this.r=rS(a[1],r),ty(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;ty(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,o){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var r=t.getData();ty(n,(function(e){e.scale.unionExtentFromData(r,r.mapDimension(e.dim))}))}}),this);var o=i.get("splitNumber"),r=new wV;r.setExtent(0,o),r.setInterval(1),ty(n,(function(e,t){aW(e.scale,e.model,r)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(o){var r=new e(o,t,n);i.push(r),o.coordinateSystem=r})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),nU=tU;function iU(e){e.registerCoordinateSystem("radar",nU),e.registerComponentModel($W),e.registerComponentView(JW),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}var oU="\0_ec_interaction_mutex";function rU(e,t){return!!aU(e)[t]}function aU(e){return e[oU]||(e[oU]={})}hz({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Vy);var sU=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=ay(n._mousedownHandler,n),o=ay(n._mousemoveHandler,n),r=ay(n._mouseupHandler,n),a=ay(n._mousewheelHandler,n),s=ay(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Kv(qv(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",o),t.on("mouseup",r)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",o),t.off("mouseup",r),t.off("mousewheel",a),t.off("pinch",s)},n}return G(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Ix(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&uU("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!rU(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,o=this._y,r=t-i,a=n-o;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&Cx(e.event),cU(this,"pan","moveOnMouseMove",e,{dx:r,dy:a,oldX:i,oldY:o,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Ix(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=uU("zoomOnMouseWheel",e,this._opt),n=uU("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),r=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=o>3?1.4:o>1?1.2:1.1;lU(this,"zoom","zoomOnMouseWheel",e,{scale:i>0?s:1/s,originX:r,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);lU(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:r,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){rU(this._zr,"globalPan")||lU(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(rx);function lU(e,t,n,i,o){e.pointerChecker&&e.pointerChecker(i,o.originX,o.originY)&&(Cx(i.event),cU(e,t,n,i,o))}function cU(e,t,n,i,o){o.isAvailableBehavior=ay(uU,null,n,i),e.trigger(t,o)}function uU(e,t,n){var i=n[e];return!e||i&&(!uy(i)||t.event[i+"Key"])}var pU=sU;function dU(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function hU(e,t,n,i){var o=e.target,r=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/e.zoom;e.zoom=a,o.x-=(n-o.x)*(c-1),o.y-=(i-o.y)*(c-1),o.scaleX*=c,o.scaleY*=c,o.dirty()}var fU,gU={axisPointer:1,tooltip:1,brush:1};function mU(e,t,n){var i=t.getComponentByElement(e.topTarget),o=i&&i.coordinateSystem;return i&&i!==n&&!gU.hasOwnProperty(i.mainType)&&o&&o.model!==n}function vU(e){uy(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var yU={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"},xU=ry(yU),bU={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_U=ry(bU),wU=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=vU(e);if("production"!==process.env.NODE_ENV&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var i=new Zw;this._root=i;var o=[],r=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),AU(n,i,null,!0,!1);for(var l,c,u=n.firstChild;u;)this._parseNode(u,i,o,null,!1,!1),u=u.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],r){var p=OU(r);p.length>=4&&(l={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(l&&null!=a&&null!=s&&(c=zU(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var d=i;(i=new Zw).add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new uI({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:c,named:o}},e.prototype._parseNode=function(e,t,n,i,o,r){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(o=!0),"text"===s&&(r=!0),"defs"===s||"switch"===s)a=t;else{if(!o){var c=fU[s];if(c&&zy(fU,s)){a=c.call(this,e,t);var u=e.getAttribute("name");if(u){var p={name:u,namedFrom:null,svgNodeTagLower:s,el:a};n.push(p),"g"===s&&(l=p)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});t.add(a)}}var d=SU[s];if(d&&zy(SU,s)){var h=d.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=h)}}if(a&&a.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,o,r):3===g.nodeType&&r&&this._parseText(g,a),g=g.nextSibling},e.prototype._parseText=function(e,t){var n=new JC({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});IU(t,n),AU(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,o=i;i&&"auto"!==i?"baseline"===i?o="alphabetic":"before-edge"===i||"text-before-edge"===i?o="top":"after-edge"===i||"text-after-edge"===i?o="bottom":"central"!==i&&"mathematical"!==i||(o="middle"):o="alphabetic",e.style.textBaseline=o}var r=t.__inheritedStyle;if(r){var a=r.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}(n,t);var i=n.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,n.scaleX*=o/9,n.scaleY*=o/9);var r=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=r;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=void(fU={g:function(e,t){var n=new Zw;return IU(t,n),AU(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new uI;return IU(t,n),AU(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new KT;return IU(t,n),AU(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new TA;return IU(t,n),AU(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new eA;return IU(t,n),AU(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=TU(i));var o=new wA({shape:{points:n||[]},silent:!0});return IU(t,o),AU(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=TU(i));var o=new MA({shape:{points:n||[]},silent:!0});return IU(t,o),AU(e,o,this._defsUsePending,!1,!1),o},image:function(e,t){var n=new nI;return IU(t,n),AU(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",r=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r);var a=new Zw;return IU(t,a),AU(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var o=e.getAttribute("dx")||"0",r=e.getAttribute("dy")||"0",a=new Zw;return IU(t,a),AU(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(r),a},path:function(e,t){var n=qT(e.getAttribute("d")||"");return IU(t,n),AU(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),SU={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),o=parseInt(e.getAttribute("y2")||"0",10),r=new jA(t,n,i,o);return MU(e,r),CU(e,r),r},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),o=new GA(t,n,i);return MU(e,o),CU(e,o),o}};function MU(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function CU(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),o=void 0;o=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r={};RU(n,r,r);var a=r.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:o,color:a})}n=n.nextSibling}}function IU(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Kv(t.__inheritedStyle,e.__inheritedStyle))}function TU(e){for(var t=OU(e),n=[],i=0;i<t.length;i+=2){var o=parseFloat(t[i]),r=parseFloat(t[i+1]);n.push([o,r])}return n}function AU(e,t,n,i,o){var r=t,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],o=null;n.replace(LU,(function(e,t,n){return i.push(t,n),""}));for(var r=i.length-1;r>0;r-=2){var a=i[r],s=i[r-1],l=OU(a);switch(o=o||[1,0,0,1,0,0],s){case"translate":Lx(o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Px(o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Nx(o,o,-parseFloat(l[0])*NU,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":Ox(o,[1,0,Math.tan(parseFloat(l[0])*NU),1,0,0],o);break;case"skewY":Ox(o,[1,Math.tan(parseFloat(l[0])*NU),0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5])}}t.setLocalTransform(o)}}(e,t),RU(e,a,s),i||function(e,t,n){for(var i=0;i<xU.length;i++){var o=xU[i];null!=(r=e.getAttribute(o))&&(t[yU[o]]=r)}for(i=0;i<_U.length;i++){var r;o=_U[i];null!=(r=e.getAttribute(o))&&(n[bU[o]]=r)}}(e,a,s)),r.style=r.style||{},null!=a.fill&&(r.style.fill=kU(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=kU(r,"stroke",a.stroke,n)),ty(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(r.style[e]=parseFloat(a[e]))})),ty(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(r.style[e]=a[e])})),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=ny(OU(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0)}var DU=/^url\(\s*#(.*?)\)/;function kU(e,t,n,i){var o=n&&n.match(DU);if(!o)return"none"===n&&(n=null),n;var r=Iy(o[1]);i.push([e,t,r])}var EU=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function OU(e){return e.match(EU)||[]}var LU=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,NU=Math.PI/180;var PU=/([^\s:;]+)\s*:\s*([^:;]+)/g;function RU(e,t,n){var i,o=e.getAttribute("style");if(o)for(PU.lastIndex=0;null!=(i=PU.exec(o));){var r=i[1],a=zy(yU,r)?yU[r]:null;a&&(t[a]=i[2]);var s=zy(bU,r)?bU[r]:null;s&&(n[s]=i[2])}}function zU(e,t){var n=t.width/e.width,i=t.height/e.height,o=Math.min(n,i);return{scale:o,x:-(e.x+e.width/2)*o+(t.x+t.width/2),y:-(e.y+e.height/2)*o+(t.y+t.height/2)}}var VU=Ly(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),BU=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Ly(),this._freedGraphics=[],this._mapName=e,this._parsedXML=vU(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=Ly();return ty(e,(function(e){if(null==e.namedFrom){var i=new TB(e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,i,o;try{Cy(null!=(n=(t=e&&(i=e,o={ignoreViewBox:!0,ignoreRootClip:!0},(new wU).parse(i,o))||{}).root))}catch(e){throw new Error("Invalid svg format\n"+e.message)}var r=new Zw;r.add(n),r.isGeoSVGGraphicRoot=!0;var a=t.width,s=t.height,l=t.viewBoxRect,c=this._boundingRect;if(!c){var u=void 0,p=void 0,d=void 0,h=void 0;if(null!=a?(u=0,d=a):l&&(u=l.x,d=l.width),null!=s?(p=0,h=s):l&&(p=l.y,h=l.height),null==u||null==p){var f=n.getBoundingRect();null==u&&(u=f.x,d=f.width),null==p&&(p=f.y,h=f.height)}c=this._boundingRect=new qx(u,p,d,h)}if(l){var g=zU(l,c);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}r.setClipPath(new uI({shape:c.plain()}));var m=[];return ty(t.named,(function(e){var t;null!=VU.get(e.svgNodeTagLower)&&(m.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:r,boundingRect:c,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();for(var jU=[126,25],FU="南海诸岛",GU=[[[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]]],HU=0;HU<GU.length;HU++)for(var WU=0;WU<GU[HU].length;WU++)GU[HU][WU][0]/=10.5,GU[HU][WU][1]/=-14,GU[HU][WU][0]+=jU[0],GU[HU][WU][1]+=jU[1];var UU={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var YU=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var qU=function(){function e(e,t,n){var i;this.type="geoJSON",this._parsedMap=Ly(),this._mapName=e,this._specialAreas=n,this._geoJSON=uy(i=t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:XU(i)})}var o=Ly(),r=[];return ty(n.regions,(function(t){var n=t.name;e&&zy(e,n)&&(t=t.cloneShallow(n=e[n])),r.push(t),o.set(n,t)})),{regions:r,boundingRect:n.boundingRect||new qx(0,0,0,0),regionsMap:o}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?kB(i,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===FU)return;t.push(new IB(FU,ny(GU,(function(e){return{type:"polygon",exterior:e}})),jU))}}(n,t),ty(t,(function(e){var t=e.name;!function(e,t){if("china"===e){var n=UU[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:YU[0]})}(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function XU(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();(t=t||i.clone()).union(i)}return t}var $U=Ly(),ZU={registerMap:function(e,t,n){if(t.svg){var i=new BU(e,t.svg);$U.set(e,i)}else{var o=t.geoJson||t.geoJSON;o&&!t.features?n=t.specialAreas:o=t;i=new qU(e,o,n);$U.set(e,i)}},getGeoResource:function(e){return $U.get(e)},getMapForUser:function(e){var t=$U.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=$U.get(e);if(i)return i.load(t,n);"production"!==process.env.NODE_ENV&&console.error("Map "+e+" not exists. The GeoJSON of the map must be provided.")}},KU=["rect","circle","line","ellipse","polygon","polyline","path"],JU=Ly(KU),QU=Ly(KU.concat(["g"])),eY=Ly(KU.concat(["g"])),tY=QS();function nY(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function iY(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var oY=function(){function e(e){var t=new Zw;this.uid=dk("ec_map_draw"),this._controller=new pU(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Zw),t.add(this._svgGroup=new Zw)}return e.prototype.draw=function(e,t,n,i,o){var r="geo"===e.mainType,a=e.getData&&e.getData();r&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),p=u.raw,d=u.roam;!l.childAt(0)||o?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):tD(c,d,e);var h=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:h,isGeo:r,transformInfoRaw:p};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Ly(),n=Ly(),i=this._regionsGroup,o=e.transformInfoRaw,r=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*o.scaleX+o.x,e[1]*o.scaleY+o.y]}function u(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var o=c(e[i],n);o&&t.push(o)}return t}function p(e){return{shape:{points:u(e)}}}i.removeAll(),ty(e.geo.regions,(function(o){var u=o.name,d=t.get(u),h=n.get(u)||{},f=h.dataIdx,g=h.regionModel;d||(d=t.set(u,new Zw),i.add(d),f=a?a.indexOfName(u):null,g=e.isGeo?r.getRegionModel(u):a?a.getItemModel(f):null,n.set(u,{dataIdx:f,regionModel:g}));var m=[],v=[];ty(o.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=uY(t,l)),ty(t,(function(e){m.push(new wA(p(e)))}))}else{var n=e.points;l&&(n=uY(n,l,!0)),ty(n,(function(e){v.push(new MA(p(e)))}))}}));var y=c(o.getCenter(),s&&s.project);function x(t,n){if(t.length){var i=new zA({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});d.add(i),rY(e,i,f,g),aY(e,i,u,g,r,f,y),n&&(iY(i),ty(i.states,iY))}}x(m),x(v,!0)})),t.each((function(t,i){var o=n.get(i),a=o.dataIdx,s=o.regionModel;sY(e,t,i,s,r,a),lY(e,t,i,s,r),cY(e,t,i,s,r)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=Ly(),o=!1;ty(this._svgGraphicRecord.named,(function(t){var n=t.name,r=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,c=a?a.indexOfName(n):null,u=r.getRegionModel(n);(null!=JU.get(s)&&l instanceof qM&&rY(e,l,c,u),l instanceof qM&&(l.culling=!0),l.z2EmphasisLift=0,t.namedFrom)||(null!=eY.get(s)&&aY(e,l,n,u,r,c,null),sY(e,l,n,u,r,c),lY(e,l,n,u,r),null!=QU.get(s)&&("self"===cY(e,l,n,u,r)&&(o=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(o,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){iT(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.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(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var o=i.get(e);return o?[o]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=ZU.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=ZU.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,o=this._controller,r=this._controllerHost;r.zoomLimit=e.get("scaleLimit"),r.zoom=i.getZoom(),o.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}o.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,dU(r,e.dx,e.dy),n.dispatchAction(Zv(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),o.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,hU(r,e.scale,e.originX,e.originY),n.dispatchAction(Zv(s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),o.setPointerChecker((function(t,o,r){return i.containPoint([o,r])&&!mU(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=tY(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var o=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){o._mouseDownFlag=!0})),t.on("click",(function(e){o._mouseDownFlag&&(o._mouseDownFlag=!1)})))},e}();function rY(e,t,n,i){var o=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=nY(o),c=nY(r),u=nY(s),p=nY(a),d=e.data;if(d){var h=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),f&&(l.decal=uR(f,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=p,iT(t)}function aY(e,t,n,i,o,r,a){var s=e.data,l=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),r)),u=s&&s.getItemLayout(r);if(l||c||u&&u.showLabel){var p=l?n:r,d=void 0;(!s||r>=0)&&(d=o);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;VD(t,BD(i),{labelFetcher:d,labelDataIndex:p,defaultText:n},h);var f=t.getTextContent();if(f&&(tY(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function sY(e,t,n,i,o,r){e.data?e.data.setItemGraphicEl(r,t):TI(t).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function lY(e,t,n,i,o){e.data||ED({el:t,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function cY(e,t,n,i,o){t.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return bT(t,a,r.get("blurScope"),r.get("disabled")),e.isGeo&&function(e,t,n){var i=TI(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}(t,o,n),a}function uY(e,t,n){var i,o=[];function r(){i=[]}function a(){i.length&&(o.push(i),i=[])}var s=t({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),ty(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),o}var pY=oY,dY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id)(r=this._mapDraw)&&o.add(r.group);else if(e.needsDrawMap){var r=this._mapDraw||new pY(n);o.add(r.group),r.draw(e,t,n,this,i),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},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(e,t,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var r=i.getItemLayout(n);if(r&&r.point){var a=r.point,s=r.offset,l=new KT({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:VI+1)});if(!s){var c=e.mainSeries.getData(),u=i.getName(n),p=c.indexOfName(u),d=i.getItemModel(n),h=d.getModel("label"),f=c.getItemGraphicEl(p);VD(l,BD(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(p,n)}},defaultText:u}),l.disableLabelAnimation=!0,h.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(e){tT(l,e)}}o.add(l)}}}))},t.type="map",t}(CN),hY=dY,fY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return G(t,e),t.prototype.getInitialData=function(e){for(var t=AH(this,{coordDimensions:["value"],encodeDefaulter:sy(RE,this)}),n=Ly(),i=[],o=0,r=t.count();o<r;o++){var a=t.getName(o);n.set(a,!0)}return ty(ZU.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),o=this.getRawValue(e),r=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var c=a[l].originalData.indexOfName(r),u=i.mapDimension("value");isNaN(a[l].originalData.get(u,c))||s.push(a[l].name)}return HL("section",{header:s.join(", "),noHeader:!s.length,blocks:[HL("nameValue",{name:r,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=LP(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},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}(hN),gY=fY;function mY(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),ty(t,(function(e,t){for(var n,i,o,r=(n=ny(e,(function(e){return e.getData()})),i=e[0].get("mapValueCalculation"),o={},ty(n,(function(e){e.each(e.mapDimension("value"),(function(t,n){var i="ec-"+e.getName(n);o[i]=o[i]||[],isNaN(t)||o[i].push(t)}))})),n[0].map(n[0].mapDimension("value"),(function(e,t){for(var r="ec-"+n[0].getName(t),a=0,s=1/0,l=-1/0,c=o[r].length,u=0;u<c;u++)s=Math.min(s,o[r][u]),l=Math.max(l,o[r][u]),a+=o[r][u];return 0===c?NaN:"min"===i?s:"max"===i?l:"average"===i?a/c:a}))),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=0===a&&!e[a].getHostGeoModel(),e[a].setData(r.cloneShallow()),e[a].mainSeries=e[0]}))}function vY(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var o={};ty(n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var r=i.getName(t),a=n.getRegion(r);if(a&&!isNaN(e)){var s=o[r]||0,l=n.dataToPoint(a.getCenter());o[r]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var r=n.getData();r.each((function(e){var t=r.getName(e),n=r.getItemLayout(e)||{};n.showLabel=!o[t],r.setItemLayout(e,n)})),t[i]=!0}}))}var yY=ex,xY=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Tw,n._rawTransformable=new Tw,n.name=t,n}return G(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new qx(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new qx(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var o=this.getBoundingRect(),r=this._rawTransformable;r.transform=o.calculateTransform(new qx(e,t,n,i));var a=r.parent;r.parent=null,r.decomposeTransform(),r.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[rS(e[0],t.getWidth()),rS(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},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 e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=ex([],i,e),n=ex([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Ex(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Rx(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Tw;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?yY(n,e,i):Fy(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?yY([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=bY(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=bY(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Tw);function bY(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var _Y={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},wY=["lng","lat"],SY=function(e){function t(t,n,i){var o=e.call(this,t)||this;o.dimensions=wY,o.type="geo",o._nameCoordMap=Ly(),o.map=n;var r,a=i.projection,s=ZU.load(n,i.nameMap,i.nameProperty),l=ZU.getGeoResource(n),c=o.resourceType=l?l.type:null,u=o.regions=s.regions,p=_Y[l.type];if(o._regionsMap=s.regionsMap,o.regions=s.regions,"production"!==process.env.NODE_ENV&&a&&("geoSVG"===c&&("production"!==process.env.NODE_ENV&&kS("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||("production"!==process.env.NODE_ENV&&kS("project and unproject must be both provided in the projeciton."),a=null)),o.projection=a,a)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(a);(r=r||h.clone()).union(h)}else r=s.boundingRect;return o.setBoundingRect(r.x,r.y,r.width,r.height),o.aspectScale=a?1:_y(i.aspectScale,p.aspectScale),o._invertLongitute=!a&&p.invertLongitute,o}return G(t,e),t.prototype._transformTo=function(e,t,n,i){var o=this.getBoundingRect(),r=this._invertLongitute;o=o.clone(),r&&(o.y=-o.y-o.height);var a=this._rawTransformable;a.transform=o.calculateTransform(new qx(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,r&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(uy(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=MY(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=MY(t);return i===this?i.pointToData(n):null},t}(xY);function MY(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",iM).models[0]||{}).coordinateSystem:null}Qv(SY,xY);var CY=SY;function IY(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],o=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])){var r=this.projection;if(r){var a=i[0],s=i[1],l=o[0],c=o[1];i=[1/0,1/0],o=[-1/0,-1/0];var u=function(e,t,n,a){for(var s=n-e,l=a-t,c=0;c<=100;c++){var u=c/100,p=r.project([e+s*u,t+l*u]);tx(i,i,p),nx(o,o,p)}};u(a,s,l,s),u(l,s,l,c),u(l,c,a,c),u(a,c,l,s)}this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1])}else"production"!==process.env.NODE_ENV&&console.error("Invalid boundingCoords")}var p,d,h,f=this.getBoundingRect(),g=e.get("layoutCenter"),m=e.get("layoutSize"),v=t.getWidth(),y=t.getHeight(),x=f.width/f.height*this.aspectScale,b=!1;if(g&&m&&(p=[rS(g[0],v),rS(g[1],y)],d=rS(m,Math.min(v,y)),isNaN(p[0])||isNaN(p[1])||isNaN(d)?"production"!==process.env.NODE_ENV&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):b=!0),b)h={},x>1?(h.width=d,h.height=d/x):(h.height=d,h.width=d*x),h.y=p[1]-h.height/2,h.x=p[0]-h.width/2;else{var _=e.getBoxLayoutParams();_.aspect=x,h=dE(_,{width:v,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}var TY=function(){function e(){this.dimensions=wY}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,o){var r=e.get("map"),a=new CY(r+o,r,Zv({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=IY,a.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var o={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();o[t]=o[t]||[],o[t].push(e)}})),ty(o,(function(e,o){var r=ny(e,(function(e){return e.get("nameMap")})),a=new CY(o,o,Zv({nameMap:$v(r)},i(e[0])));a.zoomLimit=by.apply(null,ny(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=IY,a.resize(e[0],t),ty(e,(function(e){e.coordinateSystem=a,function(e,t){ty(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var o=(e||[]).slice(),r=Ly(),a=0;a<o.length;a++)r.set(o[a].name,o[a]);return ty(ZU.load(t,n,i).regions,(function(e){var t=e.name;!r.get(t)&&o.push({name:t})})),o},e}(),AY=new TY,DY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(e,t,n){var i=ZU.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),jS(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=AY.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=iy(t.regions||[],(function(t,i){var o=i.name;return o&&(t.set(o,new uk(i,e,e.ecModel)),i.selected&&(n[o]=!0)),t}),Ly()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new uk(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};return cy(i)?(o.status=t,i(o)):uy(i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},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}(bE),kY=DY;function EY(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function OY(e,t,n,i){var o=e.getZoom(),r=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(r):e.dataToPoint(r);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(EY(e,s),i)),null!=a){if(n){var l=n.min||0,c=n.max||1/0;a=Math.max(Math.min(o*a,c),l)/o}e.scaleX*=a,e.scaleY*=a;var u=(t.originX-e.x)*(a-1),p=(t.originY-e.y)*(a-1);e.x-=u,e.y-=p,e.updateTransform(),e.setCenter(EY(e,s),i),e.setZoom(a*o)}return{center:e.getCenter(),zoom:e.getZoom()}}var LY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return G(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new pY(n));var o=this._mapDraw;o.draw(e,t,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;_P(e.target,(function(e){return null!=(t=TI(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=TI(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(gN),NY=LY;function PY(e,t,n){ZU.registerMap(e,t,n)}function RY(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},o=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name),ty(n.coordinateSystem.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var r=[];ty(i,(function(e,t){i[t]&&r.push(t)})),o.push({geoIndex:n.componentIndex,name:r})})),{selected:i,allSelected:o,name:e.name}}))}e.registerCoordinateSystem("geo",AY),e.registerComponentModel(kY),e.registerComponentView(NY),e.registerImpl("registerMap",PY),e.registerImpl("getMap",(function(e){return ZU.getMapForUser(e)})),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(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var o=t.coordinateSystem;if("geo"===o.type){var r=OY(o,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom),"series"===i&&ty(t.seriesGroup,(function(e){e.setCenter(r.center),e.setZoom(r.zoom)}))}}))}))}function zY(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,o=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,i=0,o=0;for(;--n>=0;){var r=t[n];r.hierNode.prelim+=i,r.hierNode.modifier+=i,o+=r.hierNode.change,i+=r.hierNode.shift+o}}(e);var r=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=function(e,t,n,i){if(t){for(var o=e,r=e,a=r.parentNode.children[0],s=t,l=o.hierNode.modifier,c=r.hierNode.modifier,u=a.hierNode.modifier,p=s.hierNode.modifier;s=FY(s),r=GY(r),s&&r;){o=FY(o),a=GY(a),o.hierNode.ancestor=e;var d=s.hierNode.prelim+p-r.hierNode.prelim-c+i(s,r);d>0&&(WY(HY(s,e,n),e,d),c+=d,l+=d),p+=s.hierNode.modifier,c+=r.hierNode.modifier,l+=o.hierNode.modifier,u+=a.hierNode.modifier}s&&!FY(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=p-l),r&&!GY(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=c-u,n=e)}return n}(e,o,e.parentNode.hierNode.defaultAncestor||i[0],t)}function VY(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function BY(e){return arguments.length?e:UY}function jY(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function FY(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function GY(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function HY(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function WY(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function UY(e,t){return e.parentNode===t.parentNode?1:2}var YY=function(){this.parentPoint=[],this.childPoints=[]},qY=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YY},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,o=t.parentPoint,r=n[0],a=n[i-1];if(1===i)return e.moveTo(o[0],o[1]),void e.lineTo(r[0],r[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=rS(t.forkPosition,1),p=[];p[l]=o[l],p[c]=o[c]+(a[c]-o[c])*u,e.moveTo(o[0],o[1]),e.lineTo(p[0],p[1]),e.moveTo(r[0],r[1]),p[l]=r[l],e.lineTo(p[0],p[1]),p[l]=a[l],e.lineTo(p[0],p[1]),e.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var h=n[d];e.moveTo(h[0],h[1]),p[l]=h[l],e.lineTo(p[0],p[1])}},t}($C),XY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Zw,n}return G(t,e),t.prototype.init=function(e,t){this._controller=new pU(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),o=e.layoutInfo,r=this._mainGroup;"radial"===e.get("layout")?(r.x=o.x+o.width/2,r.y=o.y+o.height/2):(r.x=o.x,r.y=o.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var a=this._data;i.diff(a).add((function(t){$Y(i,t)&&ZY(i,t,null,r,e)})).update((function(t,n){var o=a.getItemGraphicEl(n);$Y(i,t)?ZY(i,t,o,r,e):o&&QY(a,n,o,r,e)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&QY(a,t,n,r,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var o=[],r=[];nC(i,o,r);var a=this._min,s=this._max;r[0]-o[0]==0&&(o[0]=a?a[0]:o[0]-1,r[0]=s?s[0]:r[0]+1),r[1]-o[1]==0&&(o[1]=a?a[1]:o[1]-1,r[1]=s?s[1]:r[1]+1);var l=e.coordinateSystem=new xY;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(o[0],o[1],r[0]-o[0],r[1]-o[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=o,this._max=r},t.prototype._updateController=function(e,t,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;o.setPointerChecker((function(t,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!mU(t,n,e)})),o.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(t){dU(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){hU(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1;return((t.getZoom()-1)*n+1)/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(CN);function $Y(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function ZY(e,t,n,i,o){var r=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,c=!1===a.isExpand&&0!==a.children.length?l:"#fff",u=e.tree.root,p=a.parentNode===u?a:a.parentNode||a,d=e.getItemGraphicEl(p.dataIndex),h=p.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,g=a.getLayout();r?((n=new oG(e,t,null,{symbolInnerColor:c,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,tD(n,{x:g.x,y:g.y},o);var m=n.getSymbolPath();if("radial"===o.get("layout")){var v=u.children[0],y=v.getLayout(),x=v.children.length,b=void 0,_=void 0;if(g.x===y.x&&!0===a.isExpand&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(b=Math.atan2(w.y-y.y,w.x-y.x))<0&&(b=2*Math.PI+b),(_=w.x<y.x)&&(b-=Math.PI)}else(b=Math.atan2(g.y-y.y,g.x-y.x))<0&&(b=2*Math.PI+b),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(_=g.x<y.x)&&(b-=Math.PI):(_=g.x>y.x)||(b-=Math.PI);var S=_?"left":"right",M=s.getModel("label"),C=M.get("rotate"),I=C*(Math.PI/180),T=m.getTextContent();T&&(m.setTextConfig({position:M.get("position")||S,rotation:null==C?-b:I,origin:"center"}),T.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="relative"===A?Ny(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;D&&(TI(n).focus=D),function(e,t,n,i,o,r,a,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),p=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new OA({shape:eq(u,p,d,o,o)})),tD(g,{shape:eq(u,p,d,r,a)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],y=0;y<m.length;y++){var x=m[y].getLayout();v.push([x.x,x.y])}g||(g=i.__edge=new qY({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:p,forkPosition:h}})),tD(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}}else if("production"!==process.env.NODE_ENV)throw new Error("The polyline edgeShape can only be used in orthogonal layout");g&&("polyline"!==c||t.isExpand)&&(g.useStyle(Kv({strokeNoScale:!0,fill:null},f)),MT(g,l,"lineStyle"),iT(g),s.add(g))}(o,a,u,n,f,h,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===NI||tT(n.__edge,t)}})}function KY(e,t,n,i,o){var r=JY(t.tree.root,e),a=r.source,s=r.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var c=t.getItemGraphicEl(a.dataIndex).__edge,u=l.__edge||(!1===a.isExpand||1===a.children.length?c:void 0),p=i.get("edgeShape"),d=i.get("layout"),h=i.get("orient"),f=i.get(["lineStyle","curveness"]);u&&("curve"===p?oD(u,{shape:eq(d,h,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(u)},removeOpt:o}):"polyline"===p&&"orthogonal"===i.get("layout")&&oD(u,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(u)},removeOpt:o}))}}function JY(e,t){for(var n,i=t.parentNode===e?t:t.parentNode||t;null==(n=i.getLayout());)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function QY(e,t,n,i,o){var r=e.tree.getNodeByDataIndex(t),a=JY(e.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};oD(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),r.children.forEach((function(t){KY(t,e,i,o,s)})),KY(r,e,i,o,s)}function eq(e,t,n,i,o){var r,a,s,l,c,u,p,d;if("radial"===e){c=i.rawX,p=i.rawY,u=o.rawX,d=o.rawY;var h=jY(c,p),f=jY(c,p+(d-p)*n),g=jY(u,d+(p-d)*n),m=jY(u,d);return{x1:h.x||0,y1:h.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return c=i.x,p=i.y,u=o.x,d=o.y,"LR"!==t&&"RL"!==t||(r=c+(u-c)*n,a=p,s=u+(c-u)*n,l=d),"TB"!==t&&"BT"!==t||(r=c,a=p+(d-p)*n,s=u,l=d+(p-d)*n),{x1:c,y1:p,x2:u,y2:d,cpx1:r,cpy1:a,cpx2:s,cpy2:l}}var tq=XY,nq=QS();function iq(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,cq(t,n,e),ty(n,(function(n){ty(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,sy(oq,e))}))})),t.wrapMethod("cloneShallow",sy(aq,e)),ty(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,sy(rq,e))})),Cy(n[t.dataType]===t)}function oq(e,t){if(function(e){return nq(e).mainData===e}(this)){var n=Zv({},nq(this).datas);n[this.dataType]=t,cq(t,n,e)}else uq(t,this.dataType,nq(this).mainData,e);return t}function rq(e,t){return e.struct&&e.struct.update(),t}function aq(e,t){return ty(nq(t).datas,(function(n,i){n!==t&&uq(n.cloneShallow(),i,t,e)})),t}function sq(e){var t=nq(this).mainData;return null==e||null==t?t:nq(t).datas[e]}function lq(){var e=nq(this).mainData;return null==e?[{data:e}]:ny(ry(nq(e).datas),(function(t){return{type:t,data:nq(e).datas[t]}}))}function cq(e,t,n){nq(e).datas={},ty(t,(function(t,i){uq(t,i,e,n)}))}function uq(e,t,n,i){nq(n).datas[t]=e,nq(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=sq,e.getLinkedDataAll=lq}var pq=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){cy(e)&&(n=t,t=e,e=null),uy(e=e||{})&&(e={order:e});var i,o=e.order||"preorder",r=this[e.attr||"children"];"preorder"===o&&(i=t.call(n,this));for(var a=0;!i&&a<r.length;a++)r[a].eachNode(e,t,n);"postorder"===o&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var o=n[t].getNodeById(e);if(o)return o}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var o=n[t].contains(e);if(o)return o}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},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 e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),dq=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var o=new e(n),r=[],a=1;!function e(t,n){var i=t.value;a=Math.max(a,ly(i)?i.length:1),r.push(t);var s=new pq(qS(t.name,""),o);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(s,n):o.root=s,o._nodes.push(s);var l=t.children;if(l)for(var c=0;c<l.length;c++)e(l[c],s)}(t),o.root.updateDepthAndHeight(0);var s=Zz(r,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new $z(s,n);return l.initData(r),i&&i(l),iq({mainData:l,struct:o,structAttr:"tree"}),o.update(),o},e}();function hq(e,t,n){if(e&&Jv(t,e.type)>=0){var i=n.getData().tree.root,o=e.targetNode;if(uy(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var r=e.targetNodeId;if(null!=r&&(o=i.getNodeById(r)))return{node:o}}}function fq(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function gq(e,t){return Jv(fq(e),t)>=0}function mq(e,t){for(var n=[];e;){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var vq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return G(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new uk(n,this,this.ecModel),o=dq.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}));var r=0;o.eachNode("preorder",(function(e){e.depth>r&&(r=e.depth)}));var a=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:r;return o.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=a})),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(e),a=r.getValue(),s=r.name;r&&r!==o;)s=r.parentNode.name+"."+s,r=r.parentNode;return HL("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=mq(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}(hN),yq=vq;function xq(e,t){for(var n,i=[e];n=i.pop();)if(t(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;r>=0;r--)i.push(o[r])}}function bq(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var n=function(e,t){return dE(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var i=e.get("layout"),o=0,r=0,a=null;"radial"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,a=BY((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(o=n.width,r=n.height,a=BY());var s=e.getData().tree.root,l=s.children[0];if(l){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,o=[t];n=o.pop();)if(i=n.children,n.isExpand&&i.length)for(var r=i.length-1;r>=0;r--){var a=i[r];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},o.push(a)}}(s),function(e,t,n){for(var i,o=[e],r=[];i=o.pop();)if(r.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)o.push(a[s])}for(;i=r.pop();)t(i,n)}(l,zY,a),s.hierNode.modifier=-l.hierNode.prelim,xq(l,VY);var c=l,u=l,p=l;xq(l,(function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>u.getLayout().x&&(u=e),e.depth>p.depth&&(p=e)}));var d=c===u?1:a(c,u)/2,h=d-c.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=o/(u.getLayout().x+d+h),g=r/(p.depth-1||1),xq(l,(function(e){m=(e.getLayout().x+h)*f,v=(e.depth-1)*g;var t=jY(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=r/(u.getLayout().x+d+h),f=o/(p.depth-1||1),xq(l,(function(e){v=(e.getLayout().x+h)*g,m="LR"===y?(e.depth-1)*f:o-(e.depth-1)*f,e.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=o/(u.getLayout().x+d+h),g=r/(p.depth-1||1),xq(l,(function(e){m=(e.getLayout().x+h)*f,v="TB"===y?(e.depth-1)*g:r-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}(e,t)}))}function _q(e){e.eachSeriesByType("tree",(function(e){var t=e.getData();t.tree.eachNode((function(e){var n=e.getModel().getModel("itemStyle").getItemStyle();Zv(t.ensureUniqueItemVisual(e.dataIndex,"style"),n)}))}))}var wq=["treemapZoomToNode","treemapRender","treemapMove"];function Sq(e){var t=e.getData().tree,n={};t.eachNode((function(t){for(var i=t;i&&i.depth>1;)i=i.parentNode;var o=qE(e.ecModel,i.name||i.dataIndex+"",n);t.setVisual("decal",o)}))}var Mq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return G(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Cq(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},r=new uk({itemStyle:o},this,t);i=e.levels=function(e,t){var n,i,o=BS(t.get("color")),r=BS(t.get(["aria","decal","decals"]));if(!o)return;e=e||[],ty(e,(function(e){var t=new uk(e),o=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||o&&"none"!==o)&&(n=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(i=!0)}));var a=e[0]||(e[0]={});n||(a.color=o.slice());!i&&r&&(a.decal=r.slice());return e}(i,t);var a=ny(i||[],(function(e){return new uk(e,r,t)}),this),s=dq.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||r,e}))}));return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),o=this.getRawValue(e);return HL("nameValue",{name:i.getName(e),value:o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=mq(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Zv(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=Ly(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Sq(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:.1024,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}(hN);function Cq(e){var t=0;ty(e.children,(function(e){Cq(e);var n=e.value;ly(n)&&(n=n[0]),t+=n}));var n=e.value;ly(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),ly(e.value)?e.value[0]=n:e.value=n}var Iq=Mq,Tq=function(){function e(e){this.group=new Zw,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var o=e.getModel("breadcrumb"),r=this.group;if(r.removeAll(),o.get("show")&&n){var a=o.getModel("itemStyle"),s=o.getModel("emphasis"),l=a.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,a,s,l,c,i),hE(r,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var o=qS(i.getModel().get("name"),""),r=n.getTextRect(o),a=Math.max(r.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:i,text:o,width:a})}},e.prototype._renderContent=function(e,t,n,i,o,r,a){for(var s=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=function(e,t,n){var i=t.width,o=t.height,r=rS(e.left,i),a=rS(e.top,o),s=rS(e.right,i),l=rS(e.bottom,o);return(isNaN(r)||isNaN(parseFloat(e.left)))&&(r=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=o),n=eE(n||0),{width:Math.max(s-r-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}(t.pos,t.box),p=t.totalWidth,d=t.renderList,h=i.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],m=g.node,v=g.width,y=g.text;p>u.width&&(p-=v-l,v=l,y=null);var x=new wA({shape:{points:Aq(s,0,v,c,f===d.length-1,0===f)},style:Kv(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new II({style:jD(o,{text:y})}),textConfig:{position:"inside"},z2:1e4*VI,onclick:sy(a,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=jD(r,{text:y}),x.ensureState("emphasis").style=h,bT(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),Dq(x,e,m),s+=v+8}},e.prototype.remove=function(){this.group.removeAll()},e}();function Aq(e,t,n,i,o,r){var a=[[o?e:e-5,t],[e+n,t],[e+n,t+i],[o?e:e-5,t+i]];return!r&&a.splice(2,0,[e+n+5,t+i/2]),!o&&a.push([e,t+i/2]),a}function Dq(e,t,n){TI(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&mq(n,t)}}var kq=Tq,Eq=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,o){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:o}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var r=this._storage[i];r.el.animateTo(r.target,{duration:r.duration,delay:r.delay,easing:r.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();var Oq=Zw,Lq=uI,Nq="label",Pq="upperLabel",Rq=10*VI,zq=2*VI,Vq=3*VI,Bq=xM([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),jq=function(e){var t=Bq(e);return t.stroke=t.fill=t.lineWidth=null,t},Fq=QS(),Gq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return G(t,e),t.prototype.render=function(e,t,n,i){if(!(Jv(t.findComponents({mainType:"series",subType:"treemap",query:i}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=hq(i,["treemapZoomToNode","treemapRootToNode"],e),r=i&&i.type,a=e.layoutInfo,s=!this._oldTree,l=this._storage,c="treemapRootToNode"===r&&o&&l?{rootNodeGroup:l.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,u=this._giveContainerGroup(a),p=e.get("animation"),d=this._doRender(u,e,c);!p||s||r&&"treemapZoomToNode"!==r&&"treemapRootToNode"!==r?d.renderFinally():this._doAnimation(u,d,e,c),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new Oq,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,o=this._oldTree,r={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function c(e,i,o,c){return function(e,t,n,i,o,r,a,s,l,c){if(!a)return;var u=a.getLayout(),p=e.getData(),d=a.getModel();if(p.setItemGraphicEl(a.dataIndex,null),!u||!u.isInView)return;var h=u.width,f=u.height,g=u.borderWidth,m=u.invisible,v=a.getRawIndex(),y=s&&s.getRawIndex(),x=a.viewChildren,b=u.upperHeight,_=x&&x.length,w=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),C=d.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,T=j("nodeGroup",Oq);if(!T)return;if(l.add(T),T.x=u.x||0,T.y=u.y||0,T.markRedraw(),Fq(T).nodeWidth=h,Fq(T).nodeHeight=f,u.isAboveViewRoot)return T;var A=j("background",Lq,c,zq);A&&P(T,A,_&&u.upperLabelHeight);var D=d.getModel("emphasis"),k=D.get("focus"),E=D.get("blurScope"),O=D.get("disabled"),L="ancestor"===k?a.getAncestorsIndices():"descendant"===k?a.getDescendantIndices():k;if(_)IT(T)&&CT(T,!1),A&&(CT(A,!O),p.setItemGraphicEl(a.dataIndex,A),_T(A,L,E));else{var N=j("content",Lq,c,Vq);N&&R(T,N),A.disableMorphing=!0,A&&IT(A)&&CT(A,!1),CT(T,!O),p.setItemGraphicEl(a.dataIndex,T),_T(T,L,E)}return T;function P(t,n,i){var o=TI(n);if(o.dataIndex=a.dataIndex,o.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:h,height:f,r:I}),m)z(n);else{n.invisible=!1;var r=a.getVisual("style"),s=r.stroke,l=jq(w);l.fill=s;var c=Bq(S);c.fill=S.get("borderColor");var u=Bq(M);u.fill=M.get("borderColor");var p=Bq(C);if(p.fill=C.get("borderColor"),i){var d=h-2*g;V(n,s,r.opacity,{x:g,y:0,width:d,height:b})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=p,iT(n)}t.add(n)}function R(t,n){var i=TI(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var o=Math.max(h-2*g,0),r=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:o,height:r,r:I}),m)z(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,c=jq(w);c.fill=l,c.decal=s.decal;var u=Bq(S),p=Bq(M),d=Bq(C);V(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=p,n.ensureState("select").style=d,iT(n)}t.add(n)}function z(e){!e.invisible&&r.push(e)}function V(t,n,i,o){var r=d.getModel(o?Pq:Nq),s=qS(d.get("name"),null),l=r.getShallow("show");VD(t,BD(d,o?Pq:Nq),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var c=t.getTextContent();if(c){var p=c.style,h=My(p.padding||0);o&&(t.setTextConfig({layoutRect:o}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((o?o.width:t.shape.width)-h[1]-h[3],0),n=Math.max((o?o.height:t.shape.height)-h[0]-h[2],0);p.width===e&&p.height===n||c.setStyle({width:e,height:n})},p.truncateMinChar=2,p.lineOverflow="truncate",B(p,o,u);var f=c.getState("emphasis");B(f?f.style:null,o,u)}}function B(t,n,i){var o=t?t.text:null;if(!n&&i.isLeafRoot&&null!=o){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+o:o}}function j(e,i,r,a){var s=null!=y&&n[e][y],l=o[e];return s?(n[e][y]=null,F(l,s)):m||((s=new i)instanceof qM&&(s.z2=function(e,t){return e*Rq+t}(r,a)),G(l,s)),t[e][v]=s}function F(e,t){var n=e[v]={};t instanceof Oq?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Zv({},t.shape)}function G(e,t){var n=e[v]={},r=a.parentNode,s=t instanceof Zw;if(r&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=o.background[r.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}(t,a,s,n,r,l,e,i,o,c)}!function e(t,n,i,o,r){o?(n=t,ty(t,(function(e,t){!e.isRemoved()&&s(t,t)}))):new Cz(n,t,a,a).add(s).update(s).remove(sy(s,null)).execute();function a(e){return e.getId()}function s(a,s){var l=null!=a?t[a]:null,u=null!=s?n[s]:null,p=c(l,u,i,r);p&&e(l&&l.viewChildren||[],u&&u.viewChildren||[],p,o,r+1)}}(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var u=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&ty(e,(function(e,n){var i=t[n];ty(e,(function(e){e&&(i.push(e),Fq(e).willDelete=!0)}))})),t}(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:r,willDeleteEls:u,renderFinally:function(){ty(u,(function(e){ty(e,(function(e){e.parent&&e.parent.remove(e)}))})),ty(l,(function(e){e.invisible=!0,e.dirty()}))}}},t.prototype._doAnimation=function(e,t,n,i){var o=n.get("animationDurationUpdate"),r=n.get("animationEasing"),a=(cy(o)?0:o)||0,s=(cy(r)?null:r)||"cubicOut",l=new Eq;ty(t.willDeleteEls,(function(e,t){ty(e,(function(e,n){if(!e.invisible){var o,r=e.parent,c=Fq(r);if(i&&"drillDown"===i.direction)o=r===i.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,p=0;c.willDelete||(u=c.nodeWidth/2,p=c.nodeHeight/2),o="nodeGroup"===t?{x:u,y:p,style:{opacity:0}}:{shape:{x:u,y:p,width:0,height:0},style:{opacity:0}}}o&&l.add(e,o,a,0,s)}}))})),ty(this._storage,(function(e,n){ty(e,(function(e,i){var o=t.lastsForAnimation[n][i],r={};o&&(e instanceof Zw?null!=o.oldX&&(r.x=e.x,r.y=e.y,e.x=o.oldX,e.y=o.oldY):(o.oldShape&&(r.shape=Zv({},e.shape),e.setShape(o.oldShape)),o.fadein?(e.setStyle("opacity",0),r.style={opacity:1}):1!==e.style.opacity&&(r.style={opacity:1})),l.add(e,r,a,0,s))}))}),this),this._state="animating",l.finished(ay((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new pU(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",ay(this._onPan,this)),t.on("zoom",ay(this._onZoom,this)));var n=new qx(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,i){return n.contain(t,i)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var r=new qx(o.x,o.y,o.width,o.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];Lx(s,s,[-(t-=a.x),-(n-=a.y)]),Px(s,s,[e.scale,e.scale]),Lx(s,s,[t,n]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var o=i.node;if(o.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var r=o.hostTree.data.getItemModel(o.dataIndex),a=r.get("link",!0),s=r.get("target",!0)||"blank";a&&aE(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new kq(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(gq(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var o=this._storage.background[i.getRawIndex()];if(o){var r=o.transformCoordToLocal(e,t),a=o.shape;if(!(a.x<=r[0]&&r[0]<=a.x+a.width&&a.y<=r[1]&&r[1]<=a.y+a.height))return!1;n={node:i,offsetX:r[0],offsetY:r[1]}}}),this),n},t.type="treemap",t}(CN);var Hq=Gq,Wq=ty,Uq=hy,Yq=-1,qq=function(){function e(t){var n=t.mappingMethod,i=t.type,o=this.option=qv(t);this.type=i,this.mappingMethod=n,this._normalizeData=iX[n];var r=e.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[n],"piecewise"===n?(Xq(o),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,ty(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(o)):"category"===n?o.categories?function(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(Wq(t,(function(e,t){n[e]=t})),!ly(i)){var o=[];hy(i)?Wq(i,(function(e,t){var i=n[t];o[null!=i?i:Yq]=e})):o[Yq]=i,i=nX(e,o)}for(var r=t.length-1;r>=0;r--)null==i[r]&&(delete n[t[r]],t.pop())}(o):Xq(o,!0):(Cy("linear"!==n||o.dataExtent),Xq(o))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return ay(this._normalizeData,this)},e.listVisualTypes=function(){return ry(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){hy(e)?ty(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var o,r=ly(t)?[]:hy(t)?{}:(o=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);o?r=a:r[t]=a})),r},e.retrieveVisuals=function(t){var n,i={};return t&&Wq(e.visualHandlers,(function(e,o){t.hasOwnProperty(o)&&(i[o]=t[o],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(ly(e))e=e.slice();else{if(!Uq(e))return[];var t=[];Wq(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,o=1/0,r=0,a=t.length;r<a;r++){var s=t[r].value;if(null!=s){if(s===e||uy(s)&&s===e+"")return r;n&&p(s,r)}}for(r=0,a=t.length;r<a;r++){var l=t[r],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(oX(u[1],e,c[1]))return r}else if(c[1]===1/0){if(oX(u[0],c[0],e))return r}else if(oX(u[0],c[0],e)&&oX(u[1],e,c[1]))return r;n&&p(c[0],r),n&&p(c[1],r)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function p(t,n){var r=Math.abs(t-e);r<o&&(o=r,i=n)}},e.visualHandlers={color:{applyVisual:Kq("color"),getColorMapper:function(){var e=this.option;return ay("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Jq.call(this,e)}:function(t,n,i){var o=!!i;return!n&&(t=this._normalizeData(t)),i=d_(t,e.parsedVisual,i),o?i:g_(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return g_(d_(e,this.option.parsedVisual),"rgba")},category:Jq,piecewise:function(e,t){var n=tX.call(this,t);return null==n&&(n=g_(d_(e,this.option.parsedVisual),"rgba")),n},fixed:Qq}},colorHue:$q((function(e,t){return h_(e,t)})),colorSaturation:$q((function(e,t){return h_(e,null,t)})),colorLightness:$q((function(e,t){return h_(e,null,null,t)})),colorAlpha:$q((function(e,t){return f_(e,t)})),decal:{applyVisual:Kq("decal"),_normalizedToVisual:{linear:null,category:Jq,piecewise:null,fixed:null}},opacity:{applyVisual:Kq("opacity"),_normalizedToVisual:eX([0,1])},liftZ:{applyVisual:Kq("liftZ"),_normalizedToVisual:{linear:Qq,category:Qq,piecewise:Qq,fixed:Qq}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:Zq,category:Jq,piecewise:function(e,t){var n=tX.call(this,t);return null==n&&(n=Zq.call(this,e)),n},fixed:Qq}},symbolSize:{applyVisual:Kq("symbolSize"),_normalizedToVisual:eX([0,1])}},e}();function Xq(e,t){var n=e.visual,i=[];hy(n)?Wq(n,(function(e){i.push(e)})):null!=n&&i.push(n);t||1!==i.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(i[1]=i[0]),nX(e,i)}function $q(e){return{applyVisual:function(t,n,i){var o=this.mapValueToVisual(t);i("color",e(n("color"),o))},_normalizedToVisual:eX([0,1])}}function Zq(e){var t=this.option.visual;return t[Math.round(oS(e,[0,1],[0,t.length-1],!0))]||{}}function Kq(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function Jq(e){var t=this.option.visual;return t[this.option.loop&&e!==Yq?e%t.length:e]}function Qq(){return this.option.visual[0]}function eX(e){return{linear:function(t){return oS(t,e,this.option.visual,!0)},category:Jq,piecewise:function(t,n){var i=tX.call(this,n);return null==i&&(i=oS(t,e,this.option.visual,!0)),i},fixed:Qq}}function tX(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=n[qq.findPieceIndex(e,n)];if(i&&i.visual)return i.visual[this.type]}}function nX(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=ny(t,(function(e){var t=c_(e);return t||"production"===process.env.NODE_ENV||kS("'"+e+"' is an illegal color, fallback to '#000000'",!0),t||[0,0,0,1]}))),t}var iX={linear:function(e){return oS(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=qq.findPieceIndex(e,t,!0);if(null!=n)return oS(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Yq:t},fixed:Vy};function oX(e,t,n){return e?t<=n:t<n}var rX=qq,aX=QS(),sX={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||lX(t,{},e.getViewRoot().getAncestors(),e)}};function lX(e,t,n,i){var o=e.getModel(),r=e.getLayout(),a=e.hostTree.data;if(r&&!r.invisible&&r.isInView){var s,l=o.getModel("itemStyle"),c=function(e,t,n){var i=Zv({},t),o=n.designatedVisualItemStyle;return ty(["color","colorAlpha","colorSaturation"],(function(n){o[n]=t[n];var r=e.get(n);o[n]=null,null!=r&&(i[n]=r)})),i}(l,t,i),u=a.ensureUniqueItemVisual(e.dataIndex,"style"),p=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(p=function(e,t){return null!=t?h_(t,null,null,e):null}(d,s=cX(c))),u.stroke=p;var h=e.viewChildren;if(h&&h.length){var f=function(e,t,n,i,o,r){if(!r||!r.length)return;var a=pX(t,"color")||null!=o.color&&"none"!==o.color&&(pX(t,"colorAlpha")||pX(t,"colorSaturation"));if(!a)return;var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),p={type:a.name,dataExtent:c,visual:a.range};"color"!==p.type||"index"!==u&&"id"!==u?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var d=new rX(p);return aX(d).drColorMappingBy=u,d}(0,o,r,0,c,h);ty(h,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var r=function(e,t,n,i,o,r){var a=Zv({},t);if(o){var s=o.type,l="color"===s&&aX(o).drColorMappingBy,c="index"===l?i:"id"===l?r.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=o.mapValueToVisual(c)}return a}(o,c,e,t,f,i);lX(e,r,n,i)}}))}else s=cX(c),u.fill=s}}function cX(e){var t=uX(e,"color");if(t){var n=uX(e,"colorAlpha"),i=uX(e,"colorSaturation");return i&&(t=h_(t,null,null,i)),n&&(t=f_(t,n)),t}}function uX(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function pX(e,t){var n=e.get(t);return ly(n)&&n.length?{name:t,range:n}:null}var dX=Math.max,hX=Math.min,fX=by,gX=ty,mX=["itemStyle","borderWidth"],vX=["itemStyle","gapWidth"],yX=["upperLabel","show"],xX=["upperLabel","height"],bX={seriesType:"treemap",reset:function(e,t,n,i){var o=n.getWidth(),r=n.getHeight(),a=e.option,s=dE(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],c=rS(fX(s.width,l[0]),o),u=rS(fX(s.height,l[1]),r),p=i&&i.type,d=hq(i,["treemapZoomToNode","treemapRootToNode"],e),h="treemapRender"===p||"treemapMove"===p?i.rootRect:null,f=e.getViewRoot(),g=fq(f);if("treemapMove"!==p){var m="treemapZoomToNode"===p?function(e,t,n,i,o){var r,a=(t||{}).node,s=[i,o];if(!a||a===n)return s;var l=i*o,c=l*e.option.zoomToNodeRatio;for(;r=a.parentNode;){for(var u=0,p=r.children,d=0,h=p.length;d<h;d++)u+=p[d].getValue();var f=a.getValue();if(0===f)return s;c*=u/f;var g=r.getModel(),m=g.get(mX);(c+=4*m*m+(3*m+Math.max(m,CX(g)))*Math.pow(c,.5))>dS&&(c=dS),a=r}c<l&&(c=l);var v=Math.pow(c/l,.5);return[i*v,o*v]}(e,d,f,c,u):h?[h.width,h.height]:[c,u],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var y={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};f.setLayout(x),_X(f,y,!1,0),x=f.getLayout(),gX(g,(function(e,t){var n=(g[t+1]||f).getValue();e.setLayout(Zv({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var b=e.getData().tree.root;b.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var o=n.node,r=o.getLayout();if(!r)return i;var a=[r.width/2,r.height/2],s=o;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(s,h,d),!0),e.setLayoutInfo(s),MX(b,new qx(-s.x,-s.y,o,r),g,f,0)}};function _X(e,t,n,i){var o,r;if(!e.isRemoved()){var a=e.getLayout();o=a.width,r=a.height;var s=e.getModel(),l=s.get(mX),c=s.get(vX)/2,u=CX(s),p=Math.max(l,u),d=l-c,h=p-c;e.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:u},!0);var f=(o=dX(o-2*d,0))*(r=dX(r-d-h,0)),g=function(e,t,n,i,o,r){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=r;if(o&&!l)return e.viewChildren=[];a=oy(a,(function(e){return!e.isRemoved()})),function(e,t){t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i}))}(a,s);var c=function(e,t,n){for(var i=0,o=0,r=t.length;o<r;o++)i+=t[o].getValue();var a,s=e.get("visualDimension");t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],gX(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(t,a,s);if(0===c.sum)return e.viewChildren=[];if(c.sum=function(e,t,n,i,o){if(!i)return n;for(var r=e.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var c=o["asc"===i?a-l-1:l].getValue();c/n*t<r&&(s=l,n-=c)}return"asc"===i?o.splice(0,a-s):o.splice(s,a-s),n}(t,n,c.sum,s,a),0===c.sum)return e.viewChildren=[];for(var u=0,p=a.length;u<p;u++){var d=a[u].getValue()/c.sum*n;a[u].setLayout({area:d})}l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0);return e.viewChildren=a,e.setLayout({dataExtent:c.dataExtent},!0),a}(e,s,f,t,n,i);if(g.length){var m={x:d,y:h,width:o,height:r},v=hX(o,r),y=1/0,x=[];x.area=0;for(var b=0,_=g.length;b<_;){var w=g[b];x.push(w),x.area+=w.getLayout().area;var S=wX(x,v,t.squareRatio);S<=y?(b++,y=S):(x.area-=x.pop().getLayout().area,SX(x,v,m,c,!1),v=hX(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&SX(x,v,m,c,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(b=0,_=g.length;b<_;b++)_X(g[b],t,n,i+1)}}}function wX(e,t,n){for(var i=0,o=1/0,r=0,a=void 0,s=e.length;r<s;r++)(a=e[r].getLayout().area)&&(a<o&&(o=a),a>i&&(i=a));var l=e.area*e.area,c=t*t*n;return l?dX(c*i/l,l/(c*o)):1/0}function SX(e,t,n,i,o){var r=t===n.width?0:1,a=1-r,s=["x","y"],l=["width","height"],c=n[s[r]],u=t?e.area/t:0;(o||u>n[l[a]])&&(u=n[l[a]]);for(var p=0,d=e.length;p<d;p++){var h=e[p],f={},g=u?h.getLayout().area/u:0,m=f[l[a]]=dX(u-2*i,0),v=n[s[r]]+n[l[r]]-c,y=p===d-1||v<g?v:g,x=f[l[r]]=dX(y-2*i,0);f[s[a]]=n[s[a]]+hX(i,m/2),f[s[r]]=c+hX(i,x/2),c+=y,h.setLayout(f,!0)}n[s[a]]+=u,n[l[a]]-=u}function MX(e,t,n,i,o){var r=e.getLayout(),a=n[o],s=a&&a===e;if(!(a&&!s||o===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(r),isAboveViewRoot:s},!0);var l=new qx(t.x-r.x,t.y-r.y,t.width,t.height);gX(e.viewChildren||[],(function(e){MX(e,l,n,i,o+1)}))}}function CX(e){return e.get(yX)?e.get(xX):0}function IX(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph().data,o=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e).getShallow("category");if(null!=n){dy(n)&&(n=o[n]);for(var r=0;r<t.length;r++)if(!t[r].isSelected(n))return!1}return!0}))}))}function TX(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),o={};n.each((function(i){var r=n.getName(i);o["ec-"+r]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(r,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=a.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e).getShallow("category");if(null!=t){uy(t)&&(t=o["ec-"+t]);var r=n.getItemVisual(t,"style");Zv(i.ensureUniqueItemVisual(e,"style"),r);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)i.setItemVisual(e,a[s],n.getItemVisual(t,a[s]))}}))}))}function AX(e){return e instanceof Array||(e=[e,e]),e}function DX(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=AX(e.get("edgeSymbol")),o=AX(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),o=t.getEdgeByIndex(e),r=AX(i.getShallow("symbol",!0)),a=AX(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Zv(l,s),l.stroke){case"source":var c=o.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=o.node2.getVisual("style");l.stroke=c&&c.fill}r[0]&&o.setVisual("fromSymbol",r[0]),r[1]&&o.setVisual("toSymbol",r[1]),a[0]&&o.setVisual("fromSymbolSize",a[0]),a[1]&&o.setVisual("toSymbolSize",a[1])}))}))}var kX="--\x3e",EX=function(e){return e.get("autoCurveness")||null},OX=function(e,t){var n=EX(e),i=20,o=[];if(dy(n))i=n;else if(ly(n))return void(e.__curvenessList=n);t>i&&(i=t);var r=i%2?i+2:i+3;o=[];for(var a=0;a<r;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=o},LX=function(e,t,n){var i=[e.id,e.dataIndex].join("."),o=[t.id,t.dataIndex].join(".");return[n.uid,i,o].join(kX)},NX=function(e){var t=e.split(kX);return[t[0],t[2],t[1]].join(kX)},PX=function(e,t){var n=LX(e.node1,e.node2,t);return t.__edgeMap[n]},RX=function(e,t){return zX(LX(e.node1,e.node2,t),t)+zX(LX(e.node2,e.node1,t),t)},zX=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function VX(e,t,n,i){var o=EX(t),r=ly(o);if(!o)return null;var a=PX(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var c=RX(e,t);OX(t,c),e.lineStyle=e.lineStyle||{};var u=LX(e.node1,e.node2,t),p=t.__curvenessList,d=r||c%2?0:1;if(a.isForward)return p[d+s];var h=NX(u),f=zX(h,t),g=p[s+f+d];return i?r?o&&0===o[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:p[s+f+d]}function BX(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),jX(n,e)}}function jX(e,t){e.eachEdge((function(e,n){var i=wy(e.getModel().get(["lineStyle","curveness"]),-VX(e,t,n,!0),0),o=Gy(e.node1.getLayout()),r=Gy(e.node2.getLayout()),a=[o,r];+i&&a.push([(o[0]+r[0])/2-(o[1]-r[1])*i,(o[1]+r[1])/2-(r[0]-o[0])*i]),e.setLayout(a)}))}function FX(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),o=[];ty(n.dimensions,(function(e){o=o.concat(i.mapDimensionsAll(e))}));for(var r=0;r<i.count();r++){for(var a=[],s=!1,l=0;l<o.length;l++){var c=i.get(o[l],r);isNaN(c)||(s=!0),a.push(c)}s?i.setItemLayout(r,n.dataToPoint(a)):i.setItemLayout(r,[NaN,NaN])}jX(i.graph,e)}else t&&"none"!==t||BX(e)}))}function GX(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX;return((t.getZoom()-1)*n+1)/i}function HX(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var WX=Math.PI,UX=[];function YX(e,t,n,i){var o=e.coordinateSystem;if(!o||"view"===o.type){var r=o.getBoundingRect(),a=e.getData(),s=a.graph,l=r.width/2+r.x,c=r.height/2+r.y,u=Math.min(r.width,r.height)/2,p=a.count();if(a.setLayout({cx:l,cy:c}),p){if(n){var d=o.pointToData(i),h=d[0],f=d[1],g=[h-l,f-c];$y(g,g),Xy(g,g,u),n.setLayout([l+g[0],c+g[1]],!0),XX(n,e.get(["circular","rotateLabel"]),l,c)}qX[t](e,s,a,u,l,c,p),s.eachEdge((function(t,n){var i,o=wy(t.getModel().get(["lineStyle","curveness"]),VX(t,e,n),0),r=Gy(t.node1.getLayout()),a=Gy(t.node2.getLayout()),s=(r[0]+a[0])/2,u=(r[1]+a[1])/2;+o&&(i=[l*(o*=3)+s*(1-o),c*o+u*(1-o)]),t.setLayout([r,a,i])}))}}}var qX={value:function(e,t,n,i,o,r,a){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=c*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+r]),s+=n}))},symbolSize:function(e,t,n,i,o,r,a){var s=0;UX.length=a;var l=GX(e);t.eachNode((function(e){var t=HX(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=WX/2),UX[e.dataIndex]=n,s+=2*n}));var c=(2*WX-s)/a/2,u=0;t.eachNode((function(e){var t=c+UX[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([i*Math.cos(u)+o,i*Math.sin(u)+r]),u+=t}))}};function XX(e,t,n,i){var o=e.getGraphicEl();if(o){var r=e.getModel().get(["label","rotate"])||0,a=o.getSymbolPath();if(t){var s=e.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var c=s[0]<n;c&&(l-=Math.PI);var u=c?"left":"right";a.setTextConfig({rotation:-l,position:u,origin:"center"});var p=a.ensureState("emphasis");Zv(p.textConfig||(p.textConfig={}),{position:u})}else a.setTextConfig({rotation:r*=Math.PI/180})}}function $X(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&YX(e,"symbolSize")}))}var ZX=Uy;function KX(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),o=i.data,r=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?o.each((function(e){var t=o.getId(e);o.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&YX(e,"value"):BX(e);var l=o.getDataExtent("value"),c=r.getDataExtent("value"),u=a.get("repulsion"),p=a.get("edgeLength"),d=ly(u)?u:[u,u],h=ly(p)?p:[p,p];h=[h[1],h[0]];var f=o.mapArray("value",(function(e,t){var n=o.getItemLayout(t),i=oS(e,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:o.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=r.mapArray("value",(function(t,n){var o=i.getEdgeByIndex(n),r=oS(t,c,h);isNaN(r)&&(r=(h[0]+h[1])/2);var a=o.getModel(),s=wy(o.getModel().get(["lineStyle","curveness"]),-VX(o,e,n,!0),0);return{n1:f[o.node1.dataIndex],n2:f[o.node2.dataIndex],d:r,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),m=t.getBoundingRect(),v=function(e,t,n){for(var i=e,o=t,r=n.rect,a=r.width,s=r.height,l=[r.x+a/2,r.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var p=i[u];p.p||(p.p=jy(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),p.pp=Gy(p.p),p.edges=null}var d,h,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){h=e},step:function(e){d&&d(i,o);for(var t=[],n=i.length,r=0;r<o.length;r++){var a=o[r];if(!a.ignoreForceLayout){var s=a.n1;Yy(t,(m=a.n2).p,s.p);var u=qy(t)-a.d,p=m.w/(s.w+m.w);isNaN(p)&&(p=0),$y(t,t),!s.fixed&&ZX(s.p,s.p,t,p*u*g),!m.fixed&&ZX(m.p,m.p,t,-(1-p)*u*g)}}for(r=0;r<n;r++)(x=i[r]).fixed||(Yy(t,l,x.p),ZX(x.p,x.p,t,c*g));for(r=0;r<n;r++){s=i[r];for(var f=r+1;f<n;f++){var m;Yy(t,(m=i[f]).p,s.p),0===(u=qy(t))&&(Hy(t,Math.random()-.5,Math.random()-.5),u=1);var v=(s.rep+m.rep)/u/u;!s.fixed&&ZX(s.pp,s.pp,t,v),!m.fixed&&ZX(m.pp,m.pp,t,-v)}}var y=[];for(r=0;r<n;r++){var x;(x=i[r]).fixed||(Yy(y,x.p,x.pp),ZX(x.p,x.p,y,g),Fy(x.pp,x.p))}var b=(g*=.992)<.01;h&&h(i,o,b),e&&e(b)}}}(f,g,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(e,t){for(var n=0,o=e.length;n<o;n++)e[n].fixed&&Fy(e[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,r){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[o.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],c=i.getEdgeByIndex(a),u=l.n1.p,p=l.n2.p,d=c.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],Fy(d[0],u),Fy(d[1],p),+l.curveness&&(d[2]=[(u[0]+p[0])/2-(u[1]-p[1])*l.curveness,(u[1]+p[1])/2-(p[0]-u[0])*l.curveness]),c.setLayout(d)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function JX(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var o=e.getData(),r=[],a=[];nC(o.mapArray((function(e){var t=o.getItemModel(e);return[+t.get("x"),+t.get("y")]})),r,a),a[0]-r[0]==0&&(a[0]+=1,r[0]-=1),a[1]-r[1]==0&&(a[1]+=1,r[1]-=1);var s=(a[0]-r[0])/(a[1]-r[1]),l=function(e,t,n){return dE(Zv(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,s);isNaN(s)&&(r=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var c=a[0]-r[0],u=a[1]-r[1],p=l.width,d=l.height,h=e.coordinateSystem=new xY;h.zoomLimit=e.get("scaleLimit"),h.setBoundingRect(r[0],r[1],c,u),h.setViewRect(l.x,l.y,p,d),h.setCenter(e.get("center"),t),h.setZoom(e.get("zoom")),n.push(h)}})),n}var QX=TA.prototype,e$=OA.prototype,t$=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function n$(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}G(t,e)}(t$);var i$=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return G(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new t$},t.prototype.buildPath=function(e,t){n$(t)?QX.buildPath.call(this,e,t):e$.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return n$(this.shape)?QX.pointAt.call(this,e):e$.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=n$(t)?[t.x2-t.x1,t.y2-t.y1]:e$.tangentAt.call(this,e);return $y(n,n)},t}($C),o$=["fromSymbol","toSymbol"];function r$(e){return"_"+e+"Type"}function a$(e,t,n){var i=t.getItemVisual(n,e);if(!i||"none"===i)return i;var o=t.getItemVisual(n,e+"Size"),r=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=NP(o);return i+l+PP(a||0,l)+(r||"")+(s||"")}function s$(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var o=t.getItemVisual(n,e+"Size"),r=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=NP(o),c=PP(a||0,l),u=LP(i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==r||isNaN(r)?void 0:+r*Math.PI/180||0,u.name=e,u}}function l$(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 n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var c$=function(e){function t(t,n,i){var o=e.call(this)||this;return o._createLine(t,n,i),o}return G(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,o=function(e){var t=new i$({name:"line",subPixelOptimize:!0});return l$(t.shape,e),t}(e.getItemLayout(t));o.shape.percent=0,nD(o,{shape:{percent:1}},i,t),this.add(o),ty(o$,(function(n){var i=s$(n,e,t);this.add(i),this[r$(n)]=a$(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,o=this.childOfName("line"),r=e.getItemLayout(t),a={shape:{}};l$(a.shape,r),tD(o,a,i,t),ty(o$,(function(n){var i=a$(n,e,t),o=r$(n);if(this[o]!==i){this.remove(this.childOfName(n));var r=s$(n,e,t);this.add(r)}this[o]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,o=this.childOfName("line"),r=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,u=n&&n.focus,p=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(t),h=d.getModel("emphasis");r=h.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),c=h.get("disabled"),u=h.get("focus"),p=h.get("blurScope"),l=BD(d)}var f=e.getItemVisual(t,"style"),g=f.stroke;o.useStyle(f),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=r,o.ensureState("blur").style=a,o.ensureState("select").style=s,ty(o$,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=f.opacity;for(var n=0;n<RI.length;n++){var i=RI[n],r=o.getState(i);if(r){var a=r.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var m=i.getRawValue(t);VD(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==m?e.getName(t):isFinite(m)?aS(m):m)+""});var v=this.getTextContent();if(v){var y=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=y.get("position")||"middle";var x=y.get("distance");ly(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),bT(this,u,p,c)},t.prototype.highlight=function(){aT(this)},t.prototype.downplay=function(){sT(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");l$(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){for(var o=1,r=this.parent;r;)r.scaleX&&(o/=r.scaleX),r=r.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),c=a.pointAt(s),u=Yy([],c,l);if($y(u,u),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=o*s,t.markRedraw()),n&&(n.setPosition(c),S(n,1),n.scaleX=n.scaleY=o*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,h=i.__labelDistance,f=h[0]*o,g=h[1]*o,m=s/2,v=a.tangentAt(m),y=[v[1],-v[0]],x=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(v[1],v[0]);c[0]<l[0]&&(_=Math.PI+_),i.rotation=_}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(i.__position){case"end":i.x=u[0]*f+c[0],i.y=u[1]*g+c[1],p=u[0]>.8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*f+l[0],i.y=-u[1]*g+l[1],p=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*b+l[0],i.y=l[1]+w,p=v[0]<0?"right":"left",i.originX=-f*b,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,p="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*b+c[0],i.y=c[1]+w,p=v[0]>=0?"right":"left",i.originX=f*b,i.originY=-w}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Zw),u$=c$,p$=function(){function e(e){this.group=new Zw,this._LineCtor=e||u$}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,o=n._lineData;n._lineData=e,o||i.removeAll();var r=d$(e);e.diff(o).add((function(n){t._doAdd(e,n,r)})).update((function(n,i){t._doUpdate(o,e,i,n,r)})).remove((function(e){i.remove(o.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=d$(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++){if(f$(t.getItemLayout(i))){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){LD(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(f$(e.getItemLayout(t))){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,i,o){var r=e.getItemGraphicEl(n);f$(t.getItemLayout(i))?(r?r.updateData(t,i,o):r=new this._LineCtor(t,i,o),t.setItemGraphicEl(i,r),this.group.add(r)):this.group.remove(r)},e}();function d$(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:BD(t)}}function h$(e){return isNaN(e[0])||isNaN(e[1])}function f$(e){return e&&!h$(e[0])&&!h$(e[1])}var g$=[],m$=[],v$=[],y$=Bb,x$=Jy,b$=Math.abs;function _$(e,t,n){for(var i,o=e[0],r=e[1],a=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){g$[0]=y$(o[0],r[0],a[0],u),g$[1]=y$(o[1],r[1],a[1],u),(h=b$(x$(g$,t)-l))<s&&(s=h,i=u)}for(var p=0;p<32;p++){var d=i+c;m$[0]=y$(o[0],r[0],a[0],i),m$[1]=y$(o[1],r[1],a[1],i),v$[0]=y$(o[0],r[0],a[0],d),v$[1]=y$(o[1],r[1],a[1],d);var h=x$(m$,t)-l;if(b$(h)<.01)break;var f=x$(v$,t)-l;c/=2,h<0?f>=0?i+=c:i-=c:f>=0?i-=c:i+=c}return i}function w$(e,t){var n=[],i=Gb,o=[[],[],[]],r=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Gy(l[0]),Gy(l[1])],l[2]&&l.__original.push(Gy(l[2])));var p=l.__original;if(null!=l[2]){if(Fy(o[0],p[0]),Fy(o[1],p[2]),Fy(o[2],p[1]),c&&"none"!==c){var d=HX(e.node1),h=_$(o,p[0],d*t);i(o[0][0],o[1][0],o[2][0],h,n),o[0][0]=n[3],o[1][0]=n[4],i(o[0][1],o[1][1],o[2][1],h,n),o[0][1]=n[3],o[1][1]=n[4]}if(u&&"none"!==u){d=HX(e.node2),h=_$(o,p[1],d*t);i(o[0][0],o[1][0],o[2][0],h,n),o[1][0]=n[1],o[2][0]=n[2],i(o[0][1],o[1][1],o[2][1],h,n),o[1][1]=n[1],o[2][1]=n[2]}Fy(l[0],o[0]),Fy(l[1],o[2]),Fy(l[2],o[1])}else{if(Fy(r[0],p[0]),Fy(r[1],p[1]),Yy(a,r[1],r[0]),$y(a,a),c&&"none"!==c){d=HX(e.node1);Uy(r[0],r[0],a,d*t)}if(u&&"none"!==u){d=HX(e.node2);Uy(r[1],r[1],a,-d*t)}Fy(l[0],r[0]),Fy(l[1],r[1])}}))}function S$(e){return"view"===e.type}var M$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(e,t){var n=new cG,i=new p$,o=this.group;this._controller=new pU(t.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,o=e.coordinateSystem;this._model=e;var r=this._symbolDraw,a=this._lineDraw,s=this.group;if(S$(o)){var l={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?s.attr(l):tD(s,l,e)}w$(e.getGraph(),GX(e));var c=e.getData();r.updateData(c);var u=e.getEdgeData();a.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var p=e.forceLayout,d=e.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,d);var h=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,o=t.getGraphicEl(),r=t.getModel();if(o){o.off("drag").off("dragend");var a=r.get("draggable");a&&o.on("drag",(function(r){switch(h){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,d),p.setFixed(n),c.setItemLayout(n,[o.x,o.y]);break;case"circular":c.setItemLayout(n,[o.x,o.y]),t.setLayout({fixed:!0},!0),YX(e,"symbolSize",t,[r.offsetX,r.offsetY]),i.updateLayout(e);break;default:c.setItemLayout(n,[o.x,o.y]),jX(e.getGraph(),e),i.updateLayout(e)}})).on("dragend",(function(){p&&p.setUnfixed(n)})),o.setDraggable(a,!!r.get("cursor")),"adjacency"===r.get(["emphasis","focus"])&&(TI(o).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(TI(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode((function(e){XX(e,f,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))}()},t.prototype._updateController=function(e,t,n){var i=this,o=this._controller,r=this._controllerHost,a=this.group;o.setPointerChecker((function(t,i,o){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(i,o)&&!mU(t,n,e)})),S$(e.coordinateSystem)?(o.enable(e.get("roam")),r.zoomLimit=e.get("scaleLimit"),r.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(t){dU(r,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){hU(r,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),w$(e.getGraph(),GX(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):o.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=GX(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){w$(e.getGraph(),GX(e)),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}(CN),C$=M$;function I$(e){return"_EC_"+e}var T$=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[I$(e)]){var i=new A$(e,t);return i.hostGraph=this,this.nodes.push(i),n[I$(e)]=i,i}"production"!==process.env.NODE_ENV&&console.error("Graph nodes have duplicate name or id")},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[I$(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,o=this._edgesMap;if(dy(e)&&(e=this.nodes[e]),dy(t)&&(t=this.nodes[t]),e instanceof A$||(e=i[I$(e)]),t instanceof A$||(t=i[I$(t)]),e&&t){var r=e.id+"-"+t.id,a=new D$(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),o[r]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof A$&&(e=e.id),t instanceof A$&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&e.call(t,n[o],o)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&e.call(t,n[o],o)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof A$||(t=this._nodesMap[I$(t)]),t){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!e.call(i,t,null))for(var a=[t];a.length;){var s=a.shift(),l=s[o];for(r=0;r<l.length;r++){var c=l[r],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(e.call(i,u,s))return;a.push(u),u.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(o=0,r=e.count();o<r;o++)n[e.getRawIndex(o)].dataIndex=o;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(o=0,r=t.count();o<r;o++)i[t.getRawIndex(o)].dataIndex=o},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,o=0;o<n.length;o++)t.addNode(n[o].id,n[o].dataIndex);for(o=0;o<i.length;o++){var r=i[o];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t},e}(),A$=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}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(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=Ly(),t=Ly(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],r=[i.node2],a=0;a<o.length;){var s=o[a];a++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),o.push(s.inEdges[l].node1)}for(a=0;a<r.length;){var c=r[a];a++,t.set(c.dataIndex,!0);for(l=0;l<c.outEdges.length;l++)e.set(c.outEdges[l].dataIndex,!0),r.push(c.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),D$=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=Ly(),t=Ly();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],o=0;o<n.length;){var r=n[o];o++,t.set(r.dataIndex,!0);for(var a=0;a<r.inEdges.length;a++)e.set(r.inEdges[a].dataIndex,!0),n.push(r.inEdges[a].node1)}for(o=0;o<i.length;){var s=i[o];o++,t.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)e.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function k$(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},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)}}}function E$(e,t,n,i,o){for(var r=new T$(i),a=0;a<e.length;a++)r.addNode(by(e[a].id,e[a].name,a),a);var s=[],l=[],c=0;for(a=0;a<t.length;a++){var u=t[a],p=u.source,d=u.target;r.addEdge(p,d,c)&&(l.push(u),s.push(by(qS(u.id,null),p+" > "+d)),c++)}var h,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)h=oV(e,n);else{var g=aO.get(f),m=g&&g.dimensions||[];Jv(m,"value")<0&&m.concat(["value"]);var v=Zz(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(h=new $z(v,n)).initData(e)}var y=new $z(["value"],n);return y.initData(l,s),o&&o(h,y),iq({mainData:h,struct:r,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}Qv(A$,k$("hostGraph","data")),Qv(D$,k$("hostGraph","edgeData"));var O$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return G(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new kH(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),jS(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,i=e.edges||e.links||[],o=e.data||e.nodes||[],r=this;if(o&&i){EX(n=this)&&(n.__curvenessList=[],n.__edgeMap={},OX(n));var a=E$(o,i,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var n=uk.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}));return ty(a.edges,(function(e){!function(e,t,n,i){if(EX(n)){var o=LX(e,t,n),r=n.__edgeMap,a=r[NX(o)];r[o]&&!a?r[o].isForward=!0:a&&r[o]&&(a.isForward=!0,r[o].isForward=!1),r[o]=r[o]||[],r[o].push(i)}}(e.node1,e.node2,this,e.dataIndex)}),this),a.data}},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(e,t,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(e,n),r=i.graph.getEdgeByIndex(e),a=i.getName(r.node1.dataIndex),s=i.getName(r.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),HL("nameValue",{name:l.join(" > "),value:o.value,noValue:null==o.value})}return tN({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=ny(this.option.categories||[],(function(e){return null!=e.value?e:Zv({value:0},e)})),t=new $z(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&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}(hN),L$=O$,N$={type:"graphRoam",event:"graphRoam",update:"none"};var P$=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},R$=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return G(t,e),t.prototype.getDefaultShape=function(){return new P$},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,o=t.r,r=t.width,a=t.angle,s=t.x-n(a)*r*(r>=o/3?1:2),l=t.y-i(a)*r*(r>=o/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*r,t.y+i(a)*r),e.lineTo(t.x+n(t.angle)*o,t.y+i(t.angle)*o),e.lineTo(t.x-n(a)*r,t.y-i(a)*r),e.lineTo(s,l)},t}($C);function z$(e,t){var n=null==e?"":e+"";return t&&(uy(t)?n=t.replace("{value}",n):cy(t)&&(n=t(e))),n}var V$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=function(e,t){var n=e.get("center"),i=t.getWidth(),o=t.getHeight(),r=Math.min(i,o);return{cx:rS(n[0],t.getWidth()),cy:rS(n[1],t.getHeight()),r:rS(e.get("radius"),r/2)}}(e,n);this._renderMain(e,t,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,o){var r=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap")?UG:mA,p=c.get("show"),d=c.getModel("lineStyle"),h=d.get("width"),f=[s,l];IC(f,!a);for(var g=(l=f[1])-(s=f[0]),m=s,v=[],y=0;p&&y<i.length;y++){var x=new u({shape:{startAngle:m,endAngle:l=s+g*Math.min(Math.max(i[y][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-h,r:o.r},silent:!0});x.setStyle({fill:i[y][1]}),x.setStyle(d.getLineStyle(["color","width"])),v.push(x),m=l}v.reverse(),ty(v,(function(e){return r.add(e)}));var b=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,b,o,s,l,a,h),this._renderTitleAndDetail(e,t,n,b,o),this._renderAnchor(e,o),this._renderPointer(e,t,n,b,o,s,l,a,h)},t.prototype._renderTicks=function(e,t,n,i,o,r,a,s,l){for(var c,u,p=this.group,d=o.cx,h=o.cy,f=o.r,g=+e.get("min"),m=+e.get("max"),v=e.getModel("splitLine"),y=e.getModel("axisTick"),x=e.getModel("axisLabel"),b=e.get("splitNumber"),_=y.get("splitNumber"),w=rS(v.get("length"),f),S=rS(y.get("length"),f),M=r,C=(a-r)/b,I=C/_,T=v.getModel("lineStyle").getLineStyle(),A=y.getModel("lineStyle").getLineStyle(),D=v.get("distance"),k=0;k<=b;k++){if(c=Math.cos(M),u=Math.sin(M),v.get("show")){var E=new TA({shape:{x1:c*(f-(O=D?D+l:l))+d,y1:u*(f-O)+h,x2:c*(f-w-O)+d,y2:u*(f-w-O)+h},style:T,silent:!0});"auto"===T.stroke&&E.setStyle({stroke:i(k/b)}),p.add(E)}if(x.get("show")){var O=x.get("distance")+D,L=z$(aS(k/b*(m-g)+g),x.get("formatter")),N=i(k/b),P=c*(f-w-O)+d,R=u*(f-w-O)+h,z=x.get("rotate"),V=0;"radial"===z?(V=-M+2*Math.PI)>Math.PI/2&&(V+=Math.PI):"tangential"===z?V=-M-Math.PI/2:dy(z)&&(V=z*Math.PI/180),0===V?p.add(new II({style:jD(x,{text:L,x:P,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0})):p.add(new II({style:jD(x,{text:L,x:P,y:R,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:P,originY:R,rotation:V}))}if(y.get("show")&&k!==b){O=(O=y.get("distance"))?O+l:l;for(var B=0;B<=_;B++){c=Math.cos(M),u=Math.sin(M);var j=new TA({shape:{x1:c*(f-O)+d,y1:u*(f-O)+h,x2:c*(f-S-O)+d,y2:u*(f-S-O)+h},silent:!0,style:A});"auto"===A.stroke&&j.setStyle({stroke:i((k+B/_)/b)}),p.add(j),M+=I}M-=I}else M+=C}},t.prototype._renderPointer=function(e,t,n,i,o,r,a,s,l){var c=this.group,u=this._data,p=this._progressEls,d=[],h=e.get(["pointer","show"]),f=e.getModel("progress"),g=f.get("show"),m=e.getData(),v=m.mapDimension("value"),y=+e.get("min"),x=+e.get("max"),b=[y,x],_=[r,a];function w(t,n){var i,r=m.getItemModel(t).getModel("pointer"),a=rS(r.get("width"),o.r),s=rS(r.get("length"),o.r),l=e.get(["pointer","icon"]),c=r.get("offsetCenter"),u=rS(c[0],o.r),p=rS(c[1],o.r),d=r.get("keepAspect");return(i=l?LP(l,u-a/2,p-s,a,s,null,d):new R$({shape:{angle:-Math.PI/2,width:a,r:s,x:u,y:p}})).rotation=-(n+Math.PI/2),i.x=o.cx,i.y=o.cy,i}function S(e,t){var n=f.get("roundCap")?UG:mA,i=f.get("overlap"),a=i?f.get("width"):l/m.count(),c=i?o.r-a:o.r-(e+1)*a,u=i?o.r:o.r-e*a,p=new n({shape:{startAngle:r,endAngle:t,cx:o.cx,cy:o.cy,clockwise:s,r0:c,r:u}});return i&&(p.z2=x-m.get(v,e)%x),p}(g||h)&&(m.diff(u).add((function(t){var n=m.get(v,t);if(h){var i=w(t,r);nD(i,{rotation:-((isNaN(+n)?_[0]:oS(n,b,_,!0))+Math.PI/2)},e),c.add(i),m.setItemGraphicEl(t,i)}if(g){var o=S(t,r),a=f.get("clip");nD(o,{shape:{endAngle:oS(n,b,_,a)}},e),c.add(o),AI(e.seriesIndex,m.dataType,t,o),d[t]=o}})).update((function(t,n){var i=m.get(v,t);if(h){var o=u.getItemGraphicEl(n),a=o?o.rotation:r,s=w(t,a);s.rotation=a,tD(s,{rotation:-((isNaN(+i)?_[0]:oS(i,b,_,!0))+Math.PI/2)},e),c.add(s),m.setItemGraphicEl(t,s)}if(g){var l=p[n],y=S(t,l?l.shape.endAngle:r),x=f.get("clip");tD(y,{shape:{endAngle:oS(i,b,_,x)}},e),c.add(y),AI(e.seriesIndex,m.dataType,t,y),d[t]=y}})).execute(),m.each((function(e){var t=m.getItemModel(e),n=t.getModel("emphasis"),o=n.get("focus"),r=n.get("blurScope"),a=n.get("disabled");if(h){var s=m.getItemGraphicEl(e),l=m.getItemVisual(e,"style"),c=l.fill;if(s instanceof nI){var u=s.style;s.useStyle(Zv({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(oS(m.get(v,e),b,[0,1],!0))),s.z2EmphasisLift=0,MT(s,t),bT(s,o,r,a)}if(g){var p=d[e];p.useStyle(m.getItemVisual(e,"style")),p.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),p.z2EmphasisLift=0,MT(p,t),bT(p,o,r,a)}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var i=n.get("size"),o=n.get("icon"),r=n.get("offsetCenter"),a=n.get("keepAspect"),s=LP(o,t.cx-i/2+rS(r[0],t.r),t.cy-i/2+rS(r[1],t.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,o){var r=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new Zw,p=[],d=[],h=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){p[e]=new II({silent:!0}),d[e]=new II({silent:!0})})).update((function(e,t){p[e]=r._titleEls[t],d[e]=r._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),r=a.get(s,t),g=new Zw,m=i(oS(r,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),x=o.cx+rS(y[0],o.r),b=o.cy+rS(y[1],o.r);(A=p[t]).attr({z2:f?0:2,style:jD(v,{x:x,y:b,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(A)}var _=n.getModel("detail");if(_.get("show")){var w=_.get("offsetCenter"),S=o.cx+rS(w[0],o.r),M=o.cy+rS(w[1],o.r),C=rS(_.get("width"),o.r),I=rS(_.get("height"),o.r),T=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:m,A=d[t],D=_.get("formatter");A.attr({z2:f?0:2,style:jD(_,{x:S,y:M,text:z$(r,D),width:isNaN(C)?null:C,height:isNaN(I)?null:I,align:"center",verticalAlign:"middle"},{inheritColor:T})}),XD(A,{normal:_},r,(function(e){return z$(e,D)})),h&&$D(A,t,a,e,{getFormattedLabel:function(e,t,n,i,o,a){return z$(a?a.interpolatedValue:r,D)}}),g.add(A)}u.add(g)})),this.group.add(u),this._titleEls=p,this._detailEls=d},t.type="gauge",t}(CN),B$=V$,j$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return G(t,e),t.prototype.getInitialData=function(e,t){return AH(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}(hN);var F$=["itemStyle","opacity"],G$=function(e){function t(t,n){var i=e.call(this)||this,o=i,r=new MA,a=new II;return o.setTextContent(a),i.setTextGuideLine(r),i.updateData(t,n,!0),i}return G(t,e),t.prototype.updateData=function(e,t,n){var i=this,o=e.hostModel,r=e.getItemModel(t),a=e.getItemLayout(t),s=r.getModel("emphasis"),l=r.get(F$);l=null==l?1:l,n||sD(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,nD(i,{style:{opacity:l}},o,t)):tD(i,{style:{opacity:l},shape:{points:a.points}},o,t),MT(i,r),this._updateLabel(e,t),bT(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),r=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t).label,l=e.getItemVisual(t,"style"),c=l.fill;VD(o,BD(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:l.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:c,outsideFill:c});var u=s.linePoints;i.setShape({points:u}),n.textGuideLineConfig={anchor:u?new zx(u[0][0],u[0][1]):null},tD(o,{style:{x:s.x,y:s.y}},r,t),o.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),dj(n,hj(a),{stroke:c})},t}(wA),H$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return G(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this._data,r=this.group;i.diff(o).add((function(e){var t=new G$(i,e);i.setItemGraphicEl(e,t),r.add(t)})).update((function(e,t){var n=o.getItemGraphicEl(t);n.updateData(i,e),r.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){aD(o.getItemGraphicEl(t),e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(CN),W$=H$,U$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new kH(ay(this.getData,this),ay(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return AH(this,{coordDimensions:["value"],encodeDefaulter:sy(RE,this)})},t.prototype._defaultLabelLine=function(e){jS(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),o=n.mapDimension("value"),r=n.getSum(o);return i.percent=r?+(n.get(o,t)/r*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}(hN),Y$=U$;function q$(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),o=e.get("sort"),r=function(e,t){return dE(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),a=e.get("orient"),s=r.width,l=r.height,c=function(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),o=[],r="ascending"===t,a=0,s=e.count();a<s;a++)o[a]=a;return cy(t)?o.sort(t):"none"!==t&&o.sort((function(e,t){return r?i[e]-i[t]:i[t]-i[e]})),o}(n,o),u=r.x,p=r.y,d="horizontal"===a?[rS(e.get("minSize"),l),rS(e.get("maxSize"),l)]:[rS(e.get("minSize"),s),rS(e.get("maxSize"),s)],h=n.getDataExtent(i),f=e.get("min"),g=e.get("max");null==f&&(f=Math.min(h[0],0)),null==g&&(g=h[1]);var m=e.get("funnelAlign"),v=e.get("gap"),y=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),x=function(e,t){if("horizontal"===a){var o=oS(n.get(i,e)||0,[f,g],d,!0),r=void 0;switch(m){case"top":r=p;break;case"center":r=p+(l-o)/2;break;case"bottom":r=p+(l-o)}return[[t,r],[t,r+o]]}var c,h=oS(n.get(i,e)||0,[f,g],d,!0);switch(m){case"left":c=u;break;case"center":c=u+(s-h)/2;break;case"right":c=u+s-h}return[[c,t],[c+h,t]]};"ascending"===o&&(y=-y,v=-v,"horizontal"===a?u+=s:p+=l,c=c.reverse());for(var b=0;b<c.length;b++){var _=c[b],w=c[b+1],S=n.getItemModel(_);if("horizontal"===a){var M=S.get(["itemStyle","width"]);null==M?M=y:(M=rS(M,s),"ascending"===o&&(M=-M));var C=x(_,u),I=x(w,u+M);u+=M+v,n.setItemLayout(_,{points:C.concat(I.slice().reverse())})}else{var T=S.get(["itemStyle","height"]);null==T?T=y:(T=rS(T,l),"ascending"===o&&(T=-T));C=x(_,p),I=x(w,p+T);p+=T+v,n.setItemLayout(_,{points:C.concat(I.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each((function(n){var i,o,r,a,s=e.getItemModel(n),l=s.getModel("label").get("position"),c=s.getModel("labelLine"),u=e.getItemLayout(n),p=u.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(o=(p[0][0]+p[3][0])/2+5,r=(p[0][1]+p[3][1])/2,i="left"):"insideRight"===l?(o=(p[1][0]+p[2][0])/2-5,r=(p[1][1]+p[2][1])/2,i="right"):(o=(p[0][0]+p[1][0]+p[2][0]+p[3][0])/4,r=(p[0][1]+p[1][1]+p[2][1]+p[3][1])/4,i="center"),a=[[o,r],[o,r]];else{var h=void 0,f=void 0,g=void 0,m=void 0,v=c.get("length");"production"!==process.env.NODE_ENV&&("vertical"===t&&["top","bottom"].indexOf(l)>-1&&(l="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),"horizontal"===t&&["left","right"].indexOf(l)>-1&&(l="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),"left"===l?(h=(p[3][0]+p[0][0])/2,f=(p[3][1]+p[0][1])/2,o=(g=h-v)-5,i="right"):"right"===l?(h=(p[1][0]+p[2][0])/2,f=(p[1][1]+p[2][1])/2,o=(g=h+v)+5,i="left"):"top"===l?(h=(p[3][0]+p[0][0])/2,r=(m=(f=(p[3][1]+p[0][1])/2)-v)-5,i="center"):"bottom"===l?(h=(p[1][0]+p[2][0])/2,r=(m=(f=(p[1][1]+p[2][1])/2)+v)+5,i="center"):"rightTop"===l?(h="horizontal"===t?p[3][0]:p[1][0],f="horizontal"===t?p[3][1]:p[1][1],"horizontal"===t?(r=(m=f-v)-5,i="center"):(o=(g=h+v)+5,i="top")):"rightBottom"===l?(h=p[2][0],f=p[2][1],"horizontal"===t?(r=(m=f+v)+5,i="center"):(o=(g=h+v)+5,i="bottom")):"leftTop"===l?(h=p[0][0],f="horizontal"===t?p[0][1]:p[1][1],"horizontal"===t?(r=(m=f-v)-5,i="center"):(o=(g=h-v)-5,i="right")):"leftBottom"===l?(h="horizontal"===t?p[1][0]:p[3][0],f="horizontal"===t?p[1][1]:p[2][1],"horizontal"===t?(r=(m=f+v)+5,i="center"):(o=(g=h-v)-5,i="right")):(h=(p[1][0]+p[2][0])/2,f=(p[1][1]+p[2][1])/2,"horizontal"===t?(r=(m=f+v)+5,i="center"):(o=(g=h+v)+5,i="left")),"horizontal"===t?o=g=h:r=m=f,a=[[h,f],[g,m]]}u.label={linePoints:a,x:o,y:r,verticalAlign:"middle",textAlign:i,inside:d}}))}(n)}))}var X$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Zw,n._initialized=!1,n}return G(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var o=this._dataGroup,r=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,c=K$(e);if(r.diff(a).add((function(e){var t=Z$(r,o,e,l,s);J$(t,r,e,c)})).update((function(t,n){var i=a.getItemGraphicEl(n),o=$$(r,t,l,s);r.setItemGraphicEl(t,i),tD(i,{shape:{points:o}},e,t),sD(i),J$(i,r,t,c)})).remove((function(e){var t=a.getItemGraphicEl(e);o.remove(t)})).execute(),!this._initialized){this._initialized=!0;var u=function(e,t,n){var i=e.model,o=e.getRect(),r=new uI({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a="horizontal"===i.get("layout")?"width":"height";return r.setShape(a,0),nD(r,{shape:{width:o.width,height:o.height}},t,n),r}(s,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(u)}this._data=r},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),o=t.coordinateSystem,r=o.dimensions,a=K$(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var c=Z$(i,this._dataGroup,l,r,o);c.incremental=!0,J$(c,i,l,a),s.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(CN);function $$(e,t,n,i){for(var o,r=[],a=0;a<n.length;a++){var s=n[a],l=e.get(e.mapDimension(s),t);o=l,("category"===i.getAxis(s).type?null==o:null==o||isNaN(o))||r.push(i.dataToPoint(l,s))}return r}function Z$(e,t,n,i,o){var r=$$(e,n,i,o),a=new MA({shape:{points:r},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function K$(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),xy(t=_S(t))&&(t=0),{smooth:t}}function J$(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var o=t.getItemModel(n),r=o.getModel("emphasis");MT(e,o,"lineStyle"),bT(e,r.get("focus"),r.get("blurScope"),r.get("disabled"))}var Q$=X$,eZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return G(t,e),t.prototype.getInitialData=function(e,t){return oV(null,this,{useEncodeDefaulter:ay(tZ,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,o){e===t&&i.push(n.getRawIndex(o))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(hN);function tZ(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return ty(t.dimensions,(function(e){var t=+e.replace("dim","");n[e]=t})),n}}var nZ=eZ,iZ=["lineStyle","opacity"],oZ={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var o=i[e];if("normal"===e&&t.hasItemOption){var r=t.getItemModel(n).get(iZ,!0);null!=r&&(o=r)}t.ensureUniqueItemVisual(n,"style").opacity=o}),e.start,e.end)}}}},rZ=oZ;function aZ(e){!function(e){if(e.parallel)return;var t=!1;ty(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}(e),function(e){var t=BS(e.parallelAxis);ty(t,(function(t){if(hy(t)){var n=t.parallelIndex||0,i=BS(e.parallel)[n];i&&i.parallelAxisDefault&&Xv(t,i.parallelAxisDefault,!1)}}))}(e)}var sZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},ty(lZ,(function(e,t){n.getZr().on(t,this._handlers[t]=ay(e,this))}),this)),kN(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){EN(this,"_throttledDispatchExpand"),ty(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Zv({type:"parallelAxisExpand"},e))},t.type="parallel",t}(gN),lZ={mousedown:function(e){cZ(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(cZ(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&cZ(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function cZ(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var uZ=sZ,pZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&Xv(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){ty(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];ty(oy(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){e.push("dim"+n.get("dim")),t.push(n.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}(bE),dZ=function(e){function t(t,n,i,o,r){var a=e.call(this,t,n,i)||this;return a.type=o||"value",a.axisIndex=r,a}return G(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(HB),hZ=dZ;function fZ(e,t,n,i,o,r){e=e||0;var a=n[1]-n[0];if(null!=o&&(o=mZ(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=mZ(s,[0,a]),o=r=mZ(s,[o,r]),i=0}t[0]=mZ(t[0],n),t[1]=mZ(t[1],n);var l=gZ(t,i);t[i]+=e;var c,u=o||0,p=n.slice();return l.sign<0?p[0]+=u:p[1]-=u,t[i]=mZ(t[i],p),c=gZ(t,i),null!=o&&(c.sign!==l.sign||c.span<o)&&(t[1-i]=t[i]+l.sign*o),c=gZ(t,i),null!=r&&c.span>r&&(t[1-i]=t[i]+c.sign*r),t}function gZ(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function mZ(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var vZ=ty,yZ=Math.min,xZ=Math.max,bZ=Math.floor,_Z=Math.ceil,wZ=aS,SZ=Math.PI,MZ=function(){function e(e,t,n){this.type="parallel",this._axesMap=Ly(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,o=e.parallelAxisIndex;vZ(i,(function(e,n){var i=o[n],r=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new hZ(e,cB(r),[0,0],r.get("type"),i)),s="category"===a.type;a.onBand=s&&r.get("boundaryGap"),a.inverse=r.get("inverse"),r.axis=a,a.model=r,a.coordinateSystem=r.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,o=t.pixelDimIndex,r=e[1-o],a=e[o];return r>=n&&r<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();vZ(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),lB(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=dE(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],o=["width","height"],r=t.get("layout"),a="horizontal"===r?0:1,s=n[o[a]],l=[0,s],c=this.dimensions.length,u=CZ(t.get("axisExpandWidth"),l),p=CZ(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>p&&p>1&&u>0&&s>0,h=t.get("axisExpandWindow");h?(e=CZ(h[1]-h[0],l),h[1]=h[0]+e):(e=CZ(u*(p-1),l),(h=[u*(t.get("axisExpandCenter")||bZ(c/2))-e/2])[1]=h[0]+e);var f=(s-e)/(c-p);f<3&&(f=0);var g=[bZ(wZ(h[0]/u,1))+1,_Z(wZ(h[1]/u,1))-1],m=f/u*h[0];return{layout:r,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[o[1-a]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:h,axisCount:c,winInnerIndices:g,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),vZ(n,(function(t,n){var r=(i.axisExpandable?TZ:IZ)(n,i),a={horizontal:{x:r.position,y:i.axisLength},vertical:{x:0,y:r.position}},s={horizontal:SZ/2,vertical:0},l=[a[o].x+e.x,a[o].y+e.y],c=s[o],u=[1,0,0,1,0,0];Nx(u,u,c),Lx(u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:r.axisNameAvailableWidth,axisLabelShow:r.axisLabelShow,nameTruncateMaxWidth:r.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,r=this.dimensions,a=[],s=[];ty(r,(function(t){a.push(e.mapDimension(t)),s.push(o.get(t).model)}));for(var l=this.hasAxisBrushed(),c=n;c<i;c++){var u=void 0;if(l){u="active";for(var p=e.getValues(a,c),d=0,h=r.length;d<h;d++){if("inactive"===s[d].getActiveState(p[d])){u="inactive";break}}}else u="normal";t(u,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,o=e.length;i<o;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return wD([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return qv(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),o=i[1]-i[0],r=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),p=null!=u[0];if(c)p&&c&&s<o*u[0]?(l="jump",a=s-o*u[2]):p&&c&&s>o*(1-u[0])?(l="jump",a=s-o*(1-u[2])):(a=s-o*u[1])>=0&&(a=s-o*(1-u[1]))<=0&&(a=0),(a*=t.axisExpandWidth/c)?fZ(a,i,r,"all"):l="none";else{var d=i[1]-i[0];(i=[xZ(0,r[1]*s/d-d/2)])[1]=yZ(r[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function CZ(e,t){return yZ(xZ(e,t[0]),t[1])}function IZ(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function TZ(e,t){var n,i,o=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,u=!0):(n=o-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}var AZ={create:function(e,t){var n=[];return e.eachComponent("parallel",(function(i,o){var r=new MZ(i,e,t);r.name="parallel_"+o,r.resize(i,t),i.coordinateSystem=r,r.model=i,n.push(r)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",iM).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},DZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return G(t,e),t.prototype.getAreaSelectStyle=function(){return xM([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=qv(e);if(t)for(var n=t.length-1;n>=0;n--)sS(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=t.length;i<o;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(bE);Qv(DZ,mB);var kZ=DZ,EZ=!0,OZ=Math.min,LZ=Math.max,NZ=Math.pow,PZ=1e4,RZ=6,zZ=6,VZ="globalPan",BZ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},jZ={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},FZ={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},GZ=0,HZ=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},"production"!==process.env.NODE_ENV&&Cy(t),n._zr=t,n.group=new Zw,n._uid="brushController_"+GZ++,ty(mK,(function(e,t){this._handlers[t]=ay(e,this)}),n),n}return G(t,e),t.prototype.enableBrush=function(e){return"production"!==process.env.NODE_ENV&&Cy(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){aU(e)[t]=n}(t,VZ,this._uid),ty(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Xv(qv(FZ),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var i=aU(e);i[t]===n&&(i[t]=null)}(e,VZ,this._uid),ty(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};ty(e,(function(e){t[e.panelId]=qv(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},"production"!==process.env.NODE_ENV&&(this._mounted=!0),this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){"production"!==process.env.NODE_ENV&&Cy(this._mounted),e=ny(e,(function(e){return Xv(qv(FZ),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,r=this._creatingCover;return new Cz(n,e,(function(e,t){return a(e.__brushOption,t)}),a).add(s).update(s).remove((function(e){n[e]!==r&&o.group.remove(n[e])})).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(t,a){var s=e[t];if(null!=a&&n[a]===r)i[t]=n[a];else{var l=i[t]=null!=a?(n[a].__brushOption=s,n[a]):UZ(o,WZ(o,s));XZ(o,l)}}},t.prototype.unmount=function(){if("production"===process.env.NODE_ENV||this._mounted)return this.enableBrush(!1),JZ(this),this._zr.remove(this.group),"production"!==process.env.NODE_ENV&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(rx);function WZ(e,t){var n=yK[t.brushType].createCover(e,t);return n.__brushOption=t,qZ(n,t),e.group.add(n),n}function UZ(e,t){var n=$Z(t);return n.endCreating&&(n.endCreating(e,t),qZ(t,t.__brushOption)),t}function YZ(e,t){var n=t.__brushOption;$Z(t).updateCoverShape(e,t,n.range,n)}function qZ(e,t){var n=t.z;null==n&&(n=PZ),e.traverse((function(e){e.z=n,e.z2=n}))}function XZ(e,t){$Z(t).updateCommon(e,t),YZ(e,t)}function $Z(e){return yK[e.__brushOption.brushType]}function ZZ(e,t,n){var i,o=e._panels;if(!o)return EZ;var r=e._transform;return ty(o,(function(e){e.isTargetByCursor(t,n,r)&&(i=e)})),i}function KZ(e,t){var n=e._panels;if(!n)return EZ;var i=t.__brushOption.panelId;return null!=i?n[i]:EZ}function JZ(e){var t=e._covers,n=t.length;return ty(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function QZ(e,t){var n=ny(e._covers,(function(e){var t=e.__brushOption,n=qv(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function eK(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function tK(e,t,n,i){var o=new Zw;return o.add(new uI({name:"main",style:rK(n),silent:!0,draggable:!0,cursor:"move",drift:sy(lK,e,t,o,["n","s","w","e"]),ondragend:sy(QZ,t,{isEnd:!0})})),ty(i,(function(n){o.add(new uI({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:sy(lK,e,t,o,n),ondragend:sy(QZ,t,{isEnd:!0})}))})),o}function nK(e,t,n,i){var o=i.brushStyle.lineWidth||0,r=LZ(o,zZ),a=n[0][0],s=n[1][0],l=a-o/2,c=s-o/2,u=n[0][1],p=n[1][1],d=u-r+o/2,h=p-r+o/2,f=u-a,g=p-s,m=f+o,v=g+o;oK(e,t,"main",a,s,f,g),i.transformable&&(oK(e,t,"w",l,c,r,v),oK(e,t,"e",d,c,r,v),oK(e,t,"n",l,c,m,r),oK(e,t,"s",l,h,m,r),oK(e,t,"nw",l,c,r,r),oK(e,t,"ne",d,c,r,r),oK(e,t,"sw",l,h,r,r),oK(e,t,"se",d,h,r,r))}function iK(e,t){var n=t.__brushOption,i=n.transformable,o=t.childAt(0);o.useStyle(rK(n)),o.attr({silent:!i,cursor:i?"move":"default"}),ty([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var o=t.childOfName(n.join("")),r=1===n.length?sK(e,n[0]):function(e,t){var n=[sK(e,t[0]),sK(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?jZ[r]+"-resize":null})}))}function oK(e,t,n,i,o,r,a){var s=t.childOfName(n);s&&s.setShape(function(e){var t=OZ(e[0][0],e[1][0]),n=OZ(e[0][1],e[1][1]),i=LZ(e[0][0],e[1][0]),o=LZ(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:o-n}}(pK(e,t,[[i,o],[i+r,o+a]])))}function rK(e){return Kv({strokeNoScale:!0},e.brushStyle)}function aK(e,t,n,i){var o=[OZ(e,n),OZ(t,i)],r=[LZ(e,n),LZ(t,i)];return[[o[0],r[0]],[o[1],r[1]]]}function sK(e,t){var n=SD({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return _D(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function lK(e,t,n,i,o,r){var a=n.__brushOption,s=e.toRectRange(a.range),l=uK(t,o,r);ty(i,(function(e){var t=BZ[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(aK(s[0][0],s[1][0],s[0][1],s[1][1])),XZ(t,n),QZ(t,{isEnd:!1})}function cK(e,t,n,i){var o=t.__brushOption.range,r=uK(e,n,i);ty(o,(function(e){e[0]+=r[0],e[1]+=r[1]})),XZ(e,t),QZ(e,{isEnd:!1})}function uK(e,t,n){var i=e.group,o=i.transformCoordToLocal(t,n),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function pK(e,t,n){var i=KZ(e,t);return i&&i!==EZ?i.clipPath(n,e._transform):qv(n)}function dK(e){var t=e.event;t.preventDefault&&t.preventDefault()}function hK(e,t,n){return e.childOfName("main").contain(t,n)}function fK(e,t,n,i){var o,r=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],o=n[0]-i[0],r=n[1]-i[1];return NZ(o*o+r*r,.5)>RZ}(e)||r){if(a&&!r){"single"===s.brushMode&&JZ(e);var l=qv(s);l.brushType=gK(l.brushType,a),l.panelId=a===EZ?null:a.panelId,r=e._creatingCover=WZ(e,l),e._covers.push(r)}if(r){var c=yK[gK(e._brushType,a)];r.__brushOption.range=c.getCreatingRange(pK(e,r,e._track)),i&&(UZ(e,r),c.updateCommon(e,r)),YZ(e,r),o={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&ZZ(e,t,n)&&JZ(e)&&(o={isEnd:i,removeOnClick:!0});return o}function gK(e,t){return"auto"===e?("production"!==process.env.NODE_ENV&&Cy(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):e}var mK={mousedown:function(e){if(this._dragging)vK(this,e);else if(!e.target||!e.target.draggable){dK(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=ZZ(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}(e,t.offsetX,t.offsetY)){var i=e._zr,o=e._covers,r=ZZ(e,t,n);if(!e._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===EZ||s.panelId===r.panelId)&&yK[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}(this,e,i),this._dragging){dK(e);var o=fK(this,e,i,!1);o&&QZ(this,o)}},mouseup:function(e){vK(this,e)}};function vK(e,t){if(e._dragging){dK(t);var n=t.offsetX,i=t.offsetY,o=e.group.transformCoordToLocal(n,i),r=fK(e,t,o,!0);e._dragging=!1,e._track=[],e._creatingCover=null,r&&QZ(e,r)}}var yK={lineX:xK(0),lineY:xK(1),rect:{createCover:function(e,t){function n(e){return e}return tK({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=eK(e);return aK(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){nK(e,t,n,i)},updateCommon:iK,contain:hK},polygon:{createCover:function(e,t){var n=new Zw;return n.add(new MA({name:"main",style:rK(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new wA({name:"main",draggable:!0,drift:sy(cK,e,t),ondragend:sy(QZ,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:pK(e,t,n)})},updateCommon:iK,contain:hK}};function xK(e){return{createCover:function(t,n){return tK({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=eK(t);return[OZ(n[0][e],n[1][e]),LZ(n[0][e],n[1][e])]},updateCoverShape:function(t,n,i,o){var r,a=KZ(t,n);if(a!==EZ&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(e);else{var s=t._zr;r=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,r];e&&l.reverse(),nK(t,n,l,o)},updateCommon:iK,contain:hK}}var bK=HZ;function _K(e){return e=MK(e),function(t){return ID(t,e)}}function wK(e,t){return e=MK(e),function(n){var i=null!=t?t:n,o=i?e.width:e.height,r=i?e.x:e.y;return[r,r+(o||0)]}}function SK(e,t,n){var i=MK(e);return function(e,o){return i.contain(o[0],o[1])&&!mU(e,t,n)}}function MK(e){return qx.create(e)}var CK=["axisLine","axisTickLabel","axisName"],IK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new bK(n.getZr())).on("brush",ay(this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Zw,this.group.add(this._axisGroup),e.get("show")){var r=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),a=r.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,c=e.axis.dim,u=Zv({strokeContainThreshold:l},a.getAxisLayout(c)),p=new hW(e,u);ty(CK,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(u,s,e,r,l,n),CD(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,o,r){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),c=qx.create({x:a[0],y:-o/2,width:s,height:o});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:_K(c),isTargetByCursor:SK(c,r,i),getLinearBrushOtherExtent:wK(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return ny(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,o=ny(t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(gN);var TK=IK,AK={type:"axisAreaSelect",event:"axisAreaSelected"};var DK={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function kK(e){e.registerComponentView(uZ),e.registerComponentModel(pZ),e.registerCoordinateSystem("parallel",AZ),e.registerPreprocessor(aZ),e.registerComponentModel(kZ),e.registerComponentView(TK),XH(e,"parallel",kZ,DK),function(e){e.registerAction(AK,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}(e)}var EK=function(){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},OK=function(e){function t(t){return e.call(this,t)||this}return G(t,e),t.prototype.getDefaultShape=function(){return new EK},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){aT(this)},t.prototype.downplay=function(){sT(this)},t}($C),LK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return G(t,e),t.prototype.render=function(e,t,n){var i=this,o=e.getGraph(),r=this.group,a=e.layoutInfo,s=a.width,l=a.height,c=e.getData(),u=e.getData("edge"),p=e.get("orient");this._model=e,r.removeAll(),r.x=a.x,r.y=a.y,o.eachEdge((function(t){var n=new OK,i=TI(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var o,a,c,d,h,f,g,m,v=t.getModel(),y=v.getModel("lineStyle"),x=y.get("curveness"),b=t.node1.getLayout(),_=t.node1.getModel(),w=_.get("localX"),S=_.get("localY"),M=t.node2.getLayout(),C=t.node2.getModel(),I=C.get("localX"),T=C.get("localY"),A=t.getLayout();n.shape.extent=Math.max(1,A.dy),n.shape.orient=p,"vertical"===p?(o=(null!=w?w*s:b.x)+A.sy,a=(null!=S?S*l:b.y)+b.dy,c=(null!=I?I*s:M.x)+A.ty,h=o,f=a*(1-x)+(d=null!=T?T*l:M.y)*x,g=c,m=a*x+d*(1-x)):(o=(null!=w?w*s:b.x)+b.dx,a=(null!=S?S*l:b.y)+A.sy,h=o*(1-x)+(c=null!=I?I*s:M.x)*x,f=a,g=o*x+c*(1-x),m=d=(null!=T?T*l:M.y)+A.ty),n.setShape({x1:o,y1:a,x2:c,y2:d,cpx1:h,cpy1:f,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),NK(n.style,p,t);var D=""+v.get("value"),k=BD(v,"edgeLabel");VD(n,k,{labelFetcher:{getFormattedLabel:function(t,n,i,o,r,a){return e.getFormattedLabel(t,n,"edge",o,wy(r,k.normal&&k.normal.get("formatter"),D),a)}},labelDataIndex:t.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var E=v.getModel("emphasis");MT(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return NK(n,p,t),n})),r.add(n),u.setItemGraphicEl(t.dataIndex,n);var O=E.get("focus");bT(n,"adjacency"===O?t.getAdjacentDataIndices():"trajectory"===O?t.getTrajectoryDataIndices():O,E.get("blurScope"),E.get("disabled"))})),o.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),o=i.get("localX"),a=i.get("localY"),u=i.getModel("emphasis"),p=new uI({shape:{x:null!=o?o*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});VD(p,BD(i),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),p.disableLabelAnimation=!0,p.setStyle("fill",t.getVisual("color")),p.setStyle("decal",t.getVisual("style").decal),MT(p,i),r.add(p),c.setItemGraphicEl(t.dataIndex,p),TI(p).dataType="node";var d=u.get("focus");bT(p,"adjacency"===d?t.getAdjacentDataIndices():"trajectory"===d?t.getTrajectoryDataIndices():d,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,o){c.getItemModel(o).get("draggable")&&(t.drift=function(t,r){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(o),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&r.setClipPath(function(e,t,n){var i=new uI({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return nD(i,{shape:{width:e.width+20}},t,n),i}(r.getBoundingRect(),e,(function(){r.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(CN);function NK(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),o=n.node2.getVisual("color");uy(i)&&uy(o)&&(e.fill=new jA(0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:o,offset:1}]))}}var PK=LK,RK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,o=e.levels;this.levelModels=[];for(var r=this.levelModels,a=0;a<o.length;a++)if(null!=o[a].depth&&o[a].depth>=0)r[o[a].depth]=new uk(o[a],this,t);else if("production"!==process.env.NODE_ENV)throw new Error("levels[i].depth is mandatory and should be natural number");if(i&&n){var s=E$(i,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var o=i.depth,r=n.levelModels[o];r&&(e.parentModel=r)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(i){var o=i.depth,r=n.levelModels[o];r&&(e.parentModel=r)}return e}))}));return s.data}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var o=this.getDataParams(e,n),r=o.data,a=o.value;return HL("nameValue",{name:r.source+" -- "+r.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,l=this.getDataParams(e,n).data.name;return HL("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var o=this.getGraph().getNodeByIndex(t).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}(hN),zK=RK;function VK(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),o=function(e,t){return dE(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=o;var r=o.width,a=o.height,s=e.getGraph(),l=s.nodes,c=s.edges;!function(e){ty(e,(function(e){var t=XK(e.outEdges,qK),n=XK(e.inEdges,qK),i=e.getValue()||0,o=Math.max(t,n,i);e.setLayout({value:o},!0)}))}(l);var u=oy(l,(function(e){return 0===e.getLayout().value}));!function(e,t,n,i,o,r,a,s,l){(function(e,t,n,i,o,r,a){for(var s=[],l=[],c=[],u=[],p=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&c.push(e[d]);var h=-1;for(;c.length;){for(var f=0;f<c.length;f++){var g=c[f],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>h&&(h=m.depth),g.setLayout({depth:v?m.depth:p},!0),"vertical"===r?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var x=g.outEdges[y];s[t.indexOf(x)]=0;var b=x.node2;0==--l[e.indexOf(b)]&&u.indexOf(b)<0&&u.push(b)}}++p,c=u,u=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var _=h>p-1?h:p-1;a&&"left"!==a&&function(e,t,n,i){if("right"===t){for(var o=[],r=e,a=0;r.length;){for(var s=0;s<r.length;s++){var l=r[s];l.setLayout({skNodeHeight:a},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];o.indexOf(u.node1)<0&&o.push(u.node1)}}r=o,o=[],++a}ty(e,(function(e){BK(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&function(e,t){ty(e,(function(e){BK(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}(e,i)}(e,a,0,_);var w="vertical"===r?(o-n)/_:(i-n)/_;!function(e,t,n){ty(e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}(e,w,r)})(e,t,n,o,r,s,l),function(e,t,n,i,o,r,a){var s=function(e,t){var n=[],i="vertical"===t?"y":"x",o=sM(e,(function(e){return e.getLayout()[i]}));return o.keys.sort((function(e,t){return e-t})),ty(o.keys,(function(e){n.push(o.buckets.get(e))})),n}(e,a);(function(e,t,n,i,o,r){var a=1/0;ty(e,(function(e){var t=e.length,s=0;ty(e,(function(e){s+=e.getLayout().value}));var l="vertical"===r?(i-(t-1)*o)/s:(n-(t-1)*o)/s;l<a&&(a=l)})),ty(e,(function(e){ty(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===r?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),ty(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))})(s,t,n,i,o,a),jK(s,o,n,i,a);for(var l=1;r>0;r--)FK(s,l*=.99,a),jK(s,o,n,i,a),$K(s,l,a),jK(s,o,n,i,a)}(e,t,r,o,i,a,s),function(e,t){var n="vertical"===t?"x":"y";ty(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),ty(e,(function(e){var t=0,n=0;ty(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),ty(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}(e,s)}(l,c,n,i,r,a,0!==u.length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}function BK(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function jK(e,t,n,i,o){var r="vertical"===o?"x":"y";ty(e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[r]-t.getLayout()[r]}));for(var c=0,u=e.length,p="vertical"===o?"dx":"dy",d=0;d<u;d++)(l=c-(s=e[d]).getLayout()[r])>0&&(a=s.getLayout()[r]+l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[r]+s.getLayout()[p]+t;if((l=c-t-("vertical"===o?i:n))>0){a=s.getLayout()[r]-l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a;for(d=u-2;d>=0;--d)(l=(s=e[d]).getLayout()[r]+s.getLayout()[p]+t-c)>0&&(a=s.getLayout()[r]-l,"vertical"===o?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[r]}}))}function FK(e,t,n){ty(e.slice().reverse(),(function(e){ty(e,(function(e){if(e.outEdges.length){var i=XK(e.outEdges,GK,n)/XK(e.outEdges,qK);if(isNaN(i)){var o=e.outEdges.length;i=o?XK(e.outEdges,HK,n)/o:0}if("vertical"===n){var r=e.getLayout().x+(i-YK(e,n))*t;e.setLayout({x:r},!0)}else{var a=e.getLayout().y+(i-YK(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function GK(e,t){return YK(e.node2,t)*e.getValue()}function HK(e,t){return YK(e.node2,t)}function WK(e,t){return YK(e.node1,t)*e.getValue()}function UK(e,t){return YK(e.node1,t)}function YK(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function qK(e){return e.getValue()}function XK(e,t,n){for(var i=0,o=e.length,r=-1;++r<o;){var a=+t(e[r],n);isNaN(a)||(i+=a)}return i}function $K(e,t,n){ty(e,(function(e){ty(e,(function(e){if(e.inEdges.length){var i=XK(e.inEdges,WK,n)/XK(e.inEdges,qK);if(isNaN(i)){var o=e.inEdges.length;i=o?XK(e.inEdges,UK,n)/o:0}if("vertical"===n){var r=e.getLayout().x+(i-YK(e,n))*t;e.setLayout({x:r},!0)}else{var a=e.getLayout().y+(i-YK(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function ZK(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var o=1/0,r=-1/0;ty(n,(function(e){var t=e.getLayout().value;t<o&&(o=t),t>r&&(r=t)})),ty(n,(function(t){var n=new rX({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),i=t.getModel().get(["itemStyle","color"]);null!=i?(t.setVisual("color",i),t.setVisual("style",{fill:i})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))}))}i.length&&ty(i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}var KK=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,o=t.getComponent("xAxis",this.get("xAxisIndex")),r=t.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),s=r.get("type");"category"===a?(e.layout="horizontal",n=o.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=r.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],p=l[1-c],d=[o,r],h=d[c].get("type"),f=d[1-c].get("type"),g=e.data;if(g&&i){var m=[];ty(g,(function(e,t){var n;ly(e)?(n=e.slice(),e.unshift(t)):ly(e.value)?((n=Zv({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,y=[{name:u,type:Az(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:Az(f),dimsDef:v.slice()}];return AH(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:sy(PE,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),JK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return G(t,e),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}(hN);Qv(JK,KK,!0);var QK=JK,eJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this.group,r=this._data;this._data||o.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(r).add((function(e){if(i.hasValue(e)){var t=iJ(i.getItemLayout(e),i,e,a,!0);i.setItemGraphicEl(e,t),o.add(t)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(sD(n),oJ(s,n,i,e)):n=iJ(s,i,e,a),o.add(n),i.setItemGraphicEl(e,n)}else o.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&o.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(CN),tJ=function(){},nJ=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return G(t,e),t.prototype.getDefaultShape=function(){return new tJ},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}($C);function iJ(e,t,n,i,o){var r=e.ends,a=new nJ({shape:{points:o?rJ(r,i,e):r}});return oJ(e,a,t,n,o),a}function oJ(e,t,n,i,o){var r=n.hostModel;(0,ND[o?"initProps":"updateProps"])(t,{shape:{points:e.ends}},r,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");MT(t,a),bT(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function rJ(e,t,n){return ny(e,(function(e){return(e=e.slice())[t]=n.initBaseline,e}))}var aJ=eJ,sJ=ty;function lJ(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),o=Jv(n,i);o<0&&(o=n.length,n[o]=i,t[o]={axis:i,seriesModels:[]}),t[o].seriesModels.push(e)})),t}(e);sJ(t,(function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n=e.axis,i=e.seriesModels,o=i.length,r=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;sJ(i,(function(e){l=Math.max(l,e.getData().count())}));var c=n.getExtent();t=Math.abs(c[1]-c[0])/l}sJ(i,(function(e){var n=e.get("boxWidth");ly(n)||(n=[n,n]),s.push([rS(n[0],t)||0,rS(n[1],t)||0])}));var u=.8*t-2,p=u/o*.3,d=(u-p*(o-1))/o,h=d/2-u/2;sJ(i,(function(e,t){a.push(h),h+=p+d,r.push(Math.min(Math.max(d,s[t][0]),s[t][1]))}))}(e),sJ(t,(function(t,n){!function(e,t,n){var i=e.coordinateSystem,o=e.getData(),r=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],c=o.mapDimension(l[a]),u=o.mapDimensionsAll(l[s]);if(null==c||u.length<5)return;for(var p=0;p<o.count();p++){var d=o.get(c,p),h=x(d,u[2],p),f=x(d,u[0],p),g=x(d,u[1],p),m=x(d,u[3],p),v=x(d,u[4],p),y=[];b(y,g,!1),b(y,m,!0),y.push(f,g,v,m),_(y,f),_(y,v),_(y,h),o.setItemLayout(p,{initBaseline:h[s],ends:y})}function x(e,n,r){var l,c=o.get(n,r),u=[];return u[a]=e,u[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u))[a]+=t,l}function b(e,t,n){var i=t.slice(),o=t.slice();i[a]+=r,o[a]-=r,n?e.push(i,o):e.push(o,i)}function _(e,t){var n=t.slice(),i=t.slice();n[a]-=r,i[a]+=r,e.push(n,i)}}(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}var cJ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==IE){var n="";"production"!==process.env.NODE_ENV&&(n=NS("source data is not applicable for this boxplot transform. Expect number[][].")),PS(n)}var i=function(e,t){for(var n=[],i=[],o=(t=t||{}).boundIQR,r="none"===o||0===o,a=0;a<e.length;a++){var s=sS(e[a].slice()),l=xS(s,.25),c=xS(s,.5),u=xS(s,.75),p=s[0],d=s[s.length-1],h=(null==o?1.5:o)*(u-l),f=r?p:Math.max(p,l-h),g=r?d:Math.min(d,u+h),m=t.itemNameFormatter,v=cy(m)?m({value:a}):uy(m)?m.replace("{value}",a+""):a+"";n.push([v,f,l,c,u,g]);for(var y=0;y<s.length;y++){var x=s[y];if(x<f||x>g){var b=[v,x];i.push(b)}}}return{boxData:n,outliers:i}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};var uJ=["color","borderColor"],pJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){LD(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,o=t.getLayout("isSimpleBox"),r=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(r&&gJ(s,a))return;var l=fJ(a,n,!0);nD(l,{shape:{points:a.ends}},e,n),mJ(l,t,n,o),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var c=n.getItemGraphicEl(l);if(t.hasValue(a)){var u=t.getItemLayout(a);r&&gJ(s,u)?i.remove(c):(c?(tD(c,{shape:{points:u.ends}},e,a),sD(c)):c=fJ(u),mJ(c,t,a,o),i.add(c),t.setItemGraphicEl(a,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),bJ(e,this.group);var t=e.get("clip",!0)?wG(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,i=t.getData(),o=i.getLayout("isSimpleBox");null!=(n=e.next());){var r=fJ(i.getItemLayout(n));mJ(r,i,n,o),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},t.prototype._incrementalRenderLarge=function(e,t){bJ(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(CN),dJ=function(){},hJ=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return G(t,e),t.prototype.getDefaultShape=function(){return new dJ},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}($C);function fJ(e,t,n){var i=e.ends;return new hJ({shape:{points:n?vJ(i,e):i},z2:100})}function gJ(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function mJ(e,t,n,i){var o=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,MT(e,o)}function vJ(e,t){return ny(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var yJ=function(){},xJ=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return G(t,e),t.prototype.getDefaultShape=function(){return new yJ},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];e.moveTo(o,n[i++]),e.lineTo(o,n[i++])}else i+=3},t}($C);function bJ(e,t,n,i){var o=e.getData().getLayout("largePoints"),r=new xJ({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(r);var a=new xJ({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(a);var s=new xJ({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(s),_J(1,r,e),_J(-1,a,e),_J(0,s,e),i&&(r.incremental=!0,a.incremental=!0),n&&n.push(r,a)}function _J(e,t,n,i){var o=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(o=n.get(["itemStyle","borderColorDoji"]));var r=n.getModel("itemStyle").getItemStyle(uJ);t.useStyle(r),t.style.fill=null,t.style.stroke=o}var wJ=pJ,SJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return G(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{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}(hN);Qv(SJ,KK,!0);var MJ=SJ;function CJ(e){e&&ly(e.series)&&ty(e.series,(function(e){hy(e)&&"k"===e.type&&(e.type="candlestick")}))}var IJ=["itemStyle","borderColor"],TJ=["itemStyle","borderColor0"],AJ=["itemStyle","borderColorDoji"],DJ=["itemStyle","color"],kJ=["itemStyle","color0"],EJ={seriesType:"candlestick",plan:mN(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?DJ:kJ)}function i(e,t){return t.get(0===e?AJ:e>0?IJ:TJ)}if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var o;null!=(o=e.next());){var r=t.getItemModel(o),a=t.getItemLayout(o).sign,s=r.getItemStyle();s.fill=n(a,r),s.stroke=i(a,r)||s.fill,Zv(t.ensureUniqueItemVisual(o,"style"),s)}}}}},OJ=EJ,LJ={seriesType:"candlestick",plan:mN(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=function(e,t){var n,i=e.getBaseAxis(),o="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),r=rS(_y(e.get("barMaxWidth"),o),o),a=rS(_y(e.get("barMinWidth"),1),o),s=e.get("barWidth");return null!=s?rS(s,o):Math.max(Math.min(o/2,r),a)}(e,n),o=["x","y"],r=n.getDimensionIndex(n.mapDimension(o[0])),a=ny(n.mapDimensionsAll(o[1]),n.getDimensionIndex,n),s=a[0],l=a[1],c=a[2],u=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(r<0||a.length<4))return{progress:e.pipelineContext.large?function(n,i){var o,a,p=CV(4*n.count),d=0,h=[],f=[],g=i.getStore(),m=!!e.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var v=g.get(r,a),y=g.get(s,a),x=g.get(l,a),b=g.get(c,a),_=g.get(u,a);isNaN(v)||isNaN(b)||isNaN(_)?(p[d++]=NaN,d+=3):(p[d++]=NJ(g,a,y,x,l,m),h[0]=v,h[1]=b,o=t.dataToPoint(h,null,f),p[d++]=o?o[0]:NaN,p[d++]=o?o[1]:NaN,h[1]=_,o=t.dataToPoint(h,null,f),p[d++]=o?o[1]:NaN)}i.setLayout("largePoints",p)}:function(e,n){var o,a=n.getStore();for(;null!=(o=e.next());){var p=a.get(r,o),d=a.get(s,o),h=a.get(l,o),f=a.get(c,o),g=a.get(u,o),m=Math.min(d,h),v=Math.max(d,h),y=M(m,p),x=M(v,p),b=M(f,p),_=M(g,p),w=[];C(w,x,0),C(w,y,1),w.push(T(_),T(x),T(b),T(y));var S=!!n.getItemModel(o).get(["itemStyle","borderColorDoji"]);n.setItemLayout(o,{sign:NJ(a,o,d,h,l,S),initBaseline:d>h?x[1]:y[1],ends:w,brushRect:I(f,g,p)})}function M(e,n){var i=[];return i[0]=n,i[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function C(e,t,n){var o=t.slice(),r=t.slice();o[0]=bD(o[0]+i/2,1,!1),r[0]=bD(r[0]-i/2,1,!0),n?e.push(o,r):e.push(r,o)}function I(e,t,n){var o=M(e,n),r=M(t,n);return o[0]-=i/2,r[0]-=i/2,{x:o[0],y:o[1],width:i,height:r[1]-o[1]}}function T(e){return e[0]=bD(e[0],1),e}}}}};function NJ(e,t,n,i,o,r){return n>i?-1:n<i?1:r?0:t>0?e.get(o,t-1)<=i?1:-1:1}var PJ=LJ;function RJ(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var zJ=function(e){function t(t,n){var i=e.call(this)||this,o=new oG(t,n),r=new Zw;return i.add(o),i.add(r),i.updateData(t,n),i}return G(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),r=0;r<i;r++){var a=LP(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-r/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),o.add(a)}RJ(o,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var r=i[o];if(t[r]!==e[r])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}RJ(n,e)},t.prototype.highlight=function(){aT(this)},t.prototype.downplay=function(){sT(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var o=this.childAt(1),r=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=NP(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),c=l&&l.fill,u=r.getModel("emphasis");o.setScale(s),o.traverse((function(e){e.setStyle("fill",c)}));var p=PP(e.getItemVisual(t,"symbolOffset"),s);p&&(o.x=p[0],o.y=p[1]);var d=e.getItemVisual(t,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var h={};h.showEffectOn=i.get("showEffectOn"),h.rippleScale=r.get(["rippleEffect","scale"]),h.brushType=r.get(["rippleEffect","brushType"]),h.period=1e3*r.get(["rippleEffect","period"]),h.effectOffset=t/e.count(),h.z=i.getShallow("z")||0,h.zlevel=i.getShallow("zlevel")||0,h.symbolType=a,h.color=c,h.rippleEffectColor=r.get(["rippleEffect","color"]),h.rippleNumber=r.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===e&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,bT(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(Zw),VJ=zJ,BJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(){this._symbolDraw=new cG(VJ)},t.prototype.render=function(e,t,n){var i=e.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var o=zG("").reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t,n,i=e.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=(t=i.getRoamTransform(),Ex(n=[1,0,0,1,0,0],t),n),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(CN),jJ=BJ,FJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return G(t,e),t.prototype.getInitialData=function(e,t){return oV(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},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}(hN),GJ=FJ;var HJ=function(e){function t(t,n,i){var o=e.call(this)||this;return o.add(o.createLine(t,n,i)),o._updateEffectSymbol(t,n),o}return G(t,e),t.prototype.createLine=function(e,t,n){return new u$(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),i=n.get("symbolSize"),o=n.get("symbol");ly(i)||(i=[i,i]);var r=e.getItemVisual(t,"style"),a=n.get("color")||r&&r.stroke,s=this.childAt(1);this._symbolType!==o&&(this.remove(s),(s=LP(o,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var o=e.getItemLayout(n),r=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),c=by(t.get("delay"),(function(t){return t/e.count()*r/3}));if(i.ignore=!0,this._updateAnimationPoints(i,o),l>0&&(r=this._getLineLength(i)/l*1e3),r!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var u=void 0;u=cy(c)?c(n):c,i.__t>0&&(u=-r*i.__t),this._animateSymbol(i,r,u,a,s)}this._period=r,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,o){if(t>0){e.__t=0;var r=this,a=e.animate("",i).when(o?2*t:t,{__t:o?2:1}).delay(n).during((function(){r._updateSymbolPosition(e)}));i||a.done((function(){r.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return Ky(e.__p1,e.__cp1)+Ky(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,r=[e.x,e.y],a=r.slice(),s=Bb,l=jb;r[0]=s(t[0],i[0],n[0],o),r[1]=s(t[1],i[1],n[1],o);var c=e.__t<1?l(t[0],i[0],n[0],o):l(n[0],i[0],t[0],1-o),u=e.__t<1?l(t[1],i[1],n[1],o):l(n[1],i[1],t[1],1-o);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Ky(a,r),1===o&&(r[0]=a[0]+(r[0]-a[0])/2,r[1]=a[1]+(r[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*Ky(t,r):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=r[0],e.y=r[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(Zw),WJ=HJ,UJ=function(e){function t(t,n,i){var o=e.call(this)||this;return o._createPolyline(t,n,i),o}return G(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),o=new MA({shape:{points:i}});this.add(o),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel;tD(this.childAt(0),{shape:{points:e.getItemLayout(t)}},i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),o=e.getItemModel(t),r=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var c=o.getModel("emphasis");r=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),a=c.get("focus"),s=c.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=r,bT(this,a,s,l)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(Zw),YJ=UJ,qJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return G(t,e),t.prototype.createLine=function(e,t,n){return new YJ(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,o=1;o<t.length;o++){var r=t[o-1],a=t[o];i+=Ky(r,a),n.push(i)}if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r,a=this._lastFrame;if(t<this._lastFramePercent){for(r=Math.min(a+1,o-1);r>=0&&!(i[r]<=t);r--);r=Math.min(r,o-2)}else{for(r=a;r<o&&!(i[r]>t);r++);r=Math.min(r-1,o-2)}var s=(t-i[r])/(i[r+1]-i[r]),l=n[r],c=n[r+1];e.x=l[0]*(1-s)+s*c[0],e.y=l[1]*(1-s)+s*c[1];var u=e.__t<1?c[0]-l[0]:l[0]-c[0],p=e.__t<1?c[1]-l[1]:l[1]-c[1];e.rotation=-Math.atan2(p,u)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=t,e.ignore=!1}},t}(WJ),XJ=qJ,$J=function(){this.polyline=!1,this.curveness=0,this.segs=[]},ZJ=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return G(t,e),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 $J},t.prototype.buildPath=function(e,t){var n,i=t.segs,o=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var r=i[n++];if(r>0){e.moveTo(i[n++],i[n++]);for(var a=1;a<r;a++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],c=i[n++],u=i[n++];if(e.moveTo(s,l),o>0){var p=(s+c)/2-(l-u)*o,d=(l+u)/2-(c-s)*o;e.quadraticCurveTo(p,d,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,o=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var c=i[s++],u=i[s++],p=1;p<l;p++){if(AC(c,u,d=i[s++],h=i[s++],r,e,t))return a}a++}else for(a=0,s=0;s<i.length;){c=i[s++],u=i[s++];var d=i[s++],h=i[s++];if(o>0){if(kC(c,u,(c+d)/2-(u-h)*o,(u+h)/2-(d-c)*o,d,h,r,e,t))return a}else if(AC(c,u,d,h,r,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return e=n[0],t=n[1],i.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,i=1/0,o=-1/0,r=-1/0,a=0;a<t.length;){var s=t[a++],l=t[a++];n=Math.min(s,n),o=Math.max(s,o),i=Math.min(l,i),r=Math.max(l,r)}e=this._rect=new qx(n,i,o,r)}return e},t}($C),KJ=function(){function e(){this.group=new Zw}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<2e4){var r=o.length,a=new Float32Array(r+i.length);a.set(o),a.set(i,r),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new ZJ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=t.getVisual("style");o&&o.stroke&&e.setStyle("stroke",o.stroke),e.setStyle("fill",null);var r=TI(e);r.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){r.dataIndex=null;var n=e.hoverDataIdx;n>0&&(r.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),JJ={seriesType:"lines",plan:mN(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(o,r){var a=[];if(i){var s=void 0,l=o.end-o.start;if(n){for(var c=0,u=o.start;u<o.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var p=0,d=[];for(u=o.start;u<o.end;u++){var h=e.getLineCoords(u,a);n&&(s[p++]=h);for(var f=0;f<h;f++)d=t.dataToPoint(a[f],!1,d),s[p++]=d[0],s[p++]=d[1]}r.setLayout("linesPoints",s)}else for(u=o.start;u<o.end;u++){var g=r.getItemModel(u),m=(h=e.getLineCoords(u,a),[]);if(n)for(var v=0;v<h;v++)m.push(t.dataToPoint(a[v]));else{m[0]=t.dataToPoint(a[0]),m[1]=t.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}r.setItemLayout(u,m)}}}}"production"!==process.env.NODE_ENV&&ES("The lines series must have a coordinate system.")}},QJ=JJ,eQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this._updateLineDraw(i,e),r=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l?"production"!==process.env.NODE_ENV&&console.warn("SVG render mode doesn't support lines with trail effect"):s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(i);var c=e.get("clip",!0)&&wG(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData();this._updateLineDraw(i,e).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var r=QJ.reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),o=!!t.get("polyline"),r=t.pipelineContext.large;return"production"!==process.env.NODE_ENV&&i&&r&&console.warn("Large lines not support effect"),n&&i===this._hasEffet&&o===this._isPolyline&&r===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=r?new KJ:new p$(o?i?XJ:YJ:i?WJ:u$),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=r),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(CN),tQ=eQ,nQ="undefined"==typeof Uint32Array?Array:Uint32Array,iQ="undefined"==typeof Float64Array?Array:Float64Array;function oQ(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&("production"!==process.env.NODE_ENV&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),e.data=ny(t,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),$v([t,e[0],e[1]])})))}var rQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return G(t,e),t.prototype.init=function(t){t.data=t.data||[],oQ(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(oQ(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Ny(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Ny(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");if("production"!==process.env.NODE_ENV&&!(n instanceof Array&&n.length>0&&n[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(n)+". Lines must have 2d coords array in data item.");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],o=0;o<i;o++)t[o]=t[o]||[],t[o][0]=this._flatCoords[n+2*o],t[o][1]=this._flatCoords[n+2*o+1];return i}var r=this._getCoordsFromItemModel(e);for(o=0;o<r.length;o++)t[o]=t[o]||[],t[o][0]=r[o][0],t[o][1]=r[o][1];return r.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),dy(e[0])){for(var n=e.length,i=new nQ(n),o=new iQ(n),r=0,a=0,s=0,l=0;l<n;){s++;var c=e[l++];i[a++]=r+t,i[a++]=c;for(var u=0;u<c;u++){var p=e[l++],d=e[l++];if(o[r++]=p,o[r++]=d,l>n&&"production"!==process.env.NODE_ENV)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){if("production"!==process.env.NODE_ENV&&!aO.get(e.coordinateSystem))throw new Error("Unknown coordinate system "+e.coordinateSystem);var n=new $z(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,o){if(e instanceof Array)return NaN;n.hasItemOption=!0;var r=e.value;return null!=r?r instanceof Array?r[o]:r:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().getItemModel(e),o=i.get("name");if(o)return o;var r=i.get("fromName"),a=i.get("toName"),s=[];return null!=r&&s.push(r),null!=a&&s.push(a),HL("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},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}(hN),aQ=rQ;function sQ(e){return e instanceof Array||(e=[e,e]),e}var lQ={seriesType:"lines",reset:function(e){var t=sQ(e.get("symbol")),n=sQ(e.get("symbolSize")),i=e.getData();return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(e,t){var n=e.getItemModel(t),i=sQ(n.getShallow("symbol",!0)),o=sQ(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),o[0]&&e.setItemVisual(t,"fromSymbolSize",o[0]),o[1]&&e.setItemVisual(t,"toSymbolSize",o[1])}:null}}},cQ=lQ;var uQ=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Ov.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,o,r){var a=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,p=u.getContext("2d"),d=e.length;u.width=t,u.height=n;for(var h=0;h<d;++h){var f=e[h],g=f[0],m=f[1],v=i(f[2]);p.globalAlpha=v,p.drawImage(a,g-c,m-c)}if(!u.width||!u.height)return u;for(var y=p.getImageData(0,0,u.width,u.height),x=y.data,b=0,_=x.length,w=this.minOpacity,S=this.maxOpacity-w;b<_;){v=x[b+3]/256;var M=4*Math.floor(255*v);if(v>0){var C=r(v)?s:l;v>0&&(v=v*S+w),x[b++]=C[M],x[b++]=C[M+1],x[b++]=C[M+2],x[b++]=C[M+3]*v*256}else b+=4}return p.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Ov.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,a=0;a<256;a++)e[t](a/255,!0,o),i[r++]=o[0],i[r++]=o[1],i[r++]=o[2],i[r++]=o[3];return i},e}(),pQ=uQ;function dQ(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var hQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){var i;if(t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),"production"!==process.env.NODE_ENV&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):dQ(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var o=t.coordinateSystem;o&&(dQ(o)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){LD(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,o){var r,a,s,l,c=e.coordinateSystem,u=SG(c,"cartesian2d");if(u){var p=c.getAxis("x"),d=c.getAxis("y");if("production"!==process.env.NODE_ENV){if("category"!==p.type||"category"!==d.type)throw new Error("Heatmap on cartesian must have two category axes");if(!p.onBand||!d.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}r=p.getBandWidth()+.5,a=d.getBandWidth()+.5,s=p.scale.getExtent(),l=d.scale.getExtent()}for(var h=this.group,f=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),x=BD(e),b=e.getModel("emphasis"),_=b.get("focus"),w=b.get("blurScope"),S=b.get("disabled"),M=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=n;C<i;C++){var I=void 0,T=f.getItemVisual(C,"style");if(u){var A=f.get(M[0],C),D=f.get(M[1],C);if(isNaN(f.get(M[2],C))||isNaN(A)||isNaN(D)||A<s[0]||A>s[1]||D<l[0]||D>l[1])continue;var k=c.dataToPoint([A,D]);I=new uI({shape:{x:k[0]-r/2,y:k[1]-a/2,width:r,height:a},style:T})}else{if(isNaN(f.get(M[1],C)))continue;I=new uI({z2:1,shape:c.dataToRect([f.get(M[0],C)]).contentShape,style:T})}if(f.hasItemOption){var E=f.getItemModel(C),O=E.getModel("emphasis");g=O.getModel("itemStyle").getItemStyle(),m=E.getModel(["blur","itemStyle"]).getItemStyle(),v=E.getModel(["select","itemStyle"]).getItemStyle(),y=E.get(["itemStyle","borderRadius"]),_=O.get("focus"),w=O.get("blurScope"),S=O.get("disabled"),x=BD(E)}I.shape.r=y;var L=e.getRawValue(C),N="-";L&&null!=L[2]&&(N=L[2]+""),VD(I,x,{labelFetcher:e,labelDataIndex:C,defaultOpacity:T.opacity,defaultText:N}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=m,I.ensureState("select").style=v,bT(I,_,w,S),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),h.add(I),f.setItemGraphicEl(C,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,t,n,i){var o=n.targetVisuals.inRange,r=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new pQ;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),p=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),h=Math.min(l.height+l.y,i.getHeight()),f=d-u,g=h-p,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(t,n,i){var o=e.dataToPoint([t,n]);return o[0]-=u,o[1]-=p,o.push(i),o})),y=n.getExtent(),x="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(y,n.option.range):function(e,t,n){var i=e[1]-e[0],o=(t=ny(t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}))).length,r=0;return function(e){var i;for(i=r;i<o;i++)if((a=t[i].interval)[0]<=e&&e<=a[1]){r=i;break}if(i===o)for(i=r-1;i>=0;i--){var a;if((a=t[i].interval)[0]<=e&&e<=a[1]){r=i;break}}return i>=0&&i<o&&n[i]}}(y,n.getPieceList(),n.option.selected);s.update(v,f,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:r.color.getColorMapper()},x);var b=new nI({style:{width:f,height:g,x:u,y:p,image:s.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(CN),fQ=hQ,gQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.getInitialData=function(e,t){return oV(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=aO.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},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}(hN);var mQ=["itemStyle","borderWidth"],vQ=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],yQ=new KT,xQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){var i=this.group,o=e.getData(),r=this._data,a=e.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:vQ[+s],categoryDim:vQ[1-+s]};o.diff(r).add((function(e){if(o.hasValue(e)){var t=TQ(o,e),n=bQ(o,e,t,c),r=kQ(o,c,n);o.setItemGraphicEl(e,r),i.add(r),PQ(r,c,n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(o.hasValue(e)){var a=TQ(o,e),s=bQ(o,e,a,c),l=OQ(o,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),o.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var i=n.animationModel,o=n.dataIndex,r=e.__pictorialBundle;tD(r,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,o),n.symbolRepeat?SQ(e,t,n,!0):MQ(e,t,n,!0);CQ(e,n,!0),IQ(e,t,n,!0)}(n,c,s):n=kQ(o,c,s,!0),o.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),PQ(n,c,s)}else i.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&EQ(r,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var u=e.get("clip",!0)?wG(e.coordinateSystem,!1,e):null;return u?i.setClipPath(u):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){EQ(i,TI(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(CN);function bQ(e,t,n,i){var o=e.getItemLayout(t),r=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,u=n.isAnimationEnabled(),p={dataIndex:t,layout:o,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:l,animationModel:u?n:null,hoverScale:u&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(e,t,n,i,o){var r,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[a.wh]<=0);if(ly(s)){var p=[_Q(l,s[0])-c,_Q(l,s[1])-c];p[1]<p[0]&&p.reverse(),r=p[u]}else r=null!=s?_Q(l,s)-c:t?i.coordSysExtent[a.index][u]-c:n[a.wh];o.boundingLength=r,t&&(o.repeatCutLength=n[a.wh]);o.pxSign=r>0?1:-1}(n,r,o,i,p),function(e,t,n,i,o,r,a,s,l,c){var u,p=l.valueDim,d=l.categoryDim,h=Math.abs(n[d.wh]),f=e.getItemVisual(t,"symbolSize");u=ly(f)?f.slice():null==f?["100%","100%"]:[f,f];u[d.index]=rS(u[d.index],h),u[p.index]=rS(u[p.index],i?h:Math.abs(r)),c.symbolSize=u;var g=c.symbolScale=[u[0]/s,u[1]/s];g[p.index]*=(l.isHorizontal?-1:1)*a}(e,t,o,r,0,p.boundingLength,p.pxSign,c,i,p),function(e,t,n,i,o){var r=e.get(mQ)||0;r&&(yQ.attr({scaleX:t[0],scaleY:t[1],rotation:n}),yQ.updateTransform(),r/=yQ.getLineScale(),r*=t[i.valueDim.index]);o.valueLineWidth=r||0}(n,p.symbolScale,l,i,p);var d=p.symbolSize,h=PP(n.get("symbolOffset"),d);return function(e,t,n,i,o,r,a,s,l,c,u,p){var d=u.categoryDim,h=u.valueDim,f=p.pxSign,g=Math.max(t[h.index]+s,0),m=g;if(i){var v=Math.abs(l),y=by(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var b=rS(y,t[h.index]),_=Math.max(g+2*b,0),w=x?0:2*b,S=wS(i),M=S?i:RQ((v+w)/_);_=g+2*(b=(v-M*g)/2/(x?M:Math.max(M-1,1))),w=x?0:2*b,S||"fixed"===i||(M=c?RQ((Math.abs(c)+w)/_):0),m=M*_-w,p.repeatTimes=M,p.symbolMargin=b}var C=f*(m/2),I=p.pathPosition=[];I[d.index]=n[d.wh]/2,I[h.index]="start"===a?C:"end"===a?l-C:l/2,r&&(I[0]+=r[0],I[1]+=r[1]);var T=p.bundlePosition=[];T[d.index]=n[d.xy],T[h.index]=n[h.xy];var A=p.barRectShape=Zv({},n);A[h.wh]=f*Math.max(Math.abs(n[h.wh]),Math.abs(I[h.index]+C)),A[d.wh]=n[d.wh];var D=p.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=u.ecSize[d.wh],D[h.xy]=0,D[h.wh]=n[h.wh]}(n,d,o,r,0,h,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function _Q(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function wQ(e){var t=e.symbolPatternSize,n=LP(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function SQ(e,t,n,i){var o=e.__pictorialBundle,r=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,p=r[t.valueDim.index]+a+2*n.symbolMargin;for(LQ(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?NQ(e,null,f(u),n,i):NQ(e,null,{scaleX:0,scaleY:0},n,i,(function(){o.remove(e)})),u++}));u<c;u++){var d=wQ(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,o.add(d);var h=f(u);NQ(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,i)}function f(e){var t=s.slice(),i=n.pxSign,o=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(o=c-1-e),t[l.index]=p*(o-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function MQ(e,t,n,i){var o=e.__pictorialBundle,r=e.__pictorialMainPath;r?NQ(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=e.__pictorialMainPath=wQ(n),o.add(r),NQ(r,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function CQ(e,t,n){var i=Zv({},t.barRectShape),o=e.__pictorialBarRect;o?NQ(o,null,{shape:i},t,n):((o=e.__pictorialBarRect=new uI({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(o))}function IQ(e,t,n,i){if(n.symbolClip){var o=e.__pictorialClipPath,r=Zv({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(o)tD(o,{shape:r},s,l);else{r[a.wh]=0,o=new uI({shape:r}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var c={};c[a.wh]=n.clipShape[a.wh],ND[i?"updateProps":"initProps"](o,{shape:c},s,l)}}}function TQ(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=AQ,n.isAnimationEnabled=DQ,n}function AQ(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function DQ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function kQ(e,t,n,i){var o=new Zw,r=new Zw;return o.add(r),o.__pictorialBundle=r,r.x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?SQ(o,t,n):MQ(o,0,n),CQ(o,n,i),IQ(o,t,n,i),o.__pictorialShapeStr=OQ(e,n),o.__pictorialSymbolMeta=n,o}function EQ(e,t,n,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];LQ(i,(function(e){r.push(e)})),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),ty(r,(function(e){oD(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function OQ(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function LQ(e,t,n){ty(e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function NQ(e,t,n,i,o,r){t&&e.attr(t),i.symbolClip&&!o?n&&e.attr(n):n&&ND[o?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,r)}function PQ(e,t,n){var i=n.dataIndex,o=n.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),c=o.getShallow("cursor"),u=r.get("focus"),p=r.get("blurScope"),d=r.get("scale");LQ(e,(function(e){if(e instanceof nI){var t=e.style;e.useStyle(Zv({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,c&&(e.cursor=c),e.z2=n.z2}));var h=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;f.ignoreClip=!0,VD(f,BD(o),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:nG(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),bT(e,u,p,r.get("disabled"))}function RQ(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var zQ=xQ,VQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return G(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=hk(FG.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(FG);var BQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return G(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),o=this,r=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(e){return e.name}r.x=0,r.y=l.y+c[0];var p=new Cz(this._layersSeries||[],a,u,u),d=[];function h(t,n,s){var l=o._layers;if("remove"!==t){for(var c,u,p=[],h=[],f=a[n].indices,g=0;g<f.length;g++){var m=i.getItemLayout(f[g]),v=m.x,y=m.y0,x=m.y;p.push(v,y),h.push(v,y+x),c=i.getItemVisual(f[g],"style")}var b=i.getItemLayout(f[0]),_=e.getModel("label").get("margin"),w=e.getModel("emphasis");if("add"===t){var S=d[n]=new Zw;u=new xG({shape:{points:p,stackedOnPoints:h,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(u),r.add(S),e.isAnimationEnabled()&&u.setClipPath(function(e,t,n){var i=new uI({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return nD(i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}(u.getBoundingRect(),e,(function(){u.removeClipPath()})))}else{S=l[s];u=S.childAt(0),r.add(S),d[n]=S,tD(u,{shape:{points:p,stackedOnPoints:h}},e),sD(u)}VD(u,BD(e),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var M=u.getTextContent();M&&(M.x=b.x-_,M.y=b.y0+b.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),MT(u,e),bT(u,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else r.remove(l[n])}p.add(ay(h,this,"add")).update(ay(h,this,"update")).remove(ay(h,this,"remove")).execute(),this._layersSeries=a,this._layers=d},t.type="themeRiver",t}(CN);var jQ=BQ,FQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new kH(ay(this.getData,this),ay(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=sM(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),o=[];i.buckets.each((function(e,t){o.push({name:t,dataList:e})}));for(var r=o.length,a=0;a<r;++a){for(var s=o[a].name,l=0;l<o[a].dataList.length;++l){var c=o[a].dataList[l][0]+"";n[c]=a}for(var c in n)n.hasOwnProperty(c)&&n[c]!==a&&(n[c]=a,e[t]=[c,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",iM).models[0].get("type"),i=oy(e.data,(function(e){return void 0!==e[2]})),o=this.fixData(i||[]),r=[],a=this.nameMap=Ly(),s=0,l=0;l<o.length;++l)r.push(o[l][2]),a.get(o[l][2])||(a.set(o[l][2],s),s++);var c=Zz(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Az(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new $z(c,this);return u.initData(o),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var o=e.mapDimension("single"),r=sM(n,(function(t){return e.get("name",t)})),a=[];return r.buckets.each((function(t,n){t.sort((function(t,n){return e.get(o,t)-e.get(o,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){ly(e)||(e=e?[e]:[]);for(var i,o=this.getData(),r=this.getLayerSeries(),a=[],s=r.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,u=-1,p=r[l].indices.length,d=0;d<p;++d){var h=o.get(e[0],r[l].indices[d]),f=Math.abs(h-t);f<=c&&(i=h,c=f,u=r[l].indices[d])}a.push(u)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData();return HL("nameValue",{name:i.getName(e),value:i.get(i.mapDimension("value"),e)})},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}(hN),GQ=FQ;function HQ(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var r=e.get("boundaryGap"),a=n.getAxis();(i.boundaryGap=r,"horizontal"===a.orient)?(r[0]=rS(r[0],o.height),r[1]=rS(r[1],o.height),WQ(t,e,o.height-r[0]-r[1])):(r[0]=rS(r[0],o.width),r[1]=rS(r[1],o.width),WQ(t,e,o.width-r[0]-r[1]));t.setLayout("layoutInfo",i)}))}function WQ(e,t,n){if(e.count())for(var i,o=t.coordinateSystem,r=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=ny(r,(function(t){return ny(t.indices,(function(t){var n=o.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),c=function(e){for(var t=e.length,n=e[0].length,i=[],o=[],r=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>r&&(r=s),i.push(s)}for(var c=0;c<n;++c)o[c]=(r-i[c])/2;r=0;for(var u=0;u<n;++u){var p=i[u]+o[u];p>r&&(r=p)}return{y0:o,max:r}}(l),u=c.y0,p=n/c.max,d=r.length,h=r[0].indices.length,f=0;f<h;++f){i=u[f]*p,e.setItemLayout(r[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*p});for(var g=1;g<d;++g)i+=l[g-1][f][1]*p,e.setItemLayout(r[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*p})}}var UQ=function(e){function t(t,n,i,o){var r=e.call(this)||this;r.z2=2,r.textConfig={inside:!0},TI(r).seriesIndex=n.seriesIndex;var a=new II({z2:4,silent:t.getModel().get(["label","silent"])});return r.setTextContent(a),r.updateData(!0,t,n,i,o),r}return G(t,e),t.prototype.updateData=function(e,t,n,i,o){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this;TI(r).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),c=Zv({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var p=t.getVisual("decal");p&&(u.decal=uR(p,o));var d=XG(a.getModel("itemStyle"),c,!0);Zv(c,d),ty(RI,(function(e){var t=r.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=XG(n,c);i&&(t.shape=i)})),e?(r.setShape(c),r.shape.r=l.r0,nD(r,{shape:{r:l.r}},n,t.dataIndex)):(tD(r,{shape:c},n),sD(r)),r.useStyle(u),this._updateLabel(n);var h=a.getShallow("cursor");h&&r.attr("cursor",h),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus");bT(this,"ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),r=o.endAngle-o.startAngle,a=(o.startAngle+o.endAngle)/2,s=Math.cos(a),l=Math.sin(a),c=this,u=c.getTextContent(),p=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,h=i.get("show")&&!(null!=d&&Math.abs(r)<d);function f(e,t){var n=e.get(t);return null==n?i.get(t):n}u.ignore=!h,ty(zI,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),h="normal"===i,g=h?u:u.ensureState(i),m=e.getFormattedLabel(p,i);h&&(m=m||t.node.name),g.style=jD(d,{},null,"normal"!==i,!0),m&&(g.style.text=m);var v=d.get("show");null==v||h||(g.ignore=!v);var y,x=f(d,"position"),b=h?c:c.states[i],_=b.style.fill;b.textConfig={outsideFill:"inherit"===d.get("color")?_:null,inside:"outside"!==x};var w=f(d,"distance")||0,S=f(d,"align"),M=f(d,"rotate"),C=.5*Math.PI,I=1.5*Math.PI,T=OC("tangential"===M?Math.PI/2-a:a),A=T>C&&!fS(T-C)&&T<I;"outside"===x?(y=o.r+w,S=A?"right":"left"):S&&"center"!==S?"left"===S?(y=o.r0+w,S=A?"right":"left"):"right"===S&&(y=o.r-w,S=A?"left":"right"):(y=r===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=y*s+o.cx,g.y=y*l+o.cy;var D=0;"radial"===M?D=OC(-a)+(A?Math.PI:0):"tangential"===M?D=OC(Math.PI/2-a)+(A?Math.PI:0):dy(M)&&(D=M*Math.PI/180),g.rotation=OC(D)})),u.dirtyStyle()},t}(mA),YQ="sunburstRootToNode",qQ="sunburstHighlight",XQ="sunburstUnhighlight";var $Q=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=t;var r=e.getData(),a=r.tree.root,s=e.getViewRoot(),l=this.group,c=e.get("renderLabelForZeroData"),u=[];s.eachNode((function(e){u.push(e)}));var p=this._oldChildren||[];!function(i,o){if(0===i.length&&0===o.length)return;function s(e){return e.getId()}function u(s,u){!function(i,o){c||!i||i.getValue()||(i=null);if(i!==a&&o!==a)if(o&&o.piece)i?(o.piece.updateData(!1,i,e,t,n),r.setItemGraphicEl(i.dataIndex,o.piece)):function(e){if(!e)return;e.piece&&(l.remove(e.piece),e.piece=null)}(o);else if(i){var s=new UQ(i,e,t,n);l.add(s),r.setItemGraphicEl(i.dataIndex,s)}}(null==s?null:i[s],null==u?null:o[u])}new Cz(o,i,s,s).add(u).update(u).remove(sy(u,null)).execute()}(u,p),function(i,r){r.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,i,e,t,n):(o.virtualPiece=new UQ(i,e,t,n),l.add(o.virtualPiece)),r.piece.off("click"),o.virtualPiece.on("click",(function(e){o._rootToNode(r.parentNode)}))):o.virtualPiece&&(l.remove(o.virtualPiece),o.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1;e.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)e._rootToNode(i);else if("link"===o){var r=i.getModel(),a=r.get("link");if(a)aE(a,r.get("target",!0)||"_blank")}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:YQ,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var i=e[0]-n.cx,o=e[1]-n.cy,r=Math.sqrt(i*i+o*o);return r<=n.r&&r>=n.r0}},t.type="sunburst",t}(CN),ZQ=$Q,KQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return G(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};JQ(n);var i=this._levelModels=ny(e.levels||[],(function(e){return new uk(e,this,t)}),this),o=dq.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t),r=i[n.depth];return r&&(e.parentModel=r),e}))}));return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=mq(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Sq(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}(hN);function JQ(e){var t=0;ty(e.children,(function(e){JQ(e);var n=e.value;ly(n)&&(n=n[0]),t+=n}));var n=e.value;ly(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),ly(e.value)?e.value[0]=n:e.value=n}var QQ=KQ,e0=Math.PI/180;function t0(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");ly(i)||(i=[0,i]),ly(t)||(t=[t,t]);var o=n.getWidth(),r=n.getHeight(),a=Math.min(o,r),s=rS(t[0],o),l=rS(t[1],r),c=rS(i[0],a/2),u=rS(i[1],a/2),p=-e.get("startAngle")*e0,d=e.get("minAngle")*e0,h=e.getData().tree.root,f=e.getViewRoot(),g=f.depth,m=e.get("sort");null!=m&&n0(f,m);var v=0;ty(f.children,(function(e){!isNaN(e.getValue())&&v++}));var y=f.getValue(),x=Math.PI/(y||v)*2,b=f.depth>0,_=f.height-(b?-1:1),w=(u-c)/(_||1),S=e.get("clockwise"),M=e.get("stillShowZeroSum"),C=S?1:-1,I=function(t,n){if(t){var i=n;if(t!==h){var o=t.getValue(),r=0===y&&M?x:o*x;r<d&&(r=d),i=n+C*r;var u=t.depth-g-(b?-1:1),p=c+w*u,f=c+w*(u+1),m=e.getLevelModel(t);if(m){var v=m.get("r0",!0),_=m.get("r",!0),T=m.get("radius",!0);null!=T&&(v=T[0],_=T[1]),null!=v&&(p=rS(v,a/2)),null!=_&&(f=rS(_,a/2))}t.setLayout({angle:r,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:p,r:f})}if(t.children&&t.children.length){var A=0;ty(t.children,(function(e){A+=I(e,n+A)}))}return i-n}};if(b){var T=c,A=c+w,D=2*Math.PI;h.setLayout({angle:D,startAngle:p,endAngle:p+D,clockwise:S,cx:s,cy:l,r0:T,r:A})}I(f,p)}))}function n0(e,t){var n=e.children||[];e.children=function(e,t){if(cy(t)){var n=ny(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),ny(n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}(n,t),n.length&&ty(e.children,(function(e){n0(e,t)}))}function i0(e){var t={};e.eachSeriesByType("sunburst",(function(e){var n=e.getData(),i=n.tree;i.eachNode((function(o){var r=o.getModel().getModel("itemStyle").getItemStyle();r.fill||(r.fill=function(e,n,i){for(var o=e;o&&o.depth>1;)o=o.parentNode;var r=n.getColorFromPalette(o.name||o.dataIndex+"",t);return e.depth>1&&uy(r)&&(r=p_(r,(e.depth-1)/(i-1)*.5)),r}(o,e,i.root.height)),Zv(n.ensureUniqueItemVisual(o.dataIndex,"style"),r)}))}))}var o0={color:"fill",borderColor:"stroke"},r0={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},a0=QS(),s0=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return oV(null,this)},t.prototype.getDataParams=function(t,n,i){var o=e.prototype.getDataParams.call(this,t,n);return i&&(o.info=a0(i).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(hN);function l0(e,t){return t=t||[0,0],ny(["x","y"],(function(n,i){var o=this.getAxis(n),r=t[i],a=e[i]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))}),this)}function c0(e,t){return t=t||[0,0],ny([0,1],(function(n){var i=t[n],o=e[n]/2,r=[],a=[];return r[n]=i-o,a[n]=i+o,r[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(a)[n])}),this)}function u0(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function p0(e,t){return t=t||[0,0],ny(["Radius","Angle"],(function(n,i){var o=this["get"+n+"Axis"](),r=t[i],a=e[i]/2,s="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}var d0={};function h0(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||zy(e,"text")))}function f0(e,t,n){var i,o,r,a=e;if("text"===t)r=a;else{r={},zy(a,"text")&&(r.text=a.text),zy(a,"rich")&&(r.rich=a.rich),zy(a,"textFill")&&(r.fill=a.textFill),zy(a,"textStroke")&&(r.stroke=a.textStroke),zy(a,"fontFamily")&&(r.fontFamily=a.fontFamily),zy(a,"fontSize")&&(r.fontSize=a.fontSize),zy(a,"fontStyle")&&(r.fontStyle=a.fontStyle),zy(a,"fontWeight")&&(r.fontWeight=a.fontWeight),o={type:"text",style:r,silent:!0},i={};var s=zy(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),zy(a,"textPosition")&&(i.position=a.textPosition),zy(a,"textOffset")&&(i.offset=a.textOffset),zy(a,"textRotation")&&(i.rotation=a.textRotation),zy(a,"textDistance")&&(i.distance=a.textDistance)}return g0(r,e),ty(r.rich,(function(e){g0(e,e)})),{textConfig:i,textContent:o}}function g0(e,t){t&&(t.font=t.textFont||t.font,zy(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),zy(t,"textAlign")&&(e.align=t.textAlign),zy(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),zy(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),zy(t,"textWidth")&&(e.width=t.textWidth),zy(t,"textHeight")&&(e.height=t.textHeight),zy(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),zy(t,"textPadding")&&(e.padding=t.textPadding),zy(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),zy(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),zy(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),zy(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),zy(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),zy(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),zy(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function m0(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var o=i.textPosition.indexOf("inside")>=0,r=e.fill||"#000";v0(i,t);var a=null==i.textFill;return o?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=r),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,ty(t.rich,(function(e){v0(e,e)})),i}function v0(e,t){t&&(zy(t,"fill")&&(e.textFill=t.fill),zy(t,"stroke")&&(e.textStroke=t.fill),zy(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),zy(t,"font")&&(e.font=t.font),zy(t,"fontStyle")&&(e.fontStyle=t.fontStyle),zy(t,"fontWeight")&&(e.fontWeight=t.fontWeight),zy(t,"fontSize")&&(e.fontSize=t.fontSize),zy(t,"fontFamily")&&(e.fontFamily=t.fontFamily),zy(t,"align")&&(e.textAlign=t.align),zy(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),zy(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),zy(t,"width")&&(e.textWidth=t.width),zy(t,"height")&&(e.textHeight=t.height),zy(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),zy(t,"padding")&&(e.textPadding=t.padding),zy(t,"borderColor")&&(e.textBorderColor=t.borderColor),zy(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),zy(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),zy(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),zy(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),zy(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),zy(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),zy(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),zy(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),zy(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),zy(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function y0(e,t){if("production"!==process.env.NODE_ENV){var n=e+"^_^"+t;d0[n]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),d0[n]=!0)}}var x0={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},b0=ry(x0),_0=iy(Aw,(function(e,t){return e[t]=1,e}),{}),w0=Aw.join(", "),S0=["","style","shape","extra"],M0=QS();function C0(e,t,n,i,o){var r=e+"Animation",a=QA(e,i,o)||{},s=M0(t).userDuring;return a.duration>0&&(a.during=s?ay(N0,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Zv(a,n[r]),a}function I0(e,t,n,i){var o=(i=i||{}).dataIndex,r=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=M0(e),c=t.style;l.userDuring=t.during;var u={},p={};if(function(e,t,n){for(var i=0;i<b0.length;i++){var o=b0[i],r=x0[o],a=t[o];a&&(n[r[0]]=a[0],n[r[1]]=a[1])}for(i=0;i<Aw.length;i++){var s=Aw[i];null!=t[s]&&(n[s]=t[s])}}(0,t,p),R0("shape",t,p),R0("extra",t,p),!r&&s&&(function(e,t,n){for(var i=t.transition,o=D0(i)?Aw:BS(i||[]),r=0;r<o.length;r++){var a=o[r];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];"production"!==process.env.NODE_ENV&&k0(a,"el.transition"),n[a]=s}}}(e,t,u),P0("shape",e,t,u),P0("extra",e,t,u),function(e,t,n,i){if(!n)return;var o,r=e.style;if(r){var a=n.transition,s=t.transition;if(a&&!D0(a)){var l=BS(a);!o&&(o=i.style={});for(var c=0;c<l.length;c++){var u=r[f=l[c]];o[f]=u}}else if(e.getAnimationStyleProps&&(D0(s)||D0(a)||Jv(s,"style")>=0)){var p=e.getAnimationStyleProps(),d=p?p.style:null;if(d){!o&&(o=i.style={});var h=ry(n);for(c=0;c<h.length;c++){var f;if(d[f=h[c]]){u=r[f];o[f]=u}}}}}}(e,t,c,u)),p.style=c,function(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var o=e.animators,r=0;r<o.length;r++){var a=o[r];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}(e,p,a),function(e,t){zy(t,"silent")&&(e.silent=t.silent),zy(t,"ignore")&&(e.ignore=t.ignore),e instanceof qM&&zy(t,"invisible")&&(e.invisible=t.invisible);e instanceof $C&&zy(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),s)if(r){var d={};ty(S0,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),Zv(e?d[e]:d,n.enterFrom))}));var h=C0("enter",e,t,n,o);h.duration>0&&e.animateFrom(d,h)}else!function(e,t,n,i,o){if(o){var r=C0("update",e,t,i,n);r.duration>0&&e.animateFrom(o,r)}}(e,t,o||0,n,u);T0(e,t),c?e.dirty():e.markRedraw()}function T0(e,t){for(var n=M0(e).leaveToProps,i=0;i<S0.length;i++){var o=S0[i],r=o?t[o]:t;r&&r.leaveTo&&(n||(n=M0(e).leaveToProps={}),o&&(n[o]=n[o]||{}),Zv(o?n[o]:n,r.leaveTo))}}function A0(e,t,n,i){if(e){var o=e.parent,r=M0(e).leaveToProps;if(r){var a=C0("update",e,t,n,0);a.done=function(){o.remove(e),i&&i()},e.animateTo(r,a)}else o.remove(e),i&&i()}}function D0(e){return"all"===e}var k0,E0={},O0={setTransform:function(e,t){return"production"!==process.env.NODE_ENV&&Cy(zy(_0,e),"Only "+w0+" available in `setTransform`."),E0.el[e]=t,this},getTransform:function(e){return"production"!==process.env.NODE_ENV&&Cy(zy(_0,e),"Only "+w0+" available in `getTransform`."),E0.el[e]},setShape:function(e,t){"production"!==process.env.NODE_ENV&&L0(e);var n=E0.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){"production"!==process.env.NODE_ENV&&L0(e);var t=E0.el.shape;if(t)return t[e]},setStyle:function(e,t){"production"!==process.env.NODE_ENV&&L0(e);var n=E0.el,i=n.style;return i&&("production"!==process.env.NODE_ENV&&xy(t)&&kS("style."+e+" must not be assigned with NaN."),i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){"production"!==process.env.NODE_ENV&&L0(e);var t=E0.el.style;if(t)return t[e]},setExtra:function(e,t){return"production"!==process.env.NODE_ENV&&L0(e),(E0.el.extra||(E0.el.extra={}))[e]=t,this},getExtra:function(e){"production"!==process.env.NODE_ENV&&L0(e);var t=E0.el.extra;if(t)return t[e]}};function L0(e){if("production"!==process.env.NODE_ENV&&("transition"===e||"enterFrom"===e||"leaveTo"===e))throw new Error('key must not be "'+e+'"')}function N0(){var e=this,t=e.el;if(t){var n=M0(t).userDuring,i=e.userDuring;n===i?(E0.el=t,i(O0)):e.el=e.userDuring=null}}function P0(e,t,n,i){var o=n[e];if(o){var r,a=t[e];if(a){var s=n.transition,l=o.transition;if(l)if(!r&&(r=i[e]={}),D0(l))Zv(r,a);else for(var c=BS(l),u=0;u<c.length;u++){var p=a[h=c[u]];r[h]=p}else if(D0(s)||Jv(s,e)>=0){!r&&(r=i[e]={});var d=ry(a);for(u=0;u<d.length;u++){var h;p=a[h=d[u]];z0(o[h],p)&&(r[h]=p)}}}}}function R0(e,t,n){var i=t[e];if(i)for(var o=n[e]={},r=ry(i),a=0;a<r.length;a++){var s=r[a];o[s]=G_(i[s])}}function z0(e,t){return ey(e)?e!==t:null!=e&&isFinite(e)}"production"!==process.env.NODE_ENV&&(k0=function(e,t){zy(_0,e)||kS("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+ry(_0).join("`, `")+"` are permitted.")});var V0=QS(),B0=["percent","easing","shape","style","extra"];function j0(e){e.stopAnimation("keyframe"),e.attr(V0(e))}function F0(e,t,n){if(n.isAnimationEnabled()&&t)if(ly(t))ty(t,(function(t){F0(e,t,n)}));else{var i=t.keyframes,o=t.duration;if(n&&null==o){var r=QA("enter",n,0);o=r&&r.duration}if(i&&o){var a=V0(e);ty(S0,(function(n){if(!n||e[n]){var r,s=!1;i.sort((function(e,t){return e.percent-t.percent})),ty(i,(function(i){var l=e.animators,c=n?i[n]:i;if("production"!==process.env.NODE_ENV&&i.percent>=1&&(s=!0),c){var u=ry(c);if(n||(u=oy(u,(function(e){return Jv(B0,e)<0}))),u.length){r||((r=e.animate(n,t.loop,!0)).scope="keyframe");for(var p=0;p<l.length;p++)l[p]!==r&&l[p].targetName===r.targetName&&l[p].stopTracks(u);n&&(a[n]=a[n]||{});var d=n?a[n]:a;ty(u,(function(t){d[t]=((n?e[n]:e)||{})[t]})),r.whenWithKeys(o*i.percent,c,u,i.easing)}}})),r&&("production"!==process.env.NODE_ENV&&(s||kS("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),r.delay(t.delay||0).duration(o).start(t.easing))}}))}}}var G0="emphasis",H0="normal",W0="blur",U0="select",Y0=[H0,G0,W0,U0],q0={normal:["itemStyle"],emphasis:[G0,"itemStyle"],blur:[W0,"itemStyle"],select:[U0,"itemStyle"]},X0={normal:["label"],emphasis:[G0,"label"],blur:[W0,"label"],select:[U0,"label"]},$0=["x","y"],Z0="e\0\0",K0={normal:{},emphasis:{},blur:{},select:{}},J0={cartesian2d:function(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(t){return e.dataToPoint(t)},size:ay(l0,e)}}},geo:function(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(t){return e.dataToPoint(t)},size:ay(c0,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:ay(u0,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var o=t.dataToRadius(i[0]),r=n.dataToAngle(i[1]),a=e.coordToPoint([o,r]);return a.push(o,r*Math.PI/180),a},size:ay(p0,e)}}},calendar:function(e){var t=e.getRect(),n=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:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}};function Q0(e){return e instanceof $C}function e1(e){return e instanceof qM}var t1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var o=this._data,r=e.getData(),a=this.group,s=s1(e,r,t,n);o||a.removeAll(),r.diff(o).add((function(t){c1(n,null,t,s(t,i),e,a,r)})).remove((function(t){var n=o.getItemGraphicEl(t);n&&A0(n,a0(n).option,e)})).update((function(t,l){var c=o.getItemGraphicEl(l);c1(n,c,t,s(t,i),e,a,r)})).execute();var l=e.get("clip",!0)?wG(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=r},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,o){var r=t.getData(),a=s1(t,r,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var u=c1(null,null,c,a(c,o),t,this.group,r);u&&(u.traverse(l),s.push(u))}},t.prototype.eachRendered=function(e){LD(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var o=t.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(CN),n1=t1;function i1(e){var t,n=e.type;if("path"===n){var i=e.shape,o=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,r=x1(i);t=fD(r,null,o,i.layout||"center"),a0(t).customPathData=r}else if("image"===n)t=new nI({}),a0(t).customImagePath=e.style.image;else if("text"===n)t=new II({});else if("group"===n)t=new Zw;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=hD(n);if(!a){var s="";"production"!==process.env.NODE_ENV&&(s='graphic type "'+n+'" can not be found.'),PS(s)}t=new a}return a0(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function o1(e,t,n,i,o,r,a){j0(t);var s=o&&o.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=$0);var l=i&&i.style;if(l){if("text"===t.type){var c=l;zy(c,"textFill")&&(c.fill=c.textFill),zy(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,p=Q0(t)?l.decal:null;e&&p&&(p.dirty=!0,u=uR(p,e)),l.__decalPattern=u}e1(t)&&(l&&(u=l.__decalPattern)&&(l.decal=u));I0(t,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),F0(t,i.keyframeAnimation,r)}function r1(e,t,n,i,o){var r=t.isGroup?null:t,a=o&&o[e].cfg;if(r){var s=r.ensureState(e);if(!1===i){var l=r.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),iT(r)}}function a1(e,t,n){var i=n===H0,o=i?t:h1(t,n),r=o?o.z2:null;null!=r&&((i?e:e.ensureState(n)).z2=r||0)}function s1(e,t,n,i){var o=e.get("renderItem"),r=e.coordinateSystem,a={};r&&("production"!==process.env.NODE_ENV&&(Cy(o,"series.render is required."),Cy(r.prepareCustoms||J0[r.type],"This coordSys does not support custom series.")),a=r.prepareCustoms?r.prepareCustoms(r):J0[r.type](r));for(var s,l,c=Kv({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,i){"production"!==process.env.NODE_ENV&&y0("api.style","Please write literal style directly instead.");null==i&&(i=s);var o=t.getItemVisual(i,"style"),r=o&&o.fill,a=o&&o.opacity,l=y(i,H0).getItemStyle();null!=r&&(l.fill=r),null!=a&&(l.opacity=a);var c={inheritColor:uy(r)?r:"#000"},u=x(i,H0),p=jD(u,null,c,!1,!0);p.text=u.getShallow("show")?_y(e.getFormattedLabel(i,H0),nG(t,i)):null;var d=FD(u,c,!1);return _(n,l),l=m0(l,p,d),n&&b(l,n),l.legacy=!0,l},ordinalRawValue:function(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var o=t.getDimensionIndex(e);return o>=0?t.getStore().get(o,n):void 0}var r=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[r]:r},styleEmphasis:function(n,i){"production"!==process.env.NODE_ENV&&y0("api.styleEmphasis","Please write literal style directly instead.");null==i&&(i=s);var o=y(i,G0).getItemStyle(),r=x(i,G0),a=jD(r,null,null,!0,!0);a.text=r.getShallow("show")?wy(e.getFormattedLabel(i,G0),e.getFormattedLabel(i,H0),nG(t,i)):null;var l=FD(r,null,!0);return _(n,o),o=m0(o,a,l),n&&b(o,n),o.legacy=!0,o},visual:function(e,n){if(null==n&&(n=s),zy(o0,e)){var i=t.getItemVisual(n,"style");return i?i[o0[e]]:null}if(zy(r0,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===r.type){return function(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var o=n.getBandWidth(),r=0;r<e.count;r++)t.push(Kv({bandWidth:o,axisKey:i,stackId:IV+r},e));var a=EV(t),s=[];for(r=0;r<e.count;r++){var l=a[i][IV+r];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(Kv({axis:r.getBaseAxis()},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return YD(e,n)}},a.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:l1(e.getData())},p={},d={},h={},f={},g=0;g<Y0.length;g++){var m=Y0[g];h[m]=e.getModel(q0[m]),f[m]=e.getModel(X0[m])}function v(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===s?p[n]||(p[n]=v(e).getModel(q0[n])):v(e).getModel(q0[n]):h[n]}function x(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=v(e).getModel(X0[n])):v(e).getModel(X0[n]):f[n]}return function(e,n){return s=e,l=null,p={},d={},o&&o(Kv({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},u),c)};function b(e,t){for(var n in t)zy(t,n)&&(e[n]=t[n])}function _(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function l1(e){var t={};return ty(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var o=i.coordDim;(t[o]=t[o]||[])[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function c1(e,t,n,i,o,r,a){if(i){var s=u1(e,t,n,i,o,r);return s&&a.setItemGraphicEl(n,s),s&&bT(s,i.focus,i.blurScope,i.emphasisDisabled),s}r.remove(t)}function u1(e,t,n,i,o,r){"production"!==process.env.NODE_ENV&&Cy(i,"should not have an null/undefined element setting");var a=-1,s=t;t&&p1(t,i,o)&&(a=Jv(r.childrenRef(),t),t=null);var l,c,u=!t,p=t;p?p.clearStates():(p=i1(i),s&&(l=s,(c=p).copyTransform(l),e1(c)&&e1(l)&&(c.setStyle(l.style),c.z=l.z,c.z2=l.z2,c.zlevel=l.zlevel,c.invisible=l.invisible,c.ignore=l.ignore,Q0(c)&&Q0(l)&&c.setShape(l.shape)))),!1===i.morph?p.disableMorphing=!0:p.disableMorphing&&(p.disableMorphing=!1),K0.normal.cfg=K0.normal.conOpt=K0.emphasis.cfg=K0.emphasis.conOpt=K0.blur.cfg=K0.blur.conOpt=K0.select.cfg=K0.select.conOpt=null,K0.isLegacy=!1,function(e,t,n,i,o,r){if(e.isGroup)return;d1(n,null,r),d1(n,G0,r);var a=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,c=r.select.conOpt;if(null!=a||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===a)u&&e.removeTextContent();else{a=r.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=i1(a),e.setTextContent(u)),o1(null,u,t,a,null,i,o);for(var p=a&&a.style,d=0;d<Y0.length;d++){var h=Y0[d];if(h!==H0){var f=r[h].conOpt;r1(h,u,0,f1(a,f,h),null)}}p?u.dirty():u.markRedraw()}}}(p,n,i,o,u,K0),function(e,t,n,i,o){var r=n.clipPath;if(!1===r)e&&e.getClipPath()&&e.removeClipPath();else if(r){var a=e.getClipPath();a&&p1(a,r,i)&&(a=null),a||(a=i1(r),"production"!==process.env.NODE_ENV&&Cy(Q0(a),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),e.setClipPath(a)),o1(null,a,t,r,null,i,o)}}(p,n,i,o,u),o1(e,p,n,i,K0,o,u),zy(i,"info")&&(a0(p).info=i.info);for(var d=0;d<Y0.length;d++){var h=Y0[d];if(h!==H0){var f=h1(i,h);r1(h,p,0,f1(i,f,h),K0)}}return function(e,t,n){if(!e.isGroup){var i=e,o=n.currentZ,r=n.currentZLevel;i.z=o,i.zlevel=r;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<Y0.length;s++)a1(i,t,Y0[s])}}(p,i,o),"group"===i.type&&function(e,t,n,i,o){var r=i.children,a=r?r.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(!a&&!l&&!c)return;if(l)return u={api:e,oldChildren:t.children()||[],newChildren:r||[],dataIndex:n,seriesModel:o,group:t},void new Cz(u.oldChildren,u.newChildren,m1,m1,u).add(v1).update(v1).remove(y1).execute();var u;c&&t.removeAll();for(var p=0;p<a;p++){var d=r[p],h=t.childAt(p);d?(null==d.ignore&&(d.ignore=!1),u1(e,h,n,d,o,t)):("production"!==process.env.NODE_ENV&&Cy(h,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),h.ignore=!0)}for(var f=t.childCount()-1;f>=p;f--){var g=t.childAt(f);g1(t,g,o)}}(e,p,n,i,o),a>=0?r.replaceAt(p,a):r.add(p),p}function p1(e,t,n){var i,o=a0(e),r=t.type,a=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==o.customGraphicType||"path"===r&&((i=a)&&(zy(i,"pathData")||zy(i,"d")))&&x1(a)!==o.customPathData||"image"===r&&zy(s,"image")&&s.image!==o.customImagePath}function d1(e,t,n){var i=t?h1(e,t):e,o=t?f1(e,i,G0):e.style,r=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?h1(s,t):s:null;if(o&&(n.isLegacy||h0(o,r,!!a,!!l))){n.isLegacy=!0;var c=f0(o,r,!t);!a&&c.textConfig&&(a=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text"),"production"!==process.env.NODE_ENV&&Cy("text"===u.type,'textContent.type must be "text"')}var p=t?n[t]:n.normal;p.cfg=a,p.conOpt=l}function h1(e,t){return t?e?e[t]:null:e}function f1(e,t,n){var i=t&&t.style;return null==i&&n===G0&&e&&(i=e.styleEmphasis),i}function g1(e,t,n){t&&A0(t,a0(e).option,n)}function m1(e,t){var n=e&&e.name;return null!=n?n:Z0+t}function v1(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,o=null!=t?n.oldChildren[t]:null;u1(n.api,o,n.dataIndex,i,n.seriesModel,n.group)}function y1(e){var t=this.context,n=t.oldChildren[e];n&&A0(n,a0(n).option,t.seriesModel)}function x1(e){return e&&(e.pathData||e.d)}var b1=QS(),_1=qv,w1=ay,S1=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var o=t.get("value"),r=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==o||this._lastStatus!==r){this._lastValue=o,this._lastStatus=r;var a=this._group,s=this._handle;if(!r||"hide"===r)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,o,e,t,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,t);if(a){var p=sy(M1,t,u);this.updatePointerEl(a,l,p),this.updateLabelEl(a,l,p,t)}else a=this._group=new Zw,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);A1(a,t,!0),this._renderHandle(o)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,o="category"===i.type,r=t.get("snap");if(!r&&!o)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(o&&i.getBandWidth()>a)return!0;if(r){var s=_W(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,o){},e.prototype.createPointerEl=function(e,t,n,i){var o=t.pointer;if(o){var r=b1(e).pointerEl=new ND[o.type](_1(t.pointer));e.add(r)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var o=b1(e).labelEl=new II(_1(t.label));e.add(o),I1(o,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=b1(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var o=b1(e).labelEl;o&&(o.setStyle(t.label.style),n(o,{x:t.label.x,y:t.label.y}),I1(o,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status");if(!r.get("show")||!a||"hide"===a)return o&&i.remove(o),void(this._handle=null);this._handle||(t=!0,o=this._handle=TD(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){Cx(e.event)},onmousedown:w1(this._onHandleDragMove,this,0,0),drift:w1(this._onHandleDragMove,this),ondragend:w1(this._onHandleDragEnd,this)}),i.add(o)),A1(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");ly(s)||(s=[s,s]),o.scaleX=s[0]/2,o.scaleY=s[1]/2,kN(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){M1(this._axisPointerModel,!t&&this._moveAnimation,this._handle,T1(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(T1(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(T1(i)),b1(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),EN(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function M1(e,t,n,i){C1(b1(n).lastProp,i)||(b1(n).lastProp=i,t?tD(n,i,e):(n.stopAnimation(),n.attr(i)))}function C1(e,t){if(hy(e)&&hy(t)){var n=!0;return ty(t,(function(t,i){n=n&&C1(e[i],t)})),!!n}return e===t}function I1(e,t){e[t.get(["label","show"])?"show":"hide"]()}function T1(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function A1(e,t,n){var i=t.get("z"),o=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=o&&(e.zlevel=o),e.silent=n)}))}var D1=S1;function k1(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle()).fill=null:"shadow"===n&&((t=i.getAreaStyle()).stroke=null),t}function E1(e,t,n,i,o){var r=O1(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=eE(a.get("padding")||0),l=a.getFont(),c=Lw(r,l),u=o.position,p=c.width+s[1]+s[3],d=c.height+s[0]+s[2],h=o.align;"right"===h&&(u[0]-=p),"center"===h&&(u[0]-=p/2);var f=o.verticalAlign;"bottom"===f&&(u[1]-=d),"middle"===f&&(u[1]-=d/2),function(e,t,n,i){var o=i.getWidth(),r=i.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+n,r)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(u,p,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:u[0],y:u[1],style:jD(a,{text:r,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function O1(e,t,n,i,o){e=t.scale.parse(e);var r=t.scale.getLabel({value:e},{precision:o.precision}),a=o.formatter;if(a){var s={value:pB(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};ty(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,o=t&&t.getDataParams(i);o&&s.seriesData.push(o)})),uy(a)?r=a.replace("{value}",r):cy(a)&&(r=a(s))}return r}function L1(e,t,n){var i=[1,0,0,1,0,0];return Nx(i,i,n.rotation),Lx(i,i,n.position),wD([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function N1(e,t,n,i,o,r){var a=hW.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),E1(t,i,o,r,{position:L1(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function P1(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function R1(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function z1(e,t,n,i,o,r){return{cx:e,cy:t,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}var V1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.makeElOption=function(e,t,n,i,o){var r=n.axis,a=r.grid,s=i.get("type"),l=B1(a,r).getOtherAxis(r).getGlobalExtent(),c=r.toGlobalCoord(r.dataToCoord(t,!0));if(s&&"none"!==s){var u=k1(i),p=j1[s](r,c,l);p.style=u,e.graphicKey=p.type,e.pointer=p}N1(t,e,nW(a.model,n),n,i,o)},t.prototype.getHandleTransform=function(e,t,n){var i=nW(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=L1(t.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),s=B1(r,o).getOtherAxis(o).getGlobalExtent(),l="x"===o.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var u=(s[1]+s[0])/2,p=[u,u];p[l]=c[l];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:p,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(D1);function B1(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var j1={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:P1([t,n[0]],[t,n[1]],F1(e))}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:R1([t-i/2,n[0]],[i,o],F1(e))}}};function F1(e){return"x"===e.dim?0:1}var G1=V1,H1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),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}(bE),W1=QS(),U1=ty;function Y1(e,t,n){if(!Cv.node){var i=t.getZr();W1(i).records||(W1(i).records={}),function(e,t){if(W1(e).initialized)return;function n(n,i){e.on(n,(function(n){var o=function(e){var t={showTip:[],hideTip:[]},n=function(i){var o=t[i.type];o?o.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}(t);U1(W1(e).records,(function(e){e&&i(e,n,o.dispatchAction)})),function(e,t){var n,i=e.showTip.length,o=e.hideTip.length;i?n=e.showTip[i-1]:o&&(n=e.hideTip[o-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(o.pendings,t)}))}W1(e).initialized=!0,n("click",sy(X1,"click")),n("mousemove",sy(X1,"mousemove")),n("globalout",q1)}(i,t),(W1(i).records[e]||(W1(i).records[e]={})).handler=n}}function q1(e,t,n){e.handler("leave",null,n)}function X1(e,t,n,i){t.handler(e,n,i)}function $1(e,t){if(!Cv.node){var n=t.getZr();(W1(n).records||{})[e]&&(W1(n).records[e]=null)}}var Z1=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Y1("axisPointer",n,(function(e,t,n){"none"!==o&&("leave"===e||o.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){$1("axisPointer",t)},t.prototype.dispose=function(e,t){$1("axisPointer",t)},t.type="axisPointer",t}(gN),K1=Z1;function J1(e,t){var n,i=[],o=e.seriesIndex;if(null==o||!(n=t.getSeriesByIndex(o)))return{point:[]};var r=n.getData(),a=JS(r,e);if(null==a||a<0||ly(a))return{point:[]};var s=r.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c).dim,p=c.dim,d="x"===u||"radius"===u?1:0,h=r.mapDimension(p),f=[];f[d]=r.get(h,a),f[1-d]=r.get(r.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(r.getValues(ny(l.dimensions,(function(e){return r.mapDimension(e)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var Q1=QS();function e2(e,t,n){var i=e.currTrigger,o=[e.x,e.y],r=e,a=e.dispatchAction||ay(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){r2(o)&&(o=J1({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},t).point);var l=r2(o),c=r.axesInfo,u=s.axesInfo,p="leave"===i||r2(o),d={},h={},f={list:[],map:{}},g={showPointer:sy(n2,h),showTooltip:sy(i2,f)};ty(s.coordSysMap,(function(e,t){var n=l||e.containPoint(o);ty(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,r=function(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}(c,e);if(!p&&n&&(!c||r)){var a=r&&r.value;null!=a||l||(a=i.pointToData(o)),null!=a&&t2(e,a,g,!1,d)}}))}));var m={};return ty(u,(function(e,t){var n=e.linkGroup;n&&!h[t]&&ty(n.axesInfo,(function(t,i){var o=h[i];if(t!==e&&o){var r=o.value;n.mapper&&(r=e.axis.scale.parse(n.mapper(r,o2(t),o2(e)))),m[e.key]=r}}))})),ty(m,(function(e,t){t2(u[t],e,g,!0,d)})),function(e,t,n){var i=n.axesInfo=[];ty(t,(function(t,n){var o=t.axisPointerModel.option,r=e[n];r?(!t.useHandle&&(o.status="show"),o.value=r.value,o.seriesDataIndices=(r.payloadBatch||[]).slice()):!t.useHandle&&(o.status="hide"),"show"===o.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:o.value})}))}(h,u,d),function(e,t,n,i){if(r2(t)||!e.list.length)return void i({type:"hideTip"});var o=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}(f,o,e,a),function(e,t,n){var i=n.getZr(),o="axisPointerLastHighlights",r=Q1(i)[o]||{},a=Q1(i)[o]={};ty(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&ty(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];ty(r,(function(e,t){!a[t]&&l.push(e)})),ty(a,(function(e,t){!r[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(u,0,n),d}}function t2(e,t,n,i,o){var r=e.axis;if(!r.scale.isBlank()&&r.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,i=n.dim,o=e,r=[],a=Number.MAX_VALUE,s=-1;return ty(t.seriesModels,(function(t,l){var c,u,p=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(p,e,n);u=d.dataIndices,c=d.nestestValue}else{if(!(u=t.getData().indicesOfNearest(p[0],e,"category"===n.type?.5:null)).length)return;c=t.getData().get(p[0],u[0])}if(null!=c&&isFinite(c)){var h=e-c,f=Math.abs(h);f<=a&&((f<a||h>=0&&s<0)&&(a=f,s=h,o=c,r.length=0),ty(u,(function(e){r.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:r,snapToValue:o}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==o.seriesIndex&&Zv(o,s[0]),!i&&e.snap&&r.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function n2(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function i2(e,t,n,i){var o=n.payloadBatch,r=t.axis,a=r.model,s=t.axisPointerModel;if(t.triggerTooltip&&o.length){var l=t.coordSys.model,c=SW(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function o2(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function r2(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function a2(e){CW.registerAxisPointerClass("CartesianAxisPointer",G1),e.registerComponentModel(H1),e.registerComponentView(K1),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!ly(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=xW(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},e2)}var s2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.makeElOption=function(e,t,n,i,o){var r=n.axis;"angle"===r.dim&&(this.animationThreshold=Math.PI/18);var a=r.polar,s=a.getOtherAxis(r).getExtent(),l=r.dataToCoord(t),c=i.get("type");if(c&&"none"!==c){var u=k1(i),p=l2[c](r,a,l,s);p.style=u,e.graphicKey=p.type,e.pointer=p}var d=function(e,t,n,i,o){var r=t.axis,a=r.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,p=i.getRadiusAxis().getExtent();if("radius"===r.dim){var d=[1,0,0,1,0,0];Nx(d,d,s),Lx(d,d,[i.cx,i.cy]),l=wD([a,-o],d);var h=t.getModel("axisLabel").get("rotate")||0,f=hW.innerTextLayout(s,h*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var g=p[1];l=i.coordToPoint([g+o,a]);var m=i.cx,v=i.cy;c=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}(t,n,0,a,i.get(["label","margin"]));E1(e,n,i,o,d)},t}(D1);var l2={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:P1(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var o=Math.max(1,e.getBandWidth()),r=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:z1(t.cx,t.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:z1(t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}},c2=s2,u2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(bE),p2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",iM).models[0]},t.type="polarAxis",t}(bE);Qv(p2,mB);var d2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="angleAxis",t}(p2),h2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="radiusAxis",t}(p2),f2=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return G(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(HB);f2.prototype.dataToRadius=HB.prototype.dataToCoord,f2.prototype.radiusToData=HB.prototype.coordToData;var g2=QS(),m2=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return G(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var r=i[0],a=e.dataToCoord(r+1)-e.dataToCoord(r),s=Math.abs(a),l=Lw(null==r?"":r+"",t.getFont(),"center","top"),c=Math.max(l.height,7)/s;isNaN(c)&&(c=1/0);var u=Math.max(0,Math.floor(c)),p=g2(e.model),d=p.lastAutoInterval,h=p.lastTickCount;return null!=d&&null!=h&&Math.abs(d-u)<=1&&Math.abs(h-o)<=1&&d>u?u=d:(p.lastTickCount=o,p.lastAutoInterval=u),u},t}(HB);m2.prototype.dataToAngle=HB.prototype.dataToCoord,m2.prototype.angleToData=HB.prototype.coordToData;var v2=["radius","angle"],y2=function(){function e(e){this.dimensions=v2,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new f2,this._angleAxis=new m2,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),r=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);i.inverse?r=a-360:a=r+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var l=Math.atan2(-n,t)/Math.PI*180,c=l<r?1:-1;l<r||l>a;)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,o=n*n+i*i-1e-4,r=this.r,a=this.r0;return o<=r*r&&o>=a*a}}},e.prototype.convertToPixel=function(e,t,n){return x2(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return x2(t)===this?this.pointToData(n):null},e}();function x2(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var b2=y2;function _2(e,t){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();ty(gB(t,"radius"),(function(e){o.scale.unionExtentFromData(t,e)})),ty(gB(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),lB(i.scale,i.model),lB(o.scale,o.model),"category"===i.type&&!i.onBand){var r=i.getExtent(),a=360/i.scale.count();i.inverse?r[1]+=a:r[1]-=a,i.setExtent(r[0],r[1])}}function w2(e,t){var n;if(e.type=t.get("type"),e.scale=cB(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var i=t.get("startAngle"),o=null!==(n=t.get("endAngle"))&&void 0!==n?n:i+(e.inverse?-360:360);e.setExtent(i,o)}t.axis=e,e.model=t}var S2={dimensions:v2,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var o=new b2(i+"");o.update=_2;var r=o.getRadiusAxis(),a=o.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");w2(r,s),w2(a,l),function(e,t,n){var i=t.get("center"),o=n.getWidth(),r=n.getHeight();e.cx=rS(i[0],o),e.cy=rS(i[1],r);var a=e.getRadiusAxis(),s=Math.min(o,r)/2,l=t.get("radius");null==l?l=[0,"100%"]:ly(l)||(l=[0,l]);var c=[rS(l[0],s),rS(l[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}(o,e,t),n.push(o),e.coordinateSystem=o,o.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",iM).models[0];if("production"!==process.env.NODE_ENV&&!t)throw new Error('Polar "'+by(e.get("polarIndex"),e.get("polarId"),0)+'" not found');e.coordinateSystem=t.coordinateSystem}})),n}},M2=S2,C2=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function I2(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),o=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function T2(e){return e.getRadiusAxis().inverse?0:1}function A2(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var D2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return G(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=ny(n.getViewLabels(),(function(e){e=qv(e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));A2(s),A2(r),ty(C2,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||k2[t](this.group,e,i,r,a,o,s)}),this)}},t.type="angleAxis",t}(CW),k2={axisLine:function(e,t,n,i,o,r){var a,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),c=Math.PI/180,u=l.getExtent(),p=T2(n),d=p?0:1,h=360===Math.abs(u[1]-u[0])?"Circle":"Arc";(a=0===r[d]?new ND[h]({shape:{cx:n.cx,cy:n.cy,r:r[p],startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new xA({shape:{cx:n.cx,cy:n.cy,r:r[p],r0:r[d]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,i,o,r){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[T2(n)],c=ny(i,(function(e){return new TA({shape:I2(n,[l,l+s],e.coord)})}));e.add(vD(c,{style:Kv(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,o,r){if(o.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),c=r[T2(n)],u=[],p=0;p<o.length;p++)for(var d=0;d<o[p].length;d++)u.push(new TA({shape:I2(n,[c,c+l],o[p][d].coord)}));e.add(vD(u,{style:Kv(s.getModel("lineStyle").getLineStyle(),Kv(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,o,r,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),c=l.get("margin"),u=t.get("triggerEvent");ty(a,(function(i,o){var a=l,p=i.tickValue,d=r[T2(n)],h=n.coordToPoint([d+c,i.coord]),f=n.cx,g=n.cy,m=Math.abs(h[0]-f)/d<.3?"center":h[0]>f?"left":"right",v=Math.abs(h[1]-g)/d<.3?"middle":h[1]>g?"top":"bottom";if(s&&s[p]){var y=s[p];hy(y)&&y.textStyle&&(a=new uk(y.textStyle,l,l.ecModel))}var x=new II({silent:hW.isLabelSilent(t),style:jD(a,{x:h[0],y:h[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(x),u){var b=hW.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=i.rawLabel,TI(x).eventData=b}}),this)},splitLine:function(e,t,n,i,o,r){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=0;u<i.length;u++){var p=l++%s.length;c[p]=c[p]||[],c[p].push(new TA({shape:I2(n,r,i[u].coord)}))}for(u=0;u<c.length;u++)e.add(vD(c[u],{style:Kv({stroke:s[u%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,o,r){if(o.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<o.length;l++)for(var c=0;c<o[l].length;c++)s.push(new TA({shape:I2(n,r,o[l][c].coord)}));e.add(vD(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,o,r){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=Math.PI/180,p=-i[0].coord*u,d=Math.min(r[0],r[1]),h=Math.max(r[0],r[1]),f=t.get("clockwise"),g=1,m=i.length;g<=m;g++){var v=g===m?i[0].coord:i[g].coord,y=l++%s.length;c[y]=c[y]||[],c[y].push(new mA({shape:{cx:n.cx,cy:n.cy,r0:d,r:h,startAngle:p,endAngle:-v*u,clockwise:f},silent:!0})),p=-v*u}for(g=0;g<c.length;g++)e.add(vD(c[g],{style:Kv({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},E2=D2,O2=["axisLine","axisTickLabel","axisName"],L2=["splitLine","splitArea","minorSplitLine"],N2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return G(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Zw;this.group.add(i);var o=e.axis,r=o.polar,a=r.getAngleAxis(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),c=a.getExtent()[0],u=o.getExtent(),p=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(r,e,c),d=new hW(e,p);ty(O2,d.add,d),i.add(d.getGroup()),CD(n,i,e),ty(L2,(function(t){e.get([t,"show"])&&!o.scale.isBlank()&&P2[t](this.group,e,r,c,u,s,l)}),this)}},t.type="radiusAxis",t}(CW),P2={splitLine:function(e,t,n,i,o,r){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,c=n.getAngleAxis(),u=Math.PI/180,p=c.getExtent(),d=360===Math.abs(p[1]-p[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var h=[],f=0;f<r.length;f++){var g=l++%s.length;h[g]=h[g]||[],h[g].push(new ND[d]({shape:{cx:n.cx,cy:n.cy,r:Math.max(r[f].coord,0),startAngle:-p[0]*u,endAngle:-p[1]*u,clockwise:c.inverse}}))}for(f=0;f<h.length;f++)e.add(vD(h[f],{style:Kv({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,o,r,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],c=0;c<a.length;c++)for(var u=0;u<a[c].length;u++)l.push(new KT({shape:{cx:n.cx,cy:n.cy,r:a[c][u].coord}}));e.add(vD(l,{style:Kv({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,o,r){if(r.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],u=r[0].coord,p=1;p<r.length;p++){var d=l++%s.length;c[d]=c[d]||[],c[d].push(new mA({shape:{cx:n.cx,cy:n.cy,r0:u,r:r[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),u=r[p].coord}for(p=0;p<c.length;p++)e.add(vD(c[p],{style:Kv({fill:s[p%s.length]},a.getAreaStyle()),silent:!0}))}}};var R2=N2;function z2(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function V2(e,t){return t.dim+e.model.componentIndex}function B2(e,t,n){var i={},o=function(e){var t={};ty(e,(function(e,n){var i=e.getData(),o=e.coordinateSystem,r=o.getBaseAxis(),a=V2(o,r),s=r.getExtent(),l="category"===r.type?r.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[a]=c;var p=z2(e);u[p]||c.autoWidthCount++,u[p]=u[p]||{width:0,maxWidth:0};var d=rS(e.get("barWidth"),l),h=rS(e.get("barMaxWidth"),l),f=e.get("barGap"),g=e.get("barCategoryGap");d&&!u[p].width&&(d=Math.min(c.remainedWidth,d),u[p].width=d,c.remainedWidth-=d),h&&(u[p].maxWidth=h),null!=f&&(c.gap=f),null!=g&&(c.categoryGap=g)}));var n={};return ty(t,(function(e,t){n[t]={};var i=e.stacks,o=e.bandWidth,r=rS(e.categoryGap,o),a=rS(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-r)/(l+(l-1)*a);c=Math.max(c,0),ty(i,(function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),c=(s-r)/(l+(l-1)*a),c=Math.max(c,0);var u,p=0;ty(i,(function(e,t){e.width||(e.width=c),u=e,p+=e.width*(1+a)})),u&&(p-=u.width*a);var d=-p/2;ty(i,(function(e,i){n[t][i]=n[t][i]||{offset:d,width:e.width},d+=e.width*(1+a)}))})),n}(oy(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),a=V2(n,r),s=z2(e),l=o[a][s],c=l.offset,u=l.width,p=n.getOtherAxis(r),d=e.coordinateSystem.cx,h=e.coordinateSystem.cy,f=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=t.mapDimension(p.dim),v=t.mapDimension(r.dim),y=nV(t,m),x="radius"!==r.dim||!e.get("roundCap",!0),b=p.dataToCoord(0),_=0,w=t.count();_<w;_++){var S=t.get(m,_),M=t.get(v,_),C=S>=0?"p":"n",I=b;y&&(i[s][M]||(i[s][M]={p:b,n:b}),I=i[s][M][C]);var T=void 0,A=void 0,D=void 0,k=void 0;if("radius"===p.dim){var E=p.dataToCoord(S)-b,O=r.dataToCoord(M);Math.abs(E)<f&&(E=(E<0?-1:1)*f),T=I,A=I+E,k=(D=O-c)-u,y&&(i[s][M][C]=A)}else{var L=p.dataToCoord(S,x)-b,N=r.dataToCoord(M);Math.abs(L)<g&&(L=(L<0?-1:1)*g),A=(T=N+c)+u,D=I,k=I+L,y&&(i[s][M][C]=k)}t.setItemLayout(_,{cx:d,cy:h,r0:T,r:A,startAngle:-D*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:D>=k})}}}))}var j2={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},F2={splitNumber:5},G2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="polar",t}(gN);function H2(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,o={},r=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=["vertical"===a?c.vertical[r]:l[0],"horizontal"===a?c.horizontal[r]:l[3]];o.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),by(t.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var u=t.rotate;return null==u&&(u=e.get(["axisLabel","rotate"])),o.labelRotation="top"===r?-u:u,o.z2=1,o}var W2=["axisLine","axisTickLabel","axisName"],U2=["splitArea","splitLine"],Y2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return G(t,e),t.prototype.render=function(t,n,i,o){var r=this.group;r.removeAll();var a=this._axisGroup;this._axisGroup=new Zw;var s=H2(t),l=new hW(t,s);ty(W2,l.add,l),r.add(this._axisGroup),r.add(l.getGroup()),ty(U2,(function(e){t.get([e,"show"])&&q2[e](this,this.group,this._axisGroup,t)}),this),CD(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,o)},t.prototype.remove=function(){AW(this)},t.type="singleAxis",t}(CW),q2={splitLine:function(e,t,n,i){var o=i.axis;if(!o.scale.isBlank()){var r=i.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),c=i.coordinateSystem.getRect(),u=o.isHorizontal(),p=[],d=0,h=o.getTicksCoords({tickModel:r}),f=[],g=[],m=0;m<h.length;++m){var v=o.toGlobalCoord(h[m].coord);u?(f[0]=v,f[1]=c.y,g[0]=v,g[1]=c.y+c.height):(f[0]=c.x,f[1]=v,g[0]=c.x+c.width,g[1]=v);var y=new TA({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});xD(y.shape,l);var x=d++%s.length;p[x]=p[x]||[],p[x].push(y)}var b=a.getLineStyle(["color"]);for(m=0;m<p.length;++m)t.add(vD(p[m],{style:Kv({stroke:s[m%s.length]},b),silent:!0}))}},splitArea:function(e,t,n,i){TW(e,n,i,i)}},X2=Y2,$2=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),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}(bE);Qv($2,mB.prototype);var Z2=$2,K2=function(e){function t(t,n,i,o,r){var a=e.call(this,t,n,i)||this;return a.type=o||"value",a.position=r||"bottom",a}return G(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(HB),J2=K2,Q2=["single"],e5=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=Q2,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,o=new J2(i,cB(e),[0,0],e.get("type"),e.get("position")),r="category"===o.type;o.onBand=r&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();ty(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),lB(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=dE({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],o=t.inverse?1:0;t.setExtent(i[o],i[1-o]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],o=e.isHorizontal();e.toGlobalCoord=o?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=o?function(e){return e-t}:function(e){return i-e+t}},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(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[o]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){return t5(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return t5(t)===this?this.pointToData(n):null},e}();function t5(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var n5={create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,o){var r=new e5(i,e,t);r.name="single_"+o,r.resize(i,t),i.coordinateSystem=r,n.push(r)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",iM).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n},dimensions:Q2},i5=["x","y"],o5=["width","height"],r5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.makeElOption=function(e,t,n,i,o){var r=n.axis,a=r.coordinateSystem,s=l5(a,1-s5(r)),l=a.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=k1(i),p=a5[c](r,l,s);p.style=u,e.graphicKey=p.type,e.pointer=p}N1(t,e,H2(n),n,i,o)},t.prototype.getHandleTransform=function(e,t,n){var i=H2(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=L1(t.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var o=n.axis,r=o.coordinateSystem,a=s5(o),s=l5(r,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var c=l5(r,1-a),u=(c[1]+c[0])/2,p=[u,u];return p[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},t}(D1),a5={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:P1([t,n[0]],[t,n[1]],s5(e))}},shadow:function(e,t,n){var i=e.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:R1([t-i/2,n[0]],[i,o],s5(e))}}};function s5(e){return e.isHorizontal()?0:1}function l5(e,t){var n=e.getRect();return[n[i5[t]],n[i5[t]]+n[o5[t]]]}var c5=r5,u5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="single",t}(gN);function p5(e,t){var n,i=e.cellSize;1===(n=ly(i)?i:e.cellSize=[i,i]).length&&(n[1]=n[0]);var o=ny([0,1],(function(e){return function(e,t){return null!=e[cE[t][0]]||null!=e[cE[t][1]]&&null!=e[cE[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));gE(e,t,{type:"box",ignoreSize:o})}var d5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(t,n,i){var o=mE(t);e.prototype.init.apply(this,arguments),p5(t,o)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),p5(this.option,t)},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}(bE),h5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,r=o.getRangeInfo(),a=o.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,r,i),this._renderLines(e,r,a,i),this._renderYearText(e,r,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,r,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new uI({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var o=this,r=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=r.getDateInfo(t.start.y+"-"+t.start.m));var p=c.date;p.setMonth(p.getMonth()+1),c=r.getDateInfo(p)}function d(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);var l=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(l[0]),o._blpoints.push(l[l.length-1]),s&&o._drawSplitline(l,a,i)}d(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-t/2,i[1][o]=i[1][o]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new MA({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,o=i.getDateInfo(t),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},t.prototype._formatterLabel=function(e,t){return uy(e)&&e?function(e,t,n){return ty(t,(function(t,i){e=e.replace("{"+i+"}",n?gx(t):t)})),e}(e,t):cy(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,o){var r=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=o,s=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,s=["center","top"]):a-=o;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:r,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var r=o.get("margin"),a=o.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,p={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var h=o.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(h,f),m=new II({z2:30,style:jD(o,{text:g})});m.attr(this._yearTextPositionControl(m,p[a],n,a,r)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,i,o){var r="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=o,t&&(r="center"),"start"===i&&(a="bottom")):(s+=o,t&&(a="middle"),"start"===i&&(r="right")),{x:s,y:l,align:r,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),l=o.get("align"),c=[this._tlpoints,this._blpoints];r&&!uy(r)||(r&&(t=_k(r)||t),r=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,p="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,h=0;h<c[u].length-1;h++){var f=c[u][h].slice(),g=this._firstDayOfMonth[h];if(d){var m=this._firstDayPoints[h];f[p]=(m[p]+c[0][h+1][p])/2}var v=o.get("formatter"),y=r[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},b=this._formatterLabel(v,x),_=new II({z2:30,style:Zv(jD(o,{text:b}),this._monthTextPositionControl(f,d,n,s,a))});i.add(_)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,o){var r="center",a="middle",s=e[0],l=e[1],c="start"===n;return"horizontal"===t?(s=s+i+(c?1:-1)*o[0]/2,r=c?"right":"left"):(l=l+i+(c?1:-1)*o[1]/2,a=c?"bottom":"top"),{x:s,y:l,align:r,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,o){var r=e.getModel("dayLabel");if(r.get("show")){var a=e.coordinateSystem,s=r.get("position"),l=r.get("nameMap"),c=r.get("margin"),u=a.getFirstDayOfWeek();if(!l||uy(l))l&&(t=_k(l)||t),l=t.get(["time","dayOfWeekShort"])||ny(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}));var p=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];c=rS(c,Math.min(d[1],d[0])),"start"===s&&(p=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var h=0;h<7;h++){var f,g=a.getNextNDay(p,h),m=a.dataToRect([g.time],!1).center;f=Math.abs((h+u)%7);var v=new II({z2:30,style:Zv(jD(r,{text:l[f]}),this._weekTextPositionControl(m,i,s,c,d))});o.add(v)}}},t.type="calendar",t}(gN),f5=h5,g5=864e5,m5=function(){function e(t,n,i){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(e){var t=(e=mS(e)).getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,o=e.getDate(),r=o<10?"0"+o:""+o,a=e.getDay();return{y:t+"",m:i,d:r,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+i+"-"+r,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){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"],o=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];ty([0,1],(function(e){c(o,e)&&(r[i[e]]=o[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=dE(r,s);function c(e,t){return null!=e[t]&&"auto"!==e[t]}ty([0,1],(function(e){c(o,e)||(o[e]=l[i[e]]/a[e])})),this._sw=o[0],this._sh=o[1]},e.prototype.dataToPoint=function(e,t){ly(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+g5))return[NaN,NaN];var r=n.day,a=this._getRangeInfo([i.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+r*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);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(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=v5(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=v5(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(ly(t)&&1===t.length&&(t=t[0]),ly(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),o=i.date;o.setMonth(o.getMonth()+1);var r=this.getNextNDay(o,-1);e=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return"production"!==process.env.NODE_ENV&&Yv("Invalid date range."),t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/g5)-Math.floor(n[0].time/g5)+1,o=new Date(n[0].time),r=o.getDate(),a=n[1].date.getDate();o.setDate(r+i-1);var s=o.getDate();if(s!==a)for(var l=o.getTime()-n[1].time>0?1:-1;(s=o.getDate())!==a&&(o.getTime()-n[1].time)*l>0;)i-=l,o.setDate(s-l);var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var o=7*(e-1)-i.fweek+t,r=new Date(i.start.time);return r.setDate(+i.start.d+o),this.getDateInfo(r)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(t){var n=new e(t);i.push(n),t.coordinateSystem=n})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function v5(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var y5=m5;function x5(e,t){var n;return ty(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var b5=["transition","enterFrom","leaveTo"],_5=b5.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function w5(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?b5:_5,o=0;o<i.length;o++){var r=i[o];null==e[r]&&null!=t[r]&&(e[r]=t[r])}}var S5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return G(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,o=n.elements=t?[]:n.elements,r=[];this._flatten(i,r,null);var a=WS(o,r,"normalMerge"),s=this._elOptionsToUpdate=[];ty(a,(function(e,t){var n=e.newOption;"production"!==process.env.NODE_ENV&&Cy(hy(n)||e.existing,"Empty graphic option definition"),n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var i=Zv({},n),o=e[t],r=n.$action||"merge";if("merge"===r)if(o){if("production"!==process.env.NODE_ENV){var a=n.type;Cy(!a||o.type===a,'Please set $action: "replace" to change `type`')}Xv(o,i,!0),gE(o,i,{ignoreSize:!0}),vE(n,o),w5(n,o),w5(n,o,"shape"),w5(n,o,"style"),w5(n,o,"extra"),n.clipPath=o.clipPath}else e[t]=i;else"replace"===r?e[t]=i:"remove"===r&&o&&(e[t]=null)}(o,t,n),function(e,t){if(e&&(e.hv=t.hv=[x5(t,["left","right"]),x5(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(o[t],n))}),this),n.elements=oy(o,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){ty(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(bE),M5={path:null,compoundPath:null,group:Zw,image:nI,text:II},C5=QS(),I5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(){this._elMap=Ly()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,o=e.get("z"),r=e.get("zlevel");ty(t,(function(t){var a=qS(t.id,null),s=null!=a?n.get(a):null,l=qS(t.parentId,null),c=null!=l?n.get(l):i,u=t.type,p=t.style;"text"===u&&p&&t.hv&&t.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=t.textContent,h=t.textConfig;if(p&&h0(p,u,!!h,!!d)){var f=f0(p,u,!0);!h&&f.textConfig&&(h=t.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=function(e){return e=Zv({},e),ty(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(lE),(function(t){delete e[t]})),e}(t);"production"!==process.env.NODE_ENV&&s&&Cy(c===s.parent,"Changing parent is not supported.");var m=t.$action||"merge",v="merge"===m,y="replace"===m;if(v){var x=s;(I=!s)?x=A5(a,c,t.type,n):(x&&(C5(x).isNew=!1),j0(x)),x&&(I0(x,g,e,{isInit:I}),k5(x,t,o,r))}else if(y){D5(s,t,n,e);var b=A5(a,c,t.type,n);b&&(I0(b,g,e,{isInit:!0}),k5(b,t,o,r))}else"remove"===m&&(T0(s,t),D5(s,t,n,e));var _=n.get(a);if(_&&d)if(v){var w=_.getTextContent();w?w.attr(d):_.setTextContent(new II(d))}else y&&_.setTextContent(new II(d));if(_){var S=t.clipPath;if(S){var M=S.type,C=void 0,I=!1;if(v){var T=_.getClipPath();C=(I=!T||C5(T).type!==M)?T5(M):T}else y&&(I=!0,C=T5(M));_.setClipPath(C),I0(C,S,e,{isInit:I}),F0(C,S.keyframeAnimation,e)}var A=C5(_);_.setTextConfig(h),A.option=t,function(e,t,n){var i=TI(e).eventData;e.silent||e.ignore||i||(i=TI(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});i&&(i.info=n.info)}(_,e,t),ED({el:_,componentModel:e,itemName:_.name,itemTooltipOption:t.tooltip}),F0(_,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,o=this._elMap,r=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){if((f=null!=(h=qS((d=n[l]).id,null))?o.get(h):null)&&f.isGroup){var c=(g=f.parent)===i,u=C5(f),p=C5(g);u.width=rS(u.option.width,c?r:p.width)||0,u.height=rS(u.option.height,c?a:p.height)||0}}for(l=n.length-1;l>=0;l--){var d,h,f;if(f=null!=(h=qS((d=n[l]).id,null))?o.get(h):null){var g=f.parent,m=(p=C5(g),{}),v=hE(f,d,g===i?{width:r,height:a}:{width:p.width,height:p.height},null,{hv:d.hv,boundingMode:d.bounding},m);if(!C5(f).isNew&&v){for(var y=d.transition,x={},b=0;b<s.length;b++){var _=s[b],w=m[_];y&&(D0(y)||Jv(y,_)>=0)?x[_]=w:f[_]=w}tD(f,x,e,0)}else f.attr(m)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){D5(n,C5(n).option,t,e._lastGraphicModel)})),this._elMap=Ly()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(gN);function T5(e){"production"!==process.env.NODE_ENV&&Cy(e,"graphic type MUST be set");var t=zy(M5,e)?M5[e]:hD(e);"production"!==process.env.NODE_ENV&&Cy(t,"graphic type "+e+" can not be found");var n=new t({});return C5(n).type=e,n}function A5(e,t,n,i){var o=T5(n);return t.add(o),i.set(e,o),C5(o).id=e,C5(o).isNew=!0,o}function D5(e,t,n,i){e&&e.parent&&("group"===e.type&&e.traverse((function(e){D5(e,t,n,i)})),A0(e,t,i),n.removeKey(C5(e).id))}function k5(e,t,n,i){e.isGroup||ty([["cursor",qM.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];zy(t,i)?e[i]=_y(t[i],n[1]):null==e[i]&&(e[i]=n[1])})),ty(ry(t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=cy(i)?i:null}})),zy(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var E5=["x","y","radius","angle","single"],O5=["cartesian2d","polar","singleAxis"];function L5(e){return"production"!==process.env.NODE_ENV&&Cy(e),e+"Axis"}function N5(e,t){var n,i=Ly(),o=[],r=Ly();e.eachComponent({mainType:"dataZoom",query:t},(function(e){r.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!r.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var o=i.get(e);o&&o[n]&&(t=!0)})),t}(e)&&(s(e),n=!0)}function s(e){r.set(e.uid,!0),o.push(e),e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return o}function P5(e){var t=e.ecModel,n={infoList:[],infoMap:Ly()};return e.eachTargetAxis((function(e,i){var o=t.getComponent(L5(e),i);if(o){var r=o.getCoordSysModel();if(r){var a=r.uid,s=n.infoMap.get(a);s||(s={model:r,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(o)}}})),n}var R5=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),z5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return G(t,e),t.prototype.init=function(e,t,n){var i=V5(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=V5(e);Xv(this.option,e,!0),Xv(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;ty([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Ly();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return ty(E5,(function(n){var i=this.getReferringComponents(L5(n),oM);if(i.specified){t=!0;var o=new R5;ty(i.models,(function(e){o.add(e.componentIndex)})),e.set(n,o)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var o="vertical"===t?"y":"x";r(n.findComponents({mainType:o+"Axis"}),o)}i&&r(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function r(t,n){var o=t[0];if(o){var r=new R5;if(r.add(o.componentIndex),e.set(n,r),i=!1,"x"===n||"y"===n){var a=o.getReferringComponents("grid",iM).models[0];a&&ty(t,(function(e){o.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",iM).models[0]&&r.add(e.componentIndex)}))}}}i&&ty(E5,(function(t){if(i){var o=n.findComponents({mainType:L5(t),filter:function(e){return"category"===e.get("type",!0)}});if(o[0]){var r=new R5;r.add(o[0].componentIndex),e.set(t,r),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");ty([["start","startValue"],["end","endValue"]],(function(i,o){var r=null!=e[i[0]],a=null!=e[i[1]];r&&!a?t[o]="percent":!r&&a?t[o]="value":n?t[o]=n[o]:r&&(t[o]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(L5(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){ty(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){"production"!==process.env.NODE_ENV&&Cy(e&&null!=t);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(L5(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;ty([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;ty(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return"production"!==process.env.NODE_ENV&&Cy(this._orient),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}(bE);function V5(e){var t={};return ty(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var B5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="dataZoom.select",t}(z5),j5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(gN),F5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="dataZoom.select",t}(j5),G5=ty,H5=sS,W5=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(function(e){var t=e.get("coordinateSystem");return Jv(O5,t)>=0}(t)){var n=L5(this._dimName),i=t.getReferringComponents(n,iM).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return qv(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),r=[0,100],a=[],s=[];G5(["start","end"],(function(l,c){var u=e[l],p=e[l+"Value"];"percent"===o[c]?(null==u&&(u=r[c]),p=i.parse(oS(u,r,n))):(t=!0,u=oS(p=null==p?n[c]:i.parse(p),n,r)),s[c]=null==p||isNaN(p)?n[c]:p,a[c]=null==u||isNaN(u)?r[c]:u})),H5(s),H5(a);var l=this._minMaxSpan;function c(e,t,n,o,r){var a=r?"Span":"ValueSpan";fZ(0,e,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)t[s]=oS(e[s],n,o,!0),r&&(t[s]=i.parse(t[s]))}return t?c(s,a,n,r,!1):c(a,s,r,n,!0),{valueWindow:s,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var i=[1/0,-1/0];G5(n,(function(e){!function(e,t,n){t&&ty(gB(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}(i,e.getData(),t)}));var o=e.getAxisModel(),r=rB(o.axis.scale,o,i).calculate();return[r.min,r.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=e.get("filterMode"),r=this._valueWindow;"none"!==o&&G5(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===o){var a=t.getStore(),s=ny(i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,o,l=0;l<i.length;l++){var c=a.get(s[l],e),u=!isNaN(c),p=c<r[0],d=c>r[1];if(u&&!p&&!d)return!0;u&&(o=!0),p&&(t=!0),d&&(n=!0)}return o&&t&&n}))}else G5(i,(function(n){if("empty"===o)e.setData(t=t.map(n,(function(e){return function(e){return e>=r[0]&&e<=r[1]}(e)?e:NaN})));else{var i={};i[n]=r,t.selectRange(i)}}));G5(i,(function(e){t.setApproximateExtent(r,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;G5(["min","max"],(function(i){var o=t.get(i+"Span"),r=t.get(i+"ValueSpan");null!=r&&(r=this.getAxisModel().axis.scale.parse(r)),null!=r?o=oS(n[0]+r,n,[0,100],!0):null!=o&&(r=oS(o,[0,100],n,!0)-n[0]),e[i+"Span"]=o,e[i+"ValueSpan"]=r}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=uS(n,[0,500]);i=Math.min(i,20);var o=e.axis.scale.rawExtentInfo;0!==t[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},e}();var U5={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var r=e.getComponent(L5(i),o);t(i,o,r,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,o,r){o.__dzAxisProxy||(o.__dzAxisProxy=new W5(t,i,r,e),n.push(o.__dzAxisProxy))}));var i=Ly();return ty(n,(function(e){ty(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var Y5=!1;function q5(e){Y5||(Y5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,U5),function(e){e.registerAction("dataZoom",(function(e,t){ty(N5(t,e),(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function X5(e){e.registerComponentModel(B5),e.registerComponentView(F5),q5(e)}var $5=function(){},Z5={};function K5(e,t){Z5[e]=t}function J5(e){return Z5[e]}var Q5=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;ty(this.option.feature,(function(e,n){var i=J5(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Xv(e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#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}(bE);function e3(e,t){var n=eE(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new uI({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}var t3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.render=function(e,t,n,i){var o=this.group;if(o.removeAll(),e.get("show")){var r=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),c=[];ty(s,(function(e,t){c.push(t)})),new Cz(this._featureNames||[],c).add(u).update(u).remove(sy(u,null)).execute(),this._featureNames=c,function(e,t,n){var i=t.getBoxLayoutParams(),o=t.get("padding"),r={width:n.getWidth(),height:n.getHeight()},a=dE(i,r,o);pE(t.get("orient"),e,t.get("itemGap"),a.width,a.height),hE(e,i,r,o)}(o,e,n),o.add(e3(o.getBoundingRect(),e)),a||o.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!cy(l)&&t){var c=l.style||(l.style={}),u=Lw(t,II.makeFont(c)),p=e.x+o.x,d=!1;e.y+o.y+r+u.height>n.getHeight()&&(a.position="top",d=!0);var h=d?-5-u.height:r+10;p+u.width/2>n.getWidth()?(a.position=["100%",h],c.align="right"):p-u.width/2<0&&(a.position=[0,h],c.align="left")}}))}function u(u,p){var d,h=c[u],f=c[p],g=s[h],m=new uk(g,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===h&&(g.title=i.newTitle),h&&!f){if(function(e){return 0===e.indexOf("my")}(h))d={onclick:m.option.onclick,featureName:h};else{var v=J5(h);if(!v)return;d=new v}l[h]=d}else if(!(d=l[f]))return;d.uid=dk("toolbox-feature"),d.model=m,d.ecModel=t,d.api=n;var y=d instanceof $5;h||!f?!m.get("show")||y&&d.unusable?y&&d.remove&&d.remove(t,n):(!function(i,s,l){var c,u,p=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),h=s instanceof $5&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};uy(h)?(c={})[l]=h:c=h;uy(f)?(u={})[l]=f:u=f;var g=i.iconPaths={};ty(c,(function(l,c){var h=TD(l,{},{x:-r/2,y:-r/2,width:r,height:r});h.setStyle(p.getItemStyle()),h.ensureState("emphasis").style=d.getItemStyle();var f=new II({style:{text:u[c],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:YD({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},t)},ignore:!0});h.setTextContent(f),ED({el:h,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),h.__title=u[c],h.on("mouseover",(function(){var t=d.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),h.setTextConfig({position:d.get("textPosition")||i}),f.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",c])?aT:sT)(h),o.add(h),h.on("click",ay(s.onclick,s,t,n,c)),g[c]=h}))}(m,d,h),m.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?aT:sT)(i[e])},d instanceof $5&&d.render&&d.render(m,t,n,i)):y&&d.dispose&&d.dispose(t,n)}},t.prototype.updateView=function(e,t,n,i){ty(this._features,(function(e){e instanceof $5&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){ty(this._features,(function(n){n instanceof $5&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){ty(this._features,(function(n){n instanceof $5&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(gN);var n3=t3,i3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=Cv.browser;if(cy(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+r,l.target="_blank",l.href=a;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var u=a.split(","),p=u[0].indexOf("base64")>-1,d=o?decodeURIComponent(u[1]):u[1];p&&(d=window.atob(d));var h=i+"."+r;if(window.navigator.msSaveOrOpenBlob){for(var f=d.length,g=new Uint8Array(f);f--;)g[f]=d.charCodeAt(f);var m=new Blob([g]);window.navigator.msSaveOrOpenBlob(m,h)}else{var v=document.createElement("iframe");document.body.appendChild(v);var y=v.contentWindow,x=y.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),y.focus(),x.execCommand("SaveAs",!0,h),document.body.removeChild(v)}}else{var b=n.get("lang"),_='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',w=window.open();w.document.write(_),w.document.title=i}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}($5),o3=i3,r3="__ec_magicType_stack__",a3=[["line","bar"],["stack"]],s3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return ty(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var i=this.model,o=i.get(["seriesIndex",n]);if(l3[n]){var r,a={series:[]};ty(a3,(function(e){Jv(e,n)>=0&&ty(e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},(function(e){var t=e.subType,o=e.id,r=l3[n](t,o,e,i);r&&(Kv(r,e.option),a.series.push(r));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim+"Axis",u=e.getReferringComponents(c,iM).models[0].componentIndex;a[c]=a[c]||[];for(var p=0;p<=u;p++)a[c][u]=a[c][u]||{};a[c][u].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(r=Xv({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:r,featureName:"magicType"})}},t}($5),l3={line:function(e,t,n,i){if("bar"===e)return Xv({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return Xv({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var o=n.get("stack")===r3;if("line"===e||"bar"===e)return i.setIconStatus("stack",o?"normal":"emphasis"),Xv({id:t,stack:o?"":r3},i.get(["option","stack"])||{},!0)}};hz({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var c3=s3,u3=new Array(60).join("-"),p3="\t";function d3(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var h3=new RegExp("["+p3+"]+","g");function f3(e,t){var n=e.split(new RegExp("\n*"+u3+"\n*","g")),i={series:[]};return ty(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(p3)>=0)return!0}(e)){var o=function(e){for(var t=e.split(/\n+/g),n=[],i=ny(d3(t.shift()).split(h3),(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var r=d3(t[o]).split(h3);n.push(r.shift());for(var a=0;a<r.length;a++)i[a]&&(i[a].data[o]=r[a])}return{series:i,categories:n}}(e),r=t[n],a=r.axisDim+"Axis";r&&(i[a]=i[a]||[],i[a][r.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{o=function(e){for(var t=e.split(/\n+/g),n=d3(t.shift()),i=[],o=0;o<t.length;o++){var r=d3(t[o]);if(r){var a=r.split(h3),s="",l=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),i[o]={name:s,value:[]},l=i[o].value):l=i[o]=[];for(var u=0;u<a.length;u++)l.push(+a[u]);1===l.length&&(c?i[o].value=l[0]:i[o]=l[0])}}return{name:n,data:i}}(e);i.series.push(o)}})),i}var g3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var r=document.createElement("h4"),a=i.get("lang")||[];r.innerHTML=a[0]||i.get("title"),r.style.cssText="margin:10px 20px",r.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var c=i.get("optionToContent"),u=i.get("contentToOption"),p=function(e){var t,n,i,o=function(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var o=e.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(e);else{var r=o.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;t[a]||(t[a]={categoryAxis:r,valueAxis:o.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}(e);return{value:oy([(n=o.seriesGroupByCategoryAxis,i=[],ty(n,(function(e,t){var n=e.categoryAxis,o=e.valueAxis.dim,r=[" "].concat(ny(e.series,(function(e){return e.name}))),a=[n.model.getCategories()];ty(e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var s=[r.join(p3)],l=0;l<a[0].length;l++){for(var c=[],u=0;u<a.length;u++)c.push(a[u][l]);s.push(c.join(p3))}i.push(s.join("\n"))})),i.join("\n\n"+u3+"\n\n")),(t=o.other,ny(t,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,o=arguments[e-1],r=t.getName(o),a=0;a<e-1;a++)i[a]=arguments[a];n.push((r?r+p3:"")+i.join(p3))})),n.join("\n")})).join("\n\n"+u3+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+u3+"\n\n"),meta:o.meta}}(e);if(cy(c)){var d=c(t.getOption());uy(d)?s.innerHTML=d:my(d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var h=l.style;h.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",h.color=i.get("textColor"),h.borderColor=i.get("textareaBorderColor"),h.backgroundColor=i.get("textareaColor"),l.value=p.value,s.appendChild(l)}var f=p.meta,g=document.createElement("div");g.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",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){n.removeChild(o),x._dom=null}Mx(v,"click",b),Mx(y,"click",(function(){if(null==u&&null!=c||null!=u&&null==c)return"production"!==process.env.NODE_ENV&&kS("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),void b();var e;try{e=cy(u)?u(s,t.getOption()):f3(l.value,f)}catch(e){throw b(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),b()})),v.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=v.style.cssText=m,!i.get("readOnly")&&g.appendChild(y),g.appendChild(v),o.appendChild(r),o.appendChild(s),o.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}($5);function m3(e,t){return ny(e,(function(e,n){var i=t&&t[n];if(hy(i)&&!ly(i)){hy(e)&&!ly(e)||(e={value:e});var o=null!=i.name&&null==e.name;return e=Kv(e,i),o&&delete e.name,e}return e}))}hz({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];ty(e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var o=i.get("data");n.push({name:e.name,data:m3(e.data,o)})}else n.push(Zv({type:"scatter"},e))})),t.mergeOption(Kv({series:n},e.newOption))}));var v3=g3,y3=ty,x3=QS();function b3(e){var t=x3(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var _3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.onclick=function(e,t){!function(e){x3(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}($5);hz({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var w3=_3,S3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],M3=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var o=I3(t,e);ty(T3,(function(e,t){(!n||!n.include||Jv(n.include,t)>=0)&&e(o,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=k3[e.brushType](0,n,t);e.__rangeOffset={offset:O3[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){ty(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&ty(i.coordSyses,(function(i){var o=k3[e.brushType](1,i,e.range,!0);n(e,o.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){ty(e,(function(e){var n,i,o,r,a,s=this.findTargetInfo(e,t);if("production"!==process.env.NODE_ENV&&(Cy(!s||!0===s||e.coordRange,"coordRange must be specified when coord index specified."),Cy(!s||!0!==s||e.range,"range must be specified in global brush.")),e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var l=k3[e.brushType](0,s.coordSys,e.coordRange),c=e.__rangeOffset;e.range=c?O3[e.brushType](l.values,c.offset,(n=l.xyMinMax,i=c.xyMinMax,o=N3(n),r=N3(i),a=[o[0]/r[0],o[1]/r[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},e.prototype.makePanelOpts=function(e,t){return ny(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:_K(i),isTargetByCursor:SK(i,e,n.coordSysModel),getLinearBrushOtherExtent:wK(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Jv(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=I3(t,e),o=0;o<n.length;o++){var r=n[o],a=e.panelId;if(a){if(r.panelId===a)return r}else for(var s=0;s<A3.length;s++)if(A3[s](i,r))return r}return!0},e}();function C3(e){return e[0]>e[1]&&e.reverse(),e}function I3(e,t){return tM(e,t,{includeMainTypes:S3})}var T3={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,o=e.gridModels,r=Ly(),a={},s={};(n||i||o)&&(ty(n,(function(e){var t=e.axis.grid.model;r.set(t.id,t),a[t.id]=!0})),ty(i,(function(e){var t=e.axis.grid.model;r.set(t.id,t),s[t.id]=!0})),ty(o,(function(e){r.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),r.each((function(e){var o=e.coordinateSystem,r=[];ty(o.getCartesians(),(function(e,t){(Jv(n,e.getAxis("x").model)>=0||Jv(i,e.getAxis("y").model)>=0)&&r.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:D3.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){ty(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:D3.geo})}))}},A3=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,o=e.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],D3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(_D(e)),t}},k3={lineX:sy(E3,0),lineY:sy(E3,1),rect:function(e,t,n,i){var o=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),r=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[C3([o[0],r[0]]),C3([o[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:ny(n,(function(n){var r=e?t.pointToData(n,i):t.dataToPoint(n,i);return o[0][0]=Math.min(o[0][0],r[0]),o[1][0]=Math.min(o[1][0],r[1]),o[0][1]=Math.max(o[0][1],r[0]),o[1][1]=Math.max(o[1][1],r[1]),r})),xyMinMax:o}}};function E3(e,t,n,i){"production"!==process.env.NODE_ENV&&Cy("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var o=n.getAxis(["x","y"][e]),r=C3(ny([0,1],(function(e){return t?o.coordToData(o.toLocalCoord(i[e]),!0):o.toGlobalCoord(o.dataToCoord(i[e]))}))),a=[];return a[e]=r,a[1-e]=[NaN,NaN],{values:r,xyMinMax:a}}var O3={lineX:sy(L3,0),lineY:sy(L3,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return ny(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function L3(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function N3(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var P3,R3,z3=M3,V3=ty,B3=VS+"toolbox-dataZoom_",j3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new bK(n.getZr()),this._brushController.on("brush",ay(this._onBrush,this)).mount()),function(e,t,n,i,o){var r=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=r,e.setIconStatus("zoom",r?"emphasis":"normal");var a=new z3(G3(e),t,{include:["grid"]}),s=a.makePanelOpts(o,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,i,n),function(e,t){e.setIconStatus("back",function(e){return b3(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){F3[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new z3(G3(this.model),i,{include:["grid"]}).matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),function(e,t){var n=b3(e);y3(t,(function(t,i){for(var o=n.length-1;o>=0&&!n[o][i];o--);if(o<0){var r=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(r){var a=r.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(t)}(i,n),this._dispatchZoomAction(n)}function o(e,t,o){var r=t.getAxis(e),a=r.model,s=function(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(i=n)})),i}(e,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(o=fZ(0,o.slice(),r.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:o[0],endValue:o[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];V3(e,(function(e,n){t.push(qv(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}($5),F3={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=b3(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return y3(n,(function(e,n){for(var o=t.length-1;o>=0;o--)if(e=t[o][n]){i[n]=e;break}})),i}(this.ecModel))}};function G3(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}P3="dataZoom",R3=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),o=[],r=tM(e,G3(i));return V3(r.xAxisModels,(function(e){return a(e,"xAxis","xAxisIndex")})),V3(r.yAxisModels,(function(e){return a(e,"yAxis","yAxisIndex")})),o}function a(e,t,n){var r=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:B3+t+r};a[n]=r,o.push(a)}},Cy(null==jE.get(P3)&&R3),jE.set(P3,R3);var H3=j3;var W3=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),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}(bE);function U3(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function Y3(e){if(Cv.domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var q3=Y3(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function X3(e,t){if(!e)return t;t=Qk(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var $3=X3(Y3(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Z3=X3(q3,"transform"),K3="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Cv.transform3dSupported?"will-change:transform;":"");function J3(e,t,n){var i=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!Cv.transformSupported)return n?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var r=Cv.transform3dSupported,a="translate"+(r?"3d":"")+"("+i+","+o+(r?",0":"")+")";return n?"top:0;left:0;"+Z3+":"+a+";":[["top",0],["left",0],[q3,a]]}function Q3(e,t,n){var i=[],o=e.get("transitionDuration"),r=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),p=QL(e,"html"),d=l+"px "+c+"px "+a+"px "+s;return i.push("box-shadow:"+d),t&&o&&i.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,o="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,o+=Cv.transformSupported?","+Z3+i:",left"+i+",top"+i),$3+":"+o}(o,n)),r&&i.push("background-color:"+r),ty(["width","color","radius"],(function(t){var n="border-"+t,o=Qk(n),r=e.get(o);null!=r&&i.push(n+":"+r+("color"===t?"":"px"))})),i.push(function(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var o=e.get("textShadowColor"),r=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return o&&r&&t.push("text-shadow:"+a+"px "+s+"px "+r+"px "+o),ty(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}(u)),null!=p&&i.push("padding:"+eE(p).join("px ")+"px"),i.join(";")+";"}function e4(e,t,n,i,o){var r=t&&t.painter;if(n){var a=r&&r.getViewportRoot();a&&function(e,t,n,i,o){px(ux,t,i,o,!0)&&px(e,n,ux[0],ux[1])}(e,a,n,i,o)}else{e[0]=i,e[1]=o;var s=r&&r.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var t4=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Cv.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),o=t.appendTo,r=o&&(uy(o)?document.querySelector(o):my(o)?o:cy(o)&&o(e.getDom()));e4(this._styleCoord,i,r,e.getWidth()/2,e.getHeight()/2),(r||e.getDom()).appendChild(n),this._api=e,this._container=r;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=i.handler;Sx(i.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(r="position",(a=(o=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(o))?r?a[r]:a:null),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var o,r,a,s=e.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=K3+Q3(e,!this._firstShow,this._longHide)+J3(o[0],o[1],!0)+"border-color:"+rE(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,o){var r=this.el;if(null!=e){var a="";if(uy(o)&&"item"===n.get("trigger")&&!U3(n)&&(a=function(e,t,n){if(!uy(n)||"inside"===n)return"";var i=e.get("backgroundColor"),o=e.get("borderWidth");t=rE(t);var r,a,s="left"===(r=n)?"right":"right"===r?"left":"top"===r?"bottom":"top",l=Math.max(1.5*Math.round(o),6),c="",u=Z3+":";Jv(["left","right"],s)>-1?(c+="top:50%",u+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",u+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,d=l+o,h=d*Math.abs(Math.cos(p))+d*Math.abs(Math.sin(p)),f=t+" solid "+o+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(c+=";"+s+":-"+Math.round(100*((h-Math.SQRT2*o)/2+Math.SQRT2*o-(h-d)/2))/100+"px")+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,o)),uy(e))r.innerHTML=e+a;else if(e){r.innerHTML="",ly(e)||(e=[e]);for(var s=0;s<e.length;s++)my(e[s])&&e[s].parentNode!==r&&r.appendChild(e[s]);if(a&&r.childNodes.length){var l=document.createElement("div");l.innerHTML=a,r.appendChild(l)}}}else r.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(e4(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style;ty(J3(n[0],n[1]),(function(e){i[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Cv.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ay(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),n4=t4,i4=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),a4(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,o){var r=this;hy(e)&&PS("production"!==process.env.NODE_ENV?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new II({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:QL(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),ty(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){r.el.style[e]=n.get(e)})),ty(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){r.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=r4(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;a4(i,this._zr,e,t),e=i[0],t=i[1];var o=n.style,r=o4(o.borderWidth||0),a=r4(o);n.x=e+r+a.left,n.y=t+r+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(ay(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function o4(e){return Math.max(0,e)}function r4(e){var t=o4(e.shadowBlur||0),n=o4(e.shadowOffsetX||0),i=o4(e.shadowOffsetY||0);return{left:o4(t-n),right:o4(t+n),top:o4(t-i),bottom:o4(t+i)}}function a4(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var s4=new uI({shape:{x:-1,y:-1,width:2,height:2}}),l4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(e,t){if(!Cv.node&&t.getDom()){var n,i=e.getComponent("tooltip"),o=this._renderMode="auto"===(n=i.get("renderMode"))?Cv.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===o?new i4(t):new n4(t,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!Cv.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?kN(this,"_updatePosition",50,"fixRate"):EN(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");Y1("itemTooltip",this._api,ay((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&o.manuallyShowTip(e,t,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!Cv.node&&n.getDom()){var o=u4(i,n);this._ticket="";var r=i.dataByCoordSys,a=function(e,t,n){var i=nM(e).queryOptionMap,o=i.keys()[0];if(!o||"series"===o)return;var r=rM(t,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(t){var n=TI(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s)return{componentMainType:o,componentIndex:a.componentIndex,el:s}}(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=s4;l.x=i.x,l.y=i.y,l.update(),TI(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},o)}else if(r)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:r,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var c=J1(i,t),u=c.point[0],p=c.point[1];null!=u&&null!=p&&this._tryShow({offsetX:u,offsetY:p,target:c.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,t,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(u4(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var o=i.seriesIndex,r=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){var s=t.getSeriesByIndex(o);if(s)if("axis"===c4([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var o,r;if("legend"===TI(n).ssrType)return;this._lastDataByCoordSys=null,_P(n,(function(e){return null!=TI(e).dataIndex?(o=e,!0):null!=TI(e).tooltipConfig?(r=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):r?this._showComponentItemTooltip(e,r,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=ay(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,o=[t.offsetX,t.offsetY],r=c4([t.tooltipOption],i),a=this._renderMode,s=[],l=HL("section",{blocks:[],noHeader:!0}),c=[],u=new eN;ty(e,(function(e){ty(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),o=e.value;if(t&&null!=o){var r=O1(o,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),p=HL("section",{header:r,noHeader:!Iy(r),sortBlocks:!0,blocks:[]});l.blocks.push(p),ty(e.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=d.getDataParams(h);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=pB(t.axis,{value:o}),f.axisValueLabel=r,f.marker=u.makeTooltipMarker("item",rE(f.color),a);var g=rL(d.formatTooltip(h,!0,null)),m=g.frag;if(m){var v=c4([d],i).get("valueFormatter");p.blocks.push(v?Zv({valueFormatter:v},m):m)}g.text&&c.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),c.reverse();var p=t.position,d=r.get("order"),h=$L(l,u,a,d,n.get("useUTC"),r.get("textStyle"));h&&c.unshift(h);var f="richText"===a?"\n\n":"<br/>",g=c.join(f);this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(r,p,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(r,g,s,Math.random()+"",o[0],o[1],p,null,u)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,o=TI(t),r=o.seriesIndex,a=i.getSeriesByIndex(r),s=o.dataModel||a,l=o.dataIndex,c=o.dataType,u=s.getData(c),p=this._renderMode,d=e.positionDefault,h=c4([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=h.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,c),m=new eN;g.marker=m.makeTooltipMarker("item",rE(g.color),p);var v=rL(s.formatTooltip(l,!1,c)),y=h.get("order"),x=h.get("valueFormatter"),b=v.frag,_=b?$L(x?Zv({valueFormatter:x},b):b,m,p,y,i.get("useUTC"),h.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,_,g,w,e.offsetX,e.offsetY,e.position,e.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:r,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=TI(t),o=i.tooltipConfig.option||{};if(uy(o)){o={content:o,formatter:o}}var r=[o],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&r.push(a),r.push({formatter:o.content});var s=e.positionDefault,l=c4(r,this._tooltipModel,s?{position:s}:null),c=l.get("content"),u=Math.random()+"",p=new eN;this._showOrMove(l,(function(){var n=qv(l.get("formatterParams")||{});this._showTooltipContent(l,c,n,u,e.offsetX,e.offsetY,e.position,t,p)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,o,r,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var u=e.get("formatter");a=a||e.get("position");var p=t,d=this._getNearestPoint([o,r],n,e.get("trigger"),e.get("borderColor")).color;if(u)if(uy(u)){var h=e.ecModel.get("useUTC"),f=ly(n)?n[0]:n;p=u,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(p=Pk(f.axisValue,p,h)),p=oE(p,n,!0)}else if(cy(u)){var g=ay((function(t,i){t===this._ticket&&(c.setContent(i,l,e,d,a),this._updatePosition(e,a,o,r,c,n,s))}),this);this._ticket=i,p=u(n,i,g)}else p=u;c.setContent(p,l,e,d,a),c.show(e,d),this._updatePosition(e,a,o,r,c,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||ly(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:ly(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,o,r,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=o.getSize(),u=e.get("align"),p=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),cy(t)&&(t=t([n,i],r,o.el,d,{viewSize:[s,l],contentSize:c.slice()})),ly(t))n=rS(t[0],s),i=rS(t[1],l);else if(hy(t)){var h=t;h.width=c[0],h.height=c[1];var f=dE(h,{width:s,height:l});n=f.x,i=f.y,u=null,p=null}else if(uy(t)&&a){var g=function(e,t,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-o/2,l=t.y+u/2-r/2;break;case"top":s=t.x+c/2-o/2,l=t.y-r-a;break;case"bottom":s=t.x+c/2-o/2,l=t.y+u+a;break;case"left":s=t.x-o-a,l=t.y+u/2-r/2;break;case"right":s=t.x+c+a,l=t.y+u/2-r/2}return[s,l]}(t,d,c,e.get("borderWidth"));n=g[0],i=g[1]}else{g=function(e,t,n,i,o,r,a){var s=n.getSize(),l=s[0],c=s[1];null!=r&&(e+l+r+2>i?e-=l+r:e+=r);null!=a&&(t+c+a>o?t-=c+a:t+=a);return[e,t]}(n,i,o,s,l,u?null:20,p?null:20);n=g[0],i=g[1]}if(u&&(n-=p4(u)?c[0]/2:"right"===u?c[0]:0),p&&(i-=p4(p)?c[1]/2:"bottom"===p?c[1]:0),U3(e)){g=function(e,t,n,i,o){var r=n.getSize(),a=r[0],s=r[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,o)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,i,o,s,l);n=g[0],i=g[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&ty(n,(function(n,r){var a=n.dataByAxis||[],s=(e[r]||{}).dataByAxis||[];(o=o&&a.length===s.length)&&ty(a,(function(e,n){var r=s[n]||{},a=e.seriesDataIndices||[],l=r.seriesDataIndices||[];(o=o&&e.value===r.value&&e.axisType===r.axisType&&e.axisId===r.axisId&&a.length===l.length)&&ty(a,(function(e,t){var n=l[t];o=o&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&ty(e.seriesDataIndices,(function(e){var n=e.seriesIndex,r=t[n],a=i[n];r&&a&&a.data!==r.data&&(o=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!Cv.node&&t.getDom()&&(EN(this,"_updatePosition"),this._tooltipContent.dispose(),$1("itemTooltip",t))},t.type="tooltip",t}(gN);function c4(e,t,n){var i,o=t.ecModel;n?(i=new uk(n,o,o),i=new uk(t.option,i,o)):i=t;for(var r=e.length-1;r>=0;r--){var a=e[r];a&&(a instanceof uk&&(a=a.get("tooltip",!0)),uy(a)&&(a={formatter:a}),a&&(i=new uk(a,i,o)))}return i}function u4(e,t){return e.dispatchAction||ay(t.dispatchAction,t)}function p4(e){return"center"===e||"middle"===e}var d4=l4;var h4=["rect","polygon","keep","clear"];function f4(e,t){var n=BS(e?e.brush:[]);if(n.length){var i=[];ty(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var o=e&&e.toolbox;ly(o)&&(o=o[0]),o||(o={feature:{}},e.toolbox=[o]);var r=o.feature||(o.feature={}),a=r.brush||(r.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(e){var t={};ty(e,(function(e){t[e]=1})),e.length=0,ty(t,(function(t,n){e.push(n)}))}(s),t&&!s.length&&s.push.apply(s,h4)}}var g4=ty;function m4(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function v4(e,t,n){var i={};return g4(t,(function(t){var o,r=i[t]=((o=function(){}).prototype.__hidden=o.prototype,new o);g4(e[t],(function(e,i){if(rX.isValidType(i)){var o={type:i,visual:e};n&&n(o,t),r[i]=new rX(o),"opacity"===i&&((o=qv(o)).type="colorAlpha",r.__hidden.__alphaForOpacity=new rX(o))}}))})),i}function y4(e,t,n){var i;ty(n,(function(e){t.hasOwnProperty(e)&&m4(t[e])&&(i=!0)})),i&&ty(n,(function(n){t.hasOwnProperty(n)&&m4(t[n])?e[n]=qv(t[n]):delete e[n]}))}var x4={lineX:b4(0),lineY:b4(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&xB(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var o=e.x,r=e.y,a=e.width,s=e.height,l=i[0];return!!(xB(i,o,r)||xB(i,o+a,r)||xB(i,o,r+s)||xB(i,o+a,r+s)||qx.create(e).contain(l[0],l[1])||AD(o,r,o+a,r,i)||AD(o,r,o,r+s,i)||AD(o+a,r,o+a,r+s,i)||AD(o,r+s,o+a,r+s,i))||void 0}}};function b4(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var o=i.range;return _4(t[e],o)}},rect:function(i,o,r){if(i){var a=r.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),_4(s[0],a)||_4(s[1],a)||_4(a[0],s)||_4(a[1],s)}}}}function _4(e,t){return t[0]<=e&&e<=t[1]}var w4=["inBrush","outOfBrush"],S4="__ecBrushSelect",M4="__ecInBrushSelectEvent";function C4(e){e.eachComponent({mainType:"brush"},(function(t){(t.brushTargetManager=new z3(t.option,e)).setInputRanges(t.areas,e)}))}function I4(e,t,n){var i,o,r=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),C4(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:qv(t.areas),selected:[]};r.push(a);var s=t.option,l=s.brushLink,c=[],u=[],p=[],d=!1;n||(i=s.throttleType,o=s.throttleDelay);var h=ny(t.areas,(function(e){var t=D4[e.brushType],n=Kv({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(i){return x4[t].point(i,n,e)},rect:function(i){return x4[t].rect(i,n,e)}};return n}(n),n})),f=v4(t.option,w4,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!c[e]}function m(e){return!!e.length}ly(l)&&ty(l,(function(e){c[e]=1})),e.eachSeries((function(n,i){var o=p[i]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(u[t]=1)}))}(n,i):function(n,i,o){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(ly(n)?Jv(n,t)<0:t!==n)}(t,i))return;if(ty(h,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&o.push(i),d=d||m(o)})),g(i)&&m(o)){var r=n.getData();r.each((function(e){A4(n,o,r,e)&&(u[e]=1)}))}}(n,i,o)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=p[t],o=e.getData(),r=g(t)?function(e){return u[e]?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return A4(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?d:m(i))&&function(e,t,n,i,o,r){var a,s={};function l(e){return mP(n,a,e)}function c(e,t){yP(n,a,e,t)}function u(e,u){a=null==r?e:u;var p=n.getRawDataItem(a);if(!p||!1!==p.visualMap)for(var d=i.call(o,e),h=t[d],f=s[d],g=0,m=f.length;g<m;g++){var v=f[g];h[v]&&h[v].applyVisual(e,l,c)}}ty(e,(function(e){var n=rX.prepareVisualTypes(t[e]);s[e]=n})),null==r?n.each(u):n.each([r],u)}(w4,f,o,r)}))})),function(e,t,n,i,o){if(!o)return;var r=e.getZr();if(r[M4])return;r[S4]||(r[S4]=T4);var a=kN(r,S4,n,t);a(e,i)}(t,i,o,r,n)}function T4(e,t){if(!e.isDisposed()){var n=e.getZr();n[M4]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[M4]=!1}}function A4(e,t,n,i){for(var o=0,r=t.length;o<r;o++){var a=t[o];if(e.brushSelector(i,n,a.selectors,a))return!0}}var D4={rect:function(e){return k4(e.range)},polygon:function(e){for(var t,n=e.range,i=0,o=n.length;i<o;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var r=n[i];r[0]<t[0][0]&&(t[0][0]=r[0]),r[0]>t[0][1]&&(t[0][1]=r[0]),r[1]<t[1][0]&&(t[1][0]=r[1]),r[1]>t[1][1]&&(t[1][1]=r[1])}return t&&k4(t)}};function k4(e){return new qx(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var E4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new bK(t.getZr())).on("brush",ay(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){C4(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:qv(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:qv(n),$from:t})},t.type="brush",t}(gN);function O4(e,t){return Xv({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new uk(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var L4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return G(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&y4(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){"production"!==process.env.NODE_ENV&&(Cy(ly(e)),ty(e,(function(e){Cy(e.brushType,"Illegal areas")}))),e&&(this.areas=ny(e,(function(e){return O4(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=O4(this.option,e),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}(bE),N4=["rect","polygon","lineX","lineY","keep","clear"],P4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,o=e.brushOption.brushMode||"single",r=r||!!e.areas.length})),this._brushType=i,this._brushMode=o,ty(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return ty(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,o=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},t.getDefaultOption=function(e){return{show:!0,type:N4.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:e.getLocaleModel().get(["toolbox","brush","title"])}},t}($5);var R4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return G(t,e),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}(bE),z4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,o=e.getModel("textStyle"),r=e.getModel("subtextStyle"),a=e.get("textAlign"),s=_y(e.get("textBaseline"),e.get("textVerticalAlign")),l=new II({style:jD(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),p=new II({style:jD(r,{text:u,fill:r.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),h=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!d&&!f,p.silent=!h&&!f,d&&l.on("click",(function(){aE(d,"_"+e.get("target"))})),h&&p.on("click",(function(){aE(h,"_"+e.get("subtarget"))})),TI(l).eventData=TI(p).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),u&&i.add(p);var g=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=dE(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),p.setStyle(y),g=i.getBoundingRect();var x=v.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var _=new uI({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(_)}},t.type="title",t}(gN);var V4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return G(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,o=this._names=[];"category"===i?(e=[],ty(n,(function(t,n){var i,r=qS(GS(t),"");hy(t)?(i=qv(t)).value=n:i=n,e.push(i),o.push(r)}))):e=n;var r={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new $z([{name:"value",type:r}],this)).initData(e,o)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))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}(bE),B4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="timeline.slider",t.defaultOption=hk(V4.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}(V4);Qv(B4,oL.prototype);var j4=B4,F4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="timeline",t}(gN),G4=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.type=o||"value",r}return G(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(HB),H4=G4,W4=Math.PI,U4=QS(),Y4=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){return HL("nameValue",{noName:!0,value:a.scale.getLabel({value:e})})},ty(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,o,a,e)}),this),this._renderAxisLabel(i,r,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i,o,r,a=e.get(["label","position"]),s=e.get("orient"),l=function(e,t){return dE(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),c={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<t.getHeight()/2?"-":"+":l.x+l.width/2<t.getWidth()/2?"+":"-":uy(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:W4/2},d="vertical"===s?l.height:l.width,h=e.getModel("controlStyle"),f=h.get("show",!0),g=f?h.get("itemSize"):0,m=f?h.get("itemGap"):0,v=g+m,y=e.get(["label","rotate"])||0;y=y*W4/180;var x=h.get("position",!0),b=f&&h.get("showPlayBtn",!0),_=f&&h.get("showPrevBtn",!0),w=f&&h.get("showNextBtn",!0),S=0,M=d;"left"===x||"bottom"===x?(b&&(i=[0,0],S+=v),_&&(o=[S,0],S+=v),w&&(r=[M-g,0],M-=v)):(b&&(i=[M-g,0],M-=v),_&&(o=[0,0],S+=v),w&&(r=[M-g,0],M-=v));var C=[S,M];return e.get("inverse")&&C.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:p[s],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[s],playPosition:i,prevBtnPosition:o,nextBtnPosition:r,axisExtent:C,controlSize:g,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if("vertical"===e.orient){var r=[1,0,0,1,0,0],a=o.x,s=o.y+o.height;Lx(r,r,[-a,-s]),Nx(r,r,-W4/2),Lx(r,r,[a,s]),(o=o.clone()).applyTransform(r)}var l=m(o),c=m(n.getBoundingRect()),u=m(i.getBoundingRect()),p=[n.x,n.y],d=[i.x,i.y];d[0]=p[0]=l[0][0];var h,f=e.labelPosOpt;null==f||uy(f)?(v(p,c,l,1,h="+"===f?0:1),v(d,u,l,1,1-h)):(v(p,c,l,1,h=f>=0?0:1),d[1]=p[1]+f);function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,o){e[i]+=n[i][o]-t[i][o]}n.setPosition(p),i.setPosition(d),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),o=function(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new xV({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new WV({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new wV}}(t,i);o.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var r=n.getDataExtent("value");o.setExtent(r[0],r[1]),o.calcNiceTicks();var a=new H4("value",o,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Zw;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var r=new TA({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Zv({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(r);var a=this._progressLine=new TA({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Kv({lineCap:"round",lineWidth:r.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var o=this,r=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],ty(a,(function(e){var a=n.dataToCoord(e.value),s=r.getItemModel(e.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),p={x:a,y:0,onclick:ay(o._changeTimeline,o,e.value)},d=q4(s,l,t,p);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),xT(d);var h=TI(d);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=i):h.dataIndex=h.dataModel=null,o._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var o=this;if(n.getLabelModel().get("show")){var r=i.getData(),a=n.getViewLabels();this._tickLabels=[],ty(a,(function(i){var a=i.tickValue,s=r.getItemModel(a),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),p=n.dataToCoord(i.tickValue),d=new II({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:ay(o._changeTimeline,o,a),silent:!1,style:jD(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=jD(c),d.ensureState("progress").style=jD(u),t.add(d),xT(d),U4(d).dataIndex=a,o._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var o=e.controlSize,r=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(e,n,l,c){if(e){var u=zw(_y(i.get(["controlStyle",n+"BtnSize"]),o),o),p=function(e,t,n,i){var o=i.style,r=TD(e.get(["controlStyle",t]),i||{},new qx(n[0],n[1],n[2],n[3]));o&&r.setStyle(o);return r}(i,n+"Icon",[0,-u/2,u,u],{x:e[0],y:e[1],originX:o/2,originY:0,rotation:c?-r:0,rectHover:!0,style:a,onclick:l});p.ensureState("emphasis").style=s,t.add(p),xT(p)}}u(e.nextBtnPosition,"next",ay(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",ay(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,l?"stop":"play",ay(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var o=i.getData(),r=i.getCurrentIndex(),a=o.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=ay(s._handlePointerDrag,s),e.ondragend=ay(s._handlePointerDragend,s),X4(e,s._progressLine,r,n,i,!0)},onUpdate:function(e){X4(e,s._progressLine,r,n,i)}};this._currentPointer=q4(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=sS(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var r=this._findNearestTick(n),a=this.model;(t||r!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(r)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return wD(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,o=this._axis;return n.each(["value"],(function(n,r){var a=o.dataToCoord(n),s=Math.abs(a-e);s<i&&(i=s,t=r)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",U4(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(F4);function q4(e,t,n,i,o,r){var a=t.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=LP(e.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o));var s=t.getItemStyle(["color"]);o.setStyle(s),i=Xv({rectHover:!0,z2:100},i,!0);var l=NP(e.get("symbolSize"));i.scaleX=l[0]/2,i.scaleY=l[1]/2;var c=PP(e.get("symbolOffset"),l);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var u=e.get("symbolRotate");return i.rotation=(u||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function X4(e,t,n,i,o,r){if(!e.dragging){var a=o.getModel("checkpointStyle"),s=i.dataToCoord(o.getData().get("value",n));if(r||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var $4=Y4;function Z4(e){var t=e&&e.timeline;ly(t)||(t=t?[t]:[]),ty(t,(function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(K4(e),J4(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});J4(i,"position")||(i.position=e.controlPosition),"none"!==i.position||J4(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}ty(e.data||[],(function(e){hy(e)&&!ly(e)&&(!J4(e,"value")&&J4(e,"name")&&(e.value=e.name),K4(e))}))}(e)}))}function K4(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},o=i.normal||(i.normal={}),r={normal:1,emphasis:1};ty(i,(function(e,t){r[t]||J4(o,t)||(o[t]=e)})),n.label&&!J4(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function J4(e,t){return e.hasOwnProperty(t)}function Q4(e,t){if(!e)return!1;for(var n=ly(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function e6(e){jS(e,"label",["show"])}var t6=QS(),n6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return G(t,e),t.prototype.init=function(e,t,n){if("production"!==process.env.NODE_ENV&&"marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Cv.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var o=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),r=t6(e)[o];n&&n.data?(r?r._mergeOption(n,t,!0):(i&&e6(n),ty(n.data,(function(e){e instanceof Array?(e6(e[0]),e6(e[1])):e6(e)})),Zv(r=this.createMarkerModelFromSeries(n,this,t),{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),r.__hostSeries=e),t6(e)[o]=r):t6(e)[o]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),o=this.getRawValue(e),r=i.getName(e);return HL("section",{header:this.name,blocks:[HL("nameValue",{name:r,value:o,noName:!r,noValue:null==o})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return t6(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(bE);Qv(n6,oL.prototype);var i6=n6,o6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,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}(i6);function r6(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function a6(e,t,n,i,o,r){var a=[],s=nV(t,i)?t.getCalculationInfo("stackResultDimension"):i,l=d6(t,s,e),c=t.indicesOfNearest(s,l)[0];a[o]=t.get(n,c),a[r]=t.get(s,c);var u=t.get(i,c),p=lS(t.get(i,c));return(p=Math.min(p,20))>=0&&(a[r]=+a[r].toFixed(p)),[a,u]}var s6={min:sy(a6,"min"),max:sy(a6,"max"),average:sy(a6,"average"),median:sy(a6,"median")};function l6(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,o=i&&i.dimensions;if(!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!ly(t.coord)&&ly(o)){var r=c6(t,n,i,e);if((t=qv(t)).type&&s6[t.type]&&r.baseAxis&&r.valueAxis){var a=Jv(o,r.baseAxis.dim),s=Jv(o,r.valueAxis.dim),l=s6[t.type](n,r.baseDataDim,r.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&ly(o))for(var c=t.coord,u=0;u<2;u++)s6[c[u]]&&(c[u]=d6(n,n.mapDimension(o[u]),c[u]));else t.coord=[];return t}}function c6(e,t,n,i){var o={};return null!=e.valueIndex||null!=e.valueDim?(o.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim),o.valueDataDim=t.mapDimension(o.valueAxis.dim)),o}function u6(e,t){return!(e&&e.containData&&t.coord&&!r6(t))||e.containData(t.coord)}function p6(e,t){return e?function(e,n,i,o){return cL(o<2?e.coord&&e.coord[o]:e.value,t[o])}:function(e,n,i,o){return cL(e.value,t[o])}}function d6(e,t,n){if("average"===n){var i=0,o=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,o++)})),i/o}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var h6=QS(),f6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.init=function(){this.markerGroupMap=Ly()},t.prototype.render=function(e,t,n){var i=this,o=this.markerGroupMap;o.each((function(e){h6(e).keep=!1})),t.eachSeries((function(e){var o=i6.getMarkerModelFromSeries(e,i.type);o&&i.renderSeries(e,o,t,n)})),o.each((function(e){!h6(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){h6(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;ty(e,(function(e){var i=i6.getMarkerModelFromSeries(e,n.type);i&&i.getData().eachItemGraphicEl((function(e){e&&(t?lT(e):cT(e))}))}))},t.type="marker",t}(gN);function g6(e,t,n){var i=t.coordinateSystem;e.each((function(o){var r,a=e.getItemModel(o),s=rS(a.get("x"),n.getWidth()),l=rS(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)r=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(i){var c=e.get(i.dimensions[0],o),u=e.get(i.dimensions[1],o);r=i.dataToPoint([c,u])}}else r=[s,l];isNaN(s)||(r[0]=s),isNaN(l)||(r[1]=l),e.setItemLayout(o,r)}))}var m6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=i6.getMarkerModelFromSeries(e,"markPoint");t&&(g6(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var o=e.coordinateSystem,r=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new cG),c=function(e,t,n){var i;i=e?ny(e&&e.dimensions,(function(e){return Zv(Zv({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new $z(i,n),r=ny(n.get("data"),sy(l6,t));e&&(r=oy(r,sy(u6,e)));var a=p6(!!e,i);return o.initData(r,null,a),o}(o,e,t);t.setData(c),g6(t.getData(),e,i),c.each((function(e){var n=c.getItemModel(e),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(cy(i)||cy(o)||cy(r)||cy(s)){var u=t.getRawValue(e),p=t.getDataParams(e);cy(i)&&(i=i(u,p)),cy(o)&&(o=o(u,p)),cy(r)&&(r=r(u,p)),cy(s)&&(s=s(u,p))}var d=n.getModel("itemStyle").getItemStyle(),h=vP(a,"color");d.fill||(d.fill=h),c.setItemVisual(e,{symbol:i,symbolSize:o,symbolRotate:r,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){TI(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(f6);var v6=m6;var y6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,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}(i6),x6=QS(),b6=function(e,t,n,i){var o,r=e.getData();if(ly(i))o=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=by(i.yAxis,i.xAxis);else{var c=c6(i,r,t,e);s=c.valueAxis,l=d6(r,iV(r,c.valueDataDim),a)}var u="x"===s.dim?0:1,p=1-u,d=qv(i),h={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,h.coord[p]=1/0;var f=n.get("precision");f>=0&&dy(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[u]=h.coord[u]=l,o=[d,h,{type:a,valueIndex:i.valueIndex,value:l}]}else"production"!==process.env.NODE_ENV&&Yv("Invalid markLine data."),o=[]}var g=[l6(e,o[0]),l6(e,o[1]),Zv({},o[2])];return g[2].type=g[2].type||null,Xv(g[2],g[0]),Xv(g[2],g[1]),g};function _6(e){return!isNaN(e)&&!isFinite(e)}function w6(e,t,n,i){var o=1-e,r=i.dimensions[e];return _6(t[o])&&_6(n[o])&&t[e]===n[e]&&i.getAxis(r).containData(t[e])}function S6(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(w6(1,n,i,e)||w6(0,n,i,e)))return!0}return u6(e,t[0])&&u6(e,t[1])}function M6(e,t,n,i,o){var r,a=i.coordinateSystem,s=e.getItemModel(t),l=rS(s.get("x"),o.getWidth()),c=rS(s.get("y"),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,p=e.get(u[0],t),d=e.get(u[1],t);r=a.dataToPoint([p,d])}if(SG(a,"cartesian2d")){var h=a.getAxis("x"),f=a.getAxis("y");u=a.dimensions;_6(e.get(u[0],t))?r[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):_6(e.get(u[1],t))&&(r[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];e.setItemLayout(t,r)}var C6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=i6.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),o=x6(t).from,r=x6(t).to;o.each((function(t){M6(o,t,!0,e,n),M6(r,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[o.getItemLayout(e),r.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var o=e.coordinateSystem,r=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new p$);this.group.add(l.group);var c=function(e,t,n){var i;i=e?ny(e&&e.dimensions,(function(e){return Zv(Zv({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new $z(i,n),r=new $z(i,n),a=new $z([],n),s=ny(n.get("data"),sy(b6,t,e,n));e&&(s=oy(s,sy(S6,e)));var l=p6(!!e,i);return o.initData(ny(s,(function(e){return e[0]})),null,l),r.initData(ny(s,(function(e){return e[1]})),null,l),a.initData(ny(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:o,to:r,line:a}}(o,e,t),u=c.from,p=c.to,d=c.line;x6(t).from=u,x6(t).to=p,t.setData(d);var h=t.get("symbol"),f=t.get("symbolSize"),g=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,o){var r=t.getItemModel(n);M6(t,n,o,e,i);var s=r.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=vP(a,"color")),t.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:_y(r.get("symbolOffset",!0),m[o?0:1]),symbolRotate:_y(r.get("symbolRotate",!0),g[o?0:1]),symbolSize:_y(r.get("symbolSize"),f[o?0:1]),symbol:_y(r.get("symbol",!0),h[o?0:1]),style:s})}ly(h)||(h=[h,h]),ly(f)||(f=[f,f]),ly(g)||(g=[g,g]),ly(m)||(m=[m,m]),c.from.each((function(e){v(u,e,!0),v(p,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[u.getItemLayout(e),p.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:p.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(e,"symbolOffset"),toSymbolRotate:p.getItemVisual(e,"symbolRotate"),toSymbolSize:p.getItemVisual(e,"symbolSize"),toSymbol:p.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),c.line.eachItemGraphicEl((function(e){TI(e).dataModel=t,e.traverse((function(e){TI(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(f6);var I6=C6;var T6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,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}(i6),A6=QS(),D6=function(e,t,n,i){var o=i[0],r=i[1];if(o&&r){var a=l6(e,o),s=l6(e,r),l=a.coord,c=s.coord;l[0]=by(l[0],-1/0),l[1]=by(l[1],-1/0),c[0]=by(c[0],1/0),c[1]=by(c[1],1/0);var u=$v([{},a,s]);return u.coord=[a.coord,s.coord],u.x0=a.x,u.y0=a.y,u.x1=s.x,u.y1=s.y,u}};function k6(e){return!isNaN(e)&&!isFinite(e)}function E6(e,t,n,i){var o=1-e;return k6(t[o])&&k6(n[o])}function O6(e,t){var n=t.coord[0],i=t.coord[1],o={coord:n,x:t.x0,y:t.y0},r={coord:i,x:t.x1,y:t.y1};return SG(e,"cartesian2d")?!(!n||!i||!E6(1,n,i)&&!E6(0,n,i))||function(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!r6(t)&&!r6(n))||e.containZone(t.coord,n.coord)}(e,o,r):u6(e,o)||u6(e,r)}function L6(e,t,n,i,o){var r,a=i.coordinateSystem,s=e.getItemModel(t),l=rS(s.get(n[0]),o.getWidth()),c=rS(s.get(n[1]),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=e.getValues(["x0","y0"],t),p=e.getValues(["x1","y1"],t),d=a.clampData(u),h=a.clampData(p),f=[];"x0"===n[0]?f[0]=d[0]>h[0]?p[0]:u[0]:f[0]=d[0]>h[0]?u[0]:p[0],"y0"===n[1]?f[1]=d[1]>h[1]?p[1]:u[1]:f[1]=d[1]>h[1]?u[1]:p[1],r=i.getMarkerPosition(f,n,!0)}else{var g=[y=e.get(n[0],t),x=e.get(n[1],t)];a.clampData&&a.clampData(g,g),r=a.dataToPoint(g,!0)}if(SG(a,"cartesian2d")){var m=a.getAxis("x"),v=a.getAxis("y"),y=e.get(n[0],t),x=e.get(n[1],t);k6(y)?r[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):k6(x)&&(r[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];return r}var N6=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],P6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=i6.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var o=ny(N6,(function(o){return L6(i,t,o,e,n)}));i.setItemLayout(t,o),i.getItemGraphicEl(t).setShape("points",o)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var o=e.coordinateSystem,r=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,{group:new Zw});this.group.add(l.group),this.markKeep(l);var c=function(e,t,n){var i,o,r=["x0","y0","x1","y1"];if(e){var a=ny(e&&e.dimensions,(function(e){var n=t.getData();return Zv(Zv({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}));o=ny(r,(function(e,t){return{name:e,type:a[t%2].type}})),i=new $z(o,n)}else i=new $z(o=[{name:"value",type:"float"}],n);var s=ny(n.get("data"),sy(D6,t,e,n));e&&(s=oy(s,sy(O6,e)));var l=e?function(e,t,n,i){return cL(e.coord[Math.floor(i/2)][i%2],o[i])}:function(e,t,n,i){return cL(e.value,o[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(o,e,t);t.setData(c),c.each((function(t){var n=ny(N6,(function(n){return L6(c,t,n,e,i)})),r=o.getAxis("x").scale,s=o.getAxis("y").scale,l=r.getExtent(),u=s.getExtent(),p=[r.parse(c.get("x0",t)),r.parse(c.get("x1",t))],d=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];sS(p),sS(d);var h=!!(l[0]>p[1]||l[1]<p[0]||u[0]>d[1]||u[1]<d[0]);c.setItemLayout(t,{points:n,allClipped:h});var f=c.getItemModel(t).getModel("itemStyle").getItemStyle(),g=vP(a,"color");f.fill||(f.fill=g,uy(f.fill)&&(f.fill=f_(f.fill,.4))),f.stroke||(f.stroke=g),c.setItemVisual(t,"style",f)})),c.diff(A6(l).data).add((function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new wA({shape:{points:t.points}});c.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=A6(l).data.getItemGraphicEl(n),o=c.getItemLayout(e);o.allClipped?i&&l.group.remove(i):(i?tD(i,{shape:{points:o.points}},t,e):i=new wA({shape:{points:o.points}}),c.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=A6(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,n){var i=c.getItemModel(n),o=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),VD(e,BD(i),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:uy(o.fill)?f_(o.fill,1):"#000"}),MT(e,i),bT(e,null,null,i.get(["emphasis","disabled"])),TI(e).dataModel=t})),A6(l).data=c,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(f6);var R6=P6;var z6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return G(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),ly(t)&&ty(t,(function(e,i){uy(e)&&(e={type:e}),t[i]=Xv(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var o,r=i.name;if(n.push(r),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(a)),a.length?t=t.concat(a):o=!0}else o=!0;o&&ZS(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,o=Ly(),r=ny(i,(function(e){return(uy(e)||dy(e))&&(e={name:e}),o.get(e.name)?null:(o.set(e.name,!0),new uk(e,this,this.ecModel))}),this);this._data=oy(r,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&ty(this._data,(function(e){t[e.get("name")]=!1}));t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;ty(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;ty(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&Jv(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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}(bE),V6=z6,B6=sy,j6=ty,F6=Zw,G6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return G(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new F6),this.group.add(this._selectorGroup=new F6),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var o=e.get("align"),r=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===r?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===r?"end":"start"),this.renderInner(o,e,t,n,a,r,s);var l=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=e.get("padding"),p=dE(l,c,u),d=this.layoutInner(e,o,p,i,a,s),h=dE(Kv({width:d.width,height:d.height},l),c,u);this.group.x=h.x-d.x,this.group.y=h.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=e3(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,o,r,a){var s=this.getContentGroup(),l=Ly(),c=t.get("selectedMode"),u=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&u.push(e.id)})),j6(t.getData(),(function(o,r){var a=o.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new F6;return p.newline=!0,void s.add(p)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var h=d.getData(),f=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendIcon"),m=h.getVisual("style"),v=this._createItem(d,a,r,o,t,e,f,m,g,c,i);v.on("click",B6(H6,a,null,i,u)).on("mouseover",B6(U6,d.name,null,i,u)).on("mouseout",B6(Y6,d.name,null,i,u)),n.ssr&&v.eachChild((function(e){var t=TI(e);t.seriesIndex=d.seriesIndex,t.dataIndex=r,t.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var p=s.legendVisualProvider;if(!p.containName(a))return;var d=p.indexOfName(a),h=p.getItemVisual(d,"style"),f=p.getItemVisual(d,"legendIcon"),g=c_(h.fill);g&&0===g[3]&&(g[3]=.2,h=Zv(Zv({},h),{fill:g_(g,"rgba")}));var m=this._createItem(s,a,r,o,t,e,{},h,f,c,i);m.on("click",B6(H6,null,a,i,u)).on("mouseover",B6(U6,null,a,i,u)).on("mouseout",B6(Y6,null,a,i,u)),n.ssr&&m.eachChild((function(e){var t=TI(e);t.seriesIndex=s.seriesIndex,t.dataIndex=r,t.ssrType="legend"})),l.set(a,!0)}}),this);"production"!==process.env.NODE_ENV&&(l.get(a)||console.warn(a+" series not exists. Legend data should be same with series name or data name."))}}),this),o&&this._createSelector(o,t,i,r,a)},t.prototype._createSelector=function(e,t,n,i,o){var r=this.getSelectorGroup();j6(e,(function(e){var i=e.type,o=new II({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});r.add(o),VD(o,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),xT(o)}))},t.prototype._createItem=function(e,t,n,i,o,r,a,s,l,c,u){var p=e.visualDrawType,d=o.get("itemWidth"),h=o.get("itemHeight"),f=o.isSelected(t),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon"),y=function(e,t,n,i,o,r,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),j6(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",p=l.getShallow("decal");c.decal=p&&"inherit"!==p?uR(p,a):i.decal,"inherit"===c.fill&&(c.fill=i[o]);"inherit"===c.stroke&&(c.stroke=i[u]);"inherit"===c.opacity&&(c.opacity=("fill"===o?i:n).opacity);s(c,i);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===h.stroke&&(h.stroke=i.fill),!r){var f=t.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}(l=v||l||"roundRect",i,a,s,p,f,u),x=new F6,b=i.getModel("textStyle");if(!cy(e.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;x.add(function(e){var t=e.icon||"roundRect",n=LP(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:d,itemHeight:h,icon:l,iconRotate:_,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else x.add(e.getLegendIcon({itemWidth:d,itemHeight:h,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var w="left"===r?d+5:-5,S=r,M=o.get("formatter"),C=t;uy(M)&&M?C=M.replace("{name}",null!=t?t:""):cy(M)&&(C=M(t));var I=f?b.getTextColor():i.get("inactiveColor");x.add(new II({style:jD(b,{text:C,x:w,y:h/2,fill:I,align:S,verticalAlign:"middle"},{inheritColor:I})}));var T=new uI({shape:x.getBoundingRect(),style:{fill:"transparent"}}),A=i.getModel("tooltip");return A.get("show")&&ED({el:T,componentModel:o,itemName:t,itemTooltipOption:A.option}),x.add(T),x.eachChild((function(e){e.silent=!0})),T.silent=!c,this.getContentGroup().add(x),xT(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,t,n,i,o,r){var a=this.getContentGroup(),s=this.getSelectorGroup();pE(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),o){pE("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),p=[-u.x,-u.y],d=e.get("selectorButtonGap",!0),h=e.getOrient().index,f=0===h?"width":"height",g=0===h?"height":"width",m=0===h?"y":"x";"end"===r?p[h]+=l[f]+d:c[h]+=u[f]+d,p[1-h]+=l[g]/2-u[g]/2,s.x=p[0],s.y=p[1],a.x=c[0],a.y=c[1];var v={x:0,y:0};return v[f]=l[f]+d+u[f],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+p[1-h]),v}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(gN);function H6(e,t,n,i){Y6(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),U6(e,t,n,i)}function W6(e){for(var t,n=e.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(t=n[i].states.emphasis);)i++;return t&&t.hoverLayer}function U6(e,t,n,i){W6(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function Y6(e,t,n,i){W6(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}var q6=G6;function X6(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function $6(e,t,n){var i,o={},r="toggleSelected"===e;return n.eachComponent("legend",(function(n){r&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name)),ty(n.getData(),(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&i:o[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}function Z6(e){e.registerComponentModel(V6),e.registerComponentView(q6),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,X6),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",sy($6,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",sy($6,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",sy($6,"inverseSelect")),e.registerAction("legendSelect","legendselected",sy($6,"select")),e.registerAction("legendUnSelect","legendunselected",sy($6,"unSelect"))}(e)}function K6(e,t,n){var i=[1,1];i[e.getOrient().index]=0,gE(t,n,{type:"box",ignoreSize:!!i})}var J6=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var o=mE(t);e.prototype.init.call(this,t,n,i),K6(this,t,o)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),K6(this,this.option,t)},t.type="legend.scroll",t.defaultOption=hk(V6.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}(V6),Q6=Zw,e8=["width","height"],t8=["x","y"],n8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return G(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Q6),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Q6)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,o,r,a,s){var l=this;e.prototype.renderInner.call(this,t,n,i,o,r,a,s);var c=this._controllerGroup,u=n.get("pageIconSize",!0),p=ly(u)?u:[u,u];h("pagePrev",0);var d=n.getModel("pageTextStyle");function h(e,t){var i=e+"DataIndex",r=TD(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:ay(l._pageGo,l,i,n,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});r.name=e,c.add(r)}c.add(new II({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,o,r){var a=this.getSelectorGroup(),s=e.getOrient().index,l=e8[s],c=t8[s],u=e8[1-s],p=t8[1-s];o&&pE("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),h=a.getBoundingRect(),f=[-h.x,-h.y],g=qv(n);o&&(g[l]=n[l]-h[l]-d);var m=this._layoutContentAndController(e,i,g,s,l,u,p,c);if(o){if("end"===r)f[s]+=m[l]+d;else{var v=h[l]+d;f[s]-=v,m[c]-=v}m[l]+=h[l]+d,f[1-s]+=m[p]+m[u]/2-h[u]/2,m[u]=Math.max(m[u],h[u]),m[p]=Math.min(m[p],h[p]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,i,o,r,a,s){var l=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;pE(e.get("orient"),l,e.get("itemGap"),i?n.width:null,i?null:n.height),pE("horizontal",u,e.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),d=u.getBoundingRect(),h=this._showController=p[o]>n[o],f=[-p.x,-p.y];t||(f[i]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=_y(e.get("pageButtonGap",!0),e.get("itemGap",!0));h&&("end"===e.get("pageButtonPosition",!0)?m[i]+=n[o]-d[o]:g[i]+=d[o]+v);m[1-i]+=p[r]/2-d[r]/2,l.setPosition(f),c.setPosition(g),u.setPosition(m);var y={x:0,y:0};if(y[o]=h?n[o]:p[o],y[r]=Math.max(p[r],d[r]),y[a]=Math.min(0,d[a]+m[1-i]),c.__rectSize=n[o],h){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-v,0),x[r]=y[r],c.setClipPath(new uI({shape:x})),c.__rectSize=x[o]}else u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(e);return null!=b.pageIndex&&tD(l,{x:b.contentPosition[0],y:b.contentPosition[1]},h?e:null),this._updatePageInfoView(e,b),y},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;ty(["pagePrev","pageNext"],(function(i){var o=null!=t[i+"DataIndex"],r=n.childOfName(i);r&&(r.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),o=e.get("pageFormatter"),r=t.pageIndex,a=null!=r?r+1:0,s=t.pageCount;i&&o&&i.setStyle("text",uy(o)?o.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):o({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,r=e8[o],a=t8[o],s=this._findTargetItemIndex(t),l=n.children(),c=l[s],u=l.length,p=u?1:0,d={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var h=y(c);d.contentPosition[o]=-h.s;for(var f=s+1,g=h,m=h,v=null;f<=u;++f)(!(v=y(l[f]))&&m.e>g.s+i||v&&!x(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(f=s-1,g=h,m=h,v=null;f>=-1;--f)(v=y(l[f]))&&x(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[r],i:e.__legendDataIndex}}}function x(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(i,o){var r=i.__legendDataIndex;null==n&&null!=r&&(n=o),r===e&&(t=o)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(q6),i8=n8;function o8(e){_z(Z6),e.registerComponentModel(J6),e.registerComponentView(i8),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}var r8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="dataZoom.inside",t.defaultOption=hk(z5.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(z5),a8=QS();function s8(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function l8(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function c8(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function u8(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=a8(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Ly());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){ty(P5(e).infoList,(function(n){var o=n.model.uid,r=i.get(o)||i.set(o,function(e,t){var n={model:t,containsPoint:sy(c8,t),dispatchAction:sy(l8,e),dataZoomInfoMap:null,controller:null},i=n.controller=new pU(e.getZr());return ty(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(o){if(t.isAvailableBehavior(o.model.option)){var r=(o.getRange||{})[e],a=r&&r(o.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!o.model.get("disabled",!0)&&a&&i.push({dataZoomId:o.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(t,n.model));(r.dataZoomInfoMap||(r.dataZoomInfoMap=Ly())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,o=e.dataZoomInfoMap;if(o){var r=o.keys()[0];null!=r&&(t=o.get(r))}if(t){var a=function(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each((function(e){var r=e.model,a=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),o=o&&r.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}(o);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),kN(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else s8(i,e)}))}))}var p8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return G(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){a8(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}(i,t,{pan:ay(d8.pan,this),zoom:ay(d8.zoom,this),scrollMove:ay(d8.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=a8(e).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r=i[o],a=n.get(r),s=a.dataZoomInfoMap;if(s){var l=t.uid;s.get(l)&&(s.removeKey(l),s.keys().length||s8(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(j5),d8={zoom:function(e,t,n,i){var o=this.range,r=o.slice(),a=e.axisModels[0];if(a){var s=f8[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],c=Math.max(1/i.scale,0);r[0]=(r[0]-l)*c+l,r[1]=(r[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return fZ(0,r,[0,100],0,u.minSpan,u.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}},pan:h8((function(e,t,n,i,o,r){var a=f8[i]([r.oldX,r.oldY],[r.newX,r.newY],t,o,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:h8((function(e,t,n,i,o,r){return f8[i]([0,0],[r.scrollDelta,r.scrollDelta],t,o,n).signal*(e[1]-e[0])*r.scrollDelta}))};function h8(e){return function(t,n,i,o){var r=this.range,a=r.slice(),s=t.axisModels[0];if(s)return fZ(e(a,s,t,n,i,o),a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}}var f8={grid:function(e,t,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===r.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(e,t,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=r.inverse?-1:1),a},singleAxis:function(e,t,n,i,o){var r=n.axis,a=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===r.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}},g8=p8;function m8(e){q5(e),e.registerComponentModel(r8),e.registerComponentView(g8),u8(e)}var v8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=hk(z5.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}(z5),y8=uI,x8="horizontal",b8="vertical",_8=["line","bar","candlestick","scatter"],w8={easing:"cubicOut",duration:100,delay:0},S8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return G(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=ay(this._onBrush,this),this._onBrushEnd=ay(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,o){if(e.prototype.render.apply(this,arguments),kN(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){EN(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Zw;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},r=this._orient===x8?{right:o.width-i.x-i.width,top:o.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=mE(e.option);ty(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=r[e])}));var s=dE(a,o);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b8&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==x8||o?n===x8&&o?{scaleY:a?1:-1,scaleX:-1}:n!==b8||o?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([r]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new y8({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new y8({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:ay(this._onClickPanel,this)}),r=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",r.on("mousemove",this._onBrush),r.on("mouseup",this._onBrushEnd)):(r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),r=i.getShadowDim&&i.getShadowDim(),a=r&&o.getDimensionInfo(r)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=o.getDataExtent(a),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var p,d=[0,t[1]],h=[0,t[0]],f=[[t[0],0],[0,0]],g=[],m=h[1]/(o.count()-1),v=0,y=Math.round(o.count()/t[0]);o.each([a],(function(e,t){if(y>0&&t%y)v+=m;else{var n=null==e||isNaN(e)||""===e,i=n?0:oS(e,c,d,!0);n&&!p&&t?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&p&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=m,p=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var x=this.dataZoomModel,b=0;b<3;b++){var _=w(1===b);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function w(e){var t=x.getModel(e?"selectedDataBackground":"dataBackground"),n=new Zw,i=new wA({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new MA({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(o),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(o,r){ty(e.getAxisProxy(o,r).getTargetSeriesModels(),(function(e){if(!(n||!0!==t&&Jv(_8,e.get("type"))<0)){var a,s=i.getComponent(L5(o),r).axis,l=function(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}(o),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:o,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],o=this._displayables.sliderGroup,r=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,c=a.get("brushSelect"),u=t.filler=new y8({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});o.add(u),o.add(new y8({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),ty([0,1],(function(t){var r=a.get("handleIcon");!kP[r]&&r.indexOf("path://")<0&&r.indexOf("image://")<0&&(r="path://"+r,"production"!==process.env.NODE_ENV&&OS("handleIcon now needs 'path://' prefix when using a path string"));var s=LP(r,-1,0,2,2,null,!0);s.attr({cursor:M8(this._orient),draggable:!0,drift:ay(this._onDragMove,this,t),ondragend:ay(this._onDragEnd,this),onmouseover:ay(this._showDataInfo,this,!0),onmouseout:ay(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=a.get("handleSize");this._handleHeight=rS(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),xT(s);var u=a.get("handleColor");null!=u&&(s.style.fill=u),o.add(n[t]=s);var p=a.getModel("textStyle");e.add(i[t]=new II({silent:!0,invisible:!0,style:jD(p,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:p.getTextColor(),font:p.getFont()}),z2:10}))}),this);var p=u;if(c){var d=rS(a.get("moveHandleSize"),r[1]),h=t.moveHandle=new uI({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:r[1]-.5,height:d}}),f=.8*d,g=t.moveHandleIcon=LP(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=r[1]+d/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(r[1]/2,Math.max(d,10));(p=t.moveZone=new uI({invisible:!0,shape:{y:r[1]-m,height:d+m}})).on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),o.add(h),o.add(g),o.add(p)}p.attr({draggable:!0,cursor:M8(this._orient),drift:ay(this._onDragMove,this,"all"),ondragstart:ay(this._showDataInfo,this,!0),ondragend:ay(this._onDragEnd,this),onmouseover:ay(this._showDataInfo,this,!0),onmouseout:ay(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[oS(e[0],[0,100],t,!0),oS(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];fZ(t,i,o,n.get("zoomLock")?"all":e,null!=r.minSpan?oS(r.minSpan,a,o,!0):null,null!=r.maxSpan?oS(r.maxSpan,a,o,!0):null);var s=this._range,l=this._range=sS([oS(i[0],o,a,!0),oS(i[1],o,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=sS(n.slice()),o=this._size;ty([0,1],(function(e){var i=t.handles[e],r=this._handleHeight;i.attr({scaleX:r/2,scaleY:r/2,x:n[e]+(e?-1:1),y:o[1]/2-r/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var r={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(r),t.moveZone.setShape(r),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",r.x+r.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],o[0]],l=0;l<a.length;l++){var c=a[l],u=c.getClipPath();u||(u=new uI,c.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,r=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,c=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();r=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=sS(this._handleEnds.slice());function p(e){var t=_D(n.handles[e].parent,this.group),a=SD(0===e?"right":"left",t),s=this._handleWidth/2+5,l=wD([u[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:o===x8?"middle":a,align:o===x8?a:"center",text:r[e]})}p.call(this,0),p.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=t.getPixelPrecision());var r=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return cy(i)?i(e,r):uy(i)?i.replace("{value}",r):r},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,Cx(i.event);var o=wD([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),r=this._updateInterval(e,o[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),r&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,r=this._updateInterval("all",n[0]-o);this._updateView(),r&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new zx(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=sS([oS(n.x,i,o,!0),oS(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Cx(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new y8({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var r=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(r.x,r.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),o.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?w8:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=P5(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return e},t.type="dataZoom.slider",t}(j5);function M8(e){return"vertical"===e?"ns-resize":"ew-resize"}var C8=S8;function I8(e){e.registerComponentModel(v8),e.registerComponentView(C8),q5(e)}var T8=function(e,t,n){var i=qv((A8[e]||{})[t]);return n&&ly(i)?i[i.length-1]:i},A8={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]}},D8=rX.mapVisual,k8=rX.eachVisual,E8=ly,O8=ty,L8=sS,N8=oS,P8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return G(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&y4(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=ay(e,this),this.controllerVisuals=v4(this.option.controller,t,e),this.targetVisuals=v4(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=BS(e),t},t.prototype.eachTargetSeries=function(e,t){ty(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,o=this.option,r=o.precision,a=this.dataBound,s=o.formatter;n=n||["<",">"],ly(e)&&(e=e.slice(),i=!0);var l=t?e:i?[c(e[0]),c(e[1])]:c(e);return uy(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):cy(s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(r,20))}},t.prototype.resetExtent=function(){var e=this.option,t=L8([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],r=e.getDimensionInfo(o);if(!r.isCalculationCoord)return r.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),o=t.controller||(t.controller={});Xv(i,n),Xv(o,n);var r=this.isCategory();function a(n){E8(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,i),a.call(this,o),function(e,t,n){var i=e[t],o=e[n];i&&!o&&(o=e[n]={},O8(i,(function(e,t){if(rX.isValidType(t)){var n=T8(t,"inactive",r);null!=n&&(o[t]=n,"color"!==t||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";O8(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:r?i:[i]}),null==l.symbol&&(l.symbol=t&&qv(t)||(r?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&qv(n)||(r?s[0]:[s[0],s[0]])),l.symbol=D8(l.symbol,(function(e){return"none"===e?o:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;k8(c,(function(e){e>u&&(u=e)})),l.symbolSize=D8(c,(function(e){return N8(e,[0,u],[0,s[0]],!0)}))}}),this)}.call(this,o)},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(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){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}(bE),R8=[20,140],z8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=R8[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=R8[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):ly(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),ty(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=sS((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=V8(this,"outOfRange",this.getExtent()),n=V8(this,"inRange",this.option.range.slice()),i=[];function o(t,n){i.push({value:t,color:e(t,n)})}for(var r=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[r]&&o(t[a],"outOfRange");for(var c=1;r<s;r++,c=0)c&&i.length&&o(n[r],"outOfRange"),o(n[r],"inRange");for(c=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(t[a],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=hk(P8.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}(P8);function V8(e,t,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],r=[],a=0;a<=200&&o<n[1];a++)r.push(o),o+=i;return r.push(n[1]),r}var B8=z8,j8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return G(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=eE(t.get("padding")||0),i=e.getBoundingRect();e.add(new uI({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var i=(n=n||{}).forceState,o=this.visualMapModel,r={};if("color"===t){var a=o.get("contentColor");r.color=a}function s(e){return r[e]}function l(e,t){r[e]=t}var c=o.controllerVisuals[i||o.getValueState(e)];return ty(rX.prepareVisualTypes(c),(function(i){var o=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",o=c.__alphaForOpacity),rX.dependsOn(i,t)&&o&&o.applyVisual(e,s,l)})),r[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;hE(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(gN),F8=j8,G8=[["left","right","width"],["top","bottom","height"]];function H8(e,t,n){var i=e.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var r={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=G8[a],l=[0,null,10],c={},u=0;u<3;u++)c[G8[1-a][u]]=l[u],c[s[u]]=2===u?n[0]:i[s[u]];var p=[["x","width",3],["y","height",0]][a],d=dE(c,r,i.padding);return s[(d.margin[p[2]]||0)+d[p[0]]+.5*d[p[1]]<.5*r[p[1]]?0:1]}function W8(e,t){return ty(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var U8=oS,Y8=ty,q8=Math.min,X8=Math.max,$8=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return G(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=ay(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ay(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,r=o.get("textGap"),a=o.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-r:a[1]+r],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new II({style:jD(p,{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,o=this._orient,r=this._useHandle,a=H8(t,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Zw;s.add(l),l.add(n.outOfRange=Z8()),l.add(n.inRange=Z8(null,r?J8(this._orient):null,ay(this._dragHandle,this,"all",!1),ay(this._dragHandle,this,"all",!0))),l.setClipPath(new uI({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),u=X8(c.width,c.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,u,o),this._createHandle(t,s,1,i,u,o)),this._createIndicator(t,s,i,u,o),e.add(s)},t.prototype._createHandle=function(e,t,n,i,o,r){var a=ay(this._dragHandle,this,n,!1),s=ay(this._dragHandle,this,n,!0),l=zw(e.get("handleSize"),i[0]),c=LP(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=J8(this._orient);c.attr({cursor:u,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){Cx(e.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),CT(c,!0),t.add(c);var p=this.visualMapModel.textStyleModel,d=new II({cursor:u,draggable:!0,drift:a,onmousemove:function(e){Cx(e.event)},ondragend:s,style:jD(p,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var h=[l,0],f=this._shapes;f.handleThumbs[n]=c,f.handleLabelPoints[n]=h,f.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,i,o){var r=zw(e.get("indicatorSize"),n[0]),a=LP(e.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof nI){var l=a.style;a.useStyle(Zv({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var c=this.visualMapModel.textStyleModel,u=new II({silent:!0,invisible:!0,style:jD(c,{x:0,y:0,text:""})});this.group.add(u);var p=[("horizontal"===o?i/2:6)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=u,d.indicatorLabelPoint=p,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():K8(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[U8(t[0],n,i,!0),U8(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];fZ(t,i,o,e,0);var r=n.getExtent();this._dataInterval=[U8(i[0],o,r,!0),U8(i[1],o,r,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,o=[0,t.itemSize[1]],r=e?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,r,"inRange"),s=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(r,a)},t.prototype._createBarVisual=function(e,t,n,i){var o={forceState:i,convertOpacityToAlpha:!0},r=this._makeColorGradient(e,o),a=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],s=this._createBarPoints(n,a);return{barColor:new jA(0,0,0,1,r),barPoints:s,handlesColor:[r[0].color,r[r.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],i=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<100;o++){var r=e[0]+i*o;if(r>e[1])break;n.push({color:this.getControllerVisual(r,"color",t),offset:o/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Zw("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,r=n.handleLabels,a=i.itemSize,s=i.getExtent();Y8([0,1],(function(l){var c=o[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=U8(e[l],[0,a[1]],s,!0),p=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=p/a[0],c.x=a[0]-p/2;var d=wD(n.handleLabelPoints[l],_D(c,this.group));r[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(e,"symbolSize"),d=U8(e,r,s,!0),h=a[0]-p/2,f={x:c.x,y:c.y};c.y=d,c.x=h;var g=wD(l.indicatorLabelPoint,_D(c,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+o.formatValueText(t),verticalAlign:y?v:"middle",align:y?"center":v});var x={x:h,y:d,style:{fill:u}},b={style:{x:g[0],y:g[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var _={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(x,_),m.animateTo(b,_)}else c.attr(x),m.attr(b);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=q8(X8(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],r=n.getExtent();e=q8(X8(o[0],e),o[1]);var a=function(e,t,n){var i=6,o=e.get("hoverLinkDataSize");o&&(i=U8(o,t,n,!0)/2);return i}(n,r,o),s=[e-a,e+a],l=U8(e,o,r,!0),c=[U8(s[0],o,r,!0),U8(s[1],o,r,!0)];s[0]<o[0]&&(c[0]=-1/0),s[1]>o[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var u=this._hoverLinkDataIndices,p=[];(t||K8(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=function(e,t){var n={},i={};return o(e||[],n),o(t||[],i,n),[r(n),r(i)];function o(e,t,n){for(var i=0,o=e.length;i<o;i++){var r=qS(e[i].seriesId,null);if(null==r)return;for(var a=BS(e[i].dataIndex),s=n&&n[r],l=0,c=a.length;l<c;l++){var u=a[l];s&&s[u]?s[u]=null:(t[r]||(t[r]={}))[u]=1}}}function r(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var o=r(e[i],!0);o.length&&n.push({seriesId:i,dataIndex:o})}return n}}(u,p);this._dispatchHighDown("downplay",W8(d[0],n)),this._dispatchHighDown("highlight",W8(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(_P(e.target,(function(e){var n=TI(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(t.dataType),r=o.getStore().get(i.getDataDimensionIndex(o),t.dataIndex);isNaN(r)||this._showIndicator(r,r)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",W8(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var o=_D(t,i?null:this.group);return ly(e)?wD(e,o,n):SD(e,o,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(F8);function Z8(e,t,n,i){return new wA({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Cx(e.event)},ondragend:i})}function K8(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function J8(e){return"vertical"===e?"ns-resize":"ew-resize"}var Q8=$8,e9={type:"selectDataRange",event:"dataRangeSelected",update:"update"},t9=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},n9=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i,o,r,a,s,l=e.pipelineContext;!t.isTargetSeries(e)||l&&l.large||n.push((i=t.stateList,o=t.targetVisuals,r=ay(t.getValueState,t),a=t.getDataDimensionIndex(e.getData()),s={},ty(i,(function(e){var t=rX.prepareVisualTypes(o[e]);s[e]=t})),{progress:function(e,t){var n,i;function l(e){return mP(t,i,e)}function c(e,n){yP(t,i,e,n)}null!=a&&(n=t.getDimensionIndex(a));for(var u=t.getStore();null!=(i=e.next());){var p=t.getRawDataItem(i);if(!p||!1!==p.visualMap)for(var d=null!=a?u.get(n,i):i,h=r(d),f=o[h],g=s[h],m=0,v=g.length;m<v;m++){var y=g[m];f[y]&&f[y].applyVisual(d,l,c)}}}}))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var o=t.getVisualMeta(ay(i9,null,e,t))||{stops:[],outerColors:[]},r=t.getDataDimensionIndex(n);r>=0&&(o.dimension=r,i.push(o))}})),e.getData().setVisual("visualMeta",i)}}];function i9(e,t,n,i){for(var o=t.targetVisuals[i],r=rX.prepareVisualTypes(o),a={color:vP(e.getData(),"color")},s=0,l=r.length;s<l;s++){var c=r[s],u=o["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,p,d)}return a.color;function p(e){return a[e]}function d(e,t){a[e]=t}}var o9=ty;function r9(e){var t=e&&e.visualMap;ly(t)||(t=t?[t]:[]),o9(t,(function(e){if(e){a9(e,"splitList")&&!a9(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&ly(t)&&o9(t,(function(e){hy(e)&&(a9(e,"start")&&!a9(e,"min")&&(e.min=e.start),a9(e,"end")&&!a9(e,"max")&&(e.max=e.end))}))}}))}function a9(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var s9=!1;function l9(e){s9||(s9=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(e9,t9),ty(n9,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(r9))}function c9(e){e.registerComponentModel(B8),e.registerComponentView(Q8),l9(e)}var u9=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return G(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],p9[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var o=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=qv(o)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=ny(this._pieceList,(function(e){return e=qv(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=rX.listVisualTypes(),o=this.isCategory();function r(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}ty(t.pieces,(function(e){ty(i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),ty(n,(function(e,n){var i=!1;ty(this.stateList,(function(e){i=i||r(t,e,n)||r(t.target,e,n)}),this),!i&&ty(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=T8(n,"inRange"===e?"active":"inactive",o)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,o=(t?n:e).selected||{};if(n.selected=o,ty(i,(function(e,t){var n=this.getSelectedMapKey(e);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var r=!1;ty(i,(function(e,t){var n=this.getSelectedMapKey(e);o[n]&&(r?o[n]=!1:r=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=qv(e)},t.prototype.getValueState=function(e){var t=rX.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var o=[],r=i.getData();r.each(this.getDataDimensionIndex(r),(function(t,i){rX.findPieceIndex(t,n)===e&&o.push(i)}),this),t.push({seriesId:i.id,dataIndex:o})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,o=this._pieceList.slice();if(o.length){var r=o[0].interval[0];r!==-1/0&&o.unshift({interval:[-1/0,r]}),(r=o[o.length-1].interval[1])!==1/0&&o.push({interval:[r,1/0]})}else o.push({interval:[-1/0,1/0]});var a=-1/0;return ty(o,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(o,r){var a=i.getRepresentValue({interval:o});r||(r=i.getValueState(a));var s=e(a,r);o[0]===-1/0?n[0]=s:o[1]===1/0?n[1]=s:t.push({value:o[0],color:s},{value:o[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=hk(P8.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}(P8),p9={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;t.precision=n,r=+r.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var l=a===o-1?i[1]:s+r;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),bS(e),ty(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;ty(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),d9(t,e)},pieces:function(e){var t=this.option;ty(t.pieces,(function(t,n){hy(t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var o=i.value=t.value;i.interval=[o,o],i.close=[1,1]}else{for(var r=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],c=[],u=0;u<2;u++){for(var p=[["gte","gt","min"],["lte","lt","max"]][u],d=0;d<3&&null==r[u];d++)r[u]=t[p[d]],a[u]=s[d],c[u]=2===d;null==r[u]&&(r[u]=l[u])}c[0]&&r[1]===1/0&&(a[0]=0),c[1]&&r[0]===-1/0&&(a[1]=0),"production"!==process.env.NODE_ENV&&r[0]>r[1]&&console.warn("Piece "+n+"is illegal: "+r+" lower bound should not greater then uppper bound."),r[0]===r[1]&&a[0]&&a[1]&&(i.value=r[0])}i.visual=rX.retrieveVisuals(t),e.push(i)}),this),d9(t,e),bS(e),ty(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function d9(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var h9=u9,f9=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return G(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,o=i.getFont(),r=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),c=l.endsText,u=by(t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],s,u,a),ty(l.viewPieceList,(function(i){var l=i.piece,c=new Zw;c.onclick=ay(this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var p=t.getRepresentValue(l);if(this._createItemSymbol(c,p,[0,0,s[0],s[1]]),u){var d=this.visualMapModel.getValueState(p);c.add(new II({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:o,fill:r,opacity:"outOfRange"===d?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,u,a),pE(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:W8(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return H8(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,o){if(t){var r=new Zw,a=this.visualMapModel.textStyleModel;r.add(new II({style:jD(a,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:t})})),e.add(r)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=ny(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return("horizontal"===i?o:!o)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(LP(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var o=qv(n.selected),r=t.getSelectedMapKey(e);"single"===i||!0===i?(o[r]=!0,ty(o,(function(e,t){o[t]=t===r}))):o[r]=!o[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(F8),g9=f9;function m9(e){e.registerComponentModel(h9),e.registerComponentView(g9),l9(e)}var v9={label:{enabled:!0},decal:{show:!1}},y9=QS(),x9={};function b9(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=qv(v9);Xv(i.label,e.getLocaleModel().get("aria"),!1),Xv(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var t=Ly();e.eachSeries((function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),y9(e).scope=n}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(cy(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=qE(t.ecModel,t.name,x9,e.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",c(o,i))}else{var r=t.getRawData(),a={},s=y9(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=r.count();r.each((function(e){var i=a[e],o=r.getName(e)||e+"",u=qE(t.ecModel,o,s,l),p=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(p,u))}))}}function c(e,t){var n=e?Zv(Zv({},t),e):t;return n.dirty=!0,n}}))}}(),function(){var i=e.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=Kv(r.option,i),!r.get("enabled"))return;var a=t.getZr().dom;if(r.get("description"))return void a.setAttribute("aria-label",r.get("description"));var s,l=e.getSeriesCount(),c=r.get(["data","maxCount"])||10,u=r.get(["series","maxCount"])||10,p=Math.min(l,u);if(l<1)return;var d=function(){var t=e.get("title");t&&t.length&&(t=t[0]);return t&&t.text}();s=d?o(r.get(["general","withTitle"]),{title:d}):r.get(["general","withoutTitle"]);var h=[];s+=o(l>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]),{seriesCount:l}),e.eachSeries((function(t,n){if(n<p){var i=void 0,a=t.get("name")?"withName":"withoutName";i=o(i=l>1?r.get(["series","multiple",a]):r.get(["series","single",a]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(x=t.subType,b=e.getLocaleModel().get(["series","typeNames"]),b[x]||b.chart)});var s=t.getData();if(s.count()>c)i+=o(r.get(["data","partialData"]),{displayCnt:c});else i+=r.get(["data","allData"]);for(var u=r.get(["data","separator","middle"]),d=r.get(["data","separator","end"]),f=[],g=0;g<s.count();g++)if(g<c){var m=s.getName(g),v=s.getValues(g),y=r.get(["data",m?"withName":"withoutName"]);f.push(o(y,{name:m,value:v.join(u)}))}i+=f.join(u)+d,h.push(i)}var x,b}));var f=r.getModel(["series","multiple","separator"]),g=f.get("middle"),m=f.get("end");s+=h.join(g)+m,a.setAttribute("aria-label",s)}()}function o(e,t){if(!uy(e))return e;var n=e;return ty(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}}function _9(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},ty(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}var w9={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},S9=function(){function e(e){if(null==(this._condVal=uy(e)?new RegExp(e):yy(e)?e:null)){var t="";"production"!==process.env.NODE_ENV&&(t=NS("Illegal regexp",e,"in")),PS(t)}}return e.prototype.evaluate=function(e){var t=typeof e;return uy(t)?this._condVal.test(e):!!dy(t)&&this._condVal.test(e+"")},e}(),M9=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),C9=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),I9=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),T9=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),A9=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:t))return!1;return!0},e}();function D9(e,t){if(!0===e||!1===e){var n=new M9;return n.value=e,n}var i="";return E9(e)||("production"!==process.env.NODE_ENV&&(i=NS("Illegal config. Expect a plain object but actually",e)),PS(i)),e.and?k9("and",e,t):e.or?k9("or",e,t):e.not?function(e,t){var n=e.not,i="";"production"!==process.env.NODE_ENV&&(i=NS('"not" condition should only be `not: {}`.',"Illegal condition:",e));E9(n)||PS(i);var o=new T9;o.child=D9(n,t),o.child||PS(i);return o}(e,t):function(e,t){for(var n="",i=t.prepareGetValue(e),o=[],r=ry(e),a=e.parser,s=a?pL(a):null,l=0;l<r.length;l++){var c=r[l];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var u=zy(w9,c)?w9[c]:c,p=e[c],d=s?s(p):p,h=mL(u,d)||"reg"===u&&new S9(d);h||("production"!==process.env.NODE_ENV&&(n=NS('Illegal relational operation: "'+c+'" in condition:',e)),PS(n)),o.push(h)}}o.length||("production"!==process.env.NODE_ENV&&(n=NS("Relational condition must have at least one operator.","Illegal condition:",e)),PS(n));var f=new A9;return f.valueGetterParam=i,f.valueParser=s,f.getValue=t.getValue,f.subCondList=o,f}(e,t)}function k9(e,t,n){var i=t[e],o="";"production"!==process.env.NODE_ENV&&(o=NS('"and"/"or" condition should only be `'+e+": [...]` and must not be empty array.","Illegal condition:",t)),ly(i)||PS(o),i.length||PS(o);var r="and"===e?new C9:new I9;return r.children=ny(i,(function(e){return D9(e,n)})),r.children.length||PS(o),r}function E9(e){return hy(e)&&!ey(e)}var O9=function(){function e(e,t){this._cond=D9(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var L9={type:"echarts:filter",transform:function(e){for(var t,n,i,o=e.upstream,r=(n=e.config,i={valueGetterAttrMap:Ly({dimension:!0}),prepareGetValue:function(e){var t="",n=e.dimension;zy(e,"dimension")||("production"!==process.env.NODE_ENV&&(t=NS('Relation condition must has prop "dimension" specified.',"Illegal condition:",e)),PS(t));var i=o.getDimensionInfo(n);return i||("production"!==process.env.NODE_ENV&&(t=NS("Can not find dimension info via: "+n+".\n","Existing dimensions: ",o.cloneAllDimensionInfo(),".\n","Illegal condition:",e,".\n")),PS(t)),{dimIdx:i.index}},getValue:function(e){return o.retrieveValueFromItem(t,e.dimIdx)}},new O9(n,i)),a=[],s=0,l=o.count();s<l;s++)t=o.getRawDataItem(s),r.evaluate()&&a.push(t);return{data:a}}},N9="";"production"!==process.env.NODE_ENV&&(N9=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var P9={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",o=BS(n);o.length||("production"!==process.env.NODE_ENV&&(i="Empty `config` in sort transform."),PS(i));var r=[];ty(o,(function(e){var n=e.dimension,o=e.order,a=e.parser,s=e.incomparable;if(null==n&&("production"!==process.env.NODE_ENV&&(i='Sort transform config must has "dimension" specified.'+N9),PS(i)),"asc"!==o&&"desc"!==o&&("production"!==process.env.NODE_ENV&&(i='Sort transform config must has "order" specified.'+N9),PS(i)),s&&"min"!==s&&"max"!==s){var l="";"production"!==process.env.NODE_ENV&&(l='incomparable must be "min" or "max" rather than "'+s+'".'),PS(l)}if("asc"!==o&&"desc"!==o){var c="";"production"!==process.env.NODE_ENV&&(c='order must be "asc" or "desc" rather than "'+o+'".'),PS(c)}var u=t.getDimensionInfo(n);u||("production"!==process.env.NODE_ENV&&(i=NS("Can not find dimension info via: "+n+".\n","Existing dimensions: ",t.cloneAllDimensionInfo(),".\n","Illegal config:",e,".\n")),PS(i));var p=a?pL(a):null;a&&!p&&("production"!==process.env.NODE_ENV&&(i=NS("Invalid parser name "+a+".\n","Illegal config:",e,".\n")),PS(i)),r.push({dimIdx:u.index,parser:p,comparator:new fL(o,s)})}));var a=t.sourceFormat;a!==IE&&a!==TE&&("production"!==process.env.NODE_ENV&&(i='sourceFormat "'+a+'" is not supported yet'),PS(i));for(var s=[],l=0,c=t.count();l<c;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var i=0;i<r.length;i++){var o=r[i],a=t.retrieveValueFromItem(e,o.dimIdx),s=t.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var l=o.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};var R9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return G(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new PL(this),RL(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),RL(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:EE},t}(bE),z9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return G(t,e),t.type="dataset",t}(gN);var V9=TC.CMD;function B9(e,t){return Math.abs(e-t)<1e-5}function j9(e){var t,n,i,o,r,a=e.data,s=e.len(),l=[],c=0,u=0,p=0,d=0;function h(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function f(e,n,i,o){B9(e,i)&&B9(n,o)||t.push(e,n,i,o,i,o)}function g(e,n,i,o,r,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=n<e?-1:1,u=Math.cos(e),p=Math.sin(e),d=Math.cos(n),h=Math.sin(n),f=u*r+i,g=p*a+o,m=d*r+i,v=h*a+o,y=r*l*c,x=a*l*c;t.push(f-y*p,g+x*u,m+y*h,v-x*d,m,v)}for(var m=0;m<s;){var v=a[m++],y=1===m;switch(y&&(p=c=a[m],d=u=a[m+1],v!==V9.L&&v!==V9.C&&v!==V9.Q||(t=[p,d])),v){case V9.M:c=p=a[m++],u=d=a[m++],h(p,d);break;case V9.L:f(c,u,n=a[m++],i=a[m++]),c=n,u=i;break;case V9.C:t.push(a[m++],a[m++],a[m++],a[m++],c=a[m++],u=a[m++]);break;case V9.Q:n=a[m++],i=a[m++],o=a[m++],r=a[m++],t.push(c+2/3*(n-c),u+2/3*(i-u),o+2/3*(n-o),r+2/3*(i-r),o,r),c=o,u=r;break;case V9.A:var x=a[m++],b=a[m++],_=a[m++],w=a[m++],S=a[m++],M=a[m++]+S;m+=1;var C=!a[m++];n=Math.cos(S)*_+x,i=Math.sin(S)*w+b,y?h(p=n,d=i):f(c,u,n,i),c=Math.cos(M)*_+x,u=Math.sin(M)*w+b;for(var I=(C?-1:1)*Math.PI/2,T=S;C?T>M:T<M;T+=I){g(T,C?Math.max(T+I,M):Math.min(T+I,M),x,b,_,w)}break;case V9.R:p=c=a[m++],d=u=a[m++],n=p+a[m++],i=d+a[m++],h(n,d),f(n,d,n,i),f(n,i,p,i),f(p,i,p,d),f(p,d,n,d);break;case V9.Z:t&&f(c,u,p,d),c=p,u=d}}return t&&t.length>2&&l.push(t),l}function F9(e,t,n,i,o,r,a,s,l,c){if(B9(e,n)&&B9(t,i)&&B9(o,a)&&B9(r,s))l.push(a,s);else{var u=2/c,p=u*u,d=a-e,h=s-t,f=Math.sqrt(d*d+h*h);d/=f,h/=f;var g=n-e,m=i-t,v=o-a,y=r-s,x=g*g+m*m,b=v*v+y*y;if(x<p&&b<p)l.push(a,s);else{var _=d*g+h*m,w=-d*v-h*y;if(x-_*_<p&&_>=0&&b-w*w<p&&w>=0)l.push(a,s);else{var S=[],M=[];Rb(e,n,o,a,.5,S),Rb(t,i,r,s,.5,M),F9(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,c),F9(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,c)}}}}function G9(e,t,n){var i=e[t],o=e[1-t],r=Math.abs(i/o),a=Math.ceil(Math.sqrt(r*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],c=0;c<a;c++)l.push(s);var u=n-a*s;if(u>0)for(c=0;c<u;c++)l[c%a]+=1;return l}function H9(e,t,n){for(var i=e.r0,o=e.r,r=e.startAngle,a=e.endAngle,s=Math.abs(a-r),l=s*o,c=o-i,u=l>Math.abs(c),p=G9([l,c],u?0:1,t),d=(u?s:c)/p.length,h=0;h<p.length;h++)for(var f=(u?c:s)/p[h],g=0;g<p[h];g++){var m={};u?(m.startAngle=r+d*h,m.endAngle=r+d*(h+1),m.r0=i+f*g,m.r=i+f*(g+1)):(m.startAngle=r+f*g,m.endAngle=r+f*(g+1),m.r0=i+d*h,m.r=i+d*(h+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,n.push(m)}}function W9(e,t,n,i){return e*i-n*t}function U9(e,t,n,i,o,r,a,s){var l=n-e,c=i-t,u=a-o,p=s-r,d=W9(u,p,l,c);if(Math.abs(d)<1e-6)return null;var h=W9(e-o,t-r,u,p)/d;return h<0||h>1?null:new zx(h*l+e,h*c+t)}function Y9(e,t,n){var i=new zx;zx.sub(i,n,t),i.normalize();var o=new zx;return zx.sub(o,e,t),o.dot(i)}function q9(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function X9(e){var t=e.points,n=[],i=[];nC(t,n,i);var o=new qx(n[0],n[1],i[0]-n[0],i[1]-n[1]),r=o.width,a=o.height,s=o.x,l=o.y,c=new zx,u=new zx;return r>a?(c.x=u.x=s+r/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+r),function(e,t,n){for(var i=e.length,o=[],r=0;r<i;r++){var a=e[r],s=e[(r+1)%i],l=U9(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&o.push({projPt:Y9(l,t,n),pt:l,idx:r})}if(o.length<2)return[{points:e},{points:e}];o.sort((function(e,t){return e.projPt-t.projPt}));var c=o[0],u=o[o.length-1];if(u.idx<c.idx){var p=c;c=u,u=p}var d=[c.pt.x,c.pt.y],h=[u.pt.x,u.pt.y],f=[d],g=[h];for(r=c.idx+1;r<=u.idx;r++)q9(f,e[r].slice());for(q9(f,h),q9(f,d),r=u.idx+1;r<=c.idx+i;r++)q9(g,e[r%i].slice());return q9(g,d),q9(g,h),[{points:f},{points:g}]}(t,c,u)}function $9(e,t,n,i){if(1===n)i.push(t);else{var o=Math.floor(n/2),r=e(t);$9(e,r[0],o,i),$9(e,r[1],n-o,i)}return i}function Z9(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function K9(e,t){var n,i=[],o=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var i=e.width,o=e.height,r=i>o,a=G9([i,o],r?0:1,t),s=r?"width":"height",l=r?"height":"width",c=r?"x":"y",u=r?"y":"x",p=e[s]/a.length,d=0;d<a.length;d++)for(var h=e[l]/a[d],f=0;f<a[d];f++){var g={};g[c]=d*p,g[u]=f*h,g[s]=p,g[l]=h,g.x+=e.x,g.y+=e.y,n.push(g)}}(o,t,i),n=uI;break;case"sector":H9(o,t,i),n=mA;break;case"circle":H9({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},t,i),n=mA;break;default:var r=e.getComputedTransform(),a=r?Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3])):1,s=ny(function(e,t){var n=j9(e),i=[];t=t||1;for(var o=0;o<n.length;o++){var r=n[o],a=[],s=r[0],l=r[1];a.push(s,l);for(var c=2;c<r.length;){var u=r[c++],p=r[c++],d=r[c++],h=r[c++],f=r[c++],g=r[c++];F9(s,l,u,p,d,h,f,g,a,t),s=f,l=g}i.push(a)}return i}(e.getUpdatedPathProxy(),a),(function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)})),l=s.length;if(0===l)$9(X9,{points:s[0]},t,i);else if(l===t)for(var c=0;c<l;c++)i.push({points:s[c]});else{var u=0,p=ny(s,(function(e){var t=[],n=[];nC(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return u+=i,{poly:e,area:i}}));p.sort((function(e,t){return t.area-e.area}));var d=t;for(c=0;c<l;c++){var h=p[c];if(d<=0)break;var f=c===l-1?d:Math.ceil(h.area/u*t);f<0||($9(X9,{points:h.poly},f,i),d-=f)}}n=wA}if(!n)return function(e,t){for(var n=[],i=0;i<t;i++)n.push(XT(e));return n}(e,t);var g=[];for(c=0;c<i.length;c++){var m=new n;m.setShape(i[c]),Z9(e,m),g.push(m)}return g}function J9(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var o=[],r=[],a=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,p=[a[0],a[1]],d=l,h=2;h<s;){var f=a[h-2],g=a[h-1],m=a[h++],v=a[h++],y=a[h++],x=a[h++],b=a[h++],_=a[h++];if(d<=0)p.push(m,v,y,x,b,_);else{for(var w=Math.min(d,u-1)+1,S=1;S<=w;S++){var M=S/w;Rb(f,m,y,b,M,o),Rb(g,v,x,_,M,r),f=o[3],g=r[3],p.push(o[1],r[1],o[2],r[2],f,g),m=o[5],v=r[5],y=o[6],x=r[6]}d-=w-1}}return a===e?[p,t]:[e,p]}function Q9(e,t){for(var n=e.length,i=e[n-2],o=e[n-1],r=[],a=0;a<t.length;)r[a++]=i,r[a++]=o;return r}function e7(e){for(var t=0,n=0,i=0,o=e.length,r=0,a=o-2;r<o;a=r,r+=2){var s=e[a],l=e[a+1],c=e[r],u=e[r+1],p=s*u-c*l;t+=p,n+=(s+c)*p,i+=(l+u)*p}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function t7(e,t,n,i){for(var o=(e.length-2)/6,r=1/0,a=0,s=e.length,l=s-2,c=0;c<o;c++){for(var u=6*c,p=0,d=0;d<s;d+=2){var h=0===d?u:(u+d-2)%l+2,f=e[h]-n[0],g=e[h+1]-n[1],m=t[d]-i[0]-f,v=t[d+1]-i[1]-g;p+=m*m+v*v}p<r&&(r=p,a=c)}return a}function n7(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function i7(e){return e.__isCombineMorphing}var o7="__mOriginal_";function r7(e,t,n){var i=o7+t,o=e[i]||e[t];e[i]||(e[i]=e[t]);var r=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=r?r.apply(this,t):o.apply(this,t),a&&a.apply(this,t),e}}function a7(e,t){var n=o7+t;e[n]&&(e[t]=e[n],e[n]=null)}function s7(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],o=0;o<i.length;){var r=i[o],a=i[o+1];i[o++]=t[0]*r+t[2]*a+t[4],i[o++]=t[1]*r+t[3]*a+t[5]}}function l7(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),o=function(e,t){for(var n,i,o,r=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,p=void 0;l?c?(i=u=(n=J9(l,c))[0],o=p=n[1]):(p=Q9(o||l,l),u=l):(u=Q9(i||c,c),p=c),r.push(u),a.push(p)}return[r,a]}(j9(n),j9(i)),r=o[0],a=o[1],s=e.getComputedTransform(),l=t.getComputedTransform();s&&s7(r,s),l&&s7(a,l),r7(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var c=function(e,t,n,i){for(var o,r=[],a=0;a<e.length;a++){var s=e[a],l=t[a],c=e7(s),u=e7(l);null==o&&(o=c[2]<0!=u[2]<0);var p=[],d=[],h=0,f=1/0,g=[],m=s.length;o&&(s=n7(s));for(var v=6*t7(s,l,c,u),y=m-2,x=0;x<y;x+=2){var b=(v+x)%y+2;p[x+2]=s[b]-c[0],p[x+3]=s[b+1]-c[1]}if(p[0]=s[v]-c[0],p[1]=s[v+1]-c[1],n>0)for(var _=i/n,w=-i/2;w<=i/2;w+=_){var S=Math.sin(w),M=Math.cos(w),C=0;for(x=0;x<s.length;x+=2){var I=p[x],T=p[x+1],A=l[x]-u[0],D=l[x+1]-u[1],k=A*M-D*S,E=A*S+D*M;g[x]=k,g[x+1]=E;var O=k-I,L=E-T;C+=O*O+L*L}if(C<f){f=C,h=w;for(var N=0;N<g.length;N++)d[N]=g[N]}}else for(var P=0;P<m;P+=2)d[P]=l[P]-u[0],d[P+1]=l[P+1]-u[1];r.push({from:p,to:d,fromCp:c,toCp:u,rotation:-h})}return r}(r,a,10,Math.PI),u=[];r7(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,o=[],r=0;r<c.length;r++){var a=c[r],s=a.from,l=a.to,p=a.rotation*n,d=a.fromCp,h=a.toCp,f=Math.sin(p),g=Math.cos(p);Qy(o,d,h,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],x=v*i+(S=l[m])*n,b=y*i+(M=l[m+1])*n;u[m]=x*g-b*f+o[0],u[m+1]=x*f+b*g+o[1]}var _=u[0],w=u[1];e.moveTo(_,w);for(m=2;m<s.length;){var S=u[m++],M=u[m++],C=u[m++],I=u[m++],T=u[m++],A=u[m++];_===S&&w===M&&C===T&&I===A?e.lineTo(T,A):e.bezierCurveTo(S,M,C,I,T,A),_=T,w=A}}}})}function c7(e,t,n){if(!e||!t)return t;var i=n.done,o=n.during;return l7(e,t),t.__morphT=0,t.animateTo({__morphT:1},Kv({during:function(e){t.dirtyShape(),o&&o(e)},done:function(){a7(t,"buildPath"),a7(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),i&&i()}},n)),t}function u7(e,t,n,i,o,r){e=o===n?0:Math.round(32767*(e-n)/(o-n)),t=r===i?0:Math.round(32767*(t-i)/(r-i));for(var a,s=0,l=32768;l>0;l/=2){var c=0,u=0;(e&l)>0&&(c=1),(t&l)>0&&(u=1),s+=l*l*(3*c^u),0===u&&(1===c&&(e=l-1-e,t=l-1-t),a=e,e=t,t=a)}return s}function p7(e){var t=1/0,n=1/0,i=-1/0,o=-1/0,r=ny(e,(function(e){var r=e.getBoundingRect(),a=e.getComputedTransform(),s=r.x+r.width/2+(a?a[4]:0),l=r.y+r.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),o=Math.max(l,o),[s,l]}));return ny(r,(function(r,a){return{cp:r,z:u7(r[0],r[1],t,n,i,o),path:e[a]}})).sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function d7(e){return K9(e.path,e.count)}function h7(e){return ly(e[0])}function f7(e,t){for(var n=[],i=e.length,o=0;o<i;o++)n.push({one:e[o],many:[]});for(o=0;o<t.length;o++){var r=t[o].length,a=void 0;for(a=0;a<r;a++)n[a%i].many.push(t[o][a])}var s=0;for(o=i-1;o>=0;o--)if(!n[o].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}r=l.length;var c=Math.ceil(r/2);n[o].many=l.slice(c,r),n[s].many=l.slice(0,c),s++}return n}var g7={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var o=XT(e.path);o.setStyle("opacity",n),t.push(o)}return t},split:null};function m7(e,t,n,i,o,r){if(e.length&&t.length){var a=QA("update",i,o);if(a&&a.duration>0){var s,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);h7(e)&&(s=e,l=t),h7(t)&&(s=t,l=e);for(var p=s?s===e:e.length>t.length,d=s?f7(l,s):f7(p?t:e,[p?e:t]),h=0,f=0;f<d.length;f++)h+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)m(d[f],p,g,h),g+=d[f].many.length}}function m(e,t,i,o,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var p=Kv({dividePath:g7[n],individualDelay:c&&function(e,t,n,r){return c(e+i,o)}},u),d=t?function(e,t,n){var i=[];!function e(t){for(var n=0;n<t.length;n++){var o=t[n];i7(o)?e(o.childrenRef()):o instanceof $C&&i.push(o)}}(e);var o=i.length;if(!o)return{fromIndividuals:[],toIndividuals:[],count:0};var r=(n.dividePath||d7)({path:t,count:o});if(r.length!==o)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=p7(i),r=p7(r);for(var a=n.done,s=n.during,l=n.individualDelay,c=new Tw,u=0;u<o;u++){var p=i[u],d=r[u];d.parent=t,d.copyTransform(c),l||l7(p,d)}function h(e){for(var t=0;t<r.length;t++)r[t].addSelfToZr(e)}function f(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,a7(t,"addSelfToZr"),a7(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return r},r7(t,"addSelfToZr",{after:function(e){h(e)}}),r7(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<r.length;t++)r[t].removeSelfFromZr(e)}});var g=r.length;if(l){var m=g,v=function(){0==--m&&(f(),a&&a())};for(u=0;u<g;u++){var y=l?Kv({delay:(n.delay||0)+l(u,g,i[u],r[u]),done:v},n):n;c7(i[u],r[u],y)}}else t.__morphT=0,t.animateTo({__morphT:1},Kv({during:function(e){for(var n=0;n<g;n++){var i=r[n];i.__morphT=t.__morphT,i.dirtyShape()}s&&s(e)},done:function(){f();for(var t=0;t<e.length;t++)a7(e[t],"updateTransform");a&&a()}},n));return t.__zr&&h(t.__zr),{fromIndividuals:i,toIndividuals:r,count:g}}(s,l,p):function(e,t,n){var i=t.length,o=[],r=n.dividePath||d7;if(i7(e)){!function e(t){for(var n=0;n<t.length;n++){var i=t[n];i7(i)?e(i.childrenRef()):i instanceof $C&&o.push(i)}}(e.childrenRef());var a=o.length;if(a<i)for(var s=0,l=a;l<i;l++)o.push(XT(o[s++%a]));o.length=i}else{o=r({path:e,count:i});var c=e.getComputedTransform();for(l=0;l<o.length;l++)o[l].setLocalTransform(c);if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}o=p7(o),t=p7(t);var u=n.individualDelay;for(l=0;l<i;l++){var p=u?Kv({delay:(n.delay||0)+u(l,i,o[l],t[l])},n):n;c7(o[l],t[l],p)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}(l,s,p),h=d.fromIndividuals,f=d.toIndividuals,g=h.length,v=0;v<g;v++){y=c?Kv({delay:c(v,g)},u):u;r(h[v],f[v],t?s[v]:e.one,t?e.one:s[v],y)}else{var y,x=t?s[0]:l,b=t?l:s[0];if(i7(x))m({many:[x],one:b},!0,i,o,!0);else c7(x,b,y=c?Kv({delay:c(i,o)},u):u),r(x,b,x,b,y)}}}function v7(e){if(!e)return[];if(ly(e)){for(var t=[],n=0;n<e.length;n++)t.push(v7(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof $C&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var y7=1e4,x7=0,b7=1,_7=2,w7=QS();function S7(e,t,n,i){var o=function(e,t){for(var n=e.dimensions,i=0;i<n.length;i++){var o=e.getDimensionInfo(n[i]);if(o&&0===o.otherDims[t])return n[i]}}(e,i?"itemChildGroupId":"itemGroupId");if(o){var r=function(e,t,n){var i=e.getDimensionInfo(n),o=i&&i.ordinalMeta;if(i){var r=e.get(i.name,t);return o&&o.categories[r]||r+""}}(e,t,o);return r}var a=e.getRawDataItem(t),s=i?"childGroupId":"groupId";return a&&a[s]?a[s]+"":i?void 0:n||e.getId(t)}function M7(e){var t=[];return ty(e,(function(e){var n=e.data,i=e.dataGroupId;if(n.count()>y7)"production"!==process.env.NODE_ENV&&kS("Universal transition is disabled on large data > 10k.");else for(var o=n.getIndices(),r=0;r<o.length;r++)t.push({data:n,groupId:S7(n,r,i,!1),childGroupId:S7(n,r,i,!0),divide:e.divide,dataIndex:r})})),t}function C7(e,t,n){e.traverse((function(e){e instanceof $C&&nD(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function I7(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function T7(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function A7(e,t,n){var i=QA("update",n,t);i&&e.traverse((function(e){if(e instanceof qM){var t=function(e){return JA(e).oldStyle}(e);t&&e.animateFrom({style:t},i)}}))}function D7(e,t,n){var i=M7(e),o=M7(t);function r(e,t,n,i,o){(n||e)&&t.animateFrom({style:n&&n!==e?Zv(Zv({},n.style),e.style):e.style},o)}var a=!1,s=x7,l=Ly(),c=Ly();i.forEach((function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&c.set(e.childGroupId,!0)}));for(var u=0;u<o.length;u++){var p=o[u].groupId;if(c.get(p)){s=b7;break}var d=o[u].childGroupId;if(d&&l.get(d)){s=_7;break}}function h(e,t){return function(n){var i=n.data,o=n.dataIndex;return t?i.getId(o):e?s===b7?n.childGroupId:n.groupId:s===_7?n.childGroupId:n.groupId}}var f=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var o=e[i],r=t[i];if(o.data.getId(o.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}(i,o),g={};if(!f)for(u=0;u<o.length;u++){var m=o[u],v=m.data.getItemGraphicEl(m.dataIndex);v&&(g[v.id]=!0)}function y(e,t){var n=i[t],s=o[e],l=s.data.hostModel,c=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);c!==u?c&&g[c.id]||u&&(T7(u),c?(T7(c),I7(c),a=!0,m7(v7(c),v7(u),s.divide,l,e,r)):C7(u,l,e)):u&&A7(u,s.dataIndex,l)}new Cz(i,o,h(!0,f),h(!1,f),null,"multiple").update(y).updateManyToOne((function(e,t){var n=o[e],s=n.data,l=s.hostModel,c=s.getItemGraphicEl(n.dataIndex),u=oy(ny(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==c&&!g[e.id]}));c&&(T7(c),u.length?(ty(u,(function(e){T7(e),I7(e)})),a=!0,m7(v7(u),v7(c),n.divide,l,e,r)):C7(c,l,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=oy(ny(e,(function(e){return o[e].data.getItemGraphicEl(o[e].dataIndex)})),(function(e){return e&&e!==s})),c=o[e[0]].data.hostModel;l.length&&(ty(l,(function(e){return T7(e)})),s?(T7(s),I7(s),a=!0,m7(v7(s),v7(l),n.divide,c,e[0],r)):ty(l,(function(t){return C7(t,c,e[0])})))}})).updateManyToMany((function(e,t){new Cz(t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return o[e].data.getId(o[e].dataIndex)})).update((function(n,i){y(e[n],t[i])})).execute()})).execute(),a&&ty(t,(function(e){var t=e.data.hostModel,i=t&&n.getViewOfSeriesModel(t),o=QA("update",t,0);i&&t.isAnimationEnabled()&&o&&o.duration>0&&i.group.traverse((function(e){e instanceof $C&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function k7(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function E7(e){return ly(e)?e.sort().join(","):e}function O7(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function L7(e,t){for(var n=0;n<e.length;n++){if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}}_z([function(e){e.registerPainter("canvas",QF)}]),_z([function(e){e.registerPainter("svg",UF)}]),_z([function(e){e.registerChartView(RG),e.registerSeriesModel(tG),e.registerLayout(zG("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,jG("line"))},function(e){e.registerChartView(hH),e.registerSeriesModel(HG),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,sy(OV,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,LV("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,jG("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))},function(e){e.registerChartView(TH),e.registerSeriesModel(LH),xP("pie",e.registerAction),e.registerLayout(sy(yH,"pie")),e.registerProcessor(xH("pie")),e.registerProcessor(function(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(dy(i)&&!isNaN(i)&&i<0)}))}}}("pie"))},function(e){_z(zW),e.registerSeriesModel(PH),e.registerChartView(jH),e.registerLayout(zG("scatter"))},function(e){_z(iU),e.registerChartView(HW),e.registerSeriesModel(UW),e.registerLayout(VW),e.registerProcessor(xH("radar")),e.registerPreprocessor(FW)},function(e){_z(RY),e.registerChartView(hY),e.registerSeriesModel(gY),e.registerLayout(vY),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mY),xP("map",e.registerAction)},function(e){e.registerChartView(tq),e.registerSeriesModel(yq),e.registerLayout(bq),e.registerVisual(_q),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=OY(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}(e)},function(e){e.registerSeriesModel(Iq),e.registerChartView(Hq),e.registerVisual(sX),e.registerLayout(bX),function(e){for(var t=0;t<wq.length;t++)e.registerAction({type:wq[t],update:"updateView"},Vy);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,n){var i=hq(e,["treemapZoomToNode","treemapRootToNode"],t);if(i){var o=t.getViewRoot();o&&(e.direction=gq(o,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}))}))}(e)},function(e){e.registerChartView(C$),e.registerSeriesModel(L$),e.registerProcessor(IX),e.registerVisual(TX),e.registerVisual(DX),e.registerLayout(FX),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,$X),e.registerLayout(KX),e.registerCoordinateSystem("graphView",{dimensions:xY.dimensions,create:JX}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Vy),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Vy),e.registerAction(N$,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=OY(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))},function(e){e.registerChartView(B$),e.registerSeriesModel(j$)},function(e){e.registerChartView(W$),e.registerSeriesModel(Y$),e.registerLayout(q$),e.registerProcessor(xH("funnel"))},function(e){_z(kK),e.registerChartView(Q$),e.registerSeriesModel(nZ),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,rZ)},function(e){e.registerChartView(PK),e.registerSeriesModel(zK),e.registerLayout(VK),e.registerVisual(ZK),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},function(e){e.registerSeriesModel(QK),e.registerChartView(aJ),e.registerLayout(lJ),e.registerTransform(cJ)},function(e){e.registerChartView(wJ),e.registerSeriesModel(MJ),e.registerPreprocessor(CJ),e.registerVisual(OJ),e.registerLayout(PJ)},function(e){e.registerChartView(jJ),e.registerSeriesModel(GJ),e.registerLayout(zG("effectScatter"))},function(e){e.registerChartView(tQ),e.registerSeriesModel(aQ),e.registerLayout(QJ),e.registerVisual(cQ)},function(e){e.registerChartView(fQ),e.registerSeriesModel(gQ)},function(e){e.registerChartView(zQ),e.registerSeriesModel(VQ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,sy(OV,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,LV("pictorialBar"))},function(e){e.registerChartView(jQ),e.registerSeriesModel(GQ),e.registerLayout(HQ),e.registerProcessor(xH("themeRiver"))},function(e){e.registerChartView(ZQ),e.registerSeriesModel(QQ),e.registerLayout(sy(t0,"sunburst")),e.registerProcessor(sy(xH,"sunburst")),e.registerVisual(i0),function(e){e.registerAction({type:YQ,update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var i=hq(e,[YQ],t);if(i){var o=t.getViewRoot();o&&(e.direction=gq(o,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}))})),e.registerAction({type:qQ,update:"none"},(function(e,t,n){e=Zv({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t){var n=hq(e,[qQ],t);n&&(e.dataIndex=n.node.dataIndex)})),"production"!==process.env.NODE_ENV&&LS("sunburstHighlight","highlight"),n.dispatchAction(Zv(e,{type:"highlight"}))})),e.registerAction({type:XQ,update:"updateView"},(function(e,t,n){e=Zv({},e),"production"!==process.env.NODE_ENV&&LS("sunburstUnhighlight","downplay"),n.dispatchAction(Zv(e,{type:"downplay"}))}))}(e)},function(e){e.registerChartView(n1),e.registerSeriesModel(s0)}]),_z((function(e){_z(zW),_z(a2)})),_z((function(e){_z(a2),CW.registerAxisPointerClass("PolarAxisPointer",c2),e.registerCoordinateSystem("polar",M2),e.registerComponentModel(u2),e.registerComponentView(G2),XH(e,"angle",d2,j2),XH(e,"radius",h2,F2),e.registerComponentView(E2),e.registerComponentView(R2),e.registerLayout(sy(B2,"bar"))})),_z(RY),_z((function(e){_z(a2),CW.registerAxisPointerClass("SingleAxisPointer",c5),e.registerComponentView(u5),e.registerComponentView(X2),e.registerComponentModel(Z2),XH(e,"single",Z2,Z2.defaultOption),e.registerCoordinateSystem("single",n5)})),_z(kK),_z((function(e){e.registerComponentModel(d5),e.registerComponentView(f5),e.registerCoordinateSystem("calendar",y5)})),_z((function(e){e.registerComponentModel(S5),e.registerComponentView(I5),e.registerPreprocessor((function(e){var t=e.graphic;ly(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))})),_z((function(e){e.registerComponentModel(Q5),e.registerComponentView(n3),K5("saveAsImage",o3),K5("magicType",c3),K5("dataView",v3),K5("dataZoom",H3),K5("restore",w3),_z(X5)})),_z((function(e){_z(a2),e.registerComponentModel(W3),e.registerComponentView(d4),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Vy),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Vy)})),_z(a2),_z((function(e){e.registerComponentView(E4),e.registerComponentModel(L4),e.registerPreprocessor(f4),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,I4),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Vy),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Vy),K5("brush",P4)})),_z((function(e){e.registerComponentModel(R4),e.registerComponentView(z4)})),_z((function(e){e.registerComponentModel(j4),e.registerComponentView($4),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Kv({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}(e),e.registerPreprocessor(Z4)})),_z((function(e){e.registerComponentModel(o6),e.registerComponentView(v6),e.registerPreprocessor((function(e){Q4(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))})),_z((function(e){e.registerComponentModel(y6),e.registerComponentView(I6),e.registerPreprocessor((function(e){Q4(e.series,"markLine")&&(e.markLine=e.markLine||{})}))})),_z((function(e){e.registerComponentModel(T6),e.registerComponentView(R6),e.registerPreprocessor((function(e){Q4(e.series,"markArea")&&(e.markArea=e.markArea||{})}))})),_z((function(e){_z(Z6),_z(o8)})),_z((function(e){_z(m8),_z(I8)})),_z(m8),_z(I8),_z((function(e){_z(c9),_z(m9)})),_z(c9),_z(m9),_z((function(e){e.registerPreprocessor(_9),e.registerVisual(e.PRIORITY.VISUAL.ARIA,b9)})),_z((function(e){e.registerTransform(L9),e.registerTransform(P9)})),_z((function(e){e.registerComponentModel(R9),e.registerComponentView(z9)})),_z((function(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){ty(BS(n.seriesTransition),(function(e){ty(BS(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][oN]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=w7(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var o=n.seriesTransition;if(o)ty(BS(o),(function(e){!function(e,t,n,i){var o=[],r=[];ty(BS(e.from),(function(e){var n=L7(t.oldSeries,e);n>=0&&o.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:O7(t.oldData[n]),groupIdDim:e.dimension})})),ty(BS(e.to),(function(e){var i=L7(n.updatedSeries,e);if(i>=0){var o=n.updatedSeries[i].getData();r.push({dataGroupId:t.oldDataGroupIds[i],data:o,divide:O7(o),groupIdDim:e.dimension})}})),o.length>0&&r.length>0&&D7(o,r,i)}(e,i,n,t)}));else{var r=function(e,t){var n=Ly(),i=Ly(),o=Ly();function r(e){n.get(e)&&kS("Duplicated seriesKey in universalTransition "+e)}return ty(e.oldSeries,(function(t,n){var r=e.oldDataGroupIds[n],a=e.oldData[n],s=k7(t),l=E7(s);i.set(l,{dataGroupId:r,data:a}),ly(s)&&ty(s,(function(e){o.set(e,{key:l,dataGroupId:r,data:a})}))})),ty(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),a=e.getData(),s=k7(e),l=E7(s),c=i.get(l);if(c)"production"!==process.env.NODE_ENV&&r(l),n.set(l,{oldSeries:[{dataGroupId:c.dataGroupId,divide:O7(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:O7(a),data:a}]});else if(ly(s)){"production"!==process.env.NODE_ENV&&r(l);var u=[];ty(s,(function(e){var t=i.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:O7(t.data),data:t.data})})),u.length&&n.set(l,{oldSeries:u,newSeries:[{dataGroupId:t,data:a,divide:O7(a)}]})}else{var p=o.get(s);if(p){var d=n.get(p.key);d||(d={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:O7(p.data)}],newSeries:[]},n.set(p.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:O7(a)})}}}})),n}(i,n);ty(r.keys(),(function(e){var n=r.get(e);D7(n.oldSeries,n.newSeries,t)}))}ty(n.updatedSeries,(function(e){e[oN]&&(e[oN]=!1)}))}for(var a=e.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],c=i.oldData=[],u=0;u<a.length;u++){var p=a[u].getData();p.count()<y7&&(s.push(a[u]),l.push(a[u].get("dataGroupId")),c.push(p))}}))})),_z((function(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=Tj(t).labelManager;i||(i=Tj(t).labelManager=new Ij),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=Tj(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}));const N7=e=>{const t=(e=>{const{data:t,extraData:n,sort:i}=e;if(t&&i){const a=(o=[...t],"asc"===(r=i)?o.sort(((e,t)=>e.value-t.value)):"desc"===r&&o.sort(((e,t)=>t.value-e.value)),o),s=xv(a.map((e=>e.label))),l=Sv(a,s),c=Sv([...n??[]],s);return{...e,data:l,extraData:c}}var o,r;return e})(e);switch(t.chartType){case zn.MINI_AREA:return(e=>{const t=xv(e.data?.map((e=>e.type))),n=e.color;return{color:n,grid:{top:4,left:0,right:0,bottom:0,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{show:!1},xAxis:{show:!1,boundaryGap:!1,data:xv(e.data?.map((e=>e.label)))},yAxis:{show:!1,min:e.yStart?.[0]},series:[...t.map(((t,i)=>({name:t,type:"line",smooth:!0,lineStyle:{width:2},showSymbol:!1,areaStyle:{opacity:.8,color:new jA(0,0,0,1,[{offset:0,color:fi(n?.[i]??Vn[i],.5)},{offset:1,color:"#fff"}])},emphasis:{focus:"series"},data:e.data?.filter((e=>e.type===t)).map((e=>e.value))})))]}})(t);case zn.AREA:return(e=>{const t=xv(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:wv(e),yAxis:{min:e.yStart?.[0]},series:[...t.map(((t,n)=>({name:t,type:"line",smooth:!0,lineStyle:{width:2},showSymbol:!1,areaStyle:{opacity:.8,color:new jA(0,0,0,1,[{offset:0,color:fi(Vn[n],.5)},{offset:1,color:"#fff"}])},emphasis:{focus:"series"},data:e.data?.filter((e=>e.type===t)).map((e=>e.value))})))]}})(t);case zn.LINE:return(e=>{const t=xv(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:wv(e),yAxis:{min:e.yStart?.[0]},series:t.map((t=>({name:t,type:"line",smooth:!1,lineStyle:{width:2},showSymbol:!0,emphasis:{focus:"series"},data:e.data?.filter((e=>e.type===t)).map((e=>e.value))})))}})(t);case zn.COLUMN:return(e=>{const t=xv(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...wv(e),axisPointer:{type:"shadow"}},yAxis:{min:e.yStart?.[0]},series:t.map((t=>({name:t,type:"bar",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value,itemStyle:{borderRadius:e.value>0?[500,500,0,0]:[0,0,500,500]}})))})))}})(t);case zn.STACK_COLUMN:return(e=>{const t=xv(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...wv(e),axisPointer:{type:"shadow"}},yAxis:{min:e.yStart?.[0]},series:t.map((t=>({name:t,type:"bar",stack:"total",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value})))})))}})(t);case zn.BAR:return(e=>{const t=xv(e.data?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{},yAxis:{data:xv(e.data?.map((e=>e.label))),axisTick:{alignWithLabel:!0},axisPointer:{type:"shadow"},min:e.yStart?.[0]},series:t.map((t=>({name:t,type:"bar",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value,itemStyle:{borderRadius:[0,500,500,0]}})))})))}})(t);case zn.FUNNEL:return(e=>{const t=_v(e.data)?.map((e=>({value:e.value??0,name:e.type})))??[],n={type:"funnel",minSize:"20%",left:10,top:24,width:"76%",sort:"descending",data:t};return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},series:[{...n,label:{show:!0,position:"outer",formatter:"{c}"}},{...n,emphasis:{label:{fontSize:20}},label:{show:!0,position:"inner",color:"#fff",formatter:e=>{const n=e.dataIndex;if(0===n)return"100%";const i=t[n-1].value;return yv(e.value/i)}}}]}})(t);case zn.DUAL_LINE_BAR:return(e=>{const t=xv(e.data?.map((e=>e.type))),n=xv(e.extraData?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...wv(e),axisPointer:{type:"shadow"}},yAxis:[{alignTicks:!0,min:e.yStart?.[0]},{alignTicks:!0,min:e.yStart?.[1]}],series:[...t.map((t=>({name:t,type:"bar",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value,itemStyle:{borderRadius:e.value>0?[500,500,0,0]:[0,0,500,500]}})))}))),...n.map((t=>({name:t,type:"line",smooth:!0,yAxisIndex:1,showSymbol:!1,data:e.extraData?.filter((e=>e.type===t)).map((e=>e.value))})))]}})(t);case zn.STACK_DUAL_LINE_BAR:return(e=>{const t=xv(e.data?.map((e=>e.type))),n=xv(e.extraData?.map((e=>e.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...wv(e),axisPointer:{type:"shadow"}},yAxis:[{alignTicks:!0,min:e.yStart?.[0]},{alignTicks:!0,min:e.yStart?.[1]}],series:[...t.map((t=>({name:t,type:"bar",stack:"total",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:e.data?.filter((e=>e.type===t)).map((e=>({value:e.value})))}))),...n.map((t=>({name:t,type:"line",smooth:!0,yAxisIndex:1,showSymbol:!1,data:e.extraData?.filter((e=>e.type===t)).map((e=>e.value))})))]}})(t);case zn.PIE:return(e=>{const t=bv(e.data?.map((e=>e.value)));return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},series:[{top:-30,type:"pie",radius:"50%",data:_v(e.data)?.map((t=>({value:t.value,name:e.reserveValueWithLabelType?t.label:t.type}))),label:{show:!0,fontSize:12,color:"rgba(0, 0, 0, 0.7)",position:"outside",formatter:e=>yv(e.value/t||1)},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}})(t);case zn.CYCLE:return(e=>{const t=bv(e.data?.map((e=>e.value)));return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},series:[{top:-30,type:"pie",radius:["60%","48%"],data:_v(e.data)?.map((t=>({value:t.value,name:e.reserveValueWithLabelType?t.label:t.type}))),label:{show:!0,fontSize:12,color:"rgba(0, 0, 0, 0.7)",position:"outside",formatter:e=>yv(e.value/t||1)},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}],graphic:[{type:"text",left:"center",top:76,style:{text:Number(t.toFixed(2)).toString(),fill:"rgba(0, 0, 0, .7)",fontSize:28,fontWeight:"bold"}},{type:"text",left:"center",top:112,style:{text:"总计",fill:"#828B9E",fontSize:12,fontWeight:"bold"}}]}})(t);case zn.RADAR:return(e=>{const t=xv(e.data?.map((t=>e.reserveValueWithLabelType?t.label:t.type)));return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},radar:{shape:"circle",radius:"60%",indicator:xv(e.data?.map((t=>e.reserveValueWithLabelType?t.type:t.label))).map((e=>({name:e}))),axisName:{color:"#5d677a"},splitArea:{areaStyle:{color:["transparent"]}},axisLine:{lineStyle:{color:"rgba(226, 229, 235, .3)"}},splitLine:{lineStyle:{color:"#e2e5eb",type:"dashed",dashOffset:1.5}}},series:[{type:"radar",data:t.map(((t,n)=>({name:t,value:e.data?.filter((n=>e.reserveValueWithLabelType?n.label:n.type===t)).map((e=>e.value)),areaStyle:{color:fi(Vn[n],.2)},label:{show:e.reserveValueWithLabelType,formatter:e=>e.value?.toString()}}))),emphasis:{lineStyle:{width:4}}}]}})(t);default:return{}}};var P7={color:["#3379ff","#00dcf0","#ffc94d","#00db75","#b8b3ff","#40b4ff","#ffa101","#90abe0","#6ee67a","#6b84ff","#fa6b69"],backgroundColor:"rgba(0,0,0,0)",textStyle:{},title:{textStyle:{color:"#272f3d"},subtextStyle:{color:"#394252"}},line:{itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},radar:{itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},bar:{itemStyle:{barBorderWidth:"0",barBorderColor:"#cccccc"}},pie:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},scatter:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},boxplot:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},parallel:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},sankey:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},funnel:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},gauge:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},candlestick:{itemStyle:{color:"#f15451",color0:"#00c267",borderColor:"#f15451",borderColor0:"#00c267",borderWidth:1}},graph:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"},lineStyle:{width:"1",color:"#dfe3eb"},symbolSize:4,symbol:"emptyCircle",smooth:!1,color:["#3379ff","#00dcf0","#ffc94d","#00db75","#b8b3ff","#40b4ff","#ffa101","#90abe0","#6ee67a","#6b84ff","#fa6b69"],label:{color:"#ffffff"}},map:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},geo:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#eef0f5"}},axisTick:{show:!0,lineStyle:{color:"#eef0f5"}},axisLabel:{show:!0,color:"#828b9e"},splitLine:{show:!1,lineStyle:{color:["#E0E6F1"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#6E7079"}},axisTick:{show:!1,lineStyle:{color:"#6E7079"}},axisLabel:{show:!0,color:"#828b9e"},splitLine:{show:!0,lineStyle:{color:["#eef0f5"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},logAxis:{axisLine:{show:!1,lineStyle:{color:"#6E7079"}},axisTick:{show:!1,lineStyle:{color:"#6E7079"}},axisLabel:{show:!0,color:"#828b9e"},splitLine:{show:!0,lineStyle:{color:["#eef0f5"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#eef0f5"}},axisTick:{show:!0,lineStyle:{color:"#eef0f5"}},axisLabel:{show:!0,color:"#828b9e"},splitLine:{show:!1,lineStyle:{color:["#E0E6F1"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},toolbox:{iconStyle:{borderColor:"#828c9e"},emphasis:{iconStyle:{borderColor:"#394252"}}},legend:{textStyle:{color:"#828b9e"}},tooltip:{axisPointer:{lineStyle:{color:"#ccd1db",width:"1"},crossStyle:{color:"#ccd1db",width:"1"}}},timeline:{lineStyle:{color:"#eef0f5",width:2},itemStyle:{color:"#eef0f5",borderWidth:"1"},controlStyle:{color:"#828c9e",borderColor:"#828c9e",borderWidth:1},checkpointStyle:{color:"#3379ff",borderColor:"#ffffff"},label:{color:"#b1b9c7"},emphasis:{itemStyle:{color:"#3379ff"},controlStyle:{color:"#828c9e",borderColor:"#828c9e",borderWidth:1},label:{color:"#b1b9c7"}}},visualMap:{color:["#062379","#2058d2","#3379ff","#a0cbff","#e8f4ff"]},dataZoom:{handleSize:"undefined%",textStyle:{}},markPoint:{label:{color:"#ffffff"},emphasis:{label:{color:"#ffffff"}}}},R7={color:["#5798ff","#00dcf0","#ffc94d","#00db75","#b8b3ff","#40b4ff","#ffa101","#90abe0","#6ee67a","#6b84ff","#fa6b69"],backgroundColor:"rgba(100,116,146,1)",textStyle:{},title:{textStyle:{color:"#ffffff"},subtextStyle:{color:"#ffffff"}},line:{itemStyle:{borderWidth:"1"},lineStyle:{width:"2"},symbolSize:"6",symbol:"emptyCircle",smooth:!0},radar:{itemStyle:{borderWidth:"1"},lineStyle:{width:"2"},symbolSize:"6",symbol:"emptyCircle",smooth:!0},bar:{itemStyle:{barBorderWidth:"0",barBorderColor:"#cccccc"}},pie:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},scatter:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},boxplot:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},parallel:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},sankey:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},funnel:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},gauge:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"}},candlestick:{itemStyle:{color:"#f15451",color0:"#00c267",borderColor:"#f15451",borderColor0:"#00c267",borderWidth:1}},graph:{itemStyle:{borderWidth:"0",borderColor:"#cccccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"6",symbol:"emptyCircle",smooth:!0,color:["#5798ff","#00dcf0","#ffc94d","#00db75","#b8b3ff","#40b4ff","#ffa101","#90abe0","#6ee67a","#6b84ff","#fa6b69"],label:{color:"#ffffff"}},map:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},geo:{itemStyle:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},label:{color:"#000"},emphasis:{itemStyle:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.12)"}},axisTick:{show:!0,lineStyle:{color:"rgba(255,255,255,0.12)"}},axisLabel:{show:!0,color:"rgba(255,255,255,0.5)"},splitLine:{show:!1,lineStyle:{color:["#E0E6F1"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#6E7079"}},axisTick:{show:!1,lineStyle:{color:"#6E7079"}},axisLabel:{show:!0,color:"rgba(255,255,255,0.5)"},splitLine:{show:!0,lineStyle:{color:["rgba(255,255,255,0.12)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},logAxis:{axisLine:{show:!1,lineStyle:{color:"#6E7079"}},axisTick:{show:!1,lineStyle:{color:"#6E7079"}},axisLabel:{show:!0,color:"rgba(255,255,255,0.5)"},splitLine:{show:!0,lineStyle:{color:["rgba(255,255,255,0.12)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,0.12)"}},axisTick:{show:!0,lineStyle:{color:"rgba(255,255,255,0.12)"}},axisLabel:{show:!0,color:"rgba(255,255,255,0.5)"},splitLine:{show:!1,lineStyle:{color:["#E0E6F1"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},toolbox:{iconStyle:{borderColor:"#ffffff"},emphasis:{iconStyle:{borderColor:"#ffffff"}}},legend:{textStyle:{color:"#ffffff"}},tooltip:{axisPointer:{lineStyle:{color:"#ffffff",width:"1"},crossStyle:{color:"#ffffff",width:"1"}}},timeline:{lineStyle:{color:"#ffffff",width:2},itemStyle:{color:"#ffffff",borderWidth:"1"},controlStyle:{color:"#ffffff",borderColor:"#ffffff",borderWidth:1},checkpointStyle:{color:"#5798ff",borderColor:"#ffffff"},label:{color:"#ffffff"},emphasis:{itemStyle:{color:"#5798ff"},controlStyle:{color:"#ffffff",borderColor:"#ffffff",borderWidth:1},label:{color:"#ffffff"}}},visualMap:{color:["#062379","#2058d2","#3379ff","#a0cbff","#e8f4ff"]},dataZoom:{handleSize:"undefined%",textStyle:{}},markPoint:{label:{color:"#ffffff"},emphasis:{label:{color:"#ffffff"}}}},z7=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===V7}(e)}(e)};var V7="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function B7(e,t){return!1!==t.clone&&t.isMergeableObject(e)?W7((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function j7(e,t,n){return e.concat(t).map((function(e){return B7(e,n)}))}function F7(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function G7(e,t){try{return t in e}catch(e){return!1}}function H7(e,t,n){var i={};return n.isMergeableObject(e)&&F7(e).forEach((function(t){i[t]=B7(e[t],n)})),F7(t).forEach((function(o){(function(e,t){return G7(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(G7(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return W7;var n=t.customMerge(e);return"function"==typeof n?n:W7}(o,n)(e[o],t[o],n):i[o]=B7(t[o],n))})),i}function W7(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||j7,n.isMergeableObject=n.isMergeableObject||z7,n.cloneUnlessOtherwiseSpecified=B7;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):H7(e,t,n):B7(t,n)}W7.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return W7(e,n,t)}),{})};var U7=N(W7);cz("light",U7(P7,Bn)),cz("dark",U7(R7,Bn));const Y7=({className:e,style:n,extraOption:i,theme:o="light",...s})=>{const l=t(null),[c,u]=r(),p=JSON.stringify(s),d=JSON.stringify(i??{});return a((()=>{const e=lz(l.current,o);u(e);const t=function(e,t){let n=null;return function(...i){clearTimeout(n),n=setTimeout((()=>{e.apply(globalThis,i)}),t)}}(e.resize,500);globalThis.addEventListener("resize",(()=>{t()}))}),[o]),a((()=>{if(c){const e=JSON.parse(p);c.setOption(U7(((e,t)=>{const{series:n}=e;return vv(n)&&vv(t)&&t.forEach((e=>{n.forEach((t=>({...t,...t.name===e.name&&e})))})),e})(N7(e),e.extraSeriesOption),JSON.parse(d))),setTimeout((()=>{c.resize()}),500)}}),[p,c,d]),j.jsx(Ln,{ref:l,className:e,style:n})};var q7=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e};var X7=function(e){return function(t,n,i){for(var o=-1,r=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(r[l],l,r))break}return t}},$7=X7();var Z7=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},K7="object"==typeof L&&L&&L.Object===Object&&L,J7=K7,Q7="object"==typeof self&&self&&self.Object===Object&&self,eee=J7||Q7||Function("return this")(),tee=eee.Symbol,nee=tee,iee=Object.prototype,oee=iee.hasOwnProperty,ree=iee.toString,aee=nee?nee.toStringTag:void 0;var see=function(e){var t=oee.call(e,aee),n=e[aee];try{e[aee]=void 0;var i=!0}catch(e){}var o=ree.call(e);return i&&(t?e[aee]=n:delete e[aee]),o},lee=Object.prototype.toString;var cee=see,uee=function(e){return lee.call(e)},pee=tee?tee.toStringTag:void 0;var dee=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":pee&&pee in Object(e)?cee(e):uee(e)};var hee=function(e){return null!=e&&"object"==typeof e},fee=dee,gee=hee;var mee=function(e){return gee(e)&&"[object Arguments]"==fee(e)},vee=hee,yee=Object.prototype,xee=yee.hasOwnProperty,bee=yee.propertyIsEnumerable,_ee=mee(function(){return arguments}())?mee:function(e){return vee(e)&&xee.call(e,"callee")&&!bee.call(e,"callee")},wee=Array.isArray,See={exports:{}};var Mee=function(){return!1};!function(e,t){var n=eee,i=Mee,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,a=r&&r.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||i;e.exports=s}(See,See.exports);var Cee=See.exports,Iee=/^(?:0|[1-9]\d*)$/;var Tee=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Iee.test(e))&&e>-1&&e%1==0&&e<t};var Aee=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Dee=dee,kee=Aee,Eee=hee,Oee={};Oee["[object Float32Array]"]=Oee["[object Float64Array]"]=Oee["[object Int8Array]"]=Oee["[object Int16Array]"]=Oee["[object Int32Array]"]=Oee["[object Uint8Array]"]=Oee["[object Uint8ClampedArray]"]=Oee["[object Uint16Array]"]=Oee["[object Uint32Array]"]=!0,Oee["[object Arguments]"]=Oee["[object Array]"]=Oee["[object ArrayBuffer]"]=Oee["[object Boolean]"]=Oee["[object DataView]"]=Oee["[object Date]"]=Oee["[object Error]"]=Oee["[object Function]"]=Oee["[object Map]"]=Oee["[object Number]"]=Oee["[object Object]"]=Oee["[object RegExp]"]=Oee["[object Set]"]=Oee["[object String]"]=Oee["[object WeakMap]"]=!1;var Lee=function(e){return Eee(e)&&kee(e.length)&&!!Oee[Dee(e)]};var Nee=function(e){return function(t){return e(t)}},Pee={exports:{}};!function(e,t){var n=K7,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,r=o&&o.exports===i&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=a}(Pee,Pee.exports);var Ree=Pee.exports,zee=Lee,Vee=Nee,Bee=Ree&&Ree.isTypedArray,jee=Bee?Vee(Bee):zee,Fee=Z7,Gee=_ee,Hee=wee,Wee=Cee,Uee=Tee,Yee=jee,qee=Object.prototype.hasOwnProperty;var Xee=function(e,t){var n=Hee(e),i=!n&&Gee(e),o=!n&&!i&&Wee(e),r=!n&&!i&&!o&&Yee(e),a=n||i||o||r,s=a?Fee(e.length,String):[],l=s.length;for(var c in e)!t&&!qee.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Uee(c,l))||s.push(c);return s},$ee=Object.prototype;var Zee=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$ee)};var Kee=function(e,t){return function(n){return e(t(n))}},Jee=Kee(Object.keys,Object),Qee=Zee,ete=Jee,tte=Object.prototype.hasOwnProperty;var nte=function(e){if(!Qee(e))return ete(e);var t=[];for(var n in Object(e))tte.call(e,n)&&"constructor"!=n&&t.push(n);return t};var ite=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ote=dee,rte=ite;var ate=function(e){if(!rte(e))return!1;var t=ote(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ste=ate,lte=Aee;var cte=function(e){return null!=e&<e(e.length)&&!ste(e)},ute=Xee,pte=nte,dte=cte;var hte=function(e){return dte(e)?ute(e):pte(e)},fte=$7,gte=hte;var mte=function(e,t){return e&&fte(e,t,gte)},vte=cte;var yte=function(e,t){return function(n,i){if(null==n)return n;if(!vte(n))return e(n,i);for(var o=n.length,r=t?o:-1,a=Object(n);(t?r--:++r<o)&&!1!==i(a[r],r,a););return n}},xte=yte(mte);var bte=function(e){return e},_te=bte;var wte=q7,Ste=xte,Mte=function(e){return"function"==typeof e?e:_te},Cte=wee;var Ite=function(e,t){return(Cte(e)?wte:Ste)(e,Mte(t))},Tte=N(Ite),Ate=eee["__core-js_shared__"],Dte=function(){var e=/[^.]+$/.exec(Ate&&Ate.keys&&Ate.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var kte=function(e){return!!Dte&&Dte in e},Ete=Function.prototype.toString;var Ote=function(e){if(null!=e){try{return Ete.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Lte=ate,Nte=kte,Pte=ite,Rte=Ote,zte=/^\[object .+?Constructor\]$/,Vte=Function.prototype,Bte=Object.prototype,jte=Vte.toString,Fte=Bte.hasOwnProperty,Gte=RegExp("^"+jte.call(Fte).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Hte=function(e,t){return null==e?void 0:e[t]},Wte=function(e){return!(!Pte(e)||Nte(e))&&(Lte(e)?Gte:zte).test(Rte(e))},Ute=Hte;var Yte=function(e,t){var n=Ute(e,t);return Wte(n)?n:void 0},qte=Yte,Xte=function(){try{var e=qte(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),$te=Xte;var Zte=function(e,t,n){"__proto__"==t&&$te?$te(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Kte=function(){this.__data__=[],this.size=0};var Jte=function(e,t){return e===t||e!=e&&t!=t},Qte=Jte;var ene=function(e,t){for(var n=e.length;n--;)if(Qte(e[n][0],t))return n;return-1},tne=ene,nne=Array.prototype.splice;var ine=function(e){var t=this.__data__,n=tne(t,e);return!(n<0)&&(n==t.length-1?t.pop():nne.call(t,n,1),--this.size,!0)},one=ene;var rne=function(e){var t=this.__data__,n=one(t,e);return n<0?void 0:t[n][1]},ane=ene;var sne=function(e){return ane(this.__data__,e)>-1},lne=ene;var cne=function(e,t){var n=this.__data__,i=lne(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},une=Kte,pne=ine,dne=rne,hne=sne,fne=cne;function gne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}gne.prototype.clear=une,gne.prototype.delete=pne,gne.prototype.get=dne,gne.prototype.has=hne,gne.prototype.set=fne;var mne=gne,vne=mne;var yne=function(){this.__data__=new vne,this.size=0};var xne=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var bne=function(e){return this.__data__.get(e)};var _ne=function(e){return this.__data__.has(e)},wne=Yte(eee,"Map"),Sne=Yte(Object,"create"),Mne=Sne;var Cne=function(){this.__data__=Mne?Mne(null):{},this.size=0};var Ine=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Tne=Sne,Ane=Object.prototype.hasOwnProperty;var Dne=function(e){var t=this.__data__;if(Tne){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ane.call(t,e)?t[e]:void 0},kne=Sne,Ene=Object.prototype.hasOwnProperty;var One=function(e){var t=this.__data__;return kne?void 0!==t[e]:Ene.call(t,e)},Lne=Sne;var Nne=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Lne&&void 0===t?"__lodash_hash_undefined__":t,this},Pne=Cne,Rne=Ine,zne=Dne,Vne=One,Bne=Nne;function jne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}jne.prototype.clear=Pne,jne.prototype.delete=Rne,jne.prototype.get=zne,jne.prototype.has=Vne,jne.prototype.set=Bne;var Fne=jne,Gne=mne,Hne=wne;var Wne=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Une=function(e,t){var n=e.__data__;return Wne(t)?n["string"==typeof t?"string":"hash"]:n.map},Yne=Une;var qne=function(e){var t=Yne(this,e).delete(e);return this.size-=t?1:0,t},Xne=Une;var $ne=function(e){return Xne(this,e).get(e)},Zne=Une;var Kne=function(e){return Zne(this,e).has(e)},Jne=Une;var Qne=function(e,t){var n=Jne(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},eie=function(){this.size=0,this.__data__={hash:new Fne,map:new(Hne||Gne),string:new Fne}},tie=qne,nie=$ne,iie=Kne,oie=Qne;function rie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}rie.prototype.clear=eie,rie.prototype.delete=tie,rie.prototype.get=nie,rie.prototype.has=iie,rie.prototype.set=oie;var aie=rie,sie=mne,lie=wne,cie=aie;var uie=function(e,t){var n=this.__data__;if(n instanceof sie){var i=n.__data__;if(!lie||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new cie(i)}return n.set(e,t),this.size=n.size,this},pie=mne,die=yne,hie=xne,fie=bne,gie=_ne,mie=uie;function vie(e){var t=this.__data__=new pie(e);this.size=t.size}vie.prototype.clear=die,vie.prototype.delete=hie,vie.prototype.get=fie,vie.prototype.has=gie,vie.prototype.set=mie;var yie=vie;var xie=aie,bie=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_ie=function(e){return this.__data__.has(e)};function wie(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new xie;++t<n;)this.add(e[t])}wie.prototype.add=wie.prototype.push=bie,wie.prototype.has=_ie;var Sie=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1};var Mie=function(e,t){return e.has(t)},Cie=wie,Iie=Sie,Tie=Mie;var Aie=function(e,t,n,i,o,r){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=r.get(e),u=r.get(t);if(c&&u)return c==t&&u==e;var p=-1,d=!0,h=2&n?new Cie:void 0;for(r.set(e,t),r.set(t,e);++p<s;){var f=e[p],g=t[p];if(i)var m=a?i(g,f,p,t,e,r):i(f,g,p,e,t,r);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!Iie(t,(function(e,t){if(!Tie(h,t)&&(f===e||o(f,e,n,i,r)))return h.push(t)}))){d=!1;break}}else if(f!==g&&!o(f,g,n,i,r)){d=!1;break}}return r.delete(e),r.delete(t),d},Die=eee.Uint8Array;var kie=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n};var Eie=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Oie=Die,Lie=Jte,Nie=Aie,Pie=kie,Rie=Eie,zie=tee?tee.prototype:void 0,Vie=zie?zie.valueOf:void 0;var Bie=function(e,t,n,i,o,r,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new Oie(e),new Oie(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Lie(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Pie;case"[object Set]":var l=1&i;if(s||(s=Rie),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=2,a.set(e,t);var u=Nie(s(e),s(t),i,o,r,a);return a.delete(e),u;case"[object Symbol]":if(Vie)return Vie.call(e)==Vie.call(t)}return!1};var jie=function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e},Fie=jie,Gie=wee;var Hie=function(e,t,n){var i=t(e);return Gie(e)?i:Fie(i,n(e))};var Wie=function(e,t){for(var n=-1,i=null==e?0:e.length,o=0,r=[];++n<i;){var a=e[n];t(a,n,e)&&(r[o++]=a)}return r};var Uie=Wie,Yie=function(){return[]},qie=Object.prototype.propertyIsEnumerable,Xie=Object.getOwnPropertySymbols,$ie=Hie,Zie=Xie?function(e){return null==e?[]:(e=Object(e),Uie(Xie(e),(function(t){return qie.call(e,t)})))}:Yie,Kie=hte;var Jie=function(e){return $ie(e,Kie,Zie)},Qie=Object.prototype.hasOwnProperty;var eoe=function(e,t,n,i,o,r){var a=1&n,s=Jie(e),l=s.length;if(l!=Jie(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Qie.call(t,u)))return!1}var p=r.get(e),d=r.get(t);if(p&&d)return p==t&&d==e;var h=!0;r.set(e,t),r.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(i)var v=a?i(m,g,u,t,e,r):i(g,m,u,e,t,r);if(!(void 0===v?g===m||o(g,m,n,i,r):v)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var y=e.constructor,x=t.constructor;y==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof x&&x instanceof x||(h=!1)}return r.delete(e),r.delete(t),h},toe=Yte(eee,"DataView"),noe=wne,ioe=Yte(eee,"Promise"),ooe=Yte(eee,"Set"),roe=Yte(eee,"WeakMap"),aoe=dee,soe=Ote,loe="[object Map]",coe="[object Promise]",uoe="[object Set]",poe="[object WeakMap]",doe="[object DataView]",hoe=soe(toe),foe=soe(noe),goe=soe(ioe),moe=soe(ooe),voe=soe(roe),yoe=aoe;(toe&&yoe(new toe(new ArrayBuffer(1)))!=doe||noe&&yoe(new noe)!=loe||ioe&&yoe(ioe.resolve())!=coe||ooe&&yoe(new ooe)!=uoe||roe&&yoe(new roe)!=poe)&&(yoe=function(e){var t=aoe(e),n="[object Object]"==t?e.constructor:void 0,i=n?soe(n):"";if(i)switch(i){case hoe:return doe;case foe:return loe;case goe:return coe;case moe:return uoe;case voe:return poe}return t});var xoe=yie,boe=Aie,_oe=Bie,woe=eoe,Soe=yoe,Moe=wee,Coe=Cee,Ioe=jee,Toe="[object Arguments]",Aoe="[object Array]",Doe="[object Object]",koe=Object.prototype.hasOwnProperty;var Eoe=function(e,t,n,i,o,r){var a=Moe(e),s=Moe(t),l=a?Aoe:Soe(e),c=s?Aoe:Soe(t),u=(l=l==Toe?Doe:l)==Doe,p=(c=c==Toe?Doe:c)==Doe,d=l==c;if(d&&Coe(e)){if(!Coe(t))return!1;a=!0,u=!1}if(d&&!u)return r||(r=new xoe),a||Ioe(e)?boe(e,t,n,i,o,r):_oe(e,t,l,n,i,o,r);if(!(1&n)){var h=u&&koe.call(e,"__wrapped__"),f=p&&koe.call(t,"__wrapped__");if(h||f){var g=h?e.value():e,m=f?t.value():t;return r||(r=new xoe),o(g,m,n,i,r)}}return!!d&&(r||(r=new xoe),woe(e,t,n,i,o,r))},Ooe=hee;var Loe=function e(t,n,i,o,r){return t===n||(null==t||null==n||!Ooe(t)&&!Ooe(n)?t!=t&&n!=n:Eoe(t,n,i,o,e,r))},Noe=yie,Poe=Loe;var Roe=function(e,t,n,i){var o=n.length,r=o,a=!i;if(null==e)return!r;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<r;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var p=new Noe;if(i)var d=i(c,u,l,e,t,p);if(!(void 0===d?Poe(u,c,3,i,p):d))return!1}}return!0},zoe=ite;var Voe=function(e){return e==e&&!zoe(e)},Boe=Voe,joe=hte;var Foe=function(e){for(var t=joe(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,Boe(o)]}return t};var Goe=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},Hoe=Roe,Woe=Foe,Uoe=Goe;var Yoe=function(e){var t=Woe(e);return 1==t.length&&t[0][2]?Uoe(t[0][0],t[0][1]):function(n){return n===e||Hoe(n,e,t)}},qoe=dee,Xoe=hee;var $oe=function(e){return"symbol"==typeof e||Xoe(e)&&"[object Symbol]"==qoe(e)},Zoe=wee,Koe=$oe,Joe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qoe=/^\w*$/;var ere=function(e,t){if(Zoe(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Koe(e))||(Qoe.test(e)||!Joe.test(e)||null!=t&&e in Object(t))},tre=aie;function nre(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,o=t?t.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var a=e.apply(this,i);return n.cache=r.set(o,a)||r,a};return n.cache=new(nre.Cache||tre),n}nre.Cache=tre;var ire=nre;var ore=function(e){var t=ire(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},rre=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,are=/\\(\\)?/g,sre=ore((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rre,(function(e,n,i,o){t.push(i?o.replace(are,"$1"):n||e)})),t})),lre=sre;var cre=function(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o},ure=cre,pre=wee,dre=$oe,hre=tee?tee.prototype:void 0,fre=hre?hre.toString:void 0;var gre=function e(t){if("string"==typeof t)return t;if(pre(t))return ure(t,e)+"";if(dre(t))return fre?fre.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},mre=gre;var vre=wee,yre=ere,xre=lre,bre=function(e){return null==e?"":mre(e)};var _re=function(e,t){return vre(e)?e:yre(e,t)?[e]:xre(bre(e))},wre=$oe;var Sre=function(e){if("string"==typeof e||wre(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Mre=_re,Cre=Sre;var Ire=function(e,t){for(var n=0,i=(t=Mre(t,e)).length;null!=e&&n<i;)e=e[Cre(t[n++])];return n&&n==i?e:void 0},Tre=Ire;var Are=function(e,t,n){var i=null==e?void 0:Tre(e,t);return void 0===i?n:i};var Dre=function(e,t){return null!=e&&t in Object(e)},kre=_re,Ere=_ee,Ore=wee,Lre=Tee,Nre=Aee,Pre=Sre;var Rre=function(e,t,n){for(var i=-1,o=(t=kre(t,e)).length,r=!1;++i<o;){var a=Pre(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}return r||++i!=o?r:!!(o=null==e?0:e.length)&&Nre(o)&&Lre(a,o)&&(Ore(e)||Ere(e))},zre=Dre,Vre=Rre;var Bre=function(e,t){return null!=e&&Vre(e,t,zre)},jre=Loe,Fre=Are,Gre=Bre,Hre=ere,Wre=Voe,Ure=Goe,Yre=Sre;var qre=function(e,t){return Hre(e)&&Wre(t)?Ure(Yre(e),t):function(n){var i=Fre(n,e);return void 0===i&&i===t?Gre(n,e):jre(t,i,3)}};var Xre=function(e){return function(t){return null==t?void 0:t[e]}},$re=Ire;var Zre=function(e){return function(t){return $re(t,e)}},Kre=Xre,Jre=Zre,Qre=ere,eae=Sre;var tae=function(e){return Qre(e)?Kre(eae(e)):Jre(e)},nae=Yoe,iae=qre,oae=bte,rae=wee,aae=tae;var sae=function(e){return"function"==typeof e?e:null==e?oae:"object"==typeof e?rae(e)?iae(e[0],e[1]):nae(e):aae(e)},lae=Zte,cae=mte,uae=sae;var pae=function(e,t){var n={};return t=uae(t),cae(e,(function(e,i,o){lae(n,i,t(e,i,o))})),n},dae=N(pae);var hae=function(e,t,n,i){for(var o=-1,r=null==e?0:e.length;++o<r;){var a=e[o];t(i,a,n(a),e)}return i},fae=xte;var gae=function(e,t,n,i){return fae(e,(function(e,o,r){t(i,e,n(e),r)})),i},mae=hae,vae=gae,yae=sae,xae=wee;var bae=function(e,t){return function(n,i){var o=xae(n)?mae:vae,r=t?t():{};return o(n,e,yae(i),r)}},_ae=Zte,wae=bae((function(e,t,n){_ae(e,n,t)})),Sae=N(wae),Mae=[{value:"zh-CN",label:"中文 (简体)",zhLabel:"中文 (简体)",s:["zh-cn","zh"]},{value:"en-US",label:"English",zhLabel:"英语",s:"en"},{value:"ja-JP",label:"日本語",zhLabel:"日本语",s:"ja"},{value:"ru-RU",label:"Русский",zhLabel:"俄语",s:"ru"},{value:"pt-PT",label:"Português (Portugal)",zhLabel:"葡萄牙语 (葡萄牙)",s:"pt"},{value:"fr-FR",label:"Français",zhLabel:"法语",s:"fr"},{value:"es-ES",label:"Español",zhLabel:"西班牙语",s:"es"},{label:"中文 (香港)",value:"zh-HK",zhLabel:"中文 (香港)",s:"zh-hk",likeness:["zh-TW","zh-CN"]},{label:"中文 (繁體)",value:"zh-TW",zhLabel:"中文 (繁体)",s:"zh-tw",likeness:["zh-HK","zh-CN"]},{label:"한국어",value:"ko-KR",zhLabel:"韩语",s:"ko"},{label:"Türkçe",value:"tr-TR",zhLabel:"土耳其语",s:"tr"},{label:"Polski",value:"pl-PL",zhLabel:"波兰语",s:"pl"},{label:"עברית",value:"iw-IL",zhLabel:"希伯来语",s:["he","iw"]},{label:"Italiano",value:"it-IT",zhLabel:"意大利语",s:"it"},{label:"عربية",value:"ar-SA",zhLabel:"阿拉伯语",s:"ar"},{label:"Čeština",value:"cs-CZ",zhLabel:"捷克语",s:"cs"},{label:"Dansk",value:"da-DK",zhLabel:"丹麦语",s:"da"},{label:"Nederlands",value:"nl-NL",zhLabel:"荷兰语",s:"nl"},{label:"Deutsch",value:"de-DE",zhLabel:"德语",s:"de"},{label:"हिन्दी",value:"hi-IN",zhLabel:"印地语",s:"hi"},{label:"Magyar",value:"hu-HU",zhLabel:"匈牙利语",s:"hu"},{label:"Bahasa Melayu",value:"ms-MY",zhLabel:"马来语",s:"ms"},{label:"Bahasa Indonesia",value:"in-ID",zhLabel:"印尼语",likeness:["id-ID"],s:["id","in"]},{label:"Română",value:"ro-RO",zhLabel:"罗马尼亚语",s:"ro"},{label:"Српски",value:"sr-SA",zhLabel:"塞尔维亚语",s:"sr"},{label:"Slovenčina",value:"sk-SK",zhLabel:"斯洛伐克语",s:"sk"},{label:"Svenska",value:"sv-SE",zhLabel:"瑞典语",s:"sv"},{label:"ภาษาไทย",value:"th-TH",zhLabel:"泰语",s:"th"},{label:"Українська",value:"uk-UA",zhLabel:"乌克兰语",s:"uk"},{label:"Tiếng Việt",value:"vi-VN",zhLabel:"越南语",s:"vi"},{value:"pt-BR",label:"Português (Brasil)",zhLabel:"葡萄牙语 (巴西)",s:"pt-br",likeness:["pt-PT"]},{value:"en-ID",label:"English (ID)",zhLabel:"英语 (印度尼西亚)",s:["en-id","en"],likeness:["en-US"]},{value:"en-MY",label:"English (MY)",zhLabel:"英语 (马来西亚)",s:["en-my","en"],likeness:["en-US"]},{value:"en-PH",label:"English (PH)",zhLabel:"英语 (菲律宾)",s:["en-ph","en"],likeness:["en-US"]},{value:"en-SG",label:"English (SG)",zhLabel:"英语 (新加坡)",s:["en-sg","en"],likeness:["en-US"]},{value:"en-TH",label:"English (TH)",zhLabel:"英语 (泰国)",s:["en-th","en"],likeness:["en-US"]},{value:"en-VN",label:"English (VN)",zhLabel:"英语 (越南)",s:["en-vn","en"],likeness:["en-US"]},{value:"es-MX",label:"Español (Mexico)",zhLabel:"西班牙语 (墨西哥)",s:["es-mx","es"],likeness:["es-ES"]}],Cae=Mae.map((function(e){var t=e.label,n=e.value;return{label:t,value:n,alias:n.substring(0,1).toUpperCase()+n.substring(1,2)}}));Mae.map((function(e){var t=e.value;return{label:e.zhLabel,value:t,alias:t.substring(0,1).toUpperCase()+t.substring(1,2)}}));var Iae=Sae(Mae,"value");function Tae(e,t,n){var i=void 0===n?{}:n,o=i.path,r=void 0===o?"/":o,a=i.domain,s=i.expires,l=i.maxAge,c=void 0===l?2592e3:l,u=i.secure,p=i.sameSite;if(e){t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[()]/g,escape);var d=[];r&&d.push("path="+r),a&&d.push("domain="+a),s&&d.push("expires="+s),
|
|
23
|
+
//! important:"max-age" is not supported by IE6/7/8
|
|
24
|
+
c&&d.push("max-age="+c),u&&d.push("secure"),p&&d.push("samesite="+p),document.cookie=e+"="+t+";"+d.join(";")}}function Aae(e){var t="",n=document.cookie?document.cookie.split("; "):[],i=/(%[0-9A-Z]{2})+/g;n.sort((function(e){return e.includes("domain="+window.location.hostname)?-1:0}));for(var o=0;o<n.length;o++){var r=n[o].split("=");try{if(e===r[0].replace(i,decodeURIComponent)){t=r.slice(1).join("=").replace(i,decodeURIComponent);break}}catch(e){}}return t}Cae.slice(0,7);var Dae="PANDA_LANG",kae="x-hng",Eae="zh-CN",Oae="__PANDA_INSTANCES",Lae="_PANDA_EXUI",Nae="__$i18n",Pae="_PANDA_I18N",Rae="__I18N_CACHED",zae="0.2.74",Vae=function(e){var t;"undefined"!=typeof console&&(null===(t=window.__PANDA)||void 0===t?void 0:t.logLevel)>=2&&console.warn("[panda-log] Warn: "+e)},Bae=function(e){var t;"undefined"!=typeof console&&(null===(t=window.__PANDA)||void 0===t?void 0:t.logLevel)>=1&&console.error("[panda-log] Error: "+e)},jae=function(e){var t;"undefined"!=typeof console&&null!==(t=window.__PANDA)&&void 0!==t&&t.debug&&console.error("[panda-log] Debug: "+e)},Fae=function(e){var t;"undefined"!=typeof console&&null!==(t=window.__PANDA)&&void 0!==t&&t.debug&&console.error("[panda-log] Error:",e)},Gae=function(){var e,t;return null===(e=window._GATEWAY_PF)||void 0===e||null===(t=e.userPreference)||void 0===t?void 0:t.lang},Hae=function(e){if("string"!=typeof e)return Wae();var t=e.replace("_","-");t.includes("-")&&(t=t.split("-").map((function(e,t){return 1===t?e.toUpperCase():e})).join("-"));var n=t.toLowerCase(),i=Mae.find((function(e){return e.value===t||("string"==typeof e.s?e.s===n:e.s.includes(n))}));return i?i.value:e.startsWith("zh-Hans")?"zh-CN":e.startsWith("zh-Hant")?"zh-Hant-TW"===e?"zh-TW":"zh-HK":e.startsWith("en-")?"en-US":e},Wae=function(e){var t,n,i,o,r,a,s,l,c,u;void 0===e&&(e={});var p=e.lang,d=(null===(t=window.__PANDA)||void 0===t?void 0:t.cookieKey)||kae,h=window.__PANDA_LANG||"",f=d!==kae&&Aae(d)?Xae(d):"",g=d===kae&&Aae(kae)?Xae(kae):"",m=null===(n=window.__PANDA)||void 0===n?void 0:n.lang,v=null===(i=window.__PANDA)||void 0===i?void 0:i.searchLang,y=null===(o=window.__PANDA)||void 0===o?void 0:o.localLang,x=null===(r=window.__PANDA)||void 0===r?void 0:r.defaultLang,b=null===(a=document)||void 0===a||null===(s=a.cookie)||void 0===s?void 0:s.match(/x-hng/g),_=b&&Array.isArray(b)&&b.length>1,w=Gae();(function(){var e;return"undefined"!=typeof console&&(null===(e=window.__PANDA)||void 0===e?void 0:e.debug)})()&&jae("isMultiXhng: "+(_?"true":"false")+"; lang: "+p+" || envLang "+h+" || searchLang: "+v+" || osLang: "+w+" || customLang: "+f+" || localLang: "+y+" || xhngLang: "+g+" || windowLang: "+m);var S=p||h||v||w||f||(_?y||g:g||y)||x||m||Eae;return S=Hae(S),null===(l=window.__PANDA)||void 0===l||null===(c=l.langList)||void 0===c||!c.length||null!==(u=window.__PANDA)&&void 0!==u&&u.langList.includes(S)||(S=window.__PANDA.langList[0]),jae("isMultiXhng Result: "+S),S};function Uae(){return Math.random().toString(36).slice(2)}function Yae(e){return!!Cae.find((function(t){return t.value===e}))}function qae(e){var t={};return Tte(e,(function(e,n){t[Hae(n)]=dae(e.copyList,(function(e){return e.content}))})),t}function Xae(e){return e===kae?new URLSearchParams(Aae(kae)).get("lang")||Eae:Aae(e)||Eae}function $ae(){if(window[Pae]&&Object.keys(window[Pae]).length){var e=Object.values(window[Pae])[0].langCookieName;e&&window.__PANDA.cookieKey===kae&&(window.__PANDA.cookieKey=e)}}if(window.__PANDA=jn({cookieKey:kae,lang:function(){if("undefined"!=typeof navigator&&navigator.language&&navigator.userAgent){var e=navigator.language;if(navigator.userAgent.includes("DingTalk")){var t=navigator.userAgent.match(/language\/([a-zA-Z-]+)/);t&&null!=t&&t[1]&&(e=t[1])}return Yae(Hae(e))?Hae(e):navigator.languages.find((function(e){return Yae(e)}))}return Eae}(),logLevel:2,instanceNames:[]},window.__PANDA),window[Pae]=window[Pae]||{},"undefined"!=typeof location&&location.search){var Zae=new URLSearchParams(location.search),Kae=Zae.get("lang");if(Kae){var Jae=Hae(Kae);Yae(Jae)&&(window.__PANDA.searchLang=Jae)}Zae.get("panda_debug")&&(window.__PANDA.debug=!0)}if("undefined"!=typeof localStorage){var Qae=localStorage.getItem(Dae);Qae&&(window.__PANDA.localLang=Qae)}var ese=Zte,tse=Jte;var nse=function(e,t,n){(void 0!==n&&!tse(e[t],n)||void 0===n&&!(t in e))&&ese(e,t,n)},ise={exports:{}};!function(e,t){var n=eee,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,r=o&&o.exports===i?n.Buffer:void 0,a=r?r.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}(ise,ise.exports);var ose=ise.exports,rse=Die;var ase=function(e){var t=new e.constructor(e.byteLength);return new rse(t).set(new rse(e)),t};var sse=function(e,t){var n=t?ase(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var lse=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},cse=ite,use=Object.create,pse=function(){function e(){}return function(t){if(!cse(t))return{};if(use)return use(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),dse=pse,hse=Kee(Object.getPrototypeOf,Object),fse=dse,gse=hse,mse=Zee;var vse=function(e){return"function"!=typeof e.constructor||mse(e)?{}:fse(gse(e))},yse=cte,xse=hee;var bse=function(e){return xse(e)&&yse(e)},_se=dee,wse=hse,Sse=hee,Mse=Function.prototype,Cse=Object.prototype,Ise=Mse.toString,Tse=Cse.hasOwnProperty,Ase=Ise.call(Object);var Dse=function(e){if(!Sse(e)||"[object Object]"!=_se(e))return!1;var t=wse(e);if(null===t)return!0;var n=Tse.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ise.call(n)==Ase};var kse=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Ese=Zte,Ose=Jte,Lse=Object.prototype.hasOwnProperty;var Nse=function(e,t,n){var i=e[t];Lse.call(e,t)&&Ose(i,n)&&(void 0!==n||t in e)||Ese(e,t,n)},Pse=Nse,Rse=Zte;var zse=function(e,t,n,i){var o=!n;n||(n={});for(var r=-1,a=t.length;++r<a;){var s=t[r],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?Rse(n,s,l):Pse(n,s,l)}return n};var Vse=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Bse=ite,jse=Zee,Fse=Vse,Gse=Object.prototype.hasOwnProperty;var Hse=function(e){if(!Bse(e))return Fse(e);var t=jse(e),n=[];for(var i in e)("constructor"!=i||!t&&Gse.call(e,i))&&n.push(i);return n},Wse=Xee,Use=Hse,Yse=cte;var qse=function(e){return Yse(e)?Wse(e,!0):Use(e)},Xse=zse,$se=qse;var Zse=nse,Kse=ose,Jse=sse,Qse=lse,ele=vse,tle=_ee,nle=wee,ile=bse,ole=Cee,rle=ate,ale=ite,sle=Dse,lle=jee,cle=kse,ule=function(e){return Xse(e,$se(e))};var ple=function(e,t,n,i,o,r,a){var s=cle(e,n),l=cle(t,n),c=a.get(l);if(c)Zse(e,n,c);else{var u=r?r(s,l,n+"",e,t,a):void 0,p=void 0===u;if(p){var d=nle(l),h=!d&&ole(l),f=!d&&!h&&lle(l);u=l,d||h||f?nle(s)?u=s:ile(s)?u=Qse(s):h?(p=!1,u=Kse(l,!0)):f?(p=!1,u=Jse(l,!0)):u=[]:sle(l)||tle(l)?(u=s,tle(s)?u=ule(s):ale(s)&&!rle(s)||(u=ele(l))):p=!1}p&&(a.set(l,u),o(u,l,i,r,a),a.delete(l)),Zse(e,n,u)}},dle=yie,hle=nse,fle=$7,gle=ple,mle=ite,vle=qse,yle=kse;var xle=function e(t,n,i,o,r){t!==n&&fle(n,(function(a,s){if(r||(r=new dle),mle(a))gle(t,n,s,i,e,o,r);else{var l=o?o(yle(t,s),a,s+"",t,n,r):void 0;void 0===l&&(l=a),hle(t,s,l)}}),vle)};var ble=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},_le=Math.max;var wle=function(e,t,n){return t=_le(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,r=_le(i.length-t,0),a=Array(r);++o<r;)a[o]=i[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=i[o];return s[t]=n(a),ble(e,this,s)}};var Sle=function(e){return function(){return e}},Mle=Xte,Cle=Mle?function(e,t){return Mle(e,"toString",{configurable:!0,enumerable:!1,value:Sle(t),writable:!0})}:bte,Ile=Date.now;var Tle=function(e){var t=0,n=0;return function(){var i=Ile(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ale=Tle(Cle),Dle=bte,kle=wle,Ele=Ale;var Ole=function(e,t){return Ele(kle(e,t,Dle),e+"")},Lle=Jte,Nle=cte,Ple=Tee,Rle=ite;var zle=Ole,Vle=function(e,t,n){if(!Rle(n))return!1;var i=typeof t;return!!("number"==i?Nle(n)&&Ple(t,n.length):"string"==i&&t in n)&&Lle(n[t],e)};var Ble=function(e){return zle((function(t,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,a&&Vle(n[0],n[1],a)&&(r=o<3?void 0:r,o=1),t=Object(t);++i<o;){var s=n[i];s&&e(t,s,i,r)}return t}))},jle=xle,Fle=N(Ble((function(e,t,n){jle(e,t,n)}))),Gle=function(){function e(){var e=this;this.broadcast=null,this.eventBus={},this.handleMap={};var t="Panda_Broadcast_Channel";this.broadcast=new BroadcastChannel(t),new BroadcastChannel(t).onmessage=function(t){var n=t.data,i=n.event,o=n.data;i&&e.eventBus[i]&&Object.keys(e.eventBus[i]).forEach((function(t){e.eventBus[i][t](o)}))}}var t=e.prototype;return t.on=function(e,t){this.eventBus[e]||(this.eventBus[e]={});var n=Uae();return this.eventBus[e][n]=t,this.handleMap[n]=e,n},t.emit=function(e,t){this.broadcast.postMessage({event:e,data:t})},t.off=function(e){if(this.eventBus[e])delete this.eventBus[e];else{var t=this.handleMap[e];t&&(delete this.eventBus[t][e],delete this.handleMap[e])}},e}(),Hle=function(){function e(){this.eventBus={},this.handleMap={}}var t=e.prototype;return t.emit=function(e,t){var n=this;this.eventBus[e]&&Object.keys(this.eventBus[e]).forEach((function(i){n.eventBus[e][i](t)}))},t.off=function(e){if(this.eventBus[e])delete this.eventBus[e];else{var t=this.handleMap[e];t&&(delete this.eventBus[t][e],delete this.handleMap[e])}},t.on=function(e,t){this.eventBus[e]||(this.eventBus[e]={});var n=Uae();return this.eventBus[e][n]=t,this.handleMap[n]=e,n},e}();window[Rae]=jn({PACKID_LIST:[],INDEX:0,KEY_MAP:{},VK_MAP:new Map},window[Rae]);var Wle={"#":"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",0:""},Ule={"":"#","":"1","":"2","":"3","":"4","":"5","":"6","":"7","":"8","":"9","":"0"},Yle=/[\u206F\u202A\u200E\u2066\u2068\u2061\u2062\u2063\u2064\u2065\u206E]/g;function qle(e){var t,n,i,o,r=(n=e,i={},o=[],["copyKey","packId","type","componentName","isMatched","packageName"].forEach((function(e){n[e]&&(i[e]=n[e],o.push(e+":"+n[e].toString()))})),[i,o.join(";")]),a=r[0],s=r[1];return window[Rae].VK_MAP.has(s)?t=window[Rae].VK_MAP.get(s):(t=window[Rae].VK_MAP.size+1,window[Rae].INDEX=t,window[Rae].VK_MAP.set(s,t),window[Rae].KEY_MAP[t]=a),$le(t)}function Xle(e){var t;return(null===(t=window[Rae].KEY_MAP)||void 0===t?void 0:t[e])||null}function $le(e){return e.toString().split("").map((function(e){return Wle[e]})).join("")}var Zle={set:qle,get:Xle,decode:$le,encode:function(e){return e.split("").map((function(e){return Wle[e]})).join("")},encrypt:function(e,t){return""+e+""+qle(t)+""},decrypt:function(e){if(e.includes("")){var t=e.split("");return{copy:e.replace(Yle,""),info:t.length>=4?Xle(t[2].split("").map((function(e){return Ule[e]})).join("")):null}}return{copy:e,info:null}},getOriginalCopy:function(e){return e.includes("")?e.replace(Yle,""):e}};function Kle(e){null!=e&&e.cookieKey&&(window.__PANDA.cookieKey=e.cookieKey,jae("setConfig cookieKey: "+e.cookieKey)),e&&void 0!==e.logLevel&&(window.__PANDA.logLevel=e.logLevel),null!=e&&e.langList&&(window.__PANDA.langList=e.langList,jae("setConfig langList: "+JSON.stringify(e.langList))),null!=e&&e.defaultLang&&(window.__PANDA.defaultLang=e.defaultLang,jae("setConfig defaultLang: "+e.defaultLang))}var Jle="function"==typeof BroadcastChannel?new Gle:new Hle;function Qle(e,t){if(t&&Object.keys(t).length>0){var n=e;return Object.keys(t).forEach((function(e){var i=new RegExp("{"+e+"}","g"),o="object"==typeof t[e]||void 0===t[e]?"":t[e].toString();n=n.replace(i,Zle.getOriginalCopy(o))})),n}return e}var ece=function(){function e(e){var t=e.locale,n=e.lang,i=e.packageName,o=e.$i18n;this.locale=void 0,this.lang=void 0,this.packageName=void 0,this.$i18n=void 0,this.version=zae,this.locale=t,this.lang=n,this.$i18n=o,this.packageName=i}var t=e.prototype;return t.format2=function(e,t,n){var i=this,o=n.lang,r="",a=o,s=!1,l=e.defaultMessage||"";try{var c,u,p=(null===(c=this.locale[o])||void 0===c?void 0:c[e.id])||"";p&&(s=!0),!p&&null!==(u=Iae[o])&&void 0!==u&&u.likeness&&Iae[o].likeness.find((function(t){var n;return!(null===(n=i.locale[t])||void 0===n||!n[e.id])&&(p=i.locale[t][e.id],a=t)})),!p&&window.__PANDA.langList&&window.__PANDA.langList.find((function(t){var n;return!(null===(n=i.locale[t])||void 0===n||!n[e.id])&&(p=i.locale[t][e.id],a=t)})),r=Qle(p=p||l,t)}catch(t){var d="string"==typeof t?t:"Unknown error";Bae(e.id+" for "+o+" failed: \n"+d),Fae(t)}return{message:r||l||e.id||"",usedLang:a,isMatched:s}},t.format=function(e,t,n){return this.format2(e,t,n).message},t.setLocale=function(e){this.locale=e},e}();function tce(e,t){var n=(window[Oae]||{})[t];if(!n)return jae("No translation found"),void Fae({instanceName:t});n.setLocale(e)}var nce,ice,oce={locale:{getLocale:function(){return Vae("Legacy api! Please use $i18n.getLang instead!"),{lang:ace.getLang()}},setLang:function(e){Vae("Legacy api! Please use $i18n.setLang instead!"),ace.setLang(e)}}},rce=function(){function e(e){var t=this;this.locale={},this.currentLang="",this.componentName="",this.packageName="",this.type=void 0,this.name=void 0,this.localeUtil=oce,this.initFlag=!0,this.customLang=void 0,this.setConfig=Kle,this.componentName=(null==e?void 0:e.componentName)||"",this.type=null==e?void 0:e.type,this.packageName=null==e?void 0:e.packageName,this.name=this.componentName?this.componentName+"."+(this.packageName&&e.name?e.name:Uae()):Uae(),null!=e&&e.lang&&(this.customLang=e.lang),null!=e&&e.locale&&this.componentName?(this.locale=dae(e.locale,(function(e){return e[t.componentName]||e})),window[Lae]&&Object.keys(window[Lae]).forEach((function(e){window[Lae][e][t.componentName]&&(t.locale[e]=Fle(t.locale[e]||{},window[Lae][e][t.componentName]))}))):(this.locale=Fle({},qae(window[Pae]),(null==e?void 0:e.locale)||{}),$ae()),this.currentLang=(null==e?void 0:e.lang)||Wae(),Jle.on("CHANGE_LANG",(function(e){t.customLang||(t.currentLang=e)})),null!=e&&e._init&&(window.__PANDA.instanceNames.push(this.name),this.initFlag=!1,jae(this.name+": "+zae)),function(e,t){var n=t.name,i=t.lang,o=t.packageName,r=t.$i18n;window[Oae]=window[Oae]||{},window[Oae][n]=new ece({locale:e,lang:i,$i18n:r,packageName:o})}(this.locale,{name:this.name,lang:this.customLang,packageName:this.packageName,$i18n:this})}var t=e.prototype;return t.init=function(t){return new e(jn({},t,{packageName:(null==t?void 0:t.packageName)||this.packageName,type:(null==t?void 0:t.type)||this.type,name:this.name}))},t.change=function(e){Vae("Legacy api! Please use $i18n.setLang instead!"),this.setLang(e)},t.setLang=function(e){var t=Hae(e);t!==e&&Bae(e+" is not a valid language tag, panda converts to "+t+" instead,please check usage."),function(e){if(window.__PANDA.cookieKey===kae){var t=Aae(kae);if(t){var n=new URLSearchParams;new URLSearchParams(t).forEach((function(t,i){"lang"===i?n.set(i,e):n.set(i,t)})),n.set("domain",window.location.hostname),Tae(kae,n.toString())}else Tae(kae,"lang="+e+"&domain="+window.location.hostname)}else Tae(window.__PANDA.cookieKey,e)}(e),this.currentLang=t,window.__PANDA.lang=t,window.__PANDA.localLang&&(window.__PANDA.localLang=t),"undefined"!=typeof localStorage&&localStorage.setItem(Dae,t),jae("Set lang to "+t),Jle.emit("CHANGE_LANG",t)},t.getLang=function(){return this.currentLang},t.get=function(e,t){var n;ace.initFlag||(ace.initFlag=!0,$ae(),ace.currentLang=ace.customLang||Wae(),window.__PANDA.lang=ace.currentLang,ace.addLocale(qae(window[Pae])));var i="string"==typeof e,o=i?null==e?void 0:e.trim():null===(n=e.id)||void 0===n?void 0:n.trim(),r=i?e:e.dm,a=i?this.componentName:e.ns||this.componentName,s=!i&&e.lang?e.lang:this.currentLang,l=!i&&!(null==e||!e.pure);return function(e,t,n){var i,o=n||{},r=o.name,a=o.nameSpace,s=o.lang,l=o.type,c=o.pure,u=window[Oae]||{};if(!a||a===r||r.includes(".")&&u[r])i=u[r];else{var p=Object.keys(u),d=p.find((function(e){return e.startsWith(a+"."+r)}))||p.find((function(e){return e.startsWith(a)}));i=u[d]}if(!i)return jae("No translation found, pls make sure u passed the translation b4 1st $i18n.get func."),Fae({instanceName:r,translationId:e.id}),Qle(e.defaultMessage||e.id||"",t);var h=i.format2?i.format2(e,t,n):{message:i.format(e,t,n),usedLang:s,isMatched:!0},f=h.message,g=h.usedLang,m=h.isMatched;if((window.__PANDA.isI18nPdkv||window.__PANDA.debug)&&!c){var v,y,x,b,_=a||(r.includes(".")?r.split["."][0]:""),w=_?"":null===(v=window[Pae])||void 0===v||null===(y=v[g.replace("-","_")])||void 0===y||null===(x=y.copyList)||void 0===x||null===(b=x[e.id])||void 0===b?void 0:b.packId;return Zle.encrypt(f,{copyKey:e.id,type:l,componentName:_,packageName:i.packageName,packId:w,isMatched:m})}return f}({id:o,defaultMessage:r},t||null,{name:this.name,type:this.type,nameSpace:a,lang:s,pure:l})},t.addLocale=function(e){this.locale=Fle(this.locale,e),tce(this.locale,this.name)},t.setLocale=function(e,t){this.locale=e,this.packageName=t||Uae(),tce(this.locale,this.name),ace.initFlag||(ace.initFlag=!0,ace.currentLang=ace.customLang||Wae())},t.addLocaleByKey=function(e){var t=this;Tte(e,(function(e,n){Tte(e,(function(e,i){t.locale[i]=t.locale[i]||{},t.locale[i][n]=e}))})),tce(this.locale,this.name)},t.reloadPackLocale=function(){this.addLocale(qae(window[Pae]))},t.setCustomLang=function(e){this.currentLang=e,this.customLang=e},t.getLocaleByKey=function(e){var t={};return Tte(this.locale,(function(n,i){t[i]=n[e]||""})),t},t.initLowcode=function(){window.$i18n_lowcode=this},t.lockOSLang=function(){var e=Gae();e&&this.setCustomLang(e)},t.__setType=function(e){this.type=e},t.initPackage=function(e){var t=this,n=e.name,i=e.locales;if(i){var o={};Object.values(i).forEach((function(e){Object.keys(e).forEach((function(r){"string"==typeof e[r]?Bae("no support locales type"):o[r]||(o[r]=t.init({componentName:r,locale:i,packageName:n}))}))}))}},e}(),ace=new rce({_init:!0});nce=function(){window[Nae]&&!window[Nae].locale||(window[Nae]=ace)},null!==(ice=window.__PANDA)&&void 0!==ice&&ice.debug&&nce&&nce();var sce=window.__PANDA.pandaContext||e.createContext({locale:{},_lang:void 0,lang:void 0,$i18n:void 0});window.__PANDA.pandaContext||(window.__PANDA.pandaContext=sce);var lce,cce={exports:{}},uce={exports:{}},pce={};var dce,hce,fce,gce,mce,vce,yce,xce,bce,_ce,wce,Sce,Mce,Cce,Ice={};
|
|
25
|
+
/** @license React v16.13.1
|
|
26
|
+
* react-is.development.js
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the MIT license found in the
|
|
31
|
+
* LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/function Tce(){return hce||(hce=1,"production"===process.env.NODE_ENV?uce.exports=function(){if(lce)return pce;lce=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case l:case c:case i:case r:case o:case p:return e;default:switch(e=e&&e.$$typeof){case s:case u:case f:case h:case a:return e;default:return d}}case n:return d}}}function b(e){return x(e)===c}return pce.AsyncMode=l,pce.ConcurrentMode=c,pce.ContextConsumer=s,pce.ContextProvider=a,pce.Element=t,pce.ForwardRef=u,pce.Fragment=i,pce.Lazy=f,pce.Memo=h,pce.Portal=n,pce.Profiler=r,pce.StrictMode=o,pce.Suspense=p,pce.isAsyncMode=function(e){return b(e)||x(e)===l},pce.isConcurrentMode=b,pce.isContextConsumer=function(e){return x(e)===s},pce.isContextProvider=function(e){return x(e)===a},pce.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},pce.isForwardRef=function(e){return x(e)===u},pce.isFragment=function(e){return x(e)===i},pce.isLazy=function(e){return x(e)===f},pce.isMemo=function(e){return x(e)===h},pce.isPortal=function(e){return x(e)===n},pce.isProfiler=function(e){return x(e)===r},pce.isStrictMode=function(e){return x(e)===o},pce.isSuspense=function(e){return x(e)===p},pce.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===r||e===o||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},pce.typeOf=x,pce}():uce.exports=(dce||(dce=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,r=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var g=e.type;switch(g){case l:case c:case i:case r:case o:case p:return g;default:var m=g&&g.$$typeof;switch(m){case s:case u:case f:case h:case a:return m;default:return d}}case n:return d}}}var b=l,_=c,w=s,S=a,M=t,C=u,I=i,T=f,A=h,D=n,k=r,E=o,O=p,L=!1;function N(e){return x(e)===c}Ice.AsyncMode=b,Ice.ConcurrentMode=_,Ice.ContextConsumer=w,Ice.ContextProvider=S,Ice.Element=M,Ice.ForwardRef=C,Ice.Fragment=I,Ice.Lazy=T,Ice.Memo=A,Ice.Portal=D,Ice.Profiler=k,Ice.StrictMode=E,Ice.Suspense=O,Ice.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||x(e)===l},Ice.isConcurrentMode=N,Ice.isContextConsumer=function(e){return x(e)===s},Ice.isContextProvider=function(e){return x(e)===a},Ice.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ice.isForwardRef=function(e){return x(e)===u},Ice.isFragment=function(e){return x(e)===i},Ice.isLazy=function(e){return x(e)===f},Ice.isMemo=function(e){return x(e)===h},Ice.isPortal=function(e){return x(e)===n},Ice.isProfiler=function(e){return x(e)===r},Ice.isStrictMode=function(e){return x(e)===o},Ice.isSuspense=function(e){return x(e)===p},Ice.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===r||e===o||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},Ice.typeOf=x}()),Ice)),uce.exports}
|
|
33
|
+
/*
|
|
34
|
+
object-assign
|
|
35
|
+
(c) Sindre Sorhus
|
|
36
|
+
@license MIT
|
|
37
|
+
*/function Ace(){if(gce)return fce;gce=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return fce=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(i,o){for(var r,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(i),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))t.call(r,c)&&(s[c]=r[c]);if(e){a=e(r);for(var u=0;u<a.length;u++)n.call(r,a[u])&&(s[a[u]]=r[a[u]])}}return s},fce}function Dce(){if(vce)return mce;vce=1;return mce="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function kce(){return xce?yce:(xce=1,yce=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Ece=Tce();cce.exports=function(){if(Sce)return wce;Sce=1;var e=Tce(),t=Ace(),n=Dce(),i=kce(),o=function(){if(_ce)return bce;_ce=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Dce(),n={},i=kce();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,r,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(i(o,c)){var u;try{if("function"!=typeof o[c]){var p=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=o[c](r,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var d=l?l():"";e("Failed "+a+" type: "+u.message+(null!=d?d:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},bce=o}(),r=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),wce=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",p="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(a),arrayOf:function(e){return g((function(t,i,o,r,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[i];if(!Array.isArray(s))return new f("Invalid "+r+" `"+a+"` of type `"+x(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,o,r,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:g((function(e,t,n,i,o){var r=e[t];return s(r)?null:new f("Invalid "+i+" `"+o+"` of type `"+x(r)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,i,o,r){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+o+" `"+r+"` of type `"+x(a)+"` supplied to `"+i+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,i,o,r){if(!(t[n]instanceof e)){var a=e.name||p;return new f("Invalid "+o+" `"+r+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:p)+"` supplied to `"+i+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,i,o){return y(e[t])?null:new f("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,r,a,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[o],c=x(l);if("object"!==c)return new f("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in l)if(i(l,u)){var p=e(l,u,r,a,s+"."+u,n);if(p instanceof Error)return p}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,i,o,r){for(var a=t[n],s=0;s<e.length;s++)if(h(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new f("Invalid "+o+" `"+r+"` of value `"+String(a)+"` supplied to `"+i+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&r(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(o)+" at index "+t+"."),a}return g((function(t,o,r,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,r,a,s,n);if(null==u)return null;u.data&&i(u.data,"expectedType")&&l.push(u.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,i,o,r,a){var s=t[i],l=x(s);if("object"!==l)return new f("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return v(o,r,a,c,b(u));var p=u(s,c,o,r,a+"."+c,n);if(p)return p}return null}))},exact:function(e){return g((function(o,r,a,s,l){var c=o[r],u=x(c);if("object"!==u)return new f("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var p=t({},o[r],e);for(var d in p){var h=e[d];if(i(e,d)&&"function"!=typeof h)return v(a,s,l,d,b(h));if(!h)return new f("Invalid "+s+" `"+l+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=h(c,d,a,s,l+"."+d,n);if(g)return g}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},i=0;function o(o,a,s,c,u,d,h){if(c=c||p,d=d||s,h!==n){if(l){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=c+":"+s;!t[m]&&i<3&&(r("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[m]=!0,i++)}}return null==a[s]?o?null===a[s]?new f("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return g((function(t,n,i,o,r,a){var s=t[n];return x(s)!==e?new f("Invalid "+o+" `"+r+"` of type `"+b(s)+"` supplied to `"+i+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,i,o){return new f((e||"React class")+": "+t+" type `"+n+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,i=t.call(e);if(t!==e.entries){for(;!(n=i.next()).done;)if(!y(n.value))return!1}else for(;!(n=i.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function _(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},wce}()(Ece.isElement,!0)}else cce.exports=function(){if(Cce)return Mce;Cce=1;var e=Dce();function t(){}function n(){}return n.resetWarningCache=t,Mce=function(){function i(t,n,i,o,r,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return i}i.isRequired=i;var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}()();var Oce=N(cce.exports);function Lce(e,t){return function(){return e.apply(t,arguments)}}Oce.string,Oce.object,Oce.object,Oce.bool,Oce.bool,Oce.bool,Oce.oneOf(["tablet","desktop","phone"]),Oce.any,Oce.oneOfType([Oce.bool,Oce.object]),Oce.string,Oce.object,Oce.object,Oce.bool,Oce.bool,Oce.bool,Oce.oneOf(["tablet","desktop","phone"]),Oce.any,Oce.oneOfType([Oce.bool,Oce.object]);const{toString:Nce}=Object.prototype,{getPrototypeOf:Pce}=Object,Rce=(zce=Object.create(null),e=>{const t=Nce.call(e);return zce[t]||(zce[t]=t.slice(8,-1).toLowerCase())});var zce;const Vce=e=>(e=e.toLowerCase(),t=>Rce(t)===e),Bce=e=>t=>typeof t===e,{isArray:jce}=Array,Fce=Bce("undefined");const Gce=Vce("ArrayBuffer");const Hce=Bce("string"),Wce=Bce("function"),Uce=Bce("number"),Yce=e=>null!==e&&"object"==typeof e,qce=e=>{if("object"!==Rce(e))return!1;const t=Pce(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Xce=Vce("Date"),$ce=Vce("File"),Zce=Vce("Blob"),Kce=Vce("FileList"),Jce=Vce("URLSearchParams");function Qce(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,o;if("object"!=typeof e&&(e=[e]),jce(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),r=o.length;let a;for(i=0;i<r;i++)a=o[i],t.call(null,e[a],a,e)}}function eue(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,o=n.length;for(;o-- >0;)if(i=n[o],t===i.toLowerCase())return i;return null}const tue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,nue=e=>!Fce(e)&&e!==tue;const iue=(oue="undefined"!=typeof Uint8Array&&Pce(Uint8Array),e=>oue&&e instanceof oue);var oue;const rue=Vce("HTMLFormElement"),aue=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sue=Vce("RegExp"),lue=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Qce(n,((n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)})),Object.defineProperties(e,i)},cue="abcdefghijklmnopqrstuvwxyz",uue="0123456789",pue={DIGIT:uue,ALPHA:cue,ALPHA_DIGIT:cue+cue.toUpperCase()+uue};const due=Vce("AsyncFunction");var hue={isArray:jce,isArrayBuffer:Gce,isBuffer:function(e){return null!==e&&!Fce(e)&&null!==e.constructor&&!Fce(e.constructor)&&Wce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Wce(e.append)&&("formdata"===(t=Rce(e))||"object"===t&&Wce(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Gce(e.buffer),t},isString:Hce,isNumber:Uce,isBoolean:e=>!0===e||!1===e,isObject:Yce,isPlainObject:qce,isUndefined:Fce,isDate:Xce,isFile:$ce,isBlob:Zce,isRegExp:sue,isFunction:Wce,isStream:e=>Yce(e)&&Wce(e.pipe),isURLSearchParams:Jce,isTypedArray:iue,isFileList:Kce,forEach:Qce,merge:function e(){const{caseless:t}=nue(this)&&this||{},n={},i=(i,o)=>{const r=t&&eue(n,o)||o;qce(n[r])&&qce(i)?n[r]=e(n[r],i):qce(i)?n[r]=e({},i):jce(i)?n[r]=i.slice():n[r]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Qce(arguments[e],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(Qce(t,((t,i)=>{n&&Wce(t)?e[i]=Lce(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let o,r,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),r=o.length;r-- >0;)a=o[r],i&&!i(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Pce(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Rce,kindOfTest:Vce,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(jce(e))return e;let t=e.length;if(!Uce(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:rue,hasOwnProperty:aue,hasOwnProp:aue,reduceDescriptors:lue,freezeMethods:e=>{lue(e,((t,n)=>{if(Wce(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];Wce(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return jce(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:eue,global:tue,isContextDefined:nue,ALPHABET:pue,generateString:(e=16,t=pue.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&Wce(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(Yce(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const o=jce(e)?[]:{};return Qce(e,((e,t)=>{const r=n(e,i+1);!Fce(r)&&(o[t]=r)})),t[i]=void 0,o}}return e};return n(e,0)},isAsyncFn:due,isThenable:e=>e&&(Yce(e)||Wce(e))&&Wce(e.then)&&Wce(e.catch)};function fue(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}hue.inherits(fue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:hue.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gue=fue.prototype,mue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{mue[e]={value:e}})),Object.defineProperties(fue,mue),Object.defineProperty(gue,"isAxiosError",{value:!0}),fue.from=(e,t,n,i,o,r)=>{const a=Object.create(gue);return hue.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),fue.call(a,e.message,t,n,i,o),a.cause=e,a.name=e.name,r&&Object.assign(a,r),a};var vue=p.Stream,yue=xue;function xue(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}c.inherits(xue,vue),xue.create=function(e,t){var n=new this;for(var i in t=t||{})n[i]=t[i];n.source=e;var o=e.emit;return e.emit=function(){return n._handleEmit(arguments),o.apply(e,arguments)},e.on("error",(function(){})),n.pauseStream&&e.pause(),n},Object.defineProperty(xue.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),xue.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},xue.prototype.resume=function(){this._released||this.release(),this.source.resume()},xue.prototype.pause=function(){this.source.pause()},xue.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},xue.prototype.pipe=function(){var e=vue.prototype.pipe.apply(this,arguments);return this.resume(),e},xue.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},xue.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var bue=c,_ue=p.Stream,wue=yue,Sue=Mue;function Mue(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}bue.inherits(Mue,_ue),Mue.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},Mue.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},Mue.prototype.append=function(e){if(Mue.isStreamLike(e)){if(!(e instanceof wue)){var t=wue.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},Mue.prototype.pipe=function(e,t){return _ue.prototype.pipe.call(this,e,t),this.resume(),e},Mue.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},Mue.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){Mue.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},Mue.prototype._pipeNext=function(e){if(this._currentStream=e,Mue.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},Mue.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},Mue.prototype.write=function(e){this.emit("data",e)},Mue.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},Mue.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},Mue.prototype.end=function(){this._reset(),this.emit("end")},Mue.prototype.destroy=function(){this._reset(),this.emit("close")},Mue.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},Mue.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},Mue.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},Mue.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var Cue={},Iue={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};
|
|
38
|
+
/*!
|
|
39
|
+
* mime-types
|
|
40
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
41
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
42
|
+
* MIT Licensed
|
|
43
|
+
*/
|
|
44
|
+
!function(e){var t=Iue,n=h.extname,i=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;function r(e){if(!e||"string"!=typeof e)return!1;var n=i.exec(e),r=n&&t[n[1].toLowerCase()];return r&&r.charset?r.charset:!(!n||!o.test(n[1]))&&"UTF-8"}e.charset=r,e.charsets={lookup:r},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var i=e.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=i.exec(t),o=n&&e.extensions[n[1].toLowerCase()];if(!o||!o.length)return!1;return o[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var i=n("x."+t).toLowerCase().substr(1);if(!i)return!1;return e.types[i]||!1},e.types=Object.create(null),function(e,n){var i=["nginx","apache",void 0,"iana"];Object.keys(t).forEach((function(o){var r=t[o],a=r.extensions;if(a&&a.length){e[o]=a;for(var s=0;s<a.length;s++){var l=a[s];if(n[l]){var c=i.indexOf(t[n[l]].source),u=i.indexOf(r.source);if("application/octet-stream"!==n[l]&&(c>u||c===u&&"application/"===n[l].substr(0,12)))continue}n[l]=o}}}))}(e.extensions,e.types)}(Cue);var Tue=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)};var Aue=Tue,Due=function(e){var t=!1;return Aue((function(){t=!0})),function(n,i){t?e(n,i):Aue((function(){e(n,i)}))}};var kue=function(e){Object.keys(e.jobs).forEach(Eue.bind(e)),e.jobs={}};function Eue(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Oue=Due,Lue=kue,Nue=function(e,t,n,i){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=function(e,t,n,i){var o;o=2==e.length?e(n,Oue(i)):e(n,t,Oue(i));return o}(t,o,e[o],(function(e,t){o in n.jobs&&(delete n.jobs[o],e?Lue(n):n.results[o]=t,i(e,n.results))}))};var Pue=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])});return i};var Rue=kue,zue=Due,Vue=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Rue(this),zue(e)(null,this.results)};var Bue=Nue,jue=Pue,Fue=Vue,Gue=function(e,t,n){var i=jue(e);for(;i.index<(i.keyedList||e).length;)Bue(e,t,i,(function(e,t){e?n(e,t):0!==Object.keys(i.jobs).length||n(null,i.results)})),i.index++;return Fue.bind(i,n)};var Hue={exports:{}},Wue=Nue,Uue=Pue,Yue=Vue;function que(e,t){return e<t?-1:e>t?1:0}Hue.exports=function(e,t,n,i){var o=Uue(e,n);return Wue(e,t,o,(function n(r,a){r?i(r,a):(o.index++,o.index<(o.keyedList||e).length?Wue(e,t,o,n):i(null,o.results))})),Yue.bind(o,i)},Hue.exports.ascending=que,Hue.exports.descending=function(e,t){return-1*que(e,t)};var Xue=Hue.exports,$ue=Xue,Zue=function(e,t,n){return $ue(e,t,null,n)};var Kue={parallel:Gue,serial:Zue,serialOrdered:Xue},Jue=Sue,Que=c,epe=h,tpe=f,npe=g,ipe=m.parse,ope=v,rpe=p.Stream,ape=Cue,spe=Kue,lpe=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e},cpe=upe;function upe(e){if(!(this instanceof upe))return new upe(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Jue.call(this),e=e||{})this[t]=e[t]}Que.inherits(upe,Jue),upe.LINE_BREAK="\r\n",upe.DEFAULT_CONTENT_TYPE="application/octet-stream",upe.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=Jue.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),Que.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),r=this._multiPartFooter();i(o),i(t),i(r),this._trackLength(o,t,n)}},upe.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=+n.knownLength:Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+upe.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof rpe)&&(n.knownLength||this._valuesToMeasure.push(t))},upe.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):ope.stat(e.path,(function(n,i){var o;n?t(n):(o=i.size-(e.start?e.start:0),t(null,o))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},upe.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,o=this._getContentDisposition(t,n),r=this._getContentType(t,n),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(o||[]),"Content-Type":[].concat(r||[])};for(var l in"object"==typeof n.header&&lpe(s,n.header),s)s.hasOwnProperty(l)&&null!=(i=s[l])&&(Array.isArray(i)||(i=[i]),i.length&&(a+=l+": "+i.join("; ")+upe.LINE_BREAK));return"--"+this.getBoundary()+upe.LINE_BREAK+a+upe.LINE_BREAK},upe.prototype._getContentDisposition=function(e,t){var n,i;return"string"==typeof t.filepath?n=epe.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=epe.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=epe.basename(e.client._httpMessage.path||"")),n&&(i='filename="'+n+'"'),i},upe.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=ape.lookup(e.name)),!n&&e.path&&(n=ape.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=ape.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=upe.DEFAULT_CONTENT_TYPE),n},upe.prototype._multiPartFooter=function(){return function(e){var t=upe.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},upe.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+upe.LINE_BREAK},upe.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},upe.prototype.setBoundary=function(e){this._boundary=e},upe.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},upe.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(upe.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},upe.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},upe.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},upe.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},upe.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?spe.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,i){n?e(n):(i.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},upe.prototype.submit=function(e,t){var n,i,o={method:"post"};return"string"==typeof e?(e=ipe(e),i=lpe({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(i=lpe(e,o)).port||(i.port="https:"==i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"==i.protocol?npe.request(i):tpe.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),t){var o,r=function(e,i){return n.removeListener("error",r),n.removeListener("response",o),t.call(this,e,i)};o=r.bind(this,null),n.on("error",r),n.on("response",o)}}.bind(this)),n},upe.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},upe.prototype.toString=function(){return"[object FormData]"};var ppe=N(cpe);function dpe(e){return hue.isPlainObject(e)||hue.isArray(e)}function hpe(e){return hue.endsWith(e,"[]")?e.slice(0,-2):e}function fpe(e,t,n){return e?e.concat(t).map((function(e,t){return e=hpe(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const gpe=hue.toFlatObject(hue,{},null,(function(e){return/^is[A-Z]/.test(e)}));function mpe(e,t,n){if(!hue.isObject(e))throw new TypeError("target must be an object");t=t||new(ppe||FormData);const i=(n=hue.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!hue.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,r=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&hue.isSpecCompliantForm(t);if(!hue.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(hue.isDate(e))return e.toISOString();if(!s&&hue.isBlob(e))throw new fue("Blob is not supported. Use a Buffer instead.");return hue.isArrayBuffer(e)||hue.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(hue.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(hue.isArray(e)&&function(e){return hue.isArray(e)&&!e.some(dpe)}(e)||(hue.isFileList(e)||hue.endsWith(n,"[]"))&&(s=hue.toArray(e)))return n=hpe(n),s.forEach((function(e,i){!hue.isUndefined(e)&&null!==e&&t.append(!0===a?fpe([n],i,r):null===a?n:n+"[]",l(e))})),!1;return!!dpe(e)||(t.append(fpe(o,n,r),l(e)),!1)}const u=[],p=Object.assign(gpe,{defaultVisitor:c,convertValue:l,isVisitable:dpe});if(!hue.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!hue.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),hue.forEach(n,(function(n,r){!0===(!(hue.isUndefined(n)||null===n)&&o.call(t,n,hue.isString(r)?r.trim():r,i,p))&&e(n,i?i.concat(r):[r])})),u.pop()}}(e),t}function vpe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ype(e,t){this._pairs=[],e&&mpe(e,this,t)}const xpe=ype.prototype;function bpe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _pe(e,t,n){if(!t)return e;const i=n&&n.encode||bpe,o=n&&n.serialize;let r;if(r=o?o(t,n):hue.isURLSearchParams(t)?t.toString():new ype(t,n).toString(i),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}xpe.append=function(e,t){this._pairs.push([e,t])},xpe.toString=function(e){const t=e?function(t){return e.call(this,t,vpe)}:vpe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class wpe{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){hue.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Spe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mpe={isNode:!0,classes:{URLSearchParams:m.URLSearchParams,FormData:ppe,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]};const Cpe="undefined"!=typeof window&&"undefined"!=typeof document,Ipe=(Tpe="undefined"!=typeof navigator&&navigator.product,Cpe&&["ReactNative","NativeScript","NS"].indexOf(Tpe)<0);var Tpe;const Ape="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var Dpe={...Object.freeze({__proto__:null,hasBrowserEnv:Cpe,hasStandardBrowserEnv:Ipe,hasStandardBrowserWebWorkerEnv:Ape}),...Mpe};function kpe(e){function t(e,n,i,o){let r=e[o++];if("__proto__"===r)return!0;const a=Number.isFinite(+r),s=o>=e.length;if(r=!r&&hue.isArray(i)?i.length:r,s)return hue.hasOwnProp(i,r)?i[r]=[i[r],n]:i[r]=n,!a;i[r]&&hue.isObject(i[r])||(i[r]=[]);return t(e,n,i[r],o)&&hue.isArray(i[r])&&(i[r]=function(e){const t={},n=Object.keys(e);let i;const o=n.length;let r;for(i=0;i<o;i++)r=n[i],t[r]=e[r];return t}(i[r])),!a}if(hue.isFormData(e)&&hue.isFunction(e.entries)){const n={};return hue.forEachEntry(e,((e,i)=>{t(function(e){return hue.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null}const Epe={transitional:Spe,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=hue.isObject(e);o&&hue.isHTMLForm(e)&&(e=new FormData(e));if(hue.isFormData(e))return i?JSON.stringify(kpe(e)):e;if(hue.isArrayBuffer(e)||hue.isBuffer(e)||hue.isStream(e)||hue.isFile(e)||hue.isBlob(e))return e;if(hue.isArrayBufferView(e))return e.buffer;if(hue.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return mpe(e,new Dpe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return Dpe.isNode&&hue.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=hue.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return mpe(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(hue.isString(e))try{return(t||JSON.parse)(e),hue.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Epe.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&hue.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw fue.from(e,fue.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dpe.classes.FormData,Blob:Dpe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};hue.forEach(["delete","get","head","post","put","patch"],(e=>{Epe.headers[e]={}}));var Ope=Epe;const Lpe=hue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Npe=Symbol("internals");function Ppe(e){return e&&String(e).trim().toLowerCase()}function Rpe(e){return!1===e||null==e?e:hue.isArray(e)?e.map(Rpe):String(e)}function zpe(e,t,n,i,o){return hue.isFunction(i)?i.call(this,t,n):(o&&(t=n),hue.isString(t)?hue.isString(i)?-1!==t.indexOf(i):hue.isRegExp(i)?i.test(t):void 0:void 0)}class Vpe{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function o(e,t,n){const o=Ppe(t);if(!o)throw new Error("header name must be a non-empty string");const r=hue.findKey(i,o);(!r||void 0===i[r]||!0===n||void 0===n&&!1!==i[r])&&(i[r||t]=Rpe(e))}const r=(e,t)=>hue.forEach(e,((e,n)=>o(e,n,t)));return hue.isPlainObject(e)||e instanceof this.constructor?r(e,t):hue.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?r((e=>{const t={};let n,i,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!n||t[n]&&Lpe[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=Ppe(e)){const n=hue.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(hue.isFunction(t))return t.call(this,e,n);if(hue.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ppe(e)){const n=hue.findKey(this,e);return!(!n||void 0===this[n]||t&&!zpe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function o(e){if(e=Ppe(e)){const o=hue.findKey(n,e);!o||t&&!zpe(0,n[o],o,t)||(delete n[o],i=!0)}}return hue.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const o=t[n];e&&!zpe(0,this[o],o,e,!0)||(delete this[o],i=!0)}return i}normalize(e){const t=this,n={};return hue.forEach(this,((i,o)=>{const r=hue.findKey(n,o);if(r)return t[r]=Rpe(i),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Rpe(i),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return hue.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&hue.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Npe]=this[Npe]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=Ppe(e);t[i]||(!function(e,t){const n=hue.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,o){return this[i].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[i]=!0)}return hue.isArray(e)?e.forEach(i):i(e),this}}Vpe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),hue.reduceDescriptors(Vpe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),hue.freezeMethods(Vpe);var Bpe=Vpe;function jpe(e,t){const n=this||Ope,i=t||n,o=Bpe.from(i.headers);let r=i.data;return hue.forEach(e,(function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)})),o.normalize(),r}function Fpe(e){return!(!e||!e.__CANCEL__)}function Gpe(e,t,n){fue.call(this,null==e?"canceled":e,fue.ERR_CANCELED,t,n),this.name="CanceledError"}function Hpe(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new fue("Request failed with status code "+n.status,[fue.ERR_BAD_REQUEST,fue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Wpe(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}hue.inherits(Gpe,fue,{__CANCEL__:!0});var Upe=m.parse,Ype={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},qpe=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Xpe(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var $pe,Zpe,Kpe,Jpe,Qpe,ede=function(e){var t="string"==typeof e?Upe(e):e||{},n=t.protocol,i=t.host,o=t.port;if("string"!=typeof i||!i||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(Xpe("npm_config_no_proxy")||Xpe("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every((function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),o=i?i[1]:n,r=i?parseInt(i[2]):0;return!(!r||r===t)||(/^[.*]/.test(o)?("*"===o.charAt(0)&&(o=o.slice(1)),!qpe.call(e,o)):e!==o)}))}(i=i.replace(/:\d*$/,""),o=parseInt(o)||Ype[n]||0))return"";var r=Xpe("npm_config_"+n+"_proxy")||Xpe(n+"_proxy")||Xpe("npm_config_proxy")||Xpe("all_proxy");return r&&-1===r.indexOf("://")&&(r=n+"://"+r),r},tde={exports:{}},nde={exports:{}},ide={exports:{}};function ode(){if(Zpe)return $pe;Zpe=1;var e=1e3,t=60*e,n=60*t,i=24*n,o=7*i,r=365.25*i;function a(e,t,n,i){var o=t>=1.5*n;return Math.round(e/n)+" "+i+(o?"s":"")}return $pe=function(s,l){l=l||{};var c=typeof s;if("string"===c&&s.length>0)return function(a){if((a=String(a)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*r;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(s);if("number"===c&&isFinite(s))return l.long?function(o){var r=Math.abs(o);if(r>=i)return a(o,r,i,"day");if(r>=n)return a(o,r,n,"hour");if(r>=t)return a(o,r,t,"minute");if(r>=e)return a(o,r,e,"second");return o+" ms"}(s):function(o){var r=Math.abs(o);if(r>=i)return Math.round(o/i)+"d";if(r>=n)return Math.round(o/n)+"h";if(r>=t)return Math.round(o/t)+"m";if(r>=e)return Math.round(o/e)+"s";return o+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},$pe}function rde(){if(Jpe)return Kpe;return Jpe=1,Kpe=function(e){function t(e){let i,o,r,a=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date),r=o-(i||o);n.diff=r,n.prev=i,n.curr=o,i=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((i,o)=>{if("%%"===i)return"%";a++;const r=t.formatters[o];if("function"==typeof r){const t=e[a];i=r.call(n,t),e.splice(a,1),a--}return i})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,r=t.enabled(e)),r),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const i=("string"==typeof e?e:"").split(/[\s,]+/),o=i.length;for(n=0;n<o;n++)i[n]&&("-"===(e=i[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=ode(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},Kpe}var ade,sde,lde,cde,ude,pde,dde,hde={exports:{}};function fde(){return sde||(sde=1,ade=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),o=t.indexOf("--");return-1!==i&&(-1===o||i<o)}),ade}function gde(){if(cde)return lde;cde=1;const e=b,t=fde(),n=process.env;let i;function o(o){const r=function(o){if(!1===i)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(o&&!o.isTTY&&!0!==i)return 0;const r=i?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in n))||"codeship"===n.CI_NAME?1:r;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("truecolor"===n.COLORTERM)return 3;if("TERM_PROGRAM"in n){const e=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:(n.TERM,r)}(o);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(r)}return t("no-color")||t("no-colors")||t("color=false")?i=!1:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(i=!0),"FORCE_COLOR"in n&&(i=0===n.FORCE_COLOR.length||0!==parseInt(n.FORCE_COLOR,10)),lde={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}function mde(){return ude||(ude=1,function(e,t){const n=x,i=c;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;i<n.length;i++)e.inspectOpts[n[i]]=t.inspectOpts[n[i]]},t.log=function(...e){return process.stderr.write(i.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:i,useColors:o}=this;if(o){const t=this.color,o="[3"+(t<8?t:"8;5;"+t),r=` ${o};1m${i} [0m`;n[0]=r+n[0].split("\n").join("\n"+r),n.push(o+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=gde();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e}),{}),e.exports=rde()(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}}(hde,hde.exports)),hde.exports}function vde(){return pde||(pde=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?nde.exports=(Qpe||(Qpe=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(o=i))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=rde()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ide,ide.exports)),ide.exports):nde.exports=mde()),nde.exports}var yde=m,xde=yde.URL,bde=f,_de=g,wde=p.Writable,Sde=y,Mde=function(){if(!dde){try{dde=vde()("follow-redirects")}catch(e){}"function"!=typeof dde&&(dde=function(){})}dde.apply(null,arguments)},Cde=!1;try{Sde(new xde)}catch(Bae){Cde="ERR_INVALID_URL"===Bae.code}var Ide=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Tde=["abort","aborted","connect","error","socket","timeout"],Ade=Object.create(null);Tde.forEach((function(e){Ade[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}}));var Dde=Gde("ERR_INVALID_URL","Invalid URL",TypeError),kde=Gde("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ede=Gde("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",kde),Ode=Gde("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Lde=Gde("ERR_STREAM_WRITE_AFTER_END","write after end"),Nde=wde.prototype.destroy||zde;function Pde(e,t){wde.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof kde?e:new kde({cause:e}))}},this._performRequest()}function Rde(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(i){var o=i+":",r=n[o]=e[i],a=t[i]=Object.create(r);Object.defineProperties(a,{request:{value:function(e,i,r){var a;return a=e,xde&&a instanceof xde?e=jde(e):Wde(e)?e=jde(Vde(e)):(r=i,i=Bde(e),e={protocol:o}),Ude(i)&&(r=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,Wde(i.host)||Wde(i.hostname)||(i.hostname="::1"),Sde.equal(i.protocol,o,"protocol mismatch"),Mde("options",i),new Pde(i,r)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=a.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),t}function zde(){}function Vde(e){var t;if(Cde)t=new xde(e);else if(!Wde((t=Bde(yde.parse(e))).protocol))throw new Dde({input:e});return t}function Bde(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Dde({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Dde({input:e.href||e});return e}function jde(e,t){var n=t||{};for(var i of Ide)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function Fde(e,t){var n;for(var i in t)e.test(i)&&(n=t[i],delete t[i]);return null==n?void 0:String(n).trim()}function Gde(e,t,n){function i(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(n||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function Hde(e,t){for(var n of Tde)e.removeListener(n,Ade[n]);e.on("error",zde),e.destroy(t)}function Wde(e){return"string"==typeof e||e instanceof String}function Ude(e){return"function"==typeof e}Pde.prototype=Object.create(wde.prototype),Pde.prototype.abort=function(){Hde(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},Pde.prototype.destroy=function(e){return Hde(this._currentRequest,e),Nde.call(this,e),this},Pde.prototype.write=function(e,t,n){if(this._ending)throw new Lde;if(!Wde(e)&&("object"!=typeof(i=e)||!("length"in i)))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;Ude(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new Ode),this.abort()):n&&n()},Pde.prototype.end=function(e,t,n){if(Ude(e)?(n=e,e=t=null):Ude(t)&&(n=t,t=null),e){var i=this,o=this._currentRequest;this.write(e,t,(function(){i._ended=!0,o.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},Pde.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Pde.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Pde.prototype.setTimeout=function(e,t){var n=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),r()}),e),i(t)}function r(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",r),n.removeListener("error",r),n.removeListener("response",r),n.removeListener("close",r),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",i),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){Pde.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Pde.prototype,e,{get:function(){return this._currentRequest[e]}})})),Pde.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},Pde.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(i._redirectable=this,Tde))i.on(o,Ade[o]);if(this._currentUrl=/^\//.test(this._options.path)?yde.format(this._options):this._options.path,this._isRedirect){var r=0,a=this,s=this._requestBodyBuffers;!function e(t){if(i===a._currentRequest)if(t)a.emit("error",t);else if(r<s.length){var n=s[r++];i.finished||i.write(n.data,n.encoding,e)}else a._ended&&i.end()}()}},Pde.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(Hde(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Ede;var o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var r=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Fde(/^content-/i,this._options.headers));var a=Fde(/^host$/i,this._options.headers),s=Vde(this._currentUrl),l=a||s.host,c=/^\w+:/.test(i)?this._currentUrl:yde.format(Object.assign(s,{host:l})),u=function(e,t){return Cde?new xde(e,t):Vde(yde.resolve(t,e))}(i,c);if(Mde("redirecting to",u.href),this._isRedirect=!0,jde(u,this._options),(u.protocol!==s.protocol&&"https:"!==u.protocol||u.host!==l&&!function(e,t){Sde(Wde(e)&&Wde(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(u.host,l))&&Fde(/^(?:authorization|cookie)$/i,this._options.headers),Ude(o)){var p={headers:e.headers,statusCode:t},d={url:c,method:r,headers:n};o(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()},tde.exports=Rde({http:bde,https:_de}),tde.exports.wrap=Rde;var Yde=N(tde.exports);const qde="1.6.7";function Xde(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const $de=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Zde(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o,r=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=i[a];o||(o=l),n[r]=s,i[r]=l;let u=a,p=0;for(;u!==r;)p+=n[u++],u%=e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),l-o<t)return;const d=c&&l-c;return d?Math.round(1e3*p/d):void 0}}const Kde=Symbol("internals");class Jde extends p.Transform{constructor(e){super({readableHighWaterMark:(e=hue.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!hue.isUndefined(t[e])))).chunkSize});const t=this,n=this[Kde]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},i=Zde(n.ticksRate*e.samplesCount,n.timeWindow);this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}));let o=0;n.updateProgress=function(e,t){let n=0;const i=1e3/t;let o=null;return function(t,r){const a=Date.now();if(t||a-n>i)return o&&(clearTimeout(o),o=null),n=a,e.apply(null,r);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,r))),i-(a-n)))}}((function(){const e=n.length,r=n.bytesSeen,a=r-o;if(!a||t.destroyed)return;const s=i(a);o=r,process.nextTick((()=>{t.emit("progress",{loaded:r,total:e,progress:e?r/e:void 0,bytes:a,rate:s||void 0,estimated:s&&e&&r<=e?(e-r)/s:void 0})}))}),n.ticksRate);const r=()=>{n.updateProgress(!0)};this.once("end",r),this.once("error",r)}_read(e){const t=this[Kde];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this,o=this[Kde],r=o.maxRate,a=this.readableHighWaterMark,s=o.timeWindow,l=r/(1e3/s),c=!1!==o.minChunkSize?Math.max(o.minChunkSize,.01*l):0;const u=(e,t)=>{const n=Buffer.byteLength(e);let u,p=null,d=a,h=0;if(r){const e=Date.now();(!o.ts||(h=e-o.ts)>=s)&&(o.ts=e,u=l-o.bytes,o.bytes=u<0?-u:0,h=0),u=l-o.bytes}if(r){if(u<=0)return setTimeout((()=>{t(null,e)}),s-h);u<d&&(d=u)}d&&n>d&&n-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),function(e,t){const n=Buffer.byteLength(e);o.bytesSeen+=n,o.bytes+=n,o.isCaptured&&o.updateProgress(),i.push(e)?process.nextTick(t):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(t)}}(e,p?()=>{process.nextTick(t,null,p)}:t)};u(e,(function e(t,i){if(t)return n(t);i?u(i,e):n(null)}))}setLength(e){return this[Kde].length=+e,this}}var Qde=Jde;const{asyncIterator:ehe}=Symbol,the=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[ehe]?yield*e[ehe]():yield e},nhe=hue.ALPHABET.ALPHA_DIGIT+"-_",ihe=new u,ohe="\r\n",rhe=ihe.encode(ohe);class ahe{constructor(e,t){const{escapeName:n}=this.constructor,i=hue.isString(t);let o=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${ohe}`;i?t=ihe.encode(String(t).replace(/\r?\n|\r\n?/g,ohe)):o+=`Content-Type: ${t.type||"application/octet-stream"}${ohe}`,this.headers=ihe.encode(o+ohe),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;hue.isTypedArray(e)?yield e:yield*the(e),yield rhe}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class she extends p.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}const lhe=(e,t)=>hue.isAsyncFn(e)?function(...n){const i=n.pop();e.apply(this,n).then((e=>{try{t?i(null,...t(e)):i(null,e)}catch(e){i(e)}}),i)}:e,che={flush:_.constants.Z_SYNC_FLUSH,finishFlush:_.constants.Z_SYNC_FLUSH},uhe={flush:_.constants.BROTLI_OPERATION_FLUSH,finishFlush:_.constants.BROTLI_OPERATION_FLUSH},phe=hue.isFunction(_.createBrotliDecompress),{http:dhe,https:hhe}=Yde,fhe=/https:?/,ghe=Dpe.protocols.map((e=>e+":"));function mhe(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function vhe(e,t,n){let i=t;if(!i&&!1!==i){const e=ede(n);e&&(i=new URL(e))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){(i.auth.username||i.auth.password)&&(i.auth=(i.auth.username||"")+":"+(i.auth.password||""));const t=Buffer.from(i.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=i.hostname||i.host;e.hostname=t,e.host=t,e.port=i.port,e.path=n,i.protocol&&(e.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}e.beforeRedirects.proxy=function(e){vhe(e,t,e.href)}}const yhe="undefined"!=typeof process&&"process"===hue.kindOf(process),xhe=(e,t)=>(({address:e,family:t})=>{if(!hue.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(hue.isObject(e)?e:{address:e,family:t});var bhe=yhe&&function(e){return t=async function(t,n,i){let{data:o,lookup:r,family:a}=e;const{responseType:s,responseEncoding:l}=e,u=e.method.toUpperCase();let h,m,v=!1;if(r){const e=lhe(r,(e=>hue.isArray(e)?e:[e]));r=(t,n,i)=>{e(t,n,((e,t,o)=>{if(e)return i(e);const r=hue.isArray(t)?t.map((e=>xhe(e))):[xhe(t,o)];n.all?i(e,r):i(e,r[0].address,r[0].family)}))}}const y=new w,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(b),e.signal&&e.signal.removeEventListener("abort",b),y.removeAllListeners()};function b(t){y.emit("abort",!t||t.type?new Gpe(null,e,m):t)}i(((e,t)=>{h=!0,t&&(v=!0,x())})),y.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(b),e.signal&&(e.signal.aborted?b():e.signal.addEventListener("abort",b)));const S=Wpe(e.baseURL,e.url),M=new URL(S,"http://localhost"),C=M.protocol||ghe[0];if("data:"===C){let i;if("GET"!==u)return Hpe(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{i=function(e,t,n){const i=n&&n.Blob||Dpe.classes.Blob,o=Xde(e);if(void 0===t&&i&&(t=!0),"data"===o){e=o.length?e.slice(o.length+1):e;const n=$de.exec(e);if(!n)throw new fue("Invalid URL",fue.ERR_INVALID_URL);const r=n[1],a=n[2],s=n[3],l=Buffer.from(decodeURIComponent(s),a?"base64":"utf8");if(t){if(!i)throw new fue("Blob is not supported",fue.ERR_NOT_SUPPORT);return new i([l],{type:r})}return l}throw new fue("Unsupported protocol "+o,fue.ERR_NOT_SUPPORT)}(e.url,"blob"===s,{Blob:e.env&&e.env.Blob})}catch(t){throw fue.from(t,fue.ERR_BAD_REQUEST,e)}return"text"===s?(i=i.toString(l),l&&"utf8"!==l||(i=hue.stripBOM(i))):"stream"===s&&(i=p.Readable.from(i)),Hpe(t,n,{data:i,status:200,statusText:"OK",headers:new Bpe,config:e})}if(-1===ghe.indexOf(C))return n(new fue("Unsupported protocol "+C,fue.ERR_BAD_REQUEST,e));const I=Bpe.from(e.headers).normalize();I.set("User-Agent","axios/"+qde,!1);const T=e.onDownloadProgress,A=e.onUploadProgress,D=e.maxRate;let k,E;if(hue.isSpecCompliantForm(o)){const e=I.getContentType(/boundary=([-_\w\d]{10,70})/i);o=((e,t,n)=>{const{tag:i="form-data-boundary",size:o=25,boundary:r=i+"-"+hue.generateString(o,nhe)}=n||{};if(!hue.isFormData(e))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 10-70 characters long");const a=ihe.encode("--"+r+ohe),s=ihe.encode("--"+r+"--"+ohe+ohe);let l=s.byteLength;const c=Array.from(e.entries()).map((([e,t])=>{const n=new ahe(e,t);return l+=n.size,n}));l+=a.byteLength*c.length,l=hue.toFiniteNumber(l);const u={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(u["Content-Length"]=l),t&&t(u),d.from(async function*(){for(const e of c)yield a,yield*e.encode();yield s}())})(o,(e=>{I.set(e)}),{tag:`axios-${qde}-boundary`,boundary:e&&e[1]||void 0})}else if(hue.isFormData(o)&&hue.isFunction(o.getHeaders)){if(I.set(o.getHeaders()),!I.hasContentLength())try{const e=await c.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&I.setContentLength(e)}catch(e){}}else if(hue.isBlob(o))o.size&&I.setContentType(o.type||"application/octet-stream"),I.setContentLength(o.size||0),o=p.Readable.from(the(o));else if(o&&!hue.isStream(o)){if(Buffer.isBuffer(o));else if(hue.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else{if(!hue.isString(o))return n(new fue("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",fue.ERR_BAD_REQUEST,e));o=Buffer.from(o,"utf-8")}if(I.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return n(new fue("Request body larger than maxBodyLength limit",fue.ERR_BAD_REQUEST,e))}const O=hue.toFiniteNumber(I.getContentLength());let L,N;hue.isArray(D)?(k=D[0],E=D[1]):k=E=D,o&&(A||k)&&(hue.isStream(o)||(o=p.Readable.from(o,{objectMode:!1})),o=p.pipeline([o,new Qde({length:O,maxRate:hue.toFiniteNumber(k)})],hue.noop),A&&o.on("progress",(e=>{A(Object.assign(e,{upload:!0}))}))),e.auth&&(L=(e.auth.username||"")+":"+(e.auth.password||"")),!L&&M.username&&(L=M.username+":"+M.password),L&&I.delete("authorization");try{N=_pe(M.pathname+M.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const i=new Error(t.message);return i.config=e,i.url=e.url,i.exists=!0,n(i)}I.set("Accept-Encoding","gzip, compress, deflate"+(phe?", br":""),!1);const P={path:N,method:u,headers:I.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:L,protocol:C,family:a,beforeRedirect:mhe,beforeRedirects:{}};let R;!hue.isUndefined(r)&&(P.lookup=r),e.socketPath?P.socketPath=e.socketPath:(P.hostname=M.hostname,P.port=M.port,vhe(P,e.proxy,C+"//"+M.hostname+(M.port?":"+M.port:"")+P.path));const z=fhe.test(P.protocol);if(P.agent=z?e.httpsAgent:e.httpAgent,e.transport?R=e.transport:0===e.maxRedirects?R=z?g:f:(e.maxRedirects&&(P.maxRedirects=e.maxRedirects),e.beforeRedirect&&(P.beforeRedirects.config=e.beforeRedirect),R=z?hhe:dhe),e.maxBodyLength>-1?P.maxBodyLength=e.maxBodyLength:P.maxBodyLength=1/0,e.insecureHTTPParser&&(P.insecureHTTPParser=e.insecureHTTPParser),m=R.request(P,(function(i){if(m.destroyed)return;const o=[i],r=+i.headers["content-length"];if(T){const e=new Qde({length:hue.toFiniteNumber(r),maxRate:hue.toFiniteNumber(E)});T&&e.on("progress",(e=>{T(Object.assign(e,{download:!0}))})),o.push(e)}let a=i;const c=i.req||m;if(!1!==e.decompress&&i.headers["content-encoding"])switch("HEAD"!==u&&204!==i.statusCode||delete i.headers["content-encoding"],(i.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":o.push(_.createUnzip(che)),delete i.headers["content-encoding"];break;case"deflate":o.push(new she),o.push(_.createUnzip(che)),delete i.headers["content-encoding"];break;case"br":phe&&(o.push(_.createBrotliDecompress(uhe)),delete i.headers["content-encoding"])}a=o.length>1?p.pipeline(o,hue.noop):o[0];const d=p.finished(a,(()=>{d(),x()})),h={status:i.statusCode,statusText:i.statusMessage,headers:new Bpe(i.headers),config:e,request:c};if("stream"===s)h.data=a,Hpe(t,n,h);else{const i=[];let o=0;a.on("data",(function(t){i.push(t),o+=t.length,e.maxContentLength>-1&&o>e.maxContentLength&&(v=!0,a.destroy(),n(new fue("maxContentLength size of "+e.maxContentLength+" exceeded",fue.ERR_BAD_RESPONSE,e,c)))})),a.on("aborted",(function(){if(v)return;const t=new fue("maxContentLength size of "+e.maxContentLength+" exceeded",fue.ERR_BAD_RESPONSE,e,c);a.destroy(t),n(t)})),a.on("error",(function(t){m.destroyed||n(fue.from(t,null,e,c))})),a.on("end",(function(){try{let e=1===i.length?i[0]:Buffer.concat(i);"arraybuffer"!==s&&(e=e.toString(l),l&&"utf8"!==l||(e=hue.stripBOM(e))),h.data=e}catch(t){return n(fue.from(t,null,e,h.request,h))}Hpe(t,n,h)}))}y.once("abort",(e=>{a.destroyed||(a.emit("error",e),a.destroy())}))})),y.once("abort",(e=>{n(e),m.destroy(e)})),m.on("error",(function(t){n(fue.from(t,null,e,m))})),m.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new fue("error trying to parse `config.timeout` to int",fue.ERR_BAD_OPTION_VALUE,e,m));m.setTimeout(t,(function(){if(h)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||Spe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new fue(t,i.clarifyTimeoutError?fue.ETIMEDOUT:fue.ECONNABORTED,e,m)),b()}))}if(hue.isStream(o)){let t=!1,n=!1;o.on("end",(()=>{t=!0})),o.once("error",(e=>{n=!0,m.destroy(e)})),o.on("close",(()=>{t||n||b(new Gpe("Request stream has been aborted",e,m))})),o.pipe(m)}else m.end(o)},new Promise(((e,n)=>{let i,o;const r=(e,t)=>{o||(o=!0,i&&i(e,t))},a=e=>{r(e,!0),n(e)};t((t=>{r(t),e(t)}),a,(e=>i=e)).catch(a)}));var t},_he=Dpe.hasStandardBrowserEnv?{write(e,t,n,i,o,r){const a=[e+"="+encodeURIComponent(t)];hue.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),hue.isString(i)&&a.push("path="+i),hue.isString(o)&&a.push("domain="+o),!0===r&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}},whe=Dpe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=hue.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function She(e,t){let n=0;const i=Zde(50,250);return o=>{const r=o.loaded,a=o.lengthComputable?o.total:void 0,s=r-n,l=i(s);n=r;const c={loaded:r,total:a,progress:a?r/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&r<=a?(a-r)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var Mhe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let i=e.data;const o=Bpe.from(e.headers).normalize();let r,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}if(hue.isFormData(i))if(Dpe.hasStandardBrowserEnv||Dpe.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const p=Wpe(e.baseURL,e.url);function d(){if(!u)return;const i=Bpe.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());Hpe((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:i,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),_pe(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new fue("Request aborted",fue.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new fue("Network Error",fue.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||Spe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new fue(t,i.clarifyTimeoutError?fue.ETIMEDOUT:fue.ECONNABORTED,e,u)),u=null},Dpe.hasStandardBrowserEnv&&(l&&hue.isFunction(l)&&(l=l(e)),l||!1!==l&&whe(p))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&_he.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===i&&o.setContentType(null),"setRequestHeader"in u&&hue.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),hue.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",She(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",She(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=t=>{u&&(n(!t||t.type?new Gpe(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));const h=Xde(p);h&&-1===Dpe.protocols.indexOf(h)?n(new fue("Unsupported protocol "+h+":",fue.ERR_BAD_REQUEST,e)):u.send(i||null)}))};const Che={http:bhe,xhr:Mhe};hue.forEach(Che,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ihe=e=>`- ${e}`,The=e=>hue.isFunction(e)||null===e||!1===e;var Ahe=e=>{e=hue.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let r=0;r<t;r++){let t;if(n=e[r],i=n,!The(n)&&(i=Che[(t=String(n)).toLowerCase()],void 0===i))throw new fue(`Unknown adapter '${t}'`);if(i)break;o[t||"#"+r]=i}if(!i){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new fue("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ihe).join("\n"):" "+Ihe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function Dhe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gpe(null,e)}function khe(e){Dhe(e),e.headers=Bpe.from(e.headers),e.data=jpe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ahe(e.adapter||Ope.adapter)(e).then((function(t){return Dhe(e),t.data=jpe.call(e,e.transformResponse,t),t.headers=Bpe.from(t.headers),t}),(function(t){return Fpe(t)||(Dhe(e),t&&t.response&&(t.response.data=jpe.call(e,e.transformResponse,t.response),t.response.headers=Bpe.from(t.response.headers))),Promise.reject(t)}))}const Ehe=e=>e instanceof Bpe?e.toJSON():e;function Ohe(e,t){t=t||{};const n={};function i(e,t,n){return hue.isPlainObject(e)&&hue.isPlainObject(t)?hue.merge.call({caseless:n},e,t):hue.isPlainObject(t)?hue.merge({},t):hue.isArray(t)?t.slice():t}function o(e,t,n){return hue.isUndefined(t)?hue.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function r(e,t){if(!hue.isUndefined(t))return i(void 0,t)}function a(e,t){return hue.isUndefined(t)?hue.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,o,r){return r in t?i(n,o):r in e?i(void 0,n):void 0}const l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Ehe(e),Ehe(t),!0)};return hue.forEach(Object.keys(Object.assign({},e,t)),(function(i){const r=l[i]||o,a=r(e[i],t[i],i);hue.isUndefined(a)&&r!==s||(n[i]=a)})),n}const Lhe={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Lhe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Nhe={};Lhe.transitional=function(e,t,n){function i(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new fue(i(o," has been removed"+(t?" in "+t:"")),fue.ERR_DEPRECATED);return t&&!Nhe[o]&&(Nhe[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}};var Phe={assertOptions:function(e,t,n){if("object"!=typeof e)throw new fue("options must be an object",fue.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const r=i[o],a=t[r];if(a){const t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new fue("option "+r+" must be "+n,fue.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new fue("Unknown option "+r,fue.ERR_BAD_OPTION)}},validators:Lhe};const Rhe=Phe.validators;class zhe{constructor(e){this.defaults=e,this.interceptors={request:new wpe,response:new wpe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ohe(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:o}=t;void 0!==n&&Phe.assertOptions(n,{silentJSONParsing:Rhe.transitional(Rhe.boolean),forcedJSONParsing:Rhe.transitional(Rhe.boolean),clarifyTimeoutError:Rhe.transitional(Rhe.boolean)},!1),null!=i&&(hue.isFunction(i)?t.paramsSerializer={serialize:i}:Phe.assertOptions(i,{encode:Rhe.function,serialize:Rhe.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=o&&hue.merge(o.common,o[t.method]);o&&hue.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Bpe.concat(r,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,p=0;if(!s){const e=[khe.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);p<u;)c=c.then(e[p++],e[p++]);return c}u=a.length;let d=t;for(p=0;p<u;){const e=a[p++],t=a[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=khe.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=l.length;p<u;)c=c.then(l[p++],l[p++]);return c}getUri(e){return _pe(Wpe((e=Ohe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}hue.forEach(["delete","get","head","options"],(function(e){zhe.prototype[e]=function(t,n){return this.request(Ohe(n||{},{method:e,url:t,data:(n||{}).data}))}})),hue.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,o){return this.request(Ohe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}zhe.prototype[e]=t(),zhe.prototype[e+"Form"]=t(!0)}));var Vhe=zhe;class Bhe{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,o){n.reason||(n.reason=new Gpe(e,i,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Bhe((function(t){e=t})),cancel:e}}}var jhe=Bhe;const Fhe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fhe).forEach((([e,t])=>{Fhe[t]=e}));var Ghe=Fhe;const Hhe=function e(t){const n=new Vhe(t),i=Lce(Vhe.prototype.request,n);return hue.extend(i,Vhe.prototype,n,{allOwnKeys:!0}),hue.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Ohe(t,n))},i}(Ope);Hhe.Axios=Vhe,Hhe.CanceledError=Gpe,Hhe.CancelToken=jhe,Hhe.isCancel=Fpe,Hhe.VERSION=qde,Hhe.toFormData=mpe,Hhe.AxiosError=fue,Hhe.Cancel=Hhe.CanceledError,Hhe.all=function(e){return Promise.all(e)},Hhe.spread=function(e){return function(t){return e.apply(null,t)}},Hhe.isAxiosError=function(e){return hue.isObject(e)&&!0===e.isAxiosError},Hhe.mergeConfig=Ohe,Hhe.AxiosHeaders=Bpe,Hhe.formToJSON=e=>kpe(hue.isHTMLForm(e)?new FormData(e):e),Hhe.getAdapter=Ahe,Hhe.HttpStatusCode=Ghe,Hhe.default=Hhe;const Whe=["CN10201912011"],Uhe=["CN10829902001","2000","1000","CN10201812011"],Yhe=["CN10829902004","CN10201812021","CN10201812022","CN10201912021","CN10201912022"],qhe=Hhe.create({withCredentials:!0});qhe.interceptors.response.use((e=>{const t=e.data,{success:n,errorMsg:i,errorCode:o}=t;if(Uhe.includes(o)){const e=encodeURIComponent(window.parent.location.href);window.location.href=i+e}if(Whe.includes(o)){const e=encodeURIComponent(encodeURIComponent(window.parent.location.href));window.location.href=i+e}return n?t:Promise.reject({...t,message:i})}),(e=>(console.error("network error",e),Promise.reject(e))));const Xhe=async e=>{const t=await qhe(e);return Promise.resolve(t)};class $he{static async getConfigInfo(e){return hv(await Xhe({url:e?.url,method:"GET"}))}static async getDataInfoList(e){return hv(await Xhe({url:e?.url,method:"GET",withCredentials:!0}))}}const Zhe=En.div`
|
|
45
|
+
${e=>e.$hidden&&An`
|
|
46
|
+
display: none;
|
|
47
|
+
`}
|
|
48
|
+
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
position: relative;
|
|
52
|
+
background-color: #fff;
|
|
53
|
+
padding: 20px;
|
|
54
|
+
border-radius: 12px;
|
|
55
|
+
box-shadow: 0 2px 4px 0px rgba(39, 46, 58, 0.12);
|
|
56
|
+
background: rgba(255, 255, 255, 0.8);
|
|
57
|
+
backdrop-filter: blur(30px);
|
|
58
|
+
|
|
59
|
+
${e=>An`
|
|
60
|
+
background-color: ${e.theme.cardBackgroundColor};
|
|
61
|
+
`};
|
|
62
|
+
|
|
63
|
+
.cn-next-loading-wrap {
|
|
64
|
+
width: 100% !important;
|
|
65
|
+
height: 100% !important;
|
|
66
|
+
}
|
|
67
|
+
`;En.div`
|
|
68
|
+
${e=>e.$show&&An`
|
|
69
|
+
display: none;
|
|
70
|
+
`}
|
|
71
|
+
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
position: relative;
|
|
75
|
+
padding: 0.32rem;
|
|
76
|
+
border-radius: 0.24rem;
|
|
77
|
+
box-shadow: 0 0.02rem 0.04rem 0 rgba(39, 46, 58, 0.12);
|
|
78
|
+
background: rgba(255, 255, 255, 0.8);
|
|
79
|
+
backdrop-filter: blur(30px);
|
|
80
|
+
|
|
81
|
+
${e=>An`
|
|
82
|
+
background-color: ${e.theme.cardBackgroundColor};
|
|
83
|
+
`};
|
|
84
|
+
|
|
85
|
+
.cn-next-loading-wrap {
|
|
86
|
+
width: 100% !important;
|
|
87
|
+
height: 100% !important;
|
|
88
|
+
}
|
|
89
|
+
`;const Khe=En.div`
|
|
90
|
+
color: ${e=>e.theme.color??"#000"};
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
font-weight: 700;
|
|
93
|
+
line-height: 1;
|
|
94
|
+
margin-bottom: 8px;
|
|
95
|
+
${({$checked:e=!0})=>!e&&An`
|
|
96
|
+
color: ${e=>e.theme.color??"#6d7a90"};
|
|
97
|
+
`}
|
|
98
|
+
`;En.div`
|
|
99
|
+
color: ${e=>e.theme.color??"#272F3D"};
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
font-size: 0.32rem;
|
|
102
|
+
line-height: 1;
|
|
103
|
+
margin-bottom: 0.2rem;
|
|
104
|
+
|
|
105
|
+
${({$checked:e=!0})=>!e&&An`
|
|
106
|
+
color: ${e=>e.theme.color??"#6d7a90"};
|
|
107
|
+
`}
|
|
108
|
+
`,En.div`
|
|
109
|
+
width: 30px;
|
|
110
|
+
height: 30px;
|
|
111
|
+
border-radius: 8px;
|
|
112
|
+
padding: 8px;
|
|
113
|
+
box-shadow: 0 2px 4px 0px rgba(39, 46, 58, 0.12);
|
|
114
|
+
background: no-repeat center / 16px 16px url('${e=>e.$src}');
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
background-color: #fff;
|
|
117
|
+
|
|
118
|
+
${e=>An`
|
|
119
|
+
background-color: ${e.theme.iconBackgroundColor};
|
|
120
|
+
`}
|
|
121
|
+
`;const Jhe=En.span`
|
|
122
|
+
color: #6d7a90;
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
padding-left: 5px;
|
|
125
|
+
display: inline-block;
|
|
126
|
+
`,Qhe=({label:e,value:t,unit:n,jumpUrl:i,isUnitWrap:o,...r})=>j.jsxs("div",{...r,children:[j.jsx(efe,{children:j.jsxs("div",{"data-value":!0,onClick:dv(i),style:{...!!i&&{cursor:"pointer"}},children:[t,!o&&j.jsx(Jhe,{children:n})]})}),o&&j.jsx(Jhe,{children:n})]}),efe=En.div`
|
|
127
|
+
line-height: 1;
|
|
128
|
+
margin-top: 12px;
|
|
129
|
+
margin-bottom: 8px;
|
|
130
|
+
|
|
131
|
+
[data-label] {
|
|
132
|
+
width: 106px;
|
|
133
|
+
font-size: 12px;
|
|
134
|
+
margin-bottom: 8px;
|
|
135
|
+
display: flex;
|
|
136
|
+
|
|
137
|
+
${e=>!!e.unit&&An`
|
|
138
|
+
&::after {
|
|
139
|
+
content: '(${e.unit})';
|
|
140
|
+
display: inline-block;
|
|
141
|
+
color: #6d7a90;
|
|
142
|
+
}
|
|
143
|
+
`}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[data-value] {
|
|
147
|
+
font-size: 30px;
|
|
148
|
+
line-height: 16px;
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
color: #000;
|
|
151
|
+
}
|
|
152
|
+
`,tfe=(e,t)=>{const[n,i]=r(!1);return a((()=>{if(e.current){const n=new IntersectionObserver((t=>{t[0].isIntersecting&&(i(!0),n.unobserve(e.current))}),t);return n.observe(e.current),()=>{n.disconnect()}}}),[e,t]),n};var nfe;function ife({initData:e=!0,defaultValue:n,requestData:i,service:o,children:l,errorBoxHeight:c,debounceWait:u,isInside:p,noEmptyBox:d,...h}){const[f,g]=r(nfe.NONE),[m,v]=r(n),y=JSON.stringify(i),x=t(null),b=tfe(x),_=s((async()=>{try{g(nfe.NONE),v(await o({...i,requestId:void 0},p)),g(nfe.SUCCESS)}catch(e){Yhe.includes(e.errorCode)?g(nfe.NO_ACCESS):g(nfe.ERROR)}}),[y]);a((()=>{b&&e&&_()}),[b,e,_]);const{img:w,remark:S,btn:M}=afe.get(f)??{};return j.jsxs(ofe,{ref:x,...h,children:[f===nfe.SUCCESS&&!!m&&l(m),!d&&[nfe.ERROR,nfe.NO_ACCESS,nfe.NO_ACCESS].includes(f)&&j.jsxs(rfe,{style:{height:c},children:[j.jsx("img",{"data-img":!0,src:w,alt:""}),j.jsxs("div",{"data-msg":!0,children:[j.jsx("span",{"data-remark":!0,children:S}),j.jsx("span",{"data-btn":!0,onClick:_,children:M})]})]})]})}!function(e){e[e.NONE=0]="NONE",e[e.SUCCESS=1]="SUCCESS",e[e.ERROR=2]="ERROR",e[e.NO_ACCESS=3]="NO_ACCESS",e[e.NO_DATA=4]="NO_DATA"}(nfe||(nfe={}));const ofe=En.div`
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: 100%;
|
|
155
|
+
|
|
156
|
+
&::-webkit-scrollbar {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
`,rfe=En.div`
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 60%;
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
align-items: center;
|
|
165
|
+
margin: auto;
|
|
166
|
+
|
|
167
|
+
[data-img] {
|
|
168
|
+
width: 100%;
|
|
169
|
+
height: 50%;
|
|
170
|
+
margin-bottom: 12px;
|
|
171
|
+
object-fit: contain;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[data-msg] {
|
|
175
|
+
font-size: 12px;
|
|
176
|
+
line-height: 1;
|
|
177
|
+
|
|
178
|
+
[data-remark] {
|
|
179
|
+
color: #6d7a90;
|
|
180
|
+
margin-right: 8px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
[data-btn] {
|
|
184
|
+
color: #3379ff;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
`,afe=(new Map).set(nfe.ERROR,{img:"https://img.alicdn.com/imgextra/i4/O1CN01vg4MQE1e6WfWTdtx4_!!6000000003822-55-tps-190-120.svg",remark:"数据加载失败",btn:"刷新一下~"}).set(nfe.NO_ACCESS,{img:"https://img.alicdn.com/imgextra/i1/O1CN01Iz7oDf1IqrBik7NYy_!!6000000000945-55-tps-190-120.svg",remark:"你暂无权限",btn:""}).set(nfe.NO_DATA,{img:"https://img.alicdn.com/imgextra/i4/O1CN01g0QafV1rIyRHX6HA9_!!6000000005609-55-tps-190-120.svg",remark:"暂无数据",btn:""}),sfe=({configData:e,orgLevelVal:t})=>j.jsx(ife,{errorBoxHeight:90,requestData:{url:pv(uv,{id:e.id,dataAccVal:e.dataAccCode,orgLevelVal:t})},service:$he.getDataInfoList,children:t=>{const n=e.indicatorConfig[0];return j.jsxs(S,{direction:"row",justify:"space-between",children:[j.jsx("div",{children:j.jsx(Qhe,{jumpUrl:`/#/indicator-center/details?id=${n.id}`,label:e.name,unit:fv(gv,e.indicatorConfig[0]?.unit),value:t.indicator?.value,isUnitWrap:!0})}),j.jsx(Y7,{color:e.commonConfig.color,data:t.list0??[],chartType:zn.MINI_AREA,style:{width:160,height:84}})]})}}),lfe=({direction:e="row",message:t="无内容",style:n,className:i,isDark:o})=>j.jsxs(M,{direction:e,justify:"center",align:"center",spacing:20,className:i,style:{transform:"translateY(20px)",...n},children:[j.jsx("img",{alt:"",src:o?"https://img.alicdn.com/imgextra/i1/O1CN01A8j5NM26FVeLRKiQo_!!6000000007632-55-tps-160-104.svg":"https://img.alicdn.com/imgextra/i4/O1CN01g0QafV1rIyRHX6HA9_!!6000000005609-55-tps-190-120.svg",style:{width:120,height:120,objectFit:"contain"}}),j.jsx("span",{style:{fontSize:14,fontWeight:500,color:"#6D7A90"},children:t})]}),cfe=({src:e,size:t=12,onClick:n,show:i=!0,style:o,...r})=>j.jsx("img",{alt:"",src:e,onClick:e=>{n&&(e.stopPropagation(),n())},...r,style:{width:t,height:t,objectFit:"contain",display:i?"inline-block":"none",...n&&{cursor:"pointer"},...o}}),ufe=({data:e=[],showHandle:t})=>j.jsx(pfe,{children:vv(e)?e.map(((e,n)=>j.jsxs(dfe,{children:[j.jsxs(S,{direction:"row",spacing:8,children:[j.jsx(cfe,{size:24,src:["TERMINATED","COMPLETED"].includes(e.status)?gfe:ffe}),j.jsxs("div",{children:[j.jsx("div",{"data-title":!0,onClick:dv(e.url),style:{...e.title.startsWith("【")&&{transform:"translateX(-8px)"}},children:e.title}),j.jsxs("div",{"data-extra":!0,children:[j.jsx("span",{children:ace.get({id:"InitiatoritemApplicantName",dm:"发起人:{itemApplicantName}"},{itemApplicantName:e.applicantName})}),j.jsx("span",{children:e.applyTime}),!!e.handlerName&&j.jsx("span",{children:ace.get({id:"CurrentApproveritemHandlerName",dm:"当前审批人:{itemHandlerName}"},{itemHandlerName:e.handlerName})})]})]})]}),t&&j.jsx(hfe,{onClick:dv(e.url),children:"👉去处理"})]},n))):j.jsx(lfe,{message:ace.get({id:"TERM.NoData",dm:"暂无数据"}),style:{transform:"translateY(120px)"}})}),pfe=En.div`
|
|
189
|
+
display: grid;
|
|
190
|
+
grid: auto-flow 64px / 1fr;
|
|
191
|
+
gap: 0;
|
|
192
|
+
line-height: 1;
|
|
193
|
+
font-size: 14px;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
height: 310px;
|
|
196
|
+
margin-bottom: 12px;
|
|
197
|
+
place-items: center stretch;
|
|
198
|
+
`,dfe=En.div`
|
|
199
|
+
height: 100%;
|
|
200
|
+
border-top: solid #eee 1px;
|
|
201
|
+
display: grid;
|
|
202
|
+
grid: auto-flow / 1fr 70px;
|
|
203
|
+
place-items: center stretch;
|
|
204
|
+
|
|
205
|
+
[data-title] {
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
font-weight: 500;
|
|
208
|
+
font-size: 14px;
|
|
209
|
+
line-height: 1;
|
|
210
|
+
margin-bottom: 8px;
|
|
211
|
+
white-space: nowrap;
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
color: #272f3d;
|
|
214
|
+
text-overflow: ellipsis;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
[data-extra] {
|
|
218
|
+
font-size: 12px;
|
|
219
|
+
color: #5d677a;
|
|
220
|
+
line-height: 1;
|
|
221
|
+
span {
|
|
222
|
+
margin-right: 12px;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
`,hfe=En.div`
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
color: #272f3d;
|
|
228
|
+
font-size: 12px;
|
|
229
|
+
height: 22px;
|
|
230
|
+
text-align: center;
|
|
231
|
+
line-height: 21px;
|
|
232
|
+
border: solid #ddd 1px;
|
|
233
|
+
/* width: 80px; */
|
|
234
|
+
border-radius: 12px;
|
|
235
|
+
`,ffe="https://img.alicdn.com/imgextra/i3/O1CN01HvOfeP1XOCe517Amr_!!6000000002913-55-tps-31-29.svg",gfe="https://img.alicdn.com/imgextra/i3/O1CN01jr6Aiq1EIjDAqHXkZ_!!6000000000329-55-tps-30-28.svg";class mfe{static async getMatterDataList(e){return hv(await Xhe({url:"/workbench/common/queryWorkflowList",method:"POST",data:e}))}static async queryWinRankList(){return hv(await Xhe({url:"/workbench/common/queryWinRankList"}))}}const vfe=En((function({dataList:e=[],value:t,onChange:n,...i}){return j.jsx("div",{...i,children:e.map(((i,o)=>j.jsx("div",{"data-tab-item":!0,"data-tab-last":o===e.length-1,"data-checked":i.value===t,onClick:()=>n(i.value),children:i.label},o)))})}))`
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
position: relative;
|
|
239
|
+
border-radius: 500px;
|
|
240
|
+
line-height: 1;
|
|
241
|
+
color: #5d677a;
|
|
242
|
+
font-size: 14px;
|
|
243
|
+
margin-bottom: 16px;
|
|
244
|
+
[data-tab-item] {
|
|
245
|
+
white-space: nowrap;
|
|
246
|
+
text-overflow: ellipsis;
|
|
247
|
+
overflow: hidden;
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
user-select: none;
|
|
250
|
+
transition: all 0.3s;
|
|
251
|
+
position: relative;
|
|
252
|
+
margin-right: ${24}px;
|
|
253
|
+
z-index: 1;
|
|
254
|
+
&[data-tab-last='true'] {
|
|
255
|
+
margin-right: 0px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&[data-checked='true'] {
|
|
259
|
+
font-weight: 700;
|
|
260
|
+
color: #272f3d;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
`,yfe=[{label:ace.get({id:"TodoList",dm:"待办清单"}),value:Rn.PENDING},{label:ace.get({id:"ISentOut",dm:"我发出的"}),value:Rn.CREATE},{label:ace.get({id:"ItemsAlreadyHandled",dm:"已办事项"}),value:Rn.COMPLETE}],xfe=({style:e})=>{const[t,n]=r(Rn.PENDING);return j.jsxs("div",{style:e,children:[j.jsx(vfe,{value:t,onChange:n,dataList:yfe}),yfe.map((e=>j.jsx(bfe,{show:e.value===t,workflowType:e.value,onChangeWorkflowType:n},e.value)))]})},bfe=({show:e,workflowType:n,onChangeWorkflowType:i})=>{const[o,s]=r(!1),[l,c]=r({currentPage:1,pageSize:5}),u=t();return a((()=>{o&&!vv(u.current)&&(n===Rn.PENDING?i(Rn.CREATE):n===Rn.CREATE&&i(Rn.COMPLETE))}),[o,i,n]),j.jsx("div",{style:{display:e?"block":"none"},children:j.jsx(ife,{initData:e,errorBoxHeight:300,requestData:{workflowType:n,currentPage:l.currentPage,pageSize:l.pageSize},service:mfe.getMatterDataList,children:e=>(s(!0),u.current=e.tableData,j.jsxs("div",{children:[j.jsx(ufe,{data:e.tableData,showHandle:"PENDING"===n}),j.jsx(M,{direction:"row",justify:"flex-end",children:j.jsx(C,{size:"small",shape:"arrow-only",total:e.paging.totalCount,current:l.currentPage,onChange:e=>c({...l,currentPage:e}),pageSize:l.pageSize})})]}))})})},_fe=({configData:e,unit:t,orgLevelVal:n})=>j.jsx(ife,{noEmptyBox:!0,errorBoxHeight:50,requestData:{url:pv(uv,{id:e.id,dataAccVal:e.dataAccCode,orgLevelVal:n})},service:$he.getDataInfoList,style:{height:"auto"},children:n=>{const i=e.indicatorConfig[0];return j.jsx(Qhe,{jumpUrl:`/#/indicator-center/details?id=${i.id}`,label:e.name,unit:t,value:n.indicator?.value})}}),wfe=({configData:e,orgLevelVal:t,winChartType:n,reserveValueWithLabelType:i,visionUserConfig:o})=>{const r=t=>j.jsx(Y7,{sort:e.commonConfig.sort,yStart:e.commonConfig.yStart,color:e.commonConfig.color,reserveValueWithLabelType:i,xAxisLabelLength:e.commonConfig.xAxisLabelLength,xAxisLabelRotate:e.commonConfig.xAxisLabelRotate,data:t.list0,extraData:t.list1,chartType:n,style:{height:"calc(100% - 20px)"}});return o.initData?r(JSON.parse(o.data)):j.jsx(ife,{...o.initData&&{initData:!1,defaultValue:JSON.parse(o.data)},requestData:{url:pv(uv,{id:e.id,dataAccVal:e.dataAccCode,orgLevelVal:t})},service:$he.getDataInfoList,children:r})},Sfe=En(I).attrs({size:"small",showSearch:!0,style:{width:130},popupStyle:{width:200}})`
|
|
264
|
+
transform: translateY(-4px);
|
|
265
|
+
|
|
266
|
+
span {
|
|
267
|
+
background: transparent;
|
|
268
|
+
}
|
|
269
|
+
`,Mfe=En(I).attrs({size:"small",showSearch:!0,style:{width:100},popupStyle:{width:200}})`
|
|
270
|
+
span {
|
|
271
|
+
background: transparent;
|
|
272
|
+
}
|
|
273
|
+
`,Cfe=({followTrigger:e=!1,content:t,style:n,cStyle:i,className:o,onClick:r})=>{const{Tooltip:a}=T,s=j.jsx("div",{onClick:r,className:o,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...i},children:t});return j.jsx(a,{trigger:s,followTrigger:e,v2:!0,align:"br",style:n,children:t})};class Ife{static async getConfigInfo(e){return hv(await Xhe({url:`/workbench/widget/queryById?id=${e}`}))}static async addConfigInfo(e){return hv(await Xhe({url:"/workbench/widget/save",method:"POST",data:e}))}static async updateConfigInfo(e){return hv(await Xhe({url:"/workbench/widget/save",method:"POST",data:e}))}static async queryOptionList(e){return hv(await Xhe({url:"/workbench/widget/option",params:{id:e}}))}static async delete(e){return hv(await Xhe({url:"/workbench/widget/delete",method:"GET",params:{id:e}}))}}const Tfe=e.createContext(void 0),Afe=()=>j.jsx(ife,{service:mfe.queryWinRankList,children:e=>j.jsx(Dfe,{children:e.map(((e,t)=>j.jsxs("div",{children:[j.jsx("div",{"data-title":!0,children:e.title}),j.jsx("div",{"data-content":!0,children:e.list?.map(((e,n)=>{const i=n<5,o=()=>{if(4===n)return{marginBottom:4}};return j.jsx(l,{children:0===t?j.jsx(kfe,{style:o(),children:i?"❤️":"💪"}):j.jsxs(Efe,{style:{backgroundColor:i?"rgba(250,107,105,0.1)":"rgba(177,185,199,0.2)",...o()},children:[j.jsx("div",{"data-label":!0,children:j.jsx(Cfe,{content:e.label})}),j.jsx("span",{children:e.value})]})},e.label+e.children)}))})]},e.title)))})}),Dfe=En.div`
|
|
274
|
+
display: grid;
|
|
275
|
+
grid: auto-flow / 36px repeat(4, 1fr);
|
|
276
|
+
gap: 8px;
|
|
277
|
+
overflow: auto;
|
|
278
|
+
|
|
279
|
+
[data-title] {
|
|
280
|
+
font-weight: 500;
|
|
281
|
+
font-size: 12px;
|
|
282
|
+
color: #394252;
|
|
283
|
+
line-height: 1;
|
|
284
|
+
margin-bottom: 16px;
|
|
285
|
+
display: grid;
|
|
286
|
+
place-items: center;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
[data-content] {
|
|
290
|
+
display: grid;
|
|
291
|
+
grid: auto-flow 24px / 1fr;
|
|
292
|
+
gap: 12px;
|
|
293
|
+
}
|
|
294
|
+
`,kfe=En.div`
|
|
295
|
+
display: grid;
|
|
296
|
+
place-items: center;
|
|
297
|
+
`,Efe=En(S).attrs({direction:"row",justify:"space-between",align:"center"})`
|
|
298
|
+
border-radius: 500px;
|
|
299
|
+
font-size: 12px;
|
|
300
|
+
color: #272f3d;
|
|
301
|
+
padding: 0 10px;
|
|
302
|
+
|
|
303
|
+
[data-label] {
|
|
304
|
+
width: 80px;
|
|
305
|
+
}
|
|
306
|
+
`,Ofe=({id:e,config:t,style:n,fixSize:i,context:o,spanWidth:r=156,spanHeight:a=128,showSwitch:s=!0})=>{const l=e=>j.jsx(Lfe,{showSwitch:s,context:o,configData:e,style:{...i&&{width:e.colWidth*r,height:e.colHeight*a},...n}});return t?l(t):j.jsx(ife,{requestData:{url:`/workbench/widget/queryById?id=${e}`},service:$he.getConfigInfo,style:{width:"100%",height:"100%",...n},children:l})},Lfe=({configData:e,context:n,style:i,showSwitch:s})=>{const l=t(null),c=(e=>{const[t,n]=r([]);return a((()=>{(async()=>{try{if(e){const t=await Ife.queryOptionList(e);n(t)}}catch(e){A(e.message)}})()}),[e]),t})(tfe(l)&&e.commonConfig.orgLevel?e.id:void 0),[u,p]=r(),d=e.chartType===Pn.INDICATOR,h=!!e.commonConfig.orgLevel,f=![Pn.CUSTOM_CARD].includes(e.chartType),g=e.detailUrl,m=[...g?[j.jsx(D,{onClick:dv(g),children:ace.get({id:"ViewDetails",dm:"查看详情"})},"jump")]:[]],v=o(n??Tfe),y=t(!1);a((()=>{if(0!==c.length&&v){const t=v[e.commonConfig.orgLevel],n=c.map((e=>e.value)).includes(t);y.current?n&&p(t):(p(n?t:c[0].value),y.current=!0)}}),[e.commonConfig.orgLevel,c,v]);const x=fv(gv,e.indicatorConfig[0]?.unit);return j.jsxs(Zhe,{ref:l,style:i,children:[f&&j.jsxs(S,{direction:"row",justify:"space-between",style:{height:20},children:[j.jsx(Khe,{"data-card-id":e.id,style:{maxWidth:d||!h?"80%":"45%",position:"relative",...[Pn.INDICATOR,Pn.INDICATOR_AREA].includes(e.chartType)&&{fontSize:"12px",fontWeight:"normal"}},children:j.jsx(Cfe,{content:e.name})}),j.jsxs(S,{direction:"row",align:"center",children:[s&&h&&!d&&j.jsx(Sfe,{value:u,dataSource:c,onChange:p}),vv(m)&&j.jsx("div",{style:{transform:"translate(8px, -4px) rotate(0.25turn)"},children:j.jsx(k,{trigger:j.jsx(E,{type:"ellipsis",style:{cursor:"pointer"}}),children:j.jsx(O,{style:{width:15},children:m})})})]})]}),Nfe({configData:e,hasOrgLevel:h,orgLevelVal:u,unit:x,visionUserConfig:v}),d&&j.jsx(S,{spacing:8,children:s&&h&&j.jsx(Mfe,{value:u,dataSource:c,onChange:p})})]})},Nfe=({configData:e,hasOrgLevel:t,orgLevelVal:n,unit:i,visionUserConfig:o})=>{const r={configData:e,orgLevelVal:n,unit:i,visionUserConfig:o};if(t&&!n)return null;switch(e.chartType){case Pn.INDICATOR:return j.jsx(_fe,{...r});case Pn.INDICATOR_AREA:return j.jsx(sfe,{...r});case Pn.DUAL_LINE_BAR_CHART:return j.jsx(wfe,{winChartType:zn.DUAL_LINE_BAR,...r});case Pn.AREA_CHART:return j.jsx(wfe,{winChartType:zn.AREA,...r});case Pn.LINE_CHART:return j.jsx(wfe,{winChartType:zn.LINE,...r});case Pn.COLUMN_CHART:return j.jsx(wfe,{winChartType:zn.COLUMN,...r});case Pn.STACK_COLUMN_CHART:return j.jsx(wfe,{winChartType:zn.STACK_COLUMN,...r});case Pn.FUNNEL_CHART:return j.jsx(wfe,{winChartType:zn.FUNNEL,...r});case Pn.BAR_CHART:return j.jsx(wfe,{winChartType:zn.BAR,...r});case Pn.PIE_CHART:return j.jsx(wfe,{winChartType:zn.PIE,...r});case Pn.PIE_CHART_RESERVE:return j.jsx(wfe,{reserveValueWithLabelType:!0,winChartType:zn.PIE,...r});case Pn.CYCLE_CHART:return j.jsx(wfe,{winChartType:zn.CYCLE,...r});case Pn.RADAR_CHART:return j.jsx(wfe,{winChartType:zn.RADAR,...r});case Pn.RADAR_CHART_RESERVE:return j.jsx(wfe,{reserveValueWithLabelType:!0,winChartType:zn.RADAR,...r});case Pn.CUSTOM_CARD:return Pfe(e.name);default:return}},Pfe=e=>{switch(e){case"WIN排行榜":return j.jsx(Afe,{});case"工作台待办":return j.jsx(xfe,{});default:return j.jsx("div",{children:ace.get({id:"TheCustomSliceWasNotFoundPleaseC_1572163781",dm:"未找到该自定义该片,请检查名称是否正确"})})}};export{Tfe as VisionUserConfigContext,Ofe as WinCard,Y7 as WinChart,zn as WinChartType,Y7 as default};
|