win-chart 2.2.0 → 2.3.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.esm.js +22 -23
- package/package.json +7 -4
- package/dist/bundle.cjs.js +0 -300
- package/dist/bundle.cjs.js.map +0 -1
- package/dist/bundle.esm.js.map +0 -1
- package/dist/bundle.umd.js +0 -300
- package/dist/bundle.umd.js.map +0 -1
package/dist/bundle.cjs.js
DELETED
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("@cainiaofe/cn-ui"),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i,o={exports:{}},a={};var s,l={};
|
|
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?o.exports=function(){if(i)return a;i=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,r){var i,a={},u=null,c=null;for(i in void 0!==r&&(u=""+r),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(c=e.ref),e)o.call(e,i)&&!l.hasOwnProperty(i)&&(a[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===a[i]&&(a[i]=e[i]);return{$$typeof:n,type:t,key:u,ref:c,props:a,_owner:s.current}}return a.Fragment=r,a.jsx=u,a.jsxs=u,a}():o.exports=(s||(s=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),y=Symbol.iterator,v="@@iterator",m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=m.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(e+="%s",n=n.concat([r]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,n)}var _,b=!1,w=!1,S=!1,M=!1,C=!1;function I(t){return t.displayName||"Context"}function T(t){if(null==t)return null;if("number"==typeof t.tag&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case i:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case p:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case u:return I(t)+".Consumer";case s:return I(t._context)+".Provider";case c:return function(t,e,n){var r=t.displayName;if(r)return r;var i=e.displayName||e.name||"";return""!==i?n+"("+i+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:T(t.type)||"Memo";case f:var n=t,l=n._payload,g=n._init;try{return T(g(l))}catch(t){return null}}return null}_=Symbol.for("react.module.reference");var A,D,E,k,N,O,L,P=Object.assign,R=0;function z(){}z.__reactDisabledLog=!0;var V,B=m.ReactCurrentDispatcher;function F(t,e,n){if(void 0===V)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);V=r&&r[1]||""}return"\n"+V+t}var j,G=!1,W="function"==typeof WeakMap?WeakMap:Map;function H(t,e){if(!t||G)return"";var n,r=j.get(t);if(void 0!==r)return r;G=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=B.current,B.current=null,function(){if(0===R){A=console.log,D=console.info,E=console.warn,k=console.error,N=console.group,O=console.groupCollapsed,L=console.groupEnd;var t={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}R++}();try{if(e){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(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var h="\n"+s[u].replace(" at new "," at ");return t.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",t.displayName)),"function"==typeof t&&j.set(t,h),h}}while(u>=1&&c>=0);break}}}finally{G=!1,B.current=i,function(){if(0==--R){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},t,{value:A}),info:P({},t,{value:D}),warn:P({},t,{value:E}),error:P({},t,{value:k}),group:P({},t,{value:N}),groupCollapsed:P({},t,{value:O}),groupEnd:P({},t,{value:L})})}R<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var p=t?t.displayName||t.name:"",d=p?F(p):"";return"function"==typeof t&&j.set(t,d),d}function U(t,e,n){if(null==t)return"";if("function"==typeof t)return H(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return F(t);switch(t){case h:return F("Suspense");case p:return F("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case c:return H(t.render,!1);case d:return U(t.type,e,n);case f:var r=t,i=r._payload,o=r._init;try{return U(o(i),e,n)}catch(t){}}return""}j=new W;var Y=Object.prototype.hasOwnProperty,X={},$=m.ReactDebugCurrentFrame;function Z(t){if(t){var e=t._owner,n=U(t.type,t._source,e?e.type:null);$.setExtraStackFrame(n)}else $.setExtraStackFrame(null)}var q=Array.isArray;function K(t){return q(t)}function J(t){return""+t}function Q(t){if(function(t){try{return J(t),!1}catch(t){return!0}}(t))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),J(t)}var tt,et,nt,rt=m.ReactCurrentOwner,it={key:!0,ref:!0,__self:!0,__source:!0};nt={};var ot=function(t,e,r,i,o,a,s){var l={$$typeof:n,type:t,key:e,ref:r,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:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function at(t,e,n,r,i){var o,a={},s=null,l=null;for(o in void 0!==n&&(Q(n),s=""+n),function(t){if(Y.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(Q(e.key),s=""+e.key),function(t){if(Y.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(l=e.ref,function(t,e){if("string"==typeof t.ref&&rt.current&&e&&rt.current.stateNode!==e){var n=T(rt.current.type);nt[n]||(x('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',T(rt.current.type),t.ref),nt[n]=!0)}}(e,i)),e)Y.call(e,o)&&!it.hasOwnProperty(o)&&(a[o]=e[o]);if(t&&t.defaultProps){var u=t.defaultProps;for(o in u)void 0===a[o]&&(a[o]=u[o])}if(s||l){var c="function"==typeof t?t.displayName||t.name||"Unknown":t;s&&function(t,e){var n=function(){tt||(tt=!0,x("%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)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(a,c),l&&function(t,e){var n=function(){et||(et=!0,x("%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)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(a,c)}return ot(t,s,l,i,r,rt.current,a)}var st,lt=m.ReactCurrentOwner,ut=m.ReactDebugCurrentFrame;function ct(t){if(t){var e=t._owner,n=U(t.type,t._source,e?e.type:null);ut.setExtraStackFrame(n)}else ut.setExtraStackFrame(null)}function ht(t){return"object"==typeof t&&null!==t&&t.$$typeof===n}function pt(){if(lt.current){var t=T(lt.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}st=!1;var dt={};function ft(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=pt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!dt[n]){dt[n]=!0;var r="";t&&t._owner&&t._owner!==lt.current&&(r=" It was passed a child from "+T(t._owner.type)+"."),ct(t),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ct(null)}}}function gt(t,e){if("object"==typeof t)if(K(t))for(var n=0;n<t.length;n++){var r=t[n];ht(r)&&ft(r,e)}else if(ht(t))t._store&&(t._store.validated=!0);else if(t){var i=function(t){if(null===t||"object"!=typeof t)return null;var e=y&&t[y]||t[v];return"function"==typeof e?e:null}(t);if("function"==typeof i&&i!==t.entries)for(var o,a=i.call(t);!(o=a.next()).done;)ht(o.value)&&ft(o.value,e)}}function yt(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=T(n);!function(t,e,n,r,i){var o=Function.call.bind(Y);for(var a in t)if(o(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}!s||s instanceof Error||(Z(i),x("%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).",r||"React class",n,a,typeof s),Z(null)),s instanceof Error&&!(s.message in X)&&(X[s.message]=!0,Z(i),x("Failed %s type: %s",n,s.message),Z(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||st||(st=!0,x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vt(t,e,r,l,y,v){var m=function(t){return"string"==typeof t||"function"==typeof t||!!(t===i||t===a||C||t===o||t===h||t===p||M||t===g||b||w||S)||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===s||t.$$typeof===u||t.$$typeof===c||t.$$typeof===_||void 0!==t.getModuleId)}(t);if(!m){var I="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(I+=" 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(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(y);I+=D||pt(),null===t?A="null":K(t)?A="array":void 0!==t&&t.$$typeof===n?(A="<"+(T(t.type)||"Unknown")+" />",I=" Did you accidentally export a JSX literal instead of a component?"):A=typeof t,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,I)}var E=at(t,e,r,y,v);if(null==E)return E;if(m){var k=e.children;if(void 0!==k)if(l)if(K(k)){for(var N=0;N<k.length;N++)gt(k[N],t);Object.freeze&&Object.freeze(k)}else x("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 gt(k,t)}return t===i?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){ct(t),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ct(null);break}}null!==t.ref&&(ct(t),x("Invalid attribute `ref` supplied to `React.Fragment`."),ct(null))}(E):yt(E),E}var mt=function(t,e,n){return vt(t,e,n,!1)},xt=function(t,e,n){return vt(t,e,n,!0)};l.Fragment=i,l.jsx=mt,l.jsxs=xt}()),l);var u=o.exports,c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},c(t,e)};function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var p=function(){return p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},p.apply(this,arguments)};function d(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function f(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}"function"==typeof SuppressedError&&SuppressedError;var g=/^((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)-.*))$/,y=f((function(t){return g.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),v="-ms-",m="-moz-",x="-webkit-",_="comm",b="rule",w="decl",S="@import",M="@keyframes",C="@layer",I=Math.abs,T=String.fromCharCode,A=Object.assign;function D(t){return t.trim()}function E(t,e){return(t=e.exec(t))?t[0]:t}function k(t,e,n){return t.replace(e,n)}function N(t,e,n){return t.indexOf(e,n)}function O(t,e){return 0|t.charCodeAt(e)}function L(t,e,n){return t.slice(e,n)}function P(t){return t.length}function R(t){return t.length}function z(t,e){return e.push(t),t}function V(t,e){return t.filter((function(t){return!E(t,e)}))}var B=1,F=1,j=0,G=0,W=0,H="";function U(t,e,n,r,i,o,a,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:B,column:F,length:a,return:"",siblings:s}}function Y(t,e){return A(U("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function X(t){for(;t.root;)t=Y(t.root,{children:[t]});z(t,t.siblings)}function $(){return W=G>0?O(H,--G):0,F--,10===W&&(F=1,B--),W}function Z(){return W=G<j?O(H,G++):0,F++,10===W&&(F=1,B++),W}function q(){return O(H,G)}function K(){return G}function J(t,e){return L(H,t,e)}function Q(t){switch(t){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 tt(t){return D(J(G-1,rt(91===t?t+2:40===t?t+1:t)))}function et(t){for(;(W=q())&&W<33;)Z();return Q(t)>2||Q(W)>3?"":" "}function nt(t,e){for(;--e&&Z()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return J(t,K()+(e<6&&32==q()&&32==Z()))}function rt(t){for(;Z();)switch(W){case t:return G;case 34:case 39:34!==t&&39!==t&&rt(W);break;case 40:41===t&&rt(t);break;case 92:Z()}return G}function it(t,e){for(;Z()&&t+W!==57&&(t+W!==84||47!==q()););return"/*"+J(e,G-1)+"*"+T(47===t?t:Z())}function ot(t){for(;!Q(q());)Z();return J(t,G)}function at(t){return function(t){return H="",t}(st("",null,null,null,[""],t=function(t){return B=F=1,j=P(H=t),G=0,[]}(t),0,[0],t))}function st(t,e,n,r,i,o,a,s,l){for(var u=0,c=0,h=a,p=0,d=0,f=0,g=1,y=1,v=1,m=0,x="",_=i,b=o,w=r,S=x;y;)switch(f=m,m=Z()){case 40:if(108!=f&&58==O(S,h-1)){-1!=N(S+=k(tt(m),"&","&\f"),"&\f",I(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=tt(m);break;case 9:case 10:case 13:case 32:S+=et(f);break;case 92:S+=nt(K()-1,7);continue;case 47:switch(q()){case 42:case 47:z(ut(it(Z(),K()),e,n,l),l);break;default:S+="/"}break;case 123*g:s[u++]=P(S)*v;case 125*g:case 59:case 0:switch(m){case 0:case 125:y=0;case 59+c:-1==v&&(S=k(S,/\f/g,"")),d>0&&P(S)-h&&z(d>32?ct(S+";",r,n,h-1,l):ct(k(S," ","")+";",r,n,h-2,l),l);break;case 59:S+=";";default:if(z(w=lt(S,e,n,u,c,i,s,x,_=[],b=[],h,o),o),123===m)if(0===c)st(S,e,w,w,_,o,h,s,b);else switch(99===p&&110===O(S,3)?100:p){case 100:case 108:case 109:case 115:st(t,w,w,r&&z(lt(t,w,w,0,0,i,s,x,i,_=[],h,b),b),i,b,h,s,r?_:b);break;default:st(S,w,w,w,[""],b,0,s,b)}}u=c=d=0,g=v=1,x=S="",h=a;break;case 58:h=1+P(S),d=f;default:if(g<1)if(123==m)--g;else if(125==m&&0==g++&&125==$())continue;switch(S+=T(m),m*g){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(P(S)-1)*v,v=1;break;case 64:45===q()&&(S+=tt(Z())),p=q(),c=h=P(x=S+=ot(K())),m++;break;case 45:45===f&&2==P(S)&&(g=0)}}return o}function lt(t,e,n,r,i,o,a,s,l,u,c,h){for(var p=i-1,d=0===i?o:[""],f=R(d),g=0,y=0,v=0;g<r;++g)for(var m=0,x=L(t,p+1,p=I(y=a[g])),_=t;m<f;++m)(_=D(y>0?d[m]+" "+x:k(x,/&\f/g,d[m])))&&(l[v++]=_);return U(t,e,n,0===i?b:s,l,u,c,h)}function ut(t,e,n,r){return U(t,e,n,_,T(W),L(t,2,-2),0,r)}function ct(t,e,n,r,i){return U(t,e,n,w,L(t,0,r),L(t,r+1,-1),r,i)}function ht(t,e,n){switch(function(t,e){return 45^O(t,0)?(((e<<2^O(t,0))<<2^O(t,1))<<2^O(t,2))<<2^O(t,3):0}(t,e)){case 5103:return x+"print-"+t+t;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 x+t+t;case 4789:return m+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return x+t+m+t+v+t+t;case 5936:switch(O(t,e+11)){case 114:return x+t+v+k(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return x+t+v+k(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return x+t+v+k(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return x+t+v+t+t;case 6165:return x+t+v+"flex-"+t+t;case 5187:return x+t+k(t,/(\w+).+(:[^]+)/,x+"box-$1$2"+v+"flex-$1$2")+t;case 5443:return x+t+v+"flex-item-"+k(t,/flex-|-self/g,"")+(E(t,/flex-|baseline/)?"":v+"grid-row-"+k(t,/flex-|-self/g,""))+t;case 4675:return x+t+v+"flex-line-pack"+k(t,/align-content|flex-|-self/g,"")+t;case 5548:return x+t+v+k(t,"shrink","negative")+t;case 5292:return x+t+v+k(t,"basis","preferred-size")+t;case 6060:return x+"box-"+k(t,"-grow","")+x+t+v+k(t,"grow","positive")+t;case 4554:return x+k(t,/([^-])(transform)/g,"$1"+x+"$2")+t;case 6187:return k(k(k(t,/(zoom-|grab)/,x+"$1"),/(image-set)/,x+"$1"),t,"")+t;case 5495:case 3959:return k(t,/(image-set\([^]*)/,x+"$1$`$1");case 4968:return k(k(t,/(.+:)(flex-)?(.*)/,x+"box-pack:$3"+v+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+x+t+t;case 4200:if(!E(t,/flex-|baseline/))return v+"grid-column-align"+L(t,e)+t;break;case 2592:case 3360:return v+k(t,"template-","")+t;case 4384:case 3616:return n&&n.some((function(t,n){return e=n,E(t.props,/grid-\w+-end/)}))?~N(t+(n=n[e].value),"span",0)?t:v+k(t,"-start","")+t+v+"grid-row-span:"+(~N(n,"span",0)?E(n,/\d+/):+E(n,/\d+/)-+E(t,/\d+/))+";":v+k(t,"-start","")+t;case 4896:case 4128:return n&&n.some((function(t){return E(t.props,/grid-\w+-start/)}))?t:v+k(k(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return k(t,/(.+)-inline(.+)/,x+"$1$2")+t;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(P(t)-1-e>6)switch(O(t,e+1)){case 109:if(45!==O(t,e+4))break;case 102:return k(t,/(.+:)(.+)-([^]+)/,"$1"+x+"$2-$3$1"+m+(108==O(t,e+3)?"$3":"$2-$3"))+t;case 115:return~N(t,"stretch",0)?ht(k(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return k(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,i,o,a,s){return v+n+":"+r+s+(i?v+n+"-span:"+(o?a:+a-+r)+s:"")+t}));case 4949:if(121===O(t,e+6))return k(t,":",":"+x)+t;break;case 6444:switch(O(t,45===O(t,14)?18:11)){case 120:return k(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+x+(45===O(t,14)?"inline-":"")+"box$3$1"+x+"$2$3$1"+v+"$2box$3")+t;case 100:return k(t,":",":"+v)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return k(t,"scroll-","scroll-snap-")+t}return t}function pt(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function dt(t,e,n,r){switch(t.type){case C:if(t.children.length)break;case S:case w:return t.return=t.return||t.value;case _:return"";case M:return t.return=t.value+"{"+pt(t.children,r)+"}";case b:if(!P(t.value=t.props.join(",")))return""}return P(n=pt(t.children,r))?t.return=t.value+"{"+n+"}":""}function ft(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case w:return void(t.return=ht(t.value,t.length,n));case M:return pt([Y(t,{value:k(t.value,"@","@"+x)})],r);case b:if(t.length)return function(t,e){return t.map(e).join("")}(n=t.props,(function(e){switch(E(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":X(Y(t,{props:[k(e,/:(read-\w+)/,":"+m+"$1")]})),X(Y(t,{props:[e]})),A(t,{props:V(n,r)});break;case"::placeholder":X(Y(t,{props:[k(e,/:(plac\w+)/,":"+x+"input-$1")]})),X(Y(t,{props:[k(e,/:(plac\w+)/,":"+m+"$1")]})),X(Y(t,{props:[k(e,/:(plac\w+)/,v+"input-$1")]})),X(Y(t,{props:[e]})),A(t,{props:V(n,r)})}return""}))}}var gt={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},yt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",vt="active",mt="data-styled-version",xt="6.1.8",_t="/*!sc*/\n",bt="undefined"!=typeof window&&"HTMLElement"in window,wt=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),St=/invalid hook call/i,Mt=new Set,Ct=function(e,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",i="The component ".concat(e).concat(r," 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.",o=console.error;try{var a=!0;console.error=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];St.test(t)?(a=!1,Mt.delete(i)):o.apply(void 0,d([t],e,!1))},t.useRef(),a&&!Mt.has(i)&&(console.warn(i),Mt.add(i))}catch(t){St.test(t.message)&&Mt.delete(i)}finally{console.error=o}}},It=Object.freeze([]),Tt=Object.freeze({});var At=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"]),Dt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Et=/(^-|-$)/g;function kt(t){return t.replace(Dt,"-").replace(Et,"")}var Nt=/(a)(d)/gi,Ot=52,Lt=function(t){return String.fromCharCode(t+(t>25?39:97))};function Pt(t){var e,n="";for(e=Math.abs(t);e>Ot;e=e/Ot|0)n=Lt(e%Ot)+n;return(Lt(e%Ot)+n).replace(Nt,"$1-$2")}var Rt,zt=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},Vt=function(t){return zt(5381,t)};function Bt(t){return"production"!==process.env.NODE_ENV&&"string"==typeof t&&t||t.displayName||t.name||"Component"}function Ft(t){return"string"==typeof t&&("production"===process.env.NODE_ENV||t.charAt(0)===t.charAt(0).toLowerCase())}var jt="function"==typeof Symbol&&Symbol.for,Gt=jt?Symbol.for("react.memo"):60115,Wt=jt?Symbol.for("react.forward_ref"):60112,Ht={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ut={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Yt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xt=((Rt={})[Wt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rt[Gt]=Yt,Rt);function $t(t){return("type"in(e=t)&&e.type.$$typeof)===Gt?Yt:"$$typeof"in t?Xt[t.$$typeof]:Ht;var e}var Zt=Object.defineProperty,qt=Object.getOwnPropertyNames,Kt=Object.getOwnPropertySymbols,Jt=Object.getOwnPropertyDescriptor,Qt=Object.getPrototypeOf,te=Object.prototype;function ee(t,e,n){if("string"!=typeof e){if(te){var r=Qt(e);r&&r!==te&&ee(t,r,n)}var i=qt(e);Kt&&(i=i.concat(Kt(e)));for(var o=$t(t),a=$t(e),s=0;s<i.length;++s){var l=i[s];if(!(l in Ut||n&&n[l]||a&&l in a||o&&l in o)){var u=Jt(e,l);try{Zt(t,l,u)}catch(t){}}}}return t}function ne(t){return"function"==typeof t}function re(t){return"object"==typeof t&&"styledComponentId"in t}function ie(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function oe(t,e){if(0===t.length)return"";for(var n=t[0],r=1;r<t.length;r++)n+=e?e+t[r]:t[r];return n}function ae(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function se(t,e,n){if(void 0===n&&(n=!1),!n&&!ae(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)t[r]=se(t[r],e[r]);else if(ae(e))for(var r in e)t[r]=se(t[r],e[r]);return t}function le(t,e){Object.defineProperty(t,"toString",{value:e})}var ue="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 ce(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=[],i=1,o=t.length;i<o;i+=1)r.push(t[i]);return r.forEach((function(t){n=n.replace(/%[a-z]/,t)})),n}function he(t){for(var e=[],n=1;n<arguments.length;n++)e[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(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(ce.apply(void 0,d([ue[t]],e,!1)).trim())}var pe=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n<t;n++)e+=this.groupSizes[n];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;t>=i;)if((i<<=1)<0)throw he(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(t+1),s=(o=0,e.length);o<s;o++)this.tag.insertRule(a,e[o])&&(this.groupSizes[t]++,a++)},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],n=this.indexOfGroup(t),r=n+e;this.groupSizes[t]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n,o=r;o<i;o++)e+="".concat(this.tag.getRule(o)).concat(_t);return e},t}(),de=new Map,fe=new Map,ge=1,ye=function(t){if(de.has(t))return de.get(t);for(;fe.has(ge);)ge++;var e=ge++;if("production"!==process.env.NODE_ENV&&((0|e)<0||e>1073741824))throw he(16,"".concat(e));return de.set(t,e),fe.set(e,t),e},ve=function(t,e){ge=e+1,de.set(t,e),fe.set(e,t)},me="style[".concat(yt,"][").concat(mt,'="').concat(xt,'"]'),xe=new RegExp("^".concat(yt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),_e=function(t,e,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&t.registerName(e,r)},be=function(t,e){for(var n,r=(null!==(n=e.textContent)&&void 0!==n?n:"").split(_t),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(xe);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(ve(c,u),_e(t,c,l[3]),t.getTag().insertRules(u,i)),i.length=0}else i.push(s)}}};var we=function(t){var e=document.head,n=t||e,r=document.createElement("style"),i=function(t){var e=Array.from(t.querySelectorAll("style[".concat(yt,"]")));return e[e.length-1]}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(yt,vt),r.setAttribute(mt,xt);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Se=function(){function t(t){this.element=we(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,r=e.length;n<r;n++){var i=e[n];if(i.ownerNode===t)return i}throw he(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""},t}(),Me=function(){function t(t){this.element=we(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),Ce=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),Ie=bt,Te={isServer:!bt,useCSSOMInjection:!wt},Ae=function(){function t(t,e,n){void 0===t&&(t=Tt),void 0===e&&(e={});var r=this;this.options=p(p({},Te),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&bt&&Ie&&(Ie=!1,function(t){for(var e=document.querySelectorAll(me),n=0,r=e.length;n<r;n++){var i=e[n];i&&i.getAttribute(yt)!==vt&&(be(t,i),i.parentNode&&i.parentNode.removeChild(i))}}(this)),le(this,(function(){return function(t){for(var e=t.getTag(),n=e.length,r="",i=function(n){var i=function(t){return fe.get(t)}(n);if(void 0===i)return"continue";var o=t.names.get(i),a=e.getGroup(n);if(void 0===o||0===a.length)return"continue";var s="".concat(yt,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach((function(t){t.length>0&&(l+="".concat(t,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(_t)},o=0;o<n;o++)i(o);return r}(r)}))}return t.registerId=function(t){return ye(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t(p(p({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var e=t.useCSSOMInjection,n=t.target;return t.isServer?new Ce(n):e?new Se(n):new Me(n)}(this.options),new pe(t)));var t},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(ye(t),this.names.has(t))this.names.get(t).add(e);else{var n=new Set;n.add(e),this.names.set(t,n)}},t.prototype.insertRules=function(t,e,n){this.registerName(t,e),this.getTag().insertRules(ye(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(ye(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),De=/&/g,Ee=/^\s*\/\/.*$/gm;function ke(t,e){return t.map((function(t){return"rule"===t.type&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map((function(t){return"".concat(e," ").concat(t)}))),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=ke(t.children,e)),t}))}var Ne=new Ae,Oe=function(t){var e,n,r,i=void 0===t?Tt:t,o=i.options,a=void 0===o?Tt:o,s=i.plugins,l=void 0===s?It:s,u=function(t,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(e):t},c=l.slice();c.push((function(t){t.type===b&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(De,n).replace(r,u))})),a.prefix&&c.push(ft),c.push(dt);var h=function(t,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),e=s,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=t.replace(Ee,""),u=at(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);a.namespace&&(u=ke(u,a.namespace));var h,p=[];return pt(u,function(t){var e=R(t);return function(n,r,i,o){for(var a="",s=0;s<e;s++)a+=t[s](n,r,i,o)||"";return a}}(c.concat((h=function(t){return p.push(t)},function(t){t.root||(t=t.return)&&h(t)})))),p};return h.hash=l.length?l.reduce((function(t,e){return e.name||he(15),zt(t,e.name)}),5381).toString():"",h}(),Le=t.createContext({shouldForwardProp:void 0,styleSheet:Ne,stylis:Oe});function Pe(){return t.useContext(Le)}Le.Consumer,t.createContext(void 0);var Re=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=Oe);var r=n.name+e.hash;t.hasNameForId(n.id,r)||t.insertRules(n.id,r,e(n.rules,r,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e,le(this,(function(){throw he(12,String(n.name))}))}return t.prototype.getName=function(t){return void 0===t&&(t=Oe),this.name+t.hash},t}(),ze=function(t){return t>="A"&&t<="Z"};function Ve(t){for(var e="",n=0;n<t.length;n++){var r=t[n];if(1===n&&"-"===r&&"-"===t[0])return t;ze(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Be=function(t){return null==t||!1===t||""===t},Fe=function(t){var e,n,r=[];for(var i in t){var o=t[i];t.hasOwnProperty(i)&&!Be(o)&&(Array.isArray(o)&&o.isCss||ne(o)?r.push("".concat(Ve(i),":"),o,";"):ae(o)?r.push.apply(r,d(d(["".concat(i," {")],Fe(o),!1),["}"],!1)):r.push("".concat(Ve(i),": ").concat((e=i,null==(n=o)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||e in gt||e.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function je(t,e,n,r){if(Be(t))return[];if(re(t))return[".".concat(t.styledComponentId)];if(ne(t)){if(!ne(o=t)||o.prototype&&o.prototype.isReactComponent||!e)return[t];var i=t(e);return"production"===process.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||i instanceof Re||ae(i)||null===i||console.error("".concat(Bt(t)," 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.")),je(i,e,n,r)}var o;return t instanceof Re?n?(t.inject(n,r),[t.getName(r)]):[t]:ae(t)?Fe(t):Array.isArray(t)?Array.prototype.concat.apply(It,t.map((function(t){return je(t,e,n,r)}))):[t.toString()]}var Ge=Vt(xt),We=function(){function t(t,e,n){this.rules=t,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(ne(n)&&!re(n))return!1}return!0}(t),this.componentId=e,this.baseHash=zt(Ge,e),this.baseStyle=n,Ae.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,e,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))r=ie(r,this.staticRulesId);else{var i=oe(je(this.rules,t,e,n)),o=Pt(zt(this.baseHash,i)>>>0);if(!e.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);e.insertRules(this.componentId,o,a)}r=ie(r,o),this.staticRulesId=o}else{for(var s=zt(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c,"production"!==process.env.NODE_ENV&&(s=zt(s,c));else if(c){var h=oe(je(c,t,e,n));s=zt(s,h+u),l+=h}}if(l){var p=Pt(s>>>0);e.hasNameForId(this.componentId,p)||e.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=ie(r,p)}}return r},t}(),He=t.createContext(void 0);He.Consumer;var Ue={},Ye=new Set;function Xe(e,n,r){var i=re(e),o=e,a=!Ft(e),s=n.attrs,l=void 0===s?It:s,u=n.componentId,c=void 0===u?function(t,e){var n="string"!=typeof t?"sc":kt(t);Ue[n]=(Ue[n]||0)+1;var r="".concat(n,"-").concat(function(t){return Pt(Vt(t)>>>0)}(xt+n+Ue[n]));return e?"".concat(e,"-").concat(r):r}(n.displayName,n.parentComponentId):u,h=n.displayName,d=void 0===h?function(t){return Ft(t)?"styled.".concat(t):"Styled(".concat(Bt(t),")")}(e):h,f=n.displayName&&n.componentId?"".concat(kt(n.displayName),"-").concat(n.componentId):n.componentId||c,g=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,v=n.shouldForwardProp;if(i&&o.shouldForwardProp){var m=o.shouldForwardProp;if(n.shouldForwardProp){var x=n.shouldForwardProp;v=function(t,e){return m(t,e)&&x(t,e)}}else v=m}var _=new We(r,f,i?o.componentStyle:void 0);function b(e,n){return function(e,n,r){var i=e.attrs,o=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.styledComponentId,u=e.target,c=t.useContext(He),h=Pe(),d=e.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&t.useDebugValue(l);var f=function(t,e,n){return void 0===n&&(n=Tt),t.theme!==n.theme&&t.theme||e||n.theme}(n,c,a)||Tt,g=function(t,e,n){for(var r,i=p(p({},e),{className:void 0,theme:n}),o=0;o<t.length;o+=1){var a=ne(r=t[o])?r(i):r;for(var s in a)i[s]="className"===s?ie(i[s],a[s]):"style"===s?p(p({},i[s]),a[s]):a[s]}return e.className&&(i.className=ie(i.className,e.className)),i}(i,n,f),v=g.as||u,m={};for(var x in g)void 0===g[x]||"$"===x[0]||"as"===x||"theme"===x&&g.theme===f||("forwardedAs"===x?m.as=g.forwardedAs:d&&!d(x,v)||(m[x]=g[x],d||"development"!==process.env.NODE_ENV||y(x)||Ye.has(x)||!At.has(v)||(Ye.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 _=function(e,n){var r=Pe(),i=e.generateAndInjectStyles(n,r.styleSheet,r.stylis);return"production"!==process.env.NODE_ENV&&t.useDebugValue(i),i}(o,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(_);var b=ie(s,l);return _&&(b+=" "+_),g.className&&(b+=" "+g.className),m[Ft(v)&&!At.has(v)?"class":"className"]=b,m.ref=r,t.createElement(v,m)}(w,e,n)}b.displayName=d;var w=t.forwardRef(b);return w.attrs=g,w.componentStyle=_,w.displayName=d,w.shouldForwardProp=v,w.foldedComponentIds=i?ie(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=f,w.target=i?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=i?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++)se(t,i[r],!0);return t}({},o.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(Ct(d,f),w.warnTooManyClasses=function(t,e){var n={},r=!1;return function(i){if(!r&&(n[i]=!0,Object.keys(n).length>=200)){var o=e?' with the id of "'.concat(e,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(t).concat(o,".\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 />"),r=!0,n={}}}}(d,f)),le(w,(function(){return".".concat(w.styledComponentId)})),a&&ee(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function $e(t,e){for(var n=[t[0]],r=0,i=e.length;r<i;r+=1)n.push(e[r],t[r+1]);return n}var Ze=function(t){return Object.assign(t,{isCss:!0})};function qe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(ne(t)||ae(t))return Ze(je($e(It,d([t],e,!0))));var r=t;return 0===e.length&&1===r.length&&"string"==typeof r[0]?je(r):Ze(je($e(r,e)))}function Ke(t,e,n){if(void 0===n&&(n=Tt),!e)throw he(1,e);var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return t(e,n,qe.apply(void 0,d([r],i,!1)))};return r.attrs=function(r){return Ke(t,e,p(p({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Ke(t,e,p(p({},n),r))},r}var Je=function(t){return Ke(Xe,t)},Qe=Je;At.forEach((function(t){Qe[t]=Je(t)})),"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 tn="__sc-".concat(yt,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[tn]||(window[tn]=0),1===window[tn]&&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[tn]+=1);const en=Qe.div`
|
|
11
|
-
height: 100%;
|
|
12
|
-
`;var nn,rn,on,an;!function(t){t.NONE="none",t.ADD="add",t.COPY="copy",t.EDIT="edit",t.VIEW="view",t.DELETE="delete",t.FEEDBACK="feedback",t.REVIEW="review",t.BATCH_ADD="batch_add",t.BATCH_OPERATE="batch_operate",t.AUTHORIZED="authorized"}(nn||(nn={})),function(t){t.INDICATOR="INDICATOR",t.INDICATOR_AREA="INDICATOR_AREA",t.AREA_CHART="AREA_CHART",t.LINE_CHART="LINE_CHART",t.COLUMN_CHART="COLUMN_CHART",t.STACK_COLUMN_CHART="STACK_COLUMN_CHART",t.BAR_CHART="BAR_CHART",t.DUAL_LINE_BAR_CHART="DUAL_LINE_COLUMN_CHART",t.FUNNEL_CHART="FUNNEL_CHART",t.PIE_CHART="PIE_CHART",t.PIE_CHART_RESERVE="PIE_CHART_RESERVE",t.CYCLE_CHART="CYCLE_CHART",t.RADAR_CHART="RADAR_CHART",t.RADAR_CHART_RESERVE="RADAR_CHART_RESERVE",t.CUSTOM_CARD="CUSTOM_CARD"}(rn||(rn={})),function(t){t.PENDING="PENDING",t.CREATE="CREATE",t.COMPLETE="COMPLETE"}(on||(on={})),exports.WinChartType=void 0,(an=exports.WinChartType||(exports.WinChartType={}))[an.MINI_AREA=0]="MINI_AREA",an[an.AREA=1]="AREA",an[an.DUAL_LINE_BAR=2]="DUAL_LINE_BAR",an[an.STACK_DUAL_LINE_BAR=3]="STACK_DUAL_LINE_BAR",an[an.COLUMN=4]="COLUMN",an[an.STACK_COLUMN=5]="STACK_COLUMN",an[an.LINE=6]="LINE",an[an.BAR=7]="BAR",an[an.FUNNEL=8]="FUNNEL",an[an.PIE=9]="PIE",an[an.CYCLE=10]="CYCLE",an[an.RADAR=11]="RADAR";const sn=["#3D84FF","#00DCF0","#FCBC26","#00DB75","#BDB8FF","#40B4FF","#FFA101","#90ABE0","#6EE67A","#6B84FF","#FA6B69"],ln={grid:{top:24,left:0,right:12,bottom:32,containLabel:!0},color:sn,legend:{itemWidth:10,itemHeight:10,bottom:0,type:"scroll",icon:"circle"}};function un(){return un=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},un.apply(this,arguments)}function cn(t,e){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cn(t,e)}function hn(t){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hn(t)}function pn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pn=function(){return!!t})()}function dn(t){var e="function"==typeof Map?new Map:void 0;return dn=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(pn())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&cn(i,n.prototype),i}(t,arguments,hn(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),cn(n,t)},dn(t)}var fn={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 gn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=e[0],o=[];for(r=1;r<e.length;r+=1)o.push(e[r]);return o.forEach((function(t){i=i.replace(/%[a-z]/,t)})),i}var yn=function(t){var e,n;function r(e){var n;if("production"===process.env.NODE_ENV)n=t.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+e+" for more information.")||this;else{for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];n=t.call(this,gn.apply(void 0,[fn[e]].concat(i)))||this}return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,cn(e,n),r}(dn(Error));function vn(t){return Math.round(255*t)}function mn(t,e,n){return vn(t)+","+vn(e)+","+vn(n)}function xn(t,e,n,r){if(void 0===r&&(r=mn),0===e)return r(n,n,n);var i=(t%360+360)%360/60,o=(1-Math.abs(2*n-1))*e,a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);var c=n-o/2;return r(s+c,l+c,u+c)}var _n={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 bn=/^#[a-fA-F0-9]{6}$/,wn=/^#[a-fA-F0-9]{8}$/,Sn=/^#[a-fA-F0-9]{3}$/,Mn=/^#[a-fA-F0-9]{4}$/,Cn=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,In=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Tn=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,An=/^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 Dn(t){if("string"!=typeof t)throw new yn(3);var e=function(t){if("string"!=typeof t)return t;var e=t.toLowerCase();return _n[e]?"#"+_n[e]:t}(t);if(e.match(bn))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(wn)){var n=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:n}}if(e.match(Sn))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(Mn)){var r=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:r}}var i=Cn.exec(e);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=In.exec(e.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var a=Tn.exec(e);if(a){var s="rgb("+xn(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=Cn.exec(s);if(!l)throw new yn(4,e,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var u=An.exec(e.substring(0,50));if(u){var c="rgb("+xn(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",h=Cn.exec(c);if(!h)throw new yn(4,e,c);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new yn(5)}function En(t){return function(t){var e,n=t.red/255,r=t.green/255,i=t.blue/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;if(o===a)return void 0!==t.alpha?{hue:0,saturation:0,lightness:s,alpha:t.alpha}:{hue:0,saturation:0,lightness:s};var l=o-a,u=s>.5?l/(2-o-a):l/(o+a);switch(o){case n:e=(r-i)/l+(r<i?6:0);break;case r:e=(i-n)/l+2;break;default:e=(n-r)/l+4}return e*=60,void 0!==t.alpha?{hue:e,saturation:u,lightness:s,alpha:t.alpha}:{hue:e,saturation:u,lightness:s}}(Dn(t))}var kn=function(t){return 7===t.length&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t};function Nn(t){var e=t.toString(16);return 1===e.length?"0"+e:e}function On(t){return Nn(Math.round(255*t))}function Ln(t,e,n){return kn("#"+On(t)+On(e)+On(n))}function Pn(t,e,n){return xn(t,e,n,Ln)}function Rn(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return kn("#"+Nn(t)+Nn(e)+Nn(n));if("object"==typeof t&&void 0===e&&void 0===n)return kn("#"+Nn(t.red)+Nn(t.green)+Nn(t.blue));throw new yn(6)}function zn(t,e,n,r){if("string"==typeof t&&"number"==typeof e){var i=Dn(t);return"rgba("+i.red+","+i.green+","+i.blue+","+e+")"}if("number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof r)return r>=1?Rn(t,e,n):"rgba("+t+","+e+","+n+","+r+")";if("object"==typeof t&&void 0===e&&void 0===n&&void 0===r)return t.alpha>=1?Rn(t.red,t.green,t.blue):"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")";throw new yn(7)}var Vn=function(t){return"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&("number"!=typeof t.alpha||void 0===t.alpha)},Bn=function(t){return"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&"number"==typeof t.alpha},Fn=function(t){return"number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&("number"!=typeof t.alpha||void 0===t.alpha)},jn=function(t){return"number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&"number"==typeof t.alpha};function Gn(t){if("object"!=typeof t)throw new yn(8);if(Bn(t))return zn(t);if(Vn(t))return Rn(t);if(jn(t))return function(t,e,n,r){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof r)return r>=1?Pn(t,e,n):"rgba("+xn(t,e,n)+","+r+")";if("object"==typeof t&&void 0===e&&void 0===n&&void 0===r)return t.alpha>=1?Pn(t.hue,t.saturation,t.lightness):"rgba("+xn(t.hue,t.saturation,t.lightness)+","+t.alpha+")";throw new yn(2)}(t);if(Fn(t))return function(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Pn(t,e,n);if("object"==typeof t&&void 0===e&&void 0===n)return Pn(t.hue,t.saturation,t.lightness);throw new yn(1)}(t);throw new yn(8)}function Wn(t,e,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=e?t.apply(this,r):Wn(t,e,r)}}function Hn(t){return Wn(t,t.length,[])}function Un(t,e,n){return Math.max(t,Math.min(e,n))}Hn((function(t,e){if("transparent"===e)return e;var n=En(e);return Gn(un({},n,{hue:n.hue+parseFloat(t)}))})),Hn((function(t,e){if("transparent"===e)return e;var n=En(e);return Gn(un({},n,{lightness:Un(0,1,n.lightness-parseFloat(t))}))})),Hn((function(t,e){if("transparent"===e)return e;var n=En(e);return Gn(un({},n,{saturation:Un(0,1,n.saturation-parseFloat(t))}))})),Hn((function(t,e){if("transparent"===e)return e;var n=En(e);return Gn(un({},n,{lightness:Un(0,1,n.lightness+parseFloat(t))}))}));var Yn=Hn((function(t,e,n){if("transparent"===e)return n;if("transparent"===n)return e;if(0===t)return n;var r=Dn(e),i=un({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),o=Dn(n),a=un({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),s=i.alpha-a.alpha,l=2*parseFloat(t)-1,u=((l*s==-1?l:l+s)/(1+l*s)+1)/2,c=1-u;return zn({red:Math.floor(i.red*u+a.red*c),green:Math.floor(i.green*u+a.green*c),blue:Math.floor(i.blue*u+a.blue*c),alpha:i.alpha*parseFloat(t)+a.alpha*(1-parseFloat(t))})})),Xn=Yn;Hn((function(t,e){if("transparent"===e)return e;var n=Dn(e);return zn(un({},n,{alpha:Un(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(t))/100)}))})),Hn((function(t,e){if("transparent"===e)return e;var n=En(e);return Gn(un({},n,{saturation:Un(0,1,n.saturation+parseFloat(t))}))})),Hn((function(t,e){return"transparent"===e?e:Gn(un({},En(e),{hue:parseFloat(t)}))})),Hn((function(t,e){return"transparent"===e?e:Gn(un({},En(e),{lightness:parseFloat(t)}))})),Hn((function(t,e){return"transparent"===e?e:Gn(un({},En(e),{saturation:parseFloat(t)}))})),Hn((function(t,e){return"transparent"===e?e:Xn(parseFloat(t),"rgb(0, 0, 0)",e)})),Hn((function(t,e){return"transparent"===e?e:Xn(parseFloat(t),"rgb(255, 255, 255)",e)})),Hn((function(t,e){if("transparent"===e)return e;var n=Dn(e);return zn(un({},n,{alpha:Un(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(t)).toFixed(2)/100)}))}));var $n=function(t){try{return!!t()}catch(t){return!0}},Zn=!$n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),qn=Zn,Kn=Function.prototype,Jn=Kn.call,Qn=qn&&Kn.bind.bind(Jn,Jn),tr=qn?Qn:function(t){return function(){return Jn.apply(t,arguments)}},er=tr,nr=er({}.toString),rr=er("".slice),ir=function(t){return rr(nr(t),8,-1)},or=$n,ar=ir,sr=Object,lr=tr("".split),ur=or((function(){return!sr("z").propertyIsEnumerable(0)}))?function(t){return"String"===ar(t)?lr(t,""):sr(t)}:sr,cr=function(t){return null==t},hr=cr,pr=TypeError,dr=function(t){if(hr(t))throw new pr("Can't call method on "+t);return t},fr=ur,gr=dr,yr=function(t){return fr(gr(t))},vr=function(t){return t&&t.Math===Math&&t},mr=vr("object"==typeof globalThis&&globalThis)||vr("object"==typeof window&&window)||vr("object"==typeof self&&self)||vr("object"==typeof n&&n)||vr("object"==typeof n&&n)||function(){return this}()||Function("return this")(),xr={exports:{}},_r=mr,br=Object.defineProperty,wr=function(t,e){try{br(_r,t,{value:e,configurable:!0,writable:!0})}catch(n){_r[t]=e}return e},Sr=mr,Mr=wr,Cr="__core-js_shared__",Ir=xr.exports=Sr[Cr]||Mr(Cr,{});(Ir.versions||(Ir.versions=[])).push({version:"3.36.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Tr,Ar,Dr=xr.exports,Er=Dr,kr=function(t,e){return Er[t]||(Er[t]=e||{})},Nr=dr,Or=Object,Lr=function(t){return Or(Nr(t))},Pr=Lr,Rr=tr({}.hasOwnProperty),zr=Object.hasOwn||function(t,e){return Rr(Pr(t),e)},Vr=tr,Br=0,Fr=Math.random(),jr=Vr(1..toString),Gr=function(t){return"Symbol("+(void 0===t?"":t)+")_"+jr(++Br+Fr,36)},Wr=mr,Hr="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Ur=Wr.process,Yr=Wr.Deno,Xr=Ur&&Ur.versions||Yr&&Yr.version,$r=Xr&&Xr.v8;$r&&(Ar=(Tr=$r.split("."))[0]>0&&Tr[0]<4?1:+(Tr[0]+Tr[1])),!Ar&&Hr&&(!(Tr=Hr.match(/Edge\/(\d+)/))||Tr[1]>=74)&&(Tr=Hr.match(/Chrome\/(\d+)/))&&(Ar=+Tr[1]);var Zr=Ar,qr=Zr,Kr=$n,Jr=mr.String,Qr=!!Object.getOwnPropertySymbols&&!Kr((function(){var t=Symbol("symbol detection");return!Jr(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&qr&&qr<41})),ti=Qr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ei=kr,ni=zr,ri=Gr,ii=Qr,oi=ti,ai=mr.Symbol,si=ei("wks"),li=oi?ai.for||ai:ai&&ai.withoutSetter||ri,ui=function(t){return ni(si,t)||(si[t]=ii&&ni(ai,t)?ai[t]:li("Symbol."+t)),si[t]},ci="object"==typeof document&&document.all,hi=void 0===ci&&void 0!==ci?function(t){return"function"==typeof t||t===ci}:function(t){return"function"==typeof t},pi=hi,di=function(t){return"object"==typeof t?null!==t:pi(t)},fi=di,gi=String,yi=TypeError,vi=function(t){if(fi(t))return t;throw new yi(gi(t)+" is not an object")},mi={},xi=!$n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),_i=xi&&$n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),bi={},wi=di,Si=mr.document,Mi=wi(Si)&&wi(Si.createElement),Ci=function(t){return Mi?Si.createElement(t):{}},Ii=Ci,Ti=!xi&&!$n((function(){return 7!==Object.defineProperty(Ii("div"),"a",{get:function(){return 7}}).a})),Ai=Zn,Di=Function.prototype.call,Ei=Ai?Di.bind(Di):function(){return Di.apply(Di,arguments)},ki=mr,Ni=hi,Oi=function(t,e){return arguments.length<2?(n=ki[t],Ni(n)?n:void 0):ki[t]&&ki[t][e];var n},Li=tr({}.isPrototypeOf),Pi=Oi,Ri=hi,zi=Li,Vi=Object,Bi=ti?function(t){return"symbol"==typeof t}:function(t){var e=Pi("Symbol");return Ri(e)&&zi(e.prototype,Vi(t))},Fi=String,ji=function(t){try{return Fi(t)}catch(t){return"Object"}},Gi=hi,Wi=ji,Hi=TypeError,Ui=function(t){if(Gi(t))return t;throw new Hi(Wi(t)+" is not a function")},Yi=Ui,Xi=cr,$i=function(t,e){var n=t[e];return Xi(n)?void 0:Yi(n)},Zi=Ei,qi=hi,Ki=di,Ji=TypeError,Qi=Ei,to=di,eo=Bi,no=$i,ro=function(t,e){var n,r;if("string"===e&&qi(n=t.toString)&&!Ki(r=Zi(n,t)))return r;if(qi(n=t.valueOf)&&!Ki(r=Zi(n,t)))return r;if("string"!==e&&qi(n=t.toString)&&!Ki(r=Zi(n,t)))return r;throw new Ji("Can't convert object to primitive value")},io=TypeError,oo=ui("toPrimitive"),ao=function(t,e){if(!to(t)||eo(t))return t;var n,r=no(t,oo);if(r){if(void 0===e&&(e="default"),n=Qi(r,t,e),!to(n)||eo(n))return n;throw new io("Can't convert object to primitive value")}return void 0===e&&(e="number"),ro(t,e)},so=Bi,lo=function(t){var e=ao(t,"string");return so(e)?e:e+""},uo=xi,co=Ti,ho=_i,po=vi,fo=lo,go=TypeError,yo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,mo="enumerable",xo="configurable",_o="writable";bi.f=uo?ho?function(t,e,n){if(po(t),e=fo(e),po(n),"function"==typeof t&&"prototype"===e&&"value"in n&&_o in n&&!n[_o]){var r=vo(t,e);r&&r[_o]&&(t[e]=n.value,n={configurable:xo in n?n[xo]:r[xo],enumerable:mo in n?n[mo]:r[mo],writable:!1})}return yo(t,e,n)}:yo:function(t,e,n){if(po(t),e=fo(e),po(n),co)try{return yo(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new go("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var bo=Math.ceil,wo=Math.floor,So=Math.trunc||function(t){var e=+t;return(e>0?wo:bo)(e)},Mo=So,Co=function(t){var e=+t;return e!=e||0===e?0:Mo(e)},Io=Co,To=Math.max,Ao=Math.min,Do=Co,Eo=Math.min,ko=function(t){var e=Do(t);return e>0?Eo(e,9007199254740991):0},No=function(t){return ko(t.length)},Oo=yr,Lo=function(t,e){var n=Io(t);return n<0?To(n+e,0):Ao(n,e)},Po=No,Ro=function(t){return function(e,n,r){var i=Oo(e),o=Po(i);if(0===o)return!t&&-1;var a,s=Lo(r,o);if(t&&n!=n){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},zo={includes:Ro(!0),indexOf:Ro(!1)},Vo={},Bo=zr,Fo=yr,jo=zo.indexOf,Go=Vo,Wo=tr([].push),Ho=function(t,e){var n,r=Fo(t),i=0,o=[];for(n in r)!Bo(Go,n)&&Bo(r,n)&&Wo(o,n);for(;e.length>i;)Bo(r,n=e[i++])&&(~jo(o,n)||Wo(o,n));return o},Uo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yo=Ho,Xo=Uo,$o=Object.keys||function(t){return Yo(t,Xo)},Zo=xi,qo=_i,Ko=bi,Jo=vi,Qo=yr,ta=$o;mi.f=Zo&&!qo?Object.defineProperties:function(t,e){Jo(t);for(var n,r=Qo(e),i=ta(e),o=i.length,a=0;o>a;)Ko.f(t,n=i[a++],r[n]);return t};var ea,na=Oi("document","documentElement"),ra=Gr,ia=kr("keys"),oa=function(t){return ia[t]||(ia[t]=ra(t))},aa=vi,sa=mi,la=Uo,ua=Vo,ca=na,ha=Ci,pa="prototype",da="script",fa=oa("IE_PROTO"),ga=function(){},ya=function(t){return"<"+da+">"+t+"</"+da+">"},va=function(t){t.write(ya("")),t.close();var e=t.parentWindow.Object;return t=null,e},ma=function(){try{ea=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;ma="undefined"!=typeof document?document.domain&&ea?va(ea):(e=ha("iframe"),n="java"+da+":",e.style.display="none",ca.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(ya("document.F=Object")),t.close(),t.F):va(ea);for(var r=la.length;r--;)delete ma[pa][la[r]];return ma()};ua[fa]=!0;var xa=Object.create||function(t,e){var n;return null!==t?(ga[pa]=aa(t),n=new ga,ga[pa]=null,n[fa]=t):n=ma(),void 0===e?n:sa.f(n,e)},_a=ui,ba=xa,wa=bi.f,Sa=_a("unscopables"),Ma=Array.prototype;void 0===Ma[Sa]&&wa(Ma,Sa,{configurable:!0,value:ba(null)});var Ca,Ia,Ta,Aa=function(t){Ma[Sa][t]=!0},Da={},Ea=hi,ka=mr.WeakMap,Na=Ea(ka)&&/native code/.test(String(ka)),Oa=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},La=bi,Pa=Oa,Ra=xi?function(t,e,n){return La.f(t,e,Pa(1,n))}:function(t,e,n){return t[e]=n,t},za=Na,Va=mr,Ba=di,Fa=Ra,ja=zr,Ga=Dr,Wa=oa,Ha=Vo,Ua="Object already initialized",Ya=Va.TypeError,Xa=Va.WeakMap;if(za||Ga.state){var $a=Ga.state||(Ga.state=new Xa);$a.get=$a.get,$a.has=$a.has,$a.set=$a.set,Ca=function(t,e){if($a.has(t))throw new Ya(Ua);return e.facade=t,$a.set(t,e),e},Ia=function(t){return $a.get(t)||{}},Ta=function(t){return $a.has(t)}}else{var Za=Wa("state");Ha[Za]=!0,Ca=function(t,e){if(ja(t,Za))throw new Ya(Ua);return e.facade=t,Fa(t,Za,e),e},Ia=function(t){return ja(t,Za)?t[Za]:{}},Ta=function(t){return ja(t,Za)}}var qa={set:Ca,get:Ia,has:Ta,enforce:function(t){return Ta(t)?Ia(t):Ca(t,{})},getterFor:function(t){return function(e){var n;if(!Ba(e)||(n=Ia(e)).type!==t)throw new Ya("Incompatible receiver, "+t+" required");return n}}},Ka={},Ja={},Qa={}.propertyIsEnumerable,ts=Object.getOwnPropertyDescriptor,es=ts&&!Qa.call({1:2},1);Ja.f=es?function(t){var e=ts(this,t);return!!e&&e.enumerable}:Qa;var ns=xi,rs=Ei,is=Ja,os=Oa,as=yr,ss=lo,ls=zr,us=Ti,cs=Object.getOwnPropertyDescriptor;Ka.f=ns?cs:function(t,e){if(t=as(t),e=ss(e),us)try{return cs(t,e)}catch(t){}if(ls(t,e))return os(!rs(is.f,t,e),t[e])};var hs={exports:{}},ps=xi,ds=zr,fs=Function.prototype,gs=ps&&Object.getOwnPropertyDescriptor,ys=ds(fs,"name"),vs={EXISTS:ys,PROPER:ys&&"something"===function(){}.name,CONFIGURABLE:ys&&(!ps||ps&&gs(fs,"name").configurable)},ms=hi,xs=Dr,_s=tr(Function.toString);ms(xs.inspectSource)||(xs.inspectSource=function(t){return _s(t)});var bs=xs.inspectSource,ws=tr,Ss=$n,Ms=hi,Cs=zr,Is=xi,Ts=vs.CONFIGURABLE,As=bs,Ds=qa.enforce,Es=qa.get,ks=String,Ns=Object.defineProperty,Os=ws("".slice),Ls=ws("".replace),Ps=ws([].join),Rs=Is&&!Ss((function(){return 8!==Ns((function(){}),"length",{value:8}).length})),zs=String(String).split("String"),Vs=hs.exports=function(t,e,n){"Symbol("===Os(ks(e),0,7)&&(e="["+Ls(ks(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Cs(t,"name")||Ts&&t.name!==e)&&(Is?Ns(t,"name",{value:e,configurable:!0}):t.name=e),Rs&&n&&Cs(n,"arity")&&t.length!==n.arity&&Ns(t,"length",{value:n.arity});try{n&&Cs(n,"constructor")&&n.constructor?Is&&Ns(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Ds(t);return Cs(r,"source")||(r.source=Ps(zs,"string"==typeof e?e:"")),t};Function.prototype.toString=Vs((function(){return Ms(this)&&Es(this).source||As(this)}),"toString");var Bs=hs.exports,Fs=hi,js=bi,Gs=Bs,Ws=wr,Hs=function(t,e,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:e;if(Fs(n)&&Gs(n,o,r),r.global)i?t[e]=n:Ws(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:js.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Us={},Ys=Ho,Xs=Uo.concat("length","prototype");Us.f=Object.getOwnPropertyNames||function(t){return Ys(t,Xs)};var $s={};$s.f=Object.getOwnPropertySymbols;var Zs,qs,Ks,Js=Oi,Qs=Us,tl=$s,el=vi,nl=tr([].concat),rl=Js("Reflect","ownKeys")||function(t){var e=Qs.f(el(t)),n=tl.f;return n?nl(e,n(t)):e},il=zr,ol=rl,al=Ka,sl=bi,ll=$n,ul=hi,cl=/#|\.prototype\./,hl=function(t,e){var n=dl[pl(t)];return n===gl||n!==fl&&(ul(e)?ll(e):!!e)},pl=hl.normalize=function(t){return String(t).replace(cl,".").toLowerCase()},dl=hl.data={},fl=hl.NATIVE="N",gl=hl.POLYFILL="P",yl=hl,vl=mr,ml=Ka.f,xl=Ra,_l=Hs,bl=wr,wl=function(t,e,n){for(var r=ol(e),i=sl.f,o=al.f,a=0;a<r.length;a++){var s=r[a];il(t,s)||n&&il(n,s)||i(t,s,o(e,s))}},Sl=yl,Ml=function(t,e){var n,r,i,o,a,s=t.target,l=t.global,u=t.stat;if(n=l?vl:u?vl[s]||bl(s,{}):vl[s]&&vl[s].prototype)for(r in e){if(o=e[r],i=t.dontCallGetSet?(a=ml(n,r))&&a.value:n[r],!Sl(l?r:s+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;wl(o,i)}(t.sham||i&&i.sham)&&xl(o,"sham",!0),_l(n,r,o,t)}},Cl=!$n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Il=zr,Tl=hi,Al=Lr,Dl=Cl,El=oa("IE_PROTO"),kl=Object,Nl=kl.prototype,Ol=Dl?kl.getPrototypeOf:function(t){var e=Al(t);if(Il(e,El))return e[El];var n=e.constructor;return Tl(n)&&e instanceof n?n.prototype:e instanceof kl?Nl:null},Ll=$n,Pl=hi,Rl=di,zl=Ol,Vl=Hs,Bl=ui("iterator"),Fl=!1;[].keys&&("next"in(Ks=[].keys())?(qs=zl(zl(Ks)))!==Object.prototype&&(Zs=qs):Fl=!0);var jl=!Rl(Zs)||Ll((function(){var t={};return Zs[Bl].call(t)!==t}));jl&&(Zs={}),Pl(Zs[Bl])||Vl(Zs,Bl,(function(){return this}));var Gl={IteratorPrototype:Zs,BUGGY_SAFARI_ITERATORS:Fl},Wl=bi.f,Hl=zr,Ul=ui("toStringTag"),Yl=function(t,e,n){t&&!n&&(t=t.prototype),t&&!Hl(t,Ul)&&Wl(t,Ul,{configurable:!0,value:e})},Xl=Gl.IteratorPrototype,$l=xa,Zl=Oa,ql=Yl,Kl=Da,Jl=function(){return this},Ql=tr,tu=Ui,eu=di,nu=function(t){return eu(t)||null===t},ru=String,iu=TypeError,ou=function(t,e,n){try{return Ql(tu(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},au=vi,su=function(t){if(nu(t))return t;throw new iu("Can't set "+ru(t)+" as a prototype")},lu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ou(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return au(n),su(r),e?t(n,r):n.__proto__=r,n}}():void 0),uu=Ml,cu=Ei,hu=hi,pu=function(t,e,n,r){var i=e+" Iterator";return t.prototype=$l(Xl,{next:Zl(+!r,n)}),ql(t,i,!1),Kl[i]=Jl,t},du=Ol,fu=lu,gu=Yl,yu=Ra,vu=Hs,mu=Da,xu=vs.PROPER,_u=vs.CONFIGURABLE,bu=Gl.IteratorPrototype,wu=Gl.BUGGY_SAFARI_ITERATORS,Su=ui("iterator"),Mu="keys",Cu="values",Iu="entries",Tu=function(){return this},Au=function(t,e,n,r,i,o,a){pu(n,e,r);var s,l,u,c=function(t){if(t===i&&g)return g;if(!wu&&t&&t in d)return d[t];switch(t){case Mu:case Cu:case Iu:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",p=!1,d=t.prototype,f=d[Su]||d["@@iterator"]||i&&d[i],g=!wu&&f||c(i),y="Array"===e&&d.entries||f;if(y&&(s=du(y.call(new t)))!==Object.prototype&&s.next&&(du(s)!==bu&&(fu?fu(s,bu):hu(s[Su])||vu(s,Su,Tu)),gu(s,h,!0)),xu&&i===Cu&&f&&f.name!==Cu&&(_u?yu(d,"name",Cu):(p=!0,g=function(){return cu(f,this)})),i)if(l={values:c(Cu),keys:o?g:c(Mu),entries:c(Iu)},a)for(u in l)(wu||p||!(u in d))&&vu(d,u,l[u]);else uu({target:e,proto:!0,forced:wu||p},l);return d[Su]!==g&&vu(d,Su,g,{name:i}),mu[e]=g,l},Du=function(t,e){return{value:t,done:e}},Eu=yr,ku=Aa,Nu=Da,Ou=qa,Lu=bi.f,Pu=Au,Ru=Du,zu=xi,Vu="Array Iterator",Bu=Ou.set,Fu=Ou.getterFor(Vu),ju=Pu(Array,"Array",(function(t,e){Bu(this,{type:Vu,target:Eu(t),index:0,kind:e})}),(function(){var t=Fu(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Ru(void 0,!0);switch(t.kind){case"keys":return Ru(n,!1);case"values":return Ru(e[n],!1)}return Ru([n,e[n]],!1)}),"values"),Gu=Nu.Arguments=Nu.Array;if(ku("keys"),ku("values"),ku("entries"),zu&&"values"!==Gu.name)try{Lu(Gu,"name",{value:"values"})}catch(fat){}var Wu=ir,Hu=tr,Uu=function(t){if("Function"===Wu(t))return Hu(t)},Yu=Ui,Xu=Zn,$u=Uu(Uu.bind),Zu=function(t,e){return Yu(t),void 0===e?t:Xu?$u(t,e):function(){return t.apply(e,arguments)}},qu=Da,Ku=ui("iterator"),Ju=Array.prototype,Qu={};Qu[ui("toStringTag")]="z";var tc="[object z]"===String(Qu),ec=tc,nc=hi,rc=ir,ic=ui("toStringTag"),oc=Object,ac="Arguments"===rc(function(){return arguments}()),sc=ec?rc:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=oc(t),ic))?n:ac?rc(e):"Object"===(r=rc(e))&&nc(e.callee)?"Arguments":r},lc=sc,uc=$i,cc=cr,hc=Da,pc=ui("iterator"),dc=function(t){if(!cc(t))return uc(t,pc)||uc(t,"@@iterator")||hc[lc(t)]},fc=Ei,gc=Ui,yc=vi,vc=ji,mc=dc,xc=TypeError,_c=Ei,bc=vi,wc=$i,Sc=Zu,Mc=Ei,Cc=vi,Ic=ji,Tc=function(t){return void 0!==t&&(qu.Array===t||Ju[Ku]===t)},Ac=No,Dc=Li,Ec=function(t,e){var n=arguments.length<2?mc(t):e;if(gc(n))return yc(fc(n,t));throw new xc(vc(t)+" is not iterable")},kc=dc,Nc=function(t,e,n){var r,i;bc(t);try{if(!(r=wc(t,"return"))){if("throw"===e)throw n;return n}r=_c(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return bc(r),n},Oc=TypeError,Lc=function(t,e){this.stopped=t,this.result=e},Pc=Lc.prototype,Rc=function(t,e,n){var r,i,o,a,s,l,u,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),g=Sc(e,c),y=function(t){return r&&Nc(r,"normal",t),new Lc(!0,t)},v=function(t){return h?(Cc(t),f?g(t[0],t[1],y):g(t[0],t[1])):f?g(t,y):g(t)};if(p)r=t.iterator;else if(d)r=t;else{if(!(i=kc(t)))throw new Oc(Ic(t)+" is not iterable");if(Tc(i)){for(o=0,a=Ac(t);a>o;o++)if((s=v(t[o]))&&Dc(Pc,s))return s;return new Lc(!1)}r=Ec(t,i)}for(l=p?t.next:r.next;!(u=Mc(l,r)).done;){try{s=v(u.value)}catch(t){Nc(r,"throw",t)}if("object"==typeof s&&s&&Dc(Pc,s))return s}return new Lc(!1)},zc=xi,Vc=bi,Bc=Oa,Fc=function(t,e,n){zc?Vc.f(t,e,Bc(0,n)):t[e]=n},jc=Rc,Gc=Fc;Ml({target:"Object",stat:!0},{fromEntries:function(t){var e={};return jc(t,(function(t,n){Gc(e,t,n)}),{AS_ENTRIES:!0}),e}});var Wc=mr;Wc.Object.fromEntries;var Hc=Ci("span").classList,Uc=Hc&&Hc.constructor&&Hc.constructor.prototype,Yc=Uc===Object.prototype?void 0:Uc,Xc=mr,$c={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},Zc=Yc,qc=ju,Kc=Ra,Jc=Yl,Qc=ui("iterator"),th=qc.values,eh=function(t,e){if(t){if(t[Qc]!==th)try{Kc(t,Qc,th)}catch(e){t[Qc]=th}if(Jc(t,e,!0),$c[e])for(var n in qc)if(t[n]!==qc[n])try{Kc(t,n,qc[n])}catch(e){t[n]=qc[n]}}};for(var nh in $c)eh(Xc[nh]&&Xc[nh].prototype,nh);eh(Zc,"DOMTokenList");var rh=sc,ih=String,oh=function(t){if("Symbol"===rh(t))throw new TypeError("Cannot convert a Symbol value to a string");return ih(t)},ah=function(t,e){return void 0===t?arguments.length<2?"":e:oh(t)},sh=xi,lh=$n,uh=vi,ch=ah,hh=Error.prototype.toString,ph=lh((function(){if(sh){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==hh.call(t))return!0}return"2: 1"!==hh.call({message:1,name:2})||"Error"!==hh.call({})}))?function(){var t=uh(this),e=ch(t.name,"Error"),n=ch(t.message);return e?n?e+": "+n:e:n}:hh,dh=Hs,fh=ph,gh=Error.prototype;gh.toString!==fh&&dh(gh,"toString",fh);var yh=Lr,vh=$o;Ml({target:"Object",stat:!0,forced:$n((function(){vh(1)}))},{keys:function(t){return vh(yh(t))}});var mh=sc,xh=tc?{}.toString:function(){return"[object "+mh(this)+"]"};tc||Hs(Object.prototype,"toString",xh,{unsafe:!0});var _h={exports:{}},bh={},wh=tr([].slice),Sh=ir,Mh=yr,Ch=Us.f,Ih=wh,Th="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];bh.f=function(t){return Th&&"Window"===Sh(t)?function(t){try{return Ch(t)}catch(t){return Ih(Th)}}(t):Ch(Mh(t))};var Ah=$n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Dh=$n,Eh=di,kh=ir,Nh=Ah,Oh=Object.isExtensible,Lh=Dh((function(){Oh(1)}))||Nh?function(t){return!!Eh(t)&&((!Nh||"ArrayBuffer"!==kh(t))&&(!Oh||Oh(t)))}:Oh,Ph=!$n((function(){return Object.isExtensible(Object.preventExtensions({}))})),Rh=Ml,zh=tr,Vh=Vo,Bh=di,Fh=zr,jh=bi.f,Gh=Us,Wh=bh,Hh=Lh,Uh=Ph,Yh=!1,Xh=Gr("meta"),$h=0,Zh=function(t){jh(t,Xh,{value:{objectID:"O"+$h++,weakData:{}}})},qh=_h.exports={enable:function(){qh.enable=function(){},Yh=!0;var t=Gh.f,e=zh([].splice),n={};n[Xh]=1,t(n).length&&(Gh.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===Xh){e(r,i,1);break}return r},Rh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Wh.f}))},fastKey:function(t,e){if(!Bh(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Fh(t,Xh)){if(!Hh(t))return"F";if(!e)return"E";Zh(t)}return t[Xh].objectID},getWeakData:function(t,e){if(!Fh(t,Xh)){if(!Hh(t))return!0;if(!e)return!1;Zh(t)}return t[Xh].weakData},onFreeze:function(t){return Uh&&Yh&&Hh(t)&&!Fh(t,Xh)&&Zh(t),t}};Vh[Xh]=!0;var Kh=_h.exports,Jh=Li,Qh=TypeError,tp=function(t,e){if(Jh(e,t))return t;throw new Qh("Incorrect invocation")},ep=ui("iterator"),np=!1;try{var rp=0,ip={next:function(){return{done:!!rp++}},return:function(){np=!0}};ip[ep]=function(){return this},Array.from(ip,(function(){throw 2}))}catch(fat){}var op=hi,ap=di,sp=lu,lp=function(t,e,n){var r,i;return sp&&op(r=e.constructor)&&r!==n&&ap(i=r.prototype)&&i!==n.prototype&&sp(t,i),t},up=Ml,cp=mr,hp=tr,pp=yl,dp=Hs,fp=Kh,gp=Rc,yp=tp,vp=hi,mp=cr,xp=di,_p=$n,bp=function(t,e){try{if(!e&&!np)return!1}catch(t){return!1}var n=!1;try{var r={};r[ep]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},wp=Yl,Sp=lp,Mp=function(t,e,n){var r=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),o=r?"set":"add",a=cp[t],s=a&&a.prototype,l=a,u={},c=function(t){var e=hp(s[t]);dp(s,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(i&&!xp(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return i&&!xp(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(i&&!xp(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(pp(t,!vp(a)||!(i||s.forEach&&!_p((function(){(new a).entries().next()})))))l=n.getConstructor(e,t,r,o),fp.enable();else if(pp(t,!0)){var h=new l,p=h[o](i?{}:-0,1)!==h,d=_p((function(){h.has(1)})),f=bp((function(t){new a(t)})),g=!i&&_p((function(){for(var t=new a,e=5;e--;)t[o](e,e);return!t.has(-0)}));f||((l=e((function(t,e){yp(t,s);var n=Sp(new a,t,l);return mp(e)||gp(e,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(o),i&&s.clear&&delete s.clear}return u[t]=l,up({global:!0,constructor:!0,forced:l!==a},u),wp(l,t),i||n.setStrong(l,t,r),l},Cp=Bs,Ip=bi,Tp=function(t,e,n){return n.get&&Cp(n.get,e,{getter:!0}),n.set&&Cp(n.set,e,{setter:!0}),Ip.f(t,e,n)},Ap=Hs,Dp=Oi,Ep=Tp,kp=xi,Np=ui("species"),Op=xa,Lp=Tp,Pp=function(t,e,n){for(var r in e)Ap(t,r,e[r],n);return t},Rp=Zu,zp=tp,Vp=cr,Bp=Rc,Fp=Au,jp=Du,Gp=function(t){var e=Dp(t);kp&&e&&!e[Np]&&Ep(e,Np,{configurable:!0,get:function(){return this}})},Wp=xi,Hp=Kh.fastKey,Up=qa.set,Yp=qa.getterFor,Xp={getConstructor:function(t,e,n,r){var i=t((function(t,i){zp(t,o),Up(t,{type:e,index:Op(null),first:void 0,last:void 0,size:0}),Wp||(t.size=0),Vp(i)||Bp(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=Yp(e),s=function(t,e,n){var r,i,o=a(t),s=l(t,e);return s?s.value=n:(o.last=s={index:i=Hp(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),Wp?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},l=function(t,e){var n,r=a(t),i=Hp(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return Pp(o,{clear:function(){for(var t=a(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),e=e.next;t.first=t.last=void 0,t.index=Op(null),Wp?t.size=0:this.size=0},delete:function(t){var e=this,n=a(e),r=l(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),Wp?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=Rp(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),Pp(o,n?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),Wp&&Lp(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=Yp(e),o=Yp(r);Fp(t,e,(function(t,e){Up(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?jp("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,jp(void 0,!0))}),n?"entries":"values",!n,!0),Gp(e)}};Mp("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Xp),Mp("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Xp);var $p="process"===ir(mr.process),Zp=$p,qp=function(t){try{if(Zp)return Function('return require("'+t+'")')()}catch(t){}},Kp={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}},Jp=Error,Qp=tr("".replace),td=String(new Jp("zxcasd").stack),ed=/\n\s*at [^:]*:[^\n]*/,nd=ed.test(td),rd=function(t,e){if(nd&&"string"==typeof t&&!Jp.prepareStackTrace)for(;e--;)t=Qp(t,ed,"");return t},id=Ml,od=qp,ad=Oi,sd=$n,ld=xa,ud=Oa,cd=bi.f,hd=Hs,pd=Tp,dd=zr,fd=tp,gd=vi,yd=ph,vd=ah,md=Kp,xd=rd,_d=qa,bd=xi,wd="DOMException",Sd="DATA_CLONE_ERR",Md=ad("Error"),Cd=ad(wd)||function(){try{(new(ad("MessageChannel")||od("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name===Sd&&25===t.code)return t.constructor}}(),Id=Cd&&Cd.prototype,Td=Md.prototype,Ad=_d.set,Dd=_d.getterFor(wd),Ed="stack"in new Md(wd),kd=function(t){return dd(md,t)&&md[t].m?md[t].c:0},Nd=function(){fd(this,Od);var t=arguments.length,e=vd(t<1?void 0:arguments[0]),n=vd(t<2?void 0:arguments[1],"Error"),r=kd(n);if(Ad(this,{type:wd,name:n,message:e,code:r}),bd||(this.name=n,this.message=e,this.code=r),Ed){var i=new Md(e);i.name=wd,cd(this,"stack",ud(1,xd(i.stack,1)))}},Od=Nd.prototype=ld(Td),Ld=function(t){return{enumerable:!0,configurable:!0,get:t}},Pd=function(t){return Ld((function(){return Dd(this)[t]}))};bd&&(pd(Od,"code",Pd("code")),pd(Od,"message",Pd("message")),pd(Od,"name",Pd("name"))),cd(Od,"constructor",ud(1,Nd));var Rd=sd((function(){return!(new Cd instanceof Md)})),zd=Rd||sd((function(){return Td.toString!==yd||"2: 1"!==String(new Cd(1,2))})),Vd=Rd||sd((function(){return 25!==new Cd(1,"DataCloneError").code}));Rd||25!==Cd[Sd]||Id[Sd];id({global:!0,constructor:!0,forced:Rd},{DOMException:Rd?Nd:Cd});var Bd=ad(wd),Fd=Bd.prototype;for(var jd in zd&&Cd===Bd&&hd(Fd,"toString",yd),Vd&&bd&&Cd===Bd&&pd(Fd,"code",Ld((function(){return kd(gd(this).name)}))),md)if(dd(md,jd)){var Gd=md[jd],Wd=Gd.s,Hd=ud(6,Gd.c);dd(Bd,Wd)||cd(Bd,Wd,Hd),dd(Fd,Wd)||cd(Fd,Wd,Hd)}var Ud=Ml,Yd=mr,Xd=Oi,$d=Oa,Zd=bi.f,qd=zr,Kd=tp,Jd=lp,Qd=ah,tf=Kp,ef=rd,nf=xi,rf="DOMException",of=Xd("Error"),af=Xd(rf),sf=function(){Kd(this,lf);var t=arguments.length,e=Qd(t<1?void 0:arguments[0]),n=Qd(t<2?void 0:arguments[1],"Error"),r=new af(e,n),i=new of(e);return i.name=rf,Zd(r,"stack",$d(1,ef(i.stack,1))),Jd(r,this,sf),r},lf=sf.prototype=af.prototype,uf="stack"in new of(rf),cf="stack"in new af(1,2),hf=af&&nf&&Object.getOwnPropertyDescriptor(Yd,rf),pf=!(!hf||hf.writable&&hf.configurable),df=uf&&!pf&&!cf;Ud({global:!0,constructor:!0,forced:df},{DOMException:df?sf:af});var ff=Xd(rf),gf=ff.prototype;if(gf.constructor!==ff)for(var yf in Zd(gf,"constructor",$d(1,ff)),tf)if(qd(tf,yf)){var vf=tf[yf],mf=vf.s;qd(ff,mf)||Zd(ff,mf,$d(6,vf.c))}var xf="DOMException";Yl(Oi(xf),xf);var _f=tr,bf=$n,wf=hi,Sf=sc,Mf=bs,Cf=function(){},If=Oi("Reflect","construct"),Tf=/^\s*(?:class|function)\b/,Af=_f(Tf.exec),Df=!Tf.test(Cf),Ef=function(t){if(!wf(t))return!1;try{return If(Cf,[],t),!0}catch(t){return!1}},kf=function(t){if(!wf(t))return!1;switch(Sf(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Df||!!Af(Tf,Mf(t))}catch(t){return!0}};kf.sham=!0;var Nf,Of,Lf,Pf,Rf=!If||bf((function(){var t;return Ef(Ef.call)||!Ef(Object)||!Ef((function(){t=!0}))||t}))?kf:Ef,zf=TypeError,Vf=vi,Bf=Ei,Ff=zr,jf=Li,Gf=function(){var t=Vf(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Wf=RegExp.prototype,Hf=tr,Uf=Map.prototype,Yf={Map:Map,set:Hf(Uf.set),get:Hf(Uf.get),has:Hf(Uf.has),remove:Hf(Uf.delete),proto:Uf},Xf=tr,$f=Set.prototype,Zf={Set:Set,add:Xf($f.add),has:Xf($f.has),remove:Xf($f.delete),proto:$f},qf=Ei,Kf=tr,Jf=function(t,e,n){for(var r,i,o=n?t:t.iterator,a=t.next;!(r=qf(a,o)).done;)if(void 0!==(i=e(r.value)))return i},Qf=Zf.Set,tg=Zf.proto,eg=Kf(tg.forEach),ng=Kf(tg.keys),rg=ng(new Qf).next,ig="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,og=!ig&&!$p&&"object"==typeof window&&"object"==typeof document,ag=$n,sg=Zr,lg=og,ug=ig,cg=$p,hg=mr.structuredClone,pg=!!hg&&!ag((function(){if(ug&&sg>92||cg&&sg>94||lg&&sg>97)return!1;var t=new ArrayBuffer(8),e=hg(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength})),dg=mr,fg=qp,gg=pg,yg=dg.structuredClone,vg=dg.ArrayBuffer,mg=dg.MessageChannel,xg=!1;if(gg)xg=function(t){yg(t,{transfer:[t]})};else if(vg)try{mg||(Nf=fg("worker_threads"))&&(mg=Nf.MessageChannel),mg&&(Of=new mg,Lf=new vg(2),Pf=function(t){Of.port1.postMessage(null,[t])},2===Lf.byteLength&&(Pf(Lf),0===Lf.byteLength&&(xg=Pf)))}catch(fat){}var _g,bg=xg,wg=Oa,Sg=!$n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",wg(1,7)),7!==t.stack)})),Mg=Ml,Cg=mr,Ig=Oi,Tg=tr,Ag=$n,Dg=Gr,Eg=hi,kg=Rf,Ng=cr,Og=di,Lg=Bi,Pg=Rc,Rg=vi,zg=sc,Vg=zr,Bg=Fc,Fg=Ra,jg=No,Gg=function(t,e){if(t<e)throw new zf("Not enough arguments");return t},Wg=function(t){var e=t.flags;return void 0!==e||"flags"in Wf||Ff(t,"flags")||!jf(Wf,t)?e:Bf(Gf,t)},Hg=Yf,Ug=Zf,Yg=function(t,e,n){return n?Jf({iterator:ng(t),next:rg},e):eg(t,e)},Xg=bg,$g=Sg,Zg=pg,qg=Cg.Object,Kg=Cg.Array,Jg=Cg.Date,Qg=Cg.Error,ty=Cg.TypeError,ey=Cg.PerformanceMark,ny=Ig("DOMException"),ry=Hg.Map,iy=Hg.has,oy=Hg.get,ay=Hg.set,sy=Ug.Set,ly=Ug.add,uy=Ug.has,cy=Ig("Object","keys"),hy=Tg([].push),py=Tg((!0).valueOf),dy=Tg(1..valueOf),fy=Tg("".valueOf),gy=Tg(Jg.prototype.getTime),yy=Dg("structuredClone"),vy="DataCloneError",my="Transferring",xy=function(t){return!Ag((function(){var e=new Cg.Set([7]),n=t(e),r=t(qg(7));return n===e||!n.has(7)||!Og(r)||7!=+r}))&&t},_y=function(t,e){return!Ag((function(){var n=new e,r=t({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof e&&r.a.stack===n.stack)}))},by=Cg.structuredClone,wy=!_y(by,Qg)||!_y(by,ny)||(_g=by,!!Ag((function(){var t=_g(new Cg.AggregateError([1],yy,{cause:3}));return"AggregateError"!==t.name||1!==t.errors[0]||t.message!==yy||3!==t.cause}))),Sy=!by&&xy((function(t){return new ey(yy,{detail:t}).detail})),My=xy(by)||Sy,Cy=function(t){throw new ny("Uncloneable type: "+t,vy)},Iy=function(t,e){throw new ny((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",vy)},Ty=function(t,e){return My||Iy(e),My(t)},Ay=function(t,e,n){if(iy(e,t))return oy(e,t);var r,i,o,a,s,l;if("SharedArrayBuffer"===(n||zg(t)))r=My?My(t):t;else{var u=Cg.DataView;u||Eg(t.slice)||Iy("ArrayBuffer");try{if(Eg(t.slice)&&!t.resizable)r=t.slice(0);else{i=t.byteLength,o="maxByteLength"in t?{maxByteLength:t.maxByteLength}:void 0,r=new ArrayBuffer(i,o),a=new u(t),s=new u(r);for(l=0;l<i;l++)s.setUint8(l,a.getUint8(l))}}catch(t){throw new ny("ArrayBuffer is detached",vy)}}return ay(e,t,r),r},Dy=function(t,e){if(Lg(t)&&Cy("Symbol"),!Og(t))return t;if(e){if(iy(e,t))return oy(e,t)}else e=new ry;var n,r,i,o,a,s,l,u,c=zg(t);switch(c){case"Array":i=Kg(jg(t));break;case"Object":i={};break;case"Map":i=new ry;break;case"Set":i=new sy;break;case"RegExp":i=new RegExp(t.source,Wg(t));break;case"Error":switch(r=t.name){case"AggregateError":i=new(Ig(r))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":i=new(Ig(r));break;case"CompileError":case"LinkError":case"RuntimeError":i=new(Ig("WebAssembly",r));break;default:i=new Qg}break;case"DOMException":i=new ny(t.message,t.name);break;case"ArrayBuffer":case"SharedArrayBuffer":i=Ay(t,e,c);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":s="DataView"===c?t.byteLength:t.length,i=function(t,e,n,r,i){var o=Cg[e];return Og(o)||Iy(e),new o(Ay(t.buffer,i),n,r)}(t,c,t.byteOffset,s,e);break;case"DOMQuad":try{i=new DOMQuad(Dy(t.p1,e),Dy(t.p2,e),Dy(t.p3,e),Dy(t.p4,e))}catch(e){i=Ty(t,c)}break;case"File":if(My)try{i=My(t),zg(i)!==c&&(i=void 0)}catch(t){}if(!i)try{i=new File([t],t.name,t)}catch(t){}i||Iy(c);break;case"FileList":if(o=function(){var t;try{t=new Cg.DataTransfer}catch(e){try{t=new Cg.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(a=0,s=jg(t);a<s;a++)o.items.add(Dy(t[a],e));i=o.files}else i=Ty(t,c);break;case"ImageData":try{i=new ImageData(Dy(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){i=Ty(t,c)}break;default:if(My)i=My(t);else switch(c){case"BigInt":i=qg(t.valueOf());break;case"Boolean":i=qg(py(t));break;case"Number":i=qg(dy(t));break;case"String":i=qg(fy(t));break;case"Date":i=new Jg(gy(t));break;case"Blob":try{i=t.slice(0,t.size,t.type)}catch(t){Iy(c)}break;case"DOMPoint":case"DOMPointReadOnly":n=Cg[c];try{i=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(t){Iy(c)}break;case"DOMRect":case"DOMRectReadOnly":n=Cg[c];try{i=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(t){Iy(c)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=Cg[c];try{i=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(t){Iy(c)}break;case"AudioData":case"VideoFrame":Eg(t.clone)||Iy(c);try{i=t.clone()}catch(t){Cy(c)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Iy(c);default:Cy(c)}}switch(ay(e,t,i),c){case"Array":case"Object":for(l=cy(t),a=0,s=jg(l);a<s;a++)u=l[a],Bg(i,u,Dy(t[u],e));break;case"Map":t.forEach((function(t,n){ay(i,Dy(n,e),Dy(t,e))}));break;case"Set":t.forEach((function(t){ly(i,Dy(t,e))}));break;case"Error":Fg(i,"message",Dy(t.message,e)),Vg(t,"cause")&&Fg(i,"cause",Dy(t.cause,e)),"AggregateError"===r?i.errors=Dy(t.errors,e):"SuppressedError"===r&&(i.error=Dy(t.error,e),i.suppressed=Dy(t.suppressed,e));case"DOMException":$g&&Fg(i,"stack",Dy(t.stack,e))}return i};Mg({global:!0,enumerable:!0,sham:!Zg,forced:wy},{structuredClone:function(t){var e,n,r=Gg(arguments.length,1)>1&&!Ng(arguments[1])?Rg(arguments[1]):void 0,i=r?r.transfer:void 0;void 0!==i&&(n=function(t,e){if(!Og(t))throw new ty("Transfer option cannot be converted to a sequence");var n=[];Pg(t,(function(t){hy(n,Rg(t))}));for(var r,i,o,a,s,l=0,u=jg(n),c=new sy;l<u;){if(r=n[l++],"ArrayBuffer"===(i=zg(r))?uy(c,r):iy(e,r))throw new ny("Duplicate transferable",vy);if("ArrayBuffer"!==i){if(Zg)a=by(r,{transfer:[r]});else switch(i){case"ImageBitmap":o=Cg.OffscreenCanvas,kg(o)||Iy(i,my);try{(s=new o(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),a=s.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":Eg(r.clone)&&Eg(r.close)||Iy(i,my);try{a=r.clone(),r.close()}catch(t){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":Iy(i,my)}if(void 0===a)throw new ny("This object cannot be transferred: "+i,vy);ay(e,r,a)}else ly(c,r)}return c}(i,e=new ry));var o=Dy(t,e);return n&&function(t){Yg(t,(function(t){Zg?My(t,{transfer:[t]}):Eg(t.transfer)?t.transfer():Xg?Xg(t):Iy("ArrayBuffer",my)}))}(n),o}}),Wc.structuredClone;var Ey=Lr,ky=No,Ny=Co,Oy=Aa;Ml({target:"Array",proto:!0},{at:function(t){var e=Ey(this),n=ky(e),r=Ny(t),i=r>=0?r:n+r;return i<0||i>=n?void 0:e[i]}}),Oy("at");var Ly=mr,Py=tr;(function(t,e){Py(Ly[t].prototype[e])})("Array","at"),Ml({target:"Object",stat:!0},{hasOwn:zr}),Wc.Object.hasOwn;var Ry=mr;Ml({global:!0,forced:Ry.globalThis!==Ry},{globalThis:Ry});const zy="/workbench/widget/data",Vy=(t,e)=>{const n=Object.entries(e).filter((t=>![null,void 0].includes(t[1]))).map((t=>t.join("="))).join("&");return t.includes("?")?`${t}&${n}`:`${t}?${n}`},By=t=>()=>!!t&&globalThis.open(t);function Fy({success:t,data:e,errorMsg:n}){if(!t)throw new Error(n);return e}function jy(t,e){return t.find((t=>t.value===e))?.label}const Gy=[{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"}];rn.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:"园区改造"}),on.PENDING,on.CREATE,on.COMPLETE,rn.INDICATOR,rn.INDICATOR_AREA,rn.AREA_CHART,rn.LINE_CHART,rn.DUAL_LINE_BAR_CHART,rn.COLUMN_CHART,rn.STACK_COLUMN_CHART,rn.BAR_CHART,rn.FUNNEL_CHART,rn.PIE_CHART,rn.PIE_CHART_RESERVE,rn.CYCLE_CHART,rn.RADAR_CHART,rn.RADAR_CHART_RESERVE;const Wy=new Map;Wy.set(rn.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"}]}),Wy.set(rn.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"}]}),Wy.set(rn.INDICATOR,{templateUrl:"https://img.alicdn.com/imgextra/i4/O1CN01FnE5KR1EV5typW3ya_!!6000000000356-2-tps-332-272.png",type:"Indicator",sizeList:[{label:"1行 × 1列",value:"1,1"}]}),Wy.set(rn.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"}]}),Wy.set(rn.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:exports.WinChartType.AREA}),Wy.set(rn.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:exports.WinChartType.LINE}),Wy.set(rn.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"}]}),Wy.set(rn.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"}]}),Wy.set(rn.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"}]}),Wy.set(rn.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"}]}),Wy.set(rn.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"}]}),Wy.set(rn.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"}]}),Wy.set(rn.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"}]}),Wy.set(rn.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"}]}),Wy.set(rn.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 Hy(t){return Array.isArray(t)&&t.length>0}!function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",u="month",c="quarter",h="year",p="date",d="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,y={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(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},m={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,u),o=n-i<0,a=e.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:h,w:l,d:s,D:p,h:a,m:o,s:i,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},x="en",_={};_[x]=y;var b="$isDayjsObject",w=function(t){return t instanceof I||!(!t||!t[b])},S=function t(e,n,r){var i;if(!e)return x;if("string"==typeof e){var o=e.toLowerCase();_[o]&&(i=o),n&&(_[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;_[s]=e,i=s}return!r&&i&&(x=i),i||!r&&x},M=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new I(n)},C=m;C.l=S,C.i=w,C.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var I=function(){function y(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[b]=!0}var v=y.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(C.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(t,e){var n=M(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return M(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<M(t)},v.$g=function(t,e,n){return C.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,r=!!C.u(e)||e,c=C.p(t),d=function(t,e){var i=C.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},f=function(t,e){return C.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,y=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(c){case h:return r?d(1,0):d(31,11);case u:return r?d(1,y):d(0,y+1);case l:var x=this.$locale().weekStart||0,_=(g<x?g+7:g)-x;return d(r?v-_:v+(6-_),y);case s:case p:return f(m+"Hours",0);case a:return f(m+"Minutes",1);case o:return f(m+"Seconds",2);case i:return f(m+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var n,l=C.p(t),c="set"+(this.$u?"UTC":""),d=(n={},n[s]=c+"Date",n[p]=c+"Date",n[u]=c+"Month",n[h]=c+"FullYear",n[a]=c+"Hours",n[o]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],f=l===s?this.$D+(e-this.$W):e;if(l===u||l===h){var g=this.clone().set(p,1);g.$d[d](f),g.init(),this.$d=g.set(p,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](f);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[C.p(t)]()},v.add=function(r,c){var p,d=this;r=Number(r);var f=C.p(c),g=function(t){var e=M(d);return C.w(e.date(e.date()+Math.round(t*r)),d)};if(f===u)return this.set(u,this.$M+r);if(f===h)return this.set(h,this.$y+r);if(f===s)return g(1);if(f===l)return g(7);var y=(p={},p[o]=e,p[a]=n,p[i]=t,p)[f]||1,v=this.$d.getTime()+r*y;return C.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,h=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},p=function(t){return C.s(o%12||12,t,"0")},f=c||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return C.s(e.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return h(n.monthsShort,s,u,3);case"MMMM":return h(u,s);case"D":return e.$D;case"DD":return C.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,l,2);case"ddd":return h(n.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return f(o,a,!0);case"A":return f(o,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(e.$s);case"ss":return C.s(e.$s,2,"0");case"SSS":return C.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,d){var f,g=this,y=C.p(p),v=M(r),m=(v.utcOffset()-this.utcOffset())*e,x=this-v,_=function(){return C.m(g,v)};switch(y){case h:f=_()/12;break;case u:f=_();break;case c:f=_()/3;break;case l:f=(x-m)/6048e5;break;case s:f=(x-m)/864e5;break;case a:f=x/n;break;case o:f=x/e;break;case i:f=x/t;break;default:f=x}return d?f:C.a(f)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return _[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),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()},y}(),T=I.prototype;M.prototype=T,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",u],["$y",h],["$D",p]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,I,M),t.$i=!0),M},M.locale=S,M.isDayjs=w,M.unix=function(t){return M(1e3*t)},M.en=_[x],M.Ls=_,M.p={}}();const Uy=(t,e=2)=>"number"==typeof t?`${Number((100*t).toFixed(e))}%`:"-%";function Yy(t){return Array.isArray(t)?[...new Set(t)]:[]}const Xy=t=>Array.isArray(t)&&0!==t.length?t.reduce(((t,e)=>{const n=Number(e);return t+(Object.is(n,NaN)?0:n)}),0):0,$y=t=>Array.isArray(t)?t.sort(((t,e)=>e.value-t.value)):t,Zy=t=>({boundaryGap:!0,axisTick:{alignWithLabel:!0},data:Yy(t.data?.map((t=>t.label))),axisLabel:{rotate:t.xAxisLabelRotate,formatter:e=>{const n=t.xAxisLabelLength;return"number"==typeof n&&e.length>n?`${e.slice(0,n)}...`:e}}}),qy=(t,e)=>(t.sort(((t,n)=>e.indexOf(t.label)-e.indexOf(n.label))),t);var Ky=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Jy=new function(){this.browser=new Ky,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?(Jy.wxa=!0,Jy.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Jy.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Jy.node=!0,Jy.svgSupported=!0):function(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,Jy);var Qy=12,tv="sans-serif",ev=Qy+"px "+tv;var nv,rv,iv=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-20)/100;e[r]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),ov={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!nv){var n=ov.createCanvas();nv=n&&n.getContext("2d")}if(nv)return rv!==e&&(rv=nv.font=e||ev),nv.measureText(t);t=t||"";var r=/(\d+)px/.exec(e=e||ev),i=r&&+r[1]||Qy,o=0;if(e.indexOf("mono")>=0)o=i*t.length;else for(var a=0;a<t.length;a++){var s=iv[t[a]];o+=null==s?i:s*i}return{width:o}},loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}},av=Ev(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),sv=Ev(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),lv=Object.prototype.toString,uv=Array.prototype,cv=uv.forEach,hv=uv.filter,pv=uv.slice,dv=uv.map,fv=function(){}.constructor,gv=fv?fv.prototype:null,yv="__proto__",vv=2311;function mv(){return vv++}function xv(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function _v(t){if(null==t||"object"!=typeof t)return t;var e=t,n=lv.call(t);if("[object Array]"===n){if(!nm(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=_v(t[r])}}else if(sv[n]){if(!nm(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!av[n]&&!nm(t)&&!Wv(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==yv&&(e[a]=_v(t[a]));return e}function bv(t,e,n){if(!Fv(e)||!Fv(t))return n?_v(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==yv){var i=t[r],o=e[r];!Fv(o)||!Fv(i)||Pv(o)||Pv(i)||Wv(o)||Wv(i)||jv(o)||jv(i)||nm(o)||nm(i)?!n&&r in t||(t[r]=_v(e[r])):bv(i,o,n)}return t}function wv(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=bv(n,t[r],e);return n}function Sv(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==yv&&(t[n]=e[n]);return t}function Mv(t,e,n){for(var r=Nv(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function Cv(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function Iv(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else Mv(t,e,n)}function Tv(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function Av(t,e,n){if(t&&e)if(t.forEach&&t.forEach===cv)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function Dv(t,e,n){if(!t)return[];if(!e)return qv(t);if(t.map&&t.map===dv)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function Ev(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function kv(t,e,n){if(!t)return[];if(!e)return qv(t);if(t.filter&&t.filter===hv)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function Nv(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var Ov=gv&&Rv(gv.bind)?gv.call.bind(gv.bind):function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(pv.call(arguments)))}};function Lv(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(pv.call(arguments)))}}function Pv(t){return Array.isArray?Array.isArray(t):"[object Array]"===lv.call(t)}function Rv(t){return"function"==typeof t}function zv(t){return"string"==typeof t}function Vv(t){return"[object String]"===lv.call(t)}function Bv(t){return"number"==typeof t}function Fv(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function jv(t){return!!av[lv.call(t)]}function Gv(t){return!!sv[lv.call(t)]}function Wv(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Hv(t){return null!=t.colorStops}function Uv(t){return"[object RegExp]"===lv.call(t)}function Yv(t){return t!=t}function Xv(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function $v(t,e){return null!=t?t:e}function Zv(t,e,n){return null!=t?t:null!=e?e:n}function qv(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return pv.apply(t,e)}function Kv(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Jv(t,e){if(!t)throw new Error(e)}function Qv(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tm="__ec_primitive__";function em(t){t[tm]=!0}function nm(t){return t[tm]}var rm=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return Nv(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),im="function"==typeof Map;var om=function(){function t(e){var n=Pv(e);this.data=im?new Map:new rm;var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&Av(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,r){t.call(e,n,r)}))},t.prototype.keys=function(){var t=this.data.keys();return im?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function am(t){return new om(t)}function sm(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function lm(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Sv(n,e),n}function um(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function cm(t,e){return t.hasOwnProperty(e)}function hm(){}var pm=180/Math.PI;function dm(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function fm(t,e){return t[0]=e[0],t[1]=e[1],t}function gm(t){return[t[0],t[1]]}function ym(t,e,n){return t[0]=e,t[1]=n,t}function vm(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function mm(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function xm(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function _m(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}function bm(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function wm(t,e){var n=_m(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Sm(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Mm=Sm;var Cm=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function Im(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Tm(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function Am(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Dm(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Em=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},km=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Em(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new Em(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Em(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Em(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Em(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Em(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Nm=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),Om=Math.log(2);function Lm(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/Om);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var h=0,p=0,d=0;p<s;p++){var f=1<<p;f&i||(h+=(d%2?-1:1)*t[n][p]*Lm(t,e-1,c,u,i|f,o),d++)}return o[a]=h,h}function Pm(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=Lm(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Lm(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var Rm="___zrEVENTSAVED",zm=[];function Vm(t,e,n,r,i){if(e.getBoundingClientRect&&Jy.domSupported&&!Bm(e)){var o=e[Rm]||(e[Rm]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=function(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?Pm(s,a):Pm(a,s))}(a,o,i);if(s)return s(t,n,r),!0}return!1}function Bm(t){return"CANVAS"===t.nodeName.toUpperCase()}var Fm=/([&<>"'])/g,jm={"&":"&","<":"<",">":">",'"':""","'":"'"};function Gm(t){return null==t?"":(t+"").replace(Fm,(function(t,e){return jm[e]}))}var Wm=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Hm=[],Um=Jy.browser.firefox&&+Jy.browser.version.split(".")[0]<39;function Ym(t,e,n,r){return n=n||{},r?Xm(t,e,n):Um&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Xm(t,e,n),n}function Xm(t,e,n){if(Jy.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Bm(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(Vm(Hm,t,r,i))return n.zrX=Hm[0],void(n.zrY=Hm[1])}n.zrX=n.zrY=0}function $m(t){return t||window.event}function Zm(t,e,n){if(null!=(e=$m(e)).zrX)return e;var r=e.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&Ym(t,i,e,n)}else{Ym(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Wm.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function qm(t,e,n,r){t.addEventListener(e,n,r)}var Km=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Jm(t){return 2===t.which||3===t.which}var Qm=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=Ym(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in ex)if(ex.hasOwnProperty(e)){var n=ex[e](this._track,t);if(n)return n}},t}();function tx(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var ex={pinch:function(t,e){var n=t.length;if(n){var r,i=(t[n-1]||{}).points,o=(t[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=tx(i)/tx(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function nx(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function rx(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ix(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ox(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ax(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-r[0])+c*(u-r[1])+r[0],t[5]=h*(u-r[1])-c*(a-r[0])+r[1],t}function sx(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function lx(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}var ux=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),cx=Math.min,hx=Math.max,px=new ux,dx=new ux,fx=new ux,gx=new ux,yx=new ux,vx=new ux,mx=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=cx(t.x,this.x),n=cx(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hx(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=hx(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=[1,0,0,1,0,0];return ox(i,i,[-e.x,-e.y]),sx(i,i,[n,r]),ox(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,p=!(o<l||u<i||s<c||h<a);if(n){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-i),v=Math.abs(s-c),m=Math.abs(h-a),x=Math.min(g,y),_=Math.min(v,m);o<l||u<i?x>f&&(f=x,g<y?ux.set(vx,-g,0):ux.set(vx,y,0)):x<d&&(d=x,g<y?ux.set(yx,g,0):ux.set(yx,-y,0)),s<c||h<a?_>f&&(f=_,v<m?ux.set(vx,0,-v):ux.set(vx,0,m)):x<d&&(d=x,v<m?ux.set(yx,0,v):ux.set(yx,0,-m))}return n&&ux.copy(n,p?yx:vx),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}px.x=fx.x=n.x,px.y=gx.y=n.y,dx.x=gx.x=n.x+n.width,dx.y=fx.y=n.y+n.height,px.transform(r),gx.transform(r),dx.transform(r),fx.transform(r),e.x=cx(px.x,dx.x,fx.x,gx.x),e.y=cx(px.y,dx.y,fx.y,gx.y);var l=hx(px.x,dx.x,fx.x,gx.x),u=hx(px.y,dx.y,fx.y,gx.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),xx=mx,_x="silent";function bx(){Km(this.event)}var Sx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return h(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Nm),Mx=function(t,e){this.x=t,this.y=e},Cx=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ix=new xx(0,0,0,0),Tx=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new Mx(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Sx,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new km(a),a}return h(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(Av(Cx,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Ex(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new Mx(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Mx(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var r=(t=t||{}).target;if(!r||!r.silent){for(var i="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:bx}}(e,t,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new Mx(t,e);if(Dx(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new xx(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Ix.copy(c.getBoundingRect()),c.transform&&Ix.applyTransform(c.transform),Ix.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=h){if(Dx(o,i,t+d*Math.cos(f),e+d*Math.sin(f),n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Qm);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new Mx;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(Nm);function Ax(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||_x}return!1}function Dx(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Ax(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==_x)){e.target=a;break}}}function Ex(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}Av(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Tx.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Ex(this,i,o);if("mouseup"===t&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Mm(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var kx=Tx,Nx=32,Ox=7;function Lx(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;!function(t,e,n){n--;for(;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function Px(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o,a=t[r],s=e,l=r;s<l;)i(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Rx(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(t,e[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function zx(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;l<s&&o(t,e[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(t,e[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Vx(t,e){var n,r,i=Ox,o=0,a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],h=r[s+1];r[s]=u+h,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var p=zx(t[c],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(h=Rx(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0==--s){for(l=0;l<r;l++)t[h+l]=a[u+l];return}if(1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];return void(t[h+s]=a[u])}var p,d,f,g=i;for(;;){p=0,d=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],d++,p=0,0==--s){f=!0;break}}else if(t[h++]=a[u++],p++,d=0,1==--r){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=zx(t[c],a,u,r,0,e))){for(l=0;l<p;l++)t[h+l]=a[u+l];if(h+=p,u+=p,(r-=p)<=1){f=!0;break}}if(t[h++]=t[c++],0==--s){f=!0;break}if(0!==(d=Rx(a[u],t,c,s,0,e))){for(l=0;l<d;l++)t[h+l]=t[c+l];if(h+=d,c+=d,0===(s-=d)){f=!0;break}}if(t[h++]=a[u++],1==--r){f=!0;break}g--}while(p>=Ox||d>=Ox);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=a[u+l]}}(l,u,c,h):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+r-1,c=s-1,h=o+s-1,p=0,d=0;if(t[h--]=t[u--],0==--r){for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l];return}if(1===s){for(d=(h-=r)+1,p=(u-=r)+1,l=r-1;l>=0;l--)t[d+l]=t[p+l];return void(t[h]=a[c])}var f=i;for(;;){var g=0,y=0,v=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,y=0,0==--r){v=!0;break}}else if(t[h--]=a[c--],y++,g=0,1==--s){v=!0;break}}while((g|y)<f);if(v)break;do{if(0!==(g=r-zx(a[c],t,n,r,r-1,e))){for(r-=g,d=(h-=g)+1,p=(u-=g)+1,l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===r){v=!0;break}}if(t[h--]=a[c--],1==--s){v=!0;break}if(0!==(y=s-Rx(t[u],a,0,s,s-1,e))){for(s-=y,d=(h-=y)+1,p=(c-=y)+1,l=0;l<y;l++)t[d+l]=a[p+l];if(s<=1){v=!0;break}}if(t[h--]=t[u--],0==--r){v=!0;break}f--}while(g>=Ox||y>=Ox);if(v)break;f<0&&(f=0),f+=2}(i=f)<1&&(i=1);if(1===s){for(d=(h-=r)+1,p=(u-=r)+1,l=r-1;l>=0;l--)t[d+l]=t[p+l];t[h]=a[c]}else{if(0===s)throw new Error;for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l]}}(l,u,c,h))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&r[t-1]<r[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,r[o]=e,o+=1}}}function Bx(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<Nx)Px(t,n,r,n+(o=Lx(t,n,r,e)),e);else{var a=Vx(t,e),s=function(t){for(var e=0;t>=Nx;)e|=1&t,t>>=1;return t+e}(i);do{if((o=Lx(t,n,r,e))<s){var l=i;l>s&&(l=s),Px(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var Fx=1,jx=4,Gx=!1;function Wx(){Gx||(Gx=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Hx(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Ux=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Hx}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,Bx(n,Hx)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var i=r,o=t;i;)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Fx),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Wx(),u.z=0),isNaN(u.z2)&&(Wx(),u.z2=0),isNaN(u.zlevel)&&(Wx(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=Cv(this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Yx=Jy.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Xx={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Xx.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Xx.bounceIn(2*t):.5*Xx.bounceOut(2*t-1)+.5}},$x=Math.pow,Zx=Math.sqrt,qx=1e-8,Kx=1e-4,Jx=Zx(3),Qx=1/3,t_=dm(),e_=dm(),n_=dm();function r_(t){return t>-qx&&t<qx}function i_(t){return t>qx||t<-qx}function o_(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function a_(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function s_(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(r_(c)&&r_(h)){if(r_(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[d++]=M)}else{var f=h*h-4*c*p;if(r_(f)){var g=h/c,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=Zx(f),m=c*s+1.5*a*(-h+v),x=c*s+1.5*a*(-h-v);(M=(-s-((m=m<0?-$x(-m,Qx):$x(m,Qx))+(x=x<0?-$x(-x,Qx):$x(x,Qx))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*c*s-3*a*h)/(2*Zx(c*c*c)),b=Math.acos(_)/3,w=Zx(c),S=Math.cos(b),M=(-s-2*w*S)/(3*a),C=(y=(-s+w*(S+Jx*Math.sin(b)))/(3*a),(-s+w*(S-Jx*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),C>=0&&C<=1&&(o[d++]=C)}}return d}function l_(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(r_(a)){if(i_(o))(c=-s/o)>=0&&c<=1&&(i[l++]=c)}else{var u=o*o-4*a*s;if(r_(u))i[0]=-o/(2*a);else if(u>0){var c,h=Zx(u),p=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}function u_(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function c_(t,e,n,r,i,o,a,s,l,u,c){var h,p,d,f,g,y=.005,v=1/0;t_[0]=l,t_[1]=u;for(var m=0;m<1;m+=.05)e_[0]=o_(t,n,i,a,m),e_[1]=o_(e,r,o,s,m),(f=Cm(t_,e_))<v&&(h=m,v=f);v=1/0;for(var x=0;x<32&&!(y<Kx);x++)p=h-y,d=h+y,e_[0]=o_(t,n,i,a,p),e_[1]=o_(e,r,o,s,p),f=Cm(e_,t_),p>=0&&f<v?(h=p,v=f):(n_[0]=o_(t,n,i,a,d),n_[1]=o_(e,r,o,s,d),g=Cm(n_,t_),d<=1&&g<v?(h=d,v=g):y*=.5);return c&&(c[0]=o_(t,n,i,a,h),c[1]=o_(e,r,o,s,h)),Zx(v)}function h_(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=o_(t,n,i,a,f),y=o_(e,r,o,s,f),v=g-u,m=y-c;h+=Math.sqrt(v*v+m*m),u=g,c=y}return h}function p_(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function d_(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function f_(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function g_(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function y_(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;t_[0]=a,t_[1]=s;for(var p=0;p<1;p+=.05){e_[0]=p_(t,n,i,p),e_[1]=p_(e,r,o,p),(y=Cm(t_,e_))<h&&(u=p,h=y)}h=1/0;for(var d=0;d<32&&!(c<Kx);d++){var f=u-c,g=u+c;e_[0]=p_(t,n,i,f),e_[1]=p_(e,r,o,f);var y=Cm(e_,t_);if(f>=0&&y<h)u=f,h=y;else{n_[0]=p_(t,n,i,g),n_[1]=p_(e,r,o,g);var v=Cm(n_,t_);g<=1&&v<h?(u=g,h=v):c*=.5}}return l&&(l[0]=p_(t,n,i,u),l[1]=p_(e,r,o,u)),Zx(h)}function v_(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=p_(t,n,i,p),f=p_(e,r,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}var m_=/cubic-bezier\(([0-9,\.e ]+)\)/;function x_(t){var e=t&&m_.exec(t);if(e){var n=e[1].split(","),r=+Qv(n[0]),i=+Qv(n[1]),o=+Qv(n[2]),a=+Qv(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:s_(0,r,o,1,t,s)&&o_(0,i,a,1,s[0])}}}var __=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||hm,this.ondestroy=t.ondestroy||hm,this.onrestart=t.onrestart||hm,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Rv(t)?t:Xx[t]||x_(t)},t}(),b_=function(t){this.value=t},w_=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new b_(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),S_=function(){function t(t){this._list=new w_,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,i=null;if(null==r[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new b_(e),a.key=t,n.insertEntry(a),r[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),M_={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 C_(t){return(t=Math.round(t))<0?0:t>255?255:t}function I_(t){return t<0?0:t>1?1:t}function T_(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?C_(parseFloat(e)/100*255):C_(parseInt(e,10))}function A_(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?I_(parseFloat(e)/100):I_(parseFloat(e))}function D_(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function E_(t,e,n){return t+(e-t)*n}function k_(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function N_(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var O_=new S_(20),L_=null;function P_(t,e){L_&&N_(L_,e),L_=O_.put(t,L_||e.slice())}function R_(t,e){if(t){e=e||[];var n=O_.get(t);if(n)return N_(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in M_)return N_(e,M_[r]),P_(t,e),e;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(k_(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),P_(t,e),e):void k_(e,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(k_(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),P_(t,e),e):void k_(e,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?k_(e,+u[0],+u[1],+u[2],1):k_(e,0,0,0,1);c=A_(u.pop());case"rgb":return u.length>=3?(k_(e,T_(u[0]),T_(u[1]),T_(u[2]),3===u.length?c:A_(u[3])),P_(t,e),e):void k_(e,0,0,0,1);case"hsla":return 4!==u.length?void k_(e,0,0,0,1):(u[3]=A_(u[3]),z_(u,e),P_(t,e),e);case"hsl":return 3!==u.length?void k_(e,0,0,0,1):(z_(u,e),P_(t,e),e);default:return}}k_(e,0,0,0,1)}}function z_(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=A_(t[1]),i=A_(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return k_(e=e||[],C_(255*D_(a,o,n+1/3)),C_(255*D_(a,o,n)),C_(255*D_(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function V_(t,e){var n=R_(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return G_(n,4===n.length?"rgba":"rgb")}}function B_(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=C_(E_(a[0],s[0],l)),n[1]=C_(E_(a[1],s[1],l)),n[2]=C_(E_(a[2],s[2],l)),n[3]=I_(E_(a[3],s[3],l)),n}}function F_(t,e,n,r){var i=R_(t);if(t)return i=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,p=((s-o)/6+l/2)/l;r===s?e=p-h:i===s?e=1/3+c-p:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(i),null!=e&&(i[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(i[1]=A_(n)),null!=r&&(i[2]=A_(r)),G_(z_(i),"rgba")}function j_(t,e){var n=R_(t);if(n&&null!=e)return n[3]=I_(e),G_(n,"rgba")}function G_(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function W_(t,e){var n=R_(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var H_=new S_(100);function U_(t){if(zv(t)){var e=H_.get(t);return e||(e=V_(t,-.1),H_.put(t,e)),e}if(Hv(t)){var n=Sv({},t);return n.colorStops=Dv(t.colorStops,(function(t){return{offset:t.offset,color:V_(t.color,-.1)}})),n}return t}var Y_=Math.round;function X_(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=R_(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var $_=1e-4;function Z_(t){return t<$_&&t>-$_}function q_(t){return Y_(1e3*t)/1e3}function K_(t){return Y_(1e4*t)/1e4}var J_={left:"start",right:"end",center:"middle",middle:"middle"};function Q_(t){return t&&!!t.image}function tb(t){return Q_(t)||function(t){return t&&!!t.svgElement}(t)}function eb(t){return"linear"===t.type}function nb(t){return"radial"===t.type}function rb(t){return t&&("linear"===t.type||"radial"===t.type)}function ib(t){return"url(#"+t+")"}function ob(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function ab(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*pm,i=$v(t.scaleX,1),o=$v(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),1===i&&1===o||l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+Y_(a*pm)+"deg, "+Y_(s*pm)+"deg)"),l.join(" ")}var sb=Jy.hasGlobalWindow&&Rv(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return"production"!==process.env.NODE_ENV&&xv("Base64 isn't natively supported in the current environment."),null},lb=Array.prototype.slice;function ub(t,e,n){return(e-t)*n+t}function cb(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=ub(e[o],n[o],r);return t}function hb(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function pb(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function db(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function fb(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:lb.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function gb(t){if(Tv(t)){var e=t.length;if(Tv(t[0])){for(var n=[],r=0;r<e;r++)n.push(lb.call(t[r]));return n}return lb.call(t)}return t}function yb(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function vb(t){return 4===t||5===t}function mb(t){return 1===t||2===t}var xb=[0,0,0,0],_b=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=e;if(Tv(e)){var l=function(t){return Tv(t&&t[0])?2:1}(e);a=l,(1===l&&!Bv(e[0])||2===l&&!Bv(e[0][0]))&&(o=!0)}else if(Bv(e)&&!Yv(e))a=0;else if(zv(e))if(isNaN(+e)){var u=R_(e);u&&(s=u,a=3)}else a=0;else if(Hv(e)){var c=Sv({},s);c.colorStops=Dv(e.colorStops,(function(t){return{offset:t.offset,color:R_(t.color)}})),eb(e)?a=4:nb(e)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Rv(n)?n:Xx[n]||x_(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=mb(r),l=vb(r),u=0;u<i;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==i-1?fb(h,p,r):l&&db(h.colorStops,p.colorStops))}if(!a&&5!==r&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-d:3===r?n[u].additiveValue=hb([],n[u].value,d,-1):mb(r)&&(n[u].additiveValue=1===r?hb([],n[u].value,d,-1):pb([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,p=this._lastFr,d=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var f=i.percent-r.percent,g=0===f?1:d((e-r.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var y=o?this._additiveValue:h?xb:t[c];if(!mb(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[c]=g<1?r.rawValue:i.rawValue;else if(mb(s))1===s?cb(y,r[a],i[a],g):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=ub(e[a][s],n[a][s],r)}}(y,r[a],i[a],g);else if(vb(s)){var v=r[a],m=i[a],x=4===s;t[c]={type:x?"linear":"radial",x:ub(v.x,m.x,g),y:ub(v.y,m.y,g),colorStops:Dv(v.colorStops,(function(t,e){var n=m.colorStops[e];return{offset:ub(t.offset,n.offset,g),color:yb(cb([],t.color,n.color,g))}})),global:m.global},x?(t[c].x2=ub(v.x2,m.x2,g),t[c].y2=ub(v.y2,m.y2,g)):t[c].r=ub(v.r,m.r,g)}else if(h)cb(y,r[a],i[a],g),o||(t[c]=yb(y));else{var _=ub(r[a],i[a],g);o?this._additiveValue=_:t[c]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;0===e?t[n]=t[n]+r:3===e?(R_(t[n],xb),hb(xb,xb,r,1),t[n]=yb(xb)):1===e?hb(t[n],t[n],r,1):2===e&&pb(t[n],t[n],r,1)},t}(),bb=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?xv("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Nv(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new _b(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=yb(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,gb(l),r),this._trackKeys.push(a)}s.addKeyframe(t,gb(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new __({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Dv(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=gb(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Nv(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();function wb(){return(new Date).getTime()}var Sb,Mb,Cb=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return h(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=wb()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Yx((function e(){t._running&&(Yx(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=wb(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=wb(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=wb()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new bb(t,e.loop);return this.addAnimator(n),n},e}(Nm),Ib=Jy.domSupported,Tb=(Mb={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Sb=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Dv(Sb,(function(t){var e=t.replace("mouse","pointer");return Mb.hasOwnProperty(e)?e:t}))}),Ab=["mousemove","mouseup"],Db=["pointermove","pointerup"],Eb=!1;function kb(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Nb(t){t&&(t.zrByTouch=!0)}function Ob(t,e){for(var n=e,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var Lb=function(t,e){this.stopPropagation=hm,this.stopImmediatePropagation=hm,this.preventDefault=hm,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Pb={mousedown:function(t){t=Zm(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Zm(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Zm(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ob(this,(t=Zm(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Eb=!0,t=Zm(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Eb||(t=Zm(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Nb(t=Zm(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Pb.mousemove.call(this,t),Pb.mousedown.call(this,t)},touchmove:function(t){Nb(t=Zm(this.dom,t)),this.handler.processGesture(t,"change"),Pb.mousemove.call(this,t)},touchend:function(t){Nb(t=Zm(this.dom,t)),this.handler.processGesture(t,"end"),Pb.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Pb.click.call(this,t)},pointerdown:function(t){Pb.mousedown.call(this,t)},pointermove:function(t){kb(t)||Pb.mousemove.call(this,t)},pointerup:function(t){Pb.mouseup.call(this,t)},pointerout:function(t){kb(t)||Pb.mouseout.call(this,t)}};Av(["click","dblclick","contextmenu"],(function(t){Pb[t]=function(e){e=Zm(this.dom,e),this.trigger(t,e)}}));var Rb={pointermove:function(t){kb(t)||Rb.mousemove.call(this,t)},pointerup:function(t){Rb.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function zb(t,e){var n=e.domHandlers;Jy.pointerEventsSupported?Av(Tb.pointer,(function(r){Bb(e,r,(function(e){n[r].call(t,e)}))})):(Jy.touchEventsSupported&&Av(Tb.touch,(function(r){Bb(e,r,(function(i){n[r].call(t,i),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),Av(Tb.mouse,(function(r){Bb(e,r,(function(i){i=$m(i),e.touching||n[r].call(t,i)}))})))}function Vb(t,e){function n(n){Bb(e,n,(function(r){r=$m(r),Ob(t,r.target)||(r=function(t,e){return Zm(t.dom,new Lb(t,e),!0)}(t,r),e.domHandlers[n].call(t,r))}),{capture:!0})}Jy.pointerEventsSupported?Av(Db,n):Jy.touchEventsSupported||Av(Ab,n)}function Bb(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,qm(t.domTarget,e,n,r)}function Fb(t){var e,n,r,i,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,r=o[a],i=t.listenerOpts[a],e.removeEventListener(n,r,i));t.mounted={}}var jb=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Gb=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new jb(e,Pb),Ib&&(r._globalHandlerScope=new jb(document,Rb)),zb(r,r._localHandlerScope),r}return h(e,t),e.prototype.dispose=function(){Fb(this._localHandlerScope),Ib&&Fb(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Ib&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Vb(this,e):Fb(e)}},e}(Nm),Wb=1;Jy.hasGlobalWindow&&(Wb=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Hb=Wb,Ub="#333",Yb="#ccc",Xb=nx,$b=5e-5;function Zb(t){return t>$b||t<-5e-5}var qb=[],Kb=[],Jb=[1,0,0,1,0,0],Qb=Math.abs,tw=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Zb(this.rotation)||Zb(this.x)||Zb(this.y)||Zb(this.scaleX-1)||Zb(this.scaleY-1)||Zb(this.skewX)||Zb(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Xb(n),t&&(e?ix(n,t,n):rx(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Xb(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(qb);var n=qb[0]<0?-1:1,r=qb[1]<0?-1:1,i=((qb[0]-n)*e+n)/qb[0]||0,o=((qb[1]-r)*e+r)/qb[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],lx(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],ix(Kb,t.invTransform,e),e=Kb);var n=this.originX,r=this.originY;(n||r)&&(Jb[4]=n,Jb[5]=r,ix(Kb,e,Jb),Kb[4]-=n,Kb[5]-=r,e=Kb),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&Tm(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&Tm(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Qb(t[0]-1)>1e-10&&Qb(t[3]-1)>1e-10?Math.sqrt(Qb(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){nw(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var d=n+a,f=r+s;e[4]=-d*i-h*f*o,e[5]=-f*o-p*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=p*i,e[2]=h*o,l&&ax(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),ew=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nw(t,e){for(var n=0;n<ew.length;n++){var r=ew[n];t[r]=e[r]}}var rw={};function iw(t,e){var n=rw[e=e||ev];n||(n=rw[e]=new S_(500));var r=n.get(t);return null==r&&(r=ov.measureText(t,e).width,n.put(t,r)),r}function ow(t,e,n,r){var i=iw(t,e),o=uw(e),a=sw(0,i,n),s=lw(0,o,r);return new xx(a,s,i,o)}function aw(t,e,n,r){var i=((t||"")+"").split("\n");if(1===i.length)return ow(i[0],e,n,r);for(var o=new xx(0,0,0,0),a=0;a<i.length;a++){var s=ow(i[a],e,n,r);0===a?o.copy(s):o.union(s)}return o}function sw(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function lw(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function uw(t){return iw("国",t)}function cw(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function hw(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=cw(r[0],n.width),u+=cw(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var pw="__zr_normal__",dw=ew.concat(["ignore"]),fw=Ev(ew,(function(t,e){return t[e]=!0,t}),{ignore:!1}),gw={},yw=new xx(0,0,0,0),vw=function(){function t(t){this.id=mv(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=yw;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(gw,n,u):hw(gw,n,u),i.x=gw.x,i.y=gw.y,o=gw.align,a=gw.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,p=void 0;"center"===c?(h=.5*u.width,p=.5*u.height):(h=cw(c[0],u.width),p=cw(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+p+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],l||(i.originX=-d[0],i.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Fx,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Yb:Ub},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&R_(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,G_(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Sv(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Fv(t))for(var n=Nv(t),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,t[i])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==pw)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,dw)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(pw,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===pw;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(Cv(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Fx),s}xv("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(r),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Fx)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Cv(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Cv(r,t),o=Cv(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Sv(n,i),i.textConfig&&Sv(e=e||{},i.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Sv({},r?this.textConfig:n.textConfig),Sv(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<dw.length;u++){var c=dw[u],h=i&&fw[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if(!t.__zr||t.__hostTarget){if(t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__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.")},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),"production"!==process.env.NODE_ENV&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new tw,this._attachComponent(t),this._textContent=t,this.markRedraw()}},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Sv(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Fx;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;if("production"===process.env.NODE_ENV||r){var i=new bb(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i}xv('Property "'+t+'" is not existed in element '+this.id)},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=Cv(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){mw(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){mw(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=mw(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Fx;var n={};function r(t,e,r){n[t+e+r]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+r+"' instead"),n[t+e+r]=!0)}function i(t,n,i,o){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(e,t,{get:function(){("production"!==process.env.NODE_ENV&&r(t,i,o),this[n])||a(this,this[n]=[]);return this[n]},set:function(e){"production"!==process.env.NODE_ENV&&r(t,i,o),this[i]=e[0],this[o]=e[1],this[n]=e,a(this,e)}})}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();function mw(t,e,n,r,i){var o=[];bw(t,"",t,e,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p<o.length;p++){var d=o[p];c&&d.done(c),h&&d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function xw(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function _w(t,e,n){if(Tv(e[n]))if(Tv(t[n])||(t[n]=[]),Gv(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),xw(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Tv(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?xw(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else xw(o,i,a);o.length=i.length}else t[n]=e[n]}function bw(t,e,n,r,i,o,a,s){for(var l=Nv(r),u=i.duration,c=i.delay,h=i.additive,p=i.setToFinal,d=!Fv(o),f=t.animators,g=[],y=0;y<l.length;y++){var v=l[y],m=r[v];if(null!=m&&null!=n[v]&&(d||o[v]))if(!Fv(m)||Tv(m)||Hv(m))g.push(v);else{if(e){s||(n[v]=m,t.updateDuringAnimation(e));continue}bw(t,v,n[v],m,i,o&&o[v],a,s)}else s||(n[v]=m,t.updateDuringAnimation(e),g.push(v))}var x=g.length;if(!h&&x)for(var _=0;_<f.length;_++){if((w=f[_]).targetName===e)if(w.stopTracks(g)){var b=Cv(f,w);f.splice(b,1)}}if(i.force||(g=kv(g,(function(t){return e=r[t],i=n[t],!(e===i||Tv(e)&&Tv(i)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(e,i));var e,i})),x=g.length),x>0||i.force&&!a.length){var w,S=void 0,M=void 0,C=void 0;if(s){M={},p&&(S={});for(_=0;_<x;_++){M[v=g[_]]=n[v],p?S[v]=r[v]:n[v]=r[v]}}else if(p){C={};for(_=0;_<x;_++){C[v=g[_]]=gb(n[v]),_w(n,r,v)}}(w=new bb(n,!1,!1,h?kv(f,(function(t){return t.targetName===e})):null)).targetName=e,i.scope&&(w.scope=i.scope),p&&S&&w.whenWithKeys(0,S,g),C&&w.whenWithKeys(0,C,g),w.whenWithKeys(null==u?500:u,s?M:r,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}Iv(vw,Nm),Iv(vw,tw);var ww=vw,Sw=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return h(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),"production"!==process.env.NODE_ENV&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=Cv(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=Cv(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new xx(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(xx.applyTransform(e,s,l),(i=i||e.clone()).union(e)):(i=i||s.clone()).union(s)}}return i||e},e}(ww);Sw.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 Mw={},Cw={};var Iw,Tw=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new Ux,o=n.renderer||"canvas";if(Mw[o]||(o=Nv(Mw)[0]),"production"!==process.env.NODE_ENV&&!Mw[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Mw[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=Jy.node||Jy.worker||s?null:new Gb(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?Jy.touchEventsSupported:!!c)&&(l=$v(n.pointerSize,44)),this.handler=new kx(i,a,u,a.root,l),this.animation=new Cb({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return W_(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=W_(e[i].color,1);return(n/=r)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=wb();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=wb();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Sw&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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(t){delete Cw[t]}(this.id))},t}();function Aw(t,e){var n=new Tw(mv(),t,e);return Cw[n.id]=n,n}var Dw=1e-4,Ew=20;function kw(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Nw(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return zv(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Ow(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Ew),t=(+t).toFixed(e),n?t:+t}function Lw(t){return t.sort((function(t,e){return t-e})),t}function Pw(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Rw(t)}function Rw(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function zw(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Vw(t,e){var n=Math.max(Pw(t),Pw(e)),r=t+e;return n>Ew?r:Ow(r,n)}var Bw=9007199254740991;function Fw(t){var e=2*Math.PI;return(t%e+e)%e}function jw(t){return t>-Dw&&t<Dw}var Gw=/^(?:(\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 Ww(t){if(t instanceof Date)return t;if(zv(t)){var e=Gw.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Hw(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Uw(t,e){var n=Hw(t),r=Math.pow(10,n),i=t/r;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+t.toFixed(n<0?-n:0):t}function Yw(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function Xw(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function $w(t){var e=parseFloat(t);return e==t&&(0!==e||!zv(t)||t.indexOf("x")<=0)?e:NaN}function Zw(t){return!isNaN($w(t))}function qw(){return Math.round(9*Math.random())}function Kw(t,e){return 0===e?t:Kw(e,t%e)}function Jw(t,e){return null==t?e:null==e?t:t*e/Kw(t,e)}var Qw="[ECharts] ",tS={},eS="undefined"!=typeof console&&console.warn&&console.log;function nS(t,e,n){if(eS){if(n){if(tS[e])return;tS[e]=!0}console[t](Qw+e)}}function rS(t,e){nS("warn",t,e)}function iS(t,e){nS("error",t,e)}function oS(t){"production"!==process.env.NODE_ENV&&nS("warn","DEPRECATED: "+t,!0)}function aS(t,e,n){"production"!==process.env.NODE_ENV&&oS((n?"["+n+"]":"")+t+" is deprecated, use "+e+" instead.")}function sS(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if("production"!==process.env.NODE_ENV){var r=function(t){return void 0===t?"undefined":t===1/0?"Infinity":t===-1/0?"-Infinity":Yv(t)?"NaN":t instanceof Date?"Date("+t.toISOString()+")":Rv(t)?"function () { ... }":Uv(t)?t+"":null};n=Dv(t,(function(t){if(zv(t))return t;var e=r(t);if(null!=e)return e;if("undefined"==typeof JSON||!JSON.stringify)return"?";try{return JSON.stringify(t,(function(t,e){var n=r(e);return null==n?e:n}))}catch(t){return"?"}})).join(" ")}return n}function lS(t){throw new Error(t)}function uS(t,e,n){return(e-t)*n+t}var cS="series\0",hS="\0_ec_\0";function pS(t){return t instanceof Array?t:null==t?[]:[t]}function dS(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}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(t){return!Fv(t)||Pv(t)||t instanceof Date?t:t.value}function yS(t){return Fv(t)&&!(t instanceof Array)}function vS(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=am();Av(e,(function(t,n){Fv(t)?"production"!==process.env.NODE_ENV&&(null==t.id||wS(t.id)||bS(t.id),null==t.name||wS(t.name)||bS(t.name)):e[n]=null}));var s,l,u=function(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||MS(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(t,a,n);return(r||i)&&function(t,e,n,r){Av(r,(function(i,o){if(i&&null!=i.id){var a=xS(i.id),s=n.get(a);if(null!=s){var l=t[s];Jv(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}(u,t,a,e),r&&function(t,e){Av(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!MS(n)&&!MS(o)&&mS("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}(u,e),r||i?function(t,e,n){Av(e,(function(e){if(e){for(var r,i=0;(r=t[i])&&(r.newOption||MS(r.existing)||r.existing&&null!=e.id&&!mS("id",e,r.existing));)i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}(u,e,i):o&&function(t,e){Av(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=am(),Av(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),Av(s,(function(t){var e=t.newOption;Jv(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),Av(s,(function(t,e){var n=t.existing,r=t.newOption,i=t.keyInfo;if(Fv(r)){if(i.name=null!=r.name?xS(r.name):n?n.name:cS+e,n)i.id=xS(n.id);else if(null!=r.id)i.id=xS(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,t)}})),u}function mS(t,e,n){var r=_S(e[t],null),i=_S(n[t],null);return null!=r&&null!=i&&r===i}function xS(t){if("production"!==process.env.NODE_ENV&&null==t)throw new Error;return _S(t,"")}function _S(t,e){return null==t?e:zv(t)?t:Bv(t)||Vv(t)?t+"":e}function bS(t){"production"!==process.env.NODE_ENV&&rS("`"+t+"` is invalid id or name. Must be a string or number.")}function wS(t){return Vv(t)||Zw(t)}function SS(t){var e=t.name;return!(!e||!e.indexOf(cS))}function MS(t){return t&&null!=t.id&&0===xS(t.id).indexOf(hS)}function CS(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Pv(e.dataIndex)?Dv(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Pv(e.name)?Dv(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function IS(){var t="__ec_inner_"+TS++;return function(e){return e[t]||(e[t]={})}}var TS=qw();function AS(t,e,n){var r=DS(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(e,r){var i=NS(t,r,e,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function DS(t,e){var n;if(zv(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=am(),o={},a=!1;return Av(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Cv(e.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[l]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var ES={useDefault:!0,enableAll:!1,enableNone:!1},kS={useDefault:!1,enableAll:!0,enableNone:!0};function NS(t,e,n,r){r=r||ES;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(Jv(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Jv(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function OS(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function LS(t,e){var n=am(),r=[];return Av(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function PS(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Bv(r))return Ow(f=uS(n||0,r,i),o?Math.max(Pw(n||0),Pw(r)):e);if(zv(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(i<1&&s?s:l)[c];else{var p=s&&s[c]?s[c]:0,d=l[c],f=uS(p,d,i);a[c]=Ow(f,o?Math.max(Pw(p),Pw(d)):e)}}return a}var RS=".",zS="___EC__COMPONENT__CONTAINER___",VS="___EC__EXTENDED_CLASS___";function BS(t){var e={main:"",sub:""};if(t){var n=t.split(RS);e.main=n[0]||"",e.sub=n[1]||""}return e}function FS(t,e){t.$constructor=t,t.extend=function(t){"production"!==process.env.NODE_ENV&&Av(e,(function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")}));var n,r,i=this;return Rv(r=i)&&/^class\s/.test(Function.prototype.toString.call(r))?n=function(t){function e(){return t.apply(this,arguments)||this}return h(e,t),e}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},function(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}(n,this)),Sv(n.prototype,t),n[VS]=!0,n.extend=this.extend,n.superCall=WS,n.superApply=HS,n.superClass=i,n}}function jS(t,e){t.extend=e.extend}var GS=Math.round(10*Math.random());function WS(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function HS(t,e,n){return this.superClass.prototype[e].apply(t,n)}function US(t){var e={};t.registerClass=function(t){var n,r=t.type||t.prototype.type;if(r){Jv(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),t.prototype.type=r;var i=BS(r);if(i.sub){if(i.sub!==zS){var o=function(t){var n=e[t.main];n&&n[zS]||((n=e[t.main]={})[zS]=!0);return n}(i);o[i.sub]=t}}else"production"!==process.env.NODE_ENV&&e[i.main]&&console.warn(i.main+" exists."),e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[zS]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=BS(t),r=[],i=e[n.main];return i&&i[zS]?Av(i,(function(t,e){e!==zS&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=BS(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return Av(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=BS(t),r=e[n.main];return r&&r[zS]}}function YS(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&Cv(r,s)>=0||i&&Cv(i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var XS=YS([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),$S=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return XS(this,t,e)},t}(),ZS=new S_(50);function qS(t){if("string"==typeof t){var e=ZS.get(t);return e&&e.image}return t}function KS(t,e,n,r,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=ZS.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?!QS(e=o.image)&&o.pending.push(a):((e=ov.loadImage(t,JS,JS)).__zrImageSrc=t,ZS.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function JS(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function QS(t){return t&&t.width&&t.height}var tM=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function eM(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=nM(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=rM(o[a],i);return o.join("\n")}function nM(t,e,n,r){var i=Sv({},r=r||{});i.font=e,n=$v(n,"..."),i.maxIterations=$v(r.maxIterations,2);var o=i.minChar=$v(r.minChar,0);i.cnCharWidth=iw("国",e);var a=i.ascCharWidth=iw("a",e);i.placeholder=$v(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=iw(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function rM(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=iw(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?iM(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;o=iw(t=t.substr(0,s),r)}return""===t&&(t=e.placeholder),t}function iM(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var oM=function(){},aM=function(t){this.tokens=[],t&&(this.tokens=t)},sM=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function lM(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=cw(l.width,r.width)+d;u.length>0&&f+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=f}else{var g=hM(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y<o.length;y++){var v=o[y],m=new oM;if(m.styleName=i,m.text=v,m.isLineHolder=!v&&!s,"number"==typeof l.width?m.width=l.width:m.width=a?a[y]:iw(v,c),y||h)u.push(new aM([m]));else{var x=(u[u.length-1]||(u[0]=new aM)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=m:(v||!_||s)&&x.push(m)}}}var uM=Ev(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function cM(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!uM[t]}function hM(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var p=t.charAt(h);if("\n"!==p){var d=iw(p,e),f=!r&&!cM(p);(o.length?c+d>n:i+c+d>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(c+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var pM="__zr_style_"+Math.round(10*Math.random()),dM={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}};dM[pM]=!0;var gM=["z","z2","invisible"],yM=["invisible"],vM=function(t){function e(e){return t.call(this,e)||this}var n;return h(e,t),e.prototype._init=function(e){for(var n=Nv(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){mM.copy(t.getBoundingRect()),t.transform&&mM.applyTransform(t.transform);return xM.width=e,xM.height=n,!mM.intersect(xM)}(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new xx(0,0,0,0)),e?xx.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new xx(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:Sv(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return lm(dM,t)},e.prototype.useStyle=function(t){t[pM]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[pM]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,gM)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Nv(u),h=0;h<c.length;h++){(d=c[h])in s&&(s[d]=s[d],this.style[d]=u[d])}var p=Nv(s);for(h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?yM:gM;for(h=0;h<f.length;h++){d=f[h];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Sv(t,e),t},e.prototype.getAnimationStyleProps=function(){return fM},e.initDefaultProps=((n=e.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|Fx)),e}(ww),mM=new xx(0,0,0,0),xM=new xx(0,0,0,0);var _M=vM,bM=Math.min,wM=Math.max,SM=Math.sin,MM=Math.cos,CM=2*Math.PI,IM=dm(),TM=dm(),AM=dm();function DM(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=bM(i,r[0]),o=wM(o,r[0]),a=bM(a,r[1]),s=wM(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function EM(t,e,n,r,i,o){i[0]=bM(t,n),i[1]=bM(e,r),o[0]=wM(t,n),o[1]=wM(e,r)}var kM=[],NM=[];function OM(t,e,n,r,i,o,a,s,l,u){var c=l_,h=o_,p=c(t,n,i,a,kM);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=h(t,n,i,a,kM[d]);l[0]=bM(f,l[0]),u[0]=wM(f,u[0])}p=c(e,r,o,s,NM);for(d=0;d<p;d++){var g=h(e,r,o,s,NM[d]);l[1]=bM(g,l[1]),u[1]=wM(g,u[1])}l[0]=bM(t,l[0]),u[0]=wM(t,u[0]),l[0]=bM(a,l[0]),u[0]=wM(a,u[0]),l[1]=bM(e,l[1]),u[1]=wM(e,u[1]),l[1]=bM(s,l[1]),u[1]=wM(s,u[1])}function LM(t,e,n,r,i,o,a,s){var l=f_,u=p_,c=wM(bM(l(t,n,i),1),0),h=wM(bM(l(e,r,o),1),0),p=u(t,n,i,c),d=u(e,r,o,h);a[0]=bM(t,i,p),a[1]=bM(e,o,d),s[0]=wM(t,i,p),s[1]=wM(e,o,d)}function PM(t,e,n,r,i,o,a,s,l){var u=Am,c=Dm,h=Math.abs(i-o);if(h%CM<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(IM[0]=MM(i)*n+t,IM[1]=SM(i)*r+e,TM[0]=MM(o)*n+t,TM[1]=SM(o)*r+e,u(s,IM,TM),c(l,IM,TM),(i%=CM)<0&&(i+=CM),(o%=CM)<0&&(o+=CM),i>o&&!a?o+=CM:i<o&&a&&(i+=CM),a){var p=o;o=i,i=p}for(var d=0;d<o;d+=Math.PI/2)d>i&&(AM[0]=MM(d)*n+t,AM[1]=SM(d)*r+e,u(s,AM,s),c(l,AM,l))}var RM={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zM=[],VM=[],BM=[],FM=[],jM=[],GM=[],WM=Math.min,HM=Math.max,UM=Math.cos,YM=Math.sin,XM=Math.abs,$M=Math.PI,ZM=2*$M,qM="undefined"!=typeof Float32Array,KM=[];function JM(t){return Math.round(t/$M*1e8)/1e8%2*$M}function QM(t,e){var n=JM(t[0]);n<0&&(n+=ZM);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=ZM?i=n+ZM:e&&n-i>=ZM?i=n-ZM:!e&&n>i?i=n+(ZM-JM(n-i)):e&&n<i&&(i=n-(ZM-JM(i-n))),t[0]=n,t[1]=i}var tC=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=XM(n/Hb/t)||0,this._uy=XM(n/Hb/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(RM.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=XM(t-this._xi),r=XM(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(RM.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(RM.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(RM.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),KM[0]=r,KM[1]=i,QM(KM,o),r=KM[0];var a=(i=KM[1])-r;return this.addData(RM.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=UM(i)*n+t,this._yi=YM(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(RM.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(RM.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!qM||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();qM&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,qM&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){BM[0]=BM[1]=jM[0]=jM[1]=Number.MAX_VALUE,FM[0]=FM[1]=GM[0]=GM[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=n=e[t],o=r=e[t+1]),a){case RM.M:n=i=e[t++],r=o=e[t++],jM[0]=i,jM[1]=o,GM[0]=i,GM[1]=o;break;case RM.L:EM(n,r,e[t],e[t+1],jM,GM),n=e[t++],r=e[t++];break;case RM.C:OM(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],jM,GM),n=e[t++],r=e[t++];break;case RM.Q:LM(n,r,e[t++],e[t++],e[t],e[t+1],jM,GM),n=e[t++],r=e[t++];break;case RM.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],d=e[t++]+p;t+=1;var f=!e[t++];s&&(i=UM(p)*c+l,o=YM(p)*h+u),PM(l,u,c,h,p,d,f,jM,GM),n=UM(d)*c+l,r=YM(d)*h+u;break;case RM.R:EM(i=n=e[t++],o=r=e[t++],i+e[t++],o+e[t++],jM,GM);break;case RM.Z:n=i,r=o}Am(BM,BM,jM),Dm(FM,FM,GM)}return 0===t&&(BM[0]=BM[1]=FM[0]=FM[1]=0),new xx(BM[0],BM[1],FM[0]-BM[0],FM[1]-BM[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var p=t[h++],d=1===h;d&&(a=i=t[h],s=o=t[h+1]);var f=-1;switch(p){case RM.M:i=a=t[h++],o=s=t[h++];break;case RM.L:var g=t[h++],y=(x=t[h++])-o;(XM(D=g-i)>n||XM(y)>r||h===e-1)&&(f=Math.sqrt(D*D+y*y),i=g,o=x);break;case RM.C:var v=t[h++],m=t[h++],x=(g=t[h++],t[h++]),_=t[h++],b=t[h++];f=h_(i,o,v,m,g,x,_,b,10),i=_,o=b;break;case RM.Q:f=v_(i,o,v=t[h++],m=t[h++],g=t[h++],x=t[h++],10),i=g,o=x;break;case RM.A:var w=t[h++],S=t[h++],M=t[h++],C=t[h++],I=t[h++],T=t[h++],A=T+I;h+=1,d&&(a=UM(I)*M+w,s=YM(I)*C+S),f=HM(M,C)*WM(ZM,Math.abs(T)),i=UM(A)*M+w,o=YM(A)*C+S;break;case RM.R:a=i=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case RM.Z:var D=a-i;y=s-o;f=Math.sqrt(D*D+y*y),i=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,p=this.data,d=this._ux,f=this._uy,g=this._len,y=e<1,v=0,m=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_<g;){var b=p[_++],w=1===_;switch(w&&(n=i=p[_],r=o=p[_+1]),b!==RM.L&&x>0&&(t.lineTo(c,h),x=0),b){case RM.M:n=i=p[_++],r=o=p[_++],t.moveTo(i,o);break;case RM.L:a=p[_++],s=p[_++];var S=XM(a-i),M=XM(s-o);if(S>d||M>f){if(y){if(v+($=l[m++])>u){var C=(u-v)/$;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}v+=$}t.lineTo(a,s),i=a,o=s,x=0}else{var I=S*S+M*M;I>x&&(c=a,h=s,x=I)}break;case RM.C:var T=p[_++],A=p[_++],D=p[_++],E=p[_++],k=p[_++],N=p[_++];if(y){if(v+($=l[m++])>u){u_(i,T,D,k,C=(u-v)/$,zM),u_(o,A,E,N,C,VM),t.bezierCurveTo(zM[1],VM[1],zM[2],VM[2],zM[3],VM[3]);break t}v+=$}t.bezierCurveTo(T,A,D,E,k,N),i=k,o=N;break;case RM.Q:T=p[_++],A=p[_++],D=p[_++],E=p[_++];if(y){if(v+($=l[m++])>u){g_(i,T,D,C=(u-v)/$,zM),g_(o,A,E,C,VM),t.quadraticCurveTo(zM[1],VM[1],zM[2],VM[2]);break t}v+=$}t.quadraticCurveTo(T,A,D,E),i=D,o=E;break;case RM.A:var O=p[_++],L=p[_++],P=p[_++],R=p[_++],z=p[_++],V=p[_++],B=p[_++],F=!p[_++],j=P>R?P:R,G=XM(P-R)>.001,W=z+V,H=!1;if(y)v+($=l[m++])>u&&(W=z+V*(u-v)/$,H=!0),v+=$;if(G&&t.ellipse?t.ellipse(O,L,P,R,B,z,W,F):t.arc(O,L,j,z,W,F),H)break t;w&&(n=UM(z)*P+O,r=YM(z)*R+L),i=UM(W)*P+O,o=YM(W)*R+L;break;case RM.R:n=i=p[_],r=o=p[_+1],a=p[_++],s=p[_++];var U=p[_++],Y=p[_++];if(y){if(v+($=l[m++])>u){var X=u-v;t.moveTo(a,s),t.lineTo(a+WM(X,U),s),(X-=U)>0&&t.lineTo(a+U,s+WM(X,Y)),(X-=Y)>0&&t.lineTo(a+HM(U-X,0),s+Y),(X-=U)>0&&t.lineTo(a,s+HM(Y-X,0));break t}v+=$}t.rect(a,s,U,Y);break;case RM.Z:if(y){var $;if(v+($=l[m++])>u){C=(u-v)/$;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}v+=$}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=RM,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function eC(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-r)/(t-n))*o-a+(t*r-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function nC(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;return!(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)&&c_(t,e,n,r,i,o,a,s,u,c,null)<=h/2}function rC(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)&&y_(t,e,n,r,i,o,s,l,null)<=u/2}var iC=2*Math.PI;function oC(t){return(t%=iC)<0&&(t+=iC),t}var aC=2*Math.PI;function sC(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%aC<1e-4)return!0;if(o){var h=r;r=oC(i),i=oC(h)}else r=oC(r),i=oC(i);r>i&&(i+=aC);var p=Math.atan2(l,s);return p<0&&(p+=aC),p>=r&&p<=i||p+aC>=r&&p+aC<=i}function lC(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var uC=tC.CMD,cC=2*Math.PI,hC=1e-4;var pC=[-1,-1,-1],dC=[-1,-1];function fC(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c,h=s_(e,r,o,s,u,pC);if(0===h)return 0;for(var p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var v=pC[y],m=0===v||1===v?.5:1;o_(t,n,i,a,v)<l||(d<0&&(d=l_(e,r,o,s,dC),dC[1]<dC[0]&&d>1&&(c=void 0,c=dC[0],dC[0]=dC[1],dC[1]=c),f=o_(e,r,o,s,dC[0]),d>1&&(g=o_(e,r,o,s,dC[1]))),2===d?v<dC[0]?p+=f<e?m:-m:v<dC[1]?p+=g<f?m:-m:p+=s<g?m:-m:v<dC[0]?p+=f<e?m:-m:p+=s<f?m:-m)}return p}function gC(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=function(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(r_(o))i_(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(r_(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,h=Zx(u),p=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(i[l++]=c),p>=0&&p<=1&&(i[l++]=p)}}return l}(e,r,o,s,pC);if(0===l)return 0;var u=f_(e,r,o);if(u>=0&&u<=1){for(var c=0,h=p_(e,r,o,u),p=0;p<l;p++){var d=0===pC[p]||1===pC[p]?.5:1;p_(t,n,i,pC[p])<a||(pC[p]<u?c+=h<e?d:-d:c+=o<h?d:-d)}return c}d=0===pC[0]||1===pC[0]?.5:1;return p_(t,n,i,pC[0])<a?0:o<e?d:-d}function yC(t,e,n,r,i,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);pC[0]=-l,pC[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=cC-1e-4){r=0,i=cC;var c=o?1:-1;return a>=pC[0]+t&&a<=pC[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=cC,i+=cC);for(var p=0,d=0;d<2;d++){var f=pC[d];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=cC+g),(g>=r&&g<=i||g+cC>=r&&g+cC<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function vC(t,e,n,r,i){for(var o,a,s,l,u=t.data,c=t.len(),h=0,p=0,d=0,f=0,g=0,y=0;y<c;){var v=u[y++],m=1===y;switch(v===uC.M&&y>1&&(n||(h+=lC(p,d,f,g,r,i))),m&&(f=p=u[y],g=d=u[y+1]),v){case uC.M:p=f=u[y++],d=g=u[y++];break;case uC.L:if(n){if(eC(p,d,u[y],u[y+1],e,r,i))return!0}else h+=lC(p,d,u[y],u[y+1],r,i)||0;p=u[y++],d=u[y++];break;case uC.C:if(n){if(nC(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],e,r,i))return!0}else h+=fC(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],r,i)||0;p=u[y++],d=u[y++];break;case uC.Q:if(n){if(rC(p,d,u[y++],u[y++],u[y],u[y+1],e,r,i))return!0}else h+=gC(p,d,u[y++],u[y++],u[y],u[y+1],r,i)||0;p=u[y++],d=u[y++];break;case uC.A:var x=u[y++],_=u[y++],b=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var C=!!(1-u[y++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):h+=lC(p,d,o,a,r,i);var I=(r-x)*w/b+x;if(n){if(sC(x,_,w,S,S+M,C,e,I,i))return!0}else h+=yC(x,_,w,S,S+M,C,I,i);p=Math.cos(S+M)*b+x,d=Math.sin(S+M)*w+_;break;case uC.R:if(f=p=u[y++],g=d=u[y++],o=f+u[y++],a=g+u[y++],n){if(eC(f,g,o,g,e,r,i)||eC(o,g,o,a,e,r,i)||eC(o,a,f,a,e,r,i)||eC(f,a,f,g,e,r,i))return!0}else h+=lC(o,g,o,a,r,i),h+=lC(f,a,f,g,r,i);break;case uC.Z:if(n){if(eC(p,d,f,g,e,r,i))return!0}else h+=lC(p,d,f,g,r,i);p=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<hC)||(h+=lC(p,d,f,g,r,i)||0),0!==h}var mC=Mv({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},dM),xC={style:Mv({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fM.style)},_C=ew.concat(["invisible","culling","z","z2","zlevel","parent"]),bC=function(t){function e(e){return t.call(this,e)||this}var n;return h(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<_C.length;++s)i[_C[s]]=this[_C[s]];i.__dirty|=Fx}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Nv(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?Sv(this.style,a):this.useStyle(a):"shape"===o?Sv(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(zv(t)){var e=W_(t,0);return e>.5?Ub:e>.2?"#eee":Yb}if(t)return Yb}return Ub},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(zv(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===W_(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~jx},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new tC(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&jx)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,r){return vC(t,e,!0,n,r)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return vC(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=jx,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:Sv(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&jx)},e.prototype.createStyle=function(t){return lm(mC,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Sv({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Sv({},r.shape),Sv(s,n.shape)):(s=Sv({},i?this.shape:r.shape),Sv(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Sv({},this.shape);for(var u={},c=Nv(s),h=0;h<c.length;h++){var p=c[h];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return xC},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return h(n,e),n.prototype.getDefaultStyle=function(){return _v(t.style)},n.prototype.getDefaultShape=function(){return _v(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|Fx|jx)),e}(_M),wC=bC,SC=Mv({strokeFirst:!0,font:ev,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},mC),MC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return lm(SC,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=aw(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(_M);MC.prototype.type="tspan";var CC=MC,IC=Mv({x:0,y:0},dM),TC={style:Mv({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fM.style)};var AC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.createStyle=function(t){return lm(IC,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return TC},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new xx(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(_M);AC.prototype.type="image";var DC=AC;var EC=Math.round;function kC(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(EC(2*r)===EC(2*i)&&(t.x1=t.x2=OC(r,s,!0)),EC(2*o)===EC(2*a)&&(t.y1=t.y2=OC(o,s,!0)),t):t}}function NC(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=OC(r,s,!0),t.y=OC(i,s,!0),t.width=Math.max(OC(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(OC(i+a,s,!1)-t.y,0===a?0:1),t):t}}function OC(t,e,n){if(!e)return t;var r=EC(2*t);return(r+EC(e))%2==0?r/2:(r+(n?1:-1))/2}var LC=function(){this.x=0,this.y=0,this.width=0,this.height=0},PC={},RC=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultShape=function(){return new LC},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=NC(PC,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?function(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(wC);RC.prototype.type="rect";var zC=RC,VC={fill:"#000"},BC={style:Mv({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)},FC=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=VC,n.attr(e),n}return h(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,XC(t=this.style),Av(t.rich,XC),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new xx(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(r=r||t.clone()).union(t)):(r=r||a.clone()).union(a)}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||VC},e.prototype.setTextContent=function(t){if("production"!==process.env.NODE_ENV)throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Sv(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Nv(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Sv(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return BC},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||ev,n=t.padding,r=function(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=uw(o),l=$v(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width,p=(n=null==h||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?hM(t,e.font,h,"breakAll"===r,0).lines:[]).length*l,d=$v(e.height,p);if(p>d&&c){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=h)for(var g=nM(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<n.length;y++)n[y]=rM(n[y],g);var v=d,m=0;for(y=0;y<n.length;y++)m=Math.max(iw(n[y],o),m);null==h&&(h=m);var x=m;return i&&(v+=i[0]+i[2],x+=i[1]+i[3],h+=i[1]+i[3]),u&&(x=h),{lines:n,height:d,outerWidth:x,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:p,width:h}}(KC(t),t),i=JC(t),o=!!t.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,u=r.lines,c=r.lineHeight,h=this._defaultStyle,p=t.x||0,d=t.y||0,f=t.align||h.align||"left",g=t.verticalAlign||h.verticalAlign||"top",y=p,v=lw(d,r.contentHeight,g);if(i||n){var m=sw(p,s,f),x=lw(d,a,g);i&&this._renderBackground(t,t,m,x,s,a)}v+=c/2,n&&(y=qC(p,f,n),"top"===g?v+=n[0]:"bottom"===g&&(v-=n[2]));for(var _=0,b=!1,w=(ZC("fill"in t?t.fill:(b=!0,h.fill))),S=($C("stroke"in t?t.stroke:o||h.autoStroke&&!b?null:(_=2,h.stroke))),M=t.textShadowBlur>0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=r.calculatedLineHeight,T=0;T<u.length;T++){var A=this._getOrCreateChild(CC),D=A.createStyle();A.useStyle(D),D.text=u[T],D.x=y,D.y=v,f&&(D.textAlign=f),D.textBaseline="middle",D.opacity=t.opacity,D.strokeFirst=!0,M&&(D.shadowBlur=t.textShadowBlur||0,D.shadowColor=t.textShadowColor||"transparent",D.shadowOffsetX=t.textShadowOffsetX||0,D.shadowOffsetY=t.textShadowOffsetY||0),D.stroke=S,D.fill=w,S&&(D.lineWidth=t.lineWidth||_,D.lineDash=t.lineDash,D.lineDashOffset=t.lineDashOffset||0),D.font=e,UC(D,t),v+=c,C&&A.setBoundingRect(new xx(sw(D.x,t.width,D.textAlign),lw(D.y,I,D.textBaseline),l,I))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new sM;if(null!=t&&(t+=""),!t)return n;for(var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=tM.lastIndex=0;null!=(r=tM.exec(t));){var u=r.index;u>l&&lM(n,t.substring(l,u),e,s),lM(n,r[2],e,s,r[1]),l=tM.lastIndex}l<t.length&&lM(n,t.substring(l,t.length),e,s);var c=[],h=0,p=0,d=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;function y(t,e,n){t.width=e,t.lineHeight=n,h+=n,p=Math.max(p,e)}t:for(var v=0;v<n.lines.length;v++){for(var m=n.lines[v],x=0,_=0,b=0;b<m.tokens.length;b++){var w=(N=m.tokens[b]).styleName&&e.rich[N.styleName]||{},S=N.textPadding=w.padding,M=S?S[1]+S[3]:0,C=N.font=w.font||e.font;N.contentHeight=uw(C);var I=$v(w.height,N.contentHeight);if(N.innerHeight=I,S&&(I+=S[0]+S[2]),N.height=I,N.lineHeight=Zv(w.lineHeight,e.lineHeight,I),N.align=w&&w.align||e.align,N.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&h+N.lineHeight>o){b>0?(m.tokens=m.tokens.slice(0,b),y(m,_,x),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var T=w.width,A=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))N.percentWidth=T,c.push(N),N.contentWidth=iw(N.text,C);else{if(A){var D=w.backgroundColor,E=D&&D.image;E&&QS(E=qS(E))&&(N.width=Math.max(N.width,E.width*I/E.height))}var k=f&&null!=i?i-_:null;null!=k&&k<N.width?!A||k<M?(N.text="",N.width=N.contentWidth=0):(N.text=eM(N.text,k-M,C,e.ellipsis,{minChar:e.truncateMinChar}),N.width=N.contentWidth=iw(N.text,C)):N.contentWidth=iw(N.text,C)}N.width+=M,_+=N.width,w&&(x=Math.max(x,N.lineHeight))}y(m,_,x)}for(n.outerWidth=n.width=$v(i,p),n.outerHeight=n.height=$v(o,h),n.contentHeight=h,n.contentWidth=p,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),v=0;v<c.length;v++){var N,O=(N=c[v]).percentWidth;N.width=parseInt(O,10)/100*n.width}return n}(KC(t),t),n=e.width,r=e.outerWidth,i=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=t.verticalAlign||l.verticalAlign,h=sw(a,r,u),p=lw(s,i,c),d=h,f=p;o&&(d+=o[3],f+=o[0]);var g=d+n;JC(t)&&this._renderBackground(t,t,h,p,r,i);for(var y=!!t.backgroundColor,v=0;v<e.lines.length;v++){for(var m=e.lines[v],x=m.tokens,_=x.length,b=m.lineHeight,w=m.width,S=0,M=d,C=g,I=_-1,T=void 0;S<_&&(!(T=x[S]).align||"left"===T.align);)this._placeToken(T,t,b,f,M,"left",y),w-=T.width,M+=T.width,S++;for(;I>=0&&"right"===(T=x[I]).align;)this._placeToken(T,t,b,f,C,"right",y),w-=T.width,C-=T.width,I--;for(M+=(n-(M-d)-(g-C)-w)/2;S<=I;)T=x[S],this._placeToken(T,t,b,f,M+T.width/2,"center",y),M+=T.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2),!t.isLineHolder&&JC(s)&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(i=qC(i,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var p=this._getOrCreateChild(CC),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,y=0,v=ZC("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=$C("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(y=2,f.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||ev,d.opacity=Zv(s.opacity,e.opacity,1),UC(d,s),m&&(d.lineWidth=Zv(s.lineWidth,e.lineWidth,y),d.lineDash=$v(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=m),v&&(d.fill=v);var _=t.contentWidth,b=t.contentHeight;p.setBoundingRect(new xx(sw(d.x,_,d.textAlign),lw(d.y,b,d.textBaseline),_,b))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,p=u&&u.image,d=u&&!p,f=t.borderRadius,g=this;if(d||t.lineHeight||c&&h){(a=this._getOrCreateChild(zC)).useStyle(a.createStyle()),a.style.fill=null;var y=a.shape;y.x=n,y.y=r,y.width=i,y.height=o,y.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=$v(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(DC)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=r,v.width=i,v.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=$v(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Zv(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return YC(t)&&(e=[t.fontStyle,t.fontWeight,HC(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Qv(e)||t.textFont||t.font},e}(_M),jC={left:!0,right:1,center:1},GC={top:1,bottom:1,middle:1},WC=["fontStyle","fontWeight","fontSize","fontFamily"];function HC(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Qy+"px":t+"px":t}function UC(t,e){for(var n=0;n<WC.length;n++){var r=WC[n],i=e[r];null!=i&&(t[r]=i)}}function YC(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function XC(t){if(t){t.font=FC.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||jC[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||GC[n]?n:"top",t.padding&&(t.padding=Kv(t.padding))}}function $C(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ZC(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function qC(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function KC(t){var e=t.text;return null!=e&&(e+=""),e}function JC(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var QC=FC,tI=IS(),eI=function(t,e,n,r){if(r){var i=tI(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse((function(r){var i=tI(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"}))}},nI=1,rI={},iI=IS(),oI=IS(),aI=0,sI=1,lI=2,uI=["emphasis","blur","select"],cI=["normal","emphasis","blur","select"],hI=10,pI=9,dI="highlight",fI="downplay",gI="select",yI="unselect",vI="toggleSelect";function mI(t){return null!=t&&"none"!==t}function xI(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function _I(t){xI(t,"emphasis",lI)}function bI(t){t.hoverState===lI&&xI(t,"normal",aI)}function wI(t){xI(t,"blur",sI)}function SI(t){t.hoverState===sI&&xI(t,"normal",aI)}function MI(t){t.selected=!0}function CI(t){t.selected=!1}function II(t,e,n){e(t,n)}function TI(t,e,n){II(t,e,n),t.isGroup&&t.traverse((function(t){II(t,e,n)}))}function AI(t,e){switch(e){case"emphasis":t.hoverState=lI;break;case"normal":t.hoverState=aI;break;case"blur":t.hoverState=sI;break;case"select":t.selected=!0}}function DI(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var i=n&&Cv(n,"select")>=0,o=!1;if(t instanceof wC){var a=iI(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(mI(s)||mI(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=Sv({},r),(u=Sv({},u)).fill=s):!mI(u.fill)&&mI(s)?(o=!0,r=Sv({},r),(u=Sv({},u)).fill=U_(s)):!mI(u.stroke)&&mI(l)&&(o||(r=Sv({},r),u=Sv({},u)),u.stroke=U_(l)),r.style=u}}if(r&&null==r.z2){o||(r=Sv({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:hI)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=Cv(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Sv({},n),a=Sv({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=Sv({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:pI)}return n}(this,0,n)}return n}function EI(t){t.stateProxy=DI;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=DI),n&&(n.stateProxy=DI)}function kI(t,e){!BI(t,e)&&!t.__highByOuter&&TI(t,_I)}function NI(t,e){!BI(t,e)&&!t.__highByOuter&&TI(t,bI)}function OI(t,e){t.__highByOuter|=1<<(e||0),TI(t,_I)}function LI(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&TI(t,bI)}function PI(t){TI(t,wI)}function RI(t){TI(t,SI)}function zI(t){TI(t,MI)}function VI(t){TI(t,CI)}function BI(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function FI(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=oI(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){SI(t)})),a&&n.push(i)),o.isBlured=!1})),Av(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function jI(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&RI(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(t){var i=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===e&&i)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&i&&"self"===e||wI(t)})),Tv(e))o(t.getData(),e);else if(Fv(e))for(var c=Nv(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),oI(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function GI(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){oI(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){wI(t)}))}}}function WI(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("production"===process.env.NODE_ENV||QI(l[u])||iS("param should be highDownDispatcher"),"self"===tI(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function HI(t){Av(t.getAllData(),(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?zI(e):VI(e)}))}))}function UI(t){var e=[];return t.eachSeries((function(t){Av(t.getAllData(),(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function YI(t,e,n){JI(t,!0),TI(t,EI),$I(t,e,n)}function XI(t,e,n,r){r?function(t){JI(t,!1)}(t):YI(t,e,n)}function $I(t,e,n){var r=tI(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var ZI=["emphasis","blur","select"],qI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function KI(t,e,n,r){n=n||"itemStyle";for(var i=0;i<ZI.length;i++){var o=ZI[i],a=e.getModel([o,n]);t.ensureState(o).style=r?r(a):a[qI[n]]()}}function JI(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function QI(t){return!(!t||!t.__highDownDispatcher)}function tT(t){var e=t.type;return e===gI||e===yI||e===vI}function eT(t){var e=t.type;return e===dI||e===fI}var nT=tC.CMD,rT=[[],[],[]],iT=Math.sqrt,oT=Math.atan2;function aT(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=nT.M,h=nT.C,p=nT.L,d=nT.R,f=nT.A,g=nT.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case p:r=1;break;case h:r=3;break;case g:r=2;break;case f:var y=e[4],v=e[5],m=iT(e[0]*e[0]+e[1]*e[1]),x=iT(e[2]*e[2]+e[3]*e[3]),_=oT(-e[1]/x,e[0]/m);l[i]*=m,l[i++]+=y,l[i]*=x,l[i++]+=v,l[i++]*=m,l[i++]*=x,l[i++]+=_,l[i++]+=_,o=i+=2;break;case d:s[0]=l[i++],s[1]=l[i++],Tm(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],Tm(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var b=rT[a];b[0]=l[i++],b[1]=l[i++],Tm(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}var sT=Math.sqrt,lT=Math.sin,uT=Math.cos,cT=Math.PI;function hT(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function pT(t,e){return(t[0]*e[0]+t[1]*e[1])/(hT(t)*hT(e))}function dT(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(pT(t,e))}function fT(t,e,n,r,i,o,a,s,l,u,c){var h=l*(cT/180),p=uT(h)*(t-n)/2+lT(h)*(e-r)/2,d=-1*lT(h)*(t-n)/2+uT(h)*(e-r)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=sT(f),s*=sT(f));var g=(i===o?-1:1)*sT((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=g*-s*p/a,m=(t+n)/2+uT(h)*y-lT(h)*v,x=(e+r)/2+lT(h)*y+uT(h)*v,_=dT([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=dT(b,w);if(pT(b,w)<=-1&&(S=cT),pT(b,w)>=1&&(S=0),S<0){var M=Math.round(S/cT*1e6)/1e6;S=2*cT+M%2*cT}c.addData(u,m,x,a,s,_,S,h,o)}var gT=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,yT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var vT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.applyTransform=function(t){},e}(wC);function mT(t){return null!=t.setData}function xT(t,e){var n=function(t){var e=new tC;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=tC.CMD,l=t.match(gT);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(yT)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=r,C=i,I=void 0,T=void 0;switch(h){case"l":r+=d[y++],i+=d[y++],p=s.L,e.addData(p,r,i);break;case"L":r=d[y++],i=d[y++],p=s.L,e.addData(p,r,i);break;case"m":r+=d[y++],i+=d[y++],p=s.M,e.addData(p,r,i),o=r,a=i,h="l";break;case"M":r=d[y++],i=d[y++],p=s.M,e.addData(p,r,i),o=r,a=i,h="L";break;case"h":r+=d[y++],p=s.L,e.addData(p,r,i);break;case"H":r=d[y++],p=s.L,e.addData(p,r,i);break;case"v":i+=d[y++],p=s.L,e.addData(p,r,i);break;case"V":i=d[y++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),r=d[y-2],i=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i),r+=d[y-2],i+=d[y-1];break;case"S":v=r,m=i,I=e.len(),T=e.data,n===s.C&&(v+=r-T[I-4],m+=i-T[I-3]),p=s.C,M=d[y++],C=d[y++],r=d[y++],i=d[y++],e.addData(p,v,m,M,C,r,i);break;case"s":v=r,m=i,I=e.len(),T=e.data,n===s.C&&(v+=r-T[I-4],m+=i-T[I-3]),p=s.C,M=r+d[y++],C=i+d[y++],r+=d[y++],i+=d[y++],e.addData(p,v,m,M,C,r,i);break;case"Q":M=d[y++],C=d[y++],r=d[y++],i=d[y++],p=s.Q,e.addData(p,M,C,r,i);break;case"q":M=d[y++]+r,C=d[y++]+i,r+=d[y++],i+=d[y++],p=s.Q,e.addData(p,M,C,r,i);break;case"T":v=r,m=i,I=e.len(),T=e.data,n===s.Q&&(v+=r-T[I-4],m+=i-T[I-3]),r=d[y++],i=d[y++],p=s.Q,e.addData(p,v,m,r,i);break;case"t":v=r,m=i,I=e.len(),T=e.data,n===s.Q&&(v+=r-T[I-4],m+=i-T[I-3]),r+=d[y++],i+=d[y++],p=s.Q,e.addData(p,v,m,r,i);break;case"A":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],fT(M=r,C=i,r=d[y++],i=d[y++],w,S,x,_,b,p=s.A,e);break;case"a":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],fT(M=r,C=i,r+=d[y++],i+=d[y++],w,S,x,_,b,p=s.A,e)}}"z"!==h&&"Z"!==h||(p=s.Z,e.addData(p),r=o,i=a),n=p}return e.toStatic(),e}(t),r=Sv({},e);return r.buildPath=function(t){if(mT(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){aT(n,t),this.dirtyShape()},r}function _T(t,e){return new vT(xT(t,e))}function bT(t,e){e=e||{};var n=new wC;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?aT(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var wT=function(){this.cx=0,this.cy=0,this.r=0},ST=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultShape=function(){return new wT},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(wC);ST.prototype.type="circle";var MT=ST,CT=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},IT=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultShape=function(){return new CT},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(wC);IT.prototype.type="ellipse";var TT=IT,AT=Math.PI,DT=2*AT,ET=Math.sin,kT=Math.cos,NT=Math.acos,OT=Math.atan2,LT=Math.abs,PT=Math.sqrt,RT=Math.max,zT=Math.min,VT=1e-4;function BT(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/PT(s*s+l*l),c=u*l,h=-u*s,p=t+c,d=e+h,f=n+c,g=r+h,y=(p+f)/2,v=(d+g)/2,m=f-p,x=g-d,_=m*m+x*x,b=i-o,w=p*g-f*d,S=(x<0?-1:1)*PT(RT(0,b*b*_-w*w)),M=(w*x-m*S)/_,C=(-w*m-x*S)/_,I=(w*x+m*S)/_,T=(-w*m+x*S)/_,A=M-y,D=C-v,E=I-y,k=T-v;return A*A+D*D>E*E+k*k&&(M=I,C=T),{cx:M,cy:C,x0:-c,y0:-h,x1:M*(i/b-1),y1:C*(i/b-1)}}function FT(t,e){var n,r=RT(e.r,0),i=RT(e.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,p=LT(l-s),d=p>DT&&p%DT;if(d>VT&&(p=d),r>VT)if(p>DT-VT)t.moveTo(u+r*kT(s),c+r*ET(s)),t.arc(u,c,r,s,l,!h),i>VT&&(t.moveTo(u+i*kT(l),c+i*ET(l)),t.arc(u,c,i,l,s,h));else{var f=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=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,E=r*kT(s),k=r*ET(s),N=i*kT(l),O=i*ET(l),L=p>VT;if(L){var P=e.cornerRadius;P&&(n=function(t){var e;if(Pv(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(P),f=n[0],g=n[1],y=n[2],v=n[3]);var R=LT(r-i)/2;if(m=zT(R,y),x=zT(R,v),_=zT(R,f),b=zT(R,g),M=w=RT(m,x),C=S=RT(_,b),(w>VT||S>VT)&&(I=r*kT(l),T=r*ET(l),A=i*kT(s),D=i*ET(s),p<AT)){var z=function(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,p=h*l-c*u;if(!(p*p<VT))return[t+(p=(c*(e-o)-h*(t-i))/p)*l,e+p*u]}(E,k,A,D,I,T,N,O);if(z){var V=E-z[0],B=k-z[1],F=I-z[0],j=T-z[1],G=1/ET(NT((V*F+B*j)/(PT(V*V+B*B)*PT(F*F+j*j)))/2),W=PT(z[0]*z[0]+z[1]*z[1]);M=zT(w,(r-W)/(G+1)),C=zT(S,(i-W)/(G-1))}}}if(L)if(M>VT){var H=zT(y,M),U=zT(v,M),Y=BT(A,D,E,k,r,H,h),X=BT(I,T,N,O,r,U,h);t.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),M<w&&H===U?t.arc(u+Y.cx,c+Y.cy,M,OT(Y.y0,Y.x0),OT(X.y0,X.x0),!h):(H>0&&t.arc(u+Y.cx,c+Y.cy,H,OT(Y.y0,Y.x0),OT(Y.y1,Y.x1),!h),t.arc(u,c,r,OT(Y.cy+Y.y1,Y.cx+Y.x1),OT(X.cy+X.y1,X.cx+X.x1),!h),U>0&&t.arc(u+X.cx,c+X.cy,U,OT(X.y1,X.x1),OT(X.y0,X.x0),!h))}else t.moveTo(u+E,c+k),t.arc(u,c,r,s,l,!h);else t.moveTo(u+E,c+k);if(i>VT&&L)if(C>VT){H=zT(f,C),Y=BT(N,O,I,T,i,-(U=zT(g,C)),h),X=BT(E,k,A,D,i,-H,h);t.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),C<S&&H===U?t.arc(u+Y.cx,c+Y.cy,C,OT(Y.y0,Y.x0),OT(X.y0,X.x0),!h):(U>0&&t.arc(u+Y.cx,c+Y.cy,U,OT(Y.y0,Y.x0),OT(Y.y1,Y.x1),!h),t.arc(u,c,i,OT(Y.cy+Y.y1,Y.cx+Y.x1),OT(X.cy+X.y1,X.cx+X.x1),h),H>0&&t.arc(u+X.cx,c+X.cy,H,OT(X.y1,X.x1),OT(X.y0,X.x0),!h))}else t.lineTo(u+N,c+O),t.arc(u,c,i,l,s,h);else t.lineTo(u+N,c+O)}else t.moveTo(u,c);t.closePath()}}}var jT=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},GT=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultShape=function(){return new jT},e.prototype.buildPath=function(t,e){FT(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(wC);GT.prototype.type="sector";var WT=GT,HT=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},UT=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultShape=function(){return new HT},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(wC);UT.prototype.type="ring";var YT=UT;function XT(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=function(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)Am(a,a,t[p]),Dm(s,s,t[p]);Am(a,a,r[0]),Dm(s,s,r[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)i=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(gm(t[p]));continue}i=t[p-1],o=t[p+1]}xm(u,o,i),bm(u,u,e);var g=Sm(f,i),y=Sm(f,o),v=g+y;0!==v&&(g/=v,y/=v),bm(c,u,-g),bm(h,u,y);var m=vm([],f,c),x=vm([],f,h);r&&(Dm(m,m,a),Am(m,m,s),Dm(x,x,a),Am(x,x,s)),l.push(m),l.push(x)}return n&&l.push(l.shift()),l}(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var $T=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},ZT=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultShape=function(){return new $T},e.prototype.buildPath=function(t,e){XT(t,e,!0)},e}(wC);ZT.prototype.type="polygon";var qT=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},KT=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qT},e.prototype.buildPath=function(t,e){XT(t,e,!1)},e}(wC);KT.prototype.type="polyline";var JT={},QT=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},tA=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new QT},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=kC(JT,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(wC);tA.prototype.type="line";var eA=[],nA=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function rA(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?a_:o_)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a_:o_)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?d_:p_)(t.x1,t.cpx1,t.x2,e),(n?d_:p_)(t.y1,t.cpy1,t.y2,e)]}var iA=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nA},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(g_(n,a,i,c,eA),a=eA[1],i=eA[2],g_(r,s,o,c,eA),s=eA[1],o=eA[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(u_(n,a,l,i,c,eA),a=eA[1],l=eA[2],i=eA[3],u_(r,s,u,o,c,eA),s=eA[1],u=eA[2],o=eA[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return rA(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=rA(this.shape,t,!0);return wm(e,e)},e}(wC);iA.prototype.type="bezier-curve";var oA=iA,aA=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},sA=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new aA},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(wC);sA.prototype.type="arc";var lA=sA,uA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return h(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),wC.prototype.getBoundingRect.call(this)},e}(wC),cA=uA,hA=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),pA=hA,dA=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return h(e,t),e}(pA),fA=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return h(e,t),e}(pA),gA=fA,yA=[0,0],vA=[0,0],mA=new ux,xA=new ux,_A=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ux;for(n=0;n<2;n++)this._axes[n]=new ux;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);ux.sub(r[0],n[1],n[0]),ux.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return mA.set(1/0,1/0),xA.set(0,0),!this._intersectCheckOneSide(this,t,mA,xA,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,mA,xA,r,-1)&&(n=!1,r)||r||ux.copy(e,n?mA:xA),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,yA),this._getProjMinMaxOnAxis(s,e._corners,vA),yA[1]<vA[0]||yA[0]>vA[1]){if(a=!1,i)return a;var u=Math.abs(vA[0]-yA[1]),c=Math.abs(yA[0]-vA[1]);Math.min(u,c)>r.len()&&(u<c?ux.scale(r,l,-u*o):ux.scale(r,l,c*o))}else if(n){u=Math.abs(vA[0]-yA[1]),c=Math.abs(yA[0]-vA[1]);Math.min(u,c)<n.len()&&(u<c?ux.scale(n,l,u*o):ux.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),bA=_A,wA=[],SA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return h(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new xx(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(wA)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(t,e))return!0}return!1},e}(_M),MA=SA,CA=IS();function IA(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=$v(r.duration,200),u=$v(r.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),Rv(c)&&(c=c(n,i)),Rv(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function TA(t,e,n,r,i,o,a){var s,l=!1;Rv(i)?(a=o,o=i,i=null):Fv(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=IA(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function AA(t,e,n,r,i,o){TA("update",t,e,n,r,i,o)}function DA(t,e,n,r,i,o){TA("enter",t,e,n,r,i,o)}function EA(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function kA(t,e,n,r,i,o){EA(t)||TA("leave",t,e,n,r,i,o)}function NA(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),kA(t,{style:{opacity:0}},e,n,r)}function OA(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||NA(t,e,n,r)})):NA(t,e,n,r)}function LA(t){CA(t).oldStyle=t.style}var PA=Math.max,RA=Math.min,zA={};var VA=function(t,e){var n=xT(t,e);return function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return h(e,t),e}(vT)};function BA(t,e){zA[t]=e}function FA(t){if(zA.hasOwnProperty(t))return zA[t]}function jA(t,e,n,r){var i=_T(t,e);return n&&("center"===r&&(n=WA(n,i.getBoundingRect())),UA(i,n)),i}function GA(t,e,n){var r=new DC({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(WA(e,i))}}});return r}function WA(t,e){var n,r=e.width/e.height,i=t.height*r;return n=i<=t.width?t.height:(i=t.width)/r,{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var HA=function(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new wC(e);return a.createPathProxy(),a.buildPath=function(t){if(mT(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function UA(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function YA(t,e){return kC(t,t,{lineWidth:e}),t}var XA=OC;function $A(t,e){for(var n=nx([]);t&&t!==e;)ix(n,t.getLocalTransform(),n),t=t.parent;return n}function ZA(t,e,n){return e&&!Tv(e)&&(e=tw.getLocalTransform(e)),n&&(e=lx([],e)),Tm([],t,e)}function qA(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=ZA(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function KA(t){return!t.isGroup}function JA(t,e,n){if(t&&e){var r=function(t){var e={};return t.traverse((function(t){KA(t)&&t.anid&&(e[t.anid]=t)})),e}(t);e.traverse((function(t){if(KA(t)&&t.anid){var e=r[t.anid];if(e){var o=i(t);t.attr(i(e)),AA(t,o,n,tI(t).dataIndex)}}}))}function i(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Sv({},t.shape)),e}}function QA(t,e){return Dv(t,(function(t){var n=t[0];n=PA(n,e.x),n=RA(n,e.x+e.width);var r=t[1];return r=PA(r,e.y),[n,r=RA(r,e.y+e.height)]}))}function tD(t,e,n){var r=Sv({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Mv(i,n),new DC(r)):jA(t.replace("path://",""),r,n,"center")}function eD(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(nD(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function nD(t,e,n,r,i,o,a,s){var l,u=n-t,c=r-e,h=a-i,p=s-o,d=rD(h,p,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-i,g=e-o,y=rD(f,g,u,c)/d;if(y<0||y>1)return!1;var v=rD(f,g,h,p)/d;return!(v<0||v>1)}function rD(t,e,n,r){return t*r-n*e}function iD(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=zv(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Av(Nv(l),(function(t){cm(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=tI(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Mv({content:r,formatterParams:s},i)}}function oD(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function aD(t,e){if(t)if(Pv(t))for(var n=0;n<t.length;n++)oD(t[n],e);else oD(t,e)}BA("circle",MT),BA("ellipse",TT),BA("sector",WT),BA("ring",YT),BA("polygon",ZT),BA("polyline",KT),BA("rect",zC),BA("line",tA),BA("bezierCurve",oA),BA("arc",lA);var sD=Object.freeze({__proto__:null,Arc:lA,BezierCurve:oA,BoundingRect:xx,Circle:MT,CompoundPath:cA,Ellipse:TT,Group:Sw,Image:DC,IncrementalDisplayable:MA,Line:tA,LinearGradient:dA,OrientedBoundingRect:bA,Path:wC,Point:ux,Polygon:ZT,Polyline:KT,RadialGradient:gA,Rect:zC,Ring:YT,Sector:WT,Text:QC,applyTransform:ZA,clipPointsByRect:QA,clipRectByRect:function(t,e){var n=PA(t.x,e.x),r=RA(t.x+t.width,e.x+e.width),i=PA(t.y,e.y),o=RA(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}},createIcon:tD,extendPath:function(t,e){return VA(t,e)},extendShape:function(t){return wC.extend(t)},getShapeClass:FA,getTransform:$A,groupTransition:JA,initProps:DA,isElementRemoved:EA,lineLineIntersect:nD,linePolygonIntersect:eD,makeImage:GA,makePath:jA,mergePath:HA,registerShape:BA,removeElement:kA,removeElementWithFadeOut:OA,resizePath:UA,setTooltipConfig:iD,subPixelOptimize:XA,subPixelOptimizeLine:YA,subPixelOptimizeRect:function(t){return NC(t.shape,t.shape,t.style),t},transformDirection:qA,traverseElements:aD,updateProps:AA}),lD={};function uD(t,e){for(var n=0;n<uI.length;n++){var r=uI[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function cD(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Rv(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<uI.length;u++){var c=uI[u],h=e[c];l[c]=$v(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function hD(t,e,n,r){n=n||lD;for(var i=t instanceof QC,o=!1,a=0;a<cI.length;a++){if((p=e[cI[a]])&&p.getShallow("show")){o=!0;break}}var s=i?t:t.getTextContent();if(o){i||(s||(s=new QC,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=cD(n,e),u=e.normal,c=!!u.getShallow("show"),h=dD(u,r&&r.normal,n,!1,!i);h.text=l.normal,i||t.setTextConfig(fD(u,n,!1));for(a=0;a<uI.length;a++){var p,d=uI[a];if(p=e[d]){var f=s.ensureState(d),g=!!$v(p.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=dD(p,r&&r[d],n,!0,!i),f.style.text=l[d],!i)t.ensureState(d).textConfig=fD(p,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(_D(s).setLabelText=function(t){var r=cD(n,e,t);uD(s,r)})}else s&&(s.ignore=!0);t.dirty()}function pD(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<uI.length;r++){var i=uI[r];n[i]=t.getModel([i,e])}return n}function dD(t,e,n,r,i){var o={};return function(t,e,n,r,i){n=n||lD;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||lD).rich;if(n){e=e||{};for(var r=Nv(n),i=0;i<r.length;i++){e[r[i]]=1}}t=t.parentModel}return e}(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);mD(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p);mD(t,e,s,n,r,i,!0,!1)}(o,t,n,r,i),e&&Sv(o,e),o}function fD(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=$v(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(r=t.getShallow("position")||(n?null:"inside"))&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var gD=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],yD=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],vD=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function mD(t,e,n,r,i,o,a,s){n=!i&&n||lD;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=$v(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||("production"!==process.env.NODE_ENV&&"auto"===u&&aS("color: 'auto'","color: 'inherit'"),u=l||null),"inherit"!==c&&"auto"!==c||("production"!==process.env.NODE_ENV&&"auto"===c&&aS("color: 'auto'","color: 'inherit'"),c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var p=$v(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var d=$v(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var f=$v(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),i||null!=h||s||(h=r&&r.defaultOpacity),null!=h&&(t.opacity=h),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<gD.length;g++){var y=gD[g];null!=(m=$v(e.getShallow(y),n[y]))&&(t[y]=m)}for(g=0;g<yD.length;g++){y=yD[g];null!=(m=e.getShallow(y))&&(t[y]=m)}if(null==t.verticalAlign){var v=e.getShallow("baseline");null!=v&&(t.verticalAlign=v)}if(!a||!r.disableBox){for(g=0;g<vD.length;g++){var m;y=vD[g];null!=(m=e.getShallow(y))&&(t[y]=m)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.backgroundColor&&aS("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||("production"!==process.env.NODE_ENV&&"auto"===t.borderColor&&aS("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}function xD(t,e){var n=e&&e.getModel("textStyle");return Qv([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var _D=IS();function bD(t,e,n,r){if(t){var i=_D(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function wD(t,e,n,r,i){var o=_D(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=$v(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?DA:AA)(t,{percent:1},r,e,null,(function(r){var u=PS(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=cD({labelDataIndex:e,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);uD(t,c)}))}}var SD,MD,CD=["textStyle","color"],ID=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],TD=new QC,AD=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(CD):null)},t.prototype.getFont=function(){return xD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ID.length;n++)e[ID[n]]=this.getShallow(ID[n]);return TD.useStyle(e),TD.update(),TD.getBoundingRect()},t}(),DD=AD,ED=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],kD=YS(ED),ND=function(){function t(){}return t.prototype.getLineStyle=function(t){return kD(this,t)},t}(),OD=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],LD=YS(OD),PD=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return LD(this,t,e)},t}(),RD=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){},t.prototype.mergeOption=function(t,e){bv(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null;return new t(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(_v(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!Jy.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length&&(!t[r]||null!=(n=n&&"object"==typeof n?n[t[r]]:null));r++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();FS(RD),SD=RD,MD=["__\0is_clz",GS++].join("_"),SD.prototype[MD]=!0,"production"!==process.env.NODE_ENV&&Jv(!SD.isInstance,'The method "is" can not be defined.'),SD.isInstance=function(t){return!(!t||!t[MD])},Iv(RD,ND),Iv(RD,PD),Iv(RD,$S),Iv(RD,DD);var zD=RD,VD=Math.round(10*Math.random());function BD(t){return[t||"",VD++].join("_")}function FD(t,e){return bv(bv({},t,!0),e,!0)}var jD="ZH",GD="EN",WD=GD,HD={},UD={},YD=Jy.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||WD).toUpperCase().indexOf(jD)>-1?jD:WD;function XD(t,e){t=t.toUpperCase(),UD[t]=new zD(e),HD[t]=e}function $D(t){return UD[t]}XD(GD,{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:". "}}}}),XD(jD,{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 ZD=1e3,qD=60*ZD,KD=60*qD,JD=24*KD,QD=365*JD,tE={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}"},eE="{yyyy}-{MM}-{dd}",nE={year:"{yyyy}",month:"{yyyy}-{MM}",day:eE,hour:eE+" "+tE.hour,minute:eE+" "+tE.minute,second:eE+" "+tE.second,millisecond:tE.none},rE=["year","month","day","hour","minute","second","millisecond"],iE=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function oE(t,e){return"0000".substr(0,e-(t+="").length)+t}function aE(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function sE(t){return t===aE(t)}function lE(t,e,n,r){var i=Ww(t),o=i[hE(n)](),a=i[pE(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[dE(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[fE(n)](),h=(c-1)%12+1,p=i[gE(n)](),d=i[yE(n)](),f=i[vE(n)](),g=(r instanceof zD?r:$D(r||YD)||UD[WD]).getModel("time"),y=g.get("month"),v=g.get("monthAbbr"),m=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,oE(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,oE(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,oE(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,m[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,oE(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,oE(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,oE(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,oE(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,oE(f,3)).replace(/{S}/g,f+"")}function uE(t,e){var n=Ww(t),r=n[pE(e)]()+1,i=n[dE(e)](),o=n[fE(e)](),a=n[gE(e)](),s=n[yE(e)](),l=0===n[vE(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,p=h&&1===i;return p&&1===r?"year":p?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function cE(t,e,n){var r=Bv(t)?Ww(t):t;switch(e=e||uE(t,n)){case"year":return r[hE(n)]();case"half-year":return r[pE(n)]()>=6?1:0;case"quarter":return Math.floor((r[pE(n)]()+1)/4);case"month":return r[pE(n)]();case"day":return r[dE(n)]();case"half-day":return r[fE(n)]()/24;case"hour":return r[fE(n)]();case"minute":return r[gE(n)]();case"second":return r[yE(n)]();case"millisecond":return r[vE(n)]()}}function hE(t){return t?"getUTCFullYear":"getFullYear"}function pE(t){return t?"getUTCMonth":"getMonth"}function dE(t){return t?"getUTCDate":"getDate"}function fE(t){return t?"getUTCHours":"getHours"}function gE(t){return t?"getUTCMinutes":"getMinutes"}function yE(t){return t?"getUTCSeconds":"getSeconds"}function vE(t){return t?"getUTCMilliseconds":"getMilliseconds"}function mE(t){return t?"setUTCFullYear":"setFullYear"}function xE(t){return t?"setUTCMonth":"setMonth"}function _E(t){return t?"setUTCDate":"setDate"}function bE(t){return t?"setUTCHours":"setHours"}function wE(t){return t?"setUTCMinutes":"setMinutes"}function SE(t){return t?"setUTCSeconds":"setSeconds"}function ME(t){return t?"setUTCMilliseconds":"setMilliseconds"}function CE(t){if(!Zw(t))return zv(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function IE(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var TE=Kv;function AE(t,e,n){function r(t){return t&&Qv(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Ww(t):t;if(!isNaN(+s))return lE(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return Vv(t)?r(t):Bv(t)&&i(t)?t+"":"-";var l=$w(t);return i(l)?CE(l):Vv(t)?r(t):"boolean"==typeof t?t+"":"-"}var DE=["a","b","c","d","e","f","g"],EE=function(t,e){return"{"+t+(null==e?"":e)+"}"};function kE(t,e,n){Pv(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=DE[o];t=t.replace(EE(a),EE(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(EE(DE[l],s),n?Gm(u):u)}return t}function NE(t,e){return e=e||"transparent",zv(t)?t:Fv(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function OE(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var LE=Av,PE=["left","right","top","bottom","width","height"],RE=[["width","left","right"],["height","top","bottom"]];function zE(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(h=a+y)>i||l.newline?(o+=s+n,a=0,h=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var VE=zE;function BE(t,e,n){n=TE(n||0);var r=e.width,i=e.height,o=Nw(t.left,r),a=Nw(t.top,i),s=Nw(t.right,r),l=Nw(t.bottom,i),u=Nw(t.width,r),c=Nw(t.height,i),h=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=r-s-p-o),isNaN(c)&&(c=i-l-h-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-p),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-p}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h}o=o||0,a=a||0,isNaN(u)&&(u=r-p-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var f=new xx(o+n[3],a+n[0],u,c);return f.margin=n,f}function FE(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new xx(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var h=BE(Mv({width:a.width,height:a.height},e),n,r),p=s?h.x-a.x:0,d=l?h.y-a.y:0;return"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw(),!0}function jE(t){var e=t.layoutMode||t.constructor.layoutMode;return Fv(e)?e:e?{type:e}:null}function GE(t,e,n){var r=n&&n.ignoreSize;!Pv(r)&&(r=[r,r]);var i=a(RE[0],0),o=a(RE[1],1);function a(n,i){var o={},a=0,u={},c=0;if(LE(n,(function(e){u[e]=t[e]})),LE(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var h=0;h<n.length;h++){var p=n[h];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){LE(t,(function(t){e[t]=n[t]}))}u(RE[0],t,i),u(RE[1],t,o)}function WE(t){return HE({},t)}function HE(t,e){return e&&t&&LE(PE,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}Lv(zE,"vertical"),Lv(zE,"horizontal");var UE=IS(),YE=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=BD("ec_cpt_model"),i}return h(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=jE(this),r=n?WE(t):{};bv(t,e.getTheme().get(this.mainType)),bv(t,this.getDefaultOption()),n&&GE(t,r,n)},e.prototype.mergeOption=function(t,e){bv(this.option,t,!0);var n=jE(this);n&&GE(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[VS])}(t))return t.defaultOption;var e=UE(this);if(!e.defaultOption){for(var n=[],r=t;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=bv(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return NS(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(zD);jS(YE,zD),US(YE),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=BS(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=BS(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}(YE),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,i,o){if(t.length){var a=function(t){var r={},i=[];return Av(t,(function(o){var a=n(r,o),s=function(t,e){var n=[];return Av(t,(function(t){Cv(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&i.push(o),Av(s,(function(t){Cv(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(r,t);Cv(e.successor,t)<0&&e.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,l=a.noEntryList,u={};for(Av(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),h=s[c],p=!!u[c];p&&(i.call(o,c,h.originalDeps.slice()),delete u[c]),Av(h.successor,p?f:d)}Av(u,(function(){var e="";throw"production"!==process.env.NODE_ENV&&(e=sS("Circular dependency may exists: ",u,t,r)),new Error(e)}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}}}(YE,(function(t){var e=[];Av(YE.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=Dv(e,(function(t){return BS(t).main})),"dataset"!==t&&Cv(e,"dataset")<=0&&e.unshift("dataset");return e}));var XE=YE,$E="";"undefined"!=typeof navigator&&($E=navigator.platform||"");var ZE="rgba(0, 0, 0, 0.2)",qE={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ZE,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ZE,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ZE,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ZE,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ZE,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ZE,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},KE=am(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),JE="original",QE="arrayRows",tk="objectRows",ek="keyedColumns",nk="typedArray",rk="unknown",ik="column",ok="row",ak={Must:1,Might:2,Not:3},sk=IS();function lk(t,e,n){var r={},i=ck(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=sk(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;Av(t=t.slice(),(function(e,n){var i=Fv(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]}));var p=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function f(t){var e=t.dimsDef;return e?e.length:1}return Av(t,(function(t,e){var n=t.name,i=f(t);if(null==o){var a=p.valueWayDim;d(r[n],a,i),d(l,a,i),p.valueWayDim+=i}else if(o===e)d(r[n],0,i),d(s,0,i);else{a=p.categoryWayDim;d(r[n],a,i),d(l,a,i),p.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function uk(t,e,n){var r={};if(!ck(t))return r;var i,o=e.sourceFormat,a=e.dimensionsDefine;o!==tk&&o!==ek||Av(a,(function(t,e){"name"===(Fv(t)?t.name:t)&&(i=e)}));var s=function(){for(var t={},r={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=pk(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===ak.Not;if(h&&null==t.v&&l!==i&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===ak.Not)&&(t.n=l),p(t)&&s[t.n]!==ak.Not)return t;h||(c===ak.Might&&null==r.v&&l!==i&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(r)?r:null}();if(s){r.value=[s.v];var l=null!=i?i:s.n;r.itemName=[l],r.seriesName=[l]}return r}function ck(t){if(!t.get("data",!0))return NS(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ES).models[0]}function hk(t,e){return pk(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function pk(t,e,n,r,i,o){var a,s,l;if(Gv(t))return ak.Not;if(r){var u=r[o];Fv(u)?(s=u.name,l=u.type):zv(u)&&(s=u)}if(null!=l)return"ordinal"===l?ak.Must:ak.Not;if(e===QE){var c=t;if(n===ok){for(var h=c[o],p=0;p<(h||[]).length&&p<5;p++)if(null!=(a=x(h[i+p])))return a}else for(p=0;p<c.length&&p<5;p++){var d=c[i+p];if(d&&null!=(a=x(d[o])))return a}}else if(e===tk){var f=t;if(!s)return ak.Not;for(p=0;p<f.length&&p<5;p++){if((v=f[p])&&null!=(a=x(v[s])))return a}}else if(e===ek){var g=t;if(!s)return ak.Not;if(!(h=g[s])||Gv(h))return ak.Not;for(p=0;p<h.length&&p<5;p++)if(null!=(a=x(h[p])))return a}else if(e===JE){var y=t;for(p=0;p<y.length&&p<5;p++){var v,m=gS(v=y[p]);if(!Pv(m))return ak.Not;if(null!=(a=x(m[o])))return a}}function x(t){var e=zv(t);return null!=t&&isFinite(t)&&""!==t?e?ak.Might:ak.Not:e&&"-"!==t?ak.Must:void 0}return ak.Not}var dk=am();var fk,gk,yk,vk=IS(),mk=IS(),xk=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=pS(this.get("color",!0)),i=this.get("colorLayer",!0);return bk(this,vk,r,i,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,vk)},t}();function _k(t,e,n,r){var i=pS(t.get(["aria","decal","decals"]));return bk(t,mk,i,null,e,n,r)}function bk(t,e,n,r,i,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}var wk="\0_ec_inner",Sk={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"},Mk={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"},Ck={};var Ik=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new zD(r),this._locale=new zD(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){"production"!==process.env.NODE_ENV&&(Jv(null!=t,"option is null/undefined"),Jv(1!==t[wk],"please use chart.getOption()"));var r=Dk(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Dk(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);"production"!==process.env.NODE_ENV&&Av(i,(function(t,e){if(!XE.hasClass(e)){var n=Sk[e];n&&!Ck[n]&&(iS("Component "+e+" is used but not imported.\nimport { "+n+" } from 'echarts/components';\necharts.use(["+n+"]);"),Ck[n]=!0)}})),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):yk(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Av(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=am(),s=e&&e.replaceMergeMainTypeMap;sk(this).datasetMap=am(),Av(t,(function(t,e){null!=t&&(XE.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?_v(t):bv(n[e],t,!0))})),s&&s.each((function(t,e){XE.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),XE.topologicalTravel(o,XE.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var r=dk.get(e);if(!r)return n;var i=r(t);if(!i)return n;if("production"!==process.env.NODE_ENV)for(var o=0;o<i.length;o++)Jv(MS(i[o]));return n.concat(i)}(this,e,pS(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=vS(a,o,l);(function(t,e,n){Av(t,(function(t){var r=t.newOption;Fv(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,r){return e.type?e.type:n?n.subType:r.determineSubType(t,e)}(e,r,t.existing,n))}))})(u,e,XE),n[e]=null,r.set(e,null),i.set(e,0);var c,h,p=[],d=[],f=0;Av(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=XE.getClass(e,t.keyInfo.subType,!o);if(!a){if("production"!==process.env.NODE_ENV){var s=t.keyInfo.subType,l=Mk[s];Ck[s]||(Ck[s]=!0,iS(l?"Series "+s+" is used but not imported.\nimport { "+l+" } from 'echarts/charts';\necharts.use(["+l+"]);":"Unknown series "+s))}return}if("tooltip"===e){if(c)return void("production"!==process.env.NODE_ENV&&(h||(rS("Currently only one tooltip component is allowed."),h=!0)));c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var u=Sv({componentIndex:n},t.keyInfo);Sv(r=new a(i,this,this,u),u),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(p.push(r.option),d.push(r),f++):(p.push(void 0),d.push(void 0))}),this),n[e]=p,r.set(e,d),i.set(e,f),"series"===e&&fk(this)}),this),this._seriesIndices||fk(this)},e.prototype.getOption=function(){var t=_v(this.option);return Av(t,(function(e,n){if(XE.hasClass(n)){for(var r=pS(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!MS(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[wk],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],Av(pS(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?Tk("id",i,a):null!=o?Tk("name",o,a):kv(a,(function(t){return!!t})),Ak(n,t)):[]},e.prototype.findComponents=function(t){var e,n=t.query,r=t.mainType,i=function(t){var e=r+"Index",n=r+"Id",i=r+"Name";return!t||null==t[e]&&null==t[n]&&null==t[i]?null:{mainType:r,index:t[e],id:t[n],name:t[i]}}(n),o=i?this.queryComponents(i):kv(this._componentsMap.get(r),(function(t){return!!t}));return e=Ak(o,t),t.filter?kv(e,t.filter):e},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Rv(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=zv(t)?r.get(t):Fv(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=_S(t,null);return kv(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return kv(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return kv(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){gk(this),Av(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){Av(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){gk(this),Av(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Av(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return gk(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){gk(this);var n=[];Av(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=am(n)},e.prototype.restoreData=function(t){fk(this);var e=this._componentsMap,n=[];e.each((function(t,e){XE.hasClass(e)&&n.push(e)})),XE.topologicalTravel(n,XE.getAllClassMainTypes(),(function(n){Av(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}(e,t)||e.restoreData()}))}))},e.internalField=(fk=function(t){var e=t._seriesIndices=[];Av(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=am(e)},gk=function(t){if("production"!==process.env.NODE_ENV&&!t._seriesIndices)throw new Error("Option should contains series.")},void(yk=function(t,e){t.option={},t.option[wk]=1,t._componentsMap=am({series:[]}),t._componentsCount=am();var n=e.aria;Fv(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;Av(e,(function(e,r){"colorLayer"===r&&n||XE.hasClass(r)||("object"==typeof e?t[r]=t[r]?bv(t[r],e,!1):_v(e):null==t[r]&&(t[r]=e))}))}(e,t._theme.option),bv(e,qE,!1),t._mergeOption(e,null)})),e}(zD);function Tk(t,e,n){if(Pv(e)){var r=am();return Av(e,(function(t){null!=t&&(null!=_S(t,null)&&r.set(t,!0))})),kv(n,(function(e){return e&&r.get(e[t])}))}var i=_S(e,null);return kv(n,(function(e){return e&&null!=i&&e[t]===i}))}function Ak(t,e){return e.hasOwnProperty("subType")?kv(t,(function(t){return t&&t.subType===e.subType})):t}function Dk(t){var e=am();return t&&Av(pS(t.replaceMerge),(function(t){"production"!==process.env.NODE_ENV&&Jv(XE.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Iv(Ik,xk);var Ek=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],kk=function(t){Av(Ek,(function(e){this[e]=Ov(t[e],t)}),this)},Nk={},Ok=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];Av(Nk,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){Av(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Nk[t]=e},t.get=function(t){return Nk[t]},t}(),Lk=/^(min|max)?(.+)$/,Pk=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Av(pS(t.series),(function(t){t&&t.data&&Gv(t.data)&&em(t.data)})),Av(pS(t.dataset),(function(t){t&&t.source&&Gv(t.source)&&em(t.source)}))),t=_v(t);var r=this._optionBackup,i=function(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((h||c)&&(t.options=t.media=null),i=t);c&&(Pv(u)?Av(u,(function(t){"production"!==process.env.NODE_ENV&&t&&!t.option&&Fv(t.query)&&Fv(t.query.option)&&iS("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),t&&t.option&&(t.query?o.push(t):r||(r=t))})):"production"!==process.env.NODE_ENV&&iS("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function p(t){Av(e,(function(e){e(t,n)}))}return p(i),Av(l,(function(t){return p(t)})),Av(o,(function(t){return p(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],_v(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=_v(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)Rk(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=Dv(s,(function(t){return _v(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function Rk(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return Av(t,(function(t,e){var n=e.match(Lk);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(r[a],t,o)||(i=!1)}})),i}var zk=Pk,Vk=Av,Bk=Fv,Fk=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jk(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Fk.length;n<r;n++){var i=Fk[n],o=e.normal,a=e.emphasis;o&&o[i]&&("production"!==process.env.NODE_ENV&&aS("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?bv(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&("production"!==process.env.NODE_ENV&&aS("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?bv(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function Gk(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&("production"!==process.env.NODE_ENV&&oS("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),n?(t[e].normal=t[e].emphasis=null,Mv(t[e],r)):t[e]=r),i&&("production"!==process.env.NODE_ENV&&oS(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Wk(t){Gk(t,"itemStyle"),Gk(t,"lineStyle"),Gk(t,"areaStyle"),Gk(t,"label"),Gk(t,"labelLine"),Gk(t,"upperLabel"),Gk(t,"edgeLabel")}function Hk(t,e){var n=Bk(t)&&t[e],r=Bk(n)&&n.textStyle;if(r){"production"!==process.env.NODE_ENV&&oS("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,o=fS.length;i<o;i++){var a=fS[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function Uk(t){t&&(Wk(t),Hk(t,"label"),t.emphasis&&Hk(t.emphasis,"label"))}function Yk(t){return Pv(t)?t:t?[t]:[]}function Xk(t){return(Pv(t)?t[0]:t)||{}}function $k(t,e){Vk(Yk(t.series),(function(t){Bk(t)&&function(t){if(Bk(t)){jk(t),Wk(t),Hk(t,"label"),Hk(t,"upperLabel"),Hk(t,"edgeLabel"),t.emphasis&&(Hk(t.emphasis,"label"),Hk(t.emphasis,"upperLabel"),Hk(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(jk(e),Uk(e));var n=t.markLine;n&&(jk(n),Uk(n));var r=t.markArea;r&&Uk(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!Gv(o))for(var a=0;a<o.length;a++)Uk(o[a]);Av(t.categories,(function(t){Wk(t)}))}if(i&&!Gv(i))for(a=0;a<i.length;a++)Uk(i[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)Uk(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)Pv(l[a])?(Uk(l[a][0]),Uk(l[a][1])):Uk(l[a])}"gauge"===t.type?(Hk(t,"axisLabel"),Hk(t,"title"),Hk(t,"detail")):"treemap"===t.type?(Gk(t.breadcrumb,"itemStyle"),Av(t.levels,(function(t){Wk(t)}))):"tree"===t.type&&Wk(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Vk(n,(function(e){Vk(Yk(t[e]),(function(t){t&&(Hk(t,"axisLabel"),Hk(t.axisPointer,"label"))}))})),Vk(Yk(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Hk(e,"axisLabel"),Hk(e&&e.axisPointer,"label")})),Vk(Yk(t.calendar),(function(t){Gk(t,"itemStyle"),Hk(t,"dayLabel"),Hk(t,"monthLabel"),Hk(t,"yearLabel")})),Vk(Yk(t.radar),(function(t){Hk(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name,"production"!==process.env.NODE_ENV&&oS("name property in radar component has been changed to axisName")),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap,"production"!==process.env.NODE_ENV&&oS("nameGap property in radar component has been changed to axisNameGap")),"production"!==process.env.NODE_ENV&&Vk(t.indicator,(function(t){t.text&&aS("text","name","radar.indicator")}))})),Vk(Yk(t.geo),(function(t){Bk(t)&&(Uk(t),Vk(Yk(t.regions),(function(t){Uk(t)})))})),Vk(Yk(t.timeline),(function(t){Uk(t),Gk(t,"label"),Gk(t,"itemStyle"),Gk(t,"controlStyle",!0);var e=t.data;Pv(e)&&Av(e,(function(t){Fv(t)&&(Gk(t,"label"),Gk(t,"itemStyle"))}))})),Vk(Yk(t.toolbox),(function(t){Gk(t,"iconStyle"),Vk(t.feature,(function(t){Gk(t,"iconStyle")}))})),Hk(Xk(t.axisPointer),"label"),Hk(Xk(t.tooltip).axisPointer,"label")}function Zk(t){t&&Av(qk,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var qk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Kk=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Jk=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Qk(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Jk.length;n++){var r=Jk[n][1],i=Jk[n][0];null!=e[r]&&(e[i]=e[r],"production"!==process.env.NODE_ENV&&aS(r,i))}}function tN(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&("production"!==process.env.NODE_ENV&&aS("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function eN(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,"production"!==process.env.NODE_ENV&&aS("downplay","blur","sunburst"))}function nN(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&nN(t[n].children,e)}function rN(t,e){$k(t,e),t.series=pS(t.series),Av(t.series,(function(t){if(Fv(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow,"production"!==process.env.NODE_ENV&&aS("clipOverflow","clip","line"));else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise,"production"!==process.env.NODE_ENV&&aS("clockWise","clockwise")),tN(t.label),(i=t.data)&&!Gv(i))for(var n=0;n<i.length;n++)tN(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&("production"!==process.env.NODE_ENV&&aS("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(t,"pointer.color");null!=r&&function(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){var i;if(Qk(t),Qk(t.backgroundStyle),Qk(t.emphasis),(i=t.data)&&!Gv(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(Qk(i[n]),Qk(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o,"production"!==process.env.NODE_ENV&&aS("highlightPolicy","emphasis.focus","sunburst"))),eN(t),nN(t.data,eN)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&("production"!==process.env.NODE_ENV&&aS("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&("production"!==process.env.NODE_ENV&&aS("mapType","map","map"),t.map=t.mapType),t.mapLocation&&("production"!==process.env.NODE_ENV&&oS("`mapLocation` is not used anymore."),Mv(t,t.mapLocation)));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&("production"!==process.env.NODE_ENV&&aS("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),Zk(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Av(Kk,(function(e){var n=t[e];n&&(Pv(n)||(n=[n]),Av(n,(function(t){Zk(t)})))}))}function iN(t){Av(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,p,d=a.get(e.stackedDimension,c);if(isNaN(d))return i;s?p=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var v=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&d>=0&&v>0||"samesign"===l&&d<=0&&v<0){d=Vw(d,v),f=v;break}}}return r[0]=d,r[1]=f,r}))}))}var oN,aN,sN,lN,uN,cN=function(t){this.data=t.data||(t.sourceFormat===ek?{}:[]),this.sourceFormat=t.sourceFormat||rk,this.seriesLayoutBy=t.seriesLayoutBy||ik,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&hk(this,n)===ak.Must&&(r.type="ordinal")}};function hN(t){return t instanceof cN}function pN(t,e,n){n=n||fN(t);var r=e.seriesLayoutBy,i=function(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:gN(i),startIndex:a,dimensionsDetectedCount:o};if(e===QE){var s=t;"auto"===r||null==r?yN((function(t){null!=t&&"-"!==t&&(zv(t)?null==a&&(a=1):a=0)}),n,s,10):a=Bv(r)?r:r?1:0,i||1!==a||(i=[],yN((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===ok?s.length:s[0]?s[0].length:null}else if(e===tk)i||(i=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return Nv(e)}(t));else if(e===ek)i||(i=[],Av(t,(function(t,e){i.push(e)})));else if(e===JE){var l=gS(t[0]);o=Pv(l)&&l.length||1}else e===nk&&"production"!==process.env.NODE_ENV&&Jv(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:gN(i),dimensionsDetectedCount:o}}(t,n,r,e.sourceHeader,e.dimensions);return new cN({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:_v(e)})}function dN(t){return new cN({data:t,sourceFormat:Gv(t)?nk:JE})}function fN(t){var e=rk;if(Gv(t))e=nk;else if(Pv(t)){0===t.length&&(e=QE);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(Pv(i)||Gv(i)){e=QE;break}if(Fv(i)){e=tk;break}}}}else if(Fv(t))for(var o in t)if(cm(t,o)&&Tv(t[o])){e=ek;break}return e}function gN(t){if(t){var e=am();return Dv(t,(function(t,n){var r={name:(t=Fv(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function yN(t,e,n,r){if(e===ok)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function vN(t){var e=t.sourceFormat;return e===tk||e===ek}var mN=function(){function t(t,e){var n=hN(t)?t:dN(t);this._source=n;var r=this._data=n.data;if(n.sourceFormat===nk){if("production"!==process.env.NODE_ENV&&null==e)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=r}uN(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;uN=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=lN[AN(a,s)];if("production"!==process.env.NODE_ENV&&Jv(c,"Invalide sourceFormat: "+a),Sv(t,c),a===nk)t.getItem=e,t.count=r,t.fillStorage=n;else{var h=bN(a,s);t.getItem=Ov(h,null,i,l,u);var p=MN(a,s);t.count=Ov(p,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;p<c;p++){var d=i[p*o+a];h[t+p]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[QE+"_"+ik]={pure:!0,appendData:i},t[QE+"_"+ok]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[tk]={pure:!0,appendData:i},t[ek]={pure:!0,appendData:function(t){var e=this._data;Av(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[JE]={appendData:i},t[nk]={persistent:!1,pure:!0,appendData:function(t){"production"!==process.env.NODE_ENV&&Jv(Gv(t),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},lN=t}(),t}(),xN=function(t,e,n,r){return t[r]},_N=((oN={})[QE+"_"+ik]=function(t,e,n,r){return t[r+e]},oN[QE+"_"+ok]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},oN[tk]=xN,oN[ek]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;if("production"!==process.env.NODE_ENV&&null==s)throw new Error;var l=t[s];o[a]=l?l[r]:null}return o},oN[JE]=xN,oN);function bN(t,e){var n=_N[AN(t,e)];return"production"!==process.env.NODE_ENV&&Jv(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var wN=function(t,e,n){return t.length},SN=((aN={})[QE+"_"+ik]=function(t,e,n){return Math.max(0,t.length-e)},aN[QE+"_"+ok]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},aN[tk]=wN,aN[ek]=function(t,e,n){var r=n[0].name;if("production"!==process.env.NODE_ENV&&null==r)throw new Error;var i=t[r];return i?i.length:0},aN[JE]=wN,aN);function MN(t,e){var n=SN[AN(t,e)];return"production"!==process.env.NODE_ENV&&Jv(n,'Do not support count on "'+t+'", "'+e+'".'),n}var CN=function(t,e,n){return t[e]},IN=((sN={})[QE]=CN,sN[tk]=function(t,e,n){return t[n]},sN[ek]=CN,sN[JE]=function(t,e,n){var r=gS(t);return r instanceof Array?r[e]:r},sN[nk]=CN,sN);function TN(t){var e=IN[t];return"production"!==process.env.NODE_ENV&&Jv(e,'Do not support get value on "'+t+'".'),e}function AN(t,e){return t===QE?t+"_"+e:t}function DN(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return TN(o)(r,a,s)}var l=r;return o===JE&&(l=gS(r)),l}}}var EN=/\{@(.+?)\}/g,kN=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=r&&Pv(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return Rv(i)?(s.status=e,s.dimensionIndex=r,i(s)):zv(i)?kE(i,s).replace(EN,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1),"production"!==process.env.NODE_ENV&&isNaN(i)&&iS("Invalide label formatter: @"+n+", only support @[0], @[1], @[2], ..."));var s=DN(a,t,i);if(o&&Pv(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return DN(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function NN(t){var e,n;return Fv(t)?t.type?n=t:"production"!==process.env.NODE_ENV&&console.warn("The return type of `formatTooltip` is not supported: "+sS(t)):e=t,{text:e,frag:n}}function ON(t){return new LN(t)}var LN=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(n?("production"!==process.env.NODE_ENV&&Jv(null!=n._outputDueEnd),this._dueEnd=n._outputDueEnd):("production"!==process.env.NODE_ENV&&Jv(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var p=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||p<d)){var f=this._progress;if(Pv(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],p,d,l,u);else this._doProgress(f,p,d,l,u)}this._dueIndex=d;var y=null!=this._settedOutputEnd?this._settedOutputEnd:d;"production"!==process.env.NODE_ENV&&Jv(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){PN.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:PN.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Pv(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){"production"!==process.env.NODE_ENV&&Jv(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),PN=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function RN(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Bv(t)||null==t||"-"===t||(t=+Ww(t)),null==t||""===t?NaN:+t)}var zN=am({number:function(t){return parseFloat(t)},time:function(t){return+Ww(t)},trim:function(t){return zv(t)?Qv(t):t}});function VN(t){return zN.get(t)}var BN={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},FN=function(){function t(t,e){if(!Bv(e)){var n="";"production"!==process.env.NODE_ENV&&(n='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),lS(n)}this._opFn=BN[t],this._rvalFloat=$w(e)}return t.prototype.evaluate=function(t){return Bv(t)?this._opFn(t,this._rvalFloat):this._opFn($w(t),this._rvalFloat)},t}(),jN=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Bv(t)?t:$w(t),r=Bv(e)?e:$w(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=zv(t),s=zv(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),GN=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=$w(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=$w(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function WN(t,e){return"eq"===t||"ne"===t?new GN("eq"===t,e):cm(BN,t)?new FN(t,e):null}var HN=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return RN(t,e)},t}();function UN(t){var e=t.sourceFormat;if(!KN(e)){var n="";"production"!==process.env.NODE_ENV&&(n="`getRawData` is not supported in source format "+e),lS(n)}return t.data}function YN(t){var e=t.sourceFormat,n=t.data;if(!KN(e)){var r="";"production"!==process.env.NODE_ENV&&(r="`cloneRawData` is not supported in source format "+e),lS(r)}if(e===QE){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===tk){for(i=[],o=0,a=n.length;o<a;o++)i.push(Sv({},n[o]));return i}}function XN(t,e,n){if(null!=n)return Bv(n)||!isNaN(n)&&!cm(e,n)?t[n]:cm(e,n)?e[n]:void 0}function $N(t){return _v(t)}var ZN=am();function qN(t,e,n,r){var i="";e.length||("production"!==process.env.NODE_ENV&&(i="Must have at least one upstream dataset."),lS(i)),Fv(t)||("production"!==process.env.NODE_ENV&&(i="transform declaration must be an object rather than "+typeof t+"."),lS(i));var o=t.type,a=ZN.get(o);a||("production"!==process.env.NODE_ENV&&(i='Can not find transform on type "'+o+'".'),lS(i));var s,l=Dv(e,(function(t){return function(t,e){var n=new HN,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==ik&&("production"!==process.env.NODE_ENV&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),lS(a));var s=[],l={},u=t.dimensionsDefine;if(u)Av(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";cm(l,n)&&("production"!==process.env.NODE_ENV&&(i='dimension name "'+n+'" duplicated.'),lS(i)),l[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=bN(i,ik);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,s,t)},n.getRawData=Ov(UN,null,t)),n.cloneRawData=Ov(YN,null,t);var p=MN(i,ik);n.count=Ov(p,null,r,o,s);var d=TN(i);n.retrieveValue=function(t,e){var n=h(r,o,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=Ov(XN,null,s,l),n.cloneAllDimensionInfo=Ov($N,null,s),n}(t,a)})),u=pS(a.transform({upstream:l[0],upstreamList:l,config:_v(t.config)}));if("production"!==process.env.NODE_ENV&&t.print){var c=Dv(u,(function(t){var e=null!=r?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+e+" ===","- transform result data:",sS(t.data),"- transform result dimensions:",sS(t.dimensions)].join("\n")})).join("\n");nS("log",c,s)}return Dv(u,(function(t,n){var r,i="";Fv(t)||("production"!==process.env.NODE_ENV&&(i="A transform should not return some empty results."),lS(i)),t.data||("production"!==process.env.NODE_ENV&&(i="Transform result data should be not be null or undefined"),lS(i)),KN(fN(t.data))||("production"!==process.env.NODE_ENV&&(i="Transform result data should be array rows or object rows."),lS(i));var o=e[0];if(o&&0===n&&!t.dimensions){var a=o.startIndex;a&&(t.data=o.data.slice(0,a).concat(t.data)),r={seriesLayoutBy:ik,sourceHeader:a,dimensions:o.metaRawOption.dimensions}}else r={seriesLayoutBy:ik,sourceHeader:0,dimensions:t.dimensions};return pN(t.data,r,null)}))}function KN(t){return t===QE||t===tk}var JN,QN="undefined",tO=typeof Uint32Array===QN?Array:Uint32Array,eO=typeof Uint16Array===QN?Array:Uint16Array,nO=typeof Int32Array===QN?Array:Int32Array,rO=typeof Float64Array===QN?Array:Float64Array,iO={float:rO,int:nO,ordinal:Array,number:Array,time:rO};function oO(t){return t>65535?tO:eO}function aO(t,e,n,r,i){var o=iO[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var sO=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=am()}return t.prototype.initData=function(t,e,n){"production"!==process.env.NODE_ENV&&Jv(Rv(t.getItem)&&Rv(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=JN[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=vN(r);this._dimensions=Dv(e,(function(t){return"production"!==process.env.NODE_ENV&&o&&Jv(null!=t.property),{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new iO[e||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=[1/0,-1/0]);for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){"production"!==process.env.NODE_ENV&&Jv(!this._indices,"appendData can only be called on raw data.");var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){aO(n,l,(d=r[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,p=0;p<i;p++){var d=r[p],f=JN.arrayRows.call(this,t[h]||u,d.property,h,p);n[p][c]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Dv(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),aO(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],p=t;p<e;p++){h=r.getItem(p,h);for(var d=0;d<a;d++){var f=i[d],g=this._dimValueGetter(h,l[d],p,d);f[p]=g;var y=s[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,r=this.count();n<r;n++){var i=this.get(t,n);isNaN(i)||(e+=i)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-r[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{t=new(n=oO(this._rawCount))(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(oO(n._rawCount))(r),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<r;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][p],c)}else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=c,h=e.apply(null,o)}h&&(i[s++]=p)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Nv(t),i=r.length;if(!i)return this;var o=e.count(),a=new(oO(e._rawCount))(o),s=0,l=r[0],u=t[l][0],c=t[l][1],h=e._chunks,p=!1;if(!e._indices){var d=0;if(1===i){for(var f=h[r[0]],g=0;g<n;g++){((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=d),d++}p=!0}else if(2===i){f=h[r[0]];var y=h[r[1]],v=t[r[1]][0],m=t[r[1]][1];for(g=0;g<n;g++){var x=f[g],_=y[g];(x>=u&&x<=c||isNaN(x))&&(_>=v&&_<=m||isNaN(_))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===i)for(g=0;g<o;g++){var b=e.getRawIndex(g);((x=h[r[0]][b])>=u&&x<=c||isNaN(x))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<i;S++){var M=r[S];((x=h[M][b])<t[M][0]||x>t[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),p=0;p<o;p++)s[p]=r[e[p]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(i[0]=d,d=i);for(u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],v=r[f];v&&(v[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(oO(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+d)/2,y=0,v=d;v<f;v++){var m=a[C=this.getRawIndex(v)];isNaN(m)||(y+=m)}y/=f-d;var x=p,_=Math.min(p+u,s),b=p-1,w=a[c];n=-1,i=x;var S=-1,M=0;for(v=x;v<_;v++){var C;m=a[C=this.getRawIndex(v)];isNaN(m)?(M++,S<0&&(S=C)):(r=Math.abs((b-g)*(m-w)-(b-v)*(y-w)))>n&&(n=r,i=C)}M>0&&M<_-x&&(h[l++]=Math.min(S,i),i=Math.max(S,i)),h[l++]=i,c=i}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=[1/0,-1/0],h=new(oO(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(d+r(a,y)||0,u-1));l[v]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[p++]=v}return i._count=p,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r,i,o=new t,a=this._chunks,s=e&&Ev(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(r=a[l],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=_v(this._extent),t._rawExtent=_v(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return RN(t[r],this._dimensions[r])}JN={arrayRows:t,objectRows:function(t,e,n,r){return RN(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return RN(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),lO=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(cO(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=Gv(a=o.get("data",!0))?nk:JE,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},p=$v(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=$v(c.sourceHeader,h.sourceHeader),f=$v(c.dimensions,h.dimensions);t=p!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||f?[pN(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{t=[pN(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}"production"!==process.env.NODE_ENV&&Jv(t&&e),this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if("production"!==process.env.NODE_ENV&&Jv(null!=i||null!=r),null!=i){var o="";1!==t.length&&("production"!==process.env.NODE_ENV&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),hO(o))}var a,s=[],l=[];return Av(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||("production"!==process.env.NODE_ENV&&(n="Can not retrieve result by `fromTransformResult`: "+i),hO(n)),s.push(e),l.push(t._getVersionSign())})),r?e=function(t,e,n){var r=pS(t),i=r.length,o="";i||("production"!==process.env.NODE_ENV&&(o="If `transform` declared, it should at least contain one transform."),lS(o));for(var a=0,s=i;a<s;a++)e=qN(r[a],e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1));return e}(r,s,{datasetIndex:n.componentIndex}):null!=i&&(e=[(a=s[0],new cN({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:_v(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){"production"!==process.env.NODE_ENV&&Jv(cO(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];cO(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new sO).initData(new mN(e,t.length),t),i[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(cO(t)){var e=ck(t);return e?[e.getSourceManager()]:[]}return Dv(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?NS(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ES).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(cO(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function uO(t){t.option.transform&&em(t.option.transform)}function cO(t){return"series"===t.mainType}function hO(t){throw new Error(t)}var pO="line-height:1";function dO(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Gm(r+"")+"px;color:"+Gm(n)+";font-weight:"+Gm(i+""),valueStyle:"font-size:"+Gm(a+"")+"px;color:"+Gm(o)+";font-weight:"+Gm(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var fO=[0,10,20,30],gO=["","\n","\n\n","\n\n\n"];function yO(t,e){return e.type=t,e}function vO(t){return"section"===t.type}function mO(t){return vO(t)?_O:bO}function xO(t){if(vO(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return Av(t.blocks,(function(t){var n=xO(t);n>=e&&(e=n+ +(r&&(!n||vO(t)&&!t.noHeader)))})),e}return 0}function _O(t,e,n,r){var i,o=e.noHeader,a=(i=xO(e),{html:fO[i],richText:gO[i]}),s=[],l=e.blocks||[];Jv(!l||Pv(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(cm(c,u)){var h=new jN(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}Av(l,(function(n,i){var o=e.valueFormatter,l=mO(n)(o?Sv(Sv({},t),{valueFormatter:o}):t,n,i>0?a.html:0,r);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):SO(s.join(""),o?n:a.html);if(o)return p;var d=AE(e.header,"ordinal",t.useUTC),f=dO(r,t.renderMode).nameStyle;return"richText"===t.renderMode?MO(t,d,f)+a.richText+p:SO('<div style="'+f+";"+pO+';">'+Gm(d)+"</div>"+p,n)}function bO(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return Dv(t=Pv(t)?t:[t],(function(t,e){return AE(t,Pv(d)?d[e]:d,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),p=o?"":AE(l,"ordinal",u),d=e.valueType,f=a?[]:c(e.value,e.dataIndex),g=!s||!o,y=!s&&o,v=dO(r,i),m=v.nameStyle,x=v.valueStyle;return"richText"===i?(s?"":h)+(o?"":MO(t,p,m))+(a?"":function(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Pv(e)?e.join(" "):e,o)}(t,f,g,y,x)):SO((s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Gm(t)+"</span>"}(p,!s,m))+(a?"":function(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Pv(t)?t:[t],'<span style="'+o+";"+r+'">'+Dv(t,(function(t){return Gm(t)})).join(" ")+"</span>"}(f,g,y,x)),n)}}function wO(t,e,n,r,i,o){if(t)return mO(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function SO(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+pO+';">'+t+'<div style="clear:both"></div></div>'}function MO(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function CO(t,e){return NE(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function IO(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var TO=function(){function t(){this.richTextStyles={},this._nextStyleNameId=qw()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=function(t,e){var n=zv(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Gm(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Gm(r)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:e,type:t,renderMode:n,markerId:r});return zv(i)?i:("production"!==process.env.NODE_ENV&&Jv(r),this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Pv(e)?Av(e,(function(t){return Sv(n,t)})):Sv(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function AO(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),p=Pv(h),d=CO(o,a);if(c>1||p&&!c){var f=function(t,e,n,r,i){var o=e.getData(),a=Ev(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(yO("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Av(r,(function(t){c(DN(o,n,t),t)})):Av(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=DN(l,a,u[0]),n=g.type}else i=e=p?h[0]:h;var y=SS(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return yO("section",{header:v,noHeader:s||!y,sortParam:i,blocks:[yO("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Qv(x),value:e,valueType:n,dataIndex:a})].concat(r||[])})}var DO=IS();function EO(t,e){return t.getName(e)||t.getId(e)}var kO="__universalTransitionEnabled",NO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return h(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=ON({count:LO,reset:PO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(DO(this).sourceManager=new lO(this)).prepareSource();var r=this.getInitialData(t,n);zO(r,this),this.dataTask.context.data=r,"production"!==process.env.NODE_ENV&&Jv(r,"getInitialData returned invalid data."),DO(this).dataBeforeProcessed=r,OO(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=jE(this),r=n?WE(t):{},i=this.subType;XE.hasClass(i)&&(i+="Series"),bv(t,e.getTheme().get(this.subType)),bv(t,this.getDefaultOption()),dS(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&GE(t,r,n)},e.prototype.mergeOption=function(t,e){t=bv(this.option,t,!0),this.fillDataTextStyle(t.data);var n=jE(this);n&&GE(this.option,t,n);var r=DO(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);zO(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,DO(this).dataBeforeProcessed=i,OO(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!Gv(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&dS(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=BO(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return DO(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=BO(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}DO(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return am(t)},e.prototype.getSourceManager=function(){return DO(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return DO(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return AO({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Jy.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=xk.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=EO(i,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=Nv(t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[EO(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[kO])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){Fv(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l];s[h=EO(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=EO(t,c);i.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((r={})[h]=t.getRawIndex(c),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return XE.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(XE);function OO(t){var e=t.name;SS(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return Av(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function LO(t){return t.model.getRawData().count()}function PO(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),RO}function RO(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function zO(t,e){Av(sm(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,Lv(VO,e))}))}function VO(t,e){var n=BO(t);return n&&n.setOutputEnd((e||this).count()),e}function BO(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}Iv(NO,kN),Iv(NO,xk),jS(NO,XE);var FO=NO,jO=function(){function t(){this.group=new Sw,this.uid=BD("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();FS(jO),US(jO);var GO=jO;function WO(){var t=IS();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var HO=IS(),UO=WO(),YO=function(){function t(){this.group=new Sw,this.uid=BD("viewChart"),this.renderTask=ON({plan:ZO,reset:qO}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){if("production"!==process.env.NODE_ENV)throw new Error("render method must been implemented")},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i?$O(i,r,"emphasis"):"production"!==process.env.NODE_ENV&&iS("Unknown dataType "+r.dataType)},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i?$O(i,r,"normal"):"production"!==process.env.NODE_ENV&&iS("Unknown dataType "+r.dataType)},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){aD(this.group,t)},t.markUpdateMethod=function(t,e){HO(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function XO(t,e,n){t&&QI(t)&&("emphasis"===e?OI:LI)(t,n)}function $O(t,e,n){var r=CS(t,e),i=e&&null!=e.highlightKey?function(t){var e=rI[t];return null==e&&nI<=32&&(e=rI[t]=nI++),e}(e.highlightKey):null;null!=r?Av(pS(r),(function(e){XO(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){XO(t,n,i)}))}function ZO(t){return UO(t.model)}function qO(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&HO(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),KO[l]}FS(YO,["dispose"]),US(YO);var KO={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},JO=YO,QO="\0__throttleOriginMethod",tL="\0__throttleRate",eL="\0__throttleType";function nL(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];r=(new Date).getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,i=r-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(h,d):i>=0?h():c=setTimeout(h,-i),l=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function rL(t,e,n,r){var i=t[e];if(i){var o=i[QO]||i,a=i[eL];if(i[tL]!==n||a!==r){if(null==n||!r)return t[e]=o;(i=t[e]=nL(o,n,"debounce"===r))[QO]=o,i[eL]=r,i[tL]=n}return i}}function iL(t,e){var n=t[e];n&&n[QO]&&(n.clear&&n.clear(),t[e]=n[QO])}var oL=IS(),aL={itemStyle:YS(OD,!0),lineStyle:YS(ED,!0)},sL={lineStyle:"stroke",itemStyle:"fill"};function lL(t,e){var n=t.visualStyleMapper||aL[e];return n||(console.warn("Unknown style type '"+e+"'."),aL.itemStyle)}function uL(t,e){var n=t.visualDrawType||sL[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var cL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=lL(t,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=uL(t,r),l=o[s],u=Rv(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Rv(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||Rv(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Sv({},o);i[s]=u(r),e.setItemVisual(n,"style",i)}}}},hL=new zD,pL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=lL(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){hL.option=n[r];var a=i(hL);Sv(t.ensureUniqueItemVisual(e,"style"),a),hL.option.decal&&(t.setItemVisual(e,"decal",hL.option.decal),hL.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},dL={performRawSeries:!0,overallReset:function(t){var e=am();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),oL(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=oL(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=uL(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},fL=Math.PI;var gL=function(){function t(t,e,n,r){this._stageTaskMap=am(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=am();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Av(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";"production"!==process.env.NODE_ENV&&(o='"reset" and "overallReset" must not be both specified.'),Jv(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Av(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,r.block);p.each((function(t){t.perform(d)})),c.perform(d)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=am(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||ON({plan:_L,reset:bL,count:ML}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||ON({reset:yL});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=am(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,p="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,ON({reset:vL,onDirty:xL})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}"production"!==process.env.NODE_ENV&&(p='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),Jv(!t.createOnAllSeries,p),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,Av(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Rv(t)&&(t={overallReset:t,seriesType:CL(t)}),t.uid=BD("stageHandler"),e&&(t.visualType=e),t},t}();function yL(t){t.overallReset(t.ecModel,t.api,t.payload)}function vL(t){return t.overallProgress&&mL}function mL(){this.agent.dirty(),this.getDownstream().dirty()}function xL(){this.agent&&this.agent.dirty()}function _L(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function bL(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=pS(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Dv(e,(function(t,e){return SL(e)})):wL}var wL=SL(0);function SL(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function ML(t){return t.data.count()}function CL(t){IL=null;try{t(TL,AL)}catch(t){}return IL}var IL,TL={},AL={};function DL(t,e){for(var n in e.prototype)t[n]=hm}DL(TL,Ik),DL(AL,kk),TL.eachSeriesByType=TL.eachRawSeriesByType=function(t){IL=t},TL.eachComponent=function(t){"series"===t.mainType&&t.subType&&(IL=t.subType)};var EL=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],kL={color:EL,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],EL]},NL="#B9B8CE",OL="#100C2A",LL=function(){return{axisLine:{lineStyle:{color:NL}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},PL=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],RL={darkMode:!0,color:PL,backgroundColor:OL,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:NL}},textStyle:{color:NL},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:NL}},dataZoom:{borderColor:"#71708A",textStyle:{color:NL},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:NL}},timeline:{lineStyle:{color:NL},label:{color:NL},controlStyle:{color:NL,borderColor:NL}},calendar:{itemStyle:{color:OL},dayLabel:{color:NL},monthLabel:{color:NL},yearLabel:{color:NL}},timeAxis:LL(),logAxis:LL(),valueAxis:LL(),categoryAxis:LL(),line:{symbol:"circle"},graph:{color:PL},gauge:{title:{color:NL},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:NL},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};RL.categoryAxis.splitLine.show=!1;var zL=RL,VL=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(zv(t)){var i=BS(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};Av(t,(function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),BL=["symbol","symbolSize","symbolRotate","symbolOffset"],FL=BL.concat(["symbolKeepAspect"]),jL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<BL.length;a++){var s=BL[a],l=t.get(s);Rv(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Sv({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=Nv(i);return{dataEach:o?function(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}:null}}}}},GL={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),r=0;r<FL.length;r++){var i=FL[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}:null}}};function WL(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}function HL(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+e)}}function UL(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:"production"!==process.env.NODE_ENV&&console.warn("Unknown visual type "+n)}}function YL(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Av([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=Sv({},e),"production"!==process.env.NODE_ENV&&aS(e.type,t[1]),i.dispatchAction(Sv(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function XL(t,e,n,r,i){var o=t+e;n.isSilent(o)||("production"!==process.env.NODE_ENV&&oS("event "+o+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=CS(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Pv(u)?l.getName(u[0]):l.getName(u),selected:zv(r)?r:Sv({},r)})}})))}function $L(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}var ZL=Math.round(9*Math.random()),qL="function"==typeof Object.defineProperty,KL=function(){function t(){this._id="__ec_inner_"+ZL++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return qL?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),JL=wC.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),QL=wC.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),tP=wC.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),d=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*d,l+s+p*d,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-c+h*d,l+s+p*d,n-c,l+s),t.closePath()}}),eP=wC.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),nP={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},rP={};Av({line:tA,rect:zC,roundRect:zC,square:zC,circle:MT,diamond:QL,pin:tP,arrow:eP,triangle:JL},(function(t,e){rP[e]=new t}));var iP=wC.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=hw(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=rP[r];i||(i=rP[r="rect"]),nP[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function oP(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function aP(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?GA(t.slice(8),new xx(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?jA(t.slice(7),{},new xx(e,n,r,i),a?"center":"cover"):new iP({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=oP,o&&s.setColor(o),s}function sP(t){return Pv(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function lP(t,e){if(null!=t)return Pv(t)||(t=[t,t]),[Nw(t[0],e[0])||0,Nw($v(t[1],t[0]),e[1])||0]}function uP(t){return isFinite(t)}function cP(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=uP(a)?a:.5,s=uP(s)?s:.5,l=l>=0&&uP(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=uP(r)?r:0,i=uP(i)?i:1,o=uP(o)?o:0,a=uP(a)?a:0,t.createLinearGradient(r,o,i,a)}(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function hP(t){return parseInt(t,10)}function pP(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||hP(s[r])||hP(t.style[r]))-(hP(s[o])||0)-(hP(s[a])||0)|0}function dP(t){var e,n,r=t.style,i=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Bv(e)?[e]:Pv(e)?e:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=Dv(i,(function(t){return t/a})),o/=a)}return[i,o]}var fP=new tC(!0);function gP(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function yP(t){return"string"==typeof t&&"none"!==t}function vP(t){var e=t.fill;return null!=e&&"none"!==e}function mP(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function xP(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function _P(t,e,n){var r=KS(e.image,e.__image,n);if(QS(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*pm),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}var bP=["shadowBlur","shadowOffsetX","shadowOffsetY"],wP=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function SP(t,e,n,r,i){var o=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){EP(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?dM.opacity:a}(r||e.blend!==n.blend)&&(o||(EP(t,i),o=!0),t.globalCompositeOperation=e.blend||dM.blend);for(var s=0;s<bP.length;s++){var l=bP[s];(r||e[l]!==n[l])&&(o||(EP(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(EP(t,i),o=!0),t.shadowColor=e.shadowColor||dM.shadowColor),o}function MP(t,e,n,r,i){var o=kP(e,i.inHover),a=r?null:n&&kP(n,i.inHover)||{};if(o===a)return!1;var s=SP(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(EP(t,i),s=!0),yP(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(EP(t,i),s=!0),yP(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(EP(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(EP(t,i),s=!0),t.lineWidth=l)}for(var u=0;u<wP.length;u++){var c=wP[u],h=c[0];(r||o[h]!==a[h])&&(s||(EP(t,i),s=!0),t[h]=o[h]||c[1])}return s}function CP(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}var IP=1,TP=2,AP=3,DP=4;function EP(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function kP(t,e){return e&&t.__hoverStyle||t.style}function NP(t,e){OP(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function OP(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Fx,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(EP(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(EP(t,n),t.save(),function(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),CP(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,p=e instanceof wC&&e.autoBatch&&function(t){var e=vP(t),n=gP(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=i,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(EP(t,n),CP(t,e)):p||EP(t,n);var d=kP(e,n.inHover);e instanceof wC?(n.lastDrawType!==IP&&(l=!0,n.lastDrawType=IP),MP(t,e,u,l,n),p&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,r){var i,o=gP(n),a=vP(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||fP,h=e.__dirty;if(!r){var p=n.fill,d=n.stroke,f=a&&!!p.colorStops,g=o&&!!d.colorStops,y=a&&!!p.image,v=o&&!!d.image,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(m=h?cP(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=h?cP(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),y&&(_=h||!e.__canvasFillPattern?_P(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=_),v&&(b=h||!e.__canvasStrokePattern?_P(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=m:y&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=x:v&&(b?t.strokeStyle=b:o=!1)}var S,M,C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(i=dP(e))[0],M=i[1]);var I=!0;(u||h&jx)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=M),r||(n.strokeFirst?(o&&xP(t,n),a&&mP(t,n)):(a&&mP(t,n),o&&xP(t,n))),S&&t.setLineDash([])}(t,e,d,p),p&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):e instanceof CC?(n.lastDrawType!==AP&&(l=!0,n.lastDrawType=AP),MP(t,e,u,l,n),function(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||ev,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(r=dP(e))[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(gP(n)&&t.strokeText(i,n.x,n.y),vP(n)&&t.fillText(i,n.x,n.y)):(vP(n)&&t.fillText(i,n.x,n.y),gP(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}(t,e,d)):e instanceof DC?(n.lastDrawType!==TP&&(l=!0,n.lastDrawType=TP),function(t,e,n,r,i){SP(t,kP(e,i.inHover),n&&kP(n,i.inHover),r,i)}(t,e,u,l,n),function(t,e,n){var r=e.__image=KS(n.image,e.__image,e,e.onload);if(r&&QS(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),p=s-(c=n.sy);t.drawImage(r,u,c,h,p,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}(t,e,d)):e.getTemporalDisplayables&&(n.lastDrawType!==DP&&(l=!0,n.lastDrawType=DP),function(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),OP(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),OP(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),p&&r&&EP(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var LP=new KL,PP=new S_(100),RP=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function zP(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&LP.delete(t);var o=LP.get(t);if(o)return o;var a=Mv(t,{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(t){for(var e,o=[n],s=!0,l=0;l<RP.length;++l){var u=a[RP[l]];if(null!=u&&!Pv(u)&&!zv(u)&&!Bv(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=PP.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,p=BP(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Bv(t)){var e=Math.ceil(t);return[e,e]}var n=Dv(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),f=VP(a.symbol),g=(_=p,Dv(_,(function(t){return FP(t)}))),y=FP(d),v=!i&&ov.createCanvas(),m=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=Jw(t,g[e]);var r=1;for(e=0,n=f.length;e<n;++e)r=Jw(r,f[e].length);t*=r;var i=y*g.length*f.length;if("production"!==process.env.NODE_ENV){var o=function(t){console.warn("Calculated decal size is greater than "+t+" due to decal option settings so "+t+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+t+" to be larger to avoid incontinuity.")};t>a.maxTileWidth&&o("maxTileWidth"),i>a.maxTileHeight&&o("maxTileHeight")}return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var _;v&&(v.width=x.width*n,v.height=x.height*n,h=v.getContext("2d"));(function(){h&&(h.clearRect(0,0,v.width,v.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(t<=0)return;var o=-y,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%f.length,g=0,_=0,b=0;g<2*x.width;){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(_%2==0){var S=.5*(1-a.symbolSize),M=g+p[u][_]*S,C=o+d[s]*S,I=p[u][_]*a.symbolSize,T=d[s]*a.symbolSize,A=b/2%f[c].length;D(M,C,I,T,f[c][A])}g+=p[u][_],++b,++_===p[u].length&&(_=0)}++u===p.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}function D(t,e,o,s,l){var u=i?1:n,c=aP(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var p=r.painter.renderOneToVNode(c);p&&m.children.push(p)}else NP(h,c)}})(),s&&PP.put(e,v||m);t.image=v,t.svgElement=m,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,LP.set(t,s),t.dirty=!1,s}function VP(t){if(!t||0===t.length)return[["rect"]];if(zv(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!zv(t[n])){e=!1;break}if(e)return VP([t]);var r=[];for(n=0;n<t.length;++n)zv(t[n])?r.push([t[n]]):r.push(t[n]);return r}function BP(t){if(!t||0===t.length)return[[0,0]];if(Bv(t))return[[i=Math.ceil(t),i]];for(var e=!0,n=0;n<t.length;++n)if(!Bv(t[n])){e=!1;break}if(e)return BP([t]);var r=[];for(n=0;n<t.length;++n)if(Bv(t[n])){var i=Math.ceil(t[n]);r.push([i,i])}else{(i=Dv(t[n],(function(t){return Math.ceil(t)}))).length%2==1?r.push(i.concat(i)):r.push(i)}return r}function FP(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var jP=new Nm,GP={};var WP=2e3,HP=4500,UP={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:WP,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:HP,ARIA:6e3,DECAL:7e3}},YP="__flagInMainProcess",XP="__pendingUpdate",$P="__needsUpdateStatus",ZP=/^[a-zA-Z0-9_]+$/,qP="__connectUpdateStatus";function KP(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return QP(this,t,e);SR(this.id)}}function JP(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return QP(this,t,e)}}function QP(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Nm.prototype[e].apply(t,n)}var tR,eR,nR,rR,iR,oR,aR,sR,lR,uR,cR,hR,pR,dR,fR,gR,yR,vR,mR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e}(Nm),xR=mR.prototype;xR.on=JP("on"),xR.off=JP("off");var _R=function(t){function e(e,n,r){var i=t.call(this,new VL)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},zv(n)&&(n=DR[n]),i._dom=e;var o="canvas",a="auto",s=!1;if("production"!==process.env.NODE_ENV){var l=Jy.hasGlobalWindow?window:global;l&&(o=$v(l.__ECHARTS__DEFAULT__RENDERER__,o),a=$v(l.__ECHARTS__DEFAULT__COARSE_POINTER,a),s=$v(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}r.ssr&&(Iw=function(t){var e=tI(t),n=e.dataIndex;if(null!=n){var r=am();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}});var u=i._zr=Aw(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:$v(r.useDirtyRect,s),useCoarsePointer:$v(r.useCoarsePointer,a),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=nL(Ov(u.flush,u),17),(n=_v(n))&&rN(n,!0),i._theme=n,i._locale=function(t){if(zv(t)){var e=HD[t.toUpperCase()]||{};return t===jD||t===GD?_v(e):bv(_v(e),_v(HD[WD]),!1)}return bv(_v(t),_v(HD[WD]),!1)}(r.locale||YD),i._coordSysMgr=new Ok;var c=i._api=fR(i);function h(t,e){return t.__prio-e.__prio}return Bx(AR,h),Bx(IR,h),i._scheduler=new gL(i,c,IR,AR),i._messageCenter=new mR,i._initEvents(),i.resize=Ov(i.resize,i),u.animation.on("frame",i._onframe,i),uR(u,i),cR(u,i),em(i),i}return h(e,t),e.prototype._onframe=function(){if(!this._disposed){vR(this);var t=this._scheduler;if(this[XP]){var e=this[XP].silent;this[YP]=!0;try{tR(this),rR.update.call(this,null,this[XP].updateParams)}catch(t){throw this[YP]=!1,this[XP]=null,t}this._zr.flush(),this[YP]=!1,this[XP]=null,sR.call(this,e),lR.call(this,e)}else if(t.unfinished){var n=1,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),oR(this,r),t.performVisualTasks(r),dR(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(this[YP])"production"!==process.env.NODE_ENV&&iS("`setOption` should not be called during main process.");else if(this._disposed)SR(this.id);else{var r,i,o;if(Fv(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[YP]=!0,!this._model||e){var a=new zk(this._api),s=this._theme,l=this._model=new Ik;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},TR);var u={seriesTransition:o,optionChanged:!0};if(n)this[XP]={silent:r,updateParams:u},this[YP]=!1,this.getZr().wakeUp();else{try{tR(this),rR.update.call(this,null,u)}catch(t){throw this[XP]=null,this[YP]=!1,t}this._ssr||this._zr.flush(),this[XP]=null,this[YP]=!1,sR.call(this,r),lR.call(this,r)}}},e.prototype.setTheme=function(){oS("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Jy.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return"production"!==process.env.NODE_ENV&&aS("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;if("production"!==process.env.NODE_ENV&&"canvas"!==e.type)throw new Error("renderToCanvas can only be used in the canvas renderer.");return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;if("production"!==process.env.NODE_ENV&&"svg"!==e.type)throw new Error("renderToSVGString can only be used in the svg renderer.");return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Jy.svgSupported){var t=this._zr;return Av(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;Av(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Av(r,(function(t){t.group.ignore=!1})),o}SR(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(NR[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Av(kR,(function(o,h){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(_v(t)),d=o.getDom().getBoundingClientRect();a=r(d.left,a),s=r(d.top,s),l=i(d.right,l),u=i(d.bottom,u),c.push({dom:p,left:d.left,top:d.top})}}));var p=(l*=h)-(a*=h),d=(u*=h)-(s*=h),f=ov.createCanvas(),g=Aw(f,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:d}),e){var y="";return Av(c,(function(t){var e=t.left-a,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new zC({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),Av(c,(function(t){var e=new DC({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}SR(this.id)},e.prototype.convertToPixel=function(t,e){return iR(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return iR(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return Av(AS(this._model,t),(function(t,r){r.indexOf("Models")>=0&&Av(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n=n||o.containPoint(e,t):"production"!==process.env.NODE_ENV&&rS(r+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else"production"!==process.env.NODE_ENV&&rS(r+": containPoint is not supported")}),this)}),this),!!n;SR(this.id)},e.prototype.getVisual=function(t,e){var n=AS(this._model,t,{defaultMainType:"series"}),r=n.seriesModel;"production"!==process.env.NODE_ENV&&(r||rS("There is no specified series model"));var i=r.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=o?WL(i,o,e):HL(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,r=this;Av(wR,(function(t){var e=function(e){var n,i=r.getModel(),o=e.target,a="globalout"===t;if(a?n={}:o&&$L(o,(function(t){var e=tI(t);if(e&&null!=e.dataIndex){var r=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return n=r&&r.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=Sv({},e.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&r["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];"production"!==process.env.NODE_ENV&&(a||u&&c||rS("model or view can not be found by params")),n.event=e,n.type=t,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},r.trigger(t,n)}};e.zrEventfulCallAtLast=!0,r._zr.on(t,e,r)})),Av(CR,(function(t,e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),Av(["selectchanged"],(function(t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(XL("map","selectchanged",e,r,t),XL("pie","selectchanged",e,r,t)):"select"===t.fromAction?(XL("map","selected",e,r,t),XL("pie","selected",e,r,t)):"unselect"===t.fromAction&&(XL("map","unselected",e,r,t),XL("pie","unselected",e,r,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?SR(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)SR(this.id);else{this._disposed=!0,this.getDom()&&OS(this.getDom(),LR,"");var t=this,e=t._api,n=t._model;Av(t._componentsViews,(function(t){t.dispose(n,e)})),Av(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete kR[t.id]}},e.prototype.resize=function(t){if(this[YP])"production"!==process.env.NODE_ENV&&iS("`resize` should not be called during main process.");else if(this._disposed)SR(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[XP]&&(null==r&&(r=this[XP].silent),n=!0,this[XP]=null),this[YP]=!0;try{n&&tR(this),rR.update.call(this,{type:"resize",animation:Sv({duration:0},t&&t.animation)})}catch(t){throw this[YP]=!1,t}this[YP]=!1,sR.call(this,r),lR.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)SR(this.id);else if(Fv(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),ER[t]){var n=ER[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}else"production"!==process.env.NODE_ENV&&rS("Loading effects "+t+" not exists.")},e.prototype.hideLoading=function(){this._disposed?SR(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Sv({},t);return e.type=CR[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)SR(this.id);else if(Fv(e)||(e={silent:!!e}),MR[t.type]&&this._model)if(this[YP])this._pendingActions.push(t);else{var n=e.silent;aR.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&Jy.browser.weChat&&this._throttledZrFlush(),sR.call(this,n),lR.call(this,n)}},e.prototype.updateLabelLayout=function(){jP.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)SR(this.id);else{var e=t.seriesIndex,n=this.getModel().getSeriesByIndex(e);"production"!==process.env.NODE_ENV&&Jv(t.data&&n),n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===lI&&t.states.emphasis?e.push("emphasis"):t.hoverState===sI&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return r(t,n,i,-1/0),!0}))}}function r(t,e,n,i){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function i(t,e){e.eachRendered((function(t){if(!EA(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function o(t,n){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(EA(t))return;if(t instanceof wC&&function(t){var e=iI(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}tR=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),eR(t,!0),eR(t,!1),e.plan()},eR=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=BS(t.type),p=e?GO.getClass(h.main,h.sub):JO.getClass(h.sub);"production"!==process.env.NODE_ENV&&Jv(p,h.sub+" does not exist."),(c=new p).init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},nR=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=am(),Av(pS(u),(function(t){var e=_S(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(l&&null!=l.get(e.id)))if(eT(n))if(e instanceof FO)n.type!==dI||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=CS(i,e);o=(Pv(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=tI(a);jI(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&jI(r,c,h,n)}}else"production"!==process.env.NODE_ENV&&iS("Unknown dataType "+e.dataType)}(e,n,t._api);else{var r=WI(e.mainType,e.componentIndex,n.name,t._api),i=r.focusSelf,o=r.dispatchers;n.type===dI&&i&&!n.notBlur&&GI(e.mainType,e.componentIndex,t._api),o&&Av(o,(function(t){n.type===dI?OI(t):LI(t)}))}else tT(n)&&e instanceof FO&&(!function(t,e,n){if(tT(e)){var r=e.dataType,i=CS(t.getData(r),e);Pv(i)||(i=[i]),t[e.type===vI?"toggleSelect":e.type===gI?"select":"unselect"](i,r)}}(e,n,t._api),HI(e),yR(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!=l.get(e.id)||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Av([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},rR={prepareAndUpdate:function(t){tR(this),rR.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),oR(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),hR(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),jP.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=am();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),dR(this,r,i,e,{},a),jP.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),JO.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),hR(this,n,this._api,e,{}),jP.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),JO.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)})),jP.trigger("afterupdate",r,this._api))},updateLayout:function(t){rR.update.call(this,t)}},iR=function(t,e,n,r){if(t._disposed)SR(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=AS(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}"production"!==process.env.NODE_ENV&&rS("No coordinate system that supports "+e+" found by the given finder.")}},oR=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},aR=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=MR[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&BS(l[0]);this[YP]=!0;var h=[t],p=!1;t.batch&&(p=!0,h=Dv(t.batch,(function(e){return(e=Mv(Sv({},e),t)).batch=null,e})));var d,f=[],g=tT(t),y=eT(t);if(y&&FI(this._api),Av(h,(function(e){if((d=(d=a.action(e,n._model,n._api))||Sv({},e)).type=s.event||d.type,f.push(d),y){var r=DS(t),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";nR(n,u,e,o),yR(n)}else g?(nR(n,u,e,"series"),yR(n)):c&&nR(n,u,e,c.main,c.sub)})),"none"!==u&&!y&&!g&&!c)try{this[XP]?(tR(this),rR.update.call(this,t),this[XP]=null):rR[u].call(this,t)}catch(t){throw this[YP]=!1,t}if(d=p?{type:s.event||i,escapeConnect:o,batch:f}:f[0],this[YP]=!1,!e){var v=this._messageCenter;if(v.trigger(d.type,d),g){var m={type:"selectchanged",escapeConnect:o,selected:UI(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};v.trigger(m.type,m)}}},sR=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();aR.call(this,n,t)}},lR=function(t){!t&&this.trigger("updated")},uR=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[XP]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},cR=function(t,e){t.on("mouseover",(function(t){var n=$L(t.target,QI);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||QI(t)||iS("param should be highDownDispatcher");var r=tI(t),i=WI(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&GI(r.componentMainType,r.componentIndex,n),Av(o,(function(t){return kI(t,e)}))):(jI(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&GI(r.componentMainType,r.componentIndex,n),kI(t,e))}(n,t,e._api),yR(e))})).on("mouseout",(function(t){var n=$L(t.target,QI);n&&(!function(t,e,n){"production"===process.env.NODE_ENV||QI(t)||iS("param should be highDownDispatcher"),FI(n);var r=tI(t),i=WI(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Av(i,(function(t){return NI(t,e)})):NI(t,e)}(n,t,e._api),yR(e))})).on("click",(function(t){var n=$L(t.target,(function(t){return null!=tI(t).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=tI(n);e._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},hR=function(t,e,n,r,i){!function(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);Bx(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Av(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(e),pR(t,e,n,r,i),Av(t._chartsViews,(function(t){t.__alive=!1})),dR(t,e,n,r,i),Av(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},pR=function(t,e,r,a,s,l){Av(l||t._componentsViews,(function(t){var s=t.__model;i(s,t),t.render(s,e,r,a),n(s,t),o(s,t)}))},dR=function(t,e,r,a,s,l){var u=t._scheduler;s=Sv(s||{},{updatedSeries:e.getSeries()}),jP.trigger("series:beforeupdate",e,r,s);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,a),i(e,n),l&&l.get(e.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),HI(e)})),u.unfinished=c||u.unfinished,jP.trigger("series:layoutlabels",e,r,s),jP.trigger("series:transition",e,r,s),e.eachSeries((function(e){var r=t._chartsMap[e.__viewId];n(e,r),o(e,r)})),function(t,e){var n=t._zr,r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!Jy.node&&!Jy.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),jP.trigger("series:afterupdate",e,r,s)},yR=function(t){t[$P]=!0,t.getZr().wakeUp()},vR=function(t){t[$P]&&(t.getZr().storage.traverse((function(t){EA(t)||e(t)})),t[$P]=!1)},fR=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return h(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){OI(e,n),yR(t)},n.prototype.leaveEmphasis=function(e,n){LI(e,n),yR(t)},n.prototype.enterBlur=function(e){PI(e),yR(t)},n.prototype.leaveBlur=function(e){RI(e),yR(t)},n.prototype.enterSelect=function(e){zI(e),yR(t)},n.prototype.leaveSelect=function(e){VI(e),yR(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(kk))(t)},gR=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][qP]=e}}Av(CR,(function(n,r){t._messageCenter.on(r,(function(n){if(NR[t.group]&&0!==t[qP]){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Av(kR,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,0),Av(i,(function(t){1!==t[qP]&&t.dispatchAction(r)})),e(i,2)}}))}))}}(),e}(Nm),bR=_R.prototype;bR.on=KP("on"),bR.off=KP("off"),bR.one=function(t,e,n){var r=this;oS("ECharts#one is deprecated."),this.on.call(this,t,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}),n)};var wR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function SR(t){"production"!==process.env.NODE_ENV&&rS("Instance "+t+" has been disposed")}var MR={},CR={},IR=[],TR=[],AR=[],DR={},ER={},kR={},NR={},OR=+new Date-0,LR="_echarts_instance_";function PR(t,e,n){var r=!(n&&n.ssr);if(r){if("production"!==process.env.NODE_ENV&&!t)throw new Error("Initialize failed: invalid dom.");var i=function(t){return kR[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,LR)]}(t);if(i)return"production"!==process.env.NODE_ENV&&rS("There is a chart instance already initialized on the dom."),i;"production"!==process.env.NODE_ENV&&(!Wv(t)||"CANVAS"===t.nodeName.toUpperCase()||(t.clientWidth||n&&null!=n.width)&&(t.clientHeight||n&&null!=n.height)||rS("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 o=new _R(t,e,n);return o.id="ec_"+OR++,kR[o.id]=o,r&&OS(t,LR,o.id),gR(o),jP.trigger("afterinit",o),o}function RR(t,e){DR[t]=e}function zR(t){Cv(TR,t)<0&&TR.push(t)}function VR(t,e){WR(IR,t,e,2e3)}function BR(t,e){jP.on(t,e)}function FR(t,e,n){Rv(e)&&(n=e,e="");var r=Fv(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,CR[e]||(Jv(ZP.test(r)&&ZP.test(e)),MR[r]||(MR[r]={action:n,actionInfo:t}),CR[e]=r)}function jR(t,e){WR(AR,t,e,3e3,"visual")}var GR=[];function WR(t,e,n,r,i){if((Rv(e)||Fv(e))&&(n=e,e=r),"production"!==process.env.NODE_ENV){if(isNaN(e)||null==e)throw new Error("Illegal priority");Av(t,(function(t){Jv(t.__raw!==n)}))}if(!(Cv(GR,n)>=0)){GR.push(n);var o=gL.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function HR(t,e){ER[t]=e}var UR=function(t){var e=(t=_v(t)).type,n="";e||("production"!==process.env.NODE_ENV&&(n="Must have a `type` when `registerTransform`."),lS(n));var r=e.split(":");2!==r.length&&("production"!==process.env.NODE_ENV&&(n='Name must include namespace like "ns:regression".'),lS(n));var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,ZN.set(e,t)};jR(WP,cL),jR(HP,pL),jR(HP,dL),jR(WP,jL),jR(HP,GL),jR(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");n&&(r.ensureUniqueItemVisual(t,"style").decal=zP(n,e))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=zP(i,e)}}))})),zR(rN),VR(900,(function(t){var e=am();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each(iN)})),HR("default",(function(t,e){Mv(e=e||{},{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 Sw,r=new zC({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new QC({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new zC({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new lA({shape:{startAngle:-fL/2,endAngle:-fL/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*fL/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*fL/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),FR({type:dI,event:dI,update:dI},hm),FR({type:fI,event:fI,update:fI},hm),FR({type:gI,event:gI,update:gI},hm),FR({type:yI,event:yI,update:yI},hm),FR({type:vI,event:vI,update:vI},hm),RR("light",kL),RR("dark",zL);var YR=[],XR={registerPreprocessor:zR,registerProcessor:VR,registerPostInit:function(t){BR("afterinit",t)},registerPostUpdate:function(t){BR("afterupdate",t)},registerUpdateLifecycle:BR,registerAction:FR,registerCoordinateSystem:function(t,e){Ok.register(t,e)},registerLayout:function(t,e){WR(AR,t,e,1e3,"layout")},registerVisual:jR,registerTransform:UR,registerLoading:HR,registerMap:function(t,e,n){var r,i=(r="registerMap","production"!==process.env.NODE_ENV&&(GP[r]||iS("Implementation of "+r+" doesn't exists.")),GP[r]);i&&i(t,e,n)},registerImpl:function(t,e){"production"!==process.env.NODE_ENV&&GP[t]&&iS("Already has an implementation of "+t+"."),GP[t]=e},PRIORITY:UP,ComponentModel:XE,ComponentView:GO,SeriesModel:FO,ChartView:JO,registerComponentModel:function(t){XE.registerClass(t)},registerComponentView:function(t){GO.registerClass(t)},registerSeriesModel:function(t){FO.registerClass(t)},registerChartView:function(t){JO.registerClass(t)},registerSubTypeDefaulter:function(t,e){XE.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,Mw[t]=n}};function $R(t){Pv(t)?Av(t,(function(t){$R(t)})):Cv(YR,t)>=0||(YR.push(t),Rv(t)&&(t={install:t}),t.install(XR))}function ZR(t){return null==t?0:t.length||1}function qR(t){return t}var KR=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||qR,this._newKeyGetter=r||qR,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=ZR(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=ZR(l),h=ZR(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=ZR(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=ZR(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),JR=KR,QR=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function tz(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function ez(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var nz=function(t){this.otherDims={},null!=t&&Sv(this,t)},rz=IS(),iz={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},oz=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=lz(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return $v(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=vN(this.source),n=!uz(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=iz[l]||"f",u&&(r+=u.uid),r+="$"}var p=this.source;return{dimensions:i,hash:[p.seriesLayoutBy,p.startIndex,r].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function az(t){return t instanceof oz}function sz(t){for(var e=am(),n=0;n<(t||[]).length;n++){var r=t[n],i=Fv(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function lz(t){var e=rz(t);return e.dimNameMap||(e.dimNameMap=sz(t.dimensionsDefine))}function uz(t){return t>30}var cz,hz,pz,dz,fz,gz,yz,vz=Fv,mz=Dv,xz="undefined"==typeof Int32Array?Array:Int32Array,_z=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],bz=["_approximateExtent"],wz=function(){function t(t,e){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 r=!1;az(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=zv(c)?new nz({name:c}):c instanceof nz?c:new nz(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(p),i[p]=h,null!=l[p]&&(s=!0),h.createInvertedIndices&&(a[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),"production"!==process.env.NODE_ENV&&Jv(r||h.storeDimIndex>=0),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=am();Av(o,(function(t){f.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(Bv(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if("production"!==process.env.NODE_ENV&&null==e)throw new Error("Unknown dimension "+t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof sO&&(r=t),!r){var o=this.dimensions,a=hN(t)||Tv(t)?new mN(t,o.length):t;r=new sO;var s=mz(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(t,e){var n={},r=n.encode={},i=am(),o=[],a=[],s={};Av(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){"production"!==process.env.NODE_ENV&&Jv(null==KE.get(u));var c=l.coordDimIndex;tz(r,u)[c]=e,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),tz(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}KE.each((function(t,e){var n=tz(r,e),i=l.otherDims[e];null!=i&&!1!==i&&(n[i]=l.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Dv(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new QR(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&yz(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==nk&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===JE&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&yS(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=_S(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=_S(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)yz(this,a);cz(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){vz(t)?Sv(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=pz(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return hz(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return Pv(t)?r.getValues(mz(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];if("production"!==process.env.NODE_ENV&&!n)throw new Error("Do not supported yet");var r=n[e];return null==r||isNaN(r)?-1:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){Rv(t)&&(n=e,e=t,t=[]);var r=n||this,i=mz(dz(t),this._getStoreDimIndex,this);this._store.each(i,r?Ov(e,r):e)},t.prototype.filterSelf=function(t,e,n){Rv(t)&&(n=e,e=t,t=[]);var r=n||this,i=mz(dz(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?Ov(e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={};return Av(Nv(t),(function(r){var i=e._getStoreDimIndex(r);n[i]=t[r]})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){Rv(t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=mz(dz(t),this._getStoreDimIndex,this),a=gz(this);return a._store=this._store.map(o,i?Ov(e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=this,o=n||r||this;"production"!==process.env.NODE_ENV&&Av(dz(t),(function(t){i.getDimensionInfo(t).isCalculationCoord||console.error("Danger: only stack dimension can be modified")}));var a=mz(dz(t),this._getStoreDimIndex,this);this._store.modify(a,o?Ov(e,o):e)},t.prototype.downSample=function(t,e,n,r){var i=gz(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=gz(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new zD(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new JR(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return hz(t,e)}),(function(t){return hz(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},vz(t)?Sv(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(Pv(i=this.getVisual(e))?i=i.slice():vz(i)&&(i=Sv({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,vz(e)?Sv(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){vz(t)?Sv(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?Sv(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;eI(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){Av(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:mz(this.dimensions,this._getDimInfo,this),this.hostModel)),fz(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];Rv(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(qv(arguments)))})},t.internalField=(cz=function(t){var e=t._invertedIndicesMap;Av(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new xz(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},pz=function(t,e,n){return _S(t._getCategory(e,n),null)},hz=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=pz(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},dz=function(t){return Pv(t)||(t=null!=t?[t]:[]),t},gz=function(e){var n=new t(e._schema?e._schema:mz(e.dimensions,e._getDimInfo,e),e.hostModel);return fz(n,e),n},fz=function(t,e){Av(_z.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,Av(bz,(function(n){t[n]=_v(e[n])})),t._calculationInfo=Sv({},e._calculationInfo)},void(yz=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=pz(t,i,e)),null==s&&null!=o&&(r[e]=s=pz(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}})),t}();function Sz(t,e){hN(t)||(t=dN(t));var n=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=am(),o=[],a=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Av(e,(function(t){var e;Fv(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&uz(a),l=r===t.dimensionsDefine,u=l?lz(t):sz(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=am(c),p=new nO(a),d=0;d<p.length;d++)p[d]=-1;function f(t){var e=p[t];if(e<0){var n=r[t],i=Fv(n)?n:{name:n},a=new nz,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return p[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)f(d);h.each((function(t,e){var n=pS(t).slice();if(1===n.length&&!zv(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);Av(n,(function(t,n){var i=zv(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,y(f(i),e,n))}))}}));var g=0;function y(t,e,n){null!=KE.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}Av(n,(function(t){var e,n,r,i;if(zv(t))e=t,i={};else{e=(i=t).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=Sv({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=pS(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}Av(s,(function(t,o){var a=f(t);if(l&&null!=i.type&&(a.type=i.type),y(Mv(a,i),e,o),null==a.name&&n){var s=n[o];!Fv(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Mv(a.otherDims,r)}))}}));var v=e.generateCoord,m=e.generateCoordCount,x=null!=m;m=v?m||1:0;var _=v||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)Av(o,(function(t){b(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Mz(_,i,x),S.coordDimIndex=0,(!v||m<=0)&&(S.isExtraCoord=!0),m--),b(S),null!=S.type||hk(t,w)!==ak.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=am(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}(o),new oz({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Mz(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var Cz=function(t){this.coordSysDims=[],this.axisMap=am(),this.categoryAxisMap=am(),this.coordSysName=t};var Iz={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",ES).models[0],o=t.getReferringComponents("yAxis",ES).models[0];if("production"!==process.env.NODE_ENV){if(!i)throw new Error('xAxis "'+Xv(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Xv(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Tz(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Tz(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",ES).models[0];if("production"!==process.env.NODE_ENV&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",i),Tz(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",ES).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");if("production"!==process.env.NODE_ENV){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Tz(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Tz(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Av(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Tz(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Tz(t){return"category"===t.get("type")}function Az(t,e,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!az(t.schema)}(e)?(i=e.schema,r=i.dimensions,o=e.store):r=e;var l,u,c,h,p=!(!t||!t.get("stack"));if(Av(r,(function(t,e){zv(t)&&(r[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;Av(r,(function(t){t.coordDim===d&&g++}));var y={name:c,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(y.storeDimIndex=o.ensureCalculationDimension(h,f),v.storeDimIndex=o.ensureCalculationDimension(c,f)),i.appendCalculationDimension(y),i.appendCalculationDimension(v)):(r.push(y),r.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Dz(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ez(t,e){return Dz(t,e)?t.getCalculationInfo("stackResultDimension"):e}function kz(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=dN(t)):o=(r=i.getSource()).sourceFormat===JE;var a=function(t){var e=t.get("coordinateSystem"),n=new Cz(e),r=Iz[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,r=t.get("coordinateSystem"),i=Ok.get(r);return e&&e.coordSysDims&&(n=Dv(e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=ez(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=Rv(l)?l:l?Lv(lk,s,e):null,c=Sz(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var r,i;return n&&Av(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(c),d=Az(e,{schema:c,store:p}),f=new wz(c,e);f.setCalculationInfo(d);var g=null!=h&&function(t){if(t.sourceFormat===JE){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!Pv(gS(e))}}(r)?function(t,e,n,r){return r===h?n:this.defaultDimValueGetter(t,e,n,r)}:null;return f.hasItemOption=!1,f.initData(o?r:p,null,g),f}var Nz=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();US(Nz);var Oz=Nz,Lz=0,Pz=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Lz}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Dv(r,Rz);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!zv(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=am(this.categories))},t}();function Rz(t){return Fv(t)&&null!=t.value?t.value:t+""}function zz(t){return"interval"===t.type||"log"===t.type}function Vz(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Uw(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=Fz(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),jz(t,0,e),jz(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[Ow(Math.ceil(t[0]/a)*a,s),Ow(Math.floor(t[1]/a)*a,s)],t),i}function Bz(t){var e=Math.pow(10,Hw(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Ow(n*e)}function Fz(t){return Pw(t)+2}function jz(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Gz(t,e){return t>=e[0]&&t<=e[1]}function Wz(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Hz(t,e){return t*(e[1]-e[0])+e[0]}var Uz=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Pz({})),Pv(r)&&(r=new Pz({categories:Dv(r,(function(t){return Fv(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return h(e,t),e.prototype.parse=function(t){return null==t?NaN:zv(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Gz(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Wz(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Hz(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Oz);Oz.registerClass(Uz);var Yz=Uz,Xz=Ow,$z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return h(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Gz(t,this._extent)},e.prototype.normalize=function(t){return Wz(t,this._extent)},e.prototype.scale=function(t){return Hz(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Fz(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]<r[0]&&(t?o.push({value:Xz(r[0]-e,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=Xz(a+e,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:Xz(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){for(var o=e[i],a=e[i-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=Xz(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Pw(t.value)||0:"auto"===n&&(n=this._intervalPrecision),CE(Xz(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=Vz(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Xz(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=Xz(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Oz);Oz.registerClass($z);var Zz=$z,qz="undefined"!=typeof Float32Array,Kz=qz?Float32Array:Array;function Jz(t){return Pv(t)?qz?new Float32Array(t):t:new Kz(t)}var Qz="__ec_stack_";function tV(t){return t.get("stack")||Qz+t.seriesIndex}function eV(t){return t.dim+t.index}function nV(t,e){var n=[];return e.eachSeriesByType(t,(function(t){sV(t)&&n.push(t)})),n}function rV(t){var e=function(t){var e={};Av(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[i]?e[i].push(u):e[i]=[u]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(t),n=[];return Av(t,(function(t){var r,i=t.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=e[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var h=t.getData();r=Math.abs(o[1]-o[0])/h.count()}var p=Nw(t.get("barWidth"),r),d=Nw(t.get("barMaxWidth"),r),f=Nw(t.get("barMinWidth")||(lV(t)?.5:1),r),g=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:y,axisKey:eV(i),stackId:tV(t)})})),iV(n)}function iV(t){var e={};Av(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return Av(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Nv(r).length;o=Math.max(35-4*a,15)+"%"}var s=Nw(o,i),l=Nw(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Av(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p,d=0;Av(r,(function(t,e){t.width||(t.width=h),p=t,d+=t.width*(1+l)})),p&&(d-=p.width*l);var f=-d/2;Av(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function oV(t,e){var n=nV(t,e),r=rV(n);Av(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=tV(t),o=r[eV(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function aV(t){return{seriesType:t,plan:WO(),reset:function(t){if(sV(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=Dz(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),d=lV(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,l=d&&Jz(3*i),u=d&&s&&Jz(3*i),m=d&&Jz(i),x=n.master.getRect(),_=h?x.width:x.height,b=e.getStore(),w=0;null!=(r=t.next());){var S=b.get(c?g:o,r),M=b.get(a,r),C=p,I=void 0;c&&(I=+S-b.get(o,r));var T=void 0,A=void 0,D=void 0,E=void 0;if(h){var k=n.dataToPoint([S,M]);if(c)C=n.dataToPoint([I,M])[0];T=C,A=k[1]+v,D=k[0]-C,E=y,Math.abs(D)<f&&(D=(D<0?-1:1)*f)}else{k=n.dataToPoint([M,S]);if(c)C=n.dataToPoint([M,I])[1];T=k[0]+v,A=C,D=y,E=k[1]-C,Math.abs(E)<f&&(E=(E<=0?-1:1)*f)}d?(l[w]=T,l[w+1]=A,l[w+2]=h?D:E,u&&(u[w]=h?x.x:T,u[w+1]=h?A:x.y,u[w+2]=_),m[r]=r):e.setItemLayout(r,{x:T,y:A,width:D,height:E}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function sV(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function lV(t){return t.pipelineContext&&t.pipelineContext.large}var uV=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return h(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return lE(t.value,nE[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(aE(this._minLevelUnit))]||nE.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC");return function(t,e,n,r,i){var o=null;if(zv(n))o=n;else if(Rv(n))o=n(t.value,e,{level:t.level});else{var a=Sv({},tE);if(t.level>0)for(var s=0;s<rE.length;++s)a[rE[s]]="{primary|"+a[rE[s]]+"}";var l=n?!1===n.inherit?n:Mv(n,a):a,u=uE(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=iE.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(Pv(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return lE(new Date(t.value),o,i,r)}(t,e,n,this.getSetting("locale"),r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=function(t,e,n,r){var i=1e4,o=iE,a=0;function s(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,i,o){var a=[],l=!i.length;if(!function(t,e,n,r){var i=Ww(e),o=Ww(n),a=function(t){return cE(i,t,r)===cE(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},d=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return d()}}(aE(t),r[0],r[1],n)){l&&(i=[{value:yV(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var p=void 0,d=void 0,f=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/JD/365)),d=hE(n),f=mE(n);break;case"half-year":case"quarter":case"month":p=pV(e),d=pE(n),f=xE(n);break;case"week":case"half-week":case"day":p=hV(e),d=dE(n),f=_E(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=dV(e),d=fE(n),f=bE(n);break;case"minute":p=fV(e,!0),d=gE(n),f=wE(n);break;case"second":p=fV(e,!1),d=yE(n),f=SE(n);break;case"millisecond":p=gV(e),d=vE(n),f=ME(n)}s(p,c,h,d,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,p=0,d=0;d<o.length&&a++<i;++d){var f=aE(o[d]);if(sE(o[d]))if(l(o[d],u[u.length-1]||[],c),f!==(o[d+1]?aE(o[d+1]):null)){if(c.length){p=h,c.sort((function(t,e){return t.value-e.value}));for(var g=[],y=0;y<c.length;++y){var v=c[y].value;0!==y&&c[y-1].value===v||(g.push(c[y]),v>=r[0]&&v<=r[1]&&h++)}var m=(r[1]-r[0])/e;if(h>1.5*m&&p>m/1.5)break;if(u.push(g),h>m||t===o[d])break}c=[]}}"production"!==process.env.NODE_ENV&&a>=i&&rS("Exceed safe limit.");var x=kv(Dv(u,(function(t){return kv(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],b=x.length-1;for(d=0;d<x.length;++d)for(var w=x[d],S=0;S<w.length;++S)_.push({value:w[S].value,level:b-d});_.sort((function(t,e){return t.value-e.value}));var M=[];for(d=0;d<_.length;++d)0!==d&&_[d].value===_[d-1].value||M.push(_[d]);return M}(this._minLevelUnit,this._approxInterval,r,e);return(n=n.concat(i)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=JD,e[1]+=JD),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-JD}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=cV.length,a=Math.min(function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n}(cV,this._approxInterval,0,o),o-1);this._interval=cV[a][1],this._minLevelUnit=cV[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Bv(t)?t:+Ww(t)},e.prototype.contain=function(t){return Gz(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Wz(this.parse(t),this._extent)},e.prototype.scale=function(t){return Hz(t,this._extent)},e.type="time",e}(Zz),cV=[["second",ZD],["minute",qD],["hour",KD],["quarter-day",6*KD],["half-day",12*KD],["day",1.2*JD],["half-week",3.5*JD],["week",7*JD],["month",31*JD],["quarter",95*JD],["half-year",QD/2],["year",QD]];function hV(t,e){return(t/=JD)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function pV(t){return(t/=30*JD)>6?6:t>3?3:t>2?2:1}function dV(t){return(t/=KD)>12?12:t>6?6:t>3.5?4:t>2?2:1}function fV(t,e){return(t/=e?qD:ZD)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function gV(t){return Uw(t,!0)}function yV(t,e,n){var r=new Date(t);switch(aE(e)){case"year":case"month":r[xE(n)](0);case"day":r[_E(n)](1);case"hour":r[bE(n)](0);case"minute":r[wE(n)](0);case"second":r[SE(n)](0),r[ME(n)](0)}return r.getTime()}Oz.registerClass(uV);var vV=uV,mV=Oz.prototype,xV=Zz.prototype,_V=Ow,bV=Math.floor,wV=Math.ceil,SV=Math.pow,MV=Math.log,CV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Zz,e._interval=0,e}return h(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent();return Dv(xV.getTicks.call(this,t),(function(t){var e=t.value,i=Ow(SV(this.base,e));return i=e===n[0]&&this._fixMin?TV(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?TV(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=MV(this.base);t=MV(Math.max(0,t))/n,e=MV(Math.max(0,e))/n,xV.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=mV.getExtent.call(this);e[0]=SV(t,e[0]),e[1]=SV(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=TV(e[0],n[0])),this._fixMax&&(e[1]=TV(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=MV(t[0])/MV(e),t[1]=MV(t[1])/MV(e),mV.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,Hw(r)));for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Ow(wV(e[0]/i)*i),Ow(bV(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){xV.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Gz(t=MV(t)/MV(this.base),this._extent)},e.prototype.normalize=function(t){return Wz(t=MV(t)/MV(this.base),this._extent)},e.prototype.scale=function(t){return t=Hz(t,this._extent),SV(this.base,t)},e.type="log",e}(Oz),IV=CV.prototype;function TV(t,e){return _V(t,Pw(e))}IV.getMinorTicks=xV.getMinorTicks,IV.getLabel=xV.getLabel,Oz.registerClass(CV);var AV=CV,DV=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);Rv(i)?this._modelMinNum=OV(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=OV(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(Rv(o)?this._modelMaxNum=OV(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=OV(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=Pv(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=[cw(s[0],1),cw(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Yv(a)||Yv(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(a=h,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){"production"!==process.env.NODE_ENV&&Jv(!this.frozen),this[kV[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=EV[t];"production"!==process.env.NODE_ENV&&Jv(!this.frozen&&null==this[n]),this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),EV={min:"_determinedMin",max:"_determinedMax"},kV={min:"_dataMin",max:"_dataMax"};function NV(t,e,n){var r=t.rawExtentInfo;return r||(r=new DV(t,e,n),t.rawExtentInfo=r,r)}function OV(t,e){return null==e?null:Yv(e)?NaN:t.parse(e)}function LV(t,e){var n=t.type,r=NV(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=nV("bar",a),l=!1;if(Av(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=rV(s),c=function(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(t,e,n){if(t&&e){var r=t[eV(e)];return null!=r&&null!=n?r[tV(n)]:r}}(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;Av(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;Av(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function PV(t,e){var n=e,r=LV(t,n),i=r.extent,o=n.get("splitNumber");t instanceof AV&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function RV(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Yz({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new vV({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Oz.getClass(e)||Zz)}}function zV(t){var e,n,r=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):zv(r)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(r):Rv(r)?(e=r,function(n,r){return null!=i&&(r=n.value-i),e(VV(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function VV(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function BV(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new xx(t.x,t.y,o,a)}function FV(t){var e=t.get("interval");return null==e?"auto":e}function jV(t){return"category"===t.type&&0===FV(t.getLabelModel())}function GV(t,e){var n={};return Av(t.mapDimensionsAll(e),(function(e){n[Ez(t,e)]=!0})),Nv(n)}var WV=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),HV=1e-8;function UV(t,e){return Math.abs(t-e)<HV}function YV(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=lC(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return UV(i[0],s[0])&&UV(i[1],s[1])||(r+=lC(i[0],i[1],s[0],s[1],e,n)),0!==r}var XV=[];function $V(t,e){for(var n=0;n<t.length;n++)Tm(t[n],t[n],e)}function ZV(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Am(e,e,o),Dm(n,n,o))}}var qV=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),KV=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},JV=function(t){this.type="linestring",this.points=t},QV=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return h(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0];return Av(this.geometries,(function(e){"polygon"===e.type?ZV(e.exterior,n,r,t):Av(e.points,(function(e){ZV(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new xx(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(YV(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(YV(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new xx(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?($V(c.exterior,s),Av(c.interiors,(function(t){$V(t,s)}))):Av(c.points,(function(t){$V(t,s)}))}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(qV),tB=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return h(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=nx(XV),i=t;i&&!i.isGeoSVGGraphicRoot;)ix(r,i.getLocalTransform(),r),i=i.parent;return lx(r,r),Tm(n,n,r),n},e}(qV);function eB(t,e,n){for(var r=0;r<t.length;r++)t[r]=nB(t[r],e[r],n)}function nB(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function rB(t,e){return Dv(kv((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),Av(e.features,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=nB(i,r,n);break;case"Polygon":case"MultiLineString":eB(i,r,n);break;case"MultiPolygon":Av(i,(function(t,e){return eB(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new KV(o[0],o.slice(1)));break;case"MultiPolygon":Av(r.coordinates,(function(t){t[0]&&i.push(new KV(t[0],t.slice(1)))}));break;case"LineString":i.push(new JV([r.coordinates]));break;case"MultiLineString":i.push(new JV(r.coordinates))}var a=new QV(n[e||"name"],i,n.cp);return a.properties=n,a}))}var iB=IS();function oB(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=sB(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=zV(t);return{labels:Dv(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function aB(t,e){return"category"===t.type?function(t,e){var n,r,i=lB(t,"ticks"),o=FV(e),a=uB(i,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(Rv(o))n=pB(t,o,!0);else if("auto"===o){var s=sB(t,t.getLabelModel());r=s.labelCategoryInterval,n=Dv(s.labels,(function(t){return t.tickValue}))}else n=hB(t,r=o,!0);return cB(i,o,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:Dv(t.scale.getTicks(),(function(t){return t.value}))}}function sB(t,e){var n,r,i=lB(t,"labels"),o=FV(e),a=uB(i,o);return a||(Rv(o)?n=pB(t,o):(r="auto"===o?function(t){var e=iB(t).autoInterval;return null!=e?e:iB(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=hB(t,r)),cB(i,o,{labels:n,labelCategoryInterval:r}))}function lB(t,e){return iB(t)[e]||(iB(t)[e]=[])}function uB(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function cB(t,e,n){return t.push({key:e,value:n}),n}function hB(t,e,n){var r=zV(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=jV(t),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function pB(t,e,n){var r=t.scale,i=zV(t),o=[];return Av(r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var dB=[0,1],fB=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return zw(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&gB(n=n.slice(),r.count()),kw(t,dB,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&gB(n=n.slice(),r.count());var i=kw(t,n,dB,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Dv(aB(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Av(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var c=s[0]>s[1];h(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift());r&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]});h(s[1],o.coord)&&(r?o.coord=s[1]:e.pop());r&&h(o.coord,s[1])&&e.push({coord:s[1]});function h(t,e){return t=Ow(t),e=Ow(e),c?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),Dv(this.scale.getMinorTicks(t),(function(t){return Dv(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return oB(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=zV(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),p=0,d=0;l<=o[1];l+=s){var f,g,y=aw(n({value:l}),e.font,"center","top");f=1.3*y.width,g=1.3*y.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var v=p/c,m=d/h;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),_=iB(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},t}();function gB(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var yB=fB,vB=2*Math.PI,mB=tC.CMD,xB=["top","right","bottom","left"];function _B(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0)}}function bB(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(r-i)%vB<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var p=r;r=oC(i),i=oC(p)}else r=oC(r),i=oC(i);r>i&&(i+=vB);var d=Math.atan2(s,a);if(d<0&&(d+=vB),d>=r&&d<=i||d+vB>=r&&d+vB<=i)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(r)+t,g=n*Math.sin(r)+e,y=n*Math.cos(i)+t,v=n*Math.sin(i)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(x))}function wB(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,p=Math.sqrt(c*c+h*h),d=(l*(c/=p)+u*(h/=p))/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var f=a[0]=t+d*c,g=a[1]=e+d*h;return Math.sqrt((f-i)*(f-i)+(g-o)*(g-o))}function SB(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var MB=[];function CB(t,e,n){var r=SB(e.x,e.y,e.width,e.height,t.x,t.y,MB);return n.set(MB[0],MB[1]),r}function IB(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,p=t.y,d=0;d<c.length;){var f=c[d++];1===d&&(s=o=c[d],l=a=c[d+1]);var g=u;switch(f){case mB.M:o=s=c[d++],a=l=c[d++];break;case mB.L:g=wB(o,a,c[d],c[d+1],h,p,MB,!0),o=c[d++],a=c[d++];break;case mB.C:g=c_(o,a,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],h,p,MB),o=c[d++],a=c[d++];break;case mB.Q:g=y_(o,a,c[d++],c[d++],c[d],c[d+1],h,p,MB),o=c[d++],a=c[d++];break;case mB.A:var y=c[d++],v=c[d++],m=c[d++],x=c[d++],_=c[d++],b=c[d++];d+=1;var w=!!(1-c[d++]);r=Math.cos(_)*m+y,i=Math.sin(_)*x+v,d<=1&&(s=r,l=i),g=bB(y,v,x,_,_+b,w,(h-y)*x/m+y,p,MB),o=Math.cos(_+b)*m+y,a=Math.sin(_+b)*x+v;break;case mB.R:g=SB(s=o=c[d++],l=a=c[d++],c[d++],c[d++],h,p,MB);break;case mB.Z:g=wB(o,a,s,l,h,p,MB,!0),o=s,a=l}g<u&&(u=g,n.set(MB[0],MB[1]))}return u}var TB=new ux,AB=new ux,DB=new ux,EB=new ux,kB=new ux;function NB(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||xB,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&lx([],c),p=e.get("length2")||0;u&&DB.copy(u);for(var d=0;d<a.length;d++){_B(a[d],0,s,TB,EB),ux.scaleAndAdd(AB,TB,EB,p),AB.transform(h);var f=t.getBoundingRect(),g=u?u.distance(AB):t instanceof wC?IB(AB,t.path,DB):CB(AB,f,DB);g<l&&(l=g,AB.transform(c),DB.transform(c),DB.toArray(o[0]),AB.toArray(o[1]),TB.toArray(o[2]))}PB(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var OB=[],LB=new ux;function PB(t,e){if(e<=180&&e>0){e=e/180*Math.PI,TB.fromArray(t[0]),AB.fromArray(t[1]),DB.fromArray(t[2]),ux.sub(EB,TB,AB),ux.sub(kB,DB,AB);var n=EB.len(),r=kB.len();if(!(n<.001||r<.001)){EB.scale(1/n),kB.scale(1/r);var i=EB.dot(kB);if(Math.cos(e)<i){var o=wB(AB.x,AB.y,DB.x,DB.y,TB.x,TB.y,OB,!1);LB.fromArray(OB),LB.scaleAndAdd(kB,o/Math.tan(Math.PI-e));var a=DB.x!==AB.x?(LB.x-AB.x)/(DB.x-AB.x):(LB.y-AB.y)/(DB.y-AB.y);if(isNaN(a))return;a<0?ux.copy(LB,AB):a>1&&ux.copy(LB,DB),LB.toArray(t[1])}}}}function RB(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,TB.fromArray(t[0]),AB.fromArray(t[1]),DB.fromArray(t[2]),ux.sub(EB,AB,TB),ux.sub(kB,DB,AB);var r=EB.len(),i=kB.len();if(!(r<.001||i<.001))if(EB.scale(1/r),kB.scale(1/i),EB.dot(e)<Math.cos(n)){var o=wB(AB.x,AB.y,DB.x,DB.y,TB.x,TB.y,OB,!1);LB.fromArray(OB);var a=Math.PI/2,s=a+Math.acos(kB.dot(e))-n;if(s>=a)ux.copy(LB,DB);else{LB.scaleAndAdd(kB,o/Math.tan(Math.PI/2-s));var l=DB.x!==AB.x?(LB.x-AB.x)/(DB.x-AB.x):(LB.y-AB.y)/(DB.y-AB.y);if(isNaN(l))return;l<0?ux.copy(LB,AB):l>1&&ux.copy(LB,DB)}LB.toArray(t[1])}}}function zB(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function VB(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Mm(r[0],r[1]),o=Mm(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Im([],r[1],r[0],a/i),l=Im([],r[1],r[2],a/o),u=Im([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function BB(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<cI.length;l++){var u=cI[l],c=e[u],h="normal"===u;if(c){var p=c.get("show");if((h?s:$v(i.states[u]&&i.states[u].ignore,s))||!$v(p,a)){var d=h?r:r&&r.states[u];d&&(d.ignore=!0),r&&zB(r,!0,u,c);continue}r||(r=new KT,t.setTextGuideLine(r),h||!s&&a||zB(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),zB(r,!1,u,c)}}if(r){Mv(r.style,n),r.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=VB}}else r&&t.removeTextGuideLine()}function FB(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<uI.length;r++){var i=uI[r];n[i]=t.getModel([i,e])}return n}function jB(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new bA(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function GB(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=0,h=0;h<a;h++){var p=t[h],d=p.rect;(s=d[e]-l)<0&&(d[e]-=s,p.label[e]-=s,u=!0),c+=Math.max(-s,0),l=d[e]+d[n]}c>0&&o&&_(-c/a,0,a);var f,g,y=t[0],v=t[a-1];return m(),f<0&&b(-f,.8),g<0&&b(g,.8),m(),x(f,g,1),x(g,f,-1),m(),f<0&&w(-f),g<0&&w(g),u}function m(){f=y.rect[e]-r,g=i-v.rect[e]-v.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){_(r*n,0,a);var i=r+t;i<0&&b(-i*n,1)}else b(-t*n,1)}}function _(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function b(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){_(o[l]*h,0,l+1)}else for(l=a-1;l>0;l--){_(-(o[l-1]*h),l,a)}}}function w(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?_(n,0,r+1):_(-n,a-r-1,a),(t-=n)<=0)return}}function WB(t,e,n,r){return GB(t,"y","height",e,n,r)}function HB(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new xx(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new bA(f.localRect,f.transform)),h||(h=new bA(s,l)),h.intersect(f.obb)){p=!0;break}}}p?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function UB(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function YB(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:UB(r&&r.shape.points)}}var XB=["align","verticalAlign","width","height","fontSize"],$B=new tw,ZB=IS(),qB=IS();function KB(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var JB=["x","y","rotation"],QB=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),l=r.getBoundingRect().plain();xx.applyTransform(l,l,s),s?$B.setLocalTransform(s):($B.x=$B.y=$B.rotation=$B.originX=$B.originY=0,$B.scaleX=$B.scaleY=1),$B.rotation=oC($B.rotation);var u,c=r.__hostTarget;if(c){u=c.getBoundingRect().plain();var h=c.getComputedTransform();xx.applyTransform(u,u,h)}var p=u&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:$B.x,y:$B.y,scaleX:$B.scaleX,scaleY:$B.scaleY,rotation:$B.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:a.position,attachedRot:a.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Rv(r)||Nv(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=tI(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){NB(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u=Rv(o.layoutOption)?o.layoutOption(YB(o,s)):o.layoutOption)||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=Nw(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Nw(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var p=s.getTextGuideLine();p&&(p.setShape({points:u.labelLinePoints}),h=!1)}ZB(a).needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var d=0;d<XB.length;d++){var f=XB[d];a.setStyle(f,null!=u[f]?u[f]:l.style[f])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;if(null!=o.dataIndex)g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",r(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e,n=t.getWidth(),r=t.getHeight(),i=jB(this._labelList),o=kv(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),a=kv(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));GB(o,"x","width",0,n,e),WB(a,0,r),HB(kv(i,(function(t){return t.layoutOption.hideOverlap})))},t.prototype.processLabelsOverall=function(){var t=this;Av(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=ZB(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=tI(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");BB(t,FB(a),s),NB(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!EA(t))){var i=(d=ZB(n)).oldLayout,o=tI(t),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=e.getData(o.dataType);if(i){n.attr(i);var u=t.prevStates;u&&(Cv(u,"select")>=0&&n.attr(d.oldLayoutSelect),Cv(u,"emphasis")>=0&&n.attr(d.oldLayoutEmphasis)),AA(n,s,e,a)}else if(n.attr(s),!_D(n).valueAnimation){var c=$v(n.style.opacity,1);n.style.opacity=0,DA(n,{style:{opacity:c}},e,a)}if(d.oldLayout=s,n.states.select){var h=d.oldLayoutSelect={};KB(h,s,JB),KB(h,n.states.select,JB)}if(n.states.emphasis){var p=d.oldLayoutEmphasis={};KB(p,s,JB),KB(p,n.states.emphasis,JB)}wD(n,a,l,e,e)}if(r&&!r.ignore&&!r.invisible){i=(d=qB(r)).oldLayout;var d,f={points:r.shape.points};i?(r.attr({shape:i}),AA(r,{shape:f},e)):(r.setShape(f),r.style.strokePercent=0,DA(r,{style:{strokePercent:1}},e)),d.oldLayout=f}},t}(),tF=IS();var eF=Math.sin,nF=Math.cos,rF=Math.PI,iF=2*Math.PI,oF=180/rF,aF=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=Z_(c-iF)||(u?l>=iF:-l>=iF),p=l>0?l%iF:l%iF+iF,d=!1;d=!!h||!Z_(c)&&p>=rF==!!u;var f=t+n*nF(o),g=e+r*eF(o);this._start&&this._add("M",f,g);var y=Math.round(i*oF);if(h){var v=1/this._p,m=(u?1:-1)*(iF-v);this._add("A",n,r,y,1,+u,t+n*nF(o+m),e+r*eF(o+m)),v>.01&&this._add("A",n,r,y,0,+u,f,g)}else{var x=t+n*nF(a),_=e+r*eF(a);this._add("A",n,r,y,+d,+u,x,_)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var p=arguments[h];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),sF="none",lF=Math.round;var uF=["lineCap","miterLimit","lineJoin"],cF=Dv(uF,(function(t){return"stroke-"+t.toLowerCase()}));function hF(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof DC)t("opacity",i);else{if(function(t){var e=t.fill;return null!=e&&e!==sF}(e)){var o=X_(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*i:o.opacity*i;(r||a<1)&&t("fill-opacity",a)}else t("fill",sF);if(function(t){var e=t.stroke;return null!=e&&e!==sF}(e)){var s=X_(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if((r||1!==u)&&t("stroke-width",u),(r||h)&&t("paint-order",h?"stroke":"fill"),(r||c<1)&&t("stroke-opacity",c),e.lineDash){var p=dP(n),d=p[0],f=p[1];d&&(f=lF(f||0),t("stroke-dasharray",d.join(",")),(f||r)&&t("stroke-dashoffset",f))}else r&&t("stroke-dasharray",sF);for(var g=0;g<uF.length;g++){var y=uF[g];if(r||e[y]!==mC[y]){var v=e[y]||mC[y];v&&t(cF[g],v)}}}else r&&t("stroke",sF)}}var pF="http://www.w3.org/2000/svg",dF="http://www.w3.org/1999/xlink",fF="http://www.w3.org/2000/xmlns/",gF="http://www.w3.org/XML/1998/namespace",yF="ecmeta_";function vF(t){return document.createElementNS(pF,t)}function mF(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function xF(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var r=e.children,i=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(i,o)+("style"!==i?Gm(a):a||"")+(r?""+n+Dv(r,(function(e){return t(e)})).join(n)+n:"")+("</"+i+">")}(t)}function _F(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function bF(t,e,n,r){return mF("svg","root",{width:t,height:e,xmlns:pF,"xmlns:xlink":dF,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var wF=0;function SF(){return wF++}var MF={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"},CF="transform-origin";function IF(t,e,n){var r=Sv({},t.shape);Sv(r,e),t.buildPath(n,r);var i=new aF;return i.reset(ob(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function TF(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[CF]=n+"px "+r+"px")}var AF={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function DF(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function EF(t){return zv(t)?MF[t]?"cubic-bezier("+MF[t]+")":x_(t)?t:"":""}function kF(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof cA){var s=function(t,e,n){var r,i,o=t.shape.paths,a={};if(Av(o,(function(t){var e=_F(n.zrId);e.animation=!0,kF(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=Nv(o),u=l.length;if(u){var c=o[i=l[u-1]];for(var h in c){var p=c[h];a[h]=a[h]||{d:""},a[h].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(i)>=0&&(r=f)}}})),r){e.d=!1;var s=DF(a,n);return r.replace(i,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],p=EF(c.getClip().easing),d=c.getDelay();p?h.push(p):h.push("linear"),d&&h.push(d/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(i){var o,a=i[1],s=a.length,l={},u={},c={},h="animation-timing-function";function p(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],p=Math.round(c.time/i*100)+"%",d=EF(c.easing),f=c.rawValue;(zv(f)||Bv(f))&&(e[p]=e[p]||{},e[p][l]=c.rawValue,d&&(e[p][h]=d))}}}}for(var d=0;d<s;d++){(S=(w=a[d]).targetName)?"shape"===S&&p(w,u):!r&&p(w,l)}for(var f in l){var g={};nw(g,t),Sv(g,l[f]);var y=ab(g),v=l[f][h];c[f]=y?{transform:y}:{},TF(c[f],g),v&&(c[f][h]=v)}var m=!0;for(var f in u){c[f]=c[f]||{};var x=!o;v=u[f][h];x&&(o=new tC);var _=o.len();o.reset(),c[f].d=IF(t,u[f],o);var b=o.len();if(!x&&_!==b){m=!1;break}v&&(c[f][h]=v)}if(!m)for(var f in c)delete c[f].d;if(!r)for(d=0;d<s;d++){var w,S;"style"===(S=(w=a[d]).targetName)&&p(w,c,(function(t){return AF[t]}))}var M,C=Nv(c),I=!0;for(d=1;d<C.length;d++){var T=C[d-1],A=C[d];if(c[T][CF]!==c[A][CF]){I=!1;break}M=c[T][CF]}if(I&&M){for(var f in c)c[f][CF]&&delete c[f][CF];e[CF]=M}if(kv(C,(function(t){return Nv(c[t]).length>0})).length)return DF(c,n)+" "+i[0]+" both"}for(var y in l){(s=g(l[y]))&&a.push(s)}if(a.length){var v=n.zrId+"-cls-"+SF();n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function NF(t,e,n,r){var i=JSON.stringify(t),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+SF(),n.cssStyleCache[i]=o,n.cssNodes["."+o+(r?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var OF=Math.round;function LF(t){return t&&zv(t.src)}function PF(t){return t&&Rv(t.toDataURL)}function RF(t,e,n,r){hF((function(i,o){var a="fill"===i||"stroke"===i;a&&rb(o)?XF(e,t,i,r):a&&tb(o)?$F(n,t,i,r):t[i]=a&&"none"===o?"transparent":o}),e,n,!1),function(t,e,n){var r=t.style;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(r)){var i=function(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,p=r.shadowBlur,d=X_(r.shadowColor),f=d.opacity,g=d.color,y=p/2/l+" "+p/2/u;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=mF("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[mF("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:y,"flood-color":g,"flood-opacity":f})]),o[i]=a}e.filter=ib(a)}}(n,t,r)}function zF(t,e){var n=function(t){if("function"==typeof Iw)return Iw(t)}(e);n&&(n.each((function(e,n){null!=e&&(t[(yF+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[yF+"silent"]="true"))}function VF(t){return Z_(t[0]-1)&&Z_(t[1])&&Z_(t[2])&&Z_(t[3]-1)}function BF(t,e,n){if(e&&(!function(t){return Z_(t[4])&&Z_(t[5])}(e)||!VF(e))){var r=n?10:1e4;t.transform=VF(e)?"translate("+OF(e[4]*r)/r+" "+OF(e[5]*r)/r+")":function(t){return"matrix("+q_(t[0])+","+q_(t[1])+","+q_(t[2])+","+q_(t[3])+","+K_(t[4])+","+K_(t[5])+")"}(e)}}function FF(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(OF(r[o][0]*n)/n),i.push(OF(r[o][1]*n)/n);e.points=i.join(" ")}function jF(t){return!t.smooth}var GF,WF,HF={circle:[(GF=["cx","cy","r"],WF=Dv(GF,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var r=0;r<WF.length;r++){var i=WF[r],o=t[i[0]];null!=o&&(e[i[1]]=OF(o*n)/n)}})],polyline:[FF,jF],polygon:[FF,jF]};function UF(t,e){var n=t.style,r=t.shape,i=HF[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&ob(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var p=h.getVersion(),d=t,f=d.__svgPathBuilder;d.__svgPathVersion===p&&f&&l===d.__svgPathStrokePercent||(f||(f=d.__svgPathBuilder=new aF),f.reset(u),h.rebuildPath(f,l),f.generateStr(),d.__svgPathVersion=p,d.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);i[0](r,o,g)}return BF(o,t.transform),RF(o,n,t,e),zF(o,t),e.animation&&kF(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent())NF(u={"pointer-events":"none"},e,n,!0);else{var r=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},i=r.fill;if(!i){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(i=U_(s))}var l=r.lineWidth;l&&(l/=!r.strokeNoScale&&t.transform?t.transform[0]:1);var u={cursor:"pointer"};i&&(u.fill=i),r.stroke&&(u.stroke=r.stroke),l&&(u["stroke-width"]=l),NF(u,e,n,!0)}}(t,o,e),mF(s,t.id+"",o)}function YF(t,e){return t instanceof wC?UF(t,e):t instanceof DC?function(t,e){var n=t.style,r=n.image;if(r&&!zv(r)&&(LF(r)?r=r.src:PF(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a={href:r,width:n.width,height:n.height};return i&&(a.x=i),o&&(a.y=o),BF(a,t.transform),RF(a,n,t,e),zF(a,t),e.animation&&kF(t,a,e),mF("image",t.id+"",a)}}(t,e):t instanceof CC?function(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||ev,o=n.x||0,a=function(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}(n.y||0,uw(i),n.textBaseline),s={"dominant-baseline":"central","text-anchor":J_[n.textAlign]||n.textAlign};if(YC(n)){var l="",u=n.fontStyle,c=HC(n.fontSize);if(!parseFloat(c))return;var h=n.fontFamily||tv,p=n.fontWeight;l+="font-size:"+c+";font-family:"+h+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),p&&"normal"!==p&&(l+="font-weight:"+p+";"),s.style=l}else s.style="font: "+i;return r.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),BF(s,t.transform),RF(s,n,t,e),zF(s,t),e.animation&&kF(t,s,e),mF("text",t.id+"",s,void 0,r)}}(t,e):void 0}function XF(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(eb(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!nb(o))return void("production"!==process.env.NODE_ENV&&xv("Illegal gradient type."));i="radialGradient",a.cx=$v(o.x,.5),a.cy=$v(o.y,.5),a.r=$v(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*K_(s[u].offset)+"%",p=X_(s[u].color),d=p.color,f=p.opacity,g={offset:h};g["stop-color"]=d,f<1&&(g["stop-opacity"]=f),l.push(mF("stop",u+"",g))}var y=xF(mF(i,"",a,l)),v=r.gradientCache,m=v[y];m||(m=r.zrId+"-g"+r.gradientIdx++,v[y]=m,a.id=m,r.defs[m]=mF(i,m,a,l)),e[n]=ib(m)}function $F(t,e,n,r){var i,o=t.style[n],a=t.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if(Q_(o)){var p=o.imageWidth,d=o.imageHeight,f=void 0,g=o.image;if(zv(g)?f=g:LF(g)?f=g.src:PF(g)&&(f=g.toDataURL()),"undefined"==typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";Jv(p,y),Jv(d,y)}else if(null==p||null==d){var v=function(t,e){if(t){var n=t.elm,r=p||e.width,i=d||e.height;"pattern"===t.tag&&(c?(i=1,r/=a.width):h&&(r=1,i/=a.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},m=KS(f,null,t,(function(t){u||v(w,t),v(i,t)}));m&&m.width&&m.height&&(p=p||m.width,d=d||m.height)}i=mF("image","img",{href:f,width:p,height:d}),s.width=p,s.height=d}else o.svgElement&&(i=_v(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){var x,_;u?x=_=1:c?(_=1,x=s.width/a.width):h?(x=1,_=s.height/a.height):s.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(s.width=x),null==_||isNaN(_)||(s.height=_);var b=ab(o);b&&(s.patternTransform=b);var w=mF("pattern","",s,[i]),S=xF(w),M=r.patternCache,C=M[S];C||(C=r.zrId+"-p"+r.patternIdx++,M[S]=C,s.id=C,w=r.defs[C]=mF("pattern",C,s,[i])),e[n]=ib(C)}}function ZF(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};r[t.id]=o,i[o]=mF("clipPath",o,a,[UF(t,n)])}e["clip-path"]=ib(o)}function qF(t){return document.createTextNode(t)}function KF(t,e,n){t.insertBefore(e,n)}function JF(t,e){t.removeChild(e)}function QF(t,e){t.appendChild(e)}function tj(t){return t.parentNode}function ej(t){return t.nextSibling}function nj(t,e){t.textContent=e}var rj=58,ij=120,oj=mF("","");function aj(t){return void 0===t}function sj(t){return void 0!==t}function lj(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&("production"!==process.env.NODE_ENV&&null!=r[o]&&console.error("Duplicate key "+o),r[o]=i)}return r}function uj(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function cj(t){var e,n=t.children,r=t.tag;if(sj(r)){var i=t.elm=vF(r);if(dj(oj,t),Pv(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&QF(i,cj(o))}else sj(t.text)&&!Fv(t.text)&&QF(i,qF(t.text))}else t.elm=qF(t.text);return t.elm}function hj(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&KF(t,cj(o),e)}}function pj(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if(sj(i.tag))JF(tj(i.elm),i.elm);else JF(t,i.elm)}}function dj(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:n.charCodeAt(0)!==ij?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(fF,n,a):n.charCodeAt(3)===rj?r.setAttributeNS(gF,n,a):n.charCodeAt(5)===rj?r.setAttributeNS(dF,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function fj(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(dj(t,e),aj(e.text)?sj(r)&&sj(i)?r!==i&&function(t,e,n){for(var r,i,o,a=0,s=0,l=e.length-1,u=e[0],c=e[l],h=n.length-1,p=n[0],d=n[h];a<=l&&s<=h;)null==u?u=e[++a]:null==c?c=e[--l]:null==p?p=n[++s]:null==d?d=n[--h]:uj(u,p)?(fj(u,p),u=e[++a],p=n[++s]):uj(c,d)?(fj(c,d),c=e[--l],d=n[--h]):uj(u,d)?(fj(u,d),KF(t,u.elm,ej(c.elm)),u=e[++a],d=n[--h]):uj(c,p)?(fj(c,p),KF(t,c.elm,u.elm),c=e[--l],p=n[++s]):(aj(r)&&(r=lj(e,a,l)),aj(i=r[p.key])||(o=e[i]).tag!==p.tag?KF(t,cj(p),u.elm):(fj(o,p),e[i]=void 0,KF(t,o.elm,u.elm)),p=n[++s]);(a<=l||s<=h)&&(a>l?hj(t,null==n[h+1]?null:n[h+1].elm,n,s,h):pj(t,e,a,l))}(n,r,i):sj(i)?(sj(t.text)&&nj(n,""),hj(n,null,i,0,i.length-1)):sj(r)?pj(n,r,0,r.length-1):sj(t.text)&&nj(n,""):t.text!==e.text&&(sj(r)&&pj(n,r,0,r.length-1),nj(n,e.text)))}var gj=0,yj=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=vj("refreshHover"),this.configLayer=vj("configLayer"),this.storage=e,this._opts=n=Sv({},n),this.root=t,this._id="zr"+gj++,this._oldVNode=bF(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=vF("svg");dj(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(uj(t,e))fj(t,e);else{var n=t.elm,r=tj(n);cj(e),null!==r&&(KF(r,e.elm,ej(n)),pj(r,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return YF(t,_F(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=_F(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],a=this._bgVNode=function(t,e,n,r){var i;if(n&&"none"!==n)if(i=mF("rect","bg",{width:t,height:e,x:"0",y:"0"}),rb(n))XF({fill:n},i.attrs,"fill",r);else if(tb(n))$F({style:{fill:n},dirty:hm,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=X_(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}(n,r,this._backgroundColor,i);a&&o.push(a);var s=t.compress?null:this._mainVNode=mF("g","main",{},[]);this._paintList(e,i,s?s.children:o),s&&o.push(s);var l=Dv(Nv(i.defs),(function(t){return i.defs[t]}));if(l.length&&o.push(mF("defs","defs",{},l)),t.animation){var u=function(t,e,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,o=r+"}",a=Dv(Nv(t),(function(e){return e+i+Dv(Nv(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(r)+o})).join(r),s=Dv(Nv(e),(function(t){return"@keyframes "+t+i+Dv(Nv(e[t]),(function(n){return n+i+Dv(Nv(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=mF("style","stl",{},[],u);o.push(c)}}return bF(n,r,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},xF(this.renderToVNode({animation:$v(t.cssAnimation,!0),emphasis:$v(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:$v(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,p=h&&h.length||0,d=i&&i.length||0,f=void 0;for(f=Math.max(p-1,d-1);f>=0&&(!h||!i||h[f]!==i[f]);f--);for(var g=d-1;g>f;g--)r=a[--s-1];for(var y=f+1;y<p;y++){var v={};ZF(h[y],v,e);var m=mF("g","clip-g-"+l++,v,[]);(r?r.children:n).push(m),a[s++]=m,r=m}i=h;var x=YF(c,e);x&&(r?r.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=pP(r,0,n),e=pP(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(tb(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=sb(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function vj(t){return function(){"production"!==process.env.NODE_ENV&&xv('In SVG mode painter not support method "'+t+'"')}}var mj=yj;function xj(t,e,n){var r=ov.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var _j=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Hb,"string"==typeof e?i=xj(e,n,r):Fv(e)&&(e=(i=e).id),o.id=e,o.dom=i;var a=i.style;return a&&(um(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return h(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=xj("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new xx(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new xx(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new xx(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var p=t.width*t.height,d=c.width*c.height,f=l.width*l.height-p-d;f<r&&(r=f,i=u)}}if(s&&(o[i].union(t),n=!0),!n)(e=new xx(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(d=t[c]){var h=d.shouldBePainted(n,r,!0,!0);(f=d.__isRendered&&(d.__dirty&Fx||!h)?d.getPrevPaintRect():null)&&u(f);var p=h&&(d.__dirty&Fx||!d.__isRendered)?d.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d,f;h=(d=e[c])&&d.shouldBePainted(n,r,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered)(f=d.getPrevPaintRect())&&u(f)}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function p(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;if(Hv(e))a=(e.global||e.__width===r&&e.__height===o)&&e.__canvasGradient||cP(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a,e.__width=r,e.__height=o;else null!=e.image&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=_P(i,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?p(0,0,o,a):n.length&&Av(n,(function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(Nm),bj=_j,wj=1e5,Sj=314159,Mj=.01;var Cj=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=Sv({},n||{}),this.dpr=n.devicePixelRatio||Hb,this._singleCanvas=i,this.root=t,t.style&&(um(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new bj(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=Sj,o.push(Sj),this._domRoot=t}else{this._width=pP(t,0,n),this._height=pP(t,1,n);var h=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(wj)),r||(r=n.ctx).save(),OP(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(wj)},t.prototype.paintOne=function(t,e){NP(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Yx((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(Sj).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=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)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,d=o&&l.createRepaintRects(t,e,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,y=g&&Date.now(),v=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,d);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,v,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-y>15)break}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=p.dpr,b=0;b<d.length;++b){var w=d[b];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},p=this,d=0;d<i.length;d++)h(d);return Jy.wxa&&Av(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(OP(a,t,i,o),t.setPrevPaintRect(s))}else OP(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Sj);var n=this._layers[t];return n||((n=new bj("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?bv(n,this._layerConfig[t],!0):this._layerConfig[t-Mj]&&bv(n,this._layerConfig[t-Mj],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(n[t])"production"!==process.env.NODE_ENV&&xv("ZLevel "+t+" has been used already");else if(function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(i>0&&t>r[0]){for(s=0;s<i-1&&!(r[s]<t&&r[s+1]>t);s++);a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}else"production"!==process.env.NODE_ENV&&xv("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<t.length;i++){var s,l=(s=t[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?Mj:0),this._needsManuallyCompositing),u.__builtin__||xv("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),o=u),s.__dirty&Fx&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Av(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?bv(n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+Mj)bv(this._layers[i],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(Cv(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=pP(i,0,r),e=pP(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(Sj).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new bj("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];OP(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),Ij=Cj;var Tj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return h(e,t),e.prototype.getInitialData=function(t){if("production"!==process.env.NODE_ENV){var e=t.coordinateSystem;if("polar"!==e&&"cartesian2d"!==e)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return kz(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Sw,n=aP("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=aP(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(FO),Aj=Tj;function Dj(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=DN(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(DN(t,e,n[a]));return o.join(" ")}}function Ej(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Pv(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var kj=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return h(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=aP(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Nj,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){OI(this.childAt(0))},e.prototype.downplay=function(){LI(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(p=this.childAt(0)).silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(h):AA(p,h,a,n),LA(p)}if(this._updateCommon(t,n,s,r,i),l){var p=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,DA(p,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,p,d,f=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,p=r.hoverScale,d=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var y=r&&r.itemModel?r.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=pD(y),p=v.getShallow("scale"),d=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=lP(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof DC){var w=f.style;f.useStyle(Sv({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(Sv({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"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=i&&i.useNameLabel;hD(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):Dj(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=f.ensureState("emphasis");I.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var T=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*T,I.scaleY=this._sizeY*T,this.setSymbolScale(1),XI(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=tI(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&kA(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();kA(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return sP(t.getItemVisual(e,"symbolSize"))},e}(Sw);function Nj(t,e){this.parent.drift(t,e)}function Oj(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Lj(t){return null==t||Fv(t)||(t={isIgnore:t}),t||{}}function Pj(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:pD(e),cursorStyle:e.get("cursor")}}var Rj=function(){function t(t){this.group=new Sw,this._SymbolCtor=t||kj}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Lj(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Pj(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(Oj(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,h){var p=i.getItemGraphicEl(h),d=u(c);if(Oj(t,d,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,c,s,l)).setPosition(d);else{p.updateData(t,c,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):AA(p,y,r)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Pj(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Lj(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Oj(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){aD(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();function zj(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=function(t,e){var n=0,r=t.scale.getExtent();"start"===e?n=r[0]:"end"===e?n=r[1]:Bv(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Dv(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,d=e.getCalculationInfo("stackResultDimension");return Dz(e,h[0])&&(p=!0,h[0]=d),Dz(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Vj(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}var Bj=Math.min,Fj=Math.max;function jj(t,e){return isNaN(t)||isNaN(e)}function Gj(t,e,n,r,i,o,a,s,l){for(var u,c,h,p,d,f,g=n,y=0;y<r;y++){var v=e[2*g],m=e[2*g+1];if(g>=i||g<0)break;if(jj(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),h=v,p=m;else{var x=v-u,_=m-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&y<r;)y++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],x=(v=e[2*g])-u,_=(m=e[2*g+1])-c;var M=y+1;if(l)for(;jj(w,S)&&M<r;)M++,w=e[2*(b+=o)],S=e[2*b+1];var C=.5,I=0,T=0,A=void 0,D=void 0;if(M>=r||jj(w,S))d=v,f=m;else{I=w-u,T=S-c;var E=v-u,k=w-v,N=m-c,O=S-m,L=void 0,P=void 0;if("x"===s){var R=I>0?1:-1;d=v-R*(L=Math.abs(E))*a,f=m,A=v+R*(P=Math.abs(k))*a,D=m}else if("y"===s){var z=T>0?1:-1;d=v,f=m-z*(L=Math.abs(N))*a,A=v,D=m+z*(P=Math.abs(O))*a}else L=Math.sqrt(E*E+N*N),d=v-I*a*(1-(C=(P=Math.sqrt(k*k+O*O))/(P+L))),f=m-T*a*(1-C),D=m+T*a*C,A=Bj(A=v+I*a*C,Fj(w,v)),D=Bj(D,Fj(S,m)),A=Fj(A,Bj(w,v)),f=m-(T=(D=Fj(D,Bj(S,m)))-m)*L/P,d=Bj(d=v-(I=A-v)*L/P,Fj(u,v)),f=Bj(f,Fj(c,m)),A=v+(I=v-(d=Fj(d,Bj(u,v))))*P/L,D=m+(T=m-(f=Fj(f,Bj(c,m))))*P/L}t.bezierCurveTo(h,p,d,f,v,m),h=A,p=D}else t.lineTo(v,m)}u=v,c=m,g+=o}return y}var Wj=function(){this.smooth=0,this.smoothConstraint=!0},Hj=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return h(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Wj},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&jj(n[2*i-2],n[2*i-1]);i--);for(;r<i&&jj(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=Gj(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=tC.CMD,a="x"===e,s=[],l=0;l<i.length;){var u=void 0,c=void 0,h=void 0,p=void 0,d=void 0,f=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(t-n)/(u-n):(t-r)/(c-r))<=1&&g>=0){var y=a?(c-r)*g+r:(u-n)*g+n;return a?[t,y]:[y,t]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],h=i[l++],p=i[l++],d=i[l++],f=i[l++];var v=a?s_(n,u,h,d,t,s):s_(r,c,p,f,t,s);if(v>0)for(var m=0;m<v;m++){var x=s[m];if(x<=1&&x>=0){y=a?o_(r,c,p,f,x):o_(n,u,h,d,x);return a?[t,y]:[y,t]}}n=d,r=f}}},e}(wC),Uj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e}(Wj),Yj=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return h(e,t),e.prototype.getDefaultShape=function(){return new Uj},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&jj(n[2*o-2],n[2*o-1]);o--);for(;i<o&&jj(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=Gj(t,n,i,o,o,1,e.smooth,a,e.connectNulls);Gj(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(wC);function Xj(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new zC({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=Rv(i)?function(t){i(t,h)}:null;DA(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}function $j(t,e,n){var r=t.getArea(),i=Ow(r.r0,1),o=Ow(r.r,1),a=new WT({shape:{cx:Ow(t.cx,1),cy:Ow(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,DA(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function Zj(t,e,n,r,i){return t?"polar"===t.type?$j(t,e,n):"cartesian2d"===t.type?Xj(t,e,n,r,i):null:null}function qj(t,e){return t.type===e}function Kj(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Jj(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function Qj(t,e){var n=Jj(t),r=n[0],i=n[1],o=Jj(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function tG(t){return Bv(t)?t:t?.5:0}function eG(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(r){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+c[o])/2,d=[];l[o]=d[o]=p,l[1-o]=u[1-o],d[1-o]=c[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function nG(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord;return{coord:n,color:function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=R_(e[i]),s=R_(e[o]),l=r-i,u=G_([C_(E_(a[0],s[0],l)),C_(E_(a[1],s[1],l)),C_(E_(a[2],s[2],l)),I_(E_(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}((n-r)/(e.coord-r),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function rG(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*kj.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return Av(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function iG(t,e){return isNaN(t)||isNaN(e)}function oG(t,e){return[t[2*e],t[2*e+1]]}function aG(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<uI.length;e++)if(t.get([uI[e],"endLabel","show"]))return!0;return!1}function sG(t,e,n,r){if(qj(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=aG(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Xj(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}return"production"!==process.env.NODE_ENV&&r.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),$j(e,n,r)}var lG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.init=function(){var t=new Sw,e=new Rj;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,h=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,y=!e.ssr&&t.get("animation"),v=!l.isEmpty(),m=l.get("origin"),x=zj(i,a,m),_=v&&function(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=Jz(2*r),o=0;o<r;o++){var a=Vj(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,x),b=t.get("showSymbol"),w=t.get("connectNulls"),S=b&&!c&&rG(t,a,i),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))})),b||p.remove(),o.add(g);var C,I=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(C=i.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(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count())if("cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=Dv(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=nG(u,"x"===i?n.getWidth():n.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";Av(p,(function(t){t.offset=(t.coord-f)/y})),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var v=new dA(0,0,0,0,p,!0);return v[i]=f,v[i+"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,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&h.type===i.type&&I===this._step){v&&!f?f=this._newPolygon(u,_):f&&!v&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,NE(T));var A=g.getClipPath();if(A)DA(A,{shape:sG(this,i,!1,t).shape},t);else g.setClipPath(sG(this,i,!0,t));b&&p.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Kj(this._stackedOnPoints,_)&&Kj(this._points,u)||(y?this._doUpdateAnimation(a,_,i,n,I,m,w):(I&&(u=eG(u,i,I,w),_&&(_=eG(_,i,I,w))),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&p.updateData(a,{isIgnore:S,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,i,C),I&&(u=eG(u,i,I,w),_&&(_=eG(_,i,I,w))),d=this._newPolyline(u),v?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,NE(T)),g.setClipPath(sG(this,i,!0,t));var D=t.getModel("emphasis"),E=D.get("focus"),k=D.get("blurScope"),N=D.get("disabled");(d.useStyle(Mv(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),KI(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);tI(d).seriesIndex=t.seriesIndex,XI(d,E,k,N);var O=tG(t.get("smooth")),L=t.get("smoothMonotone");if(d.setShape({smooth:O,smoothMonotone:L,connectNulls:w}),f){var P=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(Mv(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(R=tG(P.get("smooth"))),f.setShape({smooth:O,stackedOnSmooth:R,smoothMonotone:L,connectNulls:w}),KI(f,t,"areaStyle"),tI(f).seriesIndex=t.seriesIndex,XI(f,E,k,N)}var z=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=I,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){tI(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=CS(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new kj(i,o)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else JO.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=CS(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else JO.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;AI(this._polyline,t),e&&AI(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Hj({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Yj({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");Rv(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Rv(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(i){var g=n,y=e.pointToCoord(h);r?(p=g.startAngle,d=g.endAngle,f=-y[1]/180*Math.PI):(p=g.r0,d=g.r,f=y[0])}else{var v=n;r?(p=v.x,d=v.x+v.width,f=t.x):(p=v.y+v.height,d=v.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var x=Rv(u)?u(o):l*m+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(aG(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new QC({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&iG(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&(hD(o,pD(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Ej(i,n):Dj(i,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?"x":"y",w=function(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}(u,m,b),S=w.range,M=S[1]-S[0],C=void 0;if(M>=1){if(M>1&&!h){var I=oG(u,S[0]);s.attr({x:I[0]+x,y:I[1]+_}),i&&(C=c.getRawValue(S[0]))}else{(I=l.getPointOn(m,b))&&s.attr({x:I[0]+x,y:I[1]+_});var T=c.getRawValue(S[0]),A=c.getRawValue(S[1]);i&&(C=PS(n,p,T,A,w.t))}r.lastFrameIndex=S[0]}else{var D=1===t||r.lastFrameIndex>0?S[0]:0;I=oG(u,D);i&&(C=c.getRawValue(D)),s.attr({x:I[0]+x,y:I[1]+_})}if(i){var E=_D(s);"function"==typeof E.setLabelText&&E.setLabelText(C)}}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,r,i,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],c=[],h=[],p=[],d=[],f=[],g=[],y=zj(i,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],b=!0,w=void 0,S=void 0;switch(_.cmd){case"=":w=2*_.idx,S=2*_.idx1;var M=v[w],C=v[w+1],I=m[S],T=m[S+1];(isNaN(M)||isNaN(C))&&(M=I,C=T),u.push(M,C),c.push(I,T),h.push(n[w],n[w+1]),p.push(r[S],r[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var A=_.idx,D=y.dataDimsForPoint,E=i.dataToPoint([e.get(D[0],A),e.get(D[1],A)]);S=2*A,u.push(E[0],E[1]),c.push(m[S],m[S+1]);var k=Vj(y,i,e,A);h.push(k[0],k[1]),p.push(r[S],r[S+1]),g.push(e.getRawIndex(A));break;case"-":b=!1}b&&(d.push(_),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var N=u.length,O=Jz(N),L=Jz(N),P=Jz(N),R=Jz(N),z=[];for(x=0;x<f.length;x++){var V=f[x],B=2*x,F=2*V;O[B]=u[F],O[B+1]=u[F+1],L[B]=c[F],L[B+1]=c[F+1],P[B]=h[F],P[B+1]=h[F+1],R[B]=p[F],R[B+1]=p[F+1],z[x]=d[V]}return{current:O,next:L,stackedOnCurrent:P,stackedOnNext:R,status:z}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(i&&(h=eG(c.current,n,i,a),p=eG(c.stackedOnCurrent,n,i,a),d=eG(c.next,n,i,a),f=eG(c.stackedOnNext,n,i,a)),Qj(h,d)>3e3||l&&Qj(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),AA(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),AA(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=c.status,m=0;m<v.length;m++){if("="===v[m].cmd){var x=t.getItemGraphicEl(v[m].idx1);x&&y.push({el:x,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,r=2*y[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(JO),uG=lG;function cG(t,e){return{seriesType:t,plan:WO(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=Dv(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Dz(n,a[0])&&(a[0]=l),Dz(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&Jz(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(c,p);f=r.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),f=r.dataToPoint(a,null,l);o?(i[d++]=f[0],i[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&e.setLayout("points",i)}}}}}}var hG={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,r=0;r<t.length;r++){var i=t[r],o=Math.abs(i);o>e&&(e=o,n=i)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},pG=function(t){return Math.round(t.length/2)};function dG(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/h);if(isFinite(p)&&p>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/p));var d=void 0;zv(i)?d=hG[i]:Rv(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/p,d,pG))}}}}}var fG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.getInitialData=function(t,e){return kz(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(t),o=r.dataToPoint(i);if(n)Av(r.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),r.length<2)return;if(2===r.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,p=0;p<r.length;p++){var d=r[p].coord,f=p===r.length-1?r[p-1].tickValue+h:r[p].tickValue;if(f===s){c=d;break}if(f<s)u=d;else if(null!=u&&f>s){c=(d+u)/2;break}1===p&&(h=f-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),o[n]=t.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(FO);FO.registerClass(fG);var gG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.getInitialData=function(){return kz(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=FD(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}),e}(fG),yG=gG,vG=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},mG=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return h(e,t),e.prototype.getDefaultShape=function(){return new vG},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,p=c?u-l<h:l-u<h;p||(l=u-(c?h:-h));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);p?(t.moveTo(d*i+n,f*i+r),t.arc(d*s+n,f*s+r,a,-Math.PI+l,l,!c)):t.moveTo(d*o+n,f*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,y*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(wC);function xG(t,e,n){return e*Math.sin(t)*(n?-1:1)}function _G(t,e,n){return e*Math.cos(t)*(n?1:-1)}function bG(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Pv(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Dv(r,(function(t){return cw(t,i)}))}}var wG=Math.max,SG=Math.min;var MG=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return h(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");"cartesian2d"===i||"polar"===i?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r)):"production"!==process.env.NODE_ENV&&rS("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){aD(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();"production"!==process.env.NODE_ENV&&n&&("category"!==r.type&&rS("`realtimeSort` will not work because this bar series is not based on a category axis."),"cartesian2d"!==e.type&&rS("`realtimeSort` will not work because this bar series is not on cartesian2d."));if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var p=t.get("clip",!0)||h,d=function(t,e){var n=t.getArea&&t.getArea();if(qj(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],x=this._backgroundEls,_=r&&r.isInitSort,b=r&&"changeAxisOrder"===r.type;function w(t){var e=NG[l.type](a,t),n=function(t,e,n){var r="polar"===t.type?WT:zC;return new r({shape:BG(e,n,t),silent:!0,z2:0})}(l,i,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=NG[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&kG[l.type](r)){var s=!1;p&&(s=CG[l.type](d,r));var y=IG[l.type](t,a,e,r,i,c,u.model,!1,f);h&&(y.forceLabelAnimation=!0),LG(y,a,e,n,r,t,i,"polar"===l.type),_?y.attr({shape:r}):h?TG(h,c,y,r,e,i,!1,!1):DA(y,{shape:r},t,e),a.setItemGraphicEl(e,y),o.add(y),y.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),S=NG[l.type](a,e,r);if(g){var M=void 0;0===x.length?M=w(n):((M=x[n]).useStyle(y.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("cornerRadius",v),m[e]=M);var C=NG[l.type](a,e);AA(M,{shape:BG(i,C,l)},c,e)}var I=s.getItemGraphicEl(n);if(a.hasValue(e)&&kG[l.type](S)){var T=!1;if(p&&(T=CG[l.type](d,S))&&o.remove(I),I?LA(I):I=IG[l.type](t,a,e,S,i,c,u.model,!!I,f),h&&(I.forceLabelAnimation=!0),b){var A=I.getTextContent();if(A){var D=_D(A);null!=D.prevValue&&(D.prevValue=D.value)}}else LG(I,a,e,r,S,t,i,"polar"===l.type);_?I.attr({shape:S}):h?TG(h,c,I,S,e,i,!0,b):AA(I,{shape:S},t,e,null),a.setItemGraphicEl(e,I),I.ignore=T,o.add(I)}else o.remove(I)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&OA(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Sw);S.removeAll();for(var M=0;M<m.length;++M)S.add(m[M]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),zG(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),zG(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&Zj(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Dv(r,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){OA(e,t,tI(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(JO),CG={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=wG(e.x,t.x),s=SG(e.x+e.width,i),l=wG(e.y,t.y),u=SG(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>i?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=SG(e.r,t.r),o=wG(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},IG={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new zC({shape:Sv({},r),z2:1});(u.__dataIndex=n,u.name="item",o)&&(u.shape[i?"height":"width"]=0);return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?mG:WT,c=new u({shape:r,z2:1});c.name="item";var h,p,d=OG(i);if(c.calculateTextPosition=(h=d,p=({isRoundCap:u===mG}||{}).isRoundCap,function(t,e,n){var r=e.position;if(!r||r instanceof Array)return hw(t,e,n);var i=h(r),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,d=(u+c)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=p?Math.abs(u-c)/2:0,m=Math.cos,x=Math.sin,_=s+u*m(f),b=l+u*x(f),w="left",S="top";switch(i){case"startArc":_=s+(c-o)*m(y),b=l+(c-o)*x(y),w="center",S="top";break;case"insideStartArc":_=s+(c+o)*m(y),b=l+(c+o)*x(y),w="center",S="bottom";break;case"startAngle":_=s+d*m(f)+xG(f,o+v,!1),b=l+d*x(f)+_G(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*m(f)+xG(f,-o+v,!1),b=l+d*x(f)+_G(f,-o+v,!1),w="left",S="middle";break;case"middle":_=s+d*m(y),b=l+d*x(y),w="center",S="middle";break;case"endArc":_=s+(u+o)*m(y),b=l+(u+o)*x(y),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*m(y),b=l+(u-o)*x(y),w="center",S="top";break;case"endAngle":_=s+d*m(g)+xG(g,o+v,!0),b=l+d*x(g)+_G(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*m(g)+xG(g,-o+v,!0),b=l+d*x(g)+_G(g,-o+v,!0),w="right",S="middle";break;default:return hw(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=i?"r":"endAngle",g={};c.shape[f]=i?r.r0:r.startAngle,g[f]=r[f],(s?AA:DA)(c,{shape:g},o)}return c}};function TG(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?AA:DA)(n,{shape:l},e,i,null),(a?AA:DA)(n,{shape:u},e?t.baseAxis.model:null,i)}function AG(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var DG=["x","y","width","height"],EG=["cx","cy","r","startAngle","endAngle"],kG={cartesian2d:function(t){return!AG(t,DG)},polar:function(t){return!AG(t,EG)}},NG={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function OG(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function LG(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;Sv(u,bG(r.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var c=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var h=r.getShallow("cursor");h&&t.attr("cursor",h);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=pD(r);hD(t,d,{labelFetcher:o,labelDataIndex:n,defaultText:Dj(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=t.getTextContent();if(s&&f){var g=r.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,r){if(Bv(r))t.setTextConfig({rotation:r});else if(Pv(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===g?p:g,OG(a),r.get(["label","rotate"]))}bD(f,d,o.getRawValue(n),(function(t){return Ej(e,t)}));var y=r.getModel(["emphasis"]);XI(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),KI(t,r),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",Av(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var PG=function(){},RG=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return h(e,t),e.prototype.getDefaultShape=function(){return new PG},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(wC);function zG(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new RG({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new RG({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),tI(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",VG),h.on("mousemove",VG)),n&&n.push(h)}var VG=nL((function(t){var e=function(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var p=3*c;if(l[r]=u,l[i]=o[p+2],s[r]=o[p+r],s[i]=o[p+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);tI(this).dataIndex=e>=0?e:null}),30,!1);function BG(t,e,n){if(qj(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}var o=e;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}var FG=MG;var jG=2*Math.PI,GG=Math.PI/180;function WG(t,e){return BE(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function HG(t,e){var n=WG(t,e),r=t.get("center"),i=t.get("radius");Pv(i)||(i=[0,i]);var o,a,s=Nw(n.width,e.getWidth()),l=Nw(n.height,e.getHeight()),u=Math.min(s,l),c=Nw(i[0],u/2),h=Nw(i[1],u/2),p=t.coordinateSystem;if(p){var d=p.dataToPoint(r);o=d[0]||0,a=d[1]||0}else Pv(r)||(r=[r,r]),o=Nw(r[0],s)+n.x,a=Nw(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function UG(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=WG(t,n),o=HG(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*GG,h=t.get("endAngle"),p=t.get("padAngle")*GG;h="auto"===h?c-jG:-h*GG;var d=t.get("minAngle")*GG+p,f=0;e.each(r,(function(t){!isNaN(t)&&f++}));var g=e.getSum(r),y=Math.PI/(g||f)*2,v=t.get("clockwise"),m=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(r);_[0]=0;var b=v?1:-1,w=[c,h],S=b*p/2;QM(w,!v),c=w[0],h=w[1];var M=Math.abs(h-c),C=M,I=0,T=c;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:u,r:m?NaN:l});else{(r="area"!==m?0===g&&x?y:t*y:M/f)<d?(r=d,C-=d):I+=t;var i=T+b*r,o=0,c=0;p>r?c=o=T+b*r/2:(o=T+S,c=i-S),e.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:v,cx:a,cy:s,r0:u,r:m?kw(t,_,[u,l]):l}),T=i}})),C<jG&&f)if(C<=.001){var A=M/f;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=A;var i=0,o=0;A<p?o=i=c+b*(n+.5)*A:(i=c+b*n*A+S,o=c+b*(n+1)*A-S),r.startAngle=i,r.endAngle=o}}))}else y=C/I,T=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===d?d:t*y,o=0,a=0;i<p?a=o=T+b*i/2:(o=T+S,a=T+b*i-S),r.startAngle=o,r.endAngle=a,T+=b*i}}))}))}function YG(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}var XG=Math.PI/180;function $G(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}WB(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,p=r+l.len,f=Math.abs(h)<p?Math.sqrt(c*c/(1-h*h/p/p)):p;u.rB=f,u.maxY=c}u.list.push(l)}d(o),d(a)}(t)}function d(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,p=Math.sqrt((1-Math.abs(u*u/a))*h),d=e+(p+l.len2)*i,f=d-l.label.x;ZG(l,l.targetTextWidth-f*i,!0),l.label.x=d}}}function ZG(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var p=r.getBoundingRect();r.setStyle("width",Math.ceil(p.width)),r.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",f)}var g=r.getBoundingRect();o.width=g.width;var y=(r.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-h)/2}}}function qG(t){return"center"===t.position}function KG(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*XG,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(t){t.ignore=!0}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,p=s.getTextContent(),f=s.getTextGuideLine(),g=r.getItemModel(t),y=g.getModel("label"),v=y.get("position")||g.get(["emphasis","label","position"]),m=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=Nw(y.get("edgeDistance"),u),b=y.get("bleedMargin"),w=g.getModel("labelLine"),S=w.get("length");S=Nw(S,u);var M=w.get("length2");if(M=Nw(M,u),Math.abs(h.endAngle-h.startAngle)<a)return Av(p.states,d),p.ignore=!0,void(f&&(Av(f.states,d),f.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(p)){var C,I,T,A,D=(h.startAngle+h.endAngle)/2,E=Math.cos(D),k=Math.sin(D);e=h.cx,n=h.cy;var N="inside"===v||"inner"===v;if("center"===v)C=h.cx,I=h.cy,A="center";else{var O=(N?(h.r+h.r0)/2*E:h.r*E)+e,L=(N?(h.r+h.r0)/2*k:h.r*k)+n;if(C=O+3*E,I=L+3*k,!N){var P=O+E*(S+l-h.r),R=L+k*(S+l-h.r),z=P+(E<0?-1:1)*M;C="edge"===x?E<0?c+_:c+u-_:z+(E<0?-m:m),I=R,T=[[O,L],[P,R],[z,R]]}A=N?"center":"edge"===x?E>0?"right":"left":E>0?"left":"right"}var V=Math.PI,B=0,F=y.get("rotate");if(Bv(F))B=F*(V/180);else if("center"===v)B=0;else if("radial"===F||!0===F){B=E<0?-D+V:-D}else if("tangential"===F&&"outside"!==v&&"outer"!==v){var j=Math.atan2(E,k);j<0&&(j=2*V+j),k>0&&(j=V+j),B=j-V}if(o=!!B,p.x=C,p.y=I,p.rotation=B,p.setStyle({verticalAlign:"middle"}),N){p.setStyle({align:A});var G=p.states.select;G&&(G.x+=p.x,G.y+=p.y)}else{var W=p.getBoundingRect().clone();W.applyTransform(p.getComputedTransform());var H=(p.style.margin||0)+2.1;W.y-=H/2,W.height+=H,i.push({label:p,labelLine:f,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new ux(E,k),linePoints:T,textAlign:A,labelDistance:m,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:W,unconstrainedWidth:W.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:N})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;qG(t[p])||(d.x<e?(c=Math.min(c,d.x),l.push(t[p])):(h=Math.max(h,d.x),u.push(t[p])))}for(p=0;p<t.length;p++)if(!qG(y=t[p])&&y.linePoints){if(null!=y.labelStyleWidth)continue;d=y.label;var f=y.linePoints,g=void 0;g="edge"===y.labelAlignTo?d.x<e?f[2][0]-y.labelDistance-a-y.edgeDistance:a+i-y.edgeDistance-f[2][0]-y.labelDistance:"labelLine"===y.labelAlignTo?d.x<e?c-a-y.bleedMargin:a+i-h-y.bleedMargin:d.x<e?d.x-a-y.bleedMargin:a+i-d.x-y.bleedMargin,y.targetTextWidth=g,ZG(y,g)}for($G(u,e,n,r,1,0,o,0,s,h),$G(l,e,n,r,-1,0,o,0,s,c),p=0;p<t.length;p++){var y;if(!qG(y=t[p])&&y.linePoints){d=y.label,f=y.linePoints;var v="edge"===y.labelAlignTo,m=d.style.padding,x=m?m[1]+m[3]:0,_=d.style.backgroundColor?0:x,b=y.rect.width+_,w=f[1][0]-f[2][0];v?d.x<e?f[2][0]=a+y.edgeDistance+b+y.labelDistance:f[2][0]=a+i-y.edgeDistance-b-y.labelDistance:(d.x<e?f[2][0]=d.x+y.labelDistance:f[2][0]=d.x-y.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=d.y}}}(i,e,n,l,u,p,c,h);for(var f=0;f<i.length;f++){var g=i[f],y=g.label,v=g.labelLine,m=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),m&&(Av(y.states,d),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(v){var _=g.linePoints;m||!_?(Av(v.states,d),v.ignore=!0):(PB(_,g.minTurnAngle),RB(_,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new ux(_[0][0],_[0][1])})}}}var JG=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new QC;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return h(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Sv(bG(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(DA(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,DA(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),DA(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,AA(i,{shape:{endAngle:l.endAngle}},o,e))}else LA(i),AA(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),KI(i,a);var h=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),d=Math.cos(h)*p,f=Math.sin(h)*p,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=Sv({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},bG(s.getModel("itemStyle"),l)),Sv(i.ensureState("select"),{x:d,y:f,shape:bG(a.getModel(["select","itemStyle"]),l)}),Sv(i.ensureState("blur"),{shape:bG(a.getModel(["blur","itemStyle"]),l)});var y=i.getTextGuideLine(),v=i.getTextContent();y&&Sv(y.ensureState("select"),{x:d,y:f}),Sv(v.ensureState("select"),{x:d,y:f}),XI(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;hD(r,pD(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new KT,this.setTextGuideLine(h)),BB(this,FB(i),{stroke:s,opacity:Zv(o.get(["lineStyle","opacity"]),l,1)})}},e}(WT),QG=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return h(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new WT({shape:HG(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new JG(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){OA(a.getItemGraphicEl(e),t,e)})).execute(),KG(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="pie",e}(JO),tW=QG;function eW(t,e,n){e=Pv(e)&&{coordDimensions:e}||Sv({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Sz(r,e).dimensions,o=new wz(i,t);return o.initData(r,n),o}var nW=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),rW=nW,iW=IS(),oW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rW(Ov(this.getData,this),Ov(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return eW(this,{coordDimensions:["value"],encodeDefaulter:Lv(uk,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=iW(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),i=r.seats=function(t,e){var n=Ev(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var r=Math.pow(10,e),i=Dv(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=Dv(i,(function(t){return Math.floor(t)})),s=Ev(a,(function(t,e){return t+e}),0),l=Dv(i,(function(t,e){return t-a[e]}));s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return Dv(a,(function(t){return t/r}))}(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){dS(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.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"},e}(FO),aW=oW;var sW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return h(e,t),e.prototype.getInitialData=function(t,e){return kz(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}(FO),lW=sW,uW=function(){},cW=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return h(e,t),e.prototype.getDefaultShape=function(){return new uW},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],h=r[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],p=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(p,s),u=Math.max(p,u)}t=this._rect=new xx(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(wC),hW=function(){function t(){this.group=new Sw}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new cW({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=aP(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=tI(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),pW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateSymbolDraw(r,t).incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=cG("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new hW:new Rj,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(JO),dW=pW,fW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(XE),gW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ES).models[0]},e.type="cartesian2dAxis",e}(XE);Iv(gW,WV);var yW={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)"]}}},vW=bv({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},yW),mW=bv({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}}},yW),xW={category:vW,value:mW,time:bv({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},mW),log:Mv({logBase:10},mW)},_W={value:1,category:1,time:1,log:1};function bW(t,e,n,r){Av(_W,(function(i,o){var a=bv(bv({},xW[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return h(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=jE(this),r=n?WE(t):{};bv(t,e.getTheme().get(o+"Axis")),bv(t,this.getDefaultOption()),t.type=wW(t),n&&GE(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Pz.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",wW)}function wW(t){return t.type||(t.data?"category":"value")}var SW=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return Dv(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),kv(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),MW=["x","y"];function CW(t){return"interval"===t.type||"time"===t.type}var IW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=MW,e}return h(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(CW(t)&&CW(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=lx([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new xx(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Tm(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Tm(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-r+t,a=Math.max(n[0],n[1])-i+t;return new xx(r,i,o,a)},e}(SW),TW=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return h(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(yB),AW=TW;function DW(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:h[0],"x"===u?f[p[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Xv(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function EW(t){return"cartesian2d"===t.get("coordinateSystem")}function kW(t){var e={xAxisModel:null,yAxisModel:null};return Av(e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,ES).models[0];if("production"!==process.env.NODE_ENV&&!o)throw new Error(i+' "'+Zv(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[r]=o})),e}var NW=Math.log;function OW(t,e,n){var r=Zz.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=LV(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var p=NW(t.base);u=[NW(u[0])/p,NW(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=r.getInterval.call(t),g=u[0],y=u[1];if(c&&h)f=(y-g)/a;else if(c)for(y=u[0]+f*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)f=Bz(f),y=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=Bz(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=Bz(f));var v=f*a;(g=Ow((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=Ow(v)):y>0&&u[1]<=0&&(y=0,g=-Ow(v))}var m=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;if(r.setExtent.call(t,g+f*m,y+f*x),r.setInterval.call(t,f),(m||x)&&r.setNiceExtent.call(t,g+f,y-f),"production"!==process.env.NODE_ENV){var _=r.getTicks.call(t);_[1]&&(!function(t){var e=Math.pow(10,Hw(Math.abs(t))),n=Math.abs(t/e);return 0===n||1===n||2===n||3===n||5===n}(f)||Rw(_[1].value)>Rw(f))&&rS("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var LW=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=MW,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Nv(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;zz(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(PV(l,s),zz(l)&&(e=a))}i.length&&(e||PV((e=i.pop()).scale,e.model),Av(i,(function(t){OW(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Av(n.x,(function(t){RW(n,"y",t,i)})),Av(n.y,(function(t){RW(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=BE(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Av(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),function(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}(t,e?o.x:o.y)}))}s(),i&&(Av(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof Yz?n.count():(r=n.getTicks()).length;var a,s=t.getLabelModel(),l=zV(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var h=l(r?r[c]:{value:o[0]+c},c),p=BV(s.getTextRect(h),s.get("rotate")||0);a?a.union(p):a=p}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Av(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Fv(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",ES).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",ES).models[0],a=t.gridModel,s=this._coordsList;if(r)Cv(s,e=r.coordinateSystem)<0&&(e=null);else if(i&&o)e=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(PW(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new AW(e,RV(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,Av(a.x,(function(e,n){Av(a.y,(function(i,o){var a="x"+n+"y"+o,s=new IW(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Av(GV(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Av(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(EW(t)){var r=kW(t),i=r.xAxisModel,o=r.yAxisModel;if(!PW(i,e)||!PW(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Av(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);Cv(e,i)<0&&e.push(i),Cv(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",(function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),e.eachSeries((function(t){if(EW(t)){var e=kW(t),n=e.xAxisModel,r=e.yAxisModel,i=n.getCoordSysModel();if("production"!==process.env.NODE_ENV){if(!i)throw new Error('Grid "'+Zv(n.get("gridIndex"),n.get("gridId"),0)+'" not found');if(n.getCoordSysModel()!==r.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var o=i.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=MW,t}();function PW(t,e){return t.getCoordSysModel()===e}function RW(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)zW(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&zW(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function zW(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}(t)}var VW=LW,BW=Math.PI,FW=function(){function t(t,e){this.group=new Sw,this.opt=e,this.axisModel=t,Mv(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Sw({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!jW[t]},t.prototype.add=function(t){jW[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=Fw(e-t);return jw(o)?(i=n>0?"top":"bottom",r="center"):jw(o-BW)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<BW?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),jW={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Tm(s,s,a),Tm(l,l,a));var c=Sv({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new tA({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});YA(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var d=e.get(["axisLine","symbolSize"]);zv(p)&&(p=[p,p]),(zv(d)||Bv(d))&&(d=[d,d]);var f=lP(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];Av([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.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(e,r){if("none"!==p[r]&&null!=p[r]){var i=aP(p[r],-g/2,-y/2,g,y,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=function(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=UW(i.getTicksCoords(),e.transform,l,Mv(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(n,r,e,t),o=function(t,e,n,r){var i=n.axis,o=Xv(r.axisLabelShow,n.get(["axisLabel","show"]));if(!o||i.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Xv(r.labelRotate,a.get("rotate"))||0)*BW/180,c=FW.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),p=[],d=FW.isLabelSilent(n),f=n.get("triggerEvent");return Av(l,(function(o,u){var g="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,y=o.formattedLabel,v=o.rawLabel,m=a;if(h&&h[g]){var x=h[g];Fv(x)&&x.textStyle&&(m=new zD(x.textStyle,a,n.ecModel))}var _=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(g),w=m.getShallow("align",!0)||c.textAlign,S=$v(m.getShallow("alignMinLabel",!0),w),M=$v(m.getShallow("alignMaxLabel",!0),w),C=m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,I=$v(m.getShallow("verticalAlignMinLabel",!0),C),T=$v(m.getShallow("verticalAlignMaxLabel",!0),C),A=new QC({x:b,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(o.level||0),style:dD(m,{text:y,align:0===u?S:u===l.length-1?M:w,verticalAlign:0===u?I:u===l.length-1?T:C,fill:Rv(_)?_("category"===i.type?v:"value"===i.type?g+"":g,u):_})});if(A.anid="label_"+g,f){var D=FW.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=v,D.tickIndex=u,"category"===i.type&&(D.dataIndex=g),tI(A).eventData=D}e.add(A),A.updateTransform(),p.push(A),t.add(A),A.decomposeTransform()})),p}(n,r,e,t);(function(t,e,n){if(jV(t.axis))return;var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===r?(GW(o),GW(u)):WW(o,a)&&(r?(GW(a),GW(c)):(GW(o),GW(u)));!1===i?(GW(s),GW(h)):WW(l,s)&&(i?(GW(l),GW(p)):(GW(s),GW(h)))}(e,o,i),function(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Mv(s.getLineStyle(),Mv(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=UW(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)t.add(h[p])}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"]))&&HB(jB(Dv(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}))))},axisName:function(t,e,n,r){var i=Xv(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),p=h[0]>h[1]?-1:1,d=["start"===s?h[0]-p*c:"end"===s?h[1]+p*c:(h[0]+h[1])/2,HW(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*BW/180),HW(s)?o=FW.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,r){var i,o,a=Fw(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;jw(a-BW/2)?(o=l?"bottom":"top",i="center"):jw(a-1.5*BW)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*BW&&a>BW/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,s,f||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=Xv(t.nameTruncateMaxWidth,y.maxWidth,a),x=new QC({x:d[0],y:d[1],rotation:o.rotation,silent:FW.isLabelSilent(e),style:dD(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(iD({el:x,componentModel:e,itemName:i}),x.__fullText=i,x.anid="name",e.get("triggerEvent")){var _=FW.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,tI(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function GW(t){t&&(t.ignore=!0)}function WW(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=nx([]);return ax(i,i,-t.rotation),n.applyTransform(ix([],i,t.getLocalTransform())),r.applyTransform(ix([],i,e.getLocalTransform())),n.intersect(r)}}function HW(t){return"middle"===t||"center"===t}function UW(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(Tm(a,a,e),Tm(s,s,e));var c=new tA({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});YA(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}function YW(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Av(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=qW(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(Av(n.getAxes(),Lv(d,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&Av(p.baseAxes,Lv(d,!h||"cross",c)),h&&Av(p.otherAxes,Lv(d,"cross",!1))}}function d(r,s,c){var h=c.model.getModel("axisPointer",i),p=h.get("show");if(p&&("auto"!==p||r||ZW(h))){null==s&&(s=h.get("triggerTooltip")),h=r?function(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s={};Av(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=_v(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&Mv(l,c.textStyle)}}return t.model.getModel("axisPointer",new zD(s,n,r))}(c,u,i,e,r,s):h;var d=h.get("snap"),f=h.get("triggerEmphasis"),g=qW(c.model),y=s||d||"category"===c.type,v=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:d,useHandle:ZW(h),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||y;var m=function(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(XW(o[r+"AxisId"],n.id)||XW(o[r+"AxisIndex"],n.componentIndex)||XW(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=m){var x=a[m]||(a[m]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=o[m].mapper,v.linkGroup=x}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Av(t.coordSysAxesInfo[qW(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function XW(t,e){return"all"===t||Pv(t)&&Cv(t,e)>=0||t===e}function $W(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[qW(t)]}function ZW(t){return!!t.get(["handle","show"])}function qW(t){return t.type+"||"+t.id}var KW={},JW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&function(t){var e=$W(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=ZW(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(t){var e=$W(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){if("production"!==process.env.NODE_ENV&&KW[t])throw new Error("axisPointer "+t+" exists");KW[t]=e},e.getAxisPointerClass=function(t){return t&&KW[t]},e.type="axis",e}(GO),QW=IS();function tH(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=QW(t).splitAreaColors,p=am(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var y=i.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=Pv(s)?s:[s];for(f=1;f<u.length;f++){var m=i.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;i.isHorizontal()?(x=y,_=l.y,b=m-x,w=l.height,y=x+b):(x=l.x,_=y,b=l.width,y=_+(w=m-_));var S=u[f-1].tickValue;null!=S&&p.set(S,d),e.add(new zC({anid:null!=S?"area_"+S:null,shape:{x:x,y:_,width:b,height:w},style:Mv({fill:s[d]},v),autoBatch:!0,silent:!0})),d=(d+1)%c}QW(t).splitAreaColors=p}}}function eH(t){QW(t).splitAreaColors=null}var nH=["axisLine","axisTickLabel","axisName"],rH=["splitArea","splitLine","minorSplitLine"],iH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return h(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Sw,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=DW(a,e),l=new FW(e,Sv({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(zz(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));Av(nH,l.add,l),this._axisGroup.add(l.getGroup()),Av(rH,(function(t){e.get([t,"show"])&&oH[t](this,this._axisGroup,e,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||JA(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){eH(this)},e.type="cartesianAxis",e}(JW),oH={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=Pv(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,h=i.getTicksCoords({tickModel:o}),p=[],d=[],f=a.getLineStyle(),g=0;g<h.length;g++){var y=i.toGlobalCoord(h[g].coord);u?(p[0]=y,p[1]=l.y,d[0]=y,d[1]=l.y+l.height):(p[0]=l.x,p[1]=y,d[0]=l.x+l.width,d[1]=y);var v=c++%s.length,m=h[g].tickValue,x=new tA({anid:null!=m?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:Mv({stroke:s[v]},f),silent:!0});YA(x.shape,f.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=i.toGlobalCoord(l[p][d].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new tA({anid:"minor_line_"+l[p][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});YA(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,r){tH(t,e,n,r)}},aH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="xAxis",e}(iH),sH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=aH.type,e}return h(e,t),e.type="yAxis",e}(iH),lH=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return h(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new zC({shape:t.coordinateSystem.getRect(),style:Mv({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(GO),uH={offset:0};function cH(t){t.registerComponentView(lH),t.registerComponentModel(fW),t.registerCoordinateSystem("cartesian2d",VW),bW(t,"x",gW,uH),bW(t,"y",gW,uH),t.registerComponentView(aH),t.registerComponentView(sH),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function hH(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();Av(i,(function(t,o){e.each(e.mapDimension(i[o].dim),(function(t,e){n[e]=n[e]||[];var i=r.dataToPoint(t,o);n[e][o]=pH(i)?i:dH(r)}))})),e.each((function(t){var i=function(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}(n[t],(function(t){return pH(t)}))||dH(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])}))}}))}function pH(t){return!isNaN(t[0])&&!isNaN(t[1])}function dH(t){return[t.cx,t.cy]}function fH(t){var e=t.polar;if(e){Pv(e)||(e=[e]);var n=[];Av(e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],Pv(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}Av(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var gH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=sP(t.getItemVisual(e,"symbolSize")),i=aP(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function l(e,n,r,i,o,a){r.removeAll();for(var l=0;l<n.length-1;l++){var u=s(i,o);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),sD[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,o)):u.setPosition(n[l]),r.add(u))}}function u(t){return Dv(t,(function(t){return[r.cx,r.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var r=new ZT,i=new KT,a={shape:{points:n}};r.shape.points=u(n),i.shape.points=u(n),DA(r,a,t,e),DA(i,a,t,e);var s=new Sw,c=new Sw;s.add(i),s.add(r),s.add(c),l(i.shape.points,n,c,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var r=a.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),u=r.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(l(i.shape.points,c.shape.points,u,o,e,!1),LA(s),LA(i),AA(i,c,t),AA(s,c,t),o.setItemGraphicEl(e,r))})).remove((function(t){i.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),r=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;i.add(t),r.useStyle(Mv(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),KI(r,n,"lineStyle"),KI(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,Av(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=r&&h})),a.useStyle(Mv(c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var p=n.getModel("emphasis"),d=p.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof DC){var r=t.style;t.useStyle(Sv({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=_v(d);var i=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==i||isNaN(i))&&(i=""),hD(t,pD(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:u,defaultOpacity:l.opacity})})),XI(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(JO),yH=gH,vH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return h(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rW(Ov(this.getData,this),Ov(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return eW(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=CO(this,t);return yO("section",{header:a,sortBlocks:!0,blocks:Dv(i,(function(e){var n=r.get(r.mapDimension(e.dim),t);return yO("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(Dv(n.dimensions,(function(t){return e.mapDimension(t)})),t),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(FO),mH=vH,xH=xW.value;function _H(t,e){return Mv({show:e},t)}var bH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=Dv(this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var p=a;null!=h.color&&(p=Mv({color:h.color},a));var d=bv(_v(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:c},!1);if(zv(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else Rv(l)&&(d.name=l(d.name,d));var g=new zD(d,null,this.ecModel);return Iv(g,WV.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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:bv({lineStyle:{color:"#bbb"}},xH.axisLine),axisLabel:_H(xH.axisLabel,!1),axisTick:_H(xH.axisTick,!1),splitLine:_H(xH.splitLine,!0),splitArea:_H(xH.splitArea,!0),indicator:[]},e}(XE),wH=bH,SH=["axisLine","axisTickLabel","axisName"],MH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;Av(Dv(e.getIndicatorAxes(),(function(t){var n=t.model.get("showName")?t.name:"";return new FW(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){Av(SH,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),i=t.getModel("splitLine"),o=t.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),p=Pv(c)?c:[c],d=Pv(h)?h:[h],f=[],g=[];if("circle"===r)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x<y.length;x++){if(l)f[T(f,p,x)].push(new MT({shape:{cx:v,cy:m,r:y[x].coord}}));if(u&&x<y.length-1)g[T(g,d,x)].push(new YT({shape:{cx:v,cy:m,r0:y[x].coord,r:y[x+1].coord}}))}else{var _,b=Dv(n,(function(t,n){var r=t.getTicksCoords();return _=null==_?r.length-1:Math.min(r.length-1,_),Dv(r,(function(t){return e.coordToPoint(t.coord,n)}))})),w=[];for(x=0;x<=_;x++){for(var S=[],M=0;M<n.length;M++)S.push(b[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,p,x)].push(new KT({shape:{points:S}}));if(u&&w)g[T(g,d,x-1)].push(new ZT({shape:{points:S.concat(w)}}));w=S.slice().reverse()}}var C=a.getLineStyle(),I=s.getAreaStyle();Av(g,(function(t,e){this.group.add(HA(t,{style:Mv({stroke:"none",fill:d[e%d.length]},I),silent:!0}))}),this),Av(f,(function(t,e){this.group.add(HA(t,{style:Mv({fill:"none",stroke:p[e%p.length]},C),silent:!0}))}),this)}function T(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(GO),CH=MH,IH=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return h(e,t),e}(yB),TH=IH,AH=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Dv(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new TH(n,new Zz);return r.name=t.get("name"),r.model=t,t.axis=r,this.dimensions.push(n),r}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var i,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},t.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i)/2;this.cx=Nw(n[0],r),this.cy=Nw(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(zv(a)||Bv(a))&&(a=[0,a]),this.r0=Nw(a[0],o),this.r=Nw(a[1],o),Av(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;Av(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();Av(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var i=r.get("splitNumber"),o=new Zz;o.setExtent(0,i),o.setInterval(1),Av(n,(function(t,e){OW(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("radarIndex")||0])})),r},t.dimensions=[],t}(),DH=AH;function EH(t){t.registerCoordinateSystem("radar",DH),t.registerComponentModel(wH),t.registerComponentView(CH),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var kH="\0_ec_interaction_mutex";function NH(t,e){return!!OH(t)[e]}function OH(t){return t[kH]||(t[kH]={})}FR({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},hm);var LH=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=Ov(n._mousedownHandler,n),i=Ov(n._mousemoveHandler,n),o=Ov(n._mouseupHandler,n),a=Ov(n._mousewheelHandler,n),s=Ov(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Mv(_v(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return h(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Jm(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&zH("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!NH(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Km(t.event),RH(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Jm(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=zH("zoomOnMouseWheel",t,this._opt),n=zH("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1;PH(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);PH(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){NH(this._zr,"globalPan")||PH(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Nm);function PH(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(Km(r.event),RH(t,e,n,r,i))}function RH(t,e,n,r,i){i.isAvailableBehavior=Ov(zH,null,n,r),t.trigger(e,i)}function zH(t,e,n){var r=n[t];return!t||r&&(!zv(r)||e.event[r+"Key"])}var VH=LH;function BH(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function FH(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var jH,GH={axisPointer:1,tooltip:1,brush:1};function WH(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!GH.hasOwnProperty(r.mainType)&&i&&i.model!==n}function HH(t){zv(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var UH={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"},YH=Nv(UH),XH={"alignment-baseline":"textBaseline","stop-color":"stopColor"},$H=Nv(XH),ZH=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=HH(t);if("production"!==process.env.NODE_ENV&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var r=new Sw;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),eU(n,r,null,!0,!1);for(var l,u,c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=oU(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=cU(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=r;(r=new Sw).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new zC({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=jH[s];if(u&&cm(jH,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var p=qH[s];if(p&&cm(qH,s)){var d=p.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new CC({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});QH(e,n),eU(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(jH={g:function(t,e){var n=new Sw;return QH(e,n),eU(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new zC;return QH(e,n),eU(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new MT;return QH(e,n),eU(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new tA;return QH(e,n),eU(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new TT;return QH(e,n),eU(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=tU(r));var i=new ZT({shape:{points:n||[]},silent:!0});return QH(e,i),eU(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=tU(r));var i=new KT({shape:{points:n||[]},silent:!0});return QH(e,i),eU(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new DC;return QH(e,n),eU(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new Sw;return QH(e,a),eU(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Sw;return QH(e,a),eU(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=_T(t.getAttribute("d")||"");return QH(e,n),eU(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),qH={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new dA(e,n,r,i);return KH(t,o),JH(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new gA(e,n,r);return KH(t,i),JH(t,i),i}};function KH(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function JH(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};uU(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function QH(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Mv(e.__inheritedStyle,t.__inheritedStyle))}function tU(t){for(var e=oU(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function eU(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(aU,(function(t,e,n){return r.push(e,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=oU(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":ox(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":sx(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ax(i,i,-parseFloat(l[0])*sU,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":ix(i,[1,0,Math.tan(parseFloat(l[0])*sU),1,0,0],i);break;case"skewY":ix(i,[1,Math.tan(parseFloat(l[0])*sU),0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}(t,e),uU(t,a,s),r||function(t,e,n){for(var r=0;r<YH.length;r++){var i=YH[r];null!=(o=t.getAttribute(i))&&(e[UH[i]]=o)}for(r=0;r<$H.length;r++){var o;i=$H[r];null!=(o=t.getAttribute(i))&&(n[XH[i]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=rU(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=rU(o,"stroke",a.stroke,n)),Av(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),Av(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Dv(oU(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var nU=/^url\(\s*#(.*?)\)/;function rU(t,e,n,r){var i=n&&n.match(nU);if(!i)return"none"===n&&(n=null),n;var o=Qv(i[1]);r.push([t,e,o])}var iU=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function oU(t){return t.match(iU)||[]}var aU=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,sU=Math.PI/180;var lU=/([^\s:;]+)\s*:\s*([^:;]+)/g;function uU(t,e,n){var r,i=t.getAttribute("style");if(i)for(lU.lastIndex=0;null!=(r=lU.exec(i));){var o=r[1],a=cm(UH,o)?UH[o]:null;a&&(e[a]=r[2]);var s=cm(XH,o)?XH[o]:null;s&&(n[s]=r[2])}}function cU(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}var hU=am(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),pU=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=am(),this._freedGraphics=[],this._mapName=t,this._parsedXML=HH(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=am();return Av(t,(function(t){if(null==t.namedFrom){var r=new tB(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,r,i;try{Jv(null!=(n=(e=t&&(r=t,i={ignoreViewBox:!0,ignoreRootClip:!0},(new ZH).parse(r,i))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var o=new Sw;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,u=this._boundingRect;if(!u){var c=void 0,h=void 0,p=void 0,d=void 0;if(null!=a?(c=0,p=a):l&&(c=l.x,p=l.width),null!=s?(h=0,d=s):l&&(h=l.y,d=l.height),null==c||null==h){var f=n.getBoundingRect();null==c&&(c=f.x,p=f.width),null==h&&(h=f.y,d=f.height)}u=this._boundingRect=new xx(c,h,p,d)}if(l){var g=cU(l,u);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new zC({shape:u.plain()}));var y=[];return Av(e.named,(function(t){var e;null!=hU.get(t.svgNodeTagLower)&&(y.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:u,named:y}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();for(var dU=[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]]],yU=0;yU<gU.length;yU++)for(var vU=0;vU<gU[yU].length;vU++)gU[yU][vU][0]/=10.5,gU[yU][vU][1]/=-14,gU[yU][vU][0]+=dU[0],gU[yU][vU][1]+=dU[1];var mU={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var xU=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var _U=function(){function t(t,e,n){var r;this.type="geoJSON",this._parsedMap=am(),this._mapName=t,this._specialAreas=n,this._geoJSON=zv(r=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:bU(r)})}var i=am(),o=[];return Av(n.regions,(function(e){var n=e.name;t&&cm(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new xx(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?rB(r,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===fU)return;e.push(new QV(fU,Dv(gU,(function(t){return{type:"polygon",exterior:t}})),dU))}}(n,e),Av(e,(function(t){var e=t.name;!function(t,e){if("china"===t){var n=mU[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}(n,t),function(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:xU[0]})}(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function bU(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();(e=e||r.clone()).union(r)}return e}var wU=am(),SU={registerMap:function(t,e,n){if(e.svg){var r=new pU(t,e.svg);wU.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new _U(t,i,n);wU.set(t,r)}},getGeoResource:function(t){return wU.get(t)},getMapForUser:function(t){var e=wU.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=wU.get(t);if(r)return r.load(e,n);"production"!==process.env.NODE_ENV&&console.error("Map "+t+" not exists. The GeoJSON of the map must be provided.")}},MU=["rect","circle","line","ellipse","polygon","polyline","path"],CU=am(MU),IU=am(MU.concat(["g"])),TU=am(MU.concat(["g"])),AU=IS();function DU(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function EU(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var kU=function(){function t(t){var e=new Sw;this.uid=BD("ec_map_draw"),this._controller=new VH(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Sw),e.add(this._svgGroup=new Sw)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,p=c.roam;!l.childAt(0)||i?(u.x=p.x,u.y=p.y,u.scaleX=p.scaleX,u.scaleY=p.scaleY,u.dirty()):AA(u,p,t);var d=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=am(),n=am(),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],n=!l&&s&&s.project,r=0;r<t.length;++r){var i=u(t[r],n);i&&e.push(i)}return e}function h(t){return{shape:{points:c(t)}}}r.removeAll(),Av(t.geo.regions,(function(i){var c=i.name,p=e.get(c),d=n.get(c)||{},f=d.dataIdx,g=d.regionModel;p||(p=e.set(c,new Sw),r.add(p),f=a?a.indexOfName(c):null,g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var y=[],v=[];Av(i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=zU(e,l)),Av(e,(function(t){y.push(new ZT(h(t)))}))}else{var n=t.points;l&&(n=zU(n,l,!0)),Av(n,(function(t){v.push(new KT(h(t)))}))}}));var m=u(i.getCenter(),s&&s.project);function x(e,n){if(e.length){var r=new cA({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(r),NU(t,r,f,g),OU(t,r,c,g,o,f,m),n&&(EU(r),Av(r.states,EU))}}x(y),x(v,!0)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;LU(t,e,r,s,o,a),PU(t,e,r,s,o),RU(t,e,r,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=am(),i=!1;Av(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=CU.get(s)&&l instanceof _M&&NU(t,l,u,c),l instanceof _M&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=TU.get(s)&&OU(t,l,n,c,o,u,null),LU(t,l,n,c,o,u),PU(t,l,n,c,o),null!=IU.get(s)&&("self"===RU(t,l,n,c,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){EI(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=SU.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=SU.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var r=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}i.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,BH(o,t.dx,t.dy),n.dispatchAction(Sv(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,FH(o,t.scale,t.originX,t.originY),n.dispatchAction(Sv(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(e,i,o){return r.containPoint([i,o])&&!WH(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=AU(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}();function NU(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=DU(i),u=DU(o),c=DU(s),h=DU(a),p=t.data;if(p){var d=p.getItemVisual(n,"style"),f=p.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=zP(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,EI(e)}function OU(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,p=void 0;(!s||o>=0)&&(p=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;hD(e,pD(r),{labelFetcher:p,labelDataIndex:h,defaultText:n},d);var f=e.getTextContent();if(f&&(AU(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function LU(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):tI(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function PU(t,e,n,r,i){t.data||iD({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function RU(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return XI(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var r=tI(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}(e,i,n),a}function zU(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),Av(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var VU=kU,BU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id)(o=this._mapDraw)&&i.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new VU(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,i=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new MT({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:hI+1)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),h=u.indexOfName(c),p=r.getItemModel(n),d=p.getModel("label"),f=u.getItemGraphicEl(h);hD(l,pD(p),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){AI(l,t)}}i.add(l)}}}))},e.type="map",e}(JO),FU=BU,jU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return h(e,t),e.prototype.getInitialData=function(t){for(var e=eW(this,{coordDimensions:["value"],encodeDefaulter:Lv(uk,this)}),n=am(),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}return Av(SU.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,(function(t){var e=t.name;n.get(e)||r.push(e)})),e.appendValues([],r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return yO("section",{header:s.join(", "),noHeader:!s.length,blocks:[yO("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=aP(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(FO),GU=jU;function WU(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),Av(e,(function(t,e){for(var n,r,i,o=(n=Dv(t,(function(t){return t.getData()})),r=t[0].get("mapValueCalculation"),i={},Av(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var r="ec-"+t.getName(n);i[r]=i[r]||[],isNaN(e)||i[r].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=i[o].length,c=0;c<u;c++)s=Math.min(s,i[o][c]),l=Math.max(l,i[o][c]),a+=i[o][c];return 0===u?NaN:"min"===r?s:"max"===r?l:"average"===r?a/u:a}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function HU(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};Av(n.seriesGroup,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)})),e[r]=!0}}))}var UU=Tm,YU=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new tw,n._rawTransformable=new tw,n.name=e,n}return h(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new xx(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new xx(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new xx(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Nw(t[0],e.getWidth()),Nw(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=Tm([],r,t),n=Tm([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),rx(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],lx(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new tw;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?UU(n,t,r):fm(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?UU([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=XU(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=XU(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(tw);function XU(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var $U={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},ZU=["lng","lat"],qU=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=ZU,i.type="geo",i._nameCoordMap=am(),i.map=n;var o,a=r.projection,s=SU.load(n,r.nameMap,r.nameProperty),l=SU.getGeoResource(n),u=i.resourceType=l?l.type:null,c=i.regions=s.regions,h=$U[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,"production"!==process.env.NODE_ENV&&a&&("geoSVG"===u&&("production"!==process.env.NODE_ENV&&rS("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&&rS("project and unproject must be both provided in the projeciton."),a=null)),i.projection=a,a)for(var p=0;p<c.length;p++){var d=c[p].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:$v(r.aspectScale,h.aspectScale),i._invertLongitute=!a&&h.invertLongitute,i}return h(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new xx(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(zv(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=KU(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=KU(e);return r===this?r.pointToData(n):null},e}(YU);function KU(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ES).models[0]||{}).coordinateSystem:null}Iv(qU,YU);var JU=qU;function QU(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);Am(r,r,h),Dm(i,i,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else"production"!==process.env.NODE_ENV&&console.error("Invalid boundingCoords")}var h,p,d,f=this.getBoundingRect(),g=t.get("layoutCenter"),y=t.get("layoutSize"),v=e.getWidth(),m=e.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&y&&(h=[Nw(g[0],v),Nw(g[1],m)],p=Nw(y,Math.min(v,m)),isNaN(h[0])||isNaN(h[1])||isNaN(p)?"production"!==process.env.NODE_ENV&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):_=!0),_)d={},x>1?(d.width=p,d.height=p/x):(d.height=p,d.width=p*x),d.y=h[1]-d.height/2,d.x=h[0]-d.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,d=BE(b,{width:v,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var tY=function(){function t(){this.dimensions=ZU}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),a=new JU(o+i,o,Sv({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=QU,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),Av(i,(function(t,i){var o=Dv(t,(function(t){return t.get("nameMap")})),a=new JU(i,i,Sv({nameMap:wv(o)},r(t[0])));a.zoomLimit=Xv.apply(null,Dv(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=QU,a.resize(t[0],e),Av(t,(function(t){t.coordinateSystem=a,function(t,e){Av(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=am(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);return Av(SU.load(e,n,r).regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}(),eY=new tY,nY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(t,e,n){var r=SU.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),dS(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=eY.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=Ev(e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new zD(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),am()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new zD(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return Rv(r)?(i.status=e,r(i)):zv(r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.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:[]},e}(XE),rY=nY;function iY(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function oY(t,e,n,r){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(iY(t,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(iY(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var aY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return h(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new VU(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;$L(t.target,(function(t){return null!=(e=tI(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=tI(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(GO),sY=aY;function lY(t,e,n){SU.registerMap(t,e,n)}function uY(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name),Av(n.coordinateSystem.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var o=[];Av(r,(function(t,e){r[e]&&o.push(e)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",eY),t.registerComponentModel(rY),t.registerComponentView(sY),t.registerImpl("registerMap",lY),t.registerImpl("getMap",(function(t){return SU.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var o=oY(i,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===r&&Av(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function cY(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,r=0,i=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=function(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=fY(s),o=gY(o),s&&o;){i=fY(i),a=gY(a),i.hierNode.ancestor=t;var p=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);p>0&&(vY(yY(s,t,n),t,p),u+=p,l+=p),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!fY(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!gY(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function hY(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function pY(t){return arguments.length?t:mY}function dY(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function fY(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function gY(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function yY(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function vY(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function mY(t,e){return t.parentNode===e.parentNode?1:2}var xY=function(){this.parentPoint=[],this.childPoints=[]},_Y=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new xY},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,o=n[0],a=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Nw(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var p=1;p<r-1;p++){var d=n[p];t.moveTo(d[0],d[1]),h[l]=d[l],t.lineTo(h[0],h[1])}},e}(wC),bY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Sw,n}return h(e,t),e.prototype.init=function(t,e){this._controller=new VH(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var r=t.getData(),i=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;r.diff(a).add((function(e){wY(r,e)&&SY(r,e,null,o,t)})).update((function(e,n){var i=a.getItemGraphicEl(n);wY(r,e)?SY(r,e,i,o,t):i&&IY(a,n,i,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&IY(a,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&r.eachItemGraphicEl((function(e,r){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})}))})),this._data=r},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),r=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||r.push([+e.x,+e.y])}));var i=[],o=[];DM(r,i,o);var a=this._min,s=this._max;o[0]-i[0]==0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new YU;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=o},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!WH(e,n,t)})),i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){BH(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){FH(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,r=e.scaleX||1;return((e.getZoom()-1)*n+1)/r},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(JO);function wY(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function SY(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,p=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();o?((n=new kj(t,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,AA(n,{x:g.x,y:g.y},i);var y=n.getSymbolPath();if("radial"===i.get("layout")){var v=c.children[0],m=v.getLayout(),x=v.children.length,_=void 0,b=void 0;if(g.x===m.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};(_=Math.atan2(w.y-m.y,w.x-m.x))<0&&(_=2*Math.PI+_),(b=w.x<m.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-m.y,g.x-m.x))<0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(b=g.x<m.x)&&(_-=Math.PI):(b=g.x>m.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),C=M.get("rotate"),I=C*(Math.PI/180),T=y.getTextContent();T&&(y.setTextConfig({position:M.get("position")||S,rotation:null==C?-_:I,origin:"center"}),T.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="relative"===A?sm(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;D&&(tI(n).focus=D),function(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new oA({shape:TY(c,h,p,i,i)})),AA(g,{shape:TY(c,h,p,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;m<y.length;m++){var x=y[m].getLayout();v.push([x.x,x.y])}g||(g=r.__edge=new _Y({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:d}})),AA(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},t)}}else if("production"!==process.env.NODE_ENV)throw new Error("The polyline edgeShape can only be used in orthogonal layout");g&&("polyline"!==u||e.isExpand)&&(g.useStyle(Mv({strokeNoScale:!0,fill:null},f)),KI(g,l,"lineStyle"),EI(g),s.add(g))}(i,a,c,n,f,d,g,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===sI||AI(n.__edge,e)}})}function MY(t,e,n,r,i){var o=CY(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var u=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?u:void 0),h=r.get("edgeShape"),p=r.get("layout"),d=r.get("orient"),f=r.get(["lineStyle","curveness"]);c&&("curve"===h?kA(c,{shape:TY(p,d,f,s,s),style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&kA(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(c)},removeOpt:i}))}}function CY(t,e){for(var n,r=e.parentNode===t?e:e.parentNode||e;null==(n=r.getLayout());)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function IY(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=CY(t.tree.root,o).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};kA(n,{x:a.x+1,y:a.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(e){MY(e,t,r,i,s)})),MY(o,t,r,i,s)}function TY(t,e,n,r,i){var o,a,s,l,u,c,h,p;if("radial"===t){u=r.rawX,h=r.rawY,c=i.rawX,p=i.rawY;var d=dY(u,h),f=dY(u,h+(p-h)*n),g=dY(c,p+(h-p)*n),y=dY(c,p);return{x1:d.x||0,y1:d.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,p=i.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),"TB"!==e&&"BT"!==e||(o=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var AY=bY,DY=IS();function EY(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,RY(e,n,t),Av(n,(function(n){Av(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Lv(kY,t))}))})),e.wrapMethod("cloneShallow",Lv(OY,t)),Av(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Lv(NY,t))})),Jv(n[e.dataType]===e)}function kY(t,e){if(function(t){return DY(t).mainData===t}(this)){var n=Sv({},DY(this).datas);n[this.dataType]=e,RY(e,n,t)}else zY(e,this.dataType,DY(this).mainData,t);return e}function NY(t,e){return t.struct&&t.struct.update(),e}function OY(t,e){return Av(DY(e).datas,(function(n,r){n!==e&&zY(n.cloneShallow(),r,e,t)})),e}function LY(t){var e=DY(this).mainData;return null==t||null==e?e:DY(e).datas[t]}function PY(){var t=DY(this).mainData;return null==t?[{data:t}]:Dv(Nv(DY(t).datas),(function(e){return{type:e,data:DY(t).datas[e]}}))}function RY(t,e,n){DY(t).datas={},Av(e,(function(e,r){zY(e,r,t,n)}))}function zY(t,e,n,r){DY(n).datas[e]=t,DY(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=LY,t.getLinkedDataAll=PY}var VY=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){Rv(t)&&(n=e,e=t,t=null),zv(t=t||{})&&(t={order:t});var r,i=t.order||"preorder",o=this[t.attr||"children"];"preorder"===i&&(r=e.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===i&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),BY=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;n<r;n++)e[n].dataIndex=-1;for(n=0,r=t.count();n<r;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),o=[],a=1;!function t(e,n){var r=e.value;a=Math.max(a,Pv(r)?r.length:1),o.push(e);var s=new VY(_S(e.name,""),i);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(s,n):i.root=s,i._nodes.push(s);var l=e.children;if(l)for(var u=0;u<l.length;u++)t(l[u],s)}(e),i.root.updateDepthAndHeight(0);var s=Sz(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new wz(s,n);return l.initData(o),r&&r(l),EY({mainData:l,struct:i,structAttr:"tree"}),i.update(),i},t}();function FY(t,e,n){if(t&&Cv(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(zv(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function jY(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function GY(t,e){return Cv(jY(t),e)>=0}function WY(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var HY=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return h(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new zD(n,this,this.ecModel),i=BY.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))}));var o=0;i.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==i;)s=o.parentNode.name+"."+s,o=o.parentNode;return yO("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=WY(r,this),n.collapsed=!r.isExpand,n},e.type="series.tree",e.layoutMode="box",e.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},e}(FO),UY=HY;function YY(t,e){for(var n,r=[t];n=r.pop();)if(e(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function XY(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return BE(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=pY((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=pY());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[e];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(s),function(t,e,n){for(var r,i=[t],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)e(r,n)}(l,cY,a),s.hierNode.modifier=-l.hierNode.prelim,YY(l,hY);var u=l,c=l,h=l;YY(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var p=u===c?1:a(u,c)/2,d=p-u.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===r)f=i/(c.getLayout().x+p+d),g=o/(h.depth-1||1),YY(l,(function(t){y=(t.getLayout().x+d)*f,v=(t.depth-1)*g;var e=dY(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+p+d),f=i/(h.depth-1||1),YY(l,(function(t){v=(t.getLayout().x+d)*g,y="LR"===m?(t.depth-1)*f:i-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(f=i/(c.getLayout().x+p+d),g=o/(h.depth-1||1),YY(l,(function(t){y=(t.getLayout().x+d)*f,v="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)})))}}}(t,e)}))}function $Y(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();Sv(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var ZY=["treemapZoomToNode","treemapRender","treemapMove"];function qY(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var r=e;r&&r.depth>1;)r=r.parentNode;var i=_k(t.ecModel,r.name||r.dataIndex+"",n);e.setVisual("decal",i)}))}var KY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return h(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};JY(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new zD({itemStyle:i},this,e);r=t.levels=function(t,e){var n,r,i=pS(e.get("color")),o=pS(e.get(["aria","decal","decals"]));if(!i)return;t=t||[],Av(t,(function(t){var e=new zD(t),i=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(r=!0)}));var a=t[0]||(t[0]={});n||(a.color=i.slice());!r&&o&&(a.decal=o.slice());return t}(r,e);var a=Dv(r||[],(function(t){return new zD(t,o,e)}),this),s=BY.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),r=n?a[n.depth]:null;return t.parentModel=r||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t);return yO("nameValue",{name:r.getName(t),value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=WY(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Sv(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=am(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){qY(this)},e.type="series.treemap",e.layoutMode="box",e.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:[]},e}(FO);function JY(t){var e=0;Av(t.children,(function(t){JY(t);var n=t.value;Pv(n)&&(n=n[0]),e+=n}));var n=t.value;Pv(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Pv(t.value)?t.value[0]=n:t.value=n}var QY=KY,tX=function(){function t(t){this.group=new Sw,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,r),FE(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=_S(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i,o,a){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),c=function(t,e,n){var r=e.width,i=e.height,o=Nw(t.left,r),a=Nw(t.top,i),s=Nw(t.right,r),l=Nw(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=TE(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}(e.pos,e.box),h=e.totalWidth,p=e.renderList,d=r.getModel("itemStyle").getItemStyle(),f=p.length-1;f>=0;f--){var g=p[f],y=g.node,v=g.width,m=g.text;h>c.width&&(h-=v-l,v=l,m=null);var x=new ZT({shape:{points:eX(s,0,v,u,f===p.length-1,0===f)},style:Mv(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new QC({style:dD(i,{text:m})}),textConfig:{position:"inside"},z2:1e4*hI,onclick:Lv(a,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=dD(o,{text:m}),x.ensureState("emphasis").style=d,XI(x,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(x),nX(x,t,y),s+=v+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function eX(t,e,n,r,i,o){var a=[[i?t:t-5,e],[t+n,e],[t+n,e+r],[i?t:t-5,e+r]];return!o&&a.splice(2,0,[t+n+5,e+r/2]),!i&&a.push([t,e+r/2]),a}function nX(t,e,n){tI(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&WY(n,e)}}var rX=tX,iX=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();var oX=Sw,aX=zC,sX="label",lX="upperLabel",uX=10*hI,cX=2*hI,hX=3*hI,pX=YS([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),dX=function(t){var e=pX(t);return e.stroke=e.fill=e.lineWidth=null,e},fX=IS(),gX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return h(e,t),e.prototype.render=function(t,e,n,r){if(!(Cv(e.findComponents({mainType:"series",subType:"treemap",query:r}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var i=FY(r,["treemapZoomToNode","treemapRootToNode"],t),o=r&&r.type,a=t.layoutInfo,s=!this._oldTree,l=this._storage,u="treemapRootToNode"===o&&i&&l?{rootNodeGroup:l.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,c=this._giveContainerGroup(a),h=t.get("animation"),p=this._doRender(c,t,u);!h||s||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?p.renderFinally():this._doAnimation(c,p,t,u),this._resetController(n),this._renderBreadcrumb(t,n,i)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new oX,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var r=e.getData().tree,i=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function u(t,r,i,u){return function(t,e,n,r,i,o,a,s,l,u){if(!a)return;var c=a.getLayout(),h=t.getData(),p=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var d=c.width,f=c.height,g=c.borderWidth,y=c.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,b=x&&x.length,w=p.getModel("itemStyle"),S=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),C=p.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,T=F("nodeGroup",oX);if(!T)return;if(l.add(T),T.x=c.x||0,T.y=c.y||0,T.markRedraw(),fX(T).nodeWidth=d,fX(T).nodeHeight=f,c.isAboveViewRoot)return T;var A=F("background",aX,u,cX);A&&P(T,A,b&&c.upperLabelHeight);var D=p.getModel("emphasis"),E=D.get("focus"),k=D.get("blurScope"),N=D.get("disabled"),O="ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():E;if(b)QI(T)&&JI(T,!1),A&&(JI(A,!N),h.setItemGraphicEl(a.dataIndex,A),$I(A,O,k));else{var L=F("content",aX,u,hX);L&&R(T,L),A.disableMorphing=!0,A&&QI(A)&&JI(A,!1),JI(T,!N),h.setItemGraphicEl(a.dataIndex,T),$I(T,O,k)}return T;function P(e,n,r){var i=tI(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:d,height:f,r:I}),y)z(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=dX(w);l.fill=s;var u=pX(S);u.fill=S.get("borderColor");var c=pX(M);c.fill=M.get("borderColor");var h=pX(C);if(h.fill=C.get("borderColor"),r){var p=d-2*g;V(n,s,o.opacity,{x:g,y:0,width:p,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,EI(n)}e.add(n)}function R(e,n){var r=tI(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(d-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:I}),y)z(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=dX(w);u.fill=l,u.decal=s.decal;var c=pX(S),h=pX(M),p=pX(C);V(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=p,EI(n)}e.add(n)}function z(t){!t.invisible&&o.push(t)}function V(e,n,r,i){var o=p.getModel(i?lX:sX),s=_S(p.get("name"),null),l=o.getShallow("show");hD(e,pD(p,i?lX:sX),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,d=Kv(h.padding||0);i&&(e.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-d[1]-d[3],0),n=Math.max((i?i.height:e.shape.height)-d[0]-d[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",B(h,i,c);var f=u.getState("emphasis");B(f?f.style:null,i,c)}}function B(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function F(t,r,o,a){var s=null!=m&&n[t][m],l=i[t];return s?(n[t][m]=null,j(l,s)):y||((s=new r)instanceof _M&&(s.z2=function(t,e){return t*uX+e}(o,a)),G(l,s)),e[t][v]=s}function j(t,e){var n=t[v]={};e instanceof oX?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Sv({},e.shape)}function G(t,e){var n=t[v]={},o=a.parentNode,s=e instanceof Sw;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}(e,a,s,n,o,l,t,r,i,u)}!function t(e,n,r,i,o){i?(n=e,Av(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new JR(n,e,a,a).add(s).update(s).remove(Lv(s,null)).execute();function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,c=null!=s?n[s]:null,h=u(l,c,r,o);h&&t(l&&l.viewChildren||[],c&&c.viewChildren||[],h,i,o+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&Av(t,(function(t,n){var r=e[n];Av(t,(function(t){t&&(r.push(t),fX(t).willDelete=!0)}))})),e}(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){Av(c,(function(t){Av(t,(function(t){t.parent&&t.parent.remove(t)}))})),Av(l,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Rv(i)?0:i)||0,s=(Rv(o)?null:o)||"cubicOut",l=new iX;Av(e.willDeleteEls,(function(t,e){Av(t,(function(t,n){if(!t.invisible){var i,o=t.parent,u=fX(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),i="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}i&&l.add(t,i,a,0,s)}}))})),Av(this._storage,(function(t,n){Av(t,(function(t,r){var i=e.lastsForAnimation[n][r],o={};i&&(t instanceof Sw?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=Sv({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished(Ov((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||((e=this._controller=new VH(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",Ov(this._onPan,this)),e.on("zoom",Ov(this._onZoom,this)));var n=new xx(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,r){return n.contain(e,r)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new xx(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];ox(s,s,[-(e-=a.x),-(n-=a.y)]),sx(s,s,[t.scale,t.scale]),ox(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&OE(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new rX(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(GY(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(t,e),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(JO);var yX=gX,vX=Av,mX=Fv,xX=-1,_X=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=_v(e);this.type=r,this.mappingMethod=n,this._normalizeData=EX[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(bX(i),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,Av(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(vX(e,(function(t,e){n[t]=e})),!Pv(r)){var i=[];Fv(r)?vX(r,(function(t,e){var r=n[e];i[null!=r?r:xX]=t})):i[xX]=r,r=DX(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}(i):bX(i,!0):(Jv("linear"!==n||i.dataExtent),bX(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return Ov(this._normalizeData,this)},t.listVisualTypes=function(){return Nv(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){Fv(t)?Av(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=Pv(e)?[]:Fv(e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&vX(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(Pv(t))t=t.slice();else{if(!mX(t))return[];var e=[];vX(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||zv(s)&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(kX(c[1],t,u[1]))return o}else if(u[1]===1/0){if(kX(c[0],u[0],t))return o}else if(kX(c[0],u[0],t)&&kX(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function h(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:MX("color"),getColorMapper:function(){var t=this.option;return Ov("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),CX.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=B_(e,t.parsedVisual,r),i?r:G_(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return G_(B_(t,this.option.parsedVisual),"rgba")},category:CX,piecewise:function(t,e){var n=AX.call(this,e);return null==n&&(n=G_(B_(t,this.option.parsedVisual),"rgba")),n},fixed:IX}},colorHue:wX((function(t,e){return F_(t,e)})),colorSaturation:wX((function(t,e){return F_(t,null,e)})),colorLightness:wX((function(t,e){return F_(t,null,null,e)})),colorAlpha:wX((function(t,e){return j_(t,e)})),decal:{applyVisual:MX("decal"),_normalizedToVisual:{linear:null,category:CX,piecewise:null,fixed:null}},opacity:{applyVisual:MX("opacity"),_normalizedToVisual:TX([0,1])},liftZ:{applyVisual:MX("liftZ"),_normalizedToVisual:{linear:IX,category:IX,piecewise:IX,fixed:IX}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:SX,category:CX,piecewise:function(t,e){var n=AX.call(this,e);return null==n&&(n=SX.call(this,t)),n},fixed:IX}},symbolSize:{applyVisual:MX("symbolSize"),_normalizedToVisual:TX([0,1])}},t}();function bX(t,e){var n=t.visual,r=[];Fv(n)?vX(n,(function(t){r.push(t)})):null!=n&&r.push(n);e||1!==r.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(r[1]=r[0]),DX(t,r)}function wX(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:TX([0,1])}}function SX(t){var e=this.option.visual;return e[Math.round(kw(t,[0,1],[0,e.length-1],!0))]||{}}function MX(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function CX(t){var e=this.option.visual;return e[this.option.loop&&t!==xX?t%e.length:t]}function IX(){return this.option.visual[0]}function TX(t){return{linear:function(e){return kw(e,t,this.option.visual,!0)},category:CX,piecewise:function(e,n){var r=AX.call(this,n);return null==r&&(r=kw(e,t,this.option.visual,!0)),r},fixed:IX}}function AX(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=n[_X.findPieceIndex(t,n)];if(r&&r.visual)return r.visual[this.type]}}function DX(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=Dv(e,(function(t){var e=R_(t);return e||"production"===process.env.NODE_ENV||rS("'"+t+"' is an illegal color, fallback to '#000000'",!0),e||[0,0,0,1]}))),e}var EX={linear:function(t){return kw(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=_X.findPieceIndex(t,e,!0);if(null!=n)return kw(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?xX:e},fixed:hm};function kX(t,e,n){return t?e<=n:e<n}var NX=_X,OX=IS(),LX={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||PX(e,{},t.getViewRoot().getAncestors(),t)}};function PX(t,e,n,r){var i=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=i.getModel("itemStyle"),u=function(t,e,n){var r=Sv({},e),i=n.designatedVisualItemStyle;return Av(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}(l,e,r),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),p=l.get("borderColorSaturation");null!=p&&(h=function(t,e){return null!=e?F_(e,null,null,t):null}(p,s=RX(u))),c.stroke=h;var d=t.viewChildren;if(d&&d.length){var f=function(t,e,n,r,i,o){if(!o||!o.length)return;var a=VX(e,"color")||null!=i.color&&"none"!==i.color&&(VX(e,"colorAlpha")||VX(e,"colorSaturation"));if(!a)return;var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var p=new NX(h);return OX(p).drColorMappingBy=c,p}(0,i,o,0,u,d);Av(d,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,r,i,o){var a=Sv({},e);if(i){var s=i.type,l="color"===s&&OX(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}(i,u,t,e,f,r);PX(t,o,n,r)}}))}else s=RX(u),c.fill=s}}function RX(t){var e=zX(t,"color");if(e){var n=zX(t,"colorAlpha"),r=zX(t,"colorSaturation");return r&&(e=F_(e,null,null,r)),n&&(e=j_(e,n)),e}}function zX(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function VX(t,e){var n=t.get(e);return Pv(n)&&n.length?{name:e,range:n}:null}var BX=Math.max,FX=Math.min,jX=Xv,GX=Av,WX=["itemStyle","borderWidth"],HX=["itemStyle","gapWidth"],UX=["upperLabel","show"],YX=["upperLabel","height"],XX={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=BE(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Nw(jX(s.width,l[0]),i),c=Nw(jX(s.height,l[1]),o),h=r&&r.type,p=FY(r,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===h||"treemapMove"===h?r.rootRect:null,f=t.getViewRoot(),g=jY(f);if("treemapMove"!==h){var y="treemapZoomToNode"===h?function(t,e,n,r,i){var o,a=(e||{}).node,s=[r,i];if(!a||a===n)return s;var l=r*i,u=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,h=o.children,p=0,d=h.length;p<d;p++)c+=h[p].getValue();var f=a.getValue();if(0===f)return s;u*=c/f;var g=o.getModel(),y=g.get(WX);(u+=4*y*y+(3*y+Math.max(y,JX(g)))*Math.pow(u,.5))>Bw&&(u=Bw),a=o}u<l&&(u=l);var v=Math.pow(u/l,.5);return[r*v,i*v]}(t,p,f,u,c):d?[d.width,d.height]:[u,c],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var m={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};f.setLayout(x),$X(f,m,!1,0),x=f.getLayout(),GX(g,(function(t,e){var n=(g[e+1]||f).getValue();t.setLayout(Sv({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var _=t.getData().tree.root;_.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,d,p),!0),t.setLayoutInfo(s),KX(_,new xx(-s.x,-s.y,i,o),g,f,0)}};function $X(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(WX),u=s.get(HX)/2,c=JX(s),h=Math.max(l,c),p=l-u,d=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0);var f=(i=BX(i-2*p,0))*(o=BX(o-p-d,0)),g=function(t,e,n,r,i,o){var a=t.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!l)return t.viewChildren=[];a=kv(a,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,n){var r="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===r?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:r}))}(a,s);var u=function(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],GX(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:r,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var p=a[c].getValue()/u.sum*n;a[c].setLayout({area:p})}l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}(t,s,f,e,n,r);if(g.length){var y={x:p,y:d,width:i,height:o},v=FX(i,o),m=1/0,x=[];x.area=0;for(var _=0,b=g.length;_<b;){var w=g[_];x.push(w),x.area+=w.getLayout().area;var S=ZX(x,v,e.squareRatio);S<=m?(_++,m=S):(x.area-=x.pop().getLayout().area,qX(x,v,y,u,!1),v=FX(y.width,y.height),x.length=x.area=0,m=1/0)}if(x.length&&qX(x,v,y,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(_=0,b=g.length;_<b;_++)$X(g[_],e,n,r+1)}}}function ZX(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,u=e*e*n;return l?BX(u*r/l,l/(u*i)):1/0}function qX(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,p=t.length;h<p;h++){var d=t[h],f={},g=c?d.getLayout().area/c:0,y=f[l[a]]=BX(c-2*r,0),v=n[s[o]]+n[l[o]]-u,m=h===p-1||v<g?v:g,x=f[l[o]]=BX(m-2*r,0);f[s[a]]=n[s[a]]+FX(r,y/2),f[s[o]]=u+FX(r,x/2),u+=m,d.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function KX(t,e,n,r,i){var o=t.getLayout(),a=n[i],s=a&&a===t;if(!(a&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new xx(e.x-o.x,e.y-o.y,e.width,e.height);GX(t.viewChildren||[],(function(t){KX(t,l,n,r,i+1)}))}}function JX(t){return t.get(UX)?t.get(YX):0}function QX(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getGraph().data,i=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t).getShallow("category");if(null!=n){Bv(n)&&(n=i[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}))}function t$(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(t){var e=r.getItemModel(t).getShallow("category");if(null!=e){zv(e)&&(e=i["ec-"+e]);var o=n.getItemVisual(e,"style");Sv(r.ensureUniqueItemVisual(t,"style"),o);for(var a=["symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)r.setItemVisual(t,a[s],n.getItemVisual(e,a[s]))}}))}))}function e$(t){return t instanceof Array||(t=[t,t]),t}function n$(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=e$(t.get("edgeSymbol")),i=e$(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var r=n.getItemModel(t),i=e.getEdgeByIndex(t),o=e$(r.getShallow("symbol",!0)),a=e$(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Sv(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var r$="--\x3e",i$=function(t){return t.get("autoCurveness")||null},o$=function(t,e){var n=i$(t),r=20,i=[];if(Bv(n))r=n;else if(Pv(n))return void(t.__curvenessList=n);e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=i},a$=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(r$)},s$=function(t){var e=t.split(r$);return[e[0],e[2],e[1]].join(r$)},l$=function(t,e){var n=a$(t.node1,t.node2,e);return e.__edgeMap[n]},u$=function(t,e){return c$(a$(t.node1,t.node2,e),e)+c$(a$(t.node2,t.node1,e),e)},c$=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function h$(t,e,n,r){var i=i$(e),o=Pv(i);if(!i)return null;var a=l$(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=u$(t,e);o$(e,u),t.lineStyle=t.lineStyle||{};var c=a$(t.node1,t.node2,e),h=e.__curvenessList,p=o||u%2?0:1;if(a.isForward)return h[p+s];var d=s$(c),f=c$(d,e),g=h[s+f+p];return r?o?i&&0===i[0]?(f+p)%2?g:-g:((f%2?0:1)+p)%2?g:-g:(f+p)%2?g:-g:h[s+f+p]}function p$(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),d$(n,t)}}function d$(t,e){t.eachEdge((function(t,n){var r=Zv(t.getModel().get(["lineStyle","curveness"]),-h$(t,e,n,!0),0),i=gm(t.node1.getLayout()),o=gm(t.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),t.setLayout(a)}))}function f$(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var r=t.getData(),i=[];Av(n.dimensions,(function(t){i=i.concat(r.mapDimensionsAll(t))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}d$(r.graph,t)}else e&&"none"!==e||p$(t)}))}function g$(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX;return((e.getZoom()-1)*n+1)/r}function y$(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var v$=Math.PI,m$=[];function x$(t,e,n,r){var i=t.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var p=i.pointToData(r),d=p[0],f=p[1],g=[d-l,f-u];wm(g,g),bm(g,g,c),n.setLayout([l+g[0],u+g[1]],!0),b$(n,t.get(["circular","rotateLabel"]),l,u)}_$[e](t,s,a,c,l,u,h),s.eachEdge((function(e,n){var r,i=Zv(e.getModel().get(["lineStyle","curveness"]),h$(e,t,n),0),o=gm(e.node1.getLayout()),a=gm(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+i&&(r=[l*(i*=3)+s*(1-i),u*i+c*(1-i)]),e.setLayout([o,a,r])}))}}}var _$={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,r,i,o,a){var s=0;m$.length=a;var l=g$(t);e.eachNode((function(t){var e=y$(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=v$/2),m$[t.dataIndex]=n,s+=2*n}));var u=(2*v$-s)/a/2,c=0;e.eachNode((function(t){var e=u+m$[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=e}))}};function b$(t,e,n,r){var i=t.getGraphicEl();if(i){var o=t.getModel().get(["label","rotate"])||0,a=i.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-r,s[0]-n);l<0&&(l=2*Math.PI+l);var u=s[0]<n;u&&(l-=Math.PI);var c=u?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var h=a.ensureState("emphasis");Sv(h.textConfig||(h.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function w$(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&x$(t,"symbolSize")}))}var S$=mm;function M$(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},r=t.getGraph(),i=r.data,o=r.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?i.each((function(t){var e=i.getId(t);i.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&x$(t,"value"):p$(t);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),p=Pv(c)?c:[c,c],d=Pv(h)?h:[h,h];d=[d[1],d[0]];var f=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e),r=kw(t,l,p);return isNaN(r)&&(r=(p[0]+p[1])/2),{w:r,rep:r,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var i=r.getEdgeByIndex(n),o=kw(e,u,d);isNaN(o)&&(o=(d[0]+d[1])/2);var a=i.getModel(),s=Zv(i.getModel().get(["lineStyle","curveness"]),-h$(i,t,n,!0),0);return{n1:f[i.node1.dataIndex],n2:f[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),y=e.getBoundingRect(),v=function(t,e,n){for(var r=t,i=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=dm(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=gm(h.p),h.edges=null}var p,d,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){p=t},afterStep:function(t){d=t},step:function(t){p&&p(r,i);for(var e=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1;xm(e,(y=a.n2).p,s.p);var c=_m(e)-a.d,h=y.w/(s.w+y.w);isNaN(h)&&(h=0),wm(e,e),!s.fixed&&S$(s.p,s.p,e,h*c*g),!y.fixed&&S$(y.p,y.p,e,-(1-h)*c*g)}}for(o=0;o<n;o++)(x=r[o]).fixed||(xm(e,l,x.p),S$(x.p,x.p,e,u*g));for(o=0;o<n;o++){s=r[o];for(var f=o+1;f<n;f++){var y;xm(e,(y=r[f]).p,s.p),0===(c=_m(e))&&(ym(e,Math.random()-.5,Math.random()-.5),c=1);var v=(s.rep+y.rep)/c/c;!s.fixed&&S$(s.pp,s.pp,e,v),!y.fixed&&S$(y.pp,y.pp,e,-v)}}var m=[];for(o=0;o<n;o++){var x;(x=r[o]).fixed||(xm(m,x.p,x.pp),S$(x.p,x.p,m,g),fm(x.pp,x.p))}var _=(g*=.992)<.01;d&&d(r,i,_),t&&t(_)}}}(f,g,{rect:y,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&fm(t[n].p,r.getNodeByIndex(n).getLayout())})),v.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||r.getNodeByIndex(a).setLayout(t[a].p),n[i.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=r.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,p=u.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],fm(p[0],c),fm(p[1],h),+l.curveness&&(p[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(p)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function C$(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var i=t.getData(),o=[],a=[];DM(i.mapArray((function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]})),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),l=function(t,e,n){return BE(Sv(t.getBoxLayoutParams(),{aspect:n}),{width:e.getWidth(),height:e.getHeight()})}(t,e,s);isNaN(s)&&(o=[l.x,l.y],a=[l.x+l.width,l.y+l.height]);var u=a[0]-o[0],c=a[1]-o[1],h=l.width,p=l.height,d=t.coordinateSystem=new YU;d.zoomLimit=t.get("scaleLimit"),d.setBoundingRect(o[0],o[1],u,c),d.setViewRect(l.x,l.y,h,p),d.setCenter(t.get("center"),e),d.setZoom(t.get("zoom")),n.push(d)}})),n}var I$=tA.prototype,T$=oA.prototype,A$=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function D$(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}h(e,t)}(A$);var E$=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return h(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new A$},e.prototype.buildPath=function(t,e){D$(e)?I$.buildPath.call(this,t,e):T$.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return D$(this.shape)?I$.pointAt.call(this,t):T$.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=D$(e)?[e.x2-e.x1,e.y2-e.y1]:T$.tangentAt.call(this,t);return wm(n,n)},e}(wC),k$=["fromSymbol","toSymbol"];function N$(t){return"_"+t+"Type"}function O$(t,e,n){var r=e.getItemVisual(n,t);if(!r||"none"===r)return r;var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=sP(i);return r+l+lP(a||0,l)+(o||"")+(s||"")}function L$(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=sP(i),u=lP(a||0,l),c=aP(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function P$(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var R$=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return h(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=function(t){var e=new E$({name:"line",subPixelOptimize:!0});return P$(e.shape,t),e}(t.getItemLayout(e));i.shape.percent=0,DA(i,{shape:{percent:1}},r,e),this.add(i),Av(k$,(function(n){var r=L$(n,t,e);this.add(r),this[N$(n)]=O$(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};P$(a.shape,o),AA(i,a,r,e),Av(k$,(function(n){var r=O$(n,t,e),i=N$(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=L$(n,t,e);this.add(o)}this[i]=r}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(e),d=p.getModel("emphasis");o=d.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),s=p.getModel(["select","lineStyle"]).getLineStyle(),u=d.get("disabled"),c=d.get("focus"),h=d.get("blurScope"),l=pD(p)}var f=t.getItemVisual(e,"style"),g=f.stroke;i.useStyle(f),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,Av(k$,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<uI.length;n++){var r=uI[n],o=i.getState(r);if(o){var a=o.style||{},s=e.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var y=r.getRawValue(e);hD(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?Ow(y):y)+""});var v=this.getTextContent();if(v){var m=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=m.get("position")||"middle";var x=m.get("distance");Pv(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),XI(this,c,h,u)},e.prototype.highlight=function(){OI(this)},e.prototype.downplay=function(){LI(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");P$(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),r=t.getTextContent();if(e||n||r&&!r.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=xm([],u,l);if(wm(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=i*s,e.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var h=void 0,p=void 0,d=r.__labelDistance,f=d[0]*i,g=d[1]*i,y=s/2,v=a.tangentAt(y),m=[v[1],-v[0]],x=a.pointAt(y);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var _=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var b=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(b=Math.PI+b),r.rotation=b}var w=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,p="top";break;default:w=0,p="middle"}switch(r.__position){case"end":r.x=c[0]*f+u[0],r.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*f+l[0],r.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=f*_+l[0],r.y=l[1]+w,h=v[0]<0?"right":"left",r.originX=-f*_,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=x[0],r.y=x[1]+w,h="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-f*_+u[0],r.y=u[1]+w,h=v[0]>=0?"right":"left",r.originX=f*_,r.originY=-w}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||h})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(Sw),z$=R$,V$=function(){function t(t){this.group=new Sw,this._LineCtor=t||z$}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=t,i||r.removeAll();var o=B$(t);t.diff(i).add((function(n){e._doAdd(t,n,o)})).update((function(n,r){e._doUpdate(i,t,r,n,o)})).remove((function(t){r.remove(i.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=B$(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++){if(j$(e.getItemLayout(r))){var i=new this._LineCtor(e,r,this._seriesScope);i.traverse(n),this.group.add(i),e.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){aD(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(j$(t.getItemLayout(e))){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,r,i){var o=t.getItemGraphicEl(n);j$(e.getItemLayout(r))?(o?o.updateData(e,r,i):o=new this._LineCtor(e,r,i),e.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},t}();function B$(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:pD(e)}}function F$(t){return isNaN(t[0])||isNaN(t[1])}function j$(t){return t&&!F$(t[0])&&!F$(t[1])}var G$=[],W$=[],H$=[],U$=p_,Y$=Cm,X$=Math.abs;function $$(t,e,n){for(var r,i=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){G$[0]=U$(i[0],o[0],a[0],c),G$[1]=U$(i[1],o[1],a[1],c),(d=X$(Y$(G$,e)-l))<s&&(s=d,r=c)}for(var h=0;h<32;h++){var p=r+u;W$[0]=U$(i[0],o[0],a[0],r),W$[1]=U$(i[1],o[1],a[1],r),H$[0]=U$(i[0],o[0],a[0],p),H$[1]=U$(i[1],o[1],a[1],p);var d=Y$(W$,e)-l;if(X$(d)<.01)break;var f=Y$(H$,e)-l;u/=2,d<0?f>=0?r+=u:r-=u:f>=0?r-=u:r+=u}return r}function Z$(t,e){var n=[],r=g_,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[gm(l[0]),gm(l[1])],l[2]&&l.__original.push(gm(l[2])));var h=l.__original;if(null!=l[2]){if(fm(i[0],h[0]),fm(i[1],h[2]),fm(i[2],h[1]),u&&"none"!==u){var p=y$(t.node1),d=$$(i,h[0],p*e);r(i[0][0],i[1][0],i[2][0],d,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],d,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){p=y$(t.node2),d=$$(i,h[1],p*e);r(i[0][0],i[1][0],i[2][0],d,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],d,n),i[1][1]=n[1],i[2][1]=n[2]}fm(l[0],i[0]),fm(l[1],i[2]),fm(l[2],i[1])}else{if(fm(o[0],h[0]),fm(o[1],h[1]),xm(a,o[1],o[0]),wm(a,a),u&&"none"!==u){p=y$(t.node1);mm(o[0],o[0],a,p*e)}if(c&&"none"!==c){p=y$(t.node2);mm(o[1],o[1],a,-p*e)}fm(l[0],o[0]),fm(l[1],o[1])}}))}function q$(t){return"view"===t.type}var K$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(t,e){var n=new Rj,r=new V$,i=this.group;this._controller=new VH(e.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(q$(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):AA(s,l,t)}Z$(t.getGraph(),g$(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var d=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(d){case"force":h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,p),h.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),x$(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;default:u.setItemLayout(n,[i.x,i.y]),d$(t.getGraph(),t),r.updateLayout(t)}})).on("dragend",(function(){h&&h.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(tI(i).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(tI(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode((function(t){b$(t,f,g,y)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function r(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())}))}()},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!WH(e,n,t)})),q$(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){BH(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){FH(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(),Z$(t.getGraph(),g$(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=g$(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){Z$(t.getGraph(),g$(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(JO),J$=K$;function Q$(t){return"_EC_"+t}var tZ=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[Q$(t)]){var r=new eZ(t,e);return r.hostGraph=this,this.nodes.push(r),n[Q$(t)]=r,r}"production"!==process.env.NODE_ENV&&console.error("Graph nodes have duplicate name or id")},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[Q$(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(Bv(t)&&(t=this.nodes[t]),Bv(e)&&(e=this.nodes[e]),t instanceof eZ||(t=r[Q$(t)]),e instanceof eZ||(e=r[Q$(e)]),t&&e){var o=t.id+"-"+e.id,a=new nZ(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),i[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof eZ&&(t=t.id),e instanceof eZ&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof eZ||(e=this._nodesMap[Q$(e)]),e){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(r,e,null))for(var a=[e];a.length;){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(r,c,s))return;a.push(c),c.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf((function(t){var n=r[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),eZ=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=am(),e=am(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);for(var i=[r.node1],o=[r.node2],a=0;a<i.length;){var s=i[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),i.push(s.inEdges[l].node1)}for(a=0;a<o.length;){var u=o[a];a++,e.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),nZ=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=am(),e=am();t.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var o=n[i];i++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}for(i=0;i<r.length;){var s=r[i];i++,e.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),r.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function rZ(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}function iZ(t,e,n,r,i){for(var o=new tZ(r),a=0;a<t.length;a++)o.addNode(Xv(t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var c=e[a],h=c.source,p=c.target;o.addEdge(h,p,u)&&(l.push(c),s.push(Xv(_S(c.id,null),h+" > "+p)),u++)}var d,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)d=kz(t,n);else{var g=Ok.get(f),y=g&&g.dimensions||[];Cv(y,"value")<0&&y.concat(["value"]);var v=Sz(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(d=new wz(v,n)).initData(t)}var m=new wz(["value"],n);return m.initData(l,s),i&&i(d,m),EY({mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}Iv(eZ,rZ("hostGraph","data")),Iv(nZ,rZ("hostGraph","edgeData"));var oZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return h(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new rW(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),dS(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,r=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&r){i$(n=this)&&(n.__curvenessList=[],n.__edgeMap={},o$(n));var a=iZ(i,r,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=zD.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=i,r}function i(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=i,t.getModel=r,t}))}));return Av(a.edges,(function(t){!function(t,e,n,r){if(i$(n)){var i=a$(t,e,n),o=n.__edgeMap,a=o[s$(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),yO("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return AO({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=Dv(this.option.categories||[],(function(t){return null!=t.value?t:Sv({value:0},t)})),e=new wz(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}}},e}(FO),aZ=oZ,sZ={type:"graphRoam",event:"graphRoam",update:"none"};var lZ=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},uZ=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return h(e,t),e.prototype.getDefaultShape=function(){return new lZ},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=i/3?1:2),l=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+r(a)*o),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(a)*o,e.y-r(a)*o),t.lineTo(s,l)},e}(wC);function cZ(t,e){var n=null==t?"":t+"";return e&&(zv(e)?n=e.replace("{value}",n):Rv(e)&&(n=e(t))),n}var hZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i);return{cx:Nw(n[0],e.getWidth()),cy:Nw(n[1],e.getHeight()),r:Nw(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?mG:WT,h=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=[s,l];QM(f,!a);for(var g=(l=f[1])-(s=f[0]),y=s,v=[],m=0;h&&m<r.length;m++){var x=new c({shape:{startAngle:y,endAngle:l=s+g*Math.min(Math.max(r[m][0],0),1),cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-d,r:i.r},silent:!0});x.setStyle({fill:r[m][1]}),x.setStyle(p.getLineStyle(["color","width"])),v.push(x),y=l}v.reverse(),Av(v,(function(t){return o.add(t)}));var _=function(t){if(t<=0)return r[0][1];var e;for(e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};this._renderTicks(t,e,n,_,i,s,l,a,d),this._renderTitleAndDetail(t,e,n,_,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,_,i,s,l,a,d)},e.prototype._renderTicks=function(t,e,n,r,i,o,a,s,l){for(var u,c,h=this.group,p=i.cx,d=i.cy,f=i.r,g=+t.get("min"),y=+t.get("max"),v=t.getModel("splitLine"),m=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),b=m.get("splitNumber"),w=Nw(v.get("length"),f),S=Nw(m.get("length"),f),M=o,C=(a-o)/_,I=C/b,T=v.getModel("lineStyle").getLineStyle(),A=m.getModel("lineStyle").getLineStyle(),D=v.get("distance"),E=0;E<=_;E++){if(u=Math.cos(M),c=Math.sin(M),v.get("show")){var k=new tA({shape:{x1:u*(f-(N=D?D+l:l))+p,y1:c*(f-N)+d,x2:u*(f-w-N)+p,y2:c*(f-w-N)+d},style:T,silent:!0});"auto"===T.stroke&&k.setStyle({stroke:r(E/_)}),h.add(k)}if(x.get("show")){var N=x.get("distance")+D,O=cZ(Ow(E/_*(y-g)+g),x.get("formatter")),L=r(E/_),P=u*(f-w-N)+p,R=c*(f-w-N)+d,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:Bv(z)&&(V=z*Math.PI/180),0===V?h.add(new QC({style:dD(x,{text:O,x:P,y:R,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:L}),silent:!0})):h.add(new QC({style:dD(x,{text:O,x:P,y:R,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:P,originY:R,rotation:V}))}if(m.get("show")&&E!==_){N=(N=m.get("distance"))?N+l:l;for(var B=0;B<=b;B++){u=Math.cos(M),c=Math.sin(M);var F=new tA({shape:{x1:u*(f-N)+p,y1:c*(f-N)+d,x2:u*(f-S-N)+p,y2:c*(f-S-N)+d},silent:!0,style:A});"auto"===A.stroke&&F.setStyle({stroke:r((E+B/b)/_)}),h.add(F),M+=I}M-=I}else M+=C}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,p=[],d=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),x=+t.get("max"),_=[m,x],b=[o,a];function w(e,n){var r,o=y.getItemModel(e).getModel("pointer"),a=Nw(o.get("width"),i.r),s=Nw(o.get("length"),i.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=Nw(u[0],i.r),h=Nw(u[1],i.r),p=o.get("keepAspect");return(r=l?aP(l,c-a/2,h-s,a,s,null,p):new uZ({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function S(t,e){var n=f.get("roundCap")?mG:WT,r=f.get("overlap"),a=r?f.get("width"):l/y.count(),u=r?i.r-a:i.r-(t+1)*a,c=r?i.r:i.r-t*a,h=new n({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:u,r:c}});return r&&(h.z2=x-y.get(v,t)%x),h}(g||d)&&(y.diff(c).add((function(e){var n=y.get(v,e);if(d){var r=w(e,o);DA(r,{rotation:-((isNaN(+n)?b[0]:kw(n,_,b,!0))+Math.PI/2)},t),u.add(r),y.setItemGraphicEl(e,r)}if(g){var i=S(e,o),a=f.get("clip");DA(i,{shape:{endAngle:kw(n,_,b,a)}},t),u.add(i),eI(t.seriesIndex,y.dataType,e,i),p[e]=i}})).update((function(e,n){var r=y.get(v,e);if(d){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=w(e,a);s.rotation=a,AA(s,{rotation:-((isNaN(+r)?b[0]:kw(r,_,b,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],m=S(e,l?l.shape.endAngle:o),x=f.get("clip");AA(m,{shape:{endAngle:kw(r,_,b,x)}},t),u.add(m),eI(t.seriesIndex,y.dataType,e,m),p[e]=m}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof DC){var c=s.style;s.useStyle(Sv({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(kw(y.get(v,t),_,[0,1],!0))),s.z2EmphasisLift=0,KI(s,e),XI(s,i,o,a)}if(g){var h=p[t];h.useStyle(y.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,KI(h,e),XI(h,i,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=aP(i,e.cx-r/2+Nw(o[0],e.r),e.cy-r/2+Nw(o[1],e.r),r,r,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Sw,h=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new QC({silent:!0}),p[t]=new QC({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],p[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new Sw,y=r(kw(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),x=i.cx+Nw(m[0],i.r),_=i.cy+Nw(m[1],i.r);(A=h[e]).attr({z2:f?0:2,style:dD(v,{x:x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(A)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=i.cx+Nw(w[0],i.r),M=i.cy+Nw(w[1],i.r),C=Nw(b.get("width"),i.r),I=Nw(b.get("height"),i.r),T=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,A=p[e],D=b.get("formatter");A.attr({z2:f?0:2,style:dD(b,{x:S,y:M,text:cZ(o,D),width:isNaN(C)?null:C,height:isNaN(I)?null:I,align:"center",verticalAlign:"middle"},{inheritColor:T})}),bD(A,{normal:b},o,(function(t){return cZ(t,D)})),d&&wD(A,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return cZ(a?a.interpolatedValue:o,D)}}),g.add(A)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(JO),pZ=hZ,dZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return h(e,t),e.prototype.getInitialData=function(t,e){return eW(this,["value"])},e.type="series.gauge",e.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}},e}(FO);var fZ=["itemStyle","opacity"],gZ=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new KT,a=new QC;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return h(e,t),e.prototype.updateData=function(t,e,n){var r=this,i=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(fZ);l=null==l?1:l,n||LA(r),r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,DA(r,{style:{opacity:l}},i,e)):AA(r,{style:{opacity:l},shape:{points:a.points}},i,e),KI(r,o),this._updateLabel(t,e),XI(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;hD(i,pD(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;r.setShape({points:c}),n.textGuideLineConfig={anchor:c?new ux(c[0][0],c[0][1]):null},AA(i,{style:{x:s.x,y:s.y}},o,e),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),BB(n,FB(a),{stroke:u})},e}(ZT),yZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return h(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,o=this.group;r.diff(i).add((function(t){var e=new gZ(r,t);r.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),o.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){OA(i.getItemGraphicEl(e),t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(JO),vZ=yZ,mZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rW(Ov(this.getData,this),Ov(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return eW(this,{coordDimensions:["value"],encodeDefaulter:Lv(uk,this)})},e.prototype._defaultLabelLine=function(t){dS(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series.funnel",e.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"}}},e}(FO),xZ=mZ;function _Z(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),o=function(t,e){return BE(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],o="ascending"===e,a=0,s=t.count();a<s;a++)i[a]=a;return Rv(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return o?r[t]-r[e]:r[e]-r[t]})),i}(n,i),c=o.x,h=o.y,p="horizontal"===a?[Nw(t.get("minSize"),l),Nw(t.get("maxSize"),l)]:[Nw(t.get("minSize"),s),Nw(t.get("maxSize"),s)],d=n.getDataExtent(r),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(d[0],0)),null==g&&(g=d[1]);var y=t.get("funnelAlign"),v=t.get("gap"),m=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var i=kw(n.get(r,t)||0,[f,g],p,!0),o=void 0;switch(y){case"top":o=h;break;case"center":o=h+(l-i)/2;break;case"bottom":o=h+(l-i)}return[[e,o],[e,o+i]]}var u,d=kw(n.get(r,t)||0,[f,g],p,!0);switch(y){case"left":u=c;break;case"center":u=c+(s-d)/2;break;case"right":u=c+s-d}return[[u,e],[u+d,e]]};"ascending"===i&&(m=-m,v=-v,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var _=0;_<u.length;_++){var b=u[_],w=u[_+1],S=n.getItemModel(b);if("horizontal"===a){var M=S.get(["itemStyle","width"]);null==M?M=m:(M=Nw(M,s),"ascending"===i&&(M=-M));var C=x(b,c),I=x(w,c+M);c+=M+v,n.setItemLayout(b,{points:C.concat(I.slice().reverse())})}else{var T=S.get(["itemStyle","height"]);null==T?T=m:(T=Nw(T,l),"ascending"===i&&(T=-T));C=x(b,h),I=x(w,h+T);h+=T+v,n.setItemLayout(b,{points:C.concat(I.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var r,i,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),u=s.getModel("labelLine"),c=t.getItemLayout(n),h=c.points,p="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(p)"insideLeft"===l?(i=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,r="left"):"insideRight"===l?(i=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,r="right"):(i=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var d=void 0,f=void 0,g=void 0,y=void 0,v=u.get("length");"production"!==process.env.NODE_ENV&&("vertical"===e&&["top","bottom"].indexOf(l)>-1&&(l="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),"horizontal"===e&&["left","right"].indexOf(l)>-1&&(l="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),"left"===l?(d=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,i=(g=d-v)-5,r="right"):"right"===l?(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,i=(g=d+v)+5,r="left"):"top"===l?(d=(h[3][0]+h[0][0])/2,o=(y=(f=(h[3][1]+h[0][1])/2)-v)-5,r="center"):"bottom"===l?(d=(h[1][0]+h[2][0])/2,o=(y=(f=(h[1][1]+h[2][1])/2)+v)+5,r="center"):"rightTop"===l?(d="horizontal"===e?h[3][0]:h[1][0],f="horizontal"===e?h[3][1]:h[1][1],"horizontal"===e?(o=(y=f-v)-5,r="center"):(i=(g=d+v)+5,r="top")):"rightBottom"===l?(d=h[2][0],f=h[2][1],"horizontal"===e?(o=(y=f+v)+5,r="center"):(i=(g=d+v)+5,r="bottom")):"leftTop"===l?(d=h[0][0],f="horizontal"===e?h[0][1]:h[1][1],"horizontal"===e?(o=(y=f-v)-5,r="center"):(i=(g=d-v)-5,r="right")):"leftBottom"===l?(d="horizontal"===e?h[1][0]:h[3][0],f="horizontal"===e?h[1][1]:h[2][1],"horizontal"===e?(o=(y=f+v)+5,r="center"):(i=(g=d-v)-5,r="right")):(d=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,"horizontal"===e?(o=(y=f+v)+5,r="center"):(i=(g=d+v)+5,r="left")),"horizontal"===e?i=g=d:o=y=f,a=[[d,f],[g,y]]}c.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:p}}))}(n)}))}var bZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Sw,n._initialized=!1,n}return h(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=MZ(t);if(o.diff(a).add((function(t){var e=SZ(o,i,t,l,s);CZ(e,o,t,u)})).update((function(e,n){var r=a.getItemGraphicEl(n),i=wZ(o,e,l,s);o.setItemGraphicEl(e,r),AA(r,{shape:{points:i}},t,e),LA(r),CZ(r,o,e,u)})).remove((function(t){var e=a.getItemGraphicEl(t);i.remove(e)})).execute(),!this._initialized){this._initialized=!0;var c=function(t,e,n){var r=t.model,i=t.getRect(),o=new zC({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),DA(o,{shape:{width:i.width,height:i.height}},e,n),o}(s,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(c)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var r=e.getData(),i=e.coordinateSystem,o=i.dimensions,a=MZ(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=SZ(r,this._dataGroup,l,o,i);u.incremental=!0,CZ(u,r,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(JO);function wZ(t,e,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);i=l,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(l,s))}return o}function SZ(t,e,n,r,i){var o=wZ(t,n,r,i),a=new KT({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function MZ(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),Yv(e=$w(e))&&(e=0),{smooth:e}}function CZ(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");KI(t,i,"lineStyle"),XI(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var IZ=bZ,TZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return h(e,t),e.prototype.getInitialData=function(t,e){return kz(null,this,{useEncodeDefaulter:Ov(AZ,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),r=[];return e.eachActiveState(n,(function(e,i){t===e&&r.push(n.getRawIndex(i))})),r},e.type="series.parallel",e.dependencies=["parallel"],e.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"},e}(FO);function AZ(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Av(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}var DZ=TZ,EZ=["lineStyle","opacity"],kZ={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var i=r[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(EZ,!0);null!=o&&(i=o)}e.ensureUniqueItemVisual(n,"style").opacity=i}),t.start,t.end)}}}},NZ=kZ;function OZ(t){!function(t){if(t.parallel)return;var e=!1;Av(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=pS(t.parallelAxis);Av(e,(function(e){if(Fv(e)){var n=e.parallelIndex||0,r=pS(t.parallel)[n];r&&r.parallelAxisDefault&&bv(e,r.parallelAxisDefault,!1)}}))}(t)}var LZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Av(PZ,(function(t,e){n.getZr().on(e,this._handlers[e]=Ov(t,this))}),this)),rL(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){iL(this,"_throttledDispatchExpand"),Av(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Sv({type:"parallelAxisExpand"},t))},e.type="parallel",e}(GO),PZ={mousedown:function(t){RZ(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(RZ(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&RZ(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function RZ(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var zZ=LZ,VZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&bv(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){Av(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];Av(kv(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.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},e}(XE),BZ=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return h(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(yB),FZ=BZ;function jZ(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=WZ(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=WZ(s,[0,a]),i=o=WZ(s,[i,o]),r=0}e[0]=WZ(e[0],n),e[1]=WZ(e[1],n);var l=GZ(e,r);e[r]+=t;var u,c=i||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[r]=WZ(e[r],h),u=GZ(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=GZ(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o),e}function GZ(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function WZ(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var HZ=Av,UZ=Math.min,YZ=Math.max,XZ=Math.floor,$Z=Math.ceil,ZZ=Ow,qZ=Math.PI,KZ=function(){function t(t,e,n){this.type="parallel",this._axesMap=am(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;HZ(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new FZ(t,RV(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],a=t[i];return o>=n&&o<=n+e.axisLength&&a>=r&&a<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();HZ(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),PV(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=BE(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=JZ(e.get("axisExpandWidth"),l),h=JZ(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow");d?(t=JZ(d[1]-d[0],l),d[1]=d[0]+t):(t=JZ(c*(h-1),l),(d=[c*(e.get("axisExpandCenter")||XZ(u/2))-t/2])[1]=d[0]+t);var f=(s-t)/(u-h);f<3&&(f=0);var g=[XZ(ZZ(d[0]/c,1))+1,$Z(ZZ(d[1]/c,1))-1],y=f/c*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:d,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;e.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),HZ(n,(function(e,n){var o=(r.axisExpandable?tq:QZ)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:qZ/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=[1,0,0,1,0,0];ax(c,c,u),ox(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];Av(o,(function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),p=0,d=o.length;p<d;p++){if("inactive"===s[p].getActiveState(h[p])){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,i=t.length;r<i;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){return ZA([t,0],this._axesLayout[e].transform)},t.prototype.getAxisLayout=function(t){return _v(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<i*c[0]?(l="jump",a=s-i*c[2]):h&&u&&s>i*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?jZ(a,r,o,"all"):l="none";else{var p=r[1]-r[0];(r=[YZ(0,o[1]*s/p-p/2)])[1]=UZ(o[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:l}},t}();function JZ(t,e){return UZ(YZ(t,e[0]),e[1])}function QZ(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function tq(t,e){var n,r,i=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,r=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-t)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var eq={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(r,i){var o=new KZ(r,t,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",ES).models[0];t.coordinateSystem=e.coordinateSystem}})),n}},nq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return h(e,t),e.prototype.getAreaSelectStyle=function(){return YS([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=_v(t);if(e)for(var n=e.length-1;n>=0;n--)Lw(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;r<i;r++)if(e[r][0]<=t&&t<=e[r][1])return"active";return"inactive"},e}(XE);Iv(nq,WV);var rq=nq,iq=!0,oq=Math.min,aq=Math.max,sq=Math.pow,lq=1e4,uq=6,cq=6,hq="globalPan",pq={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},dq={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},fq={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},gq=0,yq=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},"production"!==process.env.NODE_ENV&&Jv(e),n._zr=e,n.group=new Sw,n._uid="brushController_"+gq++,Av(Wq,(function(t,e){this._handlers[e]=Ov(t,this)}),n),n}return h(e,t),e.prototype.enableBrush=function(t){return"production"!==process.env.NODE_ENV&&Jv(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){OH(t)[e]=n}(e,hq,this._uid),Av(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=bv(_v(fq),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var r=OH(t);r[e]===n&&(r[e]=null)}(t,hq,this._uid),Av(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Av(t,(function(t){e[t.panelId]=_v(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},"production"!==process.env.NODE_ENV&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){"production"!==process.env.NODE_ENV&&Jv(this._mounted),t=Dv(t,(function(t){return bv(_v(fq),t,!0)}));var e="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new JR(n,t,(function(t,e){return a(t.__brushOption,e)}),a).add(s).update(s).remove((function(t){n[t]!==o&&i.group.remove(n[t])})).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(e,a){var s=t[e];if(null!=a&&n[a]===o)r[e]=n[a];else{var l=r[e]=null!=a?(n[a].__brushOption=s,n[a]):mq(i,vq(i,s));bq(i,l)}}},e.prototype.unmount=function(){if("production"===process.env.NODE_ENV||this._mounted)return this.enableBrush(!1),Cq(this),this._zr.remove(this.group),"production"!==process.env.NODE_ENV&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Nm);function vq(t,e){var n=Uq[e.brushType].createCover(t,e);return n.__brushOption=e,_q(n,e),t.group.add(n),n}function mq(t,e){var n=wq(e);return n.endCreating&&(n.endCreating(t,e),_q(e,e.__brushOption)),e}function xq(t,e){var n=e.__brushOption;wq(e).updateCoverShape(t,e,n.range,n)}function _q(t,e){var n=e.z;null==n&&(n=lq),t.traverse((function(t){t.z=n,t.z2=n}))}function bq(t,e){wq(e).updateCommon(t,e),xq(t,e)}function wq(t){return Uq[t.__brushOption.brushType]}function Sq(t,e,n){var r,i=t._panels;if(!i)return iq;var o=t._transform;return Av(i,(function(t){t.isTargetByCursor(e,n,o)&&(r=t)})),r}function Mq(t,e){var n=t._panels;if(!n)return iq;var r=e.__brushOption.panelId;return null!=r?n[r]:iq}function Cq(t){var e=t._covers,n=e.length;return Av(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function Iq(t,e){var n=Dv(t._covers,(function(t){var e=t.__brushOption,n=_v(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Tq(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Aq(t,e,n,r){var i=new Sw;return i.add(new zC({name:"main",style:Nq(n),silent:!0,draggable:!0,cursor:"move",drift:Lv(Pq,t,e,i,["n","s","w","e"]),ondragend:Lv(Iq,e,{isEnd:!0})})),Av(r,(function(n){i.add(new zC({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Lv(Pq,t,e,i,n),ondragend:Lv(Iq,e,{isEnd:!0})}))})),i}function Dq(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=aq(i,cq),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],p=c-o+i/2,d=h-o+i/2,f=c-a,g=h-s,y=f+i,v=g+i;kq(t,e,"main",a,s,f,g),r.transformable&&(kq(t,e,"w",l,u,o,v),kq(t,e,"e",p,u,o,v),kq(t,e,"n",l,u,y,o),kq(t,e,"s",l,d,y,o),kq(t,e,"nw",l,u,o,o),kq(t,e,"ne",p,u,o,o),kq(t,e,"sw",l,d,o,o),kq(t,e,"se",p,d,o,o))}function Eq(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(Nq(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Av([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?Lq(t,n[0]):function(t,e){var n=[Lq(t,e[0]),Lq(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?dq[o]+"-resize":null})}))}function kq(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=oq(t[0][0],t[1][0]),n=oq(t[0][1],t[1][1]),r=aq(t[0][0],t[1][0]),i=aq(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}(Vq(t,e,[[r,i],[r+o,i+a]])))}function Nq(t){return Mv({strokeNoScale:!0},t.brushStyle)}function Oq(t,e,n,r){var i=[oq(t,n),oq(e,r)],o=[aq(t,n),aq(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function Lq(t,e){var n=qA({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return $A(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function Pq(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=zq(e,i,o);Av(r,(function(t){var e=pq[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(Oq(s[0][0],s[1][0],s[0][1],s[1][1])),bq(e,n),Iq(e,{isEnd:!1})}function Rq(t,e,n,r){var i=e.__brushOption.range,o=zq(t,n,r);Av(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),bq(t,e),Iq(t,{isEnd:!1})}function zq(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function Vq(t,e,n){var r=Mq(t,e);return r&&r!==iq?r.clipPath(n,t._transform):_v(n)}function Bq(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Fq(t,e,n){return t.childOfName("main").contain(e,n)}function jq(t,e,n,r){var i,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1];return sq(i*i+o*o,.5)>uq}(t)||o){if(a&&!o){"single"===s.brushMode&&Cq(t);var l=_v(s);l.brushType=Gq(l.brushType,a),l.panelId=a===iq?null:a.panelId,o=t._creatingCover=vq(t,l),t._covers.push(o)}if(o){var u=Uq[Gq(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(Vq(t,o,t._track)),r&&(mq(t,o),u.updateCommon(t,o)),xq(t,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&Sq(t,e,n)&&Cq(t)&&(i={isEnd:r,removeOnClick:!0});return i}function Gq(t,e){return"auto"===t?("production"!==process.env.NODE_ENV&&Jv(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}var Wq={mousedown:function(t){if(this._dragging)Hq(this,t);else if(!t.target||!t.target.draggable){Bq(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Sq(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=Sq(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===iq||s.panelId===o.panelId)&&Uq[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,t,r),this._dragging){Bq(t);var i=jq(this,t,r,!1);i&&Iq(this,i)}},mouseup:function(t){Hq(this,t)}};function Hq(t,e){if(t._dragging){Bq(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=jq(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&Iq(t,o)}}var Uq={lineX:Yq(0),lineY:Yq(1),rect:{createCover:function(t,e){function n(t){return t}return Aq({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=Tq(t);return Oq(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){Dq(t,e,n,r)},updateCommon:Eq,contain:Fq},polygon:{createCover:function(t,e){var n=new Sw;return n.add(new KT({name:"main",style:Nq(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new ZT({name:"main",draggable:!0,drift:Lv(Rq,t,e),ondragend:Lv(Iq,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:Vq(t,e,n)})},updateCommon:Eq,contain:Fq}};function Yq(t){return{createCover:function(e,n){return Aq({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=Tq(e);return[oq(n[0][t],n[1][t]),aq(n[0][t],n[1][t])]},updateCoverShape:function(e,n,r,i){var o,a=Mq(e,n);if(a!==iq&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),Dq(e,n,l,i)},updateCommon:Eq,contain:Fq}}var Xq=yq;function $q(t){return t=Kq(t),function(e){return QA(e,t)}}function Zq(t,e){return t=Kq(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function qq(t,e,n){var r=Kq(t);return function(t,i){return r.contain(i[0],i[1])&&!WH(t,e,n)}}function Kq(t){return xx.create(t)}var Jq=["axisLine","axisTickLabel","axisName"],Qq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new Xq(n.getZr())).on("brush",Ov(this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Sw,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=Sv({strokeContainThreshold:l},a.getAxisLayout(u)),h=new FW(t,c);Av(Jq,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(c,s,t,o,l,n),JA(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=xx.create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:$q(u),isTargetByCursor:qq(u,o,r),getLinearBrushOtherExtent:Zq(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return Dv(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=Dv(e,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(GO);var tK=Qq,eK={type:"axisAreaSelect",event:"axisAreaSelected"};var nK={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function rK(t){t.registerComponentView(zZ),t.registerComponentModel(VZ),t.registerCoordinateSystem("parallel",eq),t.registerPreprocessor(OZ),t.registerComponentModel(rq),t.registerComponentView(tK),bW(t,"parallel",rq,nK),function(t){t.registerAction(eK,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(t)}var iK=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(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.getDefaultShape=function(){return new iK},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){OI(this)},e.prototype.downplay=function(){LI(this)},e}(wC),aK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return h(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(e){var n=new oK,r=tI(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,u,p,d,f,g,y,v=e.getModel(),m=v.getModel("lineStyle"),x=m.get("curveness"),_=e.node1.getLayout(),b=e.node1.getModel(),w=b.get("localX"),S=b.get("localY"),M=e.node2.getLayout(),C=e.node2.getModel(),I=C.get("localX"),T=C.get("localY"),A=e.getLayout();n.shape.extent=Math.max(1,A.dy),n.shape.orient=h,"vertical"===h?(i=(null!=w?w*s:_.x)+A.sy,a=(null!=S?S*l:_.y)+_.dy,u=(null!=I?I*s:M.x)+A.ty,d=i,f=a*(1-x)+(p=null!=T?T*l:M.y)*x,g=u,y=a*x+p*(1-x)):(i=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+A.sy,d=i*(1-x)+(u=null!=I?I*s:M.x)*x,f=a,g=i*x+u*(1-x),y=p=(null!=T?T*l:M.y)+A.ty),n.setShape({x1:i,y1:a,x2:u,y2:p,cpx1:d,cpy1:f,cpx2:g,cpy2:y}),n.useStyle(m.getItemStyle()),sK(n.style,h,e);var D=""+v.get("value"),E=pD(v,"edgeLabel");hD(n,E,{labelFetcher:{getFormattedLabel:function(e,n,r,i,o,a){return t.getFormattedLabel(e,n,"edge",i,Zv(o,E.normal&&E.normal.get("formatter"),D),a)}},labelDataIndex:e.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var k=v.getModel("emphasis");KI(n,v,"lineStyle",(function(t){var n=t.getItemStyle();return sK(n,h,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var N=k.get("focus");XI(n,"adjacency"===N?e.getAdjacentDataIndices():"trajectory"===N?e.getTrajectoryDataIndices():N,k.get("blurScope"),k.get("disabled"))})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),h=new zC({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});hD(h,pD(r),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),KI(h,r),o.add(h),u.setItemGraphicEl(e.dataIndex,h),tI(h).dataType="node";var p=c.get("focus");XI(h,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,i){u.getItemModel(i).get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,n){var r=new zC({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return DA(r,{shape:{width:t.width+20}},e,n),r}(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(JO);function sK(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");zv(r)&&zv(i)&&(t.fill=new dA(0,0,+("horizontal"===e),+("vertical"===e),[{color:r,offset:0},{color:i,offset:1}]))}}var lK=aK,uK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,r=t.data||t.nodes,i=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)if(null!=i[a].depth&&i[a].depth>=0)o[i[a].depth]=new zD(i[a],this,e);else if("production"!==process.env.NODE_ENV)throw new Error("levels[i].depth is mandatory and should be natural number");if(r&&n){var s=iZ(r,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t}))}));return s.data}},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),o=i.data,a=i.value;return yO("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:r(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return yO("nameValue",{name:null!=l?l+"":null,value:s,noValue:r(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e).getLayout().value;r.value=i}return r},e.type="series.sankey",e.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},e}(FO),cK=uK;function hK(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=function(t,e){return BE(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){Av(t,(function(t){var e=bK(t.outEdges,_K),n=bK(t.inEdges,_K),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}(l);var c=kv(l,(function(t){return 0===t.getLayout().value}));!function(t,e,n,r,i,o,a,s,l){(function(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,p=0;p<e.length;p++)s[p]=1;for(p=0;p<t.length;p++)l[p]=t[p].inEdges.length,0===l[p]&&u.push(t[p]);var d=-1;for(;u.length;){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>d&&(d=y.depth),g.setLayout({depth:v?y.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var x=g.outEdges[m];s[e.indexOf(x)]=0;var _=x.node2;0==--l[t.indexOf(_)]&&c.indexOf(_)<0&&c.push(_)}}++h,u=c,c=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var b=d>h-1?d:h-1;a&&"left"!==a&&function(t,e,n,r){if("right"===e){for(var i=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}Av(t,(function(t){pK(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){Av(t,(function(t){pK(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,r)}(t,a,0,b);var w="vertical"===o?(i-n)/b:(r-n)/b;!function(t,e,n){Av(t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}(t,w,o)})(t,e,n,i,o,s,l),function(t,e,n,r,i,o,a){var s=function(t,e){var n=[],r="vertical"===e?"y":"x",i=LS(t,(function(t){return t.getLayout()[r]}));return i.keys.sort((function(t,e){return t-e})),Av(i.keys,(function(t){n.push(i.buckets.get(t))})),n}(t,a);(function(t,e,n,r,i,o){var a=1/0;Av(t,(function(t){var e=t.length,s=0;Av(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(r-(e-1)*i)/s:(n-(e-1)*i)/s;l<a&&(a=l)})),Av(t,(function(t){Av(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),Av(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(s,e,n,r,i,a),dK(s,i,n,r,a);for(var l=1;o>0;o--)fK(s,l*=.99,a),dK(s,i,n,r,a),wK(s,l,a),dK(s,i,n,r,a)}(t,e,o,i,r,a,s),function(t,e){var n="vertical"===e?"x":"y";Av(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),Av(t,(function(t){var e=0,n=0;Av(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),Av(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,r,o,a,0!==c.length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function pK(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function dK(t,e,n,r,i){var o="vertical"===i?"x":"y";Av(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===i?"dx":"dy",p=0;p<c;p++)(l=u-(s=t[p]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===i?r:n))>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(p=c-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function fK(t,e,n){Av(t.slice().reverse(),(function(t){Av(t,(function(t){if(t.outEdges.length){var r=bK(t.outEdges,gK,n)/bK(t.outEdges,_K);if(isNaN(r)){var i=t.outEdges.length;r=i?bK(t.outEdges,yK,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-xK(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-xK(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function gK(t,e){return xK(t.node2,e)*t.getValue()}function yK(t,e){return xK(t.node2,e)}function vK(t,e){return xK(t.node1,e)*t.getValue()}function mK(t,e){return xK(t.node1,e)}function xK(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function _K(t){return t.getValue()}function bK(t,e,n){for(var r=0,i=t.length,o=-1;++o<i;){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function wK(t,e,n){Av(t,(function(t){Av(t,(function(t){if(t.inEdges.length){var r=bK(t.inEdges,vK,n)/bK(t.inEdges,_K);if(isNaN(r)){var i=t.inEdges.length;r=i?bK(t.inEdges,mK,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-xK(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-xK(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function SK(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,r=e.edges;if(n.length){var i=1/0,o=-1/0;Av(n,(function(t){var e=t.getLayout().value;e<i&&(i=e),e>o&&(o=e)})),Av(n,(function(e){var n=new NX({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),r=e.getModel().get(["itemStyle","color"]);null!=r?(e.setVisual("color",r),e.setVisual("style",{fill:r})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}r.length&&Av(r,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var MK=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,r,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),r=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],p=[i,o],d=p[u].get("type"),f=p[1-u].get("type"),g=t.data;if(g&&r){var y=[];Av(g,(function(t,e){var n;Pv(t)?(n=t.slice(),t.unshift(e)):Pv(t.value)?((n=Sv({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var v=this.defaultValueDimensions,m=[{name:c,type:ez(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:ez(f),dimsDef:v.slice()}];return eW(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:Lv(lk,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),CK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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 h(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(FO);Iv(CK,MK,!0);var IK=CK,TK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;r.diff(o).add((function(t){if(r.hasValue(t)){var e=EK(r.getItemLayout(t),r,t,a,!0);r.setItemGraphicEl(t,e),i.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?(LA(n),kK(s,n,r,t)):n=EK(s,r,t,a),i.add(n),r.setItemGraphicEl(t,n)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(JO),AK=function(){},DK=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return h(e,t),e.prototype.getDefaultShape=function(){return new AK},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();r<n.length;r++)t.moveTo(n[r][0],n[r][1]),r++,t.lineTo(n[r][0],n[r][1])},e}(wC);function EK(t,e,n,r,i){var o=t.ends,a=new DK({shape:{points:i?NK(o,r,t):o}});return kK(t,a,e,n,i),a}function kK(t,e,n,r,i){var o=n.hostModel;(0,sD[i?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(r),s=a.getModel("emphasis");KI(e,a),XI(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function NK(t,e,n){return Dv(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}var OK=TK,LK=Av;function PK(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),i=Cv(n,r);i<0&&(i=n.length,n[i]=r,e[i]={axis:r,seriesModels:[]}),e[i].seriesModels.push(t)})),e}(t);LK(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n=t.axis,r=t.seriesModels,i=r.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;LK(r,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}LK(r,(function(t){var n=t.get("boxWidth");Pv(n)||(n=[n,n]),s.push([Nw(n[0],e)||0,Nw(n[1],e)||0])}));var c=.8*e-2,h=c/i*.3,p=(c-h*(i-1))/i,d=p/2-c/2;LK(r,(function(t,e){a.push(d),d+=h+p,o.push(Math.min(Math.max(p,s[e][0]),s[e][1]))}))}(t),LK(e,(function(e,n){!function(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(null==u||c.length<5)return;for(var h=0;h<i.count();h++){var p=i.get(u,h),d=x(p,c[2],h),f=x(p,c[0],h),g=x(p,c[1],h),y=x(p,c[3],h),v=x(p,c[4],h),m=[];_(m,g,!1),_(m,y,!0),m.push(f,g,v,y),b(m,f),b(m,v),b(m,d),i.setItemLayout(h,{initBaseline:d[s],ends:m})}function x(t,n,o){var l,u=i.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c))[a]+=e,l}function _(t,e,n){var r=e.slice(),i=e.slice();r[a]+=o,i[a]-=o,n?t.push(r,i):t.push(i,r)}function b(t,e){var n=e.slice(),r=e.slice();n[a]-=o,r[a]+=o,t.push(n,r)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}var RK={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==QE){var n="";"production"!==process.env.NODE_ENV&&(n=sS("source data is not applicable for this boxplot transform. Expect number[][].")),lS(n)}var r=function(t,e){for(var n=[],r=[],i=(e=e||{}).boundIQR,o="none"===i||0===i,a=0;a<t.length;a++){var s=Lw(t[a].slice()),l=Yw(s,.25),u=Yw(s,.5),c=Yw(s,.75),h=s[0],p=s[s.length-1],d=(null==i?1.5:i)*(c-l),f=o?h:Math.max(h,l-d),g=o?p:Math.min(p,c+d),y=e.itemNameFormatter,v=Rv(y)?y({value:a}):zv(y)?y.replace("{value}",a+""):a+"";n.push([v,f,l,u,c,g]);for(var m=0;m<s.length;m++){var x=s[m];if(x<f||x>g){var _=[v,x];r.push(_)}}}return{boxData:n,outliers:r}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};var zK=["color","borderColor"],VK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){aD(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&GK(s,a))return;var l=jK(a,n,!0);DA(l,{shape:{points:a.ends}},t,n),WK(l,e,n,i),r.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&GK(s,c)?r.remove(u):(u?(AA(u,{shape:{points:c.ends}},t,a),LA(u)):u=jK(c),WK(u,e,a,i),r.add(u),e.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),XK(t,this.group);var e=t.get("clip",!0)?Zj(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,r=e.getData(),i=r.getLayout("isSimpleBox");null!=(n=t.next());){var o=jK(r.getItemLayout(n));WK(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){XK(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(JO),BK=function(){},FK=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return h(e,t),e.prototype.getDefaultShape=function(){return new BK},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(wC);function jK(t,e,n){var r=t.ends;return new FK({shape:{points:n?HK(r,t):r},z2:100})}function GK(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function WK(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,KI(t,i)}function HK(t,e){return Dv(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var UK=function(){},YK=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return h(e,t),e.prototype.getDefaultShape=function(){return new UK},e.prototype.buildPath=function(t,e){for(var n=e.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];t.moveTo(i,n[r++]),t.lineTo(i,n[r++])}else r+=3},e}(wC);function XK(t,e,n,r){var i=t.getData().getLayout("largePoints"),o=new YK({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var a=new YK({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(a);var s=new YK({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(s),$K(1,o,t),$K(-1,a,t),$K(0,s,t),r&&(o.incremental=!0,a.incremental=!0),n&&n.push(o,a)}function $K(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(i=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(zK);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var ZK=VK,qK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return h(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.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},e}(FO);Iv(qK,MK,!0);var KK=qK;function JK(t){t&&Pv(t.series)&&Av(t.series,(function(t){Fv(t)&&"k"===t.type&&(t.type="candlestick")}))}var QK=["itemStyle","borderColor"],tJ=["itemStyle","borderColor0"],eJ=["itemStyle","borderColorDoji"],nJ=["itemStyle","color"],rJ=["itemStyle","color0"],iJ={seriesType:"candlestick",plan:WO(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?nJ:rJ)}function r(t,e){return e.get(0===t?eJ:t>0?QK:tJ)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var i;null!=(i=t.next());){var o=e.getItemModel(i),a=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill,Sv(e.ensureUniqueItemVisual(i,"style"),s)}}}}},oJ=iJ,aJ={seriesType:"candlestick",plan:WO(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=function(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Nw($v(t.get("barMaxWidth"),i),i),a=Nw($v(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Nw(s,i):Math.max(Math.min(i/2,o),a)}(t,n),i=["x","y"],o=n.getDimensionIndex(n.mapDimension(i[0])),a=Dv(n.mapDimensionsAll(i[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,r){var i,a,h=Jz(4*n.count),p=0,d=[],f=[],g=r.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var v=g.get(o,a),m=g.get(s,a),x=g.get(l,a),_=g.get(u,a),b=g.get(c,a);isNaN(v)||isNaN(_)||isNaN(b)?(h[p++]=NaN,p+=3):(h[p++]=sJ(g,a,m,x,l,y),d[0]=v,d[1]=_,i=e.dataToPoint(d,null,f),h[p++]=i?i[0]:NaN,h[p++]=i?i[1]:NaN,d[1]=b,i=e.dataToPoint(d,null,f),h[p++]=i?i[1]:NaN)}r.setLayout("largePoints",h)}:function(t,n){var i,a=n.getStore();for(;null!=(i=t.next());){var h=a.get(o,i),p=a.get(s,i),d=a.get(l,i),f=a.get(u,i),g=a.get(c,i),y=Math.min(p,d),v=Math.max(p,d),m=M(y,h),x=M(v,h),_=M(f,h),b=M(g,h),w=[];C(w,x,0),C(w,m,1),w.push(T(b),T(x),T(_),T(m));var S=!!n.getItemModel(i).get(["itemStyle","borderColorDoji"]);n.setItemLayout(i,{sign:sJ(a,i,p,d,l,S),initBaseline:p>d?x[1]:m[1],ends:w,brushRect:I(f,g,h)})}function M(t,n){var r=[];return r[0]=n,r[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function C(t,e,n){var i=e.slice(),o=e.slice();i[0]=XA(i[0]+r/2,1,!1),o[0]=XA(o[0]-r/2,1,!0),n?t.push(i,o):t.push(o,i)}function I(t,e,n){var i=M(t,n),o=M(e,n);return i[0]-=r/2,o[0]-=r/2,{x:i[0],y:i[1],width:r,height:o[1]-i[1]}}function T(t){return t[0]=XA(t[0],1),t}}}}};function sJ(t,e,n,r,i,o){return n>r?-1:n<r?1:o?0:e>0?t.get(i,e-1)<=r?1:-1:1}var lJ=aJ;function uJ(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var cJ=function(t){function e(e,n){var r=t.call(this)||this,i=new kj(e,n),o=new Sw;return r.add(i),r.add(o),r.updateData(e,n),r}return h(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,i=this.childAt(1),o=0;o<r;o++){var a=aP(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(a)}uJ(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}uJ(n,t)},e.prototype.highlight=function(){OI(this)},e.prototype.downplay=function(){LI(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,r=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=sP(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");i.setScale(s),i.traverse((function(t){t.setStyle("fill",u)}));var h=lP(t.getItemVisual(e,"symbolOffset"),s);h&&(i.x=h[0],i.y=h[1]);var p=t.getItemVisual(e,"symbolRotate");i.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=r.get("showEffectOn"),d.rippleScale=o.get(["rippleEffect","scale"]),d.brushType=o.get(["rippleEffect","brushType"]),d.period=1e3*o.get(["rippleEffect","period"]),d.effectOffset=e/t.count(),d.z=r.getShallow("z")||0,d.zlevel=r.getShallow("zlevel")||0,d.symbolType=a,d.color=u,d.rippleEffectColor=o.get(["rippleEffect","color"]),d.rippleNumber=o.get(["rippleEffect","number"]),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===t&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,XI(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Sw),hJ=cJ,pJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(){this._symbolDraw=new Rj(hJ)},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(i.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var r=t.getData();this.group.dirty();var i=cG("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e,n,r=t.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=(e=r.getRoamTransform(),rx(n=[1,0,0,1,0,0],e),n),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(JO),dJ=pJ,fJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return h(e,t),e.prototype.getInitialData=function(t,e){return kz(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.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},e}(FO),gJ=fJ;var yJ=function(t){function e(e,n,r){var i=t.call(this)||this;return i.add(i.createLine(e,n,r)),i._updateEffectSymbol(e,n),i}return h(e,t),e.prototype.createLine=function(t,e,n){return new z$(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");Pv(r)||(r=[r,r]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),(s=aP(i,-.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=r[0],s.scaleY=r[1],s.setColor(a),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=Xv(e.get("delay"),(function(e){return e/t.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=Rv(u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));r||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return Mm(t.__p1,t.__cp1)+Mm(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=p_,l=d_;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=t.__t<1?l(e[0],r[0],n[0],i):l(n[0],r[0],e[0],1-i),c=t.__t<1?l(e[1],r[1],n[1],i):l(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*Mm(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*Mm(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(Sw),vJ=yJ,mJ=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return h(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new KT({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel;AA(this.childAt(0),{shape:{points:t.getItemLayout(e)}},r,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var r=this.childAt(0),i=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=i.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,XI(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(Sw),xJ=mJ,_J=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return h(e,t),e.prototype.createLine=function(t,e,n){return new xJ(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,i=1;i<e.length;i++){var o=e[i-1],a=e[i];r+=Mm(o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=e);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>e);o++);o=Math.min(o-1,i-2)}var s=(e-r[o])/(r[o+1]-r[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],h=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(h,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(vJ),bJ=_J,wJ=function(){this.polyline=!1,this.curveness=0,this.segs=[]},SJ=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return h(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new wJ},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){t.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)t.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,p=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,p,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],h=1;h<l;h++){if(eC(u,c,p=r[s++],d=r[s++],o,t,e))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++];var p=r[s++],d=r[s++];if(i>0){if(rC(u,c,(u+p)/2-(c-d)*i,(c+d)/2-(p-u)*i,p,d,o,t,e))return a}else if(eC(u,c,p,d,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return t=n[0],e=n[1],r.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(l,r),o=Math.max(l,o)}t=this._rect=new xx(n,r,i,o)}return t},e}(wC),MJ=function(){function t(){this.group=new Sw}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],r=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new SJ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=tI(t);o.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),CJ={seriesType:"lines",plan:WO(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,p=[];for(c=i.start;c<i.end;c++){var d=t.getLineCoords(c,a);n&&(s[h++]=d);for(var f=0;f<d;f++)p=e.dataToPoint(a[f],!1,p),s[h++]=p[0],s[h++]=p[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),y=(d=t.getLineCoords(c,a),[]);if(n)for(var v=0;v<d;v++)y.push(e.dataToPoint(a[v]));else{y[0]=e.dataToPoint(a[0]),y[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setItemLayout(c,y)}}}}"production"!==process.env.NODE_ENV&&iS("The lines series must have a coordinate system.")}},IJ=CJ,TJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l?"production"!==process.env.NODE_ENV&&console.warn("SVG render mode doesn't support lines with trail effect"):s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=t.get("clip",!0)&&Zj(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData();this._updateLineDraw(r,t).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=IJ.reset(t,e,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),i=!!e.get("polyline"),o=e.pipelineContext.large;return"production"!==process.env.NODE_ENV&&r&&o&&console.warn("Large lines not support effect"),n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new MJ:new V$(i?r?bJ:xJ:r?vJ:z$),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(JO),AJ=TJ,DJ="undefined"==typeof Uint32Array?Array:Uint32Array,EJ="undefined"==typeof Float64Array?Array:Float64Array;function kJ(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&("production"!==process.env.NODE_ENV&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),t.data=Dv(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),wv([e,t[0],t[1]])})))}var NJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return h(e,t),e.prototype.init=function(e){e.data=e.data||[],kJ(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(kJ(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=sm(this._flatCoords,e.flatCoords),this._flatCoordsOffset=sm(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.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},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Bv(t[0])){for(var n=t.length,r=new DJ(n),i=new EJ(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];r[a++]=o+e,r[a++]=u;for(var c=0;c<u;c++){var h=t[l++],p=t[l++];if(i[o++]=h,i[o++]=p,l>n&&"production"!==process.env.NODE_ENV)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){if("production"!==process.env.NODE_ENV&&!Ok.get(t.coordinateSystem))throw new Error("Unknown coordinate system "+t.coordinateSystem);var n=new wz(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,r,i){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().getItemModel(t),i=r.get("name");if(i)return i;var o=r.get("fromName"),a=r.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),yO("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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}},e}(FO),OJ=NJ;function LJ(t){return t instanceof Array||(t=[t,t]),t}var PJ={seriesType:"lines",reset:function(t){var e=LJ(t.get("symbol")),n=LJ(t.get("symbolSize")),r=t.getData();return r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(t,e){var n=t.getItemModel(e),r=LJ(n.getShallow("symbol",!0)),i=LJ(n.getShallow("symbolSize",!0));r[0]&&t.setItemVisual(e,"fromSymbol",r[0]),r[1]&&t.setItemVisual(e,"toSymbol",r[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}:null}}},RJ=PJ;var zJ=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=ov.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),p=t.length;c.width=e,c.height=n;for(var d=0;d<p;++d){var f=t[d],g=f[0],y=f[1],v=r(f[2]);h.globalAlpha=v,h.drawImage(a,g-u,y-u)}if(!c.width||!c.height)return c;for(var m=h.getImageData(0,0,c.width,c.height),x=m.data,_=0,b=x.length,w=this.minOpacity,S=this.maxOpacity-w;_<b;){v=x[_+3]/256;var M=4*Math.floor(255*v);if(v>0){var C=o(v)?s:l;v>0&&(v=v*S+w),x[_++]=C[M],x[_++]=C[M+1],x[_++]=C[M+2],x[_++]=C[M+3]*v*256}else _+=4}return h.putImageData(m,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=ov.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},t}(),VJ=zJ;function BJ(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var FJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){var r;if(e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),"production"!==process.env.NODE_ENV&&!r)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):BJ(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&(BJ(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){aD(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem,c=qj(u,"cartesian2d");if(c){var h=u.getAxis("x"),p=u.getAxis("y");if("production"!==process.env.NODE_ENV){if("category"!==h.type||"category"!==p.type)throw new Error("Heatmap on cartesian must have two category axes");if(!h.onBand||!p.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}o=h.getBandWidth()+.5,a=p.getBandWidth()+.5,s=h.scale.getExtent(),l=p.scale.getExtent()}for(var d=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),x=pD(t),_=t.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=n;C<r;C++){var I=void 0,T=f.getItemVisual(C,"style");if(c){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 E=u.dataToPoint([A,D]);I=new zC({shape:{x:E[0]-o/2,y:E[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(M[1],C)))continue;I=new zC({z2:1,shape:u.dataToRect([f.get(M[0],C)]).contentShape,style:T})}if(f.hasItemOption){var k=f.getItemModel(C),N=k.getModel("emphasis");g=N.getModel("itemStyle").getItemStyle(),y=k.getModel(["blur","itemStyle"]).getItemStyle(),v=k.getModel(["select","itemStyle"]).getItemStyle(),m=k.get(["itemStyle","borderRadius"]),b=N.get("focus"),w=N.get("blurScope"),S=N.get("disabled"),x=pD(k)}I.shape.r=m;var O=t.getRawValue(C),L="-";O&&null!=O[2]&&(L=O[2]+""),hD(I,x,{labelFetcher:t,labelDataIndex:C,defaultOpacity:T.opacity,defaultText:L}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=y,I.ensureState("select").style=v,XI(I,b,w,S),I.incremental=i,i&&(I.states.emphasis.hoverLayer=!0),d.add(I),f.setItemGraphicEl(C,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new VJ;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),p=Math.min(l.width+l.x,r.getWidth()),d=Math.min(l.height+l.y,r.getHeight()),f=p-c,g=d-h,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=c,i[1]-=h,i.push(r),i})),m=n.getExtent(),x="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(m,n.option.range):function(t,e,n){var r=t[1]-t[0],i=(e=Dv(e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}))).length,o=0;return function(t){var r;for(r=o;r<i;r++)if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}if(r===i)for(r=o-1;r>=0;r--){var a;if((a=e[r].interval)[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}(m,n.getPieceList(),n.option.selected);s.update(v,f,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new DC({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(JO),jJ=FJ,GJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.getInitialData=function(t,e){return kz(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Ok.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(FO);var WJ=["itemStyle","borderWidth"],HJ=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UJ=new MT,YJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:HJ[+s],categoryDim:HJ[1-+s]};i.diff(o).add((function(t){if(i.hasValue(t)){var e=tQ(i,t),n=XJ(i,t,e,u),o=rQ(i,u,n);i.setItemGraphicEl(t,o),r.add(o),lQ(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=tQ(i,t),s=XJ(i,t,a,u),l=oQ(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;AA(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?qJ(t,e,n,!0):KJ(t,e,n,!0);JJ(t,n,!0),QJ(t,e,n,!0)}(n,u,s):n=rQ(i,u,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),lQ(n,u,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&iQ(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var c=t.get("clip",!0)?Zj(t.coordinateSystem,!1,t):null;return c?r.setClipPath(c):r.removeClipPath(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl((function(e){iQ(r,tI(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(JO);function XJ(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),h={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,r,i){var o,a=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(Pv(s)){var h=[$J(l,s[0])-u,$J(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?$J(l,s)-u:e?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,e&&(i.repeatCutLength=n[a.wh]);i.pxSign=o>0?1:-1}(n,o,i,r,h),function(t,e,n,r,i,o,a,s,l,u){var c,h=l.valueDim,p=l.categoryDim,d=Math.abs(n[p.wh]),f=t.getItemVisual(e,"symbolSize");c=Pv(f)?f.slice():null==f?["100%","100%"]:[f,f];c[p.index]=Nw(c[p.index],d),c[h.index]=Nw(c[h.index],r?d:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,i,o,0,h.boundingLength,h.pxSign,u,r,h),function(t,e,n,r,i){var o=t.get(WJ)||0;o&&(UJ.attr({scaleX:e[0],scaleY:e[1],rotation:n}),UJ.updateTransform(),o/=UJ.getLineScale(),o*=e[r.valueDim.index]);i.valueLineWidth=o||0}(n,h.symbolScale,l,r,h);var p=h.symbolSize,d=lP(n.get("symbolOffset"),p);return function(t,e,n,r,i,o,a,s,l,u,c,h){var p=c.categoryDim,d=c.valueDim,f=h.pxSign,g=Math.max(e[d.index]+s,0),y=g;if(r){var v=Math.abs(l),m=Xv(t.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=Nw(m,e[d.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=Zw(r),M=S?r:uQ((v+w)/b);b=g+2*(_=(v-M*g)/2/(x?M:Math.max(M-1,1))),w=x?0:2*_,S||"fixed"===r||(M=u?uQ((Math.abs(u)+w)/b):0),y=M*b-w,h.repeatTimes=M,h.symbolMargin=_}var C=f*(y/2),I=h.pathPosition=[];I[p.index]=n[p.wh]/2,I[d.index]="start"===a?C:"end"===a?l-C:l/2,o&&(I[0]+=o[0],I[1]+=o[1]);var T=h.bundlePosition=[];T[p.index]=n[p.xy],T[d.index]=n[d.xy];var A=h.barRectShape=Sv({},n);A[d.wh]=f*Math.max(Math.abs(n[d.wh]),Math.abs(I[d.index]+C)),A[p.wh]=n[p.wh];var D=h.clipShape={};D[p.xy]=-n[p.xy],D[p.wh]=c.ecSize[p.wh],D[d.xy]=0,D[d.wh]=n[d.wh]}(n,p,i,o,0,d,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function $J(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function ZJ(t){var e=t.symbolPatternSize,n=aP(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function qJ(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(aQ(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?sQ(t,null,f(c),n,r):sQ(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var p=ZJ(n);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,i.add(p);var d=f(c);sQ(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},n,r)}function f(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function KJ(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?sQ(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=ZJ(n),i.add(o),sQ(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function JJ(t,e,n){var r=Sv({},e.barRectShape),i=t.__pictorialBarRect;i?sQ(i,null,{shape:r},e,n):((i=t.__pictorialBarRect=new zC({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(i))}function QJ(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=Sv({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(i)AA(i,{shape:o},s,l);else{o[a.wh]=0,i=new zC({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[a.wh]=n.clipShape[a.wh],sD[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function tQ(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=eQ,n.isAnimationEnabled=nQ,n}function eQ(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function nQ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function rQ(t,e,n,r){var i=new Sw,o=new Sw;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?qJ(i,e,n):KJ(i,0,n),JJ(i,n,r),QJ(i,e,n,r),i.__pictorialShapeStr=oQ(t,n),i.__pictorialSymbolMeta=n,i}function iQ(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];aQ(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Av(o,(function(t){kA(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function oQ(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aQ(t,e,n){Av(t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function sQ(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&sD[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function lQ(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),p=o.get("scale");aQ(t,(function(t){if(t instanceof DC){var e=t.style;t.useStyle(Sv({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=a,p&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var d=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,hD(f,pD(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Dj(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),XI(t,c,h,o.get("disabled"))}function uQ(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var cQ=YJ,hQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return h(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=FD(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"}}}),e}(fG);var pQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return h(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this,o=this.group,a=t.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new JR(this._layersSeries||[],a,c,c),p=[];function d(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],d=[],f=a[n].indices,g=0;g<f.length;g++){var y=r.getItemLayout(f[g]),v=y.x,m=y.y0,x=y.y;h.push(v,m),d.push(v,m+x),u=r.getItemVisual(f[g],"style")}var _=r.getItemLayout(f[0]),b=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=p[n]=new Sw;c=new Yj({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),t.isAnimationEnabled()&&c.setClipPath(function(t,e,n){var r=new zC({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return DA(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),o.add(S),p[n]=S,AA(c,{shape:{points:h,stackedOnPoints:d}},t),LA(c)}hD(c,pD(t),{labelDataIndex:f[g-1],defaultText:r.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var M=c.getTextContent();M&&(M.x=_.x-b,M.y=_.y0+_.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),KI(c,t),XI(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}h.add(Ov(d,this,"add")).update(Ov(d,this,"update")).remove(Ov(d,this,"remove")).execute(),this._layersSeries=a,this._layers=p},e.type="themeRiver",e}(JO);var dQ=pQ,fQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rW(Ov(this.getData,this),Ov(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=LS(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),i=[];r.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,l=0;l<i[a].dataList.length;++l){var u=i[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",ES).models[0].get("type"),r=kv(t.data,(function(t){return void 0!==t[2]})),i=this.fixData(r||[]),o=[],a=this.nameMap=am(),s=0,l=0;l<i.length;++l)o.push(i[l][2]),a.get(i[l][2])||(a.set(i[l][2],s),s++);var u=Sz(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:ez(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new wz(u,this);return c.initData(i),c},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],r=0;r<e;++r)n[r]=r;var i=t.mapDimension("single"),o=LS(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(i,e)-t.get(i,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){Pv(t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,p=0;p<h;++p){var d=i.get(t[0],o[l].indices[p]),f=Math.abs(d-e);f<=u&&(r=d,u=f,c=o[l].indices[p])}a.push(c)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData();return yO("nameValue",{name:r.getName(t),value:r.get(r.mapDimension("value"),t)})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.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}}},e}(FO),gQ=fQ;function yQ(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=t.get("boundaryGap"),a=n.getAxis();(r.boundaryGap=o,"horizontal"===a.orient)?(o[0]=Nw(o[0],i.height),o[1]=Nw(o[1],i.height),vQ(e,t,i.height-o[0]-o[1])):(o[0]=Nw(o[0],i.width),o[1]=Nw(o[1],i.width),vQ(e,t,i.width-o[0]-o[1]));e.setLayout("layoutInfo",r)}))}function vQ(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=Dv(o,(function(e){return Dv(e.indices,(function(e){var n=i.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=function(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>o&&(o=h)}return{y0:i,max:o}}(l),c=u.y0,h=n/u.max,p=o.length,d=o[0].indices.length,f=0;f<d;++f){r=c[f]*h,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:r,y:l[0][f][1]*h});for(var g=1;g<p;++g)r+=l[g-1][f][1]*h,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:r,y:l[g][f][1]*h})}}var mQ=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},tI(o).seriesIndex=n.seriesIndex;var a=new QC({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return h(e,t),e.prototype.updateData=function(t,e,n,r,i){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;tI(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=Sv({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=zP(h,i));var p=bG(a.getModel("itemStyle"),u,!0);Sv(u,p),Av(uI,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=bG(n,u);r&&(e.shape=r)})),t?(o.setShape(u),o.shape.r=l.r0,DA(o,{shape:{r:l.r}},n,e.dataIndex)):(AA(o,{shape:u},n),LA(o)),o.useStyle(c),this._updateLabel(n);var d=a.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var f=s.get("focus");XI(this,"ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,p=r.get("minAngle")/180*Math.PI,d=r.get("show")&&!(null!=p&&Math.abs(o)<p);function f(t,e){var n=t.get(e);return null==n?r.get(e):n}c.ignore=!d,Av(cI,(function(r){var p="normal"===r?n.getModel("label"):n.getModel([r,"label"]),d="normal"===r,g=d?c:c.ensureState(r),y=t.getFormattedLabel(h,r);d&&(y=y||e.node.name),g.style=dD(p,{},null,"normal"!==r,!0),y&&(g.style.text=y);var v=p.get("show");null==v||d||(g.ignore=!v);var m,x=f(p,"position"),_=d?u:u.states[r],b=_.style.fill;_.textConfig={outsideFill:"inherit"===p.get("color")?b:null,inside:"outside"!==x};var w=f(p,"distance")||0,S=f(p,"align"),M=f(p,"rotate"),C=.5*Math.PI,I=1.5*Math.PI,T=oC("tangential"===M?Math.PI/2-a:a),A=T>C&&!jw(T-C)&&T<I;"outside"===x?(m=i.r+w,S=A?"right":"left"):S&&"center"!==S?"left"===S?(m=i.r0+w,S=A?"right":"left"):"right"===S&&(m=i.r-w,S=A?"left":"right"):(m=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(p,"verticalAlign")||"middle",g.x=m*s+i.cx,g.y=m*l+i.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):Bv(M)&&(D=M*Math.PI/180),g.rotation=oC(D)})),c.dirtyStyle()},e}(WT),xQ="sunburstRootToNode",_Q="sunburstHighlight",bQ="sunburstUnhighlight";var wQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n,r){var i=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(t){return t.getId()}function c(s,c){!function(r,i){u||!r||r.getValue()||(r=null);if(r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),o.setItemGraphicEl(r.dataIndex,i.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(i);else if(r){var s=new mQ(r,t,e,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==c?null:i[c])}new JR(i,r,s,s).add(c).update(c).remove(Lv(c,null)).execute()}(c,h),function(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new mQ(r,t,e,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a)OE(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:xQ,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var r=t[0]-n.cx,i=t[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(JO),SQ=wQ,MQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return h(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};CQ(n);var r=this._levelModels=Dv(t.levels||[],(function(t){return new zD(t,this,e)}),this),i=BY.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e),o=r[n.depth];return o&&(t.parentModel=o),t}))}));return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=WY(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){qY(this)},e.type="series.sunburst",e.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"},e}(FO);function CQ(t){var e=0;Av(t.children,(function(t){CQ(t);var n=t.value;Pv(n)&&(n=n[0]),e+=n}));var n=t.value;Pv(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Pv(t.value)?t.value[0]=n:t.value=n}var IQ=MQ,TQ=Math.PI/180;function AQ(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),r=t.get("radius");Pv(r)||(r=[0,r]),Pv(e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Nw(e[0],i),l=Nw(e[1],o),u=Nw(r[0],a/2),c=Nw(r[1],a/2),h=-t.get("startAngle")*TQ,p=t.get("minAngle")*TQ,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&DQ(f,y);var v=0;Av(f.children,(function(t){!isNaN(t.getValue())&&v++}));var m=f.getValue(),x=Math.PI/(m||v)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(c-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),C=S?1:-1,I=function(e,n){if(e){var r=n;if(e!==d){var i=e.getValue(),o=0===m&&M?x:i*x;o<p&&(o=p),r=n+C*o;var c=e.depth-g-(_?-1:1),h=u+w*c,f=u+w*(c+1),y=t.getLevelModel(e);if(y){var v=y.get("r0",!0),b=y.get("r",!0),T=y.get("radius",!0);null!=T&&(v=T[0],b=T[1]),null!=v&&(h=Nw(v,a/2)),null!=b&&(f=Nw(b,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:S,cx:s,cy:l,r0:h,r:f})}if(e.children&&e.children.length){var A=0;Av(e.children,(function(t){A+=I(t,n+A)}))}return r-n}};if(_){var T=u,A=u+w,D=2*Math.PI;d.setLayout({angle:D,startAngle:h,endAngle:h+D,clockwise:S,cx:s,cy:l,r0:T,r:A})}I(f,h)}))}function DQ(t,e){var n=t.children||[];t.children=function(t,e){if(Rv(e)){var n=Dv(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),Dv(n,(function(e){return t[e.index]}))}var r="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(r?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(r?-1:1):n}))}(n,e),n.length&&Av(t.children,(function(t){DQ(t,e)}))}function EQ(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),r=n.tree;r.eachNode((function(i){var o=i.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,r){for(var i=t;i&&i.depth>1;)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&zv(o)&&(o=V_(o,(t.depth-1)/(r-1)*.5)),o}(i,t,r.root.height)),Sv(n.ensureUniqueItemVisual(i.dataIndex,"style"),o)}))}))}var kQ={color:"fill",borderColor:"stroke"},NQ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},OQ=IS(),LQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return kz(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=OQ(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(FO);function PQ(t,e){return e=e||[0,0],Dv(["x","y"],(function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function RQ(t,e){return e=e||[0,0],Dv([0,1],(function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function zQ(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function VQ(t,e){return e=e||[0,0],Dv(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=e[r],a=t[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}var BQ={};function FQ(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||cm(t,"text")))}function jQ(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},cm(a,"text")&&(o.text=a.text),cm(a,"rich")&&(o.rich=a.rich),cm(a,"textFill")&&(o.fill=a.textFill),cm(a,"textStroke")&&(o.stroke=a.textStroke),cm(a,"fontFamily")&&(o.fontFamily=a.fontFamily),cm(a,"fontSize")&&(o.fontSize=a.fontSize),cm(a,"fontStyle")&&(o.fontStyle=a.fontStyle),cm(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=cm(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),cm(a,"textPosition")&&(r.position=a.textPosition),cm(a,"textOffset")&&(r.offset=a.textOffset),cm(a,"textRotation")&&(r.rotation=a.textRotation),cm(a,"textDistance")&&(r.distance=a.textDistance)}return GQ(o,t),Av(o.rich,(function(t){GQ(t,t)})),{textConfig:r,textContent:i}}function GQ(t,e){e&&(e.font=e.textFont||e.font,cm(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),cm(e,"textAlign")&&(t.align=e.textAlign),cm(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),cm(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),cm(e,"textWidth")&&(t.width=e.textWidth),cm(e,"textHeight")&&(t.height=e.textHeight),cm(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),cm(e,"textPadding")&&(t.padding=e.textPadding),cm(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),cm(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),cm(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),cm(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),cm(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),cm(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),cm(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function WQ(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";HQ(r,e);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,Av(e.rich,(function(t){HQ(t,t)})),r}function HQ(t,e){e&&(cm(e,"fill")&&(t.textFill=e.fill),cm(e,"stroke")&&(t.textStroke=e.fill),cm(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),cm(e,"font")&&(t.font=e.font),cm(e,"fontStyle")&&(t.fontStyle=e.fontStyle),cm(e,"fontWeight")&&(t.fontWeight=e.fontWeight),cm(e,"fontSize")&&(t.fontSize=e.fontSize),cm(e,"fontFamily")&&(t.fontFamily=e.fontFamily),cm(e,"align")&&(t.textAlign=e.align),cm(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),cm(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),cm(e,"width")&&(t.textWidth=e.width),cm(e,"height")&&(t.textHeight=e.height),cm(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),cm(e,"padding")&&(t.textPadding=e.padding),cm(e,"borderColor")&&(t.textBorderColor=e.borderColor),cm(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),cm(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),cm(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),cm(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),cm(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),cm(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),cm(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),cm(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),cm(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),cm(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function UQ(t,e){if("production"!==process.env.NODE_ENV){var n=t+"^_^"+e;BQ[n]||(console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),BQ[n]=!0)}}var YQ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},XQ=Nv(YQ),$Q=Ev(ew,(function(t,e){return t[e]=1,t}),{}),ZQ=ew.join(", "),qQ=["","style","shape","extra"],KQ=IS();function JQ(t,e,n,r,i){var o=t+"Animation",a=IA(t,r,i)||{},s=KQ(e).userDuring;return a.duration>0&&(a.during=s?Ov(s0,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Sv(a,n[o]),a}function QQ(t,e,n,r){var i=(r=r||{}).dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=KQ(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var r=0;r<XQ.length;r++){var i=XQ[r],o=YQ[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<ew.length;r++){var s=ew[r];null!=e[s]&&(n[s]=e[s])}}(0,e,h),u0("shape",e,h),u0("extra",e,h),!o&&s&&(function(t,e,n){for(var r=e.transition,i=n0(r)?ew:pS(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];"production"!==process.env.NODE_ENV&&r0(a,"el.transition"),n[a]=s}}}(t,e,c),l0("shape",t,e,c),l0("extra",t,e,c),function(t,e,n,r){if(!n)return;var i,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!n0(a)){var l=pS(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=o[f=l[u]];i[f]=c}}else if(t.getAnimationStyleProps&&(n0(s)||n0(a)||Cv(s,"style")>=0)){var h=t.getAnimationStyleProps(),p=h?h.style:null;if(p){!i&&(i=r.style={});var d=Nv(n);for(u=0;u<d.length;u++){var f;if(p[f=d[u]]){c=o[f];i[f]=c}}}}}}(t,e,u,c)),h.style=u,function(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}(t,h,a),function(t,e){cm(e,"silent")&&(t.silent=e.silent),cm(e,"ignore")&&(t.ignore=e.ignore),t instanceof _M&&cm(e,"invisible")&&(t.invisible=e.invisible);t instanceof wC&&cm(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var p={};Av(qQ,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(p[t]=p[t]||{}),Sv(t?p[t]:p,n.enterFrom))}));var d=JQ("enter",t,e,n,i);d.duration>0&&t.animateFrom(p,d)}else!function(t,e,n,r,i){if(i){var o=JQ("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}(t,e,i||0,n,c);t0(t,e),u?t.dirty():t.markRedraw()}function t0(t,e){for(var n=KQ(t).leaveToProps,r=0;r<qQ.length;r++){var i=qQ[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=KQ(t).leaveToProps={}),i&&(n[i]=n[i]||{}),Sv(i?n[i]:n,o.leaveTo))}}function e0(t,e,n,r){if(t){var i=t.parent,o=KQ(t).leaveToProps;if(o){var a=JQ("update",t,e,n,0);a.done=function(){i.remove(t),r&&r()},t.animateTo(o,a)}else i.remove(t),r&&r()}}function n0(t){return"all"===t}var r0,i0={},o0={setTransform:function(t,e){return"production"!==process.env.NODE_ENV&&Jv(cm($Q,t),"Only "+ZQ+" available in `setTransform`."),i0.el[t]=e,this},getTransform:function(t){return"production"!==process.env.NODE_ENV&&Jv(cm($Q,t),"Only "+ZQ+" available in `getTransform`."),i0.el[t]},setShape:function(t,e){"production"!==process.env.NODE_ENV&&a0(t);var n=i0.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){"production"!==process.env.NODE_ENV&&a0(t);var e=i0.el.shape;if(e)return e[t]},setStyle:function(t,e){"production"!==process.env.NODE_ENV&&a0(t);var n=i0.el,r=n.style;return r&&("production"!==process.env.NODE_ENV&&Yv(e)&&rS("style."+t+" must not be assigned with NaN."),r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){"production"!==process.env.NODE_ENV&&a0(t);var e=i0.el.style;if(e)return e[t]},setExtra:function(t,e){return"production"!==process.env.NODE_ENV&&a0(t),(i0.el.extra||(i0.el.extra={}))[t]=e,this},getExtra:function(t){"production"!==process.env.NODE_ENV&&a0(t);var e=i0.el.extra;if(e)return e[t]}};function a0(t){if("production"!==process.env.NODE_ENV&&("transition"===t||"enterFrom"===t||"leaveTo"===t))throw new Error('key must not be "'+t+'"')}function s0(){var t=this,e=t.el;if(e){var n=KQ(e).userDuring,r=t.userDuring;n===r?(i0.el=e,r(o0)):t.el=t.userDuring=null}}function l0(t,e,n,r){var i=n[t];if(i){var o,a=e[t];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[t]={}),n0(l))Sv(o,a);else for(var u=pS(l),c=0;c<u.length;c++){var h=a[d=u[c]];o[d]=h}else if(n0(s)||Cv(s,t)>=0){!o&&(o=r[t]={});var p=Nv(a);for(c=0;c<p.length;c++){var d;h=a[d=p[c]];c0(i[d],h)&&(o[d]=h)}}}}}function u0(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=Nv(r),a=0;a<o.length;a++){var s=o[a];i[s]=gb(r[s])}}function c0(t,e){return Tv(t)?t!==e:null!=t&&isFinite(t)}"production"!==process.env.NODE_ENV&&(r0=function(t,e){cm($Q,t)||rS("Prop `"+t+"` is not a permitted in `"+e+"`. Only `"+Nv($Q).join("`, `")+"` are permitted.")});var h0=IS(),p0=["percent","easing","shape","style","extra"];function d0(t){t.stopAnimation("keyframe"),t.attr(h0(t))}function f0(t,e,n){if(n.isAnimationEnabled()&&e)if(Pv(e))Av(e,(function(e){f0(t,e,n)}));else{var r=e.keyframes,i=e.duration;if(n&&null==i){var o=IA("enter",n,0);i=o&&o.duration}if(r&&i){var a=h0(t);Av(qQ,(function(n){if(!n||t[n]){var o,s=!1;r.sort((function(t,e){return t.percent-e.percent})),Av(r,(function(r){var l=t.animators,u=n?r[n]:r;if("production"!==process.env.NODE_ENV&&r.percent>=1&&(s=!0),u){var c=Nv(u);if(n||(c=kv(c,(function(t){return Cv(p0,t)<0}))),c.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var h=0;h<l.length;h++)l[h]!==o&&l[h].targetName===o.targetName&&l[h].stopTracks(c);n&&(a[n]=a[n]||{});var p=n?a[n]:a;Av(c,(function(e){p[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(i*r.percent,u,c,r.easing)}}})),o&&("production"!==process.env.NODE_ENV&&(s||rS("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),o.delay(e.delay||0).duration(i).start(e.easing))}}))}}}var g0="emphasis",y0="normal",v0="blur",m0="select",x0=[y0,g0,v0,m0],_0={normal:["itemStyle"],emphasis:[g0,"itemStyle"],blur:[v0,"itemStyle"],select:[m0,"itemStyle"]},b0={normal:["label"],emphasis:[g0,"label"],blur:[v0,"label"],select:[m0,"label"]},w0=["x","y"],S0="e\0\0",M0={normal:{},emphasis:{},blur:{},select:{}},C0={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Ov(PQ,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:Ov(RQ,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Ov(zQ,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=t.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:Ov(VQ,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function I0(t){return t instanceof wC}function T0(t){return t instanceof _M}var A0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,o=t.getData(),a=this.group,s=L0(t,o,e,n);i||a.removeAll(),o.diff(i).add((function(e){R0(n,null,e,s(e,r),t,a,o)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&e0(n,OQ(n).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);R0(n,u,e,s(e,r),t,a,o)})).execute();var l=t.get("clip",!0)?Zj(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,r,i){var o=e.getData(),a=L0(e,o,n,r),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=R0(null,null,u,a(u,i),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){aD(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},e.type="custom",e}(JO),D0=A0;function E0(t){var e,n=t.type;if("path"===n){var r=t.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=Y0(r);e=jA(o,null,i,r.layout||"center"),OQ(e).customPathData=o}else if("image"===n)e=new DC({}),OQ(e).customImagePath=t.style.image;else if("text"===n)e=new QC({});else if("group"===n)e=new Sw;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=FA(n);if(!a){var s="";"production"!==process.env.NODE_ENV&&(s='graphic type "'+n+'" can not be found.'),lS(s)}e=new a}return OQ(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function k0(t,e,n,r,i,o,a){d0(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&null==r.transition&&(r.transition=w0);var l=r&&r.style;if(l){if("text"===e.type){var u=l;cm(u,"textFill")&&(u.fill=u.textFill),cm(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=I0(e)?l.decal:null;t&&h&&(h.dirty=!0,c=zP(h,t)),l.__decalPattern=c}T0(e)&&(l&&(c=l.__decalPattern)&&(l.decal=c));QQ(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),f0(e,r.keyframeAnimation,o)}function N0(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(!1===r){var l=o.getState(t);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),EI(o)}}function O0(t,e,n){var r=n===y0,i=r?e:F0(e,n),o=i?i.z2:null;null!=o&&((r?t:t.ensureState(n)).z2=o||0)}function L0(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&("production"!==process.env.NODE_ENV&&(Jv(i,"series.render is required."),Jv(o.prepareCustoms||C0[o.type],"This coordSys does not support custom series.")),a=o.prepareCustoms?o.prepareCustoms(o):C0[o.type](o));for(var s,l,u=Mv({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,r){"production"!==process.env.NODE_ENV&&UQ("api.style","Please write literal style directly instead.");null==r&&(r=s);var i=e.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=m(r,y0).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:zv(o)?o:"#000"},c=x(r,y0),h=dD(c,null,u,!1,!0);h.text=c.getShallow("show")?$v(t.getFormattedLabel(r,y0),Dj(e,r)):null;var p=fD(c,u,!1);return b(n,l),l=WQ(l,h,p),n&&_(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var r=e.getDimensionInfo(t);if(!r){var i=e.getDimensionIndex(t);return i>=0?e.getStore().get(i,n):void 0}var o=e.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,r){"production"!==process.env.NODE_ENV&&UQ("api.styleEmphasis","Please write literal style directly instead.");null==r&&(r=s);var i=m(r,g0).getItemStyle(),o=x(r,g0),a=dD(o,null,null,!0,!0);a.text=o.getShallow("show")?Zv(t.getFormattedLabel(r,g0),t.getFormattedLabel(r,y0),Dj(e,r)):null;var l=fD(o,null,!0);return b(n,i),i=WQ(i,a,l),n&&_(i,n),i.legacy=!0,i},visual:function(t,n){if(null==n&&(n=s),cm(kQ,t)){var r=e.getItemVisual(n,"style");return r?r[kQ[t]]:null}if(cm(NQ,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){return function(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(Mv({bandWidth:i,axisKey:r,stackId:Qz+o},t));var a=iV(e),s=[];for(o=0;o<t.count;o++){var l=a[r][Qz+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(Mv({axis:o.getBaseAxis()},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return xD(t,n)}},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:P0(t.getData())},h={},p={},d={},f={},g=0;g<x0.length;g++){var y=x0[g];d[y]=t.getModel(_0[y]),f[y]=t.getModel(b0[y])}function v(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function m(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=v(t).getModel(_0[n])):v(t).getModel(_0[n]):d[n]}function x(t,n){return e.hasItemOption?t===s?p[n]||(p[n]=v(t).getModel(b0[n])):v(t).getModel(b0[n]):f[n]}return function(t,n){return s=t,l=null,h={},p={},i&&i(Mv({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function _(t,e){for(var n in e)cm(e,n)&&(t[n]=e[n])}function b(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function P0(t){var e={};return Av(t.dimensions,(function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(e[i]=e[i]||[])[r.coordDimIndex]=t.getDimensionIndex(n)}})),e}function R0(t,e,n,r,i,o,a){if(r){var s=z0(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&XI(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function z0(t,e,n,r,i,o){"production"!==process.env.NODE_ENV&&Jv(r,"should not have an null/undefined element setting");var a=-1,s=e;e&&V0(e,r,i)&&(a=Cv(o.childrenRef(),e),e=null);var l,u,c=!e,h=e;h?h.clearStates():(h=E0(r),s&&(l=s,(u=h).copyTransform(l),T0(u)&&T0(l)&&(u.setStyle(l.style),u.z=l.z,u.z2=l.z2,u.zlevel=l.zlevel,u.invisible=l.invisible,u.ignore=l.ignore,I0(u)&&I0(l)&&u.setShape(l.shape)))),!1===r.morph?h.disableMorphing=!0:h.disableMorphing&&(h.disableMorphing=!1),M0.normal.cfg=M0.normal.conOpt=M0.emphasis.cfg=M0.emphasis.conOpt=M0.blur.cfg=M0.blur.conOpt=M0.select.cfg=M0.select.conOpt=null,M0.isLegacy=!1,function(t,e,n,r,i,o){if(t.isGroup)return;B0(n,null,o),B0(n,g0,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=E0(a),t.setTextContent(c)),k0(null,c,e,a,null,r,i);for(var h=a&&a.style,p=0;p<x0.length;p++){var d=x0[p];if(d!==y0){var f=o[d].conOpt;N0(d,c,0,j0(a,f,d),null)}}h?c.dirty():c.markRedraw()}}}(h,n,r,i,c,M0),function(t,e,n,r,i){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&V0(a,o,r)&&(a=null),a||(a=E0(o),"production"!==process.env.NODE_ENV&&Jv(I0(a),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),t.setClipPath(a)),k0(null,a,e,o,null,r,i)}}(h,n,r,i,c),k0(t,h,n,r,M0,i,c),cm(r,"info")&&(OQ(h).info=r.info);for(var p=0;p<x0.length;p++){var d=x0[p];if(d!==y0){var f=F0(r,d);N0(d,h,0,j0(r,f,d),M0)}}return function(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;null!=a&&(r.z2=a||0);for(var s=0;s<x0.length;s++)O0(r,e,x0[s])}}(h,r,i),"group"===r.type&&function(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(!a&&!l&&!u)return;if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e},void new JR(c.oldChildren,c.newChildren,W0,W0,c).add(H0).update(H0).remove(U0).execute();var c;u&&e.removeAll();for(var h=0;h<a;h++){var p=o[h],d=e.childAt(h);p?(null==p.ignore&&(p.ignore=!1),z0(t,d,n,p,i,e)):("production"!==process.env.NODE_ENV&&Jv(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var f=e.childCount()-1;f>=h;f--){var g=e.childAt(f);G0(e,g,i)}}(t,h,n,r,i),a>=0?o.replaceAt(h,a):o.add(h),h}function V0(t,e,n){var r,i=OQ(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&((r=a)&&(cm(r,"pathData")||cm(r,"d")))&&Y0(a)!==i.customPathData||"image"===o&&cm(s,"image")&&s.image!==i.customImagePath}function B0(t,e,n){var r=e?F0(t,e):t,i=e?j0(t,r,g0):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?F0(s,e):s:null;if(i&&(n.isLegacy||FQ(i,o,!!a,!!l))){n.isLegacy=!0;var u=jQ(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),"production"!==process.env.NODE_ENV&&Jv("text"===c.type,'textContent.type must be "text"')}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function F0(t,e){return e?t?t[e]:null:t}function j0(t,e,n){var r=e&&e.style;return null==r&&n===g0&&t&&(r=t.styleEmphasis),r}function G0(t,e,n){e&&e0(e,OQ(t).option,n)}function W0(t,e){var n=t&&t.name;return null!=n?n:S0+e}function H0(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;z0(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function U0(t){var e=this.context,n=e.oldChildren[t];n&&e0(n,OQ(n).option,e.seriesModel)}function Y0(t){return t&&(t.pathData||t.d)}var X0=IS(),$0=_v,Z0=Ov,q0=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=Lv(K0,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Sw,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);e1(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=$W(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=X0(t).pointerEl=new sD[i.type]($0(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=X0(t).labelEl=new QC($0(e.label));t.add(i),Q0(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=X0(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=X0(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),Q0(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=tD(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Km(t.event)},onmousedown:Z0(this._onHandleDragMove,this,0,0),drift:Z0(this._onHandleDragMove,this),ondragend:Z0(this._onHandleDragEnd,this)}),r.add(i)),e1(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Pv(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,rL(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){K0(this._axisPointerModel,!e&&this._moveAnimation,this._handle,t1(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(t1(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(t1(r)),X0(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),iL(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function K0(t,e,n,r){J0(X0(n).lastProp,r)||(X0(n).lastProp=r,e?AA(n,r,t):(n.stopAnimation(),n.attr(r)))}function J0(t,e){if(Fv(t)&&Fv(e)){var n=!0;return Av(e,(function(e,r){n=n&&J0(t[r],e)})),!!n}return t===e}function Q0(t,e){t[e.get(["label","show"])?"show":"hide"]()}function t1(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function e1(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var n1=q0;function r1(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}function i1(t,e,n,r,i){var o=o1(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=TE(a.get("padding")||0),l=a.getFont(),u=aw(o,l),c=i.position,h=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=i.align;"right"===d&&(c[0]-=h),"center"===d&&(c[0]-=h/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=p),"middle"===f&&(c[1]-=p/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,p,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:dD(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function o1(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:VV(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Av(r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),zv(a)?o=a.replace("{value}",o):Rv(a)&&(o=a(s))}return o}function a1(t,e,n){var r=[1,0,0,1,0,0];return ax(r,r,n.rotation),ox(r,r,n.position),ZA([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function s1(t,e,n,r,i,o){var a=FW.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),i1(e,r,i,o,{position:a1(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function l1(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function u1(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function c1(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var h1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=p1(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=r1(r),h=d1[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}s1(e,t,DW(a.model,n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=DW(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=a1(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=p1(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(n1);function p1(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var d1={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:l1([e,n[0]],[e,n[1]],f1(t))}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:u1([e-r/2,n[0]],[r,i],f1(t))}}};function f1(t){return"x"===t.dim?0:1}var g1=h1,y1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="axisPointer",e.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}},e}(XE),v1=IS(),m1=Av;function x1(t,e,n){if(!Jy.node){var r=e.getZr();v1(r).records||(v1(r).records={}),function(t,e){if(v1(t).initialized)return;function n(n,r){t.on(n,(function(n){var i=function(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}(e);m1(v1(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),function(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(i.pendings,e)}))}v1(t).initialized=!0,n("click",Lv(b1,"click")),n("mousemove",Lv(b1,"mousemove")),n("globalout",_1)}(r,e),(v1(r).records[t]||(v1(r).records[t]={})).handler=n}}function _1(t,e,n){t.handler("leave",null,n)}function b1(t,e,n,r){e.handler(t,n,r)}function w1(t,e){if(!Jy.node){var n=e.getZr();(v1(n).records||{})[t]&&(v1(n).records[t]=null)}}var S1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";x1("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){w1("axisPointer",e)},e.prototype.dispose=function(t,e){w1("axisPointer",e)},e.type="axisPointer",e}(GO),M1=S1;function C1(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=CS(o,t);if(null==a||a<0||Pv(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,p="x"===c||"radius"===c?1:0,d=o.mapDimension(h),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(f)||[]}else r=l.dataToPoint(o.getValues(Dv(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var I1=IS();function T1(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Ov(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){N1(i)&&(i=C1({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=N1(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||N1(i),p={},d={},f={list:[],map:{}},g={showPointer:Lv(D1,d),showTooltip:Lv(E1,f)};Av(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Av(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&A1(t,a,g,!1,p)}}))}));var y={};return Av(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Av(n.axesInfo,(function(e,r){var i=d[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,k1(e),k1(t)))),y[t.key]=o}}))})),Av(y,(function(t,e){A1(c[e],t,g,!0,p)})),function(t,e,n){var r=n.axesInfo=[];Av(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}(d,c,p),function(t,e,n,r){if(N1(e)||!t.list.length)return void r({type:"hideTip"});var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}(f,i,t,a),function(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=I1(r)[i]||{},a=I1(r)[i]={};Av(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Av(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Av(o,(function(t,e){!a[e]&&l.push(t)})),Av(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),p}}function A1(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Av(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(h,t,n);c=p.dataIndices,u=p.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var d=t-u,f=Math.abs(d);f<=a&&((f<a||d>=0&&s<0)&&(a=f,s=d,i=u,o.length=0),Av(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Sv(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function D1(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function E1(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=qW(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function k1(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function N1(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function O1(t){JW.registerAxisPointerClass("CartesianAxisPointer",g1),t.registerComponentModel(y1),t.registerComponentView(M1),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Pv(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=YW(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},T1)}var L1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),u=r.get("type");if(u&&"none"!==u){var c=r1(r),h=P1[u](o,a,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var p=function(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===o.dim){var p=[1,0,0,1,0,0];ax(p,p,s),ox(p,p,[r.cx,r.cy]),l=ZA([a,-i],p);var d=e.getModel("axisLabel").get("rotate")||0,f=FW.innerTextLayout(s,d*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,a]);var y=r.cx,v=r.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,r.get(["label","margin"]));i1(t,n,r,i,p)},e}(n1);var P1={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:l1(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:c1(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:c1(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},R1=L1,z1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(XE),V1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ES).models[0]},e.type="polarAxis",e}(XE);Iv(V1,WV);var B1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="angleAxis",e}(V1),F1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="radiusAxis",e}(V1),j1=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return h(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(yB);j1.prototype.dataToRadius=yB.prototype.dataToCoord,j1.prototype.radiusToData=yB.prototype.coordToData;var G1=IS(),W1=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return h(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=aw(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=G1(t.model),p=h.lastAutoInterval,d=h.lastTickCount;return null!=p&&null!=d&&Math.abs(p-c)<=1&&Math.abs(d-i)<=1&&p>c?c=p:(h.lastTickCount=i,h.lastAutoInterval=c),c},e}(yB);W1.prototype.dataToAngle=yB.prototype.dataToCoord,W1.prototype.angleToData=yB.prototype.coordToData;var H1=["radius","angle"],U1=function(){function t(t){this.dimensions=H1,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new j1,this._angleAxis=new W1,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;l<o||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return Y1(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return Y1(e)===this?this.pointToData(n):null},t}();function Y1(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var X1=U1;function $1(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();Av(GV(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),Av(GV(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),PV(r.scale,r.model),PV(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function Z1(t,e){var n;if(t.type=e.get("type"),t.scale=RV(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=null!==(n=e.get("endAngle"))&&void 0!==n?n:r+(t.inverse?-360:360);t.setExtent(r,i)}e.axis=t,t.model=e}var q1={dimensions:H1,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new X1(r+"");i.update=$1;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Z1(o,s),Z1(a,l),function(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Nw(r[0],i),t.cy=Nw(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:Pv(l)||(l=[0,l]);var u=[Nw(l[0],s),Nw(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(i,t,e),n.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",ES).models[0];if("production"!==process.env.NODE_ENV&&!e)throw new Error('Polar "'+Xv(t.get("polarIndex"),t.get("polarId"),0)+'" not found');t.coordinateSystem=e.coordinateSystem}})),n}},K1=q1,J1=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Q1(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function t2(t){return t.getRadiusAxis().inverse?0:1}function e2(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var n2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return h(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=Dv(n.getViewLabels(),(function(t){t=_v(t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));e2(s),e2(o),Av(J1,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||r2[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(JW),r2={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),h=t2(n),p=h?0:1,d=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(a=0===o[p]?new sD[d]({shape:{cx:n.cx,cy:n.cy,r:o[h],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new YT({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[p]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[t2(n)],u=Dv(r,(function(t){return new tA({shape:Q1(n,[l,l+s],t.coord)})}));t.add(HA(u,{style:Mv(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[t2(n)],c=[],h=0;h<i.length;h++)for(var p=0;p<i[h].length;p++)c.push(new tA({shape:Q1(n,[u,u+l],i[h][p].coord)}));t.add(HA(c,{style:Mv(s.getModel("lineStyle").getLineStyle(),Mv(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");Av(a,(function(r,i){var a=l,h=r.tickValue,p=o[t2(n)],d=n.coordToPoint([p+u,r.coord]),f=n.cx,g=n.cy,y=Math.abs(d[0]-f)/p<.3?"center":d[0]>f?"left":"right",v=Math.abs(d[1]-g)/p<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];Fv(m)&&m.textStyle&&(a=new zD(m.textStyle,l,l.ecModel))}var x=new QC({silent:FW.isLabelSilent(e),style:dD(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),c){var _=FW.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=r.rawLabel,tI(x).eventData=_}}),this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c<r.length;c++){var h=l++%s.length;u[h]=u[h]||[],u[h].push(new tA({shape:Q1(n,o,r[c].coord)}))}for(c=0;c<u.length;c++)t.add(HA(u[c],{style:Mv({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<i.length;l++)for(var u=0;u<i[l].length;u++)s.push(new tA({shape:Q1(n,o,i[l][u].coord)}));t.add(HA(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=Math.PI/180,h=-r[0].coord*c,p=Math.min(o[0],o[1]),d=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var v=g===y?r[0].coord:r[g].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new WT({shape:{cx:n.cx,cy:n.cy,r0:p,r:d,startAngle:h,endAngle:-v*c,clockwise:f},silent:!0})),h=-v*c}for(g=0;g<u.length;g++)t.add(HA(u[g],{style:Mv({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}},i2=n2,o2=["axisLine","axisTickLabel","axisName"],a2=["splitLine","splitArea","minorSplitLine"],s2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return h(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,r=this._axisGroup=new Sw;this.group.add(r);var i=t.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),h=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,u),p=new FW(t,h);Av(o2,p.add,p),r.add(p.getGroup()),JA(n,r,t),Av(a2,(function(e){t.get([e,"show"])&&!i.scale.isBlank()&&l2[e](this.group,t,o,u,c,s,l)}),this)}},e.type="radiusAxis",e}(JW),l2={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),p=360===Math.abs(h[1]-h[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var d=[],f=0;f<o.length;f++){var g=l++%s.length;d[g]=d[g]||[],d[g].push(new sD[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[f].coord,0),startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse}}))}for(f=0;f<d.length;f++)t.add(HA(d[f],{style:Mv({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new MT({shape:{cx:n.cx,cy:n.cy,r:a[u][c].coord}}));t.add(HA(l,{style:Mv({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=o[0].coord,h=1;h<o.length;h++){var p=l++%s.length;u[p]=u[p]||[],u[p].push(new WT({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[h].coord}for(h=0;h<u.length;h++)t.add(HA(u[h],{style:Mv({fill:s[h%s.length]},a.getAreaStyle()),silent:!0}))}}};var u2=s2;function c2(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function h2(t,e){return e.dim+t.model.componentIndex}function p2(t,e,n){var r={},i=function(t){var e={};Av(t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=h2(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=c2(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var p=Nw(t.get("barWidth"),l),d=Nw(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");p&&!c[h].width&&(p=Math.min(u.remainedWidth,p),c[h].width=p,u.remainedWidth-=p),d&&(c[h].maxWidth=d),null!=f&&(u.gap=f),null!=g&&(u.categoryGap=g)}));var n={};return Av(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=Nw(t.categoryGap,i),a=Nw(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),Av(r,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;Av(r,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)})),c&&(h-=c.width*a);var p=-h/2;Av(r,(function(t,r){n[e][r]=n[e][r]||{offset:p,width:t.width},p+=t.width*(1+a)}))})),n}(kv(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=h2(n,o),s=c2(t),l=i[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),p=t.coordinateSystem.cx,d=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;r[s]=r[s]||[];for(var y=e.mapDimension(h.dim),v=e.mapDimension(o.dim),m=Dz(e,y),x="radius"!==o.dim||!t.get("roundCap",!0),_=h.dataToCoord(0),b=0,w=e.count();b<w;b++){var S=e.get(y,b),M=e.get(v,b),C=S>=0?"p":"n",I=_;m&&(r[s][M]||(r[s][M]={p:_,n:_}),I=r[s][M][C]);var T=void 0,A=void 0,D=void 0,E=void 0;if("radius"===h.dim){var k=h.dataToCoord(S)-_,N=o.dataToCoord(M);Math.abs(k)<f&&(k=(k<0?-1:1)*f),T=I,A=I+k,E=(D=N-u)-c,m&&(r[s][M][C]=A)}else{var O=h.dataToCoord(S,x)-_,L=o.dataToCoord(M);Math.abs(O)<g&&(O=(O<0?-1:1)*g),A=(T=L+u)+c,D=I,E=I+O,m&&(r[s][M][C]=E)}e.setItemLayout(b,{cx:p,cy:d,r0:T,r:A,startAngle:-D*Math.PI/180,endAngle:-E*Math.PI/180,clockwise:D>=E})}}}))}var d2={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},f2={splitNumber:5},g2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="polar",e}(GO);function y2(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];i.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Xv(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-c:c,i.z2=1,i}var v2=["axisLine","axisTickLabel","axisName"],m2=["splitArea","splitLine"],x2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return h(e,t),e.prototype.render=function(e,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Sw;var s=y2(e),l=new FW(e,s);Av(v2,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),Av(m2,(function(t){e.get([t,"show"])&&_2[t](this,this.group,this._axisGroup,e)}),this),JA(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){eH(this)},e.type="singleAxis",e}(JW),_2={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],p=0,d=i.getTicksCoords({tickModel:o}),f=[],g=[],y=0;y<d.length;++y){var v=i.toGlobalCoord(d[y].coord);c?(f[0]=v,f[1]=u.y,g[0]=v,g[1]=u.y+u.height):(f[0]=u.x,f[1]=v,g[0]=u.x+u.width,g[1]=v);var m=new tA({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});YA(m.shape,l);var x=p++%s.length;h[x]=h[x]||[],h[x].push(m)}var _=a.getLineStyle(["color"]);for(y=0;y<h.length;++y)e.add(HA(h[y],{style:Mv({stroke:s[y%s.length]},_),silent:!0}))}},splitArea:function(t,e,n,r){tH(t,n,r,r)}},b2=x2,w2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.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}}},e}(XE);Iv(w2,WV.prototype);var S2=w2,M2=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return h(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(yB),C2=M2,I2=["single"],T2=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=I2,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=this.dimension,i=new C2(r,RV(t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Av(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),PV(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=BE({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){return A2(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return A2(e)===this?this.pointToData(n):null},t}();function A2(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var D2={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new T2(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",ES).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:I2},E2=["x","y"],k2=["width","height"],N2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=P2(a,1-L2(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=r1(r),h=O2[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}s1(e,t,y2(n),n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=y2(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=a1(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.coordinateSystem,a=L2(i),s=P2(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=P2(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(n1),O2={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:l1([e,n[0]],[e,n[1]],L2(t))}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:u1([e-r/2,n[0]],[r,i],L2(t))}}};function L2(t){return t.isHorizontal()?0:1}function P2(t,e){var n=t.getRect();return[n[E2[e]],n[E2[e]]+n[k2[e]]]}var R2=N2,z2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="single",e}(GO);function V2(t,e){var n,r=t.cellSize;1===(n=Pv(r)?r:t.cellSize=[r,r]).length&&(n[1]=n[0]);var i=Dv([0,1],(function(t){return function(t,e){return null!=t[RE[e][0]]||null!=t[RE[e][1]]&&null!=t[RE[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));GE(t,e,{type:"box",ignoreSize:i})}var B2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(e,n,r){var i=WE(e);t.prototype.init.apply(this,arguments),V2(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),V2(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.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}},e}(XE),F2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,s,a,r),this._renderWeekText(t,s,o,a,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=e.start.time;s<=e.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new zC({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},e.prototype._renderLines=function(t,e,n,r){var i=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){p(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function p(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}p(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new KT({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return zv(t)&&t?function(t,e,n){return Av(e,(function(e,r){t=t.replace("{"+r+"}",n?Gm(e):e)})),t}(t,e):Rv(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.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,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var d=i.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:p},g=this._formatterLabel(d,f),y=new QC({z2:30,style:dD(i,{text:g})});y.attr(this._yearTextPositionControl(y,h[a],n,a,o)),r.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,r){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!zv(o)||(o&&(e=$D(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var p="center"===l,d=0;d<u[c].length-1;d++){var f=u[c][d].slice(),g=this._firstDayOfMonth[d];if(p){var y=this._firstDayPoints[d];f[h]=(y[h]+u[0][d+1][h])/2}var v=i.get("formatter"),m=o[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:m},_=this._formatterLabel(v,x),b=new QC({z2:30,style:Sv(dD(i,{text:_}),this._monthTextPositionControl(f,p,n,s,a))});r.add(b)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,r,i){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||zv(l))l&&(e=$D(l)||e),l=e.get(["time","dayOfWeekShort"])||Dv(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var h=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];u=Nw(u,Math.min(p[1],p[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var d=0;d<7;d++){var f,g=a.getNextNDay(h,d),y=a.dataToRect([g.time],!1).center;f=Math.abs((d+c)%7);var v=new QC({z2:30,style:Sv(dD(o,{text:l[f]}),this._weekTextPositionControl(y,r,s,u,p))});i.add(v)}}},e.type="calendar",e}(GO),j2=F2,G2=864e5,W2=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=Ww(t)).getFullYear(),n=t.getMonth()+1,r=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,a=t.getDay();return{y:e+"",m:r,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+r+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){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,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];Av([0,1],(function(t){u(i,t)&&(o[r[t]]=i[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=BE(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}Av([0,1],(function(t){u(i,t)||(i[t]=l[r[t]]/a[t])})),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e){Pv(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.time<r.end.time+G2))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*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+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);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]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},t.prototype.convertToPixel=function(t,e,n){var r=H2(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=H2(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(Pv(e)&&1===e.length&&(e=e[0]),Pv(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return"production"!==process.env.NODE_ENV&&xv("Invalid date range."),e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/G2)-Math.floor(n[0].time/G2)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0;)r-=l,i.setDate(s-l);var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&e<r.fweek||t===r.weeks&&e>r.lweek)return null;var i=7*(t-1)-r.fweek+e,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",(function(e){var n=new t(e);r.push(n),e.coordinateSystem=n})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])})),r},t.dimensions=["time","value"],t}();function H2(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}var U2=W2;function Y2(t,e){var n;return Av(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var X2=["transition","enterFrom","leaveTo"],$2=X2.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Z2(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?X2:$2,i=0;i<r.length;i++){var o=r[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var q2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return h(e,t),e.prototype.mergeOption=function(e,n){var r=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=r},e.prototype.optionUpdated=function(t,e){var n=this.option,r=(e?n:t).elements,i=n.elements=e?[]:n.elements,o=[];this._flatten(r,o,null);var a=vS(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];Av(a,(function(t,e){var n=t.newOption;"production"!==process.env.NODE_ENV&&Jv(Fv(n)||t.existing,"Empty graphic option definition"),n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var r=Sv({},n),i=t[e],o=n.$action||"merge";if("merge"===o)if(i){if("production"!==process.env.NODE_ENV){var a=n.type;Jv(!a||i.type===a,'Please set $action: "replace" to change `type`')}bv(i,r,!0),GE(i,r,{ignoreSize:!0}),HE(n,i),Z2(n,i),Z2(n,i,"shape"),Z2(n,i,"style"),Z2(n,i,"extra"),n.clipPath=i.clipPath}else t[e]=r;else"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}(i,e,n),function(t,e){if(t&&(t.hv=e.hv=[Y2(e,["left","right"]),Y2(e,["top","bottom"])],"group"===t.type)){var n=t,r=e;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[e],n))}),this),n.elements=kv(i,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){Av(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;r&&r.length&&this._flatten(r,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(XE),K2={path:null,compoundPath:null,group:Sw,image:DC,text:QC},J2=IS(),Q2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(){this._elMap=am()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group,i=t.get("z"),o=t.get("zlevel");Av(e,(function(e){var a=_S(e.id,null),s=null!=a?n.get(a):null,l=_S(e.parentId,null),u=null!=l?n.get(l):r,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var p=e.textContent,d=e.textConfig;if(h&&FQ(h,c,!!d,!!p)){var f=jQ(h,c,!0);!d&&f.textConfig&&(d=e.textConfig=f.textConfig),!p&&f.textContent&&(p=f.textContent)}var g=function(t){return t=Sv({},t),Av(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(PE),(function(e){delete t[e]})),t}(e);"production"!==process.env.NODE_ENV&&s&&Jv(u===s.parent,"Changing parent is not supported.");var y=e.$action||"merge",v="merge"===y,m="replace"===y;if(v){var x=s;(I=!s)?x=e5(a,u,e.type,n):(x&&(J2(x).isNew=!1),d0(x)),x&&(QQ(x,g,t,{isInit:I}),r5(x,e,i,o))}else if(m){n5(s,e,n,t);var _=e5(a,u,e.type,n);_&&(QQ(_,g,t,{isInit:!0}),r5(_,e,i,o))}else"remove"===y&&(t0(s,e),n5(s,e,n,t));var b=n.get(a);if(b&&p)if(v){var w=b.getTextContent();w?w.attr(p):b.setTextContent(new QC(p))}else m&&b.setTextContent(new QC(p));if(b){var S=e.clipPath;if(S){var M=S.type,C=void 0,I=!1;if(v){var T=b.getClipPath();C=(I=!T||J2(T).type!==M)?t5(M):T}else m&&(I=!0,C=t5(M));b.setClipPath(C),QQ(C,S,t,{isInit:I}),f0(C,S.keyframeAnimation,t)}var A=J2(b);b.setTextConfig(d),A.option=e,function(t,e,n){var r=tI(t).eventData;t.silent||t.ignore||r||(r=tI(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});r&&(r.info=n.info)}(b,t,e),iD({el:b,componentModel:t,itemName:b.name,itemTooltipOption:e.tooltip}),f0(b,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,i=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){if((f=null!=(d=_S((p=n[l]).id,null))?i.get(d):null)&&f.isGroup){var u=(g=f.parent)===r,c=J2(f),h=J2(g);c.width=Nw(c.option.width,u?o:h.width)||0,c.height=Nw(c.option.height,u?a:h.height)||0}}for(l=n.length-1;l>=0;l--){var p,d,f;if(f=null!=(d=_S((p=n[l]).id,null))?i.get(d):null){var g=f.parent,y=(h=J2(g),{}),v=FE(f,p,g===r?{width:o,height:a}:{width:h.width,height:h.height},null,{hv:p.hv,boundingMode:p.bounding},y);if(!J2(f).isNew&&v){for(var m=p.transition,x={},_=0;_<s.length;_++){var b=s[_],w=y[b];m&&(n0(m)||Cv(m,b)>=0)?x[b]=w:f[b]=w}AA(f,x,t,0)}else f.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){n5(n,J2(n).option,e,t._lastGraphicModel)})),this._elMap=am()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(GO);function t5(t){"production"!==process.env.NODE_ENV&&Jv(t,"graphic type MUST be set");var e=cm(K2,t)?K2[t]:FA(t);"production"!==process.env.NODE_ENV&&Jv(e,"graphic type "+t+" can not be found");var n=new e({});return J2(n).type=t,n}function e5(t,e,n,r){var i=t5(n);return e.add(i),r.set(t,i),J2(i).id=t,J2(i).isNew=!0,i}function n5(t,e,n,r){t&&t.parent&&("group"===t.type&&t.traverse((function(t){n5(t,e,n,r)})),e0(t,e,r),n.removeKey(J2(t).id))}function r5(t,e,n,r){t.isGroup||Av([["cursor",_M.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];cm(e,r)?t[r]=$v(e[r],n[1]):null==t[r]&&(t[r]=n[1])})),Av(Nv(e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=Rv(r)?r:null}})),cm(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var i5=["x","y","radius","angle","single"],o5=["cartesian2d","polar","singleAxis"];function a5(t){return"production"!==process.env.NODE_ENV&&Jv(t),t+"Axis"}function s5(t,e){var n,r=am(),i=[],o=am();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}function l5(t){var e=t.ecModel,n={infoList:[],infoMap:am()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(a5(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var u5=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),c5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return h(e,t),e.prototype.init=function(t,e,n){var r=h5(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=h5(t);bv(this.option,t,!0),bv(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Av([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=am();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Av(i5,(function(n){var r=this.getReferringComponents(a5(n),kS);if(r.specified){e=!0;var i=new u5;Av(r.models,(function(t){i.add(t.componentIndex)})),t.set(n,i)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var i="vertical"===e?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}r&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var i=e[0];if(i){var o=new u5;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",ES).models[0];a&&Av(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",ES).models[0]&&o.add(t.componentIndex)}))}}}r&&Av(i5,(function(e){if(r){var i=n.findComponents({mainType:a5(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new u5;o.add(i[0].componentIndex),t.set(e,o),r=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Av([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(a5(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Av(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){"production"!==process.env.NODE_ENV&&Jv(t&&null!=e);var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(a5(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Av([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Av(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return"production"!==process.env.NODE_ENV&&Jv(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(XE);function h5(t){var e={};return Av(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var p5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="dataZoom.select",e}(c5),d5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(GO),f5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="dataZoom.select",e}(d5),g5=Av,y5=Lw,v5=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(function(t){var e=t.get("coordinateSystem");return Cv(o5,e)>=0}(e)){var n=a5(this._dimName),r=e.getReferringComponents(n,ES).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return _v(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];g5(["start","end"],(function(l,u){var c=t[l],h=t[l+"Value"];"percent"===i[u]?(null==c&&(c=o[u]),h=r.parse(kw(c,o,n))):(e=!0,c=kw(h=null==h?n[u]:r.parse(h),n,o)),s[u]=null==h||isNaN(h)?n[u]:h,a[u]=null==c||isNaN(c)?o[u]:c})),y5(s),y5(a);var l=this._minMaxSpan;function u(t,e,n,i,o){var a=o?"Span":"ValueSpan";jZ(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=kw(t[s],n,i,!0),o&&(e[s]=r.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var r=[1/0,-1/0];g5(n,(function(t){!function(t,e,n){e&&Av(GV(e,n),(function(n){var r=e.getApproximateExtent(n);r[0]<t[0]&&(t[0]=r[0]),r[1]>t[1]&&(t[1]=r[1])}))}(r,t.getData(),e)}));var i=t.getAxisModel(),o=NV(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;"none"!==i&&g5(r,(function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=e.getStore(),s=Dv(r,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,i,l=0;l<r.length;l++){var u=a.get(s[l],t),c=!isNaN(u),h=u<o[0],p=u>o[1];if(c&&!h&&!p)return!0;c&&(i=!0),h&&(e=!0),p&&(n=!0)}return i&&e&&n}))}else g5(r,(function(n){if("empty"===i)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var r={};r[n]=o,e.selectRange(r)}}));g5(r,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;g5(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=kw(n[0]+o,n,[0,100],!0):null!=i&&(o=kw(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=zw(n,[0,500]);r=Math.min(r,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},t}();var m5={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(a5(r),i);e(r,i,o,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[];e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new v5(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=am();return Av(n,(function(t){Av(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};var x5=!1;function _5(t){x5||(x5=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,m5),function(t){t.registerAction("dataZoom",(function(t,e){Av(s5(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function b5(t){t.registerComponentModel(p5),t.registerComponentView(f5),_5(t)}var w5=function(){},S5={};function M5(t,e){S5[t]=e}function C5(t){return S5[t]}var I5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;Av(this.option.feature,(function(t,n){var r=C5(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),bv(t,r.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}(XE);function T5(t,e){var n=TE(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new zC({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1})}var A5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.render=function(t,e,n,r){var i=this.group;if(i.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];Av(s,(function(t,e){u.push(e)})),new JR(this._featureNames||[],u).add(c).update(c).remove(Lv(c,null)).execute(),this._featureNames=u,function(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=BE(r,o,i);VE(e.get("orient"),t,e.get("itemGap"),a.width,a.height),FE(t,r,o,i)}(i,t,n),i.add(T5(i.getBoundingRect(),t)),a||i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Rv(l)&&e){var u=l.style||(l.style={}),c=aw(e,QC.makeFont(u)),h=t.x+i.x,p=!1;t.y+i.y+o+c.height>n.getHeight()&&(a.position="top",p=!0);var d=p?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",d],u.align="right"):h-c.width/2<0&&(a.position=[0,d],u.align="left")}}))}function c(c,h){var p,d=u[c],f=u[h],g=s[d],y=new zD(g,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===d&&(g.title=r.newTitle),d&&!f){if(function(t){return 0===t.indexOf("my")}(d))p={onclick:y.option.onclick,featureName:d};else{var v=C5(d);if(!v)return;p=new v}l[d]=p}else if(!(p=l[f]))return;p.uid=BD("toolbox-feature"),p.model=y,p.ecModel=e,p.api=n;var m=p instanceof w5;d||!f?!y.get("show")||m&&p.unusable?m&&p.remove&&p.remove(e,n):(!function(r,s,l){var u,c,h=r.getModel("iconStyle"),p=r.getModel(["emphasis","iconStyle"]),d=s instanceof w5&&s.getIcons?s.getIcons():r.get("icon"),f=r.get("title")||{};zv(d)?(u={})[l]=d:u=d;zv(f)?(c={})[l]=f:c=f;var g=r.iconPaths={};Av(u,(function(l,u){var d=tD(l,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(h.getItemStyle()),d.ensureState("emphasis").style=p.getItemStyle();var f=new QC({style:{text:c[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:xD({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},e)},ignore:!0});d.setTextContent(f),iD({el:d,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),d.__title=c[u],d.on("mouseover",(function(){var e=p.getItemStyle(),r=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),d.setTextConfig({position:p.get("textPosition")||r}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===r.get(["iconStatus",u])?OI:LI)(d),i.add(d),d.on("click",Ov(s.onclick,s,e,n,u)),g[u]=d}))}(y,p,d),y.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?OI:LI)(r[t])},p instanceof w5&&p.render&&p.render(y,e,n,r)):m&&p.dispose&&p.dispose(e,n)}},e.prototype.updateView=function(t,e,n,r){Av(this._features,(function(t){t instanceof w5&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){Av(this._features,(function(n){n instanceof w5&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){Av(this._features,(function(n){n instanceof w5&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(GO);var D5=A5,E5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=Jy.browser;if(Rv(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=r+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var c=a.split(","),h=c[0].indexOf("base64")>-1,p=i?decodeURIComponent(c[1]):c[1];h&&(p=window.atob(p));var d=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var f=p.length,g=new Uint8Array(f);f--;)g[f]=p.charCodeAt(f);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var v=document.createElement("iframe");document.body.appendChild(v);var m=v.contentWindow,x=m.document;x.open("image/svg+xml","replace"),x.write(p),x.close(),m.focus(),x.execCommand("SaveAs",!0,d),document.body.removeChild(v)}}else{var _=n.get("lang"),b='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',w=window.open();w.document.write(b),w.document.title=r}},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(w5),k5=E5,N5="__ec_magicType_stack__",O5=[["line","bar"],["stack"]],L5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return Av(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(P5[n]){var o,a={series:[]};Av(O5,(function(t){Cv(t,n)>=0&&Av(t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(t){var e=t.subType,i=t.id,o=P5[n](e,i,t,r);o&&(Mv(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,ES).models[0].componentIndex;a[u]=a[u]||[];for(var h=0;h<=c;h++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=bv({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(w5),P5={line:function(t,e,n,r){if("bar"===t)return bv({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if("line"===t)return bv({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i=n.get("stack")===N5;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),bv({id:e,stack:i?"":N5},r.get(["option","stack"])||{},!0)}};FR({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var R5=L5,z5=new Array(60).join("-"),V5="\t";function B5(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var F5=new RegExp("["+V5+"]+","g");function j5(t,e){var n=t.split(new RegExp("\n*"+z5+"\n*","g")),r={series:[]};return Av(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(V5)>=0)return!0}(t)){var i=function(t){for(var e=t.split(/\n+/g),n=[],r=Dv(B5(e.shift()).split(F5),(function(t){return{name:t,data:[]}})),i=0;i<e.length;i++){var o=B5(e[i]).split(F5);n.push(o.shift());for(var a=0;a<o.length;a++)r[a]&&(r[a].data[i]=o[a])}return{series:r,categories:n}}(t),o=e[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(t){for(var e=t.split(/\n+/g),n=B5(e.shift()),r=[],i=0;i<e.length;i++){var o=B5(e[i]);if(o){var a=o.split(F5),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}(t);r.series.push(i)}})),r}var G5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),h=function(t){var e,n,r,i=function(t){var e={},n=[],r=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:r}}(t);return{value:kv([(n=i.seriesGroupByCategoryAxis,r=[],Av(n,(function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(Dv(t.series,(function(t){return t.name}))),a=[n.model.getCategories()];Av(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))}));for(var s=[o.join(V5)],l=0;l<a[0].length;l++){for(var u=[],c=0;c<a.length;c++)u.push(a[c][l]);s.push(u.join(V5))}r.push(s.join("\n"))})),r.join("\n\n"+z5+"\n\n")),(e=i.other,Dv(e,(function(t){var e=t.getRawData(),n=[t.name],r=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,i=arguments[t-1],o=e.getName(i),a=0;a<t-1;a++)r[a]=arguments[a];n.push((o?o+V5:"")+r.join(V5))})),n.join("\n")})).join("\n\n"+z5+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+z5+"\n\n"),meta:i.meta}}(t);if(Rv(u)){var p=u(e.getOption());zv(p)?s.innerHTML=p:Wv(p)&&s.appendChild(p)}else{l.readOnly=r.get("readOnly");var d=l.style;d.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",d.color=r.get("textColor"),d.borderColor=r.get("textareaBorderColor"),d.backgroundColor=r.get("textareaColor"),l.value=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),m=document.createElement("div");y+=";background-color:"+r.get("buttonColor"),y+=";color:"+r.get("buttonTextColor");var x=this;function _(){n.removeChild(i),x._dom=null}qm(v,"click",_),qm(m,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)return"production"!==process.env.NODE_ENV&&rS("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),void _();var t;try{t=Rv(c)?c(s,e.getOption()):j5(l.value,f)}catch(t){throw _(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()})),v.innerHTML=a[1],m.innerHTML=a[2],m.style.cssText=v.style.cssText=y,!r.get("readOnly")&&g.appendChild(m),g.appendChild(v),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(w5);function W5(t,e){return Dv(t,(function(t,n){var r=e&&e[n];if(Fv(r)&&!Pv(r)){Fv(t)&&!Pv(t)||(t={value:t});var i=null!=r.name&&null==t.name;return t=Mv(t,r),i&&delete t.name,t}return t}))}FR({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];Av(t.newOption.series,(function(t){var r=e.getSeriesByName(t.name)[0];if(r){var i=r.get("data");n.push({name:t.name,data:W5(t.data,i)})}else n.push(Sv({type:"scatter"},t))})),e.mergeOption(Mv({series:n},t.newOption))}));var H5=G5,U5=Av,Y5=IS();function X5(t){var e=Y5(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var $5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.onclick=function(t,e){!function(t){Y5(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(w5);FR({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var Z5=$5,q5=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],K5=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=Q5(e,t);Av(t3,(function(t,e){(!n||!n.include||Cv(n.include,e)>=0)&&t(i,r._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=r3[t.brushType](0,n,e);t.__rangeOffset={offset:o3[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Av(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&Av(r.coordSyses,(function(r){var i=r3[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Av(t,(function(t){var n,r,i,o,a,s=this.findTargetInfo(t,e);if("production"!==process.env.NODE_ENV&&(Jv(!s||!0===s||t.coordRange,"coordRange must be specified when coord index specified."),Jv(!s||!0!==s||t.range,"range must be specified in global brush.")),t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=r3[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?o3[t.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=s3(n),o=s3(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Dv(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:$q(r),isTargetByCursor:qq(r,t,n.coordSysModel),getLinearBrushOtherExtent:Zq(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&Cv(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=Q5(e,t),i=0;i<n.length;i++){var o=n[i],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<e3.length;s++)if(e3[s](r,o))return o}return!0},t}();function J5(t){return t[0]>t[1]&&t.reverse(),t}function Q5(t,e){return AS(t,e,{includeMainTypes:q5})}var t3={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=am(),a={},s={};(n||r||i)&&(Av(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Av(r,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Av(i,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var i=t.coordinateSystem,o=[];Av(i.getCartesians(),(function(t,e){(Cv(n,t.getAxis("x").model)>=0||Cv(r,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:n3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Av(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:n3.geo})}))}},e3=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],n3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform($A(t)),e}},r3={lineX:Lv(i3,0),lineY:Lv(i3,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[J5([i[0],o[0]]),J5([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:Dv(n,(function(n){var o=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o})),xyMinMax:i}}};function i3(t,e,n,r){"production"!==process.env.NODE_ENV&&Jv("cartesian2d"===n.type,"lineX/lineY brush is available only in cartesian2d.");var i=n.getAxis(["x","y"][t]),o=J5(Dv([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var o3={lineX:Lv(a3,0),lineY:Lv(a3,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Dv(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function a3(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function s3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var l3,u3,c3=K5,h3=Av,p3=hS+"toolbox-dataZoom_",d3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new Xq(n.getZr()),this._brushController.on("brush",Ov(this._onBrush,this)).mount()),function(t,e,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new c3(g3(t),e,{include:["grid"]}),s=a.makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,r,n),function(t,e){t.setIconStatus("back",function(t){return X5(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){f3[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new c3(g3(this.model),r,{include:["grid"]}).matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[r],n,e)}})),function(t,e){var n=X5(t);U5(e,(function(e,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(e)}(r,n),this._dispatchZoomAction(n)}function i(t,e,i){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(r=n)})),r}(t,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=jZ(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];h3(t,(function(t,n){e.push(_v(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(w5),f3={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=X5(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return U5(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n]){r[n]=t;break}})),r}(this.ecModel))}};function g3(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}l3="dataZoom",u3=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=AS(t,g3(r));return h3(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),h3(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),i}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:p3+e+o};a[n]=o,i.push(a)}},Jv(null==dk.get(l3)&&u3),dk.set(l3,u3);var y3=d3;var v3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(XE);function m3(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function x3(t){if(Jy.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var _3=x3(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function b3(t,e){if(!t)return e;e=IE(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var w3=b3(x3(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),S3=b3(_3,"transform"),M3="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Jy.transform3dSupported?"will-change:transform;":"");function C3(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Jy.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Jy.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+S3+":"+a+";":[["top",0],["left",0],[_3,a]]}function I3(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=IO(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),e&&i&&r.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=Jy.transformSupported?","+S3+r:",left"+r+",top"+r),w3+":"+i}(i,n)),o&&r.push("background-color:"+o),Av(["width","color","radius"],(function(e){var n="border-"+e,i=IE(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(function(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Av(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}(c)),null!=h&&r.push("padding:"+TE(h).join("px ")+"px"),r.join(";")+";"}function T3(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,r,i){Vm(zm,e,r,i,!0)&&Vm(t,n,zm[0],zm[1])}(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var A3=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Jy.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&(zv(i)?document.querySelector(i):Wv(i)?i:Rv(i)&&i(t.getDom()));T3(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;Zm(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(i=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?o?a[o]:a:null),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=M3+I3(t,!this._firstShow,this._longHide)+C3(i[0],i[1],!0)+"border-color:"+NE(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(zv(i)&&"item"===n.get("trigger")&&!m3(n)&&(a=function(t,e,n){if(!zv(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=NE(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=S3+":";Cv(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,p=l+i,d=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),f=e+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-p)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),zv(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Pv(t)||(t=[t]);for(var s=0;s<t.length;s++)Wv(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(T3(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style;Av(C3(n[0],n[1]),(function(t){r[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Jy.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ov(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),D3=A3,E3=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),O3(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;Fv(t)&&lS("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 QC({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:IO(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),Av(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),Av(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||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}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=N3(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;O3(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=k3(i.borderWidth||0),a=N3(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ov(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function k3(t){return Math.max(0,t)}function N3(t){var e=k3(t.shadowBlur||0),n=k3(t.shadowOffsetX||0),r=k3(t.shadowOffsetY||0);return{left:k3(e-n),right:k3(e+n),top:k3(e-r),bottom:k3(e+r)}}function O3(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var L3=new zC({shape:{x:-1,y:-1,width:2,height:2}}),P3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(t,e){if(!Jy.node&&e.getDom()){var n,r=t.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?Jy.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new E3(e):new D3(e,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!Jy.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?rL(this,"_updatePosition",50,"fixRate"):iL(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");x1("itemTooltip",this._api,Ov((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!Jy.node&&n.getDom()){var i=z3(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(t,e,n){var r=DS(t).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o=NS(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=tI(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}(r,e,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:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=L3;l.x=r.x,l.y=r.y,l.update(),tI(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=C1(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(z3(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s)if("axis"===R3([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var i,o;if("legend"===tI(n).ssrType)return;this._lastDataByCoordSys=null,$L(n,(function(t){return null!=tI(t).dataIndex?(i=t,!0):null!=tI(t).tooltipConfig?(o=t,!0):void 0}),!0),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Ov(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=R3([e.tooltipOption],r),a=this._renderMode,s=[],l=yO("section",{blocks:[],noHeader:!0}),u=[],c=new TO;Av(t,(function(t){Av(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=o1(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=yO("section",{header:o,noHeader:!Qv(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Av(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=VV(e.axis,{value:i}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",NE(f.color),a);var g=NN(p.formatTooltip(d,!0,null)),y=g.frag;if(y){var v=R3([p],r).get("valueFormatter");h.blocks.push(v?Sv({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,p=o.get("order"),d=wO(l,c,a,p,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=tI(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,p=t.positionDefault,d=R3([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new TO;g.marker=y.makeTooltipMarker("item",NE(g.color),h);var v=NN(s.formatTooltip(l,!1,u)),m=d.get("order"),x=d.get("valueFormatter"),_=v.frag,b=_?wO(x?Sv({valueFormatter:x},_):_,y,h,m,r.get("useUTC"),d.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=tI(e),i=r.tooltipConfig.option||{};if(zv(i)){i={content:i,formatter:i}}var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a),o.push({formatter:i.content});var s=t.positionDefault,l=R3(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new TO;this._showOrMove(l,(function(){var n=_v(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(zv(c)){var d=t.ecModel.get("useUTC"),f=Pv(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=lE(f.axisValue,h,d)),h=kE(h,n,!0)}else if(Rv(c)){var g=Ov((function(e,r){e===this._ticket&&(u.setContent(r,l,t,p,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,g)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Pv(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Pv(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),Rv(e)&&(e=e([n,r],o,i.el,p,{viewSize:[s,l],contentSize:u.slice()})),Pv(e))n=Nw(e[0],s),r=Nw(e[1],l);else if(Fv(e)){var d=e;d.width=u[0],d.height=u[1];var f=BE(d,{width:s,height:l});n=f.x,r=f.y,c=null,h=null}else if(zv(e)&&a){var g=function(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=function(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>r?t-=l+o:t+=o);null!=a&&(e+u+a>i?e-=u+a:e+=a);return[t,e]}(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=V3(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=V3(h)?u[1]/2:"bottom"===h?u[1]:0),m3(t)){g=function(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Av(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&Av(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&Av(a,(function(t,e){var n=l[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Av(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!Jy.node&&e.getDom()&&(iL(this,"_updatePosition"),this._tooltipContent.dispose(),w1("itemTooltip",e))},e.type="tooltip",e}(GO);function R3(t,e,n){var r,i=e.ecModel;n?(r=new zD(n,i,i),r=new zD(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof zD&&(a=a.get("tooltip",!0)),zv(a)&&(a={formatter:a}),a&&(r=new zD(a,r,i)))}return r}function z3(t,e){return t.dispatchAction||Ov(e.dispatchAction,e)}function V3(t){return"center"===t||"middle"===t}var B3=P3;var F3=["rect","polygon","keep","clear"];function j3(t,e){var n=pS(t?t.brush:[]);if(n.length){var r=[];Av(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;Pv(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),function(t){var e={};Av(t,(function(t){e[t]=1})),t.length=0,Av(e,(function(e,n){t.push(n)}))}(s),e&&!s.length&&s.push.apply(s,F3)}}var G3=Av;function W3(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function H3(t,e,n){var r={};return G3(e,(function(e){var i,o=r[e]=((i=function(){}).prototype.__hidden=i.prototype,new i);G3(t[e],(function(t,r){if(NX.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new NX(i),"opacity"===r&&((i=_v(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new NX(i))}}))})),r}function U3(t,e,n){var r;Av(n,(function(t){e.hasOwnProperty(t)&&W3(e[t])&&(r=!0)})),r&&Av(n,(function(n){e.hasOwnProperty(n)&&W3(e[n])?t[n]=_v(e[n]):delete t[n]}))}var Y3={lineX:X3(0),lineY:X3(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&YV(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];return!!(YV(r,i,o)||YV(r,i+a,o)||YV(r,i,o+s)||YV(r,i+a,o+s)||xx.create(t).contain(l[0],l[1])||eD(i,o,i+a,o,r)||eD(i,o,i,o+s,r)||eD(i+a,o,i+a,o+s,r)||eD(i,o+s,i+a,o+s,r))||void 0}}};function X3(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range;return $3(e[t],i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),$3(s[0],a)||$3(s[1],a)||$3(a[0],s)||$3(a[1],s)}}}}function $3(t,e){return e[0]<=t&&t<=e[1]}var Z3=["inBrush","outOfBrush"],q3="__ecBrushSelect",K3="__ecInBrushSelectEvent";function J3(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new c3(e.option,t)).setInputRanges(e.areas,t)}))}function Q3(t,e,n){var r,i,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),J3(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:_v(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],p=!1;n||(r=s.throttleType,i=s.throttleDelay);var d=Dv(e.areas,(function(t){var e=n4[t.brushType],n=Mv({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(r){return Y3[e].point(r,n,t)},rect:function(r){return Y3[e].rect(r,n,t)}};return n}(n),n})),f=H3(e.option,Z3,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function y(t){return!!t.length}Pv(l)&&Av(l,(function(t){u[t]=1})),t.eachSeries((function(n,r){var i=h[r]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;p=p||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}(n,r):function(n,r,i){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(Pv(n)?Cv(n,e)<0:e!==n)}(e,r))return;if(Av(d,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),p=p||y(i)})),g(r)&&y(i)){var o=n.getData();o.each((function(t){e4(n,i,o,t)&&(c[t]=1)}))}}(n,r,i)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var r=h[e],i=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return e4(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?p:y(r))&&function(t,e,n,r,i,o){var a,s={};function l(t){return WL(n,a,t)}function u(t,e){UL(n,a,t,e)}function c(t,c){a=null==o?t:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var p=r.call(i,t),d=e[p],f=s[p],g=0,y=f.length;g<y;g++){var v=f[g];d[v]&&d[v].applyVisual(t,l,u)}}Av(t,(function(t){var n=NX.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}(Z3,f,i,o)}))})),function(t,e,n,r,i){if(!i)return;var o=t.getZr();if(o[K3])return;o[q3]||(o[q3]=t4);var a=rL(o,q3,n,e);a(t,r)}(e,r,i,o,n)}function t4(t,e){if(!t.isDisposed()){var n=t.getZr();n[K3]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[K3]=!1}}function e4(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}var n4={rect:function(t){return r4(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&r4(e)}};function r4(t){return new xx(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var i4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Xq(e.getZr())).on("brush",Ov(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){J3(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:_v(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:_v(n),$from:e})},e.type="brush",e}(GO);function o4(t,e){return bv({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new zD(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var a4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return h(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&U3(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){"production"!==process.env.NODE_ENV&&(Jv(Pv(t)),Av(t,(function(t){Jv(t.brushType,"Illegal areas")}))),t&&(this.areas=Dv(t,(function(t){return o4(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=o4(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.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},e}(XE),s4=["rect","polygon","lineX","lineY","keep","clear"],l4=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.render=function(t,e,n){var r,i,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,i=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=r,this._brushMode=i,Av(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?o:e===r)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return Av(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){return{show:!0,type:s4.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:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(w5);var u4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return h(e,t),e.type="title",e.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"}},e}(XE),c4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=$v(t.get("textBaseline"),t.get("textVerticalAlign")),l=new QC({style:dD(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new QC({style:dD(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,h.silent=!d&&!f,p&&l.on("click",(function(){OE(p,"_"+t.get("target"))})),d&&h.on("click",(function(){OE(d,"_"+t.get("subtarget"))})),tI(l).eventData=tI(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=BE(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=r.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new zC({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:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(b)}},e.type="title",e}(GO);var h4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return h(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Av(n,(function(e,n){var r,o=_S(gS(e),"");Fv(e)?(r=_v(e)).value=n:r=n,t.push(r),i.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new wz([{name:"value",type:o}],this)).initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.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:[]},e}(XE),p4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="timeline.slider",e.defaultOption=FD(h4.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:[]}),e}(h4);Iv(p4,kN.prototype);var d4=p4,f4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="timeline",e}(GO),g4=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return h(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(yB),y4=g4,v4=Math.PI,m4=IS(),x4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){return yO("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},Av(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,i,a,t)}),this),this._renderAxisLabel(r,o,a,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r,i,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return BE(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":zv(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:v4/2},p="vertical"===s?l.height:l.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*v4/180;var x=d.get("position",!0),_=f&&d.get("showPlayBtn",!0),b=f&&d.get("showPrevBtn",!0),w=f&&d.get("showNextBtn",!0),S=0,M=p;"left"===x||"bottom"===x?(_&&(r=[0,0],S+=v),b&&(i=[S,0],S+=v),w&&(o=[M-g,0],M-=v)):(_&&(r=[M-g,0],M-=v),b&&(i=[0,0],S+=v),w&&(o=[M-g,0],M-=v));var C=[S,M];return t.get("inverse")&&C.reverse(),{viewRect:l,mainLength:p,orient:s,rotation:h[s],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:C,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=i.x,s=i.y+i.height;ox(o,o,[-a,-s]),ax(o,o,-v4/2),ox(o,o,[a,s]),(i=i.clone()).applyTransform(o)}var l=y(i),u=y(n.getBoundingRect()),c=y(r.getBoundingRect()),h=[n.x,n.y],p=[r.x,r.y];p[0]=h[0]=l[0][0];var d,f=t.labelPosOpt;null==f||zv(f)?(v(h,u,l,1,d="+"===f?0:1),v(p,c,l,1,1-d)):(v(h,u,l,1,d=f>=0?0:1),p[1]=h[1]+f);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(h),r.setPosition(p),n.rotation=r.rotation=t.rotation,g(n),g(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType"),i=function(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Yz({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new vV({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Zz}}(e,r);i.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new y4("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Sw;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new tA({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Sv({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new tA({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Mv({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Av(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Ov(i._changeTimeline,i,t.value)},p=_4(s,l,e,h);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=c.getItemStyle(),YI(p);var d=tI(p);s.get("tooltip")?(d.dataIndex=t.value,d.dataModel=r):d.dataIndex=d.dataModel=null,i._tickSymbols.push(p)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this;if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();this._tickLabels=[],Av(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),p=new QC({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Ov(i._changeTimeline,i,a),silent:!1,style:dD(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=dD(u),p.ensureState("progress").style=dD(c),e.add(p),YI(p),m4(p).dataIndex=a,i._tickLabels.push(p)}))}},e.prototype._renderControl=function(t,e,n,r){var i=t.controlSize,o=t.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(t,n,l,u){if(t){var c=cw($v(r.get(["controlStyle",n+"BtnSize"]),i),i),h=function(t,e,n,r){var i=r.style,o=tD(t.get(["controlStyle",e]),r||{},new xx(n[0],n[1],n[2],n[3]));i&&o.setStyle(i);return o}(r,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),YI(h)}}c(t.nextBtnPosition,"next",Ov(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Ov(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Ov(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Ov(s._handlePointerDrag,s),t.ondragend=Ov(s._handlePointerDragend,s),b4(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){b4(t,s._progressLine,o,n,r)}};this._currentPointer=_4(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=Lw(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var i=this._progressLine;i&&(i.shape.x2=n,i.dirty());var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return ZA(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-t);s<r&&(r=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var r=0;r<e.length;r++)e&&e[r]&&e[r].toggleState("progress",r<t);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",m4(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(f4);function _4(t,e,n,r,i,o){var a=e.get("color");i?(i.setColor(a),n.add(i),o&&o.onUpdate(i)):((i=aP(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i));var s=e.getItemStyle(["color"]);i.setStyle(s),r=bv({rectHover:!0,z2:100},r,!0);var l=sP(t.get("symbolSize"));r.scaleX=l[0]/2,r.scaleY=l[1]/2;var u=lP(t.get("symbolOffset"),l);u&&(r.x=(r.x||0)+u[0],r.y=(r.y||0)+u[1]);var c=t.get("symbolRotate");return r.rotation=(c||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function b4(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var w4=x4;function S4(t){var e=t&&t.timeline;Pv(e)||(e=e?[e]:[]),Av(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(M4(t),C4(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});C4(r,"position")||(r.position=t.controlPosition),"none"!==r.position||C4(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}Av(t.data||[],(function(t){Fv(t)&&!Pv(t)&&(!C4(t,"value")&&C4(t,"name")&&(t.value=t.name),M4(t))}))}(t)}))}function M4(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};Av(r,(function(t,e){o[e]||C4(i,e)||(i[e]=t)})),n.label&&!C4(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function C4(t,e){return t.hasOwnProperty(e)}function I4(t,e){if(!t)return!1;for(var n=Pv(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function T4(t){dS(t,"label",["show"])}var A4=IS(),D4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return h(e,t),e.prototype.init=function(t,e,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(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Jy.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var i=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=A4(t)[i];n&&n.data?(o?o._mergeOption(n,e,!0):(r&&T4(n),Av(n.data,(function(t){t instanceof Array?(T4(t[0]),T4(t[1])):T4(t)})),Sv(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),A4(t)[i]=o):A4(t)[i]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return yO("section",{header:this.name,blocks:[yO("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return A4(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(XE);Iv(D4,kN.prototype);var E4=D4,k4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(E4);function N4(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function O4(t,e,n,r,i,o){var a=[],s=Dz(e,r)?e.getCalculationInfo("stackResultDimension"):r,l=B4(e,s,t),u=e.indicesOfNearest(s,l)[0];a[i]=e.get(n,u),a[o]=e.get(s,u);var c=e.get(r,u),h=Pw(e.get(r,u));return(h=Math.min(h,20))>=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var L4={min:Lv(O4,"min"),max:Lv(O4,"max"),average:Lv(O4,"average"),median:Lv(O4,"median")};function P4(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Pv(e.coord)&&Pv(i)){var o=R4(e,n,r,t);if((e=_v(e)).type&&L4[e.type]&&o.baseAxis&&o.valueAxis){var a=Cv(i,o.baseAxis.dim),s=Cv(i,o.valueAxis.dim),l=L4[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Pv(i))for(var u=e.coord,c=0;c<2;c++)L4[u[c]]&&(u[c]=B4(n,n.mapDimension(i[c]),u[c]));else e.coord=[];return e}}function R4(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function z4(t,e){return!(t&&t.containData&&e.coord&&!N4(e))||t.containData(e.coord)}function V4(t,e){return t?function(t,n,r,i){return RN(i<2?t.coord&&t.coord[i]:t.value,e[i])}:function(t,n,r,i){return RN(t.value,e[i])}}function B4(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var F4=IS(),j4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.init=function(){this.markerGroupMap=am()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){F4(t).keep=!1})),e.eachSeries((function(t){var i=E4.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!F4(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){F4(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Av(t,(function(t){var r=E4.getMarkerModelFromSeries(t,n.type);r&&r.getData().eachItemGraphicEl((function(t){t&&(e?PI(t):RI(t))}))}))},e.type="marker",e}(GO);function G4(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=Nw(a.get("x"),n.getWidth()),l=Nw(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)}))}var W4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=E4.getMarkerModelFromSeries(t,"markPoint");e&&(G4(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Rj),u=function(t,e,n){var r;r=t?Dv(t&&t.dimensions,(function(t){return Sv(Sv({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new wz(r,n),o=Dv(n.get("data"),Lv(P4,e));t&&(o=kv(o,Lv(z4,t)));var a=V4(!!t,r);return i.initData(o,null,a),i}(i,t,e);e.setData(u),G4(e.getData(),t,r),u.each((function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Rv(r)||Rv(i)||Rv(o)||Rv(s)){var c=e.getRawValue(t),h=e.getDataParams(t);Rv(r)&&(r=r(c,h)),Rv(i)&&(i=i(c,h)),Rv(o)&&(o=o(c,h)),Rv(s)&&(s=s(c,h))}var p=n.getModel("itemStyle").getItemStyle(),d=HL(a,"color");p.fill||(p.fill=d),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){tI(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(j4);var H4=W4;var U4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.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"},e}(E4),Y4=IS(),X4=function(t,e,n,r){var i,o=t.getData();if(Pv(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=e.getAxis(null!=r.yAxis?"y":"x"),l=Xv(r.yAxis,r.xAxis);else{var u=R4(r,o,e,t);s=u.valueAxis,l=B4(o,Ez(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,p=_v(r),d={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,d.coord[h]=1/0;var f=n.get("precision");f>=0&&Bv(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[c]=d.coord[c]=l,i=[p,d,{type:a,valueIndex:r.valueIndex,value:l}]}else"production"!==process.env.NODE_ENV&&xv("Invalid markLine data."),i=[]}var g=[P4(t,i[0]),P4(t,i[1]),Sv({},i[2])];return g[2].type=g[2].type||null,bv(g[2],g[0]),bv(g[2],g[1]),g};function $4(t){return!isNaN(t)&&!isFinite(t)}function Z4(t,e,n,r){var i=1-t,o=r.dimensions[t];return $4(e[i])&&$4(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function q4(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(Z4(1,n,r,t)||Z4(0,n,r,t)))return!0}return z4(t,e[0])&&z4(t,e[1])}function K4(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Nw(s.get("x"),i.getWidth()),u=Nw(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),p=t.get(c[1],e);o=a.dataToPoint([h,p])}if(qj(a,"cartesian2d")){var d=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;$4(t.get(c[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):$4(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var J4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=E4.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=Y4(e).from,o=Y4(e).to;i.each((function(e){K4(i,e,!0,t,n),K4(o,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new V$);this.group.add(l.group);var u=function(t,e,n){var r;r=t?Dv(t&&t.dimensions,(function(t){return Sv(Sv({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new wz(r,n),o=new wz(r,n),a=new wz([],n),s=Dv(n.get("data"),Lv(X4,e,t,n));t&&(s=kv(s,Lv(q4,t)));var l=V4(!!t,r);return i.initData(Dv(s,(function(t){return t[0]})),null,l),o.initData(Dv(s,(function(t){return t[1]})),null,l),a.initData(Dv(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}(i,t,e),c=u.from,h=u.to,p=u.line;Y4(e).from=c,Y4(e).to=h,e.setData(p);var d=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,i){var o=e.getItemModel(n);K4(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=HL(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:$v(o.get("symbolOffset",!0),y[i?0:1]),symbolRotate:$v(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:$v(o.get("symbolSize"),f[i?0:1]),symbol:$v(o.get("symbol",!0),d[i?0:1]),style:s})}Pv(d)||(d=[d,d]),Pv(f)||(f=[f,f]),Pv(g)||(g=[g,g]),Pv(y)||(y=[y,y]),u.from.each((function(t){v(c,t,!0),v(h,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(p),u.line.eachItemGraphicEl((function(t){tI(t).dataModel=e,t.traverse((function(t){tI(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(j4);var Q4=J4;var t6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(E4),e6=IS(),n6=function(t,e,n,r){var i=r[0],o=r[1];if(i&&o){var a=P4(t,i),s=P4(t,o),l=a.coord,u=s.coord;l[0]=Xv(l[0],-1/0),l[1]=Xv(l[1],-1/0),u[0]=Xv(u[0],1/0),u[1]=Xv(u[1],1/0);var c=wv([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function r6(t){return!isNaN(t)&&!isFinite(t)}function i6(t,e,n,r){var i=1-t;return r6(e[i])&&r6(n[i])}function o6(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return qj(t,"cartesian2d")?!(!n||!r||!i6(1,n,r)&&!i6(0,n,r))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!N4(e)&&!N4(n))||t.containZone(e.coord,n.coord)}(t,i,o):z4(t,i)||z4(t,o)}function a6(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Nw(s.get(n[0]),i.getWidth()),u=Nw(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),p=a.clampData(c),d=a.clampData(h),f=[];"x0"===n[0]?f[0]=p[0]>d[0]?h[0]:c[0]:f[0]=p[0]>d[0]?c[0]:h[0],"y0"===n[1]?f[1]=p[1]>d[1]?h[1]:c[1]:f[1]=p[1]>d[1]?c[1]:h[1],o=r.getMarkerPosition(f,n,!0)}else{var g=[m=t.get(n[0],e),x=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(qj(a,"cartesian2d")){var y=a.getAxis("x"),v=a.getAxis("y"),m=t.get(n[0],e),x=t.get(n[1],e);r6(m)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):r6(x)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var s6=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],l6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=E4.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=Dv(s6,(function(i){return a6(r,e,i,t,n)}));r.setItemLayout(e,i),r.getItemGraphicEl(e).setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Sw});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var r,i,o=["x0","y0","x1","y1"];if(t){var a=Dv(t&&t.dimensions,(function(t){var n=e.getData();return Sv(Sv({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));i=Dv(o,(function(t,e){return{name:t,type:a[e%2].type}})),r=new wz(i,n)}else r=new wz(i=[{name:"value",type:"float"}],n);var s=Dv(n.get("data"),Lv(n6,e,t,n));t&&(s=kv(s,Lv(o6,t)));var l=t?function(t,e,n,r){return RN(t.coord[Math.floor(r/2)][r%2],i[r])}:function(t,e,n,r){return RN(t.value,i[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}(i,t,e);e.setData(u),u.each((function(e){var n=Dv(s6,(function(n){return a6(u,e,n,t,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];Lw(h),Lw(p);var d=!!(l[0]>h[1]||l[1]<h[0]||c[0]>p[1]||c[1]<p[0]);u.setItemLayout(e,{points:n,allClipped:d});var f=u.getItemModel(e).getModel("itemStyle").getItemStyle(),g=HL(a,"color");f.fill||(f.fill=g,zv(f.fill)&&(f.fill=j_(f.fill,.4))),f.stroke||(f.stroke=g),u.setItemVisual(e,"style",f)})),u.diff(e6(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new ZT({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var r=e6(l).data.getItemGraphicEl(n),i=u.getItemLayout(t);i.allClipped?r&&l.group.remove(r):(r?AA(r,{shape:{points:i.points}},e,t):r=new ZT({shape:{points:i.points}}),u.setItemGraphicEl(t,r),l.group.add(r))})).remove((function(t){var e=e6(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),hD(t,pD(r),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:zv(i.fill)?j_(i.fill,1):"#000"}),KI(t,r),XI(t,null,null,r.get(["emphasis","disabled"])),tI(t).dataModel=e})),e6(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(j4);var u6=l6;var c6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return h(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),Pv(e)&&Av(e,(function(t,r){zv(t)&&(t={type:t}),e[r]=bv(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(a)),a.length?e=e.concat(a):i=!0}else i=!0;i&&SS(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=am(),o=Dv(r,(function(t){return(zv(t)||Bv(t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new zD(t,this,this.ecModel))}),this);this._data=kv(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&Av(this._data,(function(t){e[t.get("name")]=!1}));e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;Av(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;Av(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&Cv(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(XE),h6=c6,p6=Lv,d6=Av,f6=Sw,g6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return h(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new f6),this.group.add(this._selectorGroup=new f6),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=BE(l,u,c),p=this.layoutInner(t,i,h,r,a,s),d=BE(Mv({width:p.width,height:p.height},l),u,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=T5(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=am(),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),d6(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new f6;return h.newline=!0,void s.add(h)}var p=n.getSeriesByName(a)[0];if(!l.get(a)){if(p){var d=p.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),y=d.getVisual("style"),v=this._createItem(p,a,o,i,e,t,f,y,g,u,r);v.on("click",p6(y6,a,null,r,c)).on("mouseover",p6(m6,p.name,null,r,c)).on("mouseout",p6(x6,p.name,null,r,c)),n.ssr&&v.eachChild((function(t){var e=tI(t);e.seriesIndex=p.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(a))return;var p=h.indexOfName(a),d=h.getItemVisual(p,"style"),f=h.getItemVisual(p,"legendIcon"),g=R_(d.fill);g&&0===g[3]&&(g[3]=.2,d=Sv(Sv({},d),{fill:G_(g,"rgba")}));var y=this._createItem(s,a,o,i,e,t,{},d,f,u,r);y.on("click",p6(y6,null,a,r,c)).on("mouseover",p6(m6,null,a,r,c)).on("mouseout",p6(x6,null,a,r,c)),n.ssr&&y.eachChild((function(t){var e=tI(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.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),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();d6(t,(function(t){var r=t.type,i=new QC({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),hD(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),YI(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,p=i.get("itemWidth"),d=i.get("itemHeight"),f=i.isSelected(e),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),v=r.get("icon"),m=function(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),d6(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?zP(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]);"inherit"===u.stroke&&(u.stroke=r[c]);"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity);s(u,r);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===d.stroke&&(d.stroke=r.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(l=v||l||"roundRect",r,a,s,h,f,c),x=new f6,_=r.getModel("textStyle");if(!Rv(t.getLegendIcon)||v&&"inherit"!==v){var b="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(function(t){var e=t.icon||"roundRect",n=aP(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:d,icon:l,iconRotate:b,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));var w="left"===o?p+5:-5,S=o,M=i.get("formatter"),C=e;zv(M)&&M?C=M.replace("{name}",null!=e?e:""):Rv(M)&&(C=M(e));var I=f?_.getTextColor():r.get("inactiveColor");x.add(new QC({style:dD(_,{text:C,x:w,y:d/2,fill:I,align:S,verticalAlign:"middle"},{inheritColor:I})}));var T=new zC({shape:x.getBoundingRect(),style:{fill:"transparent"}}),A=r.getModel("tooltip");return A.get("show")&&iD({el:T,componentModel:i,itemName:e,itemTooltipOption:A.option}),x.add(T),x.eachChild((function(t){t.silent=!0})),T.silent=!u,this.getContentGroup().add(x),YI(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();VE(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){VE("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?h[d]+=l[f]+p:u[d]+=c[f]+p,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+c[f],v[g]=Math.max(l[g],c[g]),v[y]=Math.min(0,c[y]+h[1-d]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(GO);function y6(t,e,n,r){x6(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),m6(t,e,n,r)}function v6(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(e=n[r].states.emphasis);)r++;return e&&e.hoverLayer}function m6(t,e,n,r){v6(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function x6(t,e,n,r){v6(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var _6=g6;function b6(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function w6(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name)),Av(n.getData(),(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function S6(t){t.registerComponentModel(h6),t.registerComponentView(_6),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,b6),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",Lv(w6,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Lv(w6,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Lv(w6,"inverseSelect")),t.registerAction("legendSelect","legendselected",Lv(w6,"select")),t.registerAction("legendUnSelect","legendunselected",Lv(w6,"unSelect"))}(t)}function M6(t,e,n){var r=[1,1];r[t.getOrient().index]=0,GE(e,n,{type:"box",ignoreSize:!!r})}var C6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=WE(e);t.prototype.init.call(this,e,n,r),M6(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),M6(this,this.option,e)},e.type="legend.scroll",e.defaultOption=FD(h6.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}),e}(h6),I6=Sw,T6=["width","height"],A6=["x","y"],D6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return h(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new I6),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new I6)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=Pv(c)?c:[c,c];d("pagePrev",0);var p=n.getModel("pageTextStyle");function d(t,e){var r=t+"DataIndex",o=tD(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:Ov(l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new QC({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=T6[s],u=A6[s],c=T6[1-s],h=A6[1-s];i&&VE("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=_v(n);i&&(g[l]=n[l]-d[l]-p);var y=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===o)f[s]+=y[l]+p;else{var v=d[l]+p;f[s]-=v,y[u]-=v}y[l]+=d[l]+p,f[1-s]+=y[h]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[h]=Math.min(y[h],d[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;VE(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),VE("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=h[i]>n[i],f=[-h.x,-h.y];e||(f[r]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=$v(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?y[r]+=n[i]-p[i]:g[r]+=p[i]+v);y[1-r]+=h[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(y);var m={x:0,y:0};if(m[i]=d?n[i]:h[i],m[o]=Math.max(h[o],p[o]),m[a]=Math.min(0,p[a]+y[1-r]),u.__rectSize=n[i],d){var x={x:0,y:0};x[i]=Math.max(n[i]-p[i]-v,0),x[o]=m[o],u.setClipPath(new zC({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&AA(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),m},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;Av(["pagePrev","pageNext"],(function(r){var i=null!=e[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",zv(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=T6[i],a=A6[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=m(u);p.contentPosition[i]=-d.s;for(var f=s+1,g=d,y=d,v=null;f<=c;++f)(!(v=m(l[f]))&&y.e>g.s+r||v&&!x(v,g.s))&&(g=y.i>g.i?y:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),y=v;for(f=s-1,g=d,y=d,v=null;f>=-1;--f)(v=m(l[f]))&&x(y,v.s)||!(g.i<y.i)||(y=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=v;return p;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(_6),E6=D6;function k6(t){$R(S6),t.registerComponentModel(C6),t.registerComponentView(E6),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}var N6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="dataZoom.inside",e.defaultOption=FD(c5.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(c5),O6=IS();function L6(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function P6(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function R6(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function z6(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=O6(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=am());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){Av(l5(t).infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,function(t,e){var n={model:e,containsPoint:Lv(R6,e),dispatchAction:Lv(P6,t),dataZoomInfoMap:null,controller:null},r=n.controller=new VH(t.getZr());return Av(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var r=[];n.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[t],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=am())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var a=function(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),rL(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else L6(r,t)}))}))}var V6=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return h(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){O6(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}(r,e,{pan:Ov(B6.pan,this),zoom:Ov(B6.zoom,this),scrollMove:Ov(B6.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=O6(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||L6(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(d5),B6={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=j6[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return jZ(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:F6((function(t,e,n,r,i,o){var a=j6[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:F6((function(t,e,n,r,i,o){return j6[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n).signal*(t[1]-t[0])*o.scrollDelta}))};function F6(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return jZ(t(a,s,e,n,r,i),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var j6={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},G6=V6;function W6(t){_5(t),t.registerComponentModel(N6),t.registerComponentView(G6),z6(t)}var H6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=FD(c5.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"}}}),e}(c5),U6=zC,Y6="horizontal",X6="vertical",$6=["line","bar","candlestick","scatter"],Z6={easing:"cubicOut",duration:100,delay:0},q6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return h(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Ov(this._onBrush,this),this._onBrushEnd=Ov(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),rL(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){iL(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Sw;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},o=this._orient===Y6?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=WE(t.option);Av(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=BE(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===X6&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==Y6||i?n===Y6&&i?{scaleY:a?1:-1,scaleX:-1}:n!==X6||i?{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=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new U6({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new U6({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Ov(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,p=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],g=[],y=d[1]/(i.count()-1),v=0,m=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(m>0&&e%m)v+=y;else{var n=null==t||isNaN(t)||""===t,r=n?0:kw(t,u,p,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([v,0]),g.push([v,0])),f.push([v,r]),g.push([v,r]),v+=y,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=w(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new Sw,r=new ZT({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new KT({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(i,o){Av(t.getAxisProxy(i,o).getTargetSeriesModels(),(function(t){if(!(n||!0!==e&&Cv($6,t.get("type"))<0)){var a,s=r.getComponent(a5(i),o).axis,l=function(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}(i),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new U6({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new U6({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Av([0,1],(function(e){var o=a.get("handleIcon");!rP[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o,"production"!==process.env.NODE_ENV&&oS("handleIcon now needs 'path://' prefix when using a path string"));var s=aP(o,-1,0,2,2,null,!0);s.attr({cursor:K6(this._orient),draggable:!0,drift:Ov(this._onDragMove,this,e),ondragend:Ov(this._onDragEnd,this),onmouseover:Ov(this._showDataInfo,this,!0),onmouseout:Ov(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Nw(u,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(),YI(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=a.getModel("textStyle");t.add(r[e]=new QC({silent:!0,invisible:!0,style:dD(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var p=Nw(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new zC({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=aP(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(p,10));(h=e.moveZone=new zC({invisible:!0,shape:{y:o[1]-y,height:p+y}})).on("mouseover",(function(){s.enterEmphasis(d)})).on("mouseout",(function(){s.leaveEmphasis(d)})),i.add(d),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:K6(this._orient),drift:Ov(this._onDragMove,this,"all"),ondragstart:Ov(this._showDataInfo,this,!0),ondragend:Ov(this._onDragEnd,this),onmouseover:Ov(this._showDataInfo,this,!0),onmouseout:Ov(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[kw(t[0],[0,100],e,!0),kw(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];jZ(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?kw(o.minSpan,a,i,!0):null,null!=o.maxSpan?kw(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Lw([kw(r[0],i,a,!0),kw(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=Lw(n.slice()),i=this._size;Av([0,1],(function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new zC,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Lw(this._handleEnds.slice());function h(t){var e=$A(n.handles[t].parent,this.group),a=qA(0===t?"right":"left",e),s=this._handleWidth/2+5,l=ZA([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:i===Y6?"middle":a,align:i===Y6?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(i,20));return Rv(r)?r(t,o):zv(r)?r.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,Km(r.event);var i=ZA([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,i[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new ux(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Lw([kw(n.x,r,i,!0),kw(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Km(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new U6({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Z6:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=l5(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(d5);function K6(t){return"vertical"===t?"ns-resize":"ew-resize"}var J6=q6;function Q6(t){t.registerComponentModel(H6),t.registerComponentView(J6),_5(t)}var t8=function(t,e,n){var r=_v((e8[t]||{})[e]);return n&&Pv(r)?r[r.length-1]:r},e8={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]}},n8=NX.mapVisual,r8=NX.eachVisual,i8=Pv,o8=Av,a8=Lw,s8=kw,l8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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 h(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&U3(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=Ov(t,this),this.controllerVisuals=H3(this.option.controller,e,t),this.targetVisuals=H3(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=pS(t),e},e.prototype.eachTargetSeries=function(t,e){Av(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],Pv(t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return zv(s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):Rv(s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=a8([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});bv(r,n),bv(i,n);var o=this.isCategory();function a(n){i8(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,r),a.call(this,i),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},o8(r,(function(t,e){if(NX.isValidType(e)){var n=t8(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";o8(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&_v(e)||(o?i:[i])),null==l.symbolSize&&(l.symbolSize=n&&_v(n)||(o?s[0]:[s[0],s[0]])),l.symbol=n8(l.symbol,(function(t){return"none"===t?i:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;r8(u,(function(t){t>c&&(c=t)})),l.symbolSize=n8(u,(function(t){return s8(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,i)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(XE),u8=[20,140],c8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=u8[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=u8[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Pv(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),Av(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Lw((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=h8(this,"outOfRange",this.getExtent()),n=h8(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=FD(l8.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)"}}),e}(l8);function h8(t,e,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var p8=c8,d8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return h(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=TE(e.get("padding")||0),r=t.getBoundingRect();t.add(new zC({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===e){var a=i.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)];return Av(NX.prepareVisualTypes(u),(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),NX.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;FE(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(GO),f8=d8,g8=[["left","right","width"],["top","bottom","height"]];function y8(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===r.orient?1:0,s=g8[a],l=[0,null,10],u={},c=0;c<3;c++)u[g8[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][a],p=BE(u,o,r.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*o[h[1]]?0:1]}function v8(t,e){return Av(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var m8=kw,x8=Av,_8=Math.min,b8=Math.max,w8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return h(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=Ov(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Ov(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new QC({style:dD(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=y8(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new Sw;s.add(l),l.add(n.outOfRange=S8()),l.add(n.inRange=S8(null,o?C8(this._orient):null,Ov(this._dragHandle,this,"all",!1),Ov(this._dragHandle,this,"all",!0))),l.setClipPath(new zC({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=b8(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=Ov(this._dragHandle,this,n,!1),s=Ov(this._dragHandle,this,n,!0),l=cw(t.get("handleSize"),r[0]),u=aP(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=C8(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Km(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),JI(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,p=new QC({cursor:c,draggable:!0,drift:a,onmousemove:function(t){Km(t.event)},ondragend:s,style:dD(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=d,f.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,r,i){var o=cw(t.get("indicatorSize"),n[0]),a=aP(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof DC){var l=a.style;a.useStyle(Sv({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new QC({silent:!0,invisible:!0,style:dD(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===i?r/2:6)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=c,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():M8(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[m8(e[0],n,r,!0),m8(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];jZ(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[m8(r[0],i,o,!0),m8(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),a=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new dA(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],r=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var i=1;i<100;i++){var o=t[0]+r*i;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:i/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Sw("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();x8([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=m8(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var p=ZA(n.handleLabelPoints[l],$A(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),p=m8(t,o,s,!0),d=a[0]-h/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=ZA(l.indicatorLabelPoint,$A(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:m?v:"middle",align:m?"center":v});var x={x:d,y:p,style:{fill:c}},_={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),y.animateTo(_,b)}else u.attr(x),y.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=_8(b8(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=_8(b8(i[0],t),i[1]);var a=function(t,e,n){var r=6,i=t.get("hoverLinkDataSize");i&&(r=m8(i,e,n,!0)/2);return r}(n,o,i),s=[t-a,t+a],l=m8(t,i,o,!0),u=[m8(s[0],i,o,!0),m8(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||M8(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=function(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=_S(t[r].seriesId,null);if(null==o)return;for(var a=pS(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(c,h);this._dispatchHighDown("downplay",v8(p[0],n)),this._dispatchHighDown("highlight",v8(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if($L(t.target,(function(t){var n=tI(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",v8(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,r){var i=$A(e,r?null:this.group);return Pv(t)?ZA(t,i,n):qA(t,i,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(f8);function S8(t,e,n,r){return new ZT({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Km(t.event)},ondragend:r})}function M8(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function C8(t){return"vertical"===t?"ns-resize":"ew-resize"}var I8=w8,T8={type:"selectDataRange",event:"dataRangeSelected",update:"update"},A8=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},D8=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r,i,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((r=e.stateList,i=e.targetVisuals,o=Ov(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},Av(r,(function(t){var e=NX.prepareVisualTypes(i[t]);s[t]=e})),{progress:function(t,e){var n,r;function l(t){return WL(e,r,t)}function u(t,n){UL(e,r,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var c=e.getStore();null!=(r=t.next());){var h=e.getRawDataItem(r);if(!h||!1!==h.visualMap)for(var p=null!=a?c.get(n,r):r,d=o(p),f=i[d],g=s[d],y=0,v=g.length;y<v;y++){var m=g[y];f[m]&&f[m].applyVisual(p,l,u)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(Ov(E8,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function E8(t,e,n,r){for(var i=e.targetVisuals[r],o=NX.prepareVisualTypes(i),a={color:HL(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,p)}return a.color;function h(t){return a[t]}function p(t,e){a[t]=e}}var k8=Av;function N8(t){var e=t&&t.visualMap;Pv(e)||(e=e?[e]:[]),k8(e,(function(t){if(t){O8(t,"splitList")&&!O8(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&Pv(e)&&k8(e,(function(t){Fv(t)&&(O8(t,"start")&&!O8(t,"min")&&(t.min=t.start),O8(t,"end")&&!O8(t,"max")&&(t.max=t.end))}))}}))}function O8(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var L8=!1;function P8(t){L8||(L8=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(T8,A8),Av(D8,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(N8))}function R8(t){t.registerComponentModel(p8),t.registerComponentView(I8),P8(t)}var z8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return h(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],V8[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=_v(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=Dv(this._pieceList,(function(t){return t=_v(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=NX.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}Av(e.pieces,(function(t){Av(r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),Av(n,(function(t,n){var r=!1;Av(this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&Av(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=t8(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,Av(r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;Av(r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=_v(t)},e.prototype.getValueState=function(t){var e=NX.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){NX.findPieceIndex(e,n)===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return Av(i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=FD(l8.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}),e}(l8),V8={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),Xw(t),Av(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;Av(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),B8(e,t)},pieces:function(t){var e=this.option;Av(e.pieces,(function(e,n){Fv(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&null==o[c];p++)o[c]=e[h[p]],a[c]=s[p],u[c]=2===p;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),"production"!==process.env.NODE_ENV&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=NX.retrieveVisuals(e),t.push(r)}),this),B8(e,t),Xw(t),Av(t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function B8(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var F8=z8,j8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return h(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=Xv(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),Av(l.viewPieceList,(function(r){var l=r.piece,u=new Sw;u.onclick=Ov(this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var p=this.visualMapModel.getValueState(h);u.add(new QC({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),VE(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:v8(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return y8(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new Sw,a=this.visualMapModel.textStyleModel;o.add(new QC({style:dD(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=Dv(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(aP(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=_v(n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,Av(i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}(f8),G8=j8;function W8(t){t.registerComponentModel(F8),t.registerComponentView(G8),P8(t)}var H8={label:{enabled:!0},decal:{show:!1}},U8=IS(),Y8={};function X8(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=_v(H8);bv(r.label,t.getLocaleModel().get("aria"),!1),bv(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var e=am();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),U8(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(Rv(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=_k(e.ecModel,e.name,Y8,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=e.getRawData(),a={},s=U8(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var r=a[t],i=o.getName(t)||t+"",c=_k(e.ecModel,i,s,l),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(h,c))}))}}function u(t,e){var n=t?Sv(Sv({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var r=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=Mv(o.option,r),!o.get("enabled"))return;var a=e.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,h=Math.min(l,c);if(l<1)return;var p=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();s=p?i(o.get(["general","withTitle"]),{title:p}):o.get(["general","withoutTitle"]);var d=[];s+=i(l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n<h){var r=void 0,a=e.get("name")?"withName":"withoutName";r=i(r=l>1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,_=t.getLocaleModel().get(["series","typeNames"]),_[x]||_.chart)});var s=e.getData();if(s.count()>u)r+=i(o.get(["data","partialData"]),{displayCnt:u});else r+=o.get(["data","allData"]);for(var c=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),f=[],g=0;g<s.count();g++)if(g<u){var y=s.getName(g),v=s.getValues(g),m=o.get(["data",y?"withName":"withoutName"]);f.push(i(m,{name:y,value:v.join(c)}))}r+=f.join(c)+p,d.push(r)}var x,_}));var f=o.getModel(["series","multiple","separator"]),g=f.get("middle"),y=f.get("end");s+=d.join(g)+y,a.setAttribute("aria-label",s)}()}function i(t,e){if(!zv(t))return t;var n=t;return Av(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function $8(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},Av(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var Z8={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},q8=function(){function t(t){if(null==(this._condVal=zv(t)?new RegExp(t):Uv(t)?t:null)){var e="";"production"!==process.env.NODE_ENV&&(e=sS("Illegal regexp",t,"in")),lS(e)}}return t.prototype.evaluate=function(t){var e=typeof t;return zv(e)?this._condVal.test(t):!!Bv(e)&&this._condVal.test(t+"")},t}(),K8=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),J8=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),Q8=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),t9=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),e9=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?n:e))return!1;return!0},t}();function n9(t,e){if(!0===t||!1===t){var n=new K8;return n.value=t,n}var r="";return i9(t)||("production"!==process.env.NODE_ENV&&(r=sS("Illegal config. Expect a plain object but actually",t)),lS(r)),t.and?r9("and",t,e):t.or?r9("or",t,e):t.not?function(t,e){var n=t.not,r="";"production"!==process.env.NODE_ENV&&(r=sS('"not" condition should only be `not: {}`.',"Illegal condition:",t));i9(n)||lS(r);var i=new t9;i.child=n9(n,e),i.child||lS(r);return i}(t,e):function(t,e){for(var n="",r=e.prepareGetValue(t),i=[],o=Nv(t),a=t.parser,s=a?VN(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=cm(Z8,u)?Z8[u]:u,h=t[u],p=s?s(h):h,d=WN(c,p)||"reg"===c&&new q8(p);d||("production"!==process.env.NODE_ENV&&(n=sS('Illegal relational operation: "'+u+'" in condition:',t)),lS(n)),i.push(d)}}i.length||("production"!==process.env.NODE_ENV&&(n=sS("Relational condition must have at least one operator.","Illegal condition:",t)),lS(n));var f=new e9;return f.valueGetterParam=r,f.valueParser=s,f.getValue=e.getValue,f.subCondList=i,f}(t,e)}function r9(t,e,n){var r=e[t],i="";"production"!==process.env.NODE_ENV&&(i=sS('"and"/"or" condition should only be `'+t+": [...]` and must not be empty array.","Illegal condition:",e)),Pv(r)||lS(i),r.length||lS(i);var o="and"===t?new J8:new Q8;return o.children=Dv(r,(function(t){return n9(t,n)})),o.children.length||lS(i),o}function i9(t){return Fv(t)&&!Tv(t)}var o9=function(){function t(t,e){this._cond=n9(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var a9={type:"echarts:filter",transform:function(t){for(var e,n,r,i=t.upstream,o=(n=t.config,r={valueGetterAttrMap:am({dimension:!0}),prepareGetValue:function(t){var e="",n=t.dimension;cm(t,"dimension")||("production"!==process.env.NODE_ENV&&(e=sS('Relation condition must has prop "dimension" specified.',"Illegal condition:",t)),lS(e));var r=i.getDimensionInfo(n);return r||("production"!==process.env.NODE_ENV&&(e=sS("Can not find dimension info via: "+n+".\n","Existing dimensions: ",i.cloneAllDimensionInfo(),".\n","Illegal condition:",t,".\n")),lS(e)),{dimIdx:r.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new o9(n,r)),a=[],s=0,l=i.count();s<l;s++)e=i.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}},s9="";"production"!==process.env.NODE_ENV&&(s9=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var l9={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=pS(n);i.length||("production"!==process.env.NODE_ENV&&(r="Empty `config` in sort transform."),lS(r));var o=[];Av(i,(function(t){var n=t.dimension,i=t.order,a=t.parser,s=t.incomparable;if(null==n&&("production"!==process.env.NODE_ENV&&(r='Sort transform config must has "dimension" specified.'+s9),lS(r)),"asc"!==i&&"desc"!==i&&("production"!==process.env.NODE_ENV&&(r='Sort transform config must has "order" specified.'+s9),lS(r)),s&&"min"!==s&&"max"!==s){var l="";"production"!==process.env.NODE_ENV&&(l='incomparable must be "min" or "max" rather than "'+s+'".'),lS(l)}if("asc"!==i&&"desc"!==i){var u="";"production"!==process.env.NODE_ENV&&(u='order must be "asc" or "desc" rather than "'+i+'".'),lS(u)}var c=e.getDimensionInfo(n);c||("production"!==process.env.NODE_ENV&&(r=sS("Can not find dimension info via: "+n+".\n","Existing dimensions: ",e.cloneAllDimensionInfo(),".\n","Illegal config:",t,".\n")),lS(r));var h=a?VN(a):null;a&&!h&&("production"!==process.env.NODE_ENV&&(r=sS("Invalid parser name "+a+".\n","Illegal config:",t,".\n")),lS(r)),o.push({dimIdx:c.index,parser:h,comparator:new jN(i,s)})}));var a=e.sourceFormat;a!==QE&&a!==tk&&("production"!==process.env.NODE_ENV&&(r='sourceFormat "'+a+'" is not supported yet'),lS(r));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var r=0;r<o.length;r++){var i=o[r],a=e.retrieveValueFromItem(t,i.dimIdx),s=e.retrieveValueFromItem(n,i.dimIdx);i.parser&&(a=i.parser(a),s=i.parser(s));var l=i.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};var u9=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return h(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new lO(this),uO(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),uO(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:ik},e}(XE),c9=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return h(e,t),e.type="dataset",e}(GO);var h9=tC.CMD;function p9(t,e){return Math.abs(t-e)<1e-5}function d9(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,p=0;function d(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,r,i){p9(t,r)&&p9(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),p=Math.cos(n),d=Math.sin(n),f=c*o+r,g=h*a+i,y=p*o+r,v=d*a+i,m=o*l*u,x=a*l*u;e.push(f-m*h,g+x*c,y+m*d,v-x*p,y,v)}for(var y=0;y<s;){var v=a[y++],m=1===y;switch(m&&(h=u=a[y],p=c=a[y+1],v!==h9.L&&v!==h9.C&&v!==h9.Q||(e=[h,p])),v){case h9.M:u=h=a[y++],c=p=a[y++],d(h,p);break;case h9.L:f(u,c,n=a[y++],r=a[y++]),u=n,c=r;break;case h9.C:e.push(a[y++],a[y++],a[y++],a[y++],u=a[y++],c=a[y++]);break;case h9.Q:n=a[y++],r=a[y++],i=a[y++],o=a[y++],e.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),u=i,c=o;break;case h9.A:var x=a[y++],_=a[y++],b=a[y++],w=a[y++],S=a[y++],M=a[y++]+S;y+=1;var C=!a[y++];n=Math.cos(S)*b+x,r=Math.sin(S)*w+_,m?d(h=n,p=r):f(u,c,n,r),u=Math.cos(M)*b+x,c=Math.sin(M)*w+_;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 h9.R:h=u=a[y++],p=c=a[y++],n=h+a[y++],r=p+a[y++],d(n,p),f(n,p,n,r),f(n,r,h,r),f(h,r,h,p),f(h,p,n,p);break;case h9.Z:e&&f(u,c,h,p),u=h,c=p}}return e&&e.length>2&&l.push(e),l}function f9(t,e,n,r,i,o,a,s,l,u){if(p9(t,n)&&p9(e,r)&&p9(i,a)&&p9(o,s))l.push(a,s);else{var c=2/u,h=c*c,p=a-t,d=s-e,f=Math.sqrt(p*p+d*d);p/=f,d/=f;var g=n-t,y=r-e,v=i-a,m=o-s,x=g*g+y*y,_=v*v+m*m;if(x<h&&_<h)l.push(a,s);else{var b=p*g+d*y,w=-p*v-d*m;if(x-b*b<h&&b>=0&&_-w*w<h&&w>=0)l.push(a,s);else{var S=[],M=[];u_(t,n,i,a,.5,S),u_(e,r,o,s,.5,M),f9(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),f9(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function g9(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=n-a*s;if(c>0)for(u=0;u<c;u++)l[u%a]+=1;return l}function y9(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),h=g9([l,u],c?0:1,e),p=(c?s:u)/h.length,d=0;d<h.length;d++)for(var f=(c?u:s)/h[d],g=0;g<h[d];g++){var y={};c?(y.startAngle=o+p*d,y.endAngle=o+p*(d+1),y.r0=r+f*g,y.r=r+f*(g+1)):(y.startAngle=o+f*g,y.endAngle=o+f*(g+1),y.r0=r+p*d,y.r=r+p*(d+1)),y.clockwise=t.clockwise,y.cx=t.cx,y.cy=t.cy,n.push(y)}}function v9(t,e,n,r){return t*r-n*e}function m9(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,p=v9(c,h,l,u);if(Math.abs(p)<1e-6)return null;var d=v9(t-i,e-o,c,h)/p;return d<0||d>1?null:new ux(d*l+t,d*u+e)}function x9(t,e,n){var r=new ux;ux.sub(r,n,e),r.normalize();var i=new ux;return ux.sub(i,t,e),i.dot(r)}function _9(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function b9(t){var e=t.points,n=[],r=[];DM(e,n,r);var i=new xx(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new ux,c=new ux;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),function(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],l=m9(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:x9(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var p=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],f=[p],g=[d];for(o=u.idx+1;o<=c.idx;o++)_9(f,t[o].slice());for(_9(f,d),_9(f,p),o=c.idx+1;o<=u.idx+r;o++)_9(g,t[o%r].slice());return _9(g,p),_9(g,d),[{points:f},{points:g}]}(e,u,c)}function w9(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);w9(t,o[0],i,r),w9(t,o[1],n-i,r)}return r}function S9(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function M9(t,e){var n,r=[],i=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=g9([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,p=0;p<a.length;p++)for(var d=t[l]/a[p],f=0;f<a[p];f++){var g={};g[u]=p*h,g[c]=f*d,g[s]=h,g[l]=d,g.x+=t.x,g.y+=t.y,n.push(g)}}(i,e,r),n=zC;break;case"sector":y9(i,e,r),n=WT;break;case"circle":y9({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},e,r),n=WT;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Dv(function(t,e){var n=d9(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],p=o[u++],d=o[u++],f=o[u++],g=o[u++];f9(s,l,c,h,p,d,f,g,a,e),s=f,l=g}r.push(a)}return r}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),l=s.length;if(0===l)w9(b9,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,h=Dv(s,(function(t){var e=[],n=[];DM(t,e,n);var r=(n[1]-e[1])*(n[0]-e[0]);return c+=r,{poly:t,area:r}}));h.sort((function(t,e){return e.area-t.area}));var p=e;for(u=0;u<l;u++){var d=h[u];if(p<=0)break;var f=u===l-1?p:Math.ceil(d.area/c*e);f<0||(w9(b9,{points:d.poly},f,r),p-=f)}}n=ZT}if(!n)return function(t,e){for(var n=[],r=0;r<e;r++)n.push(bT(t));return n}(t,e);var g=[];for(u=0;u<r.length;u++){var y=new n;y.setShape(r[u]),S9(t,y),g.push(y)}return g}function C9(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],o=[],a=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],p=l,d=2;d<s;){var f=a[d-2],g=a[d-1],y=a[d++],v=a[d++],m=a[d++],x=a[d++],_=a[d++],b=a[d++];if(p<=0)h.push(y,v,m,x,_,b);else{for(var w=Math.min(p,c-1)+1,S=1;S<=w;S++){var M=S/w;u_(f,y,m,_,M,i),u_(g,v,x,b,M,o),f=i[3],g=o[3],h.push(i[1],o[1],i[2],o[2],f,g),y=i[5],v=o[5],m=i[6],x=o[6]}p-=w-1}}return a===t?[h,e]:[t,h]}function I9(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function T9(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,r+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function A9(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,p=0;p<s;p+=2){var d=0===p?c:(c+p-2)%l+2,f=t[d]-n[0],g=t[d+1]-n[1],y=e[p]-r[0]-f,v=e[p+1]-r[1]-g;h+=y*y+v*v}h<o&&(o=h,a=u)}return a}function D9(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function E9(t){return t.__isCombineMorphing}var k9="__mOriginal_";function N9(t,e,n){var r=k9+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function O9(t,e){var n=k9+e;t[n]&&(t[e]=t[n],t[n]=null)}function L9(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function P9(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=function(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(r=c=(n=C9(l,u))[0],i=h=n[1]):(h=I9(i||l,l),c=l):(c=I9(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}(d9(n),d9(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&L9(o,s),l&&L9(a,l),N9(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var u=function(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=T9(s),c=T9(l);null==i&&(i=u[2]<0!=c[2]<0);var h=[],p=[],d=0,f=1/0,g=[],y=s.length;i&&(s=D9(s));for(var v=6*A9(s,l,u,c),m=y-2,x=0;x<m;x+=2){var _=(v+x)%m+2;h[x+2]=s[_]-u[0],h[x+3]=s[_+1]-u[1]}if(h[0]=s[v]-u[0],h[1]=s[v+1]-u[1],n>0)for(var b=r/n,w=-r/2;w<=r/2;w+=b){var S=Math.sin(w),M=Math.cos(w),C=0;for(x=0;x<s.length;x+=2){var I=h[x],T=h[x+1],A=l[x]-c[0],D=l[x+1]-c[1],E=A*M-D*S,k=A*S+D*M;g[x]=E,g[x+1]=k;var N=E-I,O=k-T;C+=N*N+O*O}if(C<f){f=C,d=w;for(var L=0;L<g.length;L++)p[L]=g[L]}}else for(var P=0;P<y;P+=2)p[P]=l[P]-c[0],p[P+1]=l[P+1]-c[1];o.push({from:h,to:p,fromCp:u,toCp:c,rotation:-d})}return o}(o,a,10,Math.PI),c=[];N9(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,h=a.rotation*n,p=a.fromCp,d=a.toCp,f=Math.sin(h),g=Math.cos(h);Im(i,p,d,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],x=v*r+(S=l[y])*n,_=m*r+(M=l[y+1])*n;c[y]=x*g-_*f+i[0],c[y+1]=x*f+_*g+i[1]}var b=c[0],w=c[1];t.moveTo(b,w);for(y=2;y<s.length;){var S=c[y++],M=c[y++],C=c[y++],I=c[y++],T=c[y++],A=c[y++];b===S&&w===M&&C===T&&I===A?t.lineTo(T,A):t.bezierCurveTo(S,M,C,I,T,A),b=T,w=A}}}})}function R9(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;return P9(t,e),e.__morphT=0,e.animateTo({__morphT:1},Mv({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){O9(e,"buildPath"),O9(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),r&&r()}},n)),e}function z9(t,e,n,r,i,o){t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var a,s=0,l=32768;l>0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function V9(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Dv(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]}));return Dv(o,(function(o,a){return{cp:o,z:z9(o[0],o[1],e,n,r,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function B9(t){return M9(t.path,t.count)}function F9(t){return Pv(t[0])}function j9(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var G9={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=bT(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function W9(t,e,n,r,i,o){if(t.length&&e.length){var a=IA("update",r,i);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);F9(t)&&(s=t,l=e),F9(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,p=s?j9(l,s):j9(h?e:t,[h?t:e]),d=0,f=0;f<p.length;f++)d+=p[f].many.length;var g=0;for(f=0;f<p.length;f++)y(p[f],h,g,d),g+=p[f].many.length}}function y(t,e,r,i,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var h=Mv({dividePath:G9[n],individualDelay:u&&function(t,e,n,o){return u(t+r,i)}},c),p=e?function(t,e,n){var r=[];!function t(e){for(var n=0;n<e.length;n++){var i=e[n];E9(i)?t(i.childrenRef()):i instanceof wC&&r.push(i)}}(t);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||B9)({path:e,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=V9(r),o=V9(o);for(var a=n.done,s=n.during,l=n.individualDelay,u=new tw,c=0;c<i;c++){var h=r[c],p=o[c];p.parent=e,p.copyTransform(u),l||P9(h,p)}function d(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,O9(e,"addSelfToZr"),O9(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},N9(e,"addSelfToZr",{after:function(t){d(t)}}),N9(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l){var y=g,v=function(){0==--y&&(f(),a&&a())};for(c=0;c<g;c++){var m=l?Mv({delay:(n.delay||0)+l(c,g,r[c],o[c]),done:v},n):n;R9(r[c],o[c],m)}}else e.__morphT=0,e.animateTo({__morphT:1},Mv({during:function(t){for(var n=0;n<g;n++){var r=o[n];r.__morphT=e.__morphT,r.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)O9(t[e],"updateTransform");a&&a()}},n));return e.__zr&&d(e.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}(s,l,h):function(t,e,n){var r=e.length,i=[],o=n.dividePath||B9;if(E9(t)){!function t(e){for(var n=0;n<e.length;n++){var r=e[n];E9(r)?t(r.childrenRef()):r instanceof wC&&i.push(r)}}(t.childrenRef());var a=i.length;if(a<r)for(var s=0,l=a;l<r;l++)i.push(bT(i[s++%a]));i.length=r}else{i=o({path:t,count:r});var u=t.getComputedTransform();for(l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}i=V9(i),e=V9(e);var c=n.individualDelay;for(l=0;l<r;l++){var h=c?Mv({delay:(n.delay||0)+c(l,r,i[l],e[l])},n):n;R9(i[l],e[l],h)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}(l,s,h),d=p.fromIndividuals,f=p.toIndividuals,g=d.length,v=0;v<g;v++){m=u?Mv({delay:u(v,g)},c):c;o(d[v],f[v],e?s[v]:t.one,e?t.one:s[v],m)}else{var m,x=e?s[0]:l,_=e?l:s[0];if(E9(x))y({many:[x],one:_},!0,r,i,!0);else R9(x,_,m=u?Mv({delay:u(r,i)},c):c),o(x,_,x,_,m)}}}function H9(t){if(!t)return[];if(Pv(t)){for(var e=[],n=0;n<t.length;n++)e.push(H9(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof wC&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}var U9=1e4,Y9=0,X9=1,$9=2,Z9=IS();function q9(t,e,n,r){var i=function(t,e){for(var n=t.dimensions,r=0;r<n.length;r++){var i=t.getDimensionInfo(n[r]);if(i&&0===i.otherDims[e])return n[r]}}(t,r?"itemChildGroupId":"itemGroupId");if(i){var o=function(t,e,n){var r=t.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=t.get(r.name,e);return i&&i.categories[o]||o+""}}(t,e,i);return o}var a=t.getRawDataItem(e),s=r?"childGroupId":"groupId";return a&&a[s]?a[s]+"":r?void 0:n||t.getId(e)}function K9(t){var e=[];return Av(t,(function(t){var n=t.data,r=t.dataGroupId;if(n.count()>U9)"production"!==process.env.NODE_ENV&&rS("Universal transition is disabled on large data > 10k.");else for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:q9(n,o,r,!1),childGroupId:q9(n,o,r,!0),divide:t.divide,dataIndex:o})})),e}function J9(t,e,n){t.traverse((function(t){t instanceof wC&&DA(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function Q9(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function t7(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function e7(t,e,n){var r=IA("update",n,e);r&&t.traverse((function(t){if(t instanceof _M){var e=function(t){return CA(t).oldStyle}(t);e&&t.animateFrom({style:e},r)}}))}function n7(t,e,n){var r=K9(t),i=K9(e);function o(t,e,n,r,i){(n||t)&&e.animateFrom({style:n&&n!==t?Sv(Sv({},n.style),t.style):t.style},i)}var a=!1,s=Y9,l=am(),u=am();r.forEach((function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)}));for(var c=0;c<i.length;c++){var h=i[c].groupId;if(u.get(h)){s=X9;break}var p=i[c].childGroupId;if(p&&l.get(p)){s=$9;break}}function d(t,e){return function(n){var r=n.data,i=n.dataIndex;return e?r.getId(i):t?s===X9?n.childGroupId:n.groupId:s===$9?n.childGroupId:n.groupId}}var f=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(r,i),g={};if(!f)for(c=0;c<i.length;c++){var y=i[c],v=y.data.getItemGraphicEl(y.dataIndex);v&&(g[v.id]=!0)}function m(t,e){var n=r[e],s=i[t],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(t7(c),u?(t7(u),Q9(u),a=!0,W9(H9(u),H9(c),s.divide,l,t,o)):J9(c,l,t)):c&&e7(c,s.dataIndex,l)}new JR(r,i,d(!0,f),d(!1,f),null,"multiple").update(m).updateManyToOne((function(t,e){var n=i[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=kv(Dv(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==u&&!g[t.id]}));u&&(t7(u),c.length?(Av(c,(function(t){t7(t),Q9(t)})),a=!0,W9(H9(c),H9(u),n.divide,l,t,o)):J9(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=kv(Dv(t,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==s})),u=i[t[0]].data.hostModel;l.length&&(Av(l,(function(t){return t7(t)})),s?(t7(s),Q9(s),a=!0,W9(H9(s),H9(l),n.divide,u,t[0],o)):Av(l,(function(e){return J9(e,u,t[0])})))}})).updateManyToMany((function(t,e){new JR(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return i[t].data.getId(i[t].dataIndex)})).update((function(n,r){m(t[n],e[r])})).execute()})).execute(),a&&Av(e,(function(t){var e=t.data.hostModel,r=e&&n.getViewOfSeriesModel(e),i=IA("update",e,0);r&&e.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse((function(t){t instanceof wC&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)}))}))}function r7(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function i7(t){return Pv(t)?t.sort().join(","):t}function o7(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function a7(t,e){for(var n=0;n<t.length;n++){if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}}$R([function(t){t.registerPainter("canvas",Ij)}]),$R([function(t){t.registerPainter("svg",mj)}]),$R([function(t){t.registerChartView(uG),t.registerSeriesModel(Aj),t.registerLayout(cG("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dG("line"))},function(t){t.registerChartView(FG),t.registerSeriesModel(yG),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Lv(oV,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aV("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dG("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},function(t){t.registerChartView(tW),t.registerSeriesModel(aW),YL("pie",t.registerAction),t.registerLayout(Lv(UG,"pie")),t.registerProcessor(YG("pie")),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Bv(r)&&!isNaN(r)&&r<0)}))}}}("pie"))},function(t){$R(cH),t.registerSeriesModel(lW),t.registerChartView(dW),t.registerLayout(cG("scatter"))},function(t){$R(EH),t.registerChartView(yH),t.registerSeriesModel(mH),t.registerLayout(hH),t.registerProcessor(YG("radar")),t.registerPreprocessor(fH)},function(t){$R(uY),t.registerChartView(FU),t.registerSeriesModel(GU),t.registerLayout(HU),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,WU),YL("map",t.registerAction)},function(t){t.registerChartView(AY),t.registerSeriesModel(UY),t.registerLayout(XY),t.registerVisual($Y),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,r=e.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var r=oY(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}(t)},function(t){t.registerSeriesModel(QY),t.registerChartView(yX),t.registerVisual(LX),t.registerLayout(XX),function(t){for(var e=0;e<ZY.length;e++)t.registerAction({type:ZY[e],update:"updateView"},hm);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var r=FY(t,["treemapZoomToNode","treemapRootToNode"],e);if(r){var i=e.getViewRoot();i&&(t.direction=GY(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))}))}(t)},function(t){t.registerChartView(J$),t.registerSeriesModel(aZ),t.registerProcessor(QX),t.registerVisual(t$),t.registerVisual(n$),t.registerLayout(f$),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,w$),t.registerLayout(M$),t.registerCoordinateSystem("graphView",{dimensions:YU.dimensions,create:C$}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},hm),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},hm),t.registerAction(sZ,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var r=oY(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))},function(t){t.registerChartView(pZ),t.registerSeriesModel(dZ)},function(t){t.registerChartView(vZ),t.registerSeriesModel(xZ),t.registerLayout(_Z),t.registerProcessor(YG("funnel"))},function(t){$R(rK),t.registerChartView(IZ),t.registerSeriesModel(DZ),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,NZ)},function(t){t.registerChartView(lK),t.registerSeriesModel(cK),t.registerLayout(hK),t.registerVisual(SK),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel(IK),t.registerChartView(OK),t.registerLayout(PK),t.registerTransform(RK)},function(t){t.registerChartView(ZK),t.registerSeriesModel(KK),t.registerPreprocessor(JK),t.registerVisual(oJ),t.registerLayout(lJ)},function(t){t.registerChartView(dJ),t.registerSeriesModel(gJ),t.registerLayout(cG("effectScatter"))},function(t){t.registerChartView(AJ),t.registerSeriesModel(OJ),t.registerLayout(IJ),t.registerVisual(RJ)},function(t){t.registerChartView(jJ),t.registerSeriesModel(GJ)},function(t){t.registerChartView(cQ),t.registerSeriesModel(hQ),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Lv(oV,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aV("pictorialBar"))},function(t){t.registerChartView(dQ),t.registerSeriesModel(gQ),t.registerLayout(yQ),t.registerProcessor(YG("themeRiver"))},function(t){t.registerChartView(SQ),t.registerSeriesModel(IQ),t.registerLayout(Lv(AQ,"sunburst")),t.registerProcessor(Lv(YG,"sunburst")),t.registerVisual(EQ),function(t){t.registerAction({type:xQ,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var r=FY(t,[xQ],e);if(r){var i=e.getViewRoot();i&&(t.direction=GY(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}))})),t.registerAction({type:_Q,update:"none"},(function(t,e,n){t=Sv({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=FY(t,[_Q],e);n&&(t.dataIndex=n.node.dataIndex)})),"production"!==process.env.NODE_ENV&&aS("sunburstHighlight","highlight"),n.dispatchAction(Sv(t,{type:"highlight"}))})),t.registerAction({type:bQ,update:"updateView"},(function(t,e,n){t=Sv({},t),"production"!==process.env.NODE_ENV&&aS("sunburstUnhighlight","downplay"),n.dispatchAction(Sv(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(D0),t.registerSeriesModel(LQ)}]),$R((function(t){$R(cH),$R(O1)})),$R((function(t){$R(O1),JW.registerAxisPointerClass("PolarAxisPointer",R1),t.registerCoordinateSystem("polar",K1),t.registerComponentModel(z1),t.registerComponentView(g2),bW(t,"angle",B1,d2),bW(t,"radius",F1,f2),t.registerComponentView(i2),t.registerComponentView(u2),t.registerLayout(Lv(p2,"bar"))})),$R(uY),$R((function(t){$R(O1),JW.registerAxisPointerClass("SingleAxisPointer",R2),t.registerComponentView(z2),t.registerComponentView(b2),t.registerComponentModel(S2),bW(t,"single",S2,S2.defaultOption),t.registerCoordinateSystem("single",D2)})),$R(rK),$R((function(t){t.registerComponentModel(B2),t.registerComponentView(j2),t.registerCoordinateSystem("calendar",U2)})),$R((function(t){t.registerComponentModel(q2),t.registerComponentView(Q2),t.registerPreprocessor((function(t){var e=t.graphic;Pv(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),$R((function(t){t.registerComponentModel(I5),t.registerComponentView(D5),M5("saveAsImage",k5),M5("magicType",R5),M5("dataView",H5),M5("dataZoom",y3),M5("restore",Z5),$R(b5)})),$R((function(t){$R(O1),t.registerComponentModel(v3),t.registerComponentView(B3),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},hm),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},hm)})),$R(O1),$R((function(t){t.registerComponentView(i4),t.registerComponentModel(a4),t.registerPreprocessor(j3),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Q3),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},hm),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},hm),M5("brush",l4)})),$R((function(t){t.registerComponentModel(u4),t.registerComponentView(c4)})),$R((function(t){t.registerComponentModel(d4),t.registerComponentView(w4),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var r=e.getComponent("timeline");return r&&null!=t.currentIndex&&(r.setCurrentIndex(t.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Mv({currentIndex:r.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(t),t.registerPreprocessor(S4)})),$R((function(t){t.registerComponentModel(k4),t.registerComponentView(H4),t.registerPreprocessor((function(t){I4(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),$R((function(t){t.registerComponentModel(U4),t.registerComponentView(Q4),t.registerPreprocessor((function(t){I4(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),$R((function(t){t.registerComponentModel(t6),t.registerComponentView(u6),t.registerPreprocessor((function(t){I4(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),$R((function(t){$R(S6),$R(k6)})),$R((function(t){$R(W6),$R(Q6)})),$R(W6),$R(Q6),$R((function(t){$R(R8),$R(W8)})),$R(R8),$R(W8),$R((function(t){t.registerPreprocessor($8),t.registerVisual(t.PRIORITY.VISUAL.ARIA,X8)})),$R((function(t){t.registerTransform(a9),t.registerTransform(l9)})),$R((function(t){t.registerComponentModel(u9),t.registerComponentView(c9)})),$R((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Av(pS(n.seriesTransition),(function(t){Av(pS(t.to),(function(t){for(var e=n.updatedSeries,r=0;r<e.length;r++)(null!=t.seriesIndex&&t.seriesIndex===e[r].seriesIndex||null!=t.seriesId&&t.seriesId===e[r].id)&&(e[r][kO]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var r=Z9(e);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Av(pS(i),(function(t){!function(t,e,n,r){var i=[],o=[];Av(pS(t.from),(function(t){var n=a7(e.oldSeries,t);n>=0&&i.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:o7(e.oldData[n]),groupIdDim:t.dimension})})),Av(pS(t.to),(function(t){var r=a7(n.updatedSeries,t);if(r>=0){var i=n.updatedSeries[r].getData();o.push({dataGroupId:e.oldDataGroupIds[r],data:i,divide:o7(i),groupIdDim:t.dimension})}})),i.length>0&&o.length>0&&n7(i,o,r)}(t,r,n,e)}));else{var o=function(t,e){var n=am(),r=am(),i=am();function o(t){n.get(t)&&rS("Duplicated seriesKey in universalTransition "+t)}return Av(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=r7(e),l=i7(s);r.set(l,{dataGroupId:o,data:a}),Pv(s)&&Av(s,(function(t){i.set(t,{key:l,dataGroupId:o,data:a})}))})),Av(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),a=t.getData(),s=r7(t),l=i7(s),u=r.get(l);if(u)"production"!==process.env.NODE_ENV&&o(l),n.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:o7(u.data),data:u.data}],newSeries:[{dataGroupId:e,divide:o7(a),data:a}]});else if(Pv(s)){"production"!==process.env.NODE_ENV&&o(l);var c=[];Av(s,(function(t){var e=r.get(t);e.data&&c.push({dataGroupId:e.dataGroupId,divide:o7(e.data),data:e.data})})),c.length&&n.set(l,{oldSeries:c,newSeries:[{dataGroupId:e,data:a,divide:o7(a)}]})}else{var h=i.get(s);if(h){var p=n.get(h.key);p||(p={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:o7(h.data)}],newSeries:[]},n.set(h.key,p)),p.newSeries.push({dataGroupId:e,data:a,divide:o7(a)})}}}})),n}(r,n);Av(o.keys(),(function(t){var n=o.get(t);n7(n.oldSeries,n.newSeries,e)}))}Av(n.updatedSeries,(function(t){t[kO]&&(t[kO]=!1)}))}for(var a=t.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<a.length;c++){var h=a[c].getData();h.count()<U9&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(h))}}))})),$R((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=tF(e).labelManager;r||(r=tF(e).labelManager=new QB),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=tF(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}));const s7=t=>{const e=(t=>{const{data:e,extraData:n,sort:r}=t;if(e&&r){const a=(i=[...e],"asc"===(o=r)?i.sort(((t,e)=>t.value-e.value)):"desc"===o&&i.sort(((t,e)=>e.value-t.value)),i),s=Yy(a.map((t=>t.label))),l=qy(a,s),u=qy([...n??[]],s);return{...t,data:l,extraData:u}}var i,o;return t})(t);switch(e.chartType){case exports.WinChartType.MINI_AREA:return(t=>{const e=Yy(t.data?.map((t=>t.type))),n=t.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:Yy(t.data?.map((t=>t.label)))},yAxis:{show:!1,min:t.yStart?.[0]},series:[...e.map(((e,r)=>({name:e,type:"line",smooth:!0,lineStyle:{width:2},showSymbol:!1,areaStyle:{opacity:.8,color:new dA(0,0,0,1,[{offset:0,color:zn(n?.[r]??sn[r],.5)},{offset:1,color:"#fff"}])},emphasis:{focus:"series"},data:t.data?.filter((t=>t.type===e)).map((t=>t.value))})))]}})(e);case exports.WinChartType.AREA:return(t=>{const e=Yy(t.data?.map((t=>t.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:Zy(t),yAxis:{min:t.yStart?.[0]},series:[...e.map(((e,n)=>({name:e,type:"line",smooth:!0,lineStyle:{width:2},showSymbol:!1,areaStyle:{opacity:.8,color:new dA(0,0,0,1,[{offset:0,color:zn(sn[n],.5)},{offset:1,color:"#fff"}])},emphasis:{focus:"series"},data:t.data?.filter((t=>t.type===e)).map((t=>t.value))})))]}})(e);case exports.WinChartType.LINE:return(t=>{const e=Yy(t.data?.map((t=>t.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:Zy(t),yAxis:{min:t.yStart?.[0]},series:e.map((e=>({name:e,type:"line",smooth:!1,lineStyle:{width:2},showSymbol:!0,emphasis:{focus:"series"},data:t.data?.filter((t=>t.type===e)).map((t=>t.value))})))}})(e);case exports.WinChartType.COLUMN:return(t=>{const e=Yy(t.data?.map((t=>t.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...Zy(t),axisPointer:{type:"shadow"}},yAxis:{min:t.yStart?.[0]},series:e.map((e=>({name:e,type:"bar",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:t.data?.filter((t=>t.type===e)).map((t=>({value:t.value,itemStyle:{borderRadius:t.value>0?[500,500,0,0]:[0,0,500,500]}})))})))}})(e);case exports.WinChartType.STACK_COLUMN:return(t=>{const e=Yy(t.data?.map((t=>t.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...Zy(t),axisPointer:{type:"shadow"}},yAxis:{min:t.yStart?.[0]},series:e.map((e=>({name:e,type:"bar",stack:"total",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:t.data?.filter((t=>t.type===e)).map((t=>({value:t.value})))})))}})(e);case exports.WinChartType.BAR:return(t=>{const e=Yy(t.data?.map((t=>t.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{},yAxis:{data:Yy(t.data?.map((t=>t.label))),axisTick:{alignWithLabel:!0},axisPointer:{type:"shadow"},min:t.yStart?.[0]},series:e.map((e=>({name:e,type:"bar",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:t.data?.filter((t=>t.type===e)).map((t=>({value:t.value,itemStyle:{borderRadius:[0,500,500,0]}})))})))}})(e);case exports.WinChartType.FUNNEL:return(t=>{const e=$y(t.data)?.map((t=>({value:t.value??0,name:t.type})))??[],n={type:"funnel",minSize:"20%",left:10,top:24,width:"76%",sort:"descending",data:e};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:t=>{const n=t.dataIndex;if(0===n)return"100%";const r=e[n-1].value;return Uy(t.value/r)}}}]}})(e);case exports.WinChartType.DUAL_LINE_BAR:return(t=>{const e=Yy(t.data?.map((t=>t.type))),n=Yy(t.extraData?.map((t=>t.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...Zy(t),axisPointer:{type:"shadow"}},yAxis:[{alignTicks:!0,min:t.yStart?.[0]},{alignTicks:!0,min:t.yStart?.[1]}],series:[...e.map((e=>({name:e,type:"bar",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:t.data?.filter((t=>t.type===e)).map((t=>({value:t.value,itemStyle:{borderRadius:t.value>0?[500,500,0,0]:[0,0,500,500]}})))}))),...n.map((e=>({name:e,type:"line",smooth:!0,yAxisIndex:1,showSymbol:!1,data:t.extraData?.filter((t=>t.type===e)).map((t=>t.value))})))]}})(e);case exports.WinChartType.STACK_DUAL_LINE_BAR:return(t=>{const e=Yy(t.data?.map((t=>t.type))),n=Yy(t.extraData?.map((t=>t.type)));return{tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{bottom:0,type:"scroll"},xAxis:{...Zy(t),axisPointer:{type:"shadow"}},yAxis:[{alignTicks:!0,min:t.yStart?.[0]},{alignTicks:!0,min:t.yStart?.[1]}],series:[...e.map((e=>({name:e,type:"bar",stack:"total",barGap:"30%",barCategoryGap:"30%",barMaxWidth:8,data:t.data?.filter((t=>t.type===e)).map((t=>({value:t.value})))}))),...n.map((e=>({name:e,type:"line",smooth:!0,yAxisIndex:1,showSymbol:!1,data:t.extraData?.filter((t=>t.type===e)).map((t=>t.value))})))]}})(e);case exports.WinChartType.PIE:return(t=>{const e=Xy(t.data?.map((t=>t.value)));return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},series:[{top:-30,type:"pie",radius:"50%",data:$y(t.data)?.map((e=>({value:e.value,name:t.reserveValueWithLabelType?e.label:e.type}))),label:{show:!0,fontSize:12,color:"rgba(0, 0, 0, 0.7)",position:"outside",formatter:t=>Uy(t.value/(e||1))},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}})(e);case exports.WinChartType.CYCLE:return(t=>{const e=Xy(t.data?.map((t=>t.value)));return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},series:[{top:-30,type:"pie",radius:["60%","48%"],data:$y(t.data)?.map((e=>({value:e.value,name:t.reserveValueWithLabelType?e.label:e.type}))),label:{show:!0,fontSize:12,color:"rgba(0, 0, 0, 0.7)",position:"outside",formatter:t=>Uy(t.value/(e||1))},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}],graphic:[{type:"text",left:"center",top:76,style:{text:Number(e.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"}}]}})(e);case exports.WinChartType.RADAR:return(t=>{const e=Yy(t.data?.map((e=>t.reserveValueWithLabelType?e.label:e.type)));return{tooltip:{trigger:"item"},legend:{bottom:0,type:"scroll"},radar:{shape:"circle",radius:"60%",indicator:Yy(t.data?.map((e=>t.reserveValueWithLabelType?e.type:e.label))).map((t=>({name:t}))),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:e.map(((e,n)=>({name:e,value:t.data?.filter((n=>t.reserveValueWithLabelType?n.label:n.type===e)).map((t=>t.value)),areaStyle:{color:zn(sn[n],.2)},label:{show:t.reserveValueWithLabelType,formatter:t=>t.value?.toString()}}))),emphasis:{lineStyle:{width:4}}}]}})(e);default:return{}}};var l7={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"}}}},u7={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"}}}},c7=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===h7}(t)}(t)};var h7="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function p7(t,e){return!1!==e.clone&&e.isMergeableObject(t)?v7((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function d7(t,e,n){return t.concat(e).map((function(t){return p7(t,n)}))}function f7(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function g7(t,e){try{return e in t}catch(t){return!1}}function y7(t,e,n){var r={};return n.isMergeableObject(t)&&f7(t).forEach((function(e){r[e]=p7(t[e],n)})),f7(e).forEach((function(i){(function(t,e){return g7(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(g7(t,i)&&n.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return v7;var n=e.customMerge(t);return"function"==typeof n?n:v7}(i,n)(t[i],e[i],n):r[i]=p7(e[i],n))})),r}function v7(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||d7,n.isMergeableObject=n.isMergeableObject||c7,n.cloneUnlessOtherwiseSpecified=p7;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):y7(t,e,n):p7(e,n)}v7.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return v7(t,n,e)}),{})};var m7=r(v7);RR("light",m7(l7,ln)),RR("dark",m7(u7,ln));const x7=({theme:e="light",className:n,style:r,extraOption:i,extraSeriesOption:o,...a})=>{const s=t.useRef(null),[l,c]=t.useState();return t.useEffect((()=>{const t=PR(s.current,e);c(t);const n=function(t,e){let n=null;return function(...r){clearTimeout(n),n=setTimeout((()=>{t.apply(globalThis,r)}),e)}}(t.resize,500);globalThis.addEventListener("resize",(()=>{n()}))}),[e]),t.useEffect((()=>{var t,e;l&&(l.setOption(m7((t=s7(a),e=o,Hy(t.series)&&Hy(e)&&e.forEach((e=>{t.series=t.series.map((t=>({...t,...t.name===e.name&&e})))})),t),i??{})),setTimeout((()=>{l.resize()}),500))}),[l,a,i,o]),u.jsx(en,{ref:s,className:n,style:r})};var _7=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};var b7=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}},w7=b7();var S7=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},M7="object"==typeof n&&n&&n.Object===Object&&n,C7=M7,I7="object"==typeof self&&self&&self.Object===Object&&self,T7=C7||I7||Function("return this")(),A7=T7.Symbol,D7=A7,E7=Object.prototype,k7=E7.hasOwnProperty,N7=E7.toString,O7=D7?D7.toStringTag:void 0;var L7=function(t){var e=k7.call(t,O7),n=t[O7];try{t[O7]=void 0;var r=!0}catch(t){}var i=N7.call(t);return r&&(e?t[O7]=n:delete t[O7]),i},P7=Object.prototype.toString;var R7=L7,z7=function(t){return P7.call(t)},V7=A7?A7.toStringTag:void 0;var B7=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":V7&&V7 in Object(t)?R7(t):z7(t)};var F7=function(t){return null!=t&&"object"==typeof t},j7=B7,G7=F7;var W7=function(t){return G7(t)&&"[object Arguments]"==j7(t)},H7=F7,U7=Object.prototype,Y7=U7.hasOwnProperty,X7=U7.propertyIsEnumerable,$7=W7(function(){return arguments}())?W7:function(t){return H7(t)&&Y7.call(t,"callee")&&!X7.call(t,"callee")},Z7=Array.isArray,q7={exports:{}};var K7=function(){return!1};!function(t,e){var n=T7,r=K7,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;t.exports=s}(q7,q7.exports);var J7=q7.exports,Q7=/^(?:0|[1-9]\d*)$/;var ttt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Q7.test(t))&&t>-1&&t%1==0&&t<e};var ett=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},ntt=B7,rtt=ett,itt=F7,ott={};ott["[object Float32Array]"]=ott["[object Float64Array]"]=ott["[object Int8Array]"]=ott["[object Int16Array]"]=ott["[object Int32Array]"]=ott["[object Uint8Array]"]=ott["[object Uint8ClampedArray]"]=ott["[object Uint16Array]"]=ott["[object Uint32Array]"]=!0,ott["[object Arguments]"]=ott["[object Array]"]=ott["[object ArrayBuffer]"]=ott["[object Boolean]"]=ott["[object DataView]"]=ott["[object Date]"]=ott["[object Error]"]=ott["[object Function]"]=ott["[object Map]"]=ott["[object Number]"]=ott["[object Object]"]=ott["[object RegExp]"]=ott["[object Set]"]=ott["[object String]"]=ott["[object WeakMap]"]=!1;var att=function(t){return itt(t)&&rtt(t.length)&&!!ott[ntt(t)]};var stt=function(t){return function(e){return t(e)}},ltt={exports:{}};!function(t,e){var n=M7,r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(ltt,ltt.exports);var utt=ltt.exports,ctt=att,htt=stt,ptt=utt&&utt.isTypedArray,dtt=ptt?htt(ptt):ctt,ftt=S7,gtt=$7,ytt=Z7,vtt=J7,mtt=ttt,xtt=dtt,_tt=Object.prototype.hasOwnProperty;var btt=function(t,e){var n=ytt(t),r=!n&>t(t),i=!n&&!r&&vtt(t),o=!n&&!r&&!i&&xtt(t),a=n||r||i||o,s=a?ftt(t.length,String):[],l=s.length;for(var u in t)!e&&!_tt.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mtt(u,l))||s.push(u);return s},wtt=Object.prototype;var Stt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||wtt)};var Mtt=function(t,e){return function(n){return t(e(n))}},Ctt=Mtt(Object.keys,Object),Itt=Stt,Ttt=Ctt,Att=Object.prototype.hasOwnProperty;var Dtt=function(t){if(!Itt(t))return Ttt(t);var e=[];for(var n in Object(t))Att.call(t,n)&&"constructor"!=n&&e.push(n);return e};var Ett=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},ktt=B7,Ntt=Ett;var Ott=function(t){if(!Ntt(t))return!1;var e=ktt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ltt=Ott,Ptt=ett;var Rtt=function(t){return null!=t&&Ptt(t.length)&&!Ltt(t)},ztt=btt,Vtt=Dtt,Btt=Rtt;var Ftt=function(t){return Btt(t)?ztt(t):Vtt(t)},jtt=w7,Gtt=Ftt;var Wtt=function(t,e){return t&&jtt(t,e,Gtt)},Htt=Rtt;var Utt=function(t,e){return function(n,r){if(null==n)return n;if(!Htt(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}},Ytt=Utt(Wtt);var Xtt=function(t){return t},$tt=Xtt;var Ztt=_7,qtt=Ytt,Ktt=function(t){return"function"==typeof t?t:$tt},Jtt=Z7;var Qtt=function(t,e){return(Jtt(t)?Ztt:qtt)(t,Ktt(e))},tet=r(Qtt),eet=T7["__core-js_shared__"],net=function(){var t=/[^.]+$/.exec(eet&&eet.keys&&eet.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var ret=function(t){return!!net&&net in t},iet=Function.prototype.toString;var oet=function(t){if(null!=t){try{return iet.call(t)}catch(t){}try{return t+""}catch(t){}}return""},aet=Ott,set=ret,uet=Ett,cet=oet,het=/^\[object .+?Constructor\]$/,pet=Function.prototype,det=Object.prototype,fet=pet.toString,get=det.hasOwnProperty,yet=RegExp("^"+fet.call(get).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var vet=function(t,e){return null==t?void 0:t[e]},met=function(t){return!(!uet(t)||set(t))&&(aet(t)?yet:het).test(cet(t))},xet=vet;var _et=function(t,e){var n=xet(t,e);return met(n)?n:void 0},bet=_et,wet=function(){try{var t=bet(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Met=wet;var Cet=function(t,e,n){"__proto__"==e&&Met?Met(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Iet=function(){this.__data__=[],this.size=0};var Tet=function(t,e){return t===e||t!=t&&e!=e},Aet=Tet;var Det=function(t,e){for(var n=t.length;n--;)if(Aet(t[n][0],e))return n;return-1},Eet=Det,ket=Array.prototype.splice;var Net=function(t){var e=this.__data__,n=Eet(e,t);return!(n<0)&&(n==e.length-1?e.pop():ket.call(e,n,1),--this.size,!0)},Oet=Det;var Let=function(t){var e=this.__data__,n=Oet(e,t);return n<0?void 0:e[n][1]},Pet=Det;var Ret=function(t){return Pet(this.__data__,t)>-1},zet=Det;var Vet=function(t,e){var n=this.__data__,r=zet(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Bet=Iet,Fet=Net,jet=Let,Get=Ret,Wet=Vet;function Het(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Het.prototype.clear=Bet,Het.prototype.delete=Fet,Het.prototype.get=jet,Het.prototype.has=Get,Het.prototype.set=Wet;var Uet=Het,Yet=Uet;var Xet=function(){this.__data__=new Yet,this.size=0};var $et=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Zet=function(t){return this.__data__.get(t)};var qet=function(t){return this.__data__.has(t)},Ket=_et(T7,"Map"),Jet=_et(Object,"create"),Qet=Jet;var tnt=function(){this.__data__=Qet?Qet(null):{},this.size=0};var ent=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},nnt=Jet,rnt=Object.prototype.hasOwnProperty;var int=function(t){var e=this.__data__;if(nnt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return rnt.call(e,t)?e[t]:void 0},ont=Jet,ant=Object.prototype.hasOwnProperty;var snt=function(t){var e=this.__data__;return ont?void 0!==e[t]:ant.call(e,t)},lnt=Jet;var unt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=lnt&&void 0===e?"__lodash_hash_undefined__":e,this},cnt=tnt,hnt=ent,pnt=int,dnt=snt,fnt=unt;function gnt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}gnt.prototype.clear=cnt,gnt.prototype.delete=hnt,gnt.prototype.get=pnt,gnt.prototype.has=dnt,gnt.prototype.set=fnt;var ynt=gnt,vnt=Uet,mnt=Ket;var xnt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var _nt=function(t,e){var n=t.__data__;return xnt(e)?n["string"==typeof e?"string":"hash"]:n.map},bnt=_nt;var wnt=function(t){var e=bnt(this,t).delete(t);return this.size-=e?1:0,e},Snt=_nt;var Mnt=function(t){return Snt(this,t).get(t)},Cnt=_nt;var Int=function(t){return Cnt(this,t).has(t)},Tnt=_nt;var Ant=function(t,e){var n=Tnt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Dnt=function(){this.size=0,this.__data__={hash:new ynt,map:new(mnt||vnt),string:new ynt}},Ent=wnt,knt=Mnt,Nnt=Int,Ont=Ant;function Lnt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Lnt.prototype.clear=Dnt,Lnt.prototype.delete=Ent,Lnt.prototype.get=knt,Lnt.prototype.has=Nnt,Lnt.prototype.set=Ont;var Pnt=Lnt,Rnt=Uet,znt=Ket,Vnt=Pnt;var Bnt=function(t,e){var n=this.__data__;if(n instanceof Rnt){var r=n.__data__;if(!znt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vnt(r)}return n.set(t,e),this.size=n.size,this},Fnt=Uet,jnt=Xet,Gnt=$et,Wnt=Zet,Hnt=qet,Unt=Bnt;function Ynt(t){var e=this.__data__=new Fnt(t);this.size=e.size}Ynt.prototype.clear=jnt,Ynt.prototype.delete=Gnt,Ynt.prototype.get=Wnt,Ynt.prototype.has=Hnt,Ynt.prototype.set=Unt;var Xnt=Ynt;var $nt=Pnt,Znt=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},qnt=function(t){return this.__data__.has(t)};function Knt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new $nt;++e<n;)this.add(t[e])}Knt.prototype.add=Knt.prototype.push=Znt,Knt.prototype.has=qnt;var Jnt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};var Qnt=function(t,e){return t.has(e)},trt=Knt,ert=Jnt,nrt=Qnt;var rrt=function(t,e,n,r,i,o){var a=1&n,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var h=-1,p=!0,d=2&n?new trt:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var f=t[h],g=e[h];if(r)var y=a?r(g,f,h,e,t,o):r(f,g,h,t,e,o);if(void 0!==y){if(y)continue;p=!1;break}if(d){if(!ert(e,(function(t,e){if(!nrt(d,e)&&(f===t||i(f,t,n,r,o)))return d.push(e)}))){p=!1;break}}else if(f!==g&&!i(f,g,n,r,o)){p=!1;break}}return o.delete(t),o.delete(e),p},irt=T7.Uint8Array;var ort=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};var art=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},srt=irt,lrt=Tet,urt=rrt,crt=ort,hrt=art,prt=A7?A7.prototype:void 0,drt=prt?prt.valueOf:void 0;var frt=function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new srt(t),new srt(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return lrt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=crt;case"[object Set]":var l=1&r;if(s||(s=hrt),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var c=urt(s(t),s(e),r,i,o,a);return a.delete(t),c;case"[object Symbol]":if(drt)return drt.call(t)==drt.call(e)}return!1};var grt=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},yrt=grt,vrt=Z7;var mrt=function(t,e,n){var r=e(t);return vrt(t)?r:yrt(r,n(t))};var xrt=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o};var _rt=xrt,brt=function(){return[]},wrt=Object.prototype.propertyIsEnumerable,Srt=Object.getOwnPropertySymbols,Mrt=mrt,Crt=Srt?function(t){return null==t?[]:(t=Object(t),_rt(Srt(t),(function(e){return wrt.call(t,e)})))}:brt,Irt=Ftt;var Trt=function(t){return Mrt(t,Irt,Crt)},Art=Object.prototype.hasOwnProperty;var Drt=function(t,e,n,r,i,o){var a=1&n,s=Trt(t),l=s.length;if(l!=Trt(e).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in e:Art.call(e,c)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var d=!0;o.set(t,e),o.set(e,t);for(var f=a;++u<l;){var g=t[c=s[u]],y=e[c];if(r)var v=a?r(y,g,c,e,t,o):r(g,y,c,t,e,o);if(!(void 0===v?g===y||i(g,y,n,r,o):v)){d=!1;break}f||(f="constructor"==c)}if(d&&!f){var m=t.constructor,x=e.constructor;m==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x||(d=!1)}return o.delete(t),o.delete(e),d},Ert=_et(T7,"DataView"),krt=Ket,Nrt=_et(T7,"Promise"),Ort=_et(T7,"Set"),Lrt=_et(T7,"WeakMap"),Prt=B7,Rrt=oet,zrt="[object Map]",Vrt="[object Promise]",Brt="[object Set]",Frt="[object WeakMap]",jrt="[object DataView]",Grt=Rrt(Ert),Wrt=Rrt(krt),Hrt=Rrt(Nrt),Urt=Rrt(Ort),Yrt=Rrt(Lrt),Xrt=Prt;(Ert&&Xrt(new Ert(new ArrayBuffer(1)))!=jrt||krt&&Xrt(new krt)!=zrt||Nrt&&Xrt(Nrt.resolve())!=Vrt||Ort&&Xrt(new Ort)!=Brt||Lrt&&Xrt(new Lrt)!=Frt)&&(Xrt=function(t){var e=Prt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Rrt(n):"";if(r)switch(r){case Grt:return jrt;case Wrt:return zrt;case Hrt:return Vrt;case Urt:return Brt;case Yrt:return Frt}return e});var $rt=Xnt,Zrt=rrt,qrt=frt,Krt=Drt,Jrt=Xrt,Qrt=Z7,tit=J7,eit=dtt,nit="[object Arguments]",rit="[object Array]",iit="[object Object]",oit=Object.prototype.hasOwnProperty;var ait=function(t,e,n,r,i,o){var a=Qrt(t),s=Qrt(e),l=a?rit:Jrt(t),u=s?rit:Jrt(e),c=(l=l==nit?iit:l)==iit,h=(u=u==nit?iit:u)==iit,p=l==u;if(p&&tit(t)){if(!tit(e))return!1;a=!0,c=!1}if(p&&!c)return o||(o=new $rt),a||eit(t)?Zrt(t,e,n,r,i,o):qrt(t,e,l,n,r,i,o);if(!(1&n)){var d=c&&oit.call(t,"__wrapped__"),f=h&&oit.call(e,"__wrapped__");if(d||f){var g=d?t.value():t,y=f?e.value():e;return o||(o=new $rt),i(g,y,n,r,o)}}return!!p&&(o||(o=new $rt),Krt(t,e,n,r,i,o))},sit=F7;var lit=function t(e,n,r,i,o){return e===n||(null==e||null==n||!sit(e)&&!sit(n)?e!=e&&n!=n:ait(e,n,r,i,t,o))},uit=Xnt,cit=lit;var hit=function(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var l=(s=n[i])[0],u=t[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in t))return!1}else{var h=new uit;if(r)var p=r(u,c,l,t,e,h);if(!(void 0===p?cit(c,u,3,r,h):p))return!1}}return!0},pit=Ett;var dit=function(t){return t==t&&!pit(t)},fit=dit,git=Ftt;var yit=function(t){for(var e=git(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,fit(i)]}return e};var vit=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}},mit=hit,xit=yit,_it=vit;var bit=function(t){var e=xit(t);return 1==e.length&&e[0][2]?_it(e[0][0],e[0][1]):function(n){return n===t||mit(n,t,e)}},wit=B7,Sit=F7;var Mit=function(t){return"symbol"==typeof t||Sit(t)&&"[object Symbol]"==wit(t)},Cit=Z7,Iit=Mit,Tit=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ait=/^\w*$/;var Dit=function(t,e){if(Cit(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Iit(t))||(Ait.test(t)||!Tit.test(t)||null!=e&&t in Object(e))},Eit=Pnt;function kit(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(kit.Cache||Eit),n}kit.Cache=Eit;var Nit=kit;var Oit=function(t){var e=Nit(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e},Lit=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pit=/\\(\\)?/g,Rit=Oit((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Lit,(function(t,n,r,i){e.push(r?i.replace(Pit,"$1"):n||t)})),e})),zit=Rit;var Vit=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},Bit=Vit,Fit=Z7,jit=Mit,Git=A7?A7.prototype:void 0,Wit=Git?Git.toString:void 0;var Hit=function t(e){if("string"==typeof e)return e;if(Fit(e))return Bit(e,t)+"";if(jit(e))return Wit?Wit.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Uit=Hit;var Yit=Z7,Xit=Dit,$it=zit,Zit=function(t){return null==t?"":Uit(t)};var qit=function(t,e){return Yit(t)?t:Xit(t,e)?[t]:$it(Zit(t))},Kit=Mit;var Jit=function(t){if("string"==typeof t||Kit(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Qit=qit,tot=Jit;var eot=function(t,e){for(var n=0,r=(e=Qit(e,t)).length;null!=t&&n<r;)t=t[tot(e[n++])];return n&&n==r?t:void 0},not=eot;var rot=function(t,e,n){var r=null==t?void 0:not(t,e);return void 0===r?n:r};var iot=function(t,e){return null!=t&&e in Object(t)},oot=qit,aot=$7,sot=Z7,lot=ttt,uot=ett,cot=Jit;var hot=function(t,e,n){for(var r=-1,i=(e=oot(e,t)).length,o=!1;++r<i;){var a=cot(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&uot(i)&&lot(a,i)&&(sot(t)||aot(t))},pot=iot,dot=hot;var fot=function(t,e){return null!=t&&dot(t,e,pot)},got=lit,yot=rot,vot=fot,mot=Dit,xot=dit,_ot=vit,bot=Jit;var wot=function(t,e){return mot(t)&&xot(e)?_ot(bot(t),e):function(n){var r=yot(n,t);return void 0===r&&r===e?vot(n,t):got(e,r,3)}};var Sot=function(t){return function(e){return null==e?void 0:e[t]}},Mot=eot;var Cot=function(t){return function(e){return Mot(e,t)}},Iot=Sot,Tot=Cot,Aot=Dit,Dot=Jit;var Eot=function(t){return Aot(t)?Iot(Dot(t)):Tot(t)},kot=bit,Not=wot,Oot=Xtt,Lot=Z7,Pot=Eot;var Rot=function(t){return"function"==typeof t?t:null==t?Oot:"object"==typeof t?Lot(t)?Not(t[0],t[1]):kot(t):Pot(t)},zot=Cet,Vot=Wtt,Bot=Rot;var Fot=function(t,e){var n={};return e=Bot(e),Vot(t,(function(t,r,i){zot(n,r,e(t,r,i))})),n},jot=r(Fot);var Got=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r},Wot=Ytt;var Hot=function(t,e,n,r){return Wot(t,(function(t,i,o){e(r,t,n(t),o)})),r},Uot=Got,Yot=Hot,Xot=Rot,$ot=Z7;var Zot=function(t,e){return function(n,r){var i=$ot(n)?Uot:Yot,o=e?e():{};return i(n,t,Xot(r),o)}},qot=Cet,Kot=Zot((function(t,e,n){qot(t,n,e)})),Jot=r(Kot),Qot=[{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"]}],tat=Qot.map((function(t){var e=t.label,n=t.value;return{label:e,value:n,alias:n.substring(0,1).toUpperCase()+n.substring(1,2)}}));Qot.map((function(t){var e=t.value;return{label:t.zhLabel,value:e,alias:e.substring(0,1).toUpperCase()+e.substring(1,2)}}));var eat=Jot(Qot,"value");function nat(t,e,n){var r=void 0===n?{}:n,i=r.path,o=void 0===i?"/":i,a=r.domain,s=r.expires,l=r.maxAge,u=void 0===l?2592e3:l,c=r.secure,h=r.sameSite;if(t){e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[()]/g,escape);var p=[];o&&p.push("path="+o),a&&p.push("domain="+a),s&&p.push("expires="+s),
|
|
23
|
-
//! important:"max-age" is not supported by IE6/7/8
|
|
24
|
-
u&&p.push("max-age="+u),c&&p.push("secure"),h&&p.push("samesite="+h),document.cookie=t+"="+e+";"+p.join(";")}}function rat(t){var e="",n=document.cookie?document.cookie.split("; "):[],r=/(%[0-9A-Z]{2})+/g;n.sort((function(t){return t.includes("domain="+window.location.hostname)?-1:0}));for(var i=0;i<n.length;i++){var o=n[i].split("=");try{if(t===o[0].replace(r,decodeURIComponent)){e=o.slice(1).join("=").replace(r,decodeURIComponent);break}}catch(t){}}return e}tat.slice(0,7);var iat="PANDA_LANG",oat="x-hng",aat="zh-CN",sat="__PANDA_INSTANCES",lat="_PANDA_EXUI",uat="__$i18n",cat="_PANDA_I18N",hat="__I18N_CACHED",pat="0.2.74",dat=function(t){var e;"undefined"!=typeof console&&(null===(e=window.__PANDA)||void 0===e?void 0:e.logLevel)>=2&&console.warn("[panda-log] Warn: "+t)},fat=function(t){var e;"undefined"!=typeof console&&(null===(e=window.__PANDA)||void 0===e?void 0:e.logLevel)>=1&&console.error("[panda-log] Error: "+t)},gat=function(t){var e;"undefined"!=typeof console&&null!==(e=window.__PANDA)&&void 0!==e&&e.debug&&console.error("[panda-log] Debug: "+t)},yat=function(t){var e;"undefined"!=typeof console&&null!==(e=window.__PANDA)&&void 0!==e&&e.debug&&console.error("[panda-log] Error:",t)},vat=function(){var t,e;return null===(t=window._GATEWAY_PF)||void 0===t||null===(e=t.userPreference)||void 0===e?void 0:e.lang},mat=function(t){if("string"!=typeof t)return xat();var e=t.replace("_","-");e.includes("-")&&(e=e.split("-").map((function(t,e){return 1===e?t.toUpperCase():t})).join("-"));var n=e.toLowerCase(),r=Qot.find((function(t){return t.value===e||("string"==typeof t.s?t.s===n:t.s.includes(n))}));return r?r.value:t.startsWith("zh-Hans")?"zh-CN":t.startsWith("zh-Hant")?"zh-Hant-TW"===t?"zh-TW":"zh-HK":t.startsWith("en-")?"en-US":t},xat=function(t){var e,n,r,i,o,a,s,l,u,c;void 0===t&&(t={});var h=t.lang,p=(null===(e=window.__PANDA)||void 0===e?void 0:e.cookieKey)||oat,d=window.__PANDA_LANG||"",f=p!==oat&&rat(p)?Sat(p):"",g=p===oat&&rat(oat)?Sat(oat):"",y=null===(n=window.__PANDA)||void 0===n?void 0:n.lang,v=null===(r=window.__PANDA)||void 0===r?void 0:r.searchLang,m=null===(i=window.__PANDA)||void 0===i?void 0:i.localLang,x=null===(o=window.__PANDA)||void 0===o?void 0:o.defaultLang,_=null===(a=document)||void 0===a||null===(s=a.cookie)||void 0===s?void 0:s.match(/x-hng/g),b=_&&Array.isArray(_)&&_.length>1,w=vat();(function(){var t;return"undefined"!=typeof console&&(null===(t=window.__PANDA)||void 0===t?void 0:t.debug)})()&&gat("isMultiXhng: "+(b?"true":"false")+"; lang: "+h+" || envLang "+d+" || searchLang: "+v+" || osLang: "+w+" || customLang: "+f+" || localLang: "+m+" || xhngLang: "+g+" || windowLang: "+y);var S=h||d||v||w||f||(b?m||g:g||m)||x||y||aat;return S=mat(S),null===(l=window.__PANDA)||void 0===l||null===(u=l.langList)||void 0===u||!u.length||null!==(c=window.__PANDA)&&void 0!==c&&c.langList.includes(S)||(S=window.__PANDA.langList[0]),gat("isMultiXhng Result: "+S),S};function _at(){return Math.random().toString(36).slice(2)}function bat(t){return!!tat.find((function(e){return e.value===t}))}function wat(t){var e={};return tet(t,(function(t,n){e[mat(n)]=jot(t.copyList,(function(t){return t.content}))})),e}function Sat(t){return t===oat?new URLSearchParams(rat(oat)).get("lang")||aat:rat(t)||aat}function Mat(){if(window[cat]&&Object.keys(window[cat]).length){var t=Object.values(window[cat])[0].langCookieName;t&&window.__PANDA.cookieKey===oat&&(window.__PANDA.cookieKey=t)}}if(window.__PANDA=un({cookieKey:oat,lang:function(){if("undefined"!=typeof navigator&&navigator.language&&navigator.userAgent){var t=navigator.language;if(navigator.userAgent.includes("DingTalk")){var e=navigator.userAgent.match(/language\/([a-zA-Z-]+)/);e&&null!=e&&e[1]&&(t=e[1])}return bat(mat(t))?mat(t):navigator.languages.find((function(t){return bat(t)}))}return aat}(),logLevel:2,instanceNames:[]},window.__PANDA),window[cat]=window[cat]||{},"undefined"!=typeof location&&location.search){var Cat=new URLSearchParams(location.search),Iat=Cat.get("lang");if(Iat){var Tat=mat(Iat);bat(Tat)&&(window.__PANDA.searchLang=Tat)}Cat.get("panda_debug")&&(window.__PANDA.debug=!0)}if("undefined"!=typeof localStorage){var Aat=localStorage.getItem(iat);Aat&&(window.__PANDA.localLang=Aat)}var Dat=Cet,Eat=Tet;var kat=function(t,e,n){(void 0!==n&&!Eat(t[e],n)||void 0===n&&!(e in t))&&Dat(t,e,n)},Nat={exports:{}};!function(t,e){var n=T7,r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}(Nat,Nat.exports);var Oat=Nat.exports,Lat=irt;var Pat=function(t){var e=new t.constructor(t.byteLength);return new Lat(e).set(new Lat(t)),e};var Rat=function(t,e){var n=e?Pat(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var zat=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},Vat=Ett,Bat=Object.create,Fat=function(){function t(){}return function(e){if(!Vat(e))return{};if(Bat)return Bat(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),jat=Fat,Gat=Mtt(Object.getPrototypeOf,Object),Wat=jat,Hat=Gat,Uat=Stt;var Yat=function(t){return"function"!=typeof t.constructor||Uat(t)?{}:Wat(Hat(t))},Xat=Rtt,$at=F7;var Zat=function(t){return $at(t)&&Xat(t)},qat=B7,Kat=Gat,Jat=F7,Qat=Function.prototype,tst=Object.prototype,est=Qat.toString,nst=tst.hasOwnProperty,rst=est.call(Object);var ist=function(t){if(!Jat(t)||"[object Object]"!=qat(t))return!1;var e=Kat(t);if(null===e)return!0;var n=nst.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&est.call(n)==rst};var ost=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},ast=Cet,sst=Tet,lst=Object.prototype.hasOwnProperty;var ust=function(t,e,n){var r=t[e];lst.call(t,e)&&sst(r,n)&&(void 0!==n||e in t)||ast(t,e,n)},cst=ust,hst=Cet;var pst=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),i?hst(n,s,l):cst(n,s,l)}return n};var dst=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},fst=Ett,gst=Stt,yst=dst,vst=Object.prototype.hasOwnProperty;var mst=function(t){if(!fst(t))return yst(t);var e=gst(t),n=[];for(var r in t)("constructor"!=r||!e&&vst.call(t,r))&&n.push(r);return n},xst=btt,_st=mst,bst=Rtt;var wst=function(t){return bst(t)?xst(t,!0):_st(t)},Sst=pst,Mst=wst;var Cst=kat,Ist=Oat,Tst=Rat,Ast=zat,Dst=Yat,Est=$7,kst=Z7,Nst=Zat,Ost=J7,Lst=Ott,Pst=Ett,Rst=ist,zst=dtt,Vst=ost,Bst=function(t){return Sst(t,Mst(t))};var Fst=function(t,e,n,r,i,o,a){var s=Vst(t,n),l=Vst(e,n),u=a.get(l);if(u)Cst(t,n,u);else{var c=o?o(s,l,n+"",t,e,a):void 0,h=void 0===c;if(h){var p=kst(l),d=!p&&Ost(l),f=!p&&!d&&zst(l);c=l,p||d||f?kst(s)?c=s:Nst(s)?c=Ast(s):d?(h=!1,c=Ist(l,!0)):f?(h=!1,c=Tst(l,!0)):c=[]:Rst(l)||Est(l)?(c=s,Est(s)?c=Bst(s):Pst(s)&&!Lst(s)||(c=Dst(l))):h=!1}h&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Cst(t,n,c)}},jst=Xnt,Gst=kat,Wst=w7,Hst=Fst,Ust=Ett,Yst=wst,Xst=ost;var $st=function t(e,n,r,i,o){e!==n&&Wst(n,(function(a,s){if(o||(o=new jst),Ust(a))Hst(e,n,s,r,t,i,o);else{var l=i?i(Xst(e,s),a,s+"",e,n,o):void 0;void 0===l&&(l=a),Gst(e,s,l)}}),Yst)};var Zst=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},qst=Math.max;var Kst=function(t,e,n){return e=qst(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=qst(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),Zst(t,this,s)}};var Jst=function(t){return function(){return t}},Qst=wet,tlt=Qst?function(t,e){return Qst(t,"toString",{configurable:!0,enumerable:!1,value:Jst(e),writable:!0})}:Xtt,elt=Date.now;var nlt=function(t){var e=0,n=0;return function(){var r=elt(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},rlt=nlt(tlt),ilt=Xtt,olt=Kst,alt=rlt;var slt=function(t,e){return alt(olt(t,e,ilt),t+"")},llt=Tet,ult=Rtt,clt=ttt,hlt=Ett;var plt=slt,dlt=function(t,e,n){if(!hlt(n))return!1;var r=typeof e;return!!("number"==r?ult(n)&&clt(e,n.length):"string"==r&&e in n)&&llt(n[e],t)};var flt=function(t){return plt((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&dlt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))},glt=$st,ylt=r(flt((function(t,e,n){glt(t,e,n)}))),vlt=function(){function t(){var t=this;this.broadcast=null,this.eventBus={},this.handleMap={};var e="Panda_Broadcast_Channel";this.broadcast=new BroadcastChannel(e),new BroadcastChannel(e).onmessage=function(e){var n=e.data,r=n.event,i=n.data;r&&t.eventBus[r]&&Object.keys(t.eventBus[r]).forEach((function(e){t.eventBus[r][e](i)}))}}var e=t.prototype;return e.on=function(t,e){this.eventBus[t]||(this.eventBus[t]={});var n=_at();return this.eventBus[t][n]=e,this.handleMap[n]=t,n},e.emit=function(t,e){this.broadcast.postMessage({event:t,data:e})},e.off=function(t){if(this.eventBus[t])delete this.eventBus[t];else{var e=this.handleMap[t];e&&(delete this.eventBus[e][t],delete this.handleMap[t])}},t}(),mlt=function(){function t(){this.eventBus={},this.handleMap={}}var e=t.prototype;return e.emit=function(t,e){var n=this;this.eventBus[t]&&Object.keys(this.eventBus[t]).forEach((function(r){n.eventBus[t][r](e)}))},e.off=function(t){if(this.eventBus[t])delete this.eventBus[t];else{var e=this.handleMap[t];e&&(delete this.eventBus[e][t],delete this.handleMap[t])}},e.on=function(t,e){this.eventBus[t]||(this.eventBus[t]={});var n=_at();return this.eventBus[t][n]=e,this.handleMap[n]=t,n},t}();window[hat]=un({PACKID_LIST:[],INDEX:0,KEY_MAP:{},VK_MAP:new Map},window[hat]);var xlt={"#":"",1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",0:""},_lt={"":"#","":"1","":"2","":"3","":"4","":"5","":"6","":"7","":"8","":"9","":"0"},blt=/[\u206F\u202A\u200E\u2066\u2068\u2061\u2062\u2063\u2064\u2065\u206E]/g;function wlt(t){var e,n,r,i,o=(n=t,r={},i=[],["copyKey","packId","type","componentName","isMatched","packageName"].forEach((function(t){n[t]&&(r[t]=n[t],i.push(t+":"+n[t].toString()))})),[r,i.join(";")]),a=o[0],s=o[1];return window[hat].VK_MAP.has(s)?e=window[hat].VK_MAP.get(s):(e=window[hat].VK_MAP.size+1,window[hat].INDEX=e,window[hat].VK_MAP.set(s,e),window[hat].KEY_MAP[e]=a),Mlt(e)}function Slt(t){var e;return(null===(e=window[hat].KEY_MAP)||void 0===e?void 0:e[t])||null}function Mlt(t){return t.toString().split("").map((function(t){return xlt[t]})).join("")}var Clt={set:wlt,get:Slt,decode:Mlt,encode:function(t){return t.split("").map((function(t){return xlt[t]})).join("")},encrypt:function(t,e){return""+t+""+wlt(e)+""},decrypt:function(t){if(t.includes("")){var e=t.split("");return{copy:t.replace(blt,""),info:e.length>=4?Slt(e[2].split("").map((function(t){return _lt[t]})).join("")):null}}return{copy:t,info:null}},getOriginalCopy:function(t){return t.includes("")?t.replace(blt,""):t}};function Ilt(t){null!=t&&t.cookieKey&&(window.__PANDA.cookieKey=t.cookieKey,gat("setConfig cookieKey: "+t.cookieKey)),t&&void 0!==t.logLevel&&(window.__PANDA.logLevel=t.logLevel),null!=t&&t.langList&&(window.__PANDA.langList=t.langList,gat("setConfig langList: "+JSON.stringify(t.langList))),null!=t&&t.defaultLang&&(window.__PANDA.defaultLang=t.defaultLang,gat("setConfig defaultLang: "+t.defaultLang))}var Tlt="function"==typeof BroadcastChannel?new vlt:new mlt;function Alt(t,e){if(e&&Object.keys(e).length>0){var n=t;return Object.keys(e).forEach((function(t){var r=new RegExp("{"+t+"}","g"),i="object"==typeof e[t]||void 0===e[t]?"":e[t].toString();n=n.replace(r,Clt.getOriginalCopy(i))})),n}return t}var Dlt=function(){function t(t){var e=t.locale,n=t.lang,r=t.packageName,i=t.$i18n;this.locale=void 0,this.lang=void 0,this.packageName=void 0,this.$i18n=void 0,this.version=pat,this.locale=e,this.lang=n,this.$i18n=i,this.packageName=r}var e=t.prototype;return e.format2=function(t,e,n){var r=this,i=n.lang,o="",a=i,s=!1,l=t.defaultMessage||"";try{var u,c,h=(null===(u=this.locale[i])||void 0===u?void 0:u[t.id])||"";h&&(s=!0),!h&&null!==(c=eat[i])&&void 0!==c&&c.likeness&&eat[i].likeness.find((function(e){var n;return!(null===(n=r.locale[e])||void 0===n||!n[t.id])&&(h=r.locale[e][t.id],a=e)})),!h&&window.__PANDA.langList&&window.__PANDA.langList.find((function(e){var n;return!(null===(n=r.locale[e])||void 0===n||!n[t.id])&&(h=r.locale[e][t.id],a=e)})),o=Alt(h=h||l,e)}catch(e){var p="string"==typeof e?e:"Unknown error";fat(t.id+" for "+i+" failed: \n"+p),yat(e)}return{message:o||l||t.id||"",usedLang:a,isMatched:s}},e.format=function(t,e,n){return this.format2(t,e,n).message},e.setLocale=function(t){this.locale=t},t}();function Elt(t,e){var n=(window[sat]||{})[e];if(!n)return gat("No translation found"),void yat({instanceName:e});n.setLocale(t)}var klt,Nlt,Olt={locale:{getLocale:function(){return dat("Legacy api! Please use $i18n.getLang instead!"),{lang:Plt.getLang()}},setLang:function(t){dat("Legacy api! Please use $i18n.setLang instead!"),Plt.setLang(t)}}},Llt=function(){function t(t){var e=this;this.locale={},this.currentLang="",this.componentName="",this.packageName="",this.type=void 0,this.name=void 0,this.localeUtil=Olt,this.initFlag=!0,this.customLang=void 0,this.setConfig=Ilt,this.componentName=(null==t?void 0:t.componentName)||"",this.type=null==t?void 0:t.type,this.packageName=null==t?void 0:t.packageName,this.name=this.componentName?this.componentName+"."+(this.packageName&&t.name?t.name:_at()):_at(),null!=t&&t.lang&&(this.customLang=t.lang),null!=t&&t.locale&&this.componentName?(this.locale=jot(t.locale,(function(t){return t[e.componentName]||t})),window[lat]&&Object.keys(window[lat]).forEach((function(t){window[lat][t][e.componentName]&&(e.locale[t]=ylt(e.locale[t]||{},window[lat][t][e.componentName]))}))):(this.locale=ylt({},wat(window[cat]),(null==t?void 0:t.locale)||{}),Mat()),this.currentLang=(null==t?void 0:t.lang)||xat(),Tlt.on("CHANGE_LANG",(function(t){e.customLang||(e.currentLang=t)})),null!=t&&t._init&&(window.__PANDA.instanceNames.push(this.name),this.initFlag=!1,gat(this.name+": "+pat)),function(t,e){var n=e.name,r=e.lang,i=e.packageName,o=e.$i18n;window[sat]=window[sat]||{},window[sat][n]=new Dlt({locale:t,lang:r,$i18n:o,packageName:i})}(this.locale,{name:this.name,lang:this.customLang,packageName:this.packageName,$i18n:this})}var e=t.prototype;return e.init=function(e){return new t(un({},e,{packageName:(null==e?void 0:e.packageName)||this.packageName,type:(null==e?void 0:e.type)||this.type,name:this.name}))},e.change=function(t){dat("Legacy api! Please use $i18n.setLang instead!"),this.setLang(t)},e.setLang=function(t){var e=mat(t);e!==t&&fat(t+" is not a valid language tag, panda converts to "+e+" instead,please check usage."),function(t){if(window.__PANDA.cookieKey===oat){var e=rat(oat);if(e){var n=new URLSearchParams;new URLSearchParams(e).forEach((function(e,r){"lang"===r?n.set(r,t):n.set(r,e)})),n.set("domain",window.location.hostname),nat(oat,n.toString())}else nat(oat,"lang="+t+"&domain="+window.location.hostname)}else nat(window.__PANDA.cookieKey,t)}(t),this.currentLang=e,window.__PANDA.lang=e,window.__PANDA.localLang&&(window.__PANDA.localLang=e),"undefined"!=typeof localStorage&&localStorage.setItem(iat,e),gat("Set lang to "+e),Tlt.emit("CHANGE_LANG",e)},e.getLang=function(){return this.currentLang},e.get=function(t,e){var n;Plt.initFlag||(Plt.initFlag=!0,Mat(),Plt.currentLang=Plt.customLang||xat(),window.__PANDA.lang=Plt.currentLang,Plt.addLocale(wat(window[cat])));var r="string"==typeof t,i=r?null==t?void 0:t.trim():null===(n=t.id)||void 0===n?void 0:n.trim(),o=r?t:t.dm,a=r?this.componentName:t.ns||this.componentName,s=!r&&t.lang?t.lang:this.currentLang,l=!r&&!(null==t||!t.pure);return function(t,e,n){var r,i=n||{},o=i.name,a=i.nameSpace,s=i.lang,l=i.type,u=i.pure,c=window[sat]||{};if(!a||a===o||o.includes(".")&&c[o])r=c[o];else{var h=Object.keys(c),p=h.find((function(t){return t.startsWith(a+"."+o)}))||h.find((function(t){return t.startsWith(a)}));r=c[p]}if(!r)return gat("No translation found, pls make sure u passed the translation b4 1st $i18n.get func."),yat({instanceName:o,translationId:t.id}),Alt(t.defaultMessage||t.id||"",e);var d=r.format2?r.format2(t,e,n):{message:r.format(t,e,n),usedLang:s,isMatched:!0},f=d.message,g=d.usedLang,y=d.isMatched;if((window.__PANDA.isI18nPdkv||window.__PANDA.debug)&&!u){var v,m,x,_,b=a||(o.includes(".")?o.split["."][0]:""),w=b?"":null===(v=window[cat])||void 0===v||null===(m=v[g.replace("-","_")])||void 0===m||null===(x=m.copyList)||void 0===x||null===(_=x[t.id])||void 0===_?void 0:_.packId;return Clt.encrypt(f,{copyKey:t.id,type:l,componentName:b,packageName:r.packageName,packId:w,isMatched:y})}return f}({id:i,defaultMessage:o},e||null,{name:this.name,type:this.type,nameSpace:a,lang:s,pure:l})},e.addLocale=function(t){this.locale=ylt(this.locale,t),Elt(this.locale,this.name)},e.setLocale=function(t,e){this.locale=t,this.packageName=e||_at(),Elt(this.locale,this.name),Plt.initFlag||(Plt.initFlag=!0,Plt.currentLang=Plt.customLang||xat())},e.addLocaleByKey=function(t){var e=this;tet(t,(function(t,n){tet(t,(function(t,r){e.locale[r]=e.locale[r]||{},e.locale[r][n]=t}))})),Elt(this.locale,this.name)},e.reloadPackLocale=function(){this.addLocale(wat(window[cat]))},e.setCustomLang=function(t){this.currentLang=t,this.customLang=t},e.getLocaleByKey=function(t){var e={};return tet(this.locale,(function(n,r){e[r]=n[t]||""})),e},e.initLowcode=function(){window.$i18n_lowcode=this},e.lockOSLang=function(){var t=vat();t&&this.setCustomLang(t)},e.__setType=function(t){this.type=t},e.initPackage=function(t){var e=this,n=t.name,r=t.locales;if(r){var i={};Object.values(r).forEach((function(t){Object.keys(t).forEach((function(o){"string"==typeof t[o]?fat("no support locales type"):i[o]||(i[o]=e.init({componentName:o,locale:r,packageName:n}))}))}))}},t}(),Plt=new Llt({_init:!0});klt=function(){window[uat]&&!window[uat].locale||(window[uat]=Plt)},null!==(Nlt=window.__PANDA)&&void 0!==Nlt&&Nlt.debug&&klt&&klt();var Rlt=window.__PANDA.pandaContext||t.createContext({locale:{},_lang:void 0,lang:void 0,$i18n:void 0});window.__PANDA.pandaContext||(window.__PANDA.pandaContext=Rlt);var zlt,Vlt={exports:{}},Blt={exports:{}},Flt={};var jlt,Glt,Wlt,Hlt,Ult,Ylt,Xlt,$lt,Zlt,qlt,Klt,Jlt,Qlt,tut,eut={};
|
|
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 nut(){return Glt||(Glt=1,"production"===process.env.NODE_ENV?Blt.exports=function(){if(zlt)return Flt;zlt=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case l:case u:case r:case o:case i:case h:return t;default:switch(t=t&&t.$$typeof){case s:case c:case f:case d:case a:return t;default:return p}}case n:return p}}}function _(t){return x(t)===u}return Flt.AsyncMode=l,Flt.ConcurrentMode=u,Flt.ContextConsumer=s,Flt.ContextProvider=a,Flt.Element=e,Flt.ForwardRef=c,Flt.Fragment=r,Flt.Lazy=f,Flt.Memo=d,Flt.Portal=n,Flt.Profiler=o,Flt.StrictMode=i,Flt.Suspense=h,Flt.isAsyncMode=function(t){return _(t)||x(t)===l},Flt.isConcurrentMode=_,Flt.isContextConsumer=function(t){return x(t)===s},Flt.isContextProvider=function(t){return x(t)===a},Flt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Flt.isForwardRef=function(t){return x(t)===c},Flt.isFragment=function(t){return x(t)===r},Flt.isLazy=function(t){return x(t)===f},Flt.isMemo=function(t){return x(t)===d},Flt.isPortal=function(t){return x(t)===n},Flt.isProfiler=function(t){return x(t)===o},Flt.isStrictMode=function(t){return x(t)===i},Flt.isSuspense=function(t){return x(t)===h},Flt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===u||t===o||t===i||t===h||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===y||t.$$typeof===v||t.$$typeof===m||t.$$typeof===g)},Flt.typeOf=x,Flt}():Blt.exports=(jlt||(jlt=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var g=t.type;switch(g){case l:case u:case r:case o:case i:case h:return g;default:var y=g&&g.$$typeof;switch(y){case s:case c:case f:case d:case a:return y;default:return p}}case n:return p}}}var _=l,b=u,w=s,S=a,M=e,C=c,I=r,T=f,A=d,D=n,E=o,k=i,N=h,O=!1;function L(t){return x(t)===u}eut.AsyncMode=_,eut.ConcurrentMode=b,eut.ContextConsumer=w,eut.ContextProvider=S,eut.Element=M,eut.ForwardRef=C,eut.Fragment=I,eut.Lazy=T,eut.Memo=A,eut.Portal=D,eut.Profiler=E,eut.StrictMode=k,eut.Suspense=N,eut.isAsyncMode=function(t){return O||(O=!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.")),L(t)||x(t)===l},eut.isConcurrentMode=L,eut.isContextConsumer=function(t){return x(t)===s},eut.isContextProvider=function(t){return x(t)===a},eut.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},eut.isForwardRef=function(t){return x(t)===c},eut.isFragment=function(t){return x(t)===r},eut.isLazy=function(t){return x(t)===f},eut.isMemo=function(t){return x(t)===d},eut.isPortal=function(t){return x(t)===n},eut.isProfiler=function(t){return x(t)===o},eut.isStrictMode=function(t){return x(t)===i},eut.isSuspense=function(t){return x(t)===h},eut.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===u||t===o||t===i||t===h||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===y||t.$$typeof===v||t.$$typeof===m||t.$$typeof===g)},eut.typeOf=x}()),eut)),Blt.exports}
|
|
33
|
-
/*
|
|
34
|
-
object-assign
|
|
35
|
-
(c) Sindre Sorhus
|
|
36
|
-
@license MIT
|
|
37
|
-
*/function rut(){if(Hlt)return Wlt;Hlt=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Wlt=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(r,i){for(var o,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))e.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)n.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s},Wlt}function iut(){if(Ylt)return Ult;Ylt=1;return Ult="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function out(){return $lt?Xlt:($lt=1,Xlt=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var aut=nut();Vlt.exports=function(){if(Jlt)return Klt;Jlt=1;var t=nut(),e=rut(),n=iut(),r=out(),i=function(){if(qlt)return Zlt;qlt=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=iut(),n={},r=out();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,s,l){if("production"!==process.env.NODE_ENV)for(var u in i)if(r(i,u)){var c;try{if("function"!=typeof i[u]){var h=Error((s||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}c=i[u](o,u,s,a,null,e)}catch(t){c=t}if(!c||c instanceof Error||t((s||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var p=l?l():"";t("Failed "+a+" type: "+c.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Zlt=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Klt=function(s,l){var u="function"==typeof Symbol&&Symbol.iterator,c="@@iterator",h="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:g(a),arrayOf:function(t){return g((function(e,r,i,o,a){if("function"!=typeof t)return new f("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=e[r];if(!Array.isArray(s))return new f("Invalid "+o+" `"+a+"` of type `"+x(s)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var u=t(s,l,i,o,a+"["+l+"]",n);if(u instanceof Error)return u}return null}))},element:g((function(t,e,n,r,i){var o=t[e];return s(o)?null:new f("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(e,n,r,i,o){var a=e[n];return t.isValidElementType(a)?null:new f("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return g((function(e,n,r,i,o){if(!(e[n]instanceof t)){var a=t.name||h;return new f("Invalid "+i+" `"+o+"` of type `"+((s=e[n]).constructor&&s.constructor.name?s.constructor.name:h)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(t,e,n,r,i){return m(t[e])?null:new f("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return g((function(e,i,o,a,s){if("function"!=typeof t)return new f("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],u=x(l);if("object"!==u)return new f("Invalid "+a+" `"+s+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var c in l)if(r(l,c)){var h=t(l,c,o,a,s+"."+c,n);if(h instanceof Error)return h}return null}))},oneOf:function(t){return Array.isArray(t)?g((function(e,n,r,i,o){for(var a=e[n],s=0;s<t.length;s++)if(d(a,t[s]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===_(e)?String(e):e}));return new f("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&o(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(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+b(i)+" at index "+e+"."),a}return g((function(e,i,o,a,s){for(var l=[],u=0;u<t.length;u++){var c=(0,t[u])(e,i,o,a,s,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return g((function(e,r,i,o,a){var s=e[r],l=x(s);if("object"!==l)return new f("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in t){var c=t[u];if("function"!=typeof c)return v(i,o,a,u,_(c));var h=c(s,u,i,o,a+"."+u,n);if(h)return h}return null}))},exact:function(t){return g((function(i,o,a,s,l){var u=i[o],c=x(u);if("object"!==c)return new f("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var h=e({},i[o],t);for(var p in h){var d=t[p];if(r(t,p)&&"function"!=typeof d)return v(a,s,l,p,_(d));if(!d)return new f("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var g=d(u,p,a,s,l+"."+p,n);if(g)return g}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function f(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function g(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function i(i,a,s,u,c,p,d){if(u=u||h,p=p||s,d!==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 y=u+":"+s;!e[y]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. 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."),e[y]=!0,r++)}}return null==a[s]?i?null===a[s]?new f("The "+c+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new f("The "+c+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(a,s,u,c,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function y(t){return g((function(e,n,r,i,o,a){var s=e[n];return x(s)!==t?new f("Invalid "+i+" `"+o+"` of type `"+_(s)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null}))}function v(t,e,n,r,i){return new f((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||s(t))return!0;var e=function(t){var e=t&&(u&&t[u]||t[c]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function x(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function _(t){if(null==t)return""+t;var e=x(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function b(t){var e=_(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return f.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Klt}()(aut.isElement,!0)}else Vlt.exports=function(){if(tut)return Qlt;tut=1;var t=iut();function e(){}function n(){}return n.resetWarningCache=e,Qlt=function(){function r(e,n,r,i,o,a){if(a!==t){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 i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o}}()();var sut=r(Vlt.exports);function lut(t,e){return function(){return t.apply(e,arguments)}}sut.string,sut.object,sut.object,sut.bool,sut.bool,sut.bool,sut.oneOf(["tablet","desktop","phone"]),sut.any,sut.oneOfType([sut.bool,sut.object]),sut.string,sut.object,sut.object,sut.bool,sut.bool,sut.bool,sut.oneOf(["tablet","desktop","phone"]),sut.any,sut.oneOfType([sut.bool,sut.object]);const{toString:uut}=Object.prototype,{getPrototypeOf:cut}=Object,hut=(put=Object.create(null),t=>{const e=uut.call(t);return put[e]||(put[e]=e.slice(8,-1).toLowerCase())});var put;const dut=t=>(t=t.toLowerCase(),e=>hut(e)===t),fut=t=>e=>typeof e===t,{isArray:gut}=Array,yut=fut("undefined");const vut=dut("ArrayBuffer");const mut=fut("string"),xut=fut("function"),_ut=fut("number"),but=t=>null!==t&&"object"==typeof t,wut=t=>{if("object"!==hut(t))return!1;const e=cut(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},Sut=dut("Date"),Mut=dut("File"),Cut=dut("Blob"),Iut=dut("FileList"),Tut=dut("URLSearchParams");function Aut(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),gut(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function Dut(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const Eut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,kut=t=>!yut(t)&&t!==Eut;const Nut=(Out="undefined"!=typeof Uint8Array&&cut(Uint8Array),t=>Out&&t instanceof Out);var Out;const Lut=dut("HTMLFormElement"),Put=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Rut=dut("RegExp"),zut=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Aut(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)},Vut="abcdefghijklmnopqrstuvwxyz",But="0123456789",Fut={DIGIT:But,ALPHA:Vut,ALPHA_DIGIT:Vut+Vut.toUpperCase()+But};const jut=dut("AsyncFunction");var Gut={isArray:gut,isArrayBuffer:vut,isBuffer:function(t){return null!==t&&!yut(t)&&null!==t.constructor&&!yut(t.constructor)&&xut(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||xut(t.append)&&("formdata"===(e=hut(t))||"object"===e&&xut(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&vut(t.buffer),e},isString:mut,isNumber:_ut,isBoolean:t=>!0===t||!1===t,isObject:but,isPlainObject:wut,isUndefined:yut,isDate:Sut,isFile:Mut,isBlob:Cut,isRegExp:Rut,isFunction:xut,isStream:t=>but(t)&&xut(t.pipe),isURLSearchParams:Tut,isTypedArray:Nut,isFileList:Iut,forEach:Aut,merge:function t(){const{caseless:e}=kut(this)&&this||{},n={},r=(r,i)=>{const o=e&&Dut(n,i)||i;wut(n[o])&&wut(r)?n[o]=t(n[o],r):wut(r)?n[o]=t({},r):gut(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&Aut(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(Aut(e,((e,r)=>{n&&xut(e)?t[r]=lut(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&cut(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:hut,kindOfTest:dut,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(gut(t))return t;let e=t.length;if(!_ut(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:Lut,hasOwnProperty:Put,hasOwnProp:Put,reduceDescriptors:zut,freezeMethods:t=>{zut(t,((e,n)=>{if(xut(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];xut(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return gut(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:Dut,global:Eut,isContextDefined:kut,ALPHABET:Fut,generateString:(t=16,e=Fut.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&xut(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(but(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=gut(t)?[]:{};return Aut(t,((t,e)=>{const o=n(t,r+1);!yut(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:jut,isThenable:t=>t&&(but(t)||xut(t))&&xut(t.then)&&xut(t.catch)};function Wut(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}Gut.inherits(Wut,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:Gut.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hut=Wut.prototype,Uut={};["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((t=>{Uut[t]={value:t}})),Object.defineProperties(Wut,Uut),Object.defineProperty(Hut,"isAxiosError",{value:!0}),Wut.from=(t,e,n,r,i,o)=>{const a=Object.create(Hut);return Gut.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Wut.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};function Yut(t){return Gut.isPlainObject(t)||Gut.isArray(t)}function Xut(t){return Gut.endsWith(t,"[]")?t.slice(0,-2):t}function $ut(t,e,n){return t?t.concat(e).map((function(t,e){return t=Xut(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const Zut=Gut.toFlatObject(Gut,{},null,(function(t){return/^is[A-Z]/.test(t)}));function qut(t,e,n){if(!Gut.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=Gut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Gut.isUndefined(e[t])}))).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Gut.isSpecCompliantForm(e);if(!Gut.isFunction(i))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(Gut.isDate(t))return t.toISOString();if(!s&&Gut.isBlob(t))throw new Wut("Blob is not supported. Use a Buffer instead.");return Gut.isArrayBuffer(t)||Gut.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,n,i){let s=t;if(t&&!i&&"object"==typeof t)if(Gut.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(Gut.isArray(t)&&function(t){return Gut.isArray(t)&&!t.some(Yut)}(t)||(Gut.isFileList(t)||Gut.endsWith(n,"[]"))&&(s=Gut.toArray(t)))return n=Xut(n),s.forEach((function(t,r){!Gut.isUndefined(t)&&null!==t&&e.append(!0===a?$ut([n],r,o):null===a?n:n+"[]",l(t))})),!1;return!!Yut(t)||(e.append($ut(i,n,o),l(t)),!1)}const c=[],h=Object.assign(Zut,{defaultVisitor:u,convertValue:l,isVisitable:Yut});if(!Gut.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!Gut.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Gut.forEach(n,(function(n,o){!0===(!(Gut.isUndefined(n)||null===n)&&i.call(e,n,Gut.isString(o)?o.trim():o,r,h))&&t(n,r?r.concat(o):[o])})),c.pop()}}(t),e}function Kut(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Jut(t,e){this._pairs=[],t&&qut(t,this,e)}const Qut=Jut.prototype;function tct(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ect(t,e,n){if(!e)return t;const r=n&&n.encode||tct,i=n&&n.serialize;let o;if(o=i?i(e,n):Gut.isURLSearchParams(e)?e.toString():new Jut(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}Qut.append=function(t,e){this._pairs.push([t,e])},Qut.toString=function(t){const e=t?function(e){return t.call(this,e,Kut)}:Kut;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class nct{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Gut.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var rct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ict={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Jut,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const oct="undefined"!=typeof window&&"undefined"!=typeof document,act=(sct="undefined"!=typeof navigator&&navigator.product,oct&&["ReactNative","NativeScript","NS"].indexOf(sct)<0);var sct;const lct="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var uct={...Object.freeze({__proto__:null,hasBrowserEnv:oct,hasStandardBrowserEnv:act,hasStandardBrowserWebWorkerEnv:lct}),...ict};function cct(t){function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=t.length;if(o=!o&&Gut.isArray(r)?r.length:o,s)return Gut.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&Gut.isObject(r[o])||(r[o]=[]);return e(t,n,r[o],i)&&Gut.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[o])),!a}if(Gut.isFormData(t)&&Gut.isFunction(t.entries)){const n={};return Gut.forEachEntry(t,((t,r)=>{e(function(t){return Gut.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const hct={transitional:rct,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=Gut.isObject(t);i&&Gut.isHTMLForm(t)&&(t=new FormData(t));if(Gut.isFormData(t))return r?JSON.stringify(cct(t)):t;if(Gut.isArrayBuffer(t)||Gut.isBuffer(t)||Gut.isStream(t)||Gut.isFile(t)||Gut.isBlob(t))return t;if(Gut.isArrayBufferView(t))return t.buffer;if(Gut.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return qut(t,new uct.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return uct.isNode&&Gut.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=Gut.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return qut(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(Gut.isString(t))try{return(e||JSON.parse)(t),Gut.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||hct.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&Gut.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw Wut.from(t,Wut.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:uct.classes.FormData,Blob:uct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Gut.forEach(["delete","get","head","post","put","patch"],(t=>{hct.headers[t]={}}));var pct=hct;const dct=Gut.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 fct=Symbol("internals");function gct(t){return t&&String(t).trim().toLowerCase()}function yct(t){return!1===t||null==t?t:Gut.isArray(t)?t.map(yct):String(t)}function vct(t,e,n,r,i){return Gut.isFunction(r)?r.call(this,e,n):(i&&(e=n),Gut.isString(e)?Gut.isString(r)?-1!==e.indexOf(r):Gut.isRegExp(r)?r.test(e):void 0:void 0)}class mct{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=gct(e);if(!i)throw new Error("header name must be a non-empty string");const o=Gut.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||e]=yct(t))}const o=(t,e)=>Gut.forEach(t,((t,n)=>i(t,n,e)));return Gut.isPlainObject(t)||t instanceof this.constructor?o(t,e):Gut.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?o((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&dct[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&i(e,t,n),this}get(t,e){if(t=gct(t)){const n=Gut.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(Gut.isFunction(e))return e.call(this,t,n);if(Gut.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=gct(t)){const n=Gut.findKey(this,t);return!(!n||void 0===this[n]||e&&!vct(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=gct(t)){const i=Gut.findKey(n,t);!i||e&&!vct(0,n[i],i,e)||(delete n[i],r=!0)}}return Gut.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!vct(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return Gut.forEach(this,((r,i)=>{const o=Gut.findKey(n,i);if(o)return e[o]=yct(r),void delete e[i];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete e[i],e[a]=yct(r),n[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Gut.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&Gut.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[fct]=this[fct]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=gct(t);e[r]||(!function(t,e){const n=Gut.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[r]=!0)}return Gut.isArray(t)?t.forEach(r):r(t),this}}mct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Gut.reduceDescriptors(mct.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),Gut.freezeMethods(mct);var xct=mct;function _ct(t,e){const n=this||pct,r=e||n,i=xct.from(r.headers);let o=r.data;return Gut.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function bct(t){return!(!t||!t.__CANCEL__)}function wct(t,e,n){Wut.call(this,null==t?"canceled":t,Wut.ERR_CANCELED,e,n),this.name="CanceledError"}Gut.inherits(wct,Wut,{__CANCEL__:!0});var Sct=uct.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const a=[t+"="+encodeURIComponent(e)];Gut.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Gut.isString(r)&&a.push("path="+r),Gut.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Mct(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var Cct=uct.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=Gut.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Ict(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),u=r[a];i||(i=l),n[o]=s,r[o]=l;let c=a,h=0;for(;c!==o;)h+=n[c++],c%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),l-i<e)return;const p=u&&l-u;return p?Math.round(1e3*h/p):void 0}}(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s);n=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:i};u[e?"download":"upload"]=!0,t(u)}}var Tct="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const i=xct.from(t.headers).normalize();let o,a,{responseType:s,withXSRFToken:l}=t;function u(){t.cancelToken&&t.cancelToken.unsubscribe(o),t.signal&&t.signal.removeEventListener("abort",o)}if(Gut.isFormData(r))if(uct.hasStandardBrowserEnv||uct.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[t,...e]=a?a.split(";").map((t=>t.trim())).filter(Boolean):[];i.setContentType([t||"multipart/form-data",...e].join("; "))}let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const h=Mct(t.baseURL,t.url);function p(){if(!c)return;const r=xct.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new Wut("Request failed with status code "+n.status,[Wut.ERR_BAD_REQUEST,Wut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),u()}),(function(t){n(t),u()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),ect(h,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(n(new Wut("Request aborted",Wut.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new Wut("Network Error",Wut.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||rct;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new Wut(e,r.clarifyTimeoutError?Wut.ETIMEDOUT:Wut.ECONNABORTED,t,c)),c=null},uct.hasStandardBrowserEnv&&(l&&Gut.isFunction(l)&&(l=l(t)),l||!1!==l&&Cct(h))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&Sct.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in c&&Gut.forEach(i.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),Gut.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&"json"!==s&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",Ict(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Ict(t.onUploadProgress)),(t.cancelToken||t.signal)&&(o=e=>{c&&(n(!e||e.type?new wct(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(o),t.signal&&(t.signal.aborted?o():t.signal.addEventListener("abort",o)));const d=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(h);d&&-1===uct.protocols.indexOf(d)?n(new Wut("Unsupported protocol "+d+":",Wut.ERR_BAD_REQUEST,t)):c.send(r||null)}))};const Act={http:null,xhr:Tct};Gut.forEach(Act,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Dct=t=>`- ${t}`,Ect=t=>Gut.isFunction(t)||null===t||!1===t;var kct=t=>{t=Gut.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){let e;if(n=t[o],r=n,!Ect(n)&&(r=Act[(e=String(n)).toLowerCase()],void 0===r))throw new Wut(`Unknown adapter '${e}'`);if(r)break;i[e||"#"+o]=r}if(!r){const t=Object.entries(i).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));throw new Wut("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(Dct).join("\n"):" "+Dct(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Nct(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new wct(null,t)}function Oct(t){Nct(t),t.headers=xct.from(t.headers),t.data=_ct.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return kct(t.adapter||pct.adapter)(t).then((function(e){return Nct(t),e.data=_ct.call(t,t.transformResponse,e),e.headers=xct.from(e.headers),e}),(function(e){return bct(e)||(Nct(t),e&&e.response&&(e.response.data=_ct.call(t,t.transformResponse,e.response),e.response.headers=xct.from(e.response.headers))),Promise.reject(e)}))}const Lct=t=>t instanceof xct?t.toJSON():t;function Pct(t,e){e=e||{};const n={};function r(t,e,n){return Gut.isPlainObject(t)&&Gut.isPlainObject(e)?Gut.merge.call({caseless:n},t,e):Gut.isPlainObject(e)?Gut.merge({},e):Gut.isArray(e)?e.slice():e}function i(t,e,n){return Gut.isUndefined(e)?Gut.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function o(t,e){if(!Gut.isUndefined(e))return r(void 0,e)}function a(t,e){return Gut.isUndefined(e)?Gut.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}const l={url:o,method:o,data:o,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:(t,e)=>i(Lct(t),Lct(e),!0)};return Gut.forEach(Object.keys(Object.assign({},t,e)),(function(r){const o=l[r]||i,a=o(t[r],e[r],r);Gut.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Rct="1.6.7",zct={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{zct[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Vct={};zct.transitional=function(t,e,n){function r(t,e){return"[Axios v1.6.7] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new Wut(r(i," has been removed"+(e?" in "+e:"")),Wut.ERR_DEPRECATED);return e&&!Vct[i]&&(Vct[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var Bct={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Wut("options must be an object",Wut.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new Wut("option "+o+" must be "+n,Wut.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Wut("Unknown option "+o,Wut.ERR_BAD_OPTION)}},validators:zct};const Fct=Bct.validators;class jct{constructor(t){this.defaults=t,this.interceptors={request:new nct,response:new nct}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Pct(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;void 0!==n&&Bct.assertOptions(n,{silentJSONParsing:Fct.transitional(Fct.boolean),forcedJSONParsing:Fct.transitional(Fct.boolean),clarifyTimeoutError:Fct.transitional(Fct.boolean)},!1),null!=r&&(Gut.isFunction(r)?e.paramsSerializer={serialize:r}:Bct.assertOptions(r,{encode:Fct.function,serialize:Fct.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&Gut.merge(i.common,i[e.method]);i&&Gut.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=xct.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let c,h=0;if(!s){const t=[Oct.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,l),c=t.length,u=Promise.resolve(e);h<c;)u=u.then(t[h++],t[h++]);return u}c=a.length;let p=e;for(h=0;h<c;){const t=a[h++],e=a[h++];try{p=t(p)}catch(t){e.call(this,t);break}}try{u=Oct.call(this,p)}catch(t){return Promise.reject(t)}for(h=0,c=l.length;h<c;)u=u.then(l[h++],l[h++]);return u}getUri(t){return ect(Mct((t=Pct(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}Gut.forEach(["delete","get","head","options"],(function(t){jct.prototype[t]=function(e,n){return this.request(Pct(n||{},{method:t,url:e,data:(n||{}).data}))}})),Gut.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(Pct(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}jct.prototype[t]=e(),jct.prototype[t+"Form"]=e(!0)}));var Gct=jct;class Wct{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new wct(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new Wct((function(e){t=e})),cancel:t}}}var Hct=Wct;const Uct={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(Uct).forEach((([t,e])=>{Uct[e]=t}));var Yct=Uct;const Xct=function t(e){const n=new Gct(e),r=lut(Gct.prototype.request,n);return Gut.extend(r,Gct.prototype,n,{allOwnKeys:!0}),Gut.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Pct(e,n))},r}(pct);Xct.Axios=Gct,Xct.CanceledError=wct,Xct.CancelToken=Hct,Xct.isCancel=bct,Xct.VERSION=Rct,Xct.toFormData=qut,Xct.AxiosError=Wut,Xct.Cancel=Xct.CanceledError,Xct.all=function(t){return Promise.all(t)},Xct.spread=function(t){return function(e){return t.apply(null,e)}},Xct.isAxiosError=function(t){return Gut.isObject(t)&&!0===t.isAxiosError},Xct.mergeConfig=Pct,Xct.AxiosHeaders=xct,Xct.formToJSON=t=>cct(Gut.isHTMLForm(t)?new FormData(t):t),Xct.getAdapter=kct,Xct.HttpStatusCode=Yct,Xct.default=Xct;const $ct=["CN10201912011"],Zct=["CN10829902001","2000","1000","CN10201812011"],qct=["CN10829902004","CN10201812021","CN10201812022","CN10201912021","CN10201912022"],Kct=Xct.create({withCredentials:!0});Kct.interceptors.response.use((t=>{const e=t.data,{success:n,errorMsg:r,errorCode:i}=e;if(Zct.includes(i)){const t=encodeURIComponent(window.parent.location.href);window.location.href=r+t}if($ct.includes(i)){const t=encodeURIComponent(encodeURIComponent(window.parent.location.href));window.location.href=r+t}return n?e:Promise.reject({...e,message:r})}),(t=>(console.error("network error",t),Promise.reject(t))));const Jct=async t=>{const e=await Kct(t);return Promise.resolve(e)};class Qct{static async getConfigInfo(t){return Fy(await Jct({url:t?.url,method:"GET"}))}static async getDataInfoList(t){return Fy(await Jct({url:t?.url,method:"GET",withCredentials:!0}))}}const tht=Qe.div`
|
|
38
|
-
${t=>t.$hidden&&qe`
|
|
39
|
-
display: none;
|
|
40
|
-
`}
|
|
41
|
-
|
|
42
|
-
width: 100%;
|
|
43
|
-
height: 100%;
|
|
44
|
-
position: relative;
|
|
45
|
-
background-color: #fff;
|
|
46
|
-
padding: 20px;
|
|
47
|
-
border-radius: 12px;
|
|
48
|
-
box-shadow: 0 2px 4px 0px rgba(39, 46, 58, 0.12);
|
|
49
|
-
background: rgba(255, 255, 255, 0.8);
|
|
50
|
-
backdrop-filter: blur(30px);
|
|
51
|
-
|
|
52
|
-
${t=>qe`
|
|
53
|
-
background-color: ${t.theme.cardBackgroundColor};
|
|
54
|
-
`};
|
|
55
|
-
|
|
56
|
-
.cn-next-loading-wrap {
|
|
57
|
-
width: 100% !important;
|
|
58
|
-
height: 100% !important;
|
|
59
|
-
}
|
|
60
|
-
`;Qe.div`
|
|
61
|
-
${t=>t.$show&&qe`
|
|
62
|
-
display: none;
|
|
63
|
-
`}
|
|
64
|
-
|
|
65
|
-
width: 100%;
|
|
66
|
-
height: 100%;
|
|
67
|
-
position: relative;
|
|
68
|
-
padding: 0.32rem;
|
|
69
|
-
border-radius: 0.24rem;
|
|
70
|
-
box-shadow: 0 0.02rem 0.04rem 0 rgba(39, 46, 58, 0.12);
|
|
71
|
-
background: rgba(255, 255, 255, 0.8);
|
|
72
|
-
backdrop-filter: blur(30px);
|
|
73
|
-
|
|
74
|
-
${t=>qe`
|
|
75
|
-
background-color: ${t.theme.cardBackgroundColor};
|
|
76
|
-
`};
|
|
77
|
-
|
|
78
|
-
.cn-next-loading-wrap {
|
|
79
|
-
width: 100% !important;
|
|
80
|
-
height: 100% !important;
|
|
81
|
-
}
|
|
82
|
-
`;const eht=Qe.div`
|
|
83
|
-
color: ${t=>t.theme.color??"#000"};
|
|
84
|
-
font-size: 14px;
|
|
85
|
-
font-weight: 700;
|
|
86
|
-
line-height: 1;
|
|
87
|
-
margin-bottom: 8px;
|
|
88
|
-
${({$checked:t=!0})=>!t&&qe`
|
|
89
|
-
color: ${t=>t.theme.color??"#6d7a90"};
|
|
90
|
-
`}
|
|
91
|
-
`;Qe.div`
|
|
92
|
-
color: ${t=>t.theme.color??"#272F3D"};
|
|
93
|
-
font-weight: 600;
|
|
94
|
-
font-size: 0.32rem;
|
|
95
|
-
line-height: 1;
|
|
96
|
-
margin-bottom: 0.2rem;
|
|
97
|
-
|
|
98
|
-
${({$checked:t=!0})=>!t&&qe`
|
|
99
|
-
color: ${t=>t.theme.color??"#6d7a90"};
|
|
100
|
-
`}
|
|
101
|
-
`,Qe.div`
|
|
102
|
-
width: 30px;
|
|
103
|
-
height: 30px;
|
|
104
|
-
border-radius: 8px;
|
|
105
|
-
padding: 8px;
|
|
106
|
-
box-shadow: 0 2px 4px 0px rgba(39, 46, 58, 0.12);
|
|
107
|
-
background: no-repeat center / 16px 16px url('${t=>t.$src}');
|
|
108
|
-
cursor: pointer;
|
|
109
|
-
background-color: #fff;
|
|
110
|
-
|
|
111
|
-
${t=>qe`
|
|
112
|
-
background-color: ${t.theme.iconBackgroundColor};
|
|
113
|
-
`}
|
|
114
|
-
`;const nht=Qe.span`
|
|
115
|
-
color: #6d7a90;
|
|
116
|
-
font-size: 12px;
|
|
117
|
-
padding-left: 5px;
|
|
118
|
-
display: inline-block;
|
|
119
|
-
`,rht=({label:t,value:e,unit:n,jumpUrl:r,isUnitWrap:i,...o})=>u.jsxs("div",{...o,children:[u.jsx(iht,{children:u.jsxs("div",{"data-value":!0,onClick:By(r),style:{...!!r&&{cursor:"pointer"}},children:[e,!i&&u.jsx(nht,{children:n})]})}),i&&u.jsx(nht,{children:n})]}),iht=Qe.div`
|
|
120
|
-
line-height: 1;
|
|
121
|
-
margin-top: 12px;
|
|
122
|
-
margin-bottom: 8px;
|
|
123
|
-
|
|
124
|
-
[data-label] {
|
|
125
|
-
width: 106px;
|
|
126
|
-
font-size: 12px;
|
|
127
|
-
margin-bottom: 8px;
|
|
128
|
-
display: flex;
|
|
129
|
-
|
|
130
|
-
${t=>!!t.unit&&qe`
|
|
131
|
-
&::after {
|
|
132
|
-
content: '(${t.unit})';
|
|
133
|
-
display: inline-block;
|
|
134
|
-
color: #6d7a90;
|
|
135
|
-
}
|
|
136
|
-
`}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
[data-value] {
|
|
140
|
-
font-size: 30px;
|
|
141
|
-
line-height: 16px;
|
|
142
|
-
font-weight: 700;
|
|
143
|
-
color: #000;
|
|
144
|
-
}
|
|
145
|
-
`,oht=(e,n)=>{const[r,i]=t.useState(!1);return t.useEffect((()=>{if(e.current){const t=new IntersectionObserver((n=>{n[0].isIntersecting&&(i(!0),t.unobserve(e.current))}),n);return t.observe(e.current),()=>{t.disconnect()}}}),[e,n]),r};var aht;function sht({initData:e=!0,defaultValue:n,requestData:r,service:i,children:o,errorBoxHeight:a,debounceWait:s,isInside:l,noEmptyBox:c,...h}){const[p,d]=t.useState(aht.NONE),[f,g]=t.useState(n),y=JSON.stringify(r),v=t.useRef(null),m=oht(v),x=t.useCallback((async()=>{try{d(aht.NONE),g(await i({...r,requestId:void 0},l)),d(aht.SUCCESS)}catch(t){qct.includes(t.errorCode)?d(aht.NO_ACCESS):d(aht.ERROR)}}),[y]);t.useEffect((()=>{m&&e&&x()}),[m,e,x]);const{img:_,remark:b,btn:w}=cht.get(p)??{};return u.jsxs(lht,{ref:v,...h,children:[p===aht.SUCCESS&&!!f&&o(f),!c&&[aht.ERROR,aht.NO_ACCESS,aht.NO_ACCESS].includes(p)&&u.jsxs(uht,{style:{height:a},children:[u.jsx("img",{"data-img":!0,src:_,alt:""}),u.jsxs("div",{"data-msg":!0,children:[u.jsx("span",{"data-remark":!0,children:b}),u.jsx("span",{"data-btn":!0,onClick:x,children:w})]})]})]})}!function(t){t[t.NONE=0]="NONE",t[t.SUCCESS=1]="SUCCESS",t[t.ERROR=2]="ERROR",t[t.NO_ACCESS=3]="NO_ACCESS",t[t.NO_DATA=4]="NO_DATA"}(aht||(aht={}));const lht=Qe.div`
|
|
146
|
-
width: 100%;
|
|
147
|
-
height: 100%;
|
|
148
|
-
|
|
149
|
-
&::-webkit-scrollbar {
|
|
150
|
-
display: none;
|
|
151
|
-
}
|
|
152
|
-
`,uht=Qe.div`
|
|
153
|
-
width: 100%;
|
|
154
|
-
height: 60%;
|
|
155
|
-
display: flex;
|
|
156
|
-
flex-direction: column;
|
|
157
|
-
align-items: center;
|
|
158
|
-
margin: auto;
|
|
159
|
-
|
|
160
|
-
[data-img] {
|
|
161
|
-
width: 100%;
|
|
162
|
-
height: 50%;
|
|
163
|
-
margin-bottom: 12px;
|
|
164
|
-
object-fit: contain;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
[data-msg] {
|
|
168
|
-
font-size: 12px;
|
|
169
|
-
line-height: 1;
|
|
170
|
-
|
|
171
|
-
[data-remark] {
|
|
172
|
-
color: #6d7a90;
|
|
173
|
-
margin-right: 8px;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
[data-btn] {
|
|
177
|
-
color: #3379ff;
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
`,cht=(new Map).set(aht.ERROR,{img:"https://img.alicdn.com/imgextra/i4/O1CN01vg4MQE1e6WfWTdtx4_!!6000000003822-55-tps-190-120.svg",remark:"数据加载失败",btn:"刷新一下~"}).set(aht.NO_ACCESS,{img:"https://img.alicdn.com/imgextra/i1/O1CN01Iz7oDf1IqrBik7NYy_!!6000000000945-55-tps-190-120.svg",remark:"你暂无权限",btn:""}).set(aht.NO_DATA,{img:"https://img.alicdn.com/imgextra/i4/O1CN01g0QafV1rIyRHX6HA9_!!6000000005609-55-tps-190-120.svg",remark:"暂无数据",btn:""}),hht=({configData:t,orgLevelVal:n,visionUserConfig:r})=>{const i=n=>{const r=t.indicatorConfig[0];return u.jsxs(e.CnBox,{direction:"row",justify:"space-between",children:[u.jsx("div",{children:u.jsx(rht,{jumpUrl:`/#/indicator-center/details?id=${r.id}`,label:t.name,unit:jy(Gy,t.indicatorConfig[0]?.unit),value:n.indicator?.value,isUnitWrap:!0})}),u.jsx(x7,{color:t.commonConfig.color,data:n.list0??[],chartType:exports.WinChartType.MINI_AREA,style:{width:160,height:84}})]})};return r.initData?i(JSON.parse(r.data)):u.jsx(sht,{errorBoxHeight:90,requestData:{url:Vy(zy,{id:t.id,dataAccVal:t.dataAccCode,orgLevelVal:n})},service:Qct.getDataInfoList,children:i})},pht=({direction:t="row",message:n="无内容",style:r,className:i,isDark:o})=>u.jsxs(e.Box,{direction:t,justify:"center",align:"center",spacing:20,className:i,style:{transform:"translateY(20px)",...r},children:[u.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"}}),u.jsx("span",{style:{fontSize:14,fontWeight:500,color:"#6D7A90"},children:n})]}),dht=({src:t,size:e=12,onClick:n,show:r=!0,style:i,...o})=>u.jsx("img",{alt:"",src:t,onClick:t=>{n&&(t.stopPropagation(),n())},...o,style:{width:e,height:e,objectFit:"contain",display:r?"inline-block":"none",...n&&{cursor:"pointer"},...i}}),fht=({data:t=[],showHandle:n})=>u.jsx(ght,{children:Hy(t)?t.map(((t,r)=>u.jsxs(yht,{children:[u.jsxs(e.CnBox,{direction:"row",spacing:8,children:[u.jsx(dht,{size:24,src:["TERMINATED","COMPLETED"].includes(t.status)?xht:mht}),u.jsxs("div",{children:[u.jsx("div",{"data-title":!0,onClick:By(t.url),style:{...t.title.startsWith("【")&&{transform:"translateX(-8px)"}},children:t.title}),u.jsxs("div",{"data-extra":!0,children:[u.jsx("span",{children:Plt.get({id:"InitiatoritemApplicantName",dm:"发起人:{itemApplicantName}"},{itemApplicantName:t.applicantName})}),u.jsx("span",{children:t.applyTime}),!!t.handlerName&&u.jsx("span",{children:Plt.get({id:"CurrentApproveritemHandlerName",dm:"当前审批人:{itemHandlerName}"},{itemHandlerName:t.handlerName})})]})]})]}),n&&u.jsx(vht,{onClick:By(t.url),children:"👉去处理"})]},r))):u.jsx(pht,{message:Plt.get({id:"TERM.NoData",dm:"暂无数据"}),style:{transform:"translateY(120px)"}})}),ght=Qe.div`
|
|
182
|
-
display: grid;
|
|
183
|
-
grid: auto-flow 64px / 1fr;
|
|
184
|
-
gap: 0;
|
|
185
|
-
line-height: 1;
|
|
186
|
-
font-size: 14px;
|
|
187
|
-
overflow: hidden;
|
|
188
|
-
height: 310px;
|
|
189
|
-
margin-bottom: 12px;
|
|
190
|
-
place-items: center stretch;
|
|
191
|
-
`,yht=Qe.div`
|
|
192
|
-
height: 100%;
|
|
193
|
-
border-top: solid #eee 1px;
|
|
194
|
-
display: grid;
|
|
195
|
-
grid: auto-flow / 1fr 70px;
|
|
196
|
-
place-items: center stretch;
|
|
197
|
-
|
|
198
|
-
[data-title] {
|
|
199
|
-
cursor: pointer;
|
|
200
|
-
font-weight: 500;
|
|
201
|
-
font-size: 14px;
|
|
202
|
-
line-height: 1;
|
|
203
|
-
margin-bottom: 8px;
|
|
204
|
-
white-space: nowrap;
|
|
205
|
-
overflow: hidden;
|
|
206
|
-
color: #272f3d;
|
|
207
|
-
text-overflow: ellipsis;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
[data-extra] {
|
|
211
|
-
font-size: 12px;
|
|
212
|
-
color: #5d677a;
|
|
213
|
-
line-height: 1;
|
|
214
|
-
span {
|
|
215
|
-
margin-right: 12px;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
`,vht=Qe.div`
|
|
219
|
-
cursor: pointer;
|
|
220
|
-
color: #272f3d;
|
|
221
|
-
font-size: 12px;
|
|
222
|
-
height: 22px;
|
|
223
|
-
text-align: center;
|
|
224
|
-
line-height: 21px;
|
|
225
|
-
border: solid #ddd 1px;
|
|
226
|
-
/* width: 80px; */
|
|
227
|
-
border-radius: 12px;
|
|
228
|
-
`,mht="https://img.alicdn.com/imgextra/i3/O1CN01HvOfeP1XOCe517Amr_!!6000000002913-55-tps-31-29.svg",xht="https://img.alicdn.com/imgextra/i3/O1CN01jr6Aiq1EIjDAqHXkZ_!!6000000000329-55-tps-30-28.svg";class _ht{static async getMatterDataList(t){return Fy(await Jct({url:"/workbench/common/queryWorkflowList",method:"POST",data:t}))}static async queryWinRankList(){return Fy(await Jct({url:"/workbench/common/queryWinRankList"}))}}const bht=Qe((function({dataList:t=[],value:e,onChange:n,...r}){return u.jsx("div",{...r,children:t.map(((r,i)=>u.jsx("div",{"data-tab-item":!0,"data-tab-last":i===t.length-1,"data-checked":r.value===e,onClick:()=>n(r.value),children:r.label},i)))})}))`
|
|
229
|
-
display: flex;
|
|
230
|
-
align-items: center;
|
|
231
|
-
position: relative;
|
|
232
|
-
border-radius: 500px;
|
|
233
|
-
line-height: 1;
|
|
234
|
-
color: #5d677a;
|
|
235
|
-
font-size: 14px;
|
|
236
|
-
margin-bottom: 16px;
|
|
237
|
-
[data-tab-item] {
|
|
238
|
-
white-space: nowrap;
|
|
239
|
-
text-overflow: ellipsis;
|
|
240
|
-
overflow: hidden;
|
|
241
|
-
cursor: pointer;
|
|
242
|
-
user-select: none;
|
|
243
|
-
transition: all 0.3s;
|
|
244
|
-
position: relative;
|
|
245
|
-
margin-right: ${24}px;
|
|
246
|
-
z-index: 1;
|
|
247
|
-
&[data-tab-last='true'] {
|
|
248
|
-
margin-right: 0px;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
&[data-checked='true'] {
|
|
252
|
-
font-weight: 700;
|
|
253
|
-
color: #272f3d;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
`,wht=[{label:Plt.get({id:"TodoList",dm:"待办清单"}),value:on.PENDING},{label:Plt.get({id:"ISentOut",dm:"我发出的"}),value:on.CREATE},{label:Plt.get({id:"ItemsAlreadyHandled",dm:"已办事项"}),value:on.COMPLETE}],Sht=({style:e})=>{const[n,r]=t.useState(on.PENDING);return u.jsxs("div",{style:e,children:[u.jsx(bht,{value:n,onChange:r,dataList:wht}),wht.map((t=>u.jsx(Mht,{show:t.value===n,workflowType:t.value,onChangeWorkflowType:r},t.value)))]})},Mht=({show:n,workflowType:r,onChangeWorkflowType:i})=>{const[o,a]=t.useState(!1),[s,l]=t.useState({currentPage:1,pageSize:5}),c=t.useRef();return t.useEffect((()=>{o&&!Hy(c.current)&&(r===on.PENDING?i(on.CREATE):r===on.CREATE&&i(on.COMPLETE))}),[o,i,r]),u.jsx("div",{style:{display:n?"block":"none"},children:u.jsx(sht,{initData:n,errorBoxHeight:300,requestData:{workflowType:r,currentPage:s.currentPage,pageSize:s.pageSize},service:_ht.getMatterDataList,children:t=>(a(!0),c.current=t.tableData,u.jsxs("div",{children:[u.jsx(fht,{data:t.tableData,showHandle:"PENDING"===r}),u.jsx(e.Box,{direction:"row",justify:"flex-end",children:u.jsx(e.CnPagination,{size:"small",shape:"arrow-only",total:t.paging.totalCount,current:s.currentPage,onChange:t=>l({...s,currentPage:t}),pageSize:s.pageSize})})]}))})})},Cht=({configData:t,unit:e,orgLevelVal:n,visionUserConfig:r})=>{const i=n=>{const r=t.indicatorConfig[0];return u.jsx(rht,{jumpUrl:`/#/indicator-center/details?id=${r.id}`,label:t.name,unit:e,value:n.indicator?.value})};return r.initData?i(JSON.parse(r.data)):u.jsx(sht,{noEmptyBox:!0,errorBoxHeight:50,requestData:{url:Vy(zy,{id:t.id,dataAccVal:t.dataAccCode,orgLevelVal:n})},service:Qct.getDataInfoList,style:{height:"auto"},children:i})},Iht=({configData:t,orgLevelVal:e,winChartType:n,reserveValueWithLabelType:r,visionUserConfig:i})=>{const o=e=>u.jsx(x7,{sort:t.commonConfig.sort,yStart:t.commonConfig.yStart,color:t.commonConfig.color,reserveValueWithLabelType:r,xAxisLabelLength:t.commonConfig.xAxisLabelLength,xAxisLabelRotate:t.commonConfig.xAxisLabelRotate,data:e.list0,extraData:e.list1,chartType:n,style:{height:"calc(100% - 20px)"}});return i.initData?o(JSON.parse(i.data)):u.jsx(sht,{requestData:{url:Vy(zy,{id:t.id,dataAccVal:t.dataAccCode,orgLevelVal:e})},service:Qct.getDataInfoList,children:o})},Tht=Qe(e.Select).attrs({size:"small",showSearch:!0,style:{width:130},popupStyle:{width:200}})`
|
|
257
|
-
transform: translateY(-4px);
|
|
258
|
-
|
|
259
|
-
span {
|
|
260
|
-
background: transparent;
|
|
261
|
-
}
|
|
262
|
-
`,Aht=Qe(e.Select).attrs({size:"small",showSearch:!0,style:{width:100},popupStyle:{width:200}})`
|
|
263
|
-
span {
|
|
264
|
-
background: transparent;
|
|
265
|
-
}
|
|
266
|
-
`,Dht=({followTrigger:t=!1,content:n,style:r,cStyle:i,className:o,onClick:a})=>{const{Tooltip:s}=e.Balloon,l=u.jsx("div",{onClick:a,className:o,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...i},children:n});return u.jsx(s,{trigger:l,followTrigger:t,v2:!0,align:"br",style:r,children:n})};class Eht{static async getConfigInfo(t){return Fy(await Jct({url:`/workbench/widget/queryById?id=${t}`}))}static async addConfigInfo(t){return Fy(await Jct({url:"/workbench/widget/save",method:"POST",data:t}))}static async updateConfigInfo(t){return Fy(await Jct({url:"/workbench/widget/save",method:"POST",data:t}))}static async queryOptionList(t){return Fy(await Jct({url:"/workbench/widget/option",params:{id:t}}))}static async delete(t){return Fy(await Jct({url:"/workbench/widget/delete",method:"GET",params:{id:t}}))}}const kht=t.createContext(void 0),Nht=()=>u.jsx(sht,{service:_ht.queryWinRankList,children:e=>u.jsx(Oht,{children:e.map(((e,n)=>u.jsxs("div",{children:[u.jsx("div",{"data-title":!0,children:e.title}),u.jsx("div",{"data-content":!0,children:e.list?.map(((e,r)=>{const i=r<5,o=()=>{if(4===r)return{marginBottom:4}};return u.jsx(t.Fragment,{children:0===n?u.jsx(Lht,{style:o(),children:i?"❤️":"💪"}):u.jsxs(Pht,{style:{backgroundColor:i?"rgba(250,107,105,0.1)":"rgba(177,185,199,0.2)",...o()},children:[u.jsx("div",{"data-label":!0,children:u.jsx(Dht,{content:e.label})}),u.jsx("span",{children:e.value})]})},e.label+e.children)}))})]},e.title)))})}),Oht=Qe.div`
|
|
267
|
-
display: grid;
|
|
268
|
-
grid: auto-flow / 36px repeat(4, 1fr);
|
|
269
|
-
gap: 8px;
|
|
270
|
-
overflow: auto;
|
|
271
|
-
|
|
272
|
-
[data-title] {
|
|
273
|
-
font-weight: 500;
|
|
274
|
-
font-size: 12px;
|
|
275
|
-
color: #394252;
|
|
276
|
-
line-height: 1;
|
|
277
|
-
margin-bottom: 16px;
|
|
278
|
-
display: grid;
|
|
279
|
-
place-items: center;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
[data-content] {
|
|
283
|
-
display: grid;
|
|
284
|
-
grid: auto-flow 24px / 1fr;
|
|
285
|
-
gap: 12px;
|
|
286
|
-
}
|
|
287
|
-
`,Lht=Qe.div`
|
|
288
|
-
display: grid;
|
|
289
|
-
place-items: center;
|
|
290
|
-
`,Pht=Qe(e.CnBox).attrs({direction:"row",justify:"space-between",align:"center"})`
|
|
291
|
-
border-radius: 500px;
|
|
292
|
-
font-size: 12px;
|
|
293
|
-
color: #272f3d;
|
|
294
|
-
padding: 0 10px;
|
|
295
|
-
|
|
296
|
-
[data-label] {
|
|
297
|
-
width: 80px;
|
|
298
|
-
}
|
|
299
|
-
`,Rht=({configData:n,context:r,style:i,showSwitch:o})=>{const a=t.useRef(null),s=(n=>{const[r,i]=t.useState([]);return t.useEffect((()=>{(async()=>{try{if(n){const t=await Eht.queryOptionList(n);i(t)}}catch(t){e.CnMessage(t.message)}})()}),[n]),r})(oht(a)&&n.commonConfig.orgLevel?n.id:void 0),[l,c]=t.useState(),h=n.chartType===rn.INDICATOR,p=!!n.commonConfig.orgLevel,d=![rn.CUSTOM_CARD].includes(n.chartType),f=n.detailUrl,g=[...f?[u.jsx(e.CnMenuItem,{onClick:By(f),children:Plt.get({id:"ViewDetails",dm:"查看详情"})},"jump")]:[]],y=t.useContext(r??kht),v=t.useRef(!1);t.useEffect((()=>{if(0!==s.length&&y){const t=y[n.commonConfig.orgLevel],e=s.map((t=>t.value)).includes(t);v.current?e&&c(t):(c(e?t:s[0].value),v.current=!0)}}),[n.commonConfig.orgLevel,s,y]);const m=jy(Gy,n.indicatorConfig[0]?.unit);return u.jsxs(tht,{ref:a,style:i,children:[d&&u.jsxs(e.CnBox,{direction:"row",justify:"space-between",style:{height:20},children:[u.jsx(eht,{"data-card-id":n.id,style:{maxWidth:h||!p?"80%":"45%",position:"relative",...[rn.INDICATOR,rn.INDICATOR_AREA].includes(n.chartType)&&{fontSize:"12px",fontWeight:"normal"}},children:u.jsx(Dht,{content:n.name})}),u.jsxs(e.CnBox,{direction:"row",align:"center",children:[o&&p&&!h&&u.jsx(Tht,{value:l,dataSource:s,onChange:c}),Hy(g)&&u.jsx("div",{style:{transform:"translate(8px, -4px) rotate(0.25turn)"},children:u.jsx(e.CnDropdown,{trigger:u.jsx(e.Icon,{type:"ellipsis",style:{cursor:"pointer"}}),children:u.jsx(e.CnMenu,{style:{width:15},children:g})})})]})]}),zht({configData:n,hasOrgLevel:p,orgLevelVal:l,unit:m,visionUserConfig:y}),h&&u.jsx(e.CnBox,{spacing:8,children:o&&p&&u.jsx(Aht,{value:l,dataSource:s,onChange:c})})]})},zht=({configData:t,hasOrgLevel:e,orgLevelVal:n,unit:r,visionUserConfig:i})=>{const o={configData:t,orgLevelVal:n,unit:r,visionUserConfig:i};if(e&&!n)return null;switch(t.chartType){case rn.INDICATOR:return u.jsx(Cht,{...o});case rn.INDICATOR_AREA:return u.jsx(hht,{...o});case rn.DUAL_LINE_BAR_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.DUAL_LINE_BAR,...o});case rn.AREA_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.AREA,...o});case rn.LINE_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.LINE,...o});case rn.COLUMN_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.COLUMN,...o});case rn.STACK_COLUMN_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.STACK_COLUMN,...o});case rn.FUNNEL_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.FUNNEL,...o});case rn.BAR_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.BAR,...o});case rn.PIE_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.PIE,...o});case rn.PIE_CHART_RESERVE:return u.jsx(Iht,{reserveValueWithLabelType:!0,winChartType:exports.WinChartType.PIE,...o});case rn.CYCLE_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.CYCLE,...o});case rn.RADAR_CHART:return u.jsx(Iht,{winChartType:exports.WinChartType.RADAR,...o});case rn.RADAR_CHART_RESERVE:return u.jsx(Iht,{reserveValueWithLabelType:!0,winChartType:exports.WinChartType.RADAR,...o});case rn.CUSTOM_CARD:return Vht(t.name);default:return}},Vht=t=>{switch(t){case"WIN排行榜":return u.jsx(Nht,{});case"工作台待办":return u.jsx(Sht,{});default:return u.jsx("div",{children:Plt.get({id:"TheCustomSliceWasNotFoundPleaseC_1572163781",dm:"未找到该自定义该片,请检查名称是否正确"})})}};exports.VisionUserConfigContext=kht,exports.WinCard=({id:t,config:e,style:n,fixSize:r,context:i,spanWidth:o=156,spanHeight:a=128,showSwitch:s=!0})=>{const l=t=>u.jsx(Rht,{showSwitch:s,context:i,configData:t,style:{...r&&{width:t.colWidth*o,height:t.colHeight*a},...n}});return e?l(e):u.jsx(sht,{requestData:{url:`/workbench/widget/queryById?id=${t}`},service:Qct.getConfigInfo,style:{width:"100%",height:"100%",...n},children:l})},exports.WinChart=x7,exports.default=x7;
|
|
300
|
-
//# sourceMappingURL=bundle.cjs.js.map
|