ai-dev-analytics 1.1.12 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/README.en.md +51 -57
  2. package/README.md +68 -485
  3. package/dist/cli/commands/doctor.d.ts +2 -0
  4. package/dist/cli/commands/doctor.d.ts.map +1 -0
  5. package/dist/cli/commands/doctor.js +125 -0
  6. package/dist/cli/commands/doctor.js.map +1 -0
  7. package/dist/cli/commands/init.d.ts.map +1 -1
  8. package/dist/cli/commands/init.js +19 -176
  9. package/dist/cli/commands/init.js.map +1 -1
  10. package/dist/cli/commands/memory.d.ts.map +1 -1
  11. package/dist/cli/commands/memory.js +3 -13
  12. package/dist/cli/commands/memory.js.map +1 -1
  13. package/dist/cli/commands/rules.d.ts +0 -10
  14. package/dist/cli/commands/rules.d.ts.map +1 -1
  15. package/dist/cli/commands/rules.js +9 -34
  16. package/dist/cli/commands/rules.js.map +1 -1
  17. package/dist/cli/commands/skills.d.ts +0 -5
  18. package/dist/cli/commands/skills.d.ts.map +1 -1
  19. package/dist/cli/commands/skills.js +5 -24
  20. package/dist/cli/commands/skills.js.map +1 -1
  21. package/dist/cli/commands/sync.d.ts +2 -0
  22. package/dist/cli/commands/sync.d.ts.map +1 -0
  23. package/dist/cli/commands/sync.js +28 -0
  24. package/dist/cli/commands/sync.js.map +1 -0
  25. package/dist/cli/index.js +26 -85
  26. package/dist/cli/index.js.map +1 -1
  27. package/dist/{schemas/run-json.d.ts → internal/runtime/schema.d.ts} +4 -18
  28. package/dist/internal/runtime/schema.d.ts.map +1 -0
  29. package/dist/{schemas/run-json.js → internal/runtime/schema.js} +5 -9
  30. package/dist/internal/runtime/schema.js.map +1 -0
  31. package/dist/{utils/run-data.d.ts → internal/runtime/state.d.ts} +7 -8
  32. package/dist/internal/runtime/state.d.ts.map +1 -0
  33. package/dist/{utils/run-data.js → internal/runtime/state.js} +11 -12
  34. package/dist/internal/runtime/state.js.map +1 -0
  35. package/dist/internal/runtime/summary.d.ts +8 -0
  36. package/dist/internal/runtime/summary.d.ts.map +1 -0
  37. package/dist/internal/runtime/summary.js +260 -0
  38. package/dist/internal/runtime/summary.js.map +1 -0
  39. package/dist/internal/runtime/tokens.d.ts.map +1 -0
  40. package/dist/internal/runtime/tokens.js.map +1 -0
  41. package/dist/mcp/server.js +9 -8
  42. package/dist/mcp/server.js.map +1 -1
  43. package/dist/schemas/aida-project.d.ts +27 -1
  44. package/dist/schemas/aida-project.d.ts.map +1 -1
  45. package/dist/schemas/rules.d.ts +15 -0
  46. package/dist/schemas/rules.d.ts.map +1 -0
  47. package/dist/schemas/rules.js +5 -0
  48. package/dist/schemas/rules.js.map +1 -0
  49. package/dist/services/project-build.d.ts +44 -0
  50. package/dist/services/project-build.d.ts.map +1 -0
  51. package/dist/services/project-build.js +32 -0
  52. package/dist/services/project-build.js.map +1 -0
  53. package/dist/services/project-health.d.ts +14 -0
  54. package/dist/services/project-health.d.ts.map +1 -0
  55. package/dist/services/project-health.js +19 -0
  56. package/dist/services/project-health.js.map +1 -0
  57. package/dist/services/security-audit.d.ts +59 -0
  58. package/dist/services/security-audit.d.ts.map +1 -0
  59. package/dist/services/security-audit.js +638 -0
  60. package/dist/services/security-audit.js.map +1 -0
  61. package/dist/utils/ai-build.d.ts +3 -8
  62. package/dist/utils/ai-build.d.ts.map +1 -1
  63. package/dist/utils/ai-build.js +31 -117
  64. package/dist/utils/ai-build.js.map +1 -1
  65. package/dist/utils/guide.d.ts +3 -3
  66. package/dist/utils/guide.d.ts.map +1 -1
  67. package/dist/utils/guide.js +91 -68
  68. package/dist/utils/guide.js.map +1 -1
  69. package/dist/utils/import.d.ts.map +1 -1
  70. package/dist/utils/import.js +4 -15
  71. package/dist/utils/import.js.map +1 -1
  72. package/dist/utils/memory.d.ts +2 -0
  73. package/dist/utils/memory.d.ts.map +1 -1
  74. package/dist/utils/memory.js +440 -95
  75. package/dist/utils/memory.js.map +1 -1
  76. package/dist/utils/paths.d.ts +2 -10
  77. package/dist/utils/paths.d.ts.map +1 -1
  78. package/dist/utils/paths.js +5 -17
  79. package/dist/utils/paths.js.map +1 -1
  80. package/dist/utils/project-health.d.ts +39 -0
  81. package/dist/utils/project-health.d.ts.map +1 -0
  82. package/dist/utils/project-health.js +286 -0
  83. package/dist/utils/project-health.js.map +1 -0
  84. package/dist/utils/registry.d.ts +11 -0
  85. package/dist/utils/registry.d.ts.map +1 -0
  86. package/dist/utils/registry.js +65 -0
  87. package/dist/utils/registry.js.map +1 -0
  88. package/dist/utils/rules.d.ts +11 -1
  89. package/dist/utils/rules.d.ts.map +1 -1
  90. package/dist/utils/rules.js +76 -8
  91. package/dist/utils/rules.js.map +1 -1
  92. package/dist/utils/skills.d.ts +6 -9
  93. package/dist/utils/skills.d.ts.map +1 -1
  94. package/dist/utils/skills.js +26 -54
  95. package/dist/utils/skills.js.map +1 -1
  96. package/package.json +12 -14
  97. package/dist/cli/commands/build.d.ts +0 -2
  98. package/dist/cli/commands/build.d.ts.map +0 -1
  99. package/dist/cli/commands/build.js +0 -56
  100. package/dist/cli/commands/build.js.map +0 -1
  101. package/dist/cli/commands/dashboard.d.ts +0 -2
  102. package/dist/cli/commands/dashboard.d.ts.map +0 -1
  103. package/dist/cli/commands/dashboard.js +0 -70
  104. package/dist/cli/commands/dashboard.js.map +0 -1
  105. package/dist/cli/commands/import.d.ts +0 -2
  106. package/dist/cli/commands/import.d.ts.map +0 -1
  107. package/dist/cli/commands/import.js +0 -71
  108. package/dist/cli/commands/import.js.map +0 -1
  109. package/dist/cli/commands/log.d.ts +0 -2
  110. package/dist/cli/commands/log.d.ts.map +0 -1
  111. package/dist/cli/commands/log.js +0 -440
  112. package/dist/cli/commands/log.js.map +0 -1
  113. package/dist/cli/commands/merge-data.d.ts +0 -20
  114. package/dist/cli/commands/merge-data.d.ts.map +0 -1
  115. package/dist/cli/commands/merge-data.js +0 -574
  116. package/dist/cli/commands/merge-data.js.map +0 -1
  117. package/dist/cli/commands/merge.d.ts +0 -2
  118. package/dist/cli/commands/merge.d.ts.map +0 -1
  119. package/dist/cli/commands/merge.js +0 -82
  120. package/dist/cli/commands/merge.js.map +0 -1
  121. package/dist/cli/commands/migrate-dir.d.ts +0 -6
  122. package/dist/cli/commands/migrate-dir.d.ts.map +0 -1
  123. package/dist/cli/commands/migrate-dir.js +0 -125
  124. package/dist/cli/commands/migrate-dir.js.map +0 -1
  125. package/dist/cli/commands/migrate-legacy.d.ts +0 -2
  126. package/dist/cli/commands/migrate-legacy.d.ts.map +0 -1
  127. package/dist/cli/commands/migrate-legacy.js +0 -143
  128. package/dist/cli/commands/migrate-legacy.js.map +0 -1
  129. package/dist/cli/commands/migrate.d.ts +0 -2
  130. package/dist/cli/commands/migrate.d.ts.map +0 -1
  131. package/dist/cli/commands/migrate.js +0 -300
  132. package/dist/cli/commands/migrate.js.map +0 -1
  133. package/dist/cli/commands/reindex.d.ts +0 -14
  134. package/dist/cli/commands/reindex.d.ts.map +0 -1
  135. package/dist/cli/commands/reindex.js +0 -139
  136. package/dist/cli/commands/reindex.js.map +0 -1
  137. package/dist/cli/commands/report.d.ts +0 -2
  138. package/dist/cli/commands/report.d.ts.map +0 -1
  139. package/dist/cli/commands/report.js +0 -219
  140. package/dist/cli/commands/report.js.map +0 -1
  141. package/dist/cli/commands/start.d.ts +0 -2
  142. package/dist/cli/commands/start.d.ts.map +0 -1
  143. package/dist/cli/commands/start.js +0 -155
  144. package/dist/cli/commands/start.js.map +0 -1
  145. package/dist/cli/commands/status.d.ts +0 -2
  146. package/dist/cli/commands/status.d.ts.map +0 -1
  147. package/dist/cli/commands/status.js +0 -70
  148. package/dist/cli/commands/status.js.map +0 -1
  149. package/dist/cli/commands/update.d.ts +0 -2
  150. package/dist/cli/commands/update.d.ts.map +0 -1
  151. package/dist/cli/commands/update.js +0 -73
  152. package/dist/cli/commands/update.js.map +0 -1
  153. package/dist/schemas/run-json.d.ts.map +0 -1
  154. package/dist/schemas/run-json.js.map +0 -1
  155. package/dist/server/api.d.ts +0 -30
  156. package/dist/server/api.d.ts.map +0 -1
  157. package/dist/server/api.js +0 -239
  158. package/dist/server/api.js.map +0 -1
  159. package/dist/server/index.d.ts +0 -2
  160. package/dist/server/index.d.ts.map +0 -1
  161. package/dist/server/index.js +0 -228
  162. package/dist/server/index.js.map +0 -1
  163. package/dist/utils/run-data.d.ts.map +0 -1
  164. package/dist/utils/run-data.js.map +0 -1
  165. package/dist/utils/tokens.d.ts.map +0 -1
  166. package/dist/utils/tokens.js.map +0 -1
  167. package/src/assets/skills/audit.md +0 -98
  168. package/src/assets/skills/bug-fixer.md +0 -43
  169. package/src/assets/skills/code-generator.md +0 -71
  170. package/src/assets/skills/commit-code.md +0 -67
  171. package/src/assets/skills/dashboard-generator.md +0 -65
  172. package/src/assets/skills/dev-flower.md +0 -85
  173. package/src/assets/skills/deviation-recorder.md +0 -83
  174. package/src/assets/skills/docx-to-markdown.md +0 -69
  175. package/src/assets/skills/mcp-reviewer.md +0 -38
  176. package/src/assets/skills/requirement-analyzer.md +0 -103
  177. package/src/assets/skills/rules-evolver.md +0 -47
  178. package/src/assets/skills/self-reviewer.md +0 -49
  179. package/src/assets/skills/task-splitter.md +0 -60
  180. package/src/assets/skills/workflow-orchestrator.md +0 -209
  181. package/src/assets/templates/demo-run.json +0 -910
  182. package/src/assets/templates/run.json +0 -63
  183. package/src/dashboard/assets/index-B8QcPcg7.css +0 -1
  184. package/src/dashboard/assets/index-DcAl6lhS.js +0 -111
  185. package/src/dashboard/demo/overview.json +0 -71
  186. package/src/dashboard/demo/run.en.json +0 -1169
  187. package/src/dashboard/demo/run.json +0 -2667
  188. package/src/dashboard/demo/run.zh.json +0 -1169
  189. package/src/dashboard/demo/runs.json +0 -19
  190. package/src/dashboard/index.html +0 -13
  191. /package/dist/{utils → internal/runtime}/tokens.d.ts +0 -0
  192. /package/dist/{utils → internal/runtime}/tokens.js +0 -0
@@ -1,111 +0,0 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}})();function W3(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var T1={exports:{}},Tc={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var _M;function s8(){if(_M)return Tc;_M=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(a,n,i){var o=null;if(i!==void 0&&(o=""+i),n.key!==void 0&&(o=""+n.key),"key"in n){i={};for(var l in n)l!=="key"&&(i[l]=n[l])}else i=n;return n=i.ref,{$$typeof:r,type:a,key:o,ref:n!==void 0?n:null,props:i}}return Tc.Fragment=e,Tc.jsx=t,Tc.jsxs=t,Tc}var SM;function u8(){return SM||(SM=1,T1.exports=s8()),T1.exports}var G=u8(),A1={exports:{}},jt={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var bM;function f8(){if(bM)return jt;bM=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),d=Symbol.iterator;function p(F){return F===null||typeof F!="object"?null:(F=d&&F[d]||F["@@iterator"],typeof F=="function"?F:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function b(F,W,at){this.props=F,this.context=W,this.refs=_,this.updater=at||y}b.prototype.isReactComponent={},b.prototype.setState=function(F,W){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,W,"setState")},b.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function x(){}x.prototype=b.prototype;function w(F,W,at){this.props=F,this.context=W,this.refs=_,this.updater=at||y}var A=w.prototype=new x;A.constructor=w,m(A,b.prototype),A.isPureReactComponent=!0;var M=Array.isArray;function D(){}var L={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function E(F,W,at){var lt=at.ref;return{$$typeof:r,type:F,key:W,ref:lt!==void 0?lt:null,props:at}}function O(F,W){return E(F.type,W,F.props)}function P(F){return typeof F=="object"&&F!==null&&F.$$typeof===r}function k(F){var W={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(at){return W[at]})}var V=/\/+/g;function H(F,W){return typeof F=="object"&&F!==null&&F.key!=null?k(""+F.key):W.toString(36)}function U(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(D,D):(F.status="pending",F.then(function(W){F.status==="pending"&&(F.status="fulfilled",F.value=W)},function(W){F.status==="pending"&&(F.status="rejected",F.reason=W)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function z(F,W,at,lt,ct){var bt=typeof F;(bt==="undefined"||bt==="boolean")&&(F=null);var Pt=!1;if(F===null)Pt=!0;else switch(bt){case"bigint":case"string":case"number":Pt=!0;break;case"object":switch(F.$$typeof){case r:case e:Pt=!0;break;case c:return Pt=F._init,z(Pt(F._payload),W,at,lt,ct)}}if(Pt)return ct=ct(F),Pt=lt===""?"."+H(F,0):lt,M(ct)?(at="",Pt!=null&&(at=Pt.replace(V,"$&/")+"/"),z(ct,W,at,"",function(Ot){return Ot})):ct!=null&&(P(ct)&&(ct=O(ct,at+(ct.key==null||F&&F.key===ct.key?"":(""+ct.key).replace(V,"$&/")+"/")+Pt)),W.push(ct)),1;Pt=0;var wt=lt===""?".":lt+":";if(M(F))for(var pt=0;pt<F.length;pt++)lt=F[pt],bt=wt+H(lt,pt),Pt+=z(lt,W,at,bt,ct);else if(pt=p(F),typeof pt=="function")for(F=pt.call(F),pt=0;!(lt=F.next()).done;)lt=lt.value,bt=wt+H(lt,pt++),Pt+=z(lt,W,at,bt,ct);else if(bt==="object"){if(typeof F.then=="function")return z(U(F),W,at,lt,ct);throw W=String(F),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return Pt}function Y(F,W,at){if(F==null)return F;var lt=[],ct=0;return z(F,lt,"","",function(bt){return W.call(at,bt,ct++)}),lt}function j(F){if(F._status===-1){var W=F._result;W=W(),W.then(function(at){(F._status===0||F._status===-1)&&(F._status=1,F._result=at)},function(at){(F._status===0||F._status===-1)&&(F._status=2,F._result=at)}),F._status===-1&&(F._status=0,F._result=W)}if(F._status===1)return F._result.default;throw F._result}var $=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)},tt={map:Y,forEach:function(F,W,at){Y(F,function(){W.apply(this,arguments)},at)},count:function(F){var W=0;return Y(F,function(){W++}),W},toArray:function(F){return Y(F,function(W){return W})||[]},only:function(F){if(!P(F))throw Error("React.Children.only expected to receive a single React element child.");return F}};return jt.Activity=h,jt.Children=tt,jt.Component=b,jt.Fragment=t,jt.Profiler=n,jt.PureComponent=w,jt.StrictMode=a,jt.Suspense=s,jt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,jt.__COMPILER_RUNTIME={__proto__:null,c:function(F){return L.H.useMemoCache(F)}},jt.cache=function(F){return function(){return F.apply(null,arguments)}},jt.cacheSignal=function(){return null},jt.cloneElement=function(F,W,at){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var lt=m({},F.props),ct=F.key;if(W!=null)for(bt in W.key!==void 0&&(ct=""+W.key),W)!R.call(W,bt)||bt==="key"||bt==="__self"||bt==="__source"||bt==="ref"&&W.ref===void 0||(lt[bt]=W[bt]);var bt=arguments.length-2;if(bt===1)lt.children=at;else if(1<bt){for(var Pt=Array(bt),wt=0;wt<bt;wt++)Pt[wt]=arguments[wt+2];lt.children=Pt}return E(F.type,ct,lt)},jt.createContext=function(F){return F={$$typeof:o,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:i,_context:F},F},jt.createElement=function(F,W,at){var lt,ct={},bt=null;if(W!=null)for(lt in W.key!==void 0&&(bt=""+W.key),W)R.call(W,lt)&&lt!=="key"&&lt!=="__self"&&lt!=="__source"&&(ct[lt]=W[lt]);var Pt=arguments.length-2;if(Pt===1)ct.children=at;else if(1<Pt){for(var wt=Array(Pt),pt=0;pt<Pt;pt++)wt[pt]=arguments[pt+2];ct.children=wt}if(F&&F.defaultProps)for(lt in Pt=F.defaultProps,Pt)ct[lt]===void 0&&(ct[lt]=Pt[lt]);return E(F,bt,ct)},jt.createRef=function(){return{current:null}},jt.forwardRef=function(F){return{$$typeof:l,render:F}},jt.isValidElement=P,jt.lazy=function(F){return{$$typeof:c,_payload:{_status:-1,_result:F},_init:j}},jt.memo=function(F,W){return{$$typeof:u,type:F,compare:W===void 0?null:W}},jt.startTransition=function(F){var W=L.T,at={};L.T=at;try{var lt=F(),ct=L.S;ct!==null&&ct(at,lt),typeof lt=="object"&&lt!==null&&typeof lt.then=="function"&&lt.then(D,$)}catch(bt){$(bt)}finally{W!==null&&at.types!==null&&(W.types=at.types),L.T=W}},jt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},jt.use=function(F){return L.H.use(F)},jt.useActionState=function(F,W,at){return L.H.useActionState(F,W,at)},jt.useCallback=function(F,W){return L.H.useCallback(F,W)},jt.useContext=function(F){return L.H.useContext(F)},jt.useDebugValue=function(){},jt.useDeferredValue=function(F,W){return L.H.useDeferredValue(F,W)},jt.useEffect=function(F,W){return L.H.useEffect(F,W)},jt.useEffectEvent=function(F){return L.H.useEffectEvent(F)},jt.useId=function(){return L.H.useId()},jt.useImperativeHandle=function(F,W,at){return L.H.useImperativeHandle(F,W,at)},jt.useInsertionEffect=function(F,W){return L.H.useInsertionEffect(F,W)},jt.useLayoutEffect=function(F,W){return L.H.useLayoutEffect(F,W)},jt.useMemo=function(F,W){return L.H.useMemo(F,W)},jt.useOptimistic=function(F,W){return L.H.useOptimistic(F,W)},jt.useReducer=function(F,W,at){return L.H.useReducer(F,W,at)},jt.useRef=function(F){return L.H.useRef(F)},jt.useState=function(F){return L.H.useState(F)},jt.useSyncExternalStore=function(F,W,at){return L.H.useSyncExternalStore(F,W,at)},jt.useTransition=function(){return L.H.useTransition()},jt.version="19.2.4",jt}var xM;function qx(){return xM||(xM=1,A1.exports=f8()),A1.exports}var Oe=qx();const c8=W3(Oe);var C1={exports:{}},Ac={},D1={exports:{}},M1={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var wM;function h8(){return wM||(wM=1,(function(r){function e(z,Y){var j=z.length;z.push(Y);t:for(;0<j;){var $=j-1>>>1,tt=z[$];if(0<n(tt,Y))z[$]=Y,z[j]=tt,j=$;else break t}}function t(z){return z.length===0?null:z[0]}function a(z){if(z.length===0)return null;var Y=z[0],j=z.pop();if(j!==Y){z[0]=j;t:for(var $=0,tt=z.length,F=tt>>>1;$<F;){var W=2*($+1)-1,at=z[W],lt=W+1,ct=z[lt];if(0>n(at,j))lt<tt&&0>n(ct,at)?(z[$]=ct,z[lt]=j,$=lt):(z[$]=at,z[W]=j,$=W);else if(lt<tt&&0>n(ct,j))z[$]=ct,z[lt]=j,$=lt;else break t}}return Y}function n(z,Y){var j=z.sortIndex-Y.sortIndex;return j!==0?j:z.id-Y.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;r.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();r.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,h=null,d=3,p=!1,y=!1,m=!1,_=!1,b=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function A(z){for(var Y=t(u);Y!==null;){if(Y.callback===null)a(u);else if(Y.startTime<=z)a(u),Y.sortIndex=Y.expirationTime,e(s,Y);else break;Y=t(u)}}function M(z){if(m=!1,A(z),!y)if(t(s)!==null)y=!0,D||(D=!0,k());else{var Y=t(u);Y!==null&&U(M,Y.startTime-z)}}var D=!1,L=-1,R=5,E=-1;function O(){return _?!0:!(r.unstable_now()-E<R)}function P(){if(_=!1,D){var z=r.unstable_now();E=z;var Y=!0;try{t:{y=!1,m&&(m=!1,x(L),L=-1),p=!0;var j=d;try{e:{for(A(z),h=t(s);h!==null&&!(h.expirationTime>z&&O());){var $=h.callback;if(typeof $=="function"){h.callback=null,d=h.priorityLevel;var tt=$(h.expirationTime<=z);if(z=r.unstable_now(),typeof tt=="function"){h.callback=tt,A(z),Y=!0;break e}h===t(s)&&a(s),A(z)}else a(s);h=t(s)}if(h!==null)Y=!0;else{var F=t(u);F!==null&&U(M,F.startTime-z),Y=!1}}break t}finally{h=null,d=j,p=!1}Y=void 0}}finally{Y?k():D=!1}}}var k;if(typeof w=="function")k=function(){w(P)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,H=V.port2;V.port1.onmessage=P,k=function(){H.postMessage(null)}}else k=function(){b(P,0)};function U(z,Y){L=b(function(){z(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(z){z.callback=null},r.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<z?Math.floor(1e3/z):5},r.unstable_getCurrentPriorityLevel=function(){return d},r.unstable_next=function(z){switch(d){case 1:case 2:case 3:var Y=3;break;default:Y=d}var j=d;d=Y;try{return z()}finally{d=j}},r.unstable_requestPaint=function(){_=!0},r.unstable_runWithPriority=function(z,Y){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var j=d;d=z;try{return Y()}finally{d=j}},r.unstable_scheduleCallback=function(z,Y,j){var $=r.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?$+j:$):j=$,z){case 1:var tt=-1;break;case 2:tt=250;break;case 5:tt=1073741823;break;case 4:tt=1e4;break;default:tt=5e3}return tt=j+tt,z={id:c++,callback:Y,priorityLevel:z,startTime:j,expirationTime:tt,sortIndex:-1},j>$?(z.sortIndex=j,e(u,z),t(s)===null&&z===t(u)&&(m?(x(L),L=-1):m=!0,U(M,j-$))):(z.sortIndex=tt,e(s,z),y||p||(y=!0,D||(D=!0,k()))),z},r.unstable_shouldYield=O,r.unstable_wrapCallback=function(z){var Y=d;return function(){var j=d;d=Y;try{return z.apply(this,arguments)}finally{d=j}}}})(M1)),M1}var TM;function v8(){return TM||(TM=1,D1.exports=h8()),D1.exports}var L1={exports:{}},Tr={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var AM;function d8(){if(AM)return Tr;AM=1;var r=qx();function e(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var a={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},n=Symbol.for("react.portal");function i(s,u,c){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:s,containerInfo:u,implementation:c}}var o=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(s,u){if(s==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Tr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Tr.createPortal=function(s,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return i(s,u,null,c)},Tr.flushSync=function(s){var u=o.T,c=a.p;try{if(o.T=null,a.p=2,s)return s()}finally{o.T=u,a.p=c,a.d.f()}},Tr.preconnect=function(s,u){typeof s=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,a.d.C(s,u))},Tr.prefetchDNS=function(s){typeof s=="string"&&a.d.D(s)},Tr.preinit=function(s,u){if(typeof s=="string"&&u&&typeof u.as=="string"){var c=u.as,h=l(c,u.crossOrigin),d=typeof u.integrity=="string"?u.integrity:void 0,p=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?a.d.S(s,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:d,fetchPriority:p}):c==="script"&&a.d.X(s,{crossOrigin:h,integrity:d,fetchPriority:p,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Tr.preinitModule=function(s,u){if(typeof s=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=l(u.as,u.crossOrigin);a.d.M(s,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&a.d.M(s)},Tr.preload=function(s,u){if(typeof s=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,h=l(c,u.crossOrigin);a.d.L(s,c,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Tr.preloadModule=function(s,u){if(typeof s=="string")if(u){var c=l(u.as,u.crossOrigin);a.d.m(s,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else a.d.m(s)},Tr.requestFormReset=function(s){a.d.r(s)},Tr.unstable_batchedUpdates=function(s,u){return s(u)},Tr.useFormState=function(s,u,c){return o.H.useFormState(s,u,c)},Tr.useFormStatus=function(){return o.H.useHostTransitionStatus()},Tr.version="19.2.4",Tr}var CM;function p8(){if(CM)return L1.exports;CM=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),L1.exports=d8(),L1.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var DM;function g8(){if(DM)return Ac;DM=1;var r=v8(),e=qx(),t=p8();function a(f){var v="https://react.dev/errors/"+f;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)v+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function i(f){var v=f,g=f;if(f.alternate)for(;v.return;)v=v.return;else{f=v;do v=f,(v.flags&4098)!==0&&(g=v.return),f=v.return;while(f)}return v.tag===3?g:null}function o(f){if(f.tag===13){var v=f.memoizedState;if(v===null&&(f=f.alternate,f!==null&&(v=f.memoizedState)),v!==null)return v.dehydrated}return null}function l(f){if(f.tag===31){var v=f.memoizedState;if(v===null&&(f=f.alternate,f!==null&&(v=f.memoizedState)),v!==null)return v.dehydrated}return null}function s(f){if(i(f)!==f)throw Error(a(188))}function u(f){var v=f.alternate;if(!v){if(v=i(f),v===null)throw Error(a(188));return v!==f?null:f}for(var g=f,S=v;;){var T=g.return;if(T===null)break;var C=T.alternate;if(C===null){if(S=T.return,S!==null){g=S;continue}break}if(T.child===C.child){for(C=T.child;C;){if(C===g)return s(T),f;if(C===S)return s(T),v;C=C.sibling}throw Error(a(188))}if(g.return!==S.return)g=T,S=C;else{for(var I=!1,B=T.child;B;){if(B===g){I=!0,g=T,S=C;break}if(B===S){I=!0,S=T,g=C;break}B=B.sibling}if(!I){for(B=C.child;B;){if(B===g){I=!0,g=C,S=T;break}if(B===S){I=!0,S=C,g=T;break}B=B.sibling}if(!I)throw Error(a(189))}}if(g.alternate!==S)throw Error(a(190))}if(g.tag!==3)throw Error(a(188));return g.stateNode.current===g?f:v}function c(f){var v=f.tag;if(v===5||v===26||v===27||v===6)return f;for(f=f.child;f!==null;){if(v=c(f),v!==null)return v;f=f.sibling}return null}var h=Object.assign,d=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function k(f){return f===null||typeof f!="object"?null:(f=P&&f[P]||f["@@iterator"],typeof f=="function"?f:null)}var V=Symbol.for("react.client.reference");function H(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===V?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case m:return"Fragment";case b:return"Profiler";case _:return"StrictMode";case M:return"Suspense";case D:return"SuspenseList";case E:return"Activity"}if(typeof f=="object")switch(f.$$typeof){case y:return"Portal";case w:return f.displayName||"Context";case x:return(f._context.displayName||"Context")+".Consumer";case A:var v=f.render;return f=f.displayName,f||(f=v.displayName||v.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case L:return v=f.displayName||null,v!==null?v:H(f.type)||"Memo";case R:v=f._payload,f=f._init;try{return H(f(v))}catch{}}return null}var U=Array.isArray,z=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j={pending:!1,data:null,method:null,action:null},$=[],tt=-1;function F(f){return{current:f}}function W(f){0>tt||(f.current=$[tt],$[tt]=null,tt--)}function at(f,v){tt++,$[tt]=f.current,f.current=v}var lt=F(null),ct=F(null),bt=F(null),Pt=F(null);function wt(f,v){switch(at(bt,v),at(ct,f),at(lt,null),v.nodeType){case 9:case 11:f=(f=v.documentElement)&&(f=f.namespaceURI)?FD(f):0;break;default:if(f=v.tagName,v=v.namespaceURI)v=FD(v),f=UD(v,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}W(lt),at(lt,f)}function pt(){W(lt),W(ct),W(bt)}function Ot(f){f.memoizedState!==null&&at(Pt,f);var v=lt.current,g=UD(v,f.type);v!==g&&(at(ct,f),at(lt,g))}function yt(f){ct.current===f&&(W(lt),W(ct)),Pt.current===f&&(W(Pt),Sc._currentValue=j)}var Dt,ce;function Zt(f){if(Dt===void 0)try{throw Error()}catch(g){var v=g.stack.trim().match(/\n( *(at )?)/);Dt=v&&v[1]||"",ce=-1<g.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Dt+f+ce}var ue=!1;function ye(f,v){if(!f||ue)return"";ue=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var S={DetermineComponentFrameRoot:function(){try{if(v){var ft=function(){throw Error()};if(Object.defineProperty(ft.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ft,[])}catch(nt){var et=nt}Reflect.construct(f,[],ft)}else{try{ft.call()}catch(nt){et=nt}f.call(ft.prototype)}}else{try{throw Error()}catch(nt){et=nt}(ft=f())&&typeof ft.catch=="function"&&ft.catch(function(){})}}catch(nt){if(nt&&et&&typeof nt.stack=="string")return[nt.stack,et.stack]}return[null,null]}};S.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(S.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=S.DetermineComponentFrameRoot(),I=C[0],B=C[1];if(I&&B){var X=I.split(`
44
- `),J=B.split(`
45
- `);for(T=S=0;S<X.length&&!X[S].includes("DetermineComponentFrameRoot");)S++;for(;T<J.length&&!J[T].includes("DetermineComponentFrameRoot");)T++;if(S===X.length||T===J.length)for(S=X.length-1,T=J.length-1;1<=S&&0<=T&&X[S]!==J[T];)T--;for(;1<=S&&0<=T;S--,T--)if(X[S]!==J[T]){if(S!==1||T!==1)do if(S--,T--,0>T||X[S]!==J[T]){var st=`
46
- `+X[S].replace(" at new "," at ");return f.displayName&&st.includes("<anonymous>")&&(st=st.replace("<anonymous>",f.displayName)),st}while(1<=S&&0<=T);break}}}finally{ue=!1,Error.prepareStackTrace=g}return(g=f?f.displayName||f.name:"")?Zt(g):""}function He(f,v){switch(f.tag){case 26:case 27:case 5:return Zt(f.type);case 16:return Zt("Lazy");case 13:return f.child!==v&&v!==null?Zt("Suspense Fallback"):Zt("Suspense");case 19:return Zt("SuspenseList");case 0:case 15:return ye(f.type,!1);case 11:return ye(f.type.render,!1);case 1:return ye(f.type,!0);case 31:return Zt("Activity");default:return""}}function wr(f){try{var v="",g=null;do v+=He(f,g),g=f,f=f.return;while(f);return v}catch(S){return`
47
- Error generating stack: `+S.message+`
48
- `+S.stack}}var lr=Object.prototype.hasOwnProperty,rn=r.unstable_scheduleCallback,Ta=r.unstable_cancelCallback,Ov=r.unstable_shouldYield,Ef=r.unstable_requestPaint,ia=r.unstable_now,FV=r.unstable_getCurrentPriorityLevel,S2=r.unstable_ImmediatePriority,b2=r.unstable_UserBlockingPriority,Nv=r.unstable_NormalPriority,UV=r.unstable_LowPriority,x2=r.unstable_IdlePriority,YV=r.log,jV=r.unstable_setDisableYieldValue,If=null,oa=null;function Vi(f){if(typeof YV=="function"&&jV(f),oa&&typeof oa.setStrictMode=="function")try{oa.setStrictMode(If,f)}catch{}}var la=Math.clz32?Math.clz32:ZV,XV=Math.log,WV=Math.LN2;function ZV(f){return f>>>=0,f===0?32:31-(XV(f)/WV|0)|0}var Pv=256,zv=262144,kv=4194304;function Zo(f){var v=f&42;if(v!==0)return v;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function Bv(f,v,g){var S=f.pendingLanes;if(S===0)return 0;var T=0,C=f.suspendedLanes,I=f.pingedLanes;f=f.warmLanes;var B=S&134217727;return B!==0?(S=B&~C,S!==0?T=Zo(S):(I&=B,I!==0?T=Zo(I):g||(g=B&~f,g!==0&&(T=Zo(g))))):(B=S&~C,B!==0?T=Zo(B):I!==0?T=Zo(I):g||(g=S&~f,g!==0&&(T=Zo(g)))),T===0?0:v!==0&&v!==T&&(v&C)===0&&(C=T&-T,g=v&-v,C>=g||C===32&&(g&4194048)!==0)?v:T}function Of(f,v){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&v)===0}function qV(f,v){switch(f){case 1:case 2:case 4:case 8:case 64:return v+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return v+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function w2(){var f=kv;return kv<<=1,(kv&62914560)===0&&(kv=4194304),f}function hm(f){for(var v=[],g=0;31>g;g++)v.push(f);return v}function Nf(f,v){f.pendingLanes|=v,v!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function $V(f,v,g,S,T,C){var I=f.pendingLanes;f.pendingLanes=g,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=g,f.entangledLanes&=g,f.errorRecoveryDisabledLanes&=g,f.shellSuspendCounter=0;var B=f.entanglements,X=f.expirationTimes,J=f.hiddenUpdates;for(g=I&~g;0<g;){var st=31-la(g),ft=1<<st;B[st]=0,X[st]=-1;var et=J[st];if(et!==null)for(J[st]=null,st=0;st<et.length;st++){var nt=et[st];nt!==null&&(nt.lane&=-536870913)}g&=~ft}S!==0&&T2(f,S,0),C!==0&&T===0&&f.tag!==0&&(f.suspendedLanes|=C&~(I&~v))}function T2(f,v,g){f.pendingLanes|=v,f.suspendedLanes&=~v;var S=31-la(v);f.entangledLanes|=v,f.entanglements[S]=f.entanglements[S]|1073741824|g&261930}function A2(f,v){var g=f.entangledLanes|=v;for(f=f.entanglements;g;){var S=31-la(g),T=1<<S;T&v|f[S]&v&&(f[S]|=v),g&=~T}}function C2(f,v){var g=v&-v;return g=(g&42)!==0?1:vm(g),(g&(f.suspendedLanes|v))!==0?0:g}function vm(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function dm(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function D2(){var f=Y.p;return f!==0?f:(f=window.event,f===void 0?32:hM(f.type))}function M2(f,v){var g=Y.p;try{return Y.p=f,v()}finally{Y.p=g}}var Gi=Math.random().toString(36).slice(2),dr="__reactFiber$"+Gi,Xr="__reactProps$"+Gi,Cs="__reactContainer$"+Gi,pm="__reactEvents$"+Gi,KV="__reactListeners$"+Gi,QV="__reactHandles$"+Gi,L2="__reactResources$"+Gi,Pf="__reactMarker$"+Gi;function gm(f){delete f[dr],delete f[Xr],delete f[pm],delete f[KV],delete f[QV]}function Ds(f){var v=f[dr];if(v)return v;for(var g=f.parentNode;g;){if(v=g[Cs]||g[dr]){if(g=v.alternate,v.child!==null||g!==null&&g.child!==null)for(f=$D(f);f!==null;){if(g=f[dr])return g;f=$D(f)}return v}f=g,g=f.parentNode}return null}function Ms(f){if(f=f[dr]||f[Cs]){var v=f.tag;if(v===5||v===6||v===13||v===31||v===26||v===27||v===3)return f}return null}function zf(f){var v=f.tag;if(v===5||v===26||v===27||v===6)return f.stateNode;throw Error(a(33))}function Ls(f){var v=f[L2];return v||(v=f[L2]={hoistableStyles:new Map,hoistableScripts:new Map}),v}function sr(f){f[Pf]=!0}var R2=new Set,E2={};function qo(f,v){Rs(f,v),Rs(f+"Capture",v)}function Rs(f,v){for(E2[f]=v,f=0;f<v.length;f++)R2.add(v[f])}var JV=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),I2={},O2={};function tG(f){return lr.call(O2,f)?!0:lr.call(I2,f)?!1:JV.test(f)?O2[f]=!0:(I2[f]=!0,!1)}function Vv(f,v,g){if(tG(v))if(g===null)f.removeAttribute(v);else{switch(typeof g){case"undefined":case"function":case"symbol":f.removeAttribute(v);return;case"boolean":var S=v.toLowerCase().slice(0,5);if(S!=="data-"&&S!=="aria-"){f.removeAttribute(v);return}}f.setAttribute(v,""+g)}}function Gv(f,v,g){if(g===null)f.removeAttribute(v);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(v);return}f.setAttribute(v,""+g)}}function Kn(f,v,g,S){if(S===null)f.removeAttribute(g);else{switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(g);return}f.setAttributeNS(v,g,""+S)}}function Aa(f){switch(typeof f){case"bigint":case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function N2(f){var v=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(v==="checkbox"||v==="radio")}function eG(f,v,g){var S=Object.getOwnPropertyDescriptor(f.constructor.prototype,v);if(!f.hasOwnProperty(v)&&typeof S<"u"&&typeof S.get=="function"&&typeof S.set=="function"){var T=S.get,C=S.set;return Object.defineProperty(f,v,{configurable:!0,get:function(){return T.call(this)},set:function(I){g=""+I,C.call(this,I)}}),Object.defineProperty(f,v,{enumerable:S.enumerable}),{getValue:function(){return g},setValue:function(I){g=""+I},stopTracking:function(){f._valueTracker=null,delete f[v]}}}}function ym(f){if(!f._valueTracker){var v=N2(f)?"checked":"value";f._valueTracker=eG(f,v,""+f[v])}}function P2(f){if(!f)return!1;var v=f._valueTracker;if(!v)return!0;var g=v.getValue(),S="";return f&&(S=N2(f)?f.checked?"true":"false":f.value),f=S,f!==g?(v.setValue(f),!0):!1}function Hv(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}var rG=/[\n"\\]/g;function Ca(f){return f.replace(rG,function(v){return"\\"+v.charCodeAt(0).toString(16)+" "})}function mm(f,v,g,S,T,C,I,B){f.name="",I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?f.type=I:f.removeAttribute("type"),v!=null?I==="number"?(v===0&&f.value===""||f.value!=v)&&(f.value=""+Aa(v)):f.value!==""+Aa(v)&&(f.value=""+Aa(v)):I!=="submit"&&I!=="reset"||f.removeAttribute("value"),v!=null?_m(f,I,Aa(v)):g!=null?_m(f,I,Aa(g)):S!=null&&f.removeAttribute("value"),T==null&&C!=null&&(f.defaultChecked=!!C),T!=null&&(f.checked=T&&typeof T!="function"&&typeof T!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?f.name=""+Aa(B):f.removeAttribute("name")}function z2(f,v,g,S,T,C,I,B){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(f.type=C),v!=null||g!=null){if(!(C!=="submit"&&C!=="reset"||v!=null)){ym(f);return}g=g!=null?""+Aa(g):"",v=v!=null?""+Aa(v):g,B||v===f.value||(f.value=v),f.defaultValue=v}S=S??T,S=typeof S!="function"&&typeof S!="symbol"&&!!S,f.checked=B?f.checked:!!S,f.defaultChecked=!!S,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(f.name=I),ym(f)}function _m(f,v,g){v==="number"&&Hv(f.ownerDocument)===f||f.defaultValue===""+g||(f.defaultValue=""+g)}function Es(f,v,g,S){if(f=f.options,v){v={};for(var T=0;T<g.length;T++)v["$"+g[T]]=!0;for(g=0;g<f.length;g++)T=v.hasOwnProperty("$"+f[g].value),f[g].selected!==T&&(f[g].selected=T),T&&S&&(f[g].defaultSelected=!0)}else{for(g=""+Aa(g),v=null,T=0;T<f.length;T++){if(f[T].value===g){f[T].selected=!0,S&&(f[T].defaultSelected=!0);return}v!==null||f[T].disabled||(v=f[T])}v!==null&&(v.selected=!0)}}function k2(f,v,g){if(v!=null&&(v=""+Aa(v),v!==f.value&&(f.value=v),g==null)){f.defaultValue!==v&&(f.defaultValue=v);return}f.defaultValue=g!=null?""+Aa(g):""}function B2(f,v,g,S){if(v==null){if(S!=null){if(g!=null)throw Error(a(92));if(U(S)){if(1<S.length)throw Error(a(93));S=S[0]}g=S}g==null&&(g=""),v=g}g=Aa(v),f.defaultValue=g,S=f.textContent,S===g&&S!==""&&S!==null&&(f.value=S),ym(f)}function Is(f,v){if(v){var g=f.firstChild;if(g&&g===f.lastChild&&g.nodeType===3){g.nodeValue=v;return}}f.textContent=v}var aG=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function V2(f,v,g){var S=v.indexOf("--")===0;g==null||typeof g=="boolean"||g===""?S?f.setProperty(v,""):v==="float"?f.cssFloat="":f[v]="":S?f.setProperty(v,g):typeof g!="number"||g===0||aG.has(v)?v==="float"?f.cssFloat=g:f[v]=(""+g).trim():f[v]=g+"px"}function G2(f,v,g){if(v!=null&&typeof v!="object")throw Error(a(62));if(f=f.style,g!=null){for(var S in g)!g.hasOwnProperty(S)||v!=null&&v.hasOwnProperty(S)||(S.indexOf("--")===0?f.setProperty(S,""):S==="float"?f.cssFloat="":f[S]="");for(var T in v)S=v[T],v.hasOwnProperty(T)&&g[T]!==S&&V2(f,T,S)}else for(var C in v)v.hasOwnProperty(C)&&V2(f,C,v[C])}function Sm(f){if(f.indexOf("-")===-1)return!1;switch(f){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nG=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),iG=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Fv(f){return iG.test(""+f)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":f}function Qn(){}var bm=null;function xm(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var Os=null,Ns=null;function H2(f){var v=Ms(f);if(v&&(f=v.stateNode)){var g=f[Xr]||null;t:switch(f=v.stateNode,v.type){case"input":if(mm(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name),v=g.name,g.type==="radio"&&v!=null){for(g=f;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll('input[name="'+Ca(""+v)+'"][type="radio"]'),v=0;v<g.length;v++){var S=g[v];if(S!==f&&S.form===f.form){var T=S[Xr]||null;if(!T)throw Error(a(90));mm(S,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(v=0;v<g.length;v++)S=g[v],S.form===f.form&&P2(S)}break t;case"textarea":k2(f,g.value,g.defaultValue);break t;case"select":v=g.value,v!=null&&Es(f,!!g.multiple,v,!1)}}}var wm=!1;function F2(f,v,g){if(wm)return f(v,g);wm=!0;try{var S=f(v);return S}finally{if(wm=!1,(Os!==null||Ns!==null)&&(Ld(),Os&&(v=Os,f=Ns,Ns=Os=null,H2(v),f)))for(v=0;v<f.length;v++)H2(f[v])}}function kf(f,v){var g=f.stateNode;if(g===null)return null;var S=g[Xr]||null;if(S===null)return null;g=S[v];t:switch(v){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(S=!S.disabled)||(f=f.type,S=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!S;break t;default:f=!1}if(f)return null;if(g&&typeof g!="function")throw Error(a(231,v,typeof g));return g}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tm=!1;if(Jn)try{var Bf={};Object.defineProperty(Bf,"passive",{get:function(){Tm=!0}}),window.addEventListener("test",Bf,Bf),window.removeEventListener("test",Bf,Bf)}catch{Tm=!1}var Hi=null,Am=null,Uv=null;function U2(){if(Uv)return Uv;var f,v=Am,g=v.length,S,T="value"in Hi?Hi.value:Hi.textContent,C=T.length;for(f=0;f<g&&v[f]===T[f];f++);var I=g-f;for(S=1;S<=I&&v[g-S]===T[C-S];S++);return Uv=T.slice(f,1<S?1-S:void 0)}function Yv(f){var v=f.keyCode;return"charCode"in f?(f=f.charCode,f===0&&v===13&&(f=13)):f=v,f===10&&(f=13),32<=f||f===13?f:0}function jv(){return!0}function Y2(){return!1}function Wr(f){function v(g,S,T,C,I){this._reactName=g,this._targetInst=T,this.type=S,this.nativeEvent=C,this.target=I,this.currentTarget=null;for(var B in f)f.hasOwnProperty(B)&&(g=f[B],this[B]=g?g(C):C[B]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?jv:Y2,this.isPropagationStopped=Y2,this}return h(v.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=jv)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=jv)},persist:function(){},isPersistent:jv}),v}var $o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xv=Wr($o),Vf=h({},$o,{view:0,detail:0}),oG=Wr(Vf),Cm,Dm,Gf,Wv=h({},Vf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lm,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){return"movementX"in f?f.movementX:(f!==Gf&&(Gf&&f.type==="mousemove"?(Cm=f.screenX-Gf.screenX,Dm=f.screenY-Gf.screenY):Dm=Cm=0,Gf=f),Cm)},movementY:function(f){return"movementY"in f?f.movementY:Dm}}),j2=Wr(Wv),lG=h({},Wv,{dataTransfer:0}),sG=Wr(lG),uG=h({},Vf,{relatedTarget:0}),Mm=Wr(uG),fG=h({},$o,{animationName:0,elapsedTime:0,pseudoElement:0}),cG=Wr(fG),hG=h({},$o,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),vG=Wr(hG),dG=h({},$o,{data:0}),X2=Wr(dG),pG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gG={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mG(f){var v=this.nativeEvent;return v.getModifierState?v.getModifierState(f):(f=yG[f])?!!v[f]:!1}function Lm(){return mG}var _G=h({},Vf,{key:function(f){if(f.key){var v=pG[f.key]||f.key;if(v!=="Unidentified")return v}return f.type==="keypress"?(f=Yv(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?gG[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lm,charCode:function(f){return f.type==="keypress"?Yv(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?Yv(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),SG=Wr(_G),bG=h({},Wv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),W2=Wr(bG),xG=h({},Vf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lm}),wG=Wr(xG),TG=h({},$o,{propertyName:0,elapsedTime:0,pseudoElement:0}),AG=Wr(TG),CG=h({},Wv,{deltaX:function(f){return"deltaX"in f?f.deltaX:"wheelDeltaX"in f?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:"wheelDeltaY"in f?-f.wheelDeltaY:"wheelDelta"in f?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),DG=Wr(CG),MG=h({},$o,{newState:0,oldState:0}),LG=Wr(MG),RG=[9,13,27,32],Rm=Jn&&"CompositionEvent"in window,Hf=null;Jn&&"documentMode"in document&&(Hf=document.documentMode);var EG=Jn&&"TextEvent"in window&&!Hf,Z2=Jn&&(!Rm||Hf&&8<Hf&&11>=Hf),q2=" ",$2=!1;function K2(f,v){switch(f){case"keyup":return RG.indexOf(v.keyCode)!==-1;case"keydown":return v.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Q2(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Ps=!1;function IG(f,v){switch(f){case"compositionend":return Q2(v);case"keypress":return v.which!==32?null:($2=!0,q2);case"textInput":return f=v.data,f===q2&&$2?null:f;default:return null}}function OG(f,v){if(Ps)return f==="compositionend"||!Rm&&K2(f,v)?(f=U2(),Uv=Am=Hi=null,Ps=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(v.ctrlKey||v.altKey||v.metaKey)||v.ctrlKey&&v.altKey){if(v.char&&1<v.char.length)return v.char;if(v.which)return String.fromCharCode(v.which)}return null;case"compositionend":return Z2&&v.locale!=="ko"?null:v.data;default:return null}}var NG={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function J2(f){var v=f&&f.nodeName&&f.nodeName.toLowerCase();return v==="input"?!!NG[f.type]:v==="textarea"}function tA(f,v,g,S){Os?Ns?Ns.push(S):Ns=[S]:Os=S,v=zd(v,"onChange"),0<v.length&&(g=new Xv("onChange","change",null,g,S),f.push({event:g,listeners:v}))}var Ff=null,Uf=null;function PG(f){zD(f,0)}function Zv(f){var v=zf(f);if(P2(v))return f}function eA(f,v){if(f==="change")return v}var rA=!1;if(Jn){var Em;if(Jn){var Im="oninput"in document;if(!Im){var aA=document.createElement("div");aA.setAttribute("oninput","return;"),Im=typeof aA.oninput=="function"}Em=Im}else Em=!1;rA=Em&&(!document.documentMode||9<document.documentMode)}function nA(){Ff&&(Ff.detachEvent("onpropertychange",iA),Uf=Ff=null)}function iA(f){if(f.propertyName==="value"&&Zv(Uf)){var v=[];tA(v,Uf,f,xm(f)),F2(PG,v)}}function zG(f,v,g){f==="focusin"?(nA(),Ff=v,Uf=g,Ff.attachEvent("onpropertychange",iA)):f==="focusout"&&nA()}function kG(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return Zv(Uf)}function BG(f,v){if(f==="click")return Zv(v)}function VG(f,v){if(f==="input"||f==="change")return Zv(v)}function GG(f,v){return f===v&&(f!==0||1/f===1/v)||f!==f&&v!==v}var sa=typeof Object.is=="function"?Object.is:GG;function Yf(f,v){if(sa(f,v))return!0;if(typeof f!="object"||f===null||typeof v!="object"||v===null)return!1;var g=Object.keys(f),S=Object.keys(v);if(g.length!==S.length)return!1;for(S=0;S<g.length;S++){var T=g[S];if(!lr.call(v,T)||!sa(f[T],v[T]))return!1}return!0}function oA(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function lA(f,v){var g=oA(f);f=0;for(var S;g;){if(g.nodeType===3){if(S=f+g.textContent.length,f<=v&&S>=v)return{node:g,offset:v-f};f=S}t:{for(;g;){if(g.nextSibling){g=g.nextSibling;break t}g=g.parentNode}g=void 0}g=oA(g)}}function sA(f,v){return f&&v?f===v?!0:f&&f.nodeType===3?!1:v&&v.nodeType===3?sA(f,v.parentNode):"contains"in f?f.contains(v):f.compareDocumentPosition?!!(f.compareDocumentPosition(v)&16):!1:!1}function uA(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var v=Hv(f.document);v instanceof f.HTMLIFrameElement;){try{var g=typeof v.contentWindow.location.href=="string"}catch{g=!1}if(g)f=v.contentWindow;else break;v=Hv(f.document)}return v}function Om(f){var v=f&&f.nodeName&&f.nodeName.toLowerCase();return v&&(v==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||v==="textarea"||f.contentEditable==="true")}var HG=Jn&&"documentMode"in document&&11>=document.documentMode,zs=null,Nm=null,jf=null,Pm=!1;function fA(f,v,g){var S=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;Pm||zs==null||zs!==Hv(S)||(S=zs,"selectionStart"in S&&Om(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),jf&&Yf(jf,S)||(jf=S,S=zd(Nm,"onSelect"),0<S.length&&(v=new Xv("onSelect","select",null,v,g),f.push({event:v,listeners:S}),v.target=zs)))}function Ko(f,v){var g={};return g[f.toLowerCase()]=v.toLowerCase(),g["Webkit"+f]="webkit"+v,g["Moz"+f]="moz"+v,g}var ks={animationend:Ko("Animation","AnimationEnd"),animationiteration:Ko("Animation","AnimationIteration"),animationstart:Ko("Animation","AnimationStart"),transitionrun:Ko("Transition","TransitionRun"),transitionstart:Ko("Transition","TransitionStart"),transitioncancel:Ko("Transition","TransitionCancel"),transitionend:Ko("Transition","TransitionEnd")},zm={},cA={};Jn&&(cA=document.createElement("div").style,"AnimationEvent"in window||(delete ks.animationend.animation,delete ks.animationiteration.animation,delete ks.animationstart.animation),"TransitionEvent"in window||delete ks.transitionend.transition);function Qo(f){if(zm[f])return zm[f];if(!ks[f])return f;var v=ks[f],g;for(g in v)if(v.hasOwnProperty(g)&&g in cA)return zm[f]=v[g];return f}var hA=Qo("animationend"),vA=Qo("animationiteration"),dA=Qo("animationstart"),FG=Qo("transitionrun"),UG=Qo("transitionstart"),YG=Qo("transitioncancel"),pA=Qo("transitionend"),gA=new Map,km="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");km.push("scrollEnd");function an(f,v){gA.set(f,v),qo(v,[f])}var qv=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(v))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)},Da=[],Bs=0,Bm=0;function $v(){for(var f=Bs,v=Bm=Bs=0;v<f;){var g=Da[v];Da[v++]=null;var S=Da[v];Da[v++]=null;var T=Da[v];Da[v++]=null;var C=Da[v];if(Da[v++]=null,S!==null&&T!==null){var I=S.pending;I===null?T.next=T:(T.next=I.next,I.next=T),S.pending=T}C!==0&&yA(g,T,C)}}function Kv(f,v,g,S){Da[Bs++]=f,Da[Bs++]=v,Da[Bs++]=g,Da[Bs++]=S,Bm|=S,f.lanes|=S,f=f.alternate,f!==null&&(f.lanes|=S)}function Vm(f,v,g,S){return Kv(f,v,g,S),Qv(f)}function Jo(f,v){return Kv(f,null,null,v),Qv(f)}function yA(f,v,g){f.lanes|=g;var S=f.alternate;S!==null&&(S.lanes|=g);for(var T=!1,C=f.return;C!==null;)C.childLanes|=g,S=C.alternate,S!==null&&(S.childLanes|=g),C.tag===22&&(f=C.stateNode,f===null||f._visibility&1||(T=!0)),f=C,C=C.return;return f.tag===3?(C=f.stateNode,T&&v!==null&&(T=31-la(g),f=C.hiddenUpdates,S=f[T],S===null?f[T]=[v]:S.push(v),v.lane=g|536870912),C):null}function Qv(f){if(50<vc)throw vc=0,Z0=null,Error(a(185));for(var v=f.return;v!==null;)f=v,v=f.return;return f.tag===3?f.stateNode:null}var Vs={};function jG(f,v,g,S){this.tag=f,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=v,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ua(f,v,g,S){return new jG(f,v,g,S)}function Gm(f){return f=f.prototype,!(!f||!f.isReactComponent)}function ti(f,v){var g=f.alternate;return g===null?(g=ua(f.tag,v,f.key,f.mode),g.elementType=f.elementType,g.type=f.type,g.stateNode=f.stateNode,g.alternate=f,f.alternate=g):(g.pendingProps=v,g.type=f.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=f.flags&65011712,g.childLanes=f.childLanes,g.lanes=f.lanes,g.child=f.child,g.memoizedProps=f.memoizedProps,g.memoizedState=f.memoizedState,g.updateQueue=f.updateQueue,v=f.dependencies,g.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},g.sibling=f.sibling,g.index=f.index,g.ref=f.ref,g.refCleanup=f.refCleanup,g}function mA(f,v){f.flags&=65011714;var g=f.alternate;return g===null?(f.childLanes=0,f.lanes=v,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,v=g.dependencies,f.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext}),f}function Jv(f,v,g,S,T,C){var I=0;if(S=f,typeof f=="function")Gm(f)&&(I=1);else if(typeof f=="string")I=$6(f,g,lt.current)?26:f==="html"||f==="head"||f==="body"?27:5;else t:switch(f){case E:return f=ua(31,g,v,T),f.elementType=E,f.lanes=C,f;case m:return tl(g.children,T,C,v);case _:I=8,T|=24;break;case b:return f=ua(12,g,v,T|2),f.elementType=b,f.lanes=C,f;case M:return f=ua(13,g,v,T),f.elementType=M,f.lanes=C,f;case D:return f=ua(19,g,v,T),f.elementType=D,f.lanes=C,f;default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case w:I=10;break t;case x:I=9;break t;case A:I=11;break t;case L:I=14;break t;case R:I=16,S=null;break t}I=29,g=Error(a(130,f===null?"null":typeof f,"")),S=null}return v=ua(I,g,v,T),v.elementType=f,v.type=S,v.lanes=C,v}function tl(f,v,g,S){return f=ua(7,f,S,v),f.lanes=g,f}function Hm(f,v,g){return f=ua(6,f,null,v),f.lanes=g,f}function _A(f){var v=ua(18,null,null,0);return v.stateNode=f,v}function Fm(f,v,g){return v=ua(4,f.children!==null?f.children:[],f.key,v),v.lanes=g,v.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},v}var SA=new WeakMap;function Ma(f,v){if(typeof f=="object"&&f!==null){var g=SA.get(f);return g!==void 0?g:(v={value:f,source:v,stack:wr(v)},SA.set(f,v),v)}return{value:f,source:v,stack:wr(v)}}var Gs=[],Hs=0,td=null,Xf=0,La=[],Ra=0,Fi=null,Tn=1,An="";function ei(f,v){Gs[Hs++]=Xf,Gs[Hs++]=td,td=f,Xf=v}function bA(f,v,g){La[Ra++]=Tn,La[Ra++]=An,La[Ra++]=Fi,Fi=f;var S=Tn;f=An;var T=32-la(S)-1;S&=~(1<<T),g+=1;var C=32-la(v)+T;if(30<C){var I=T-T%5;C=(S&(1<<I)-1).toString(32),S>>=I,T-=I,Tn=1<<32-la(v)+T|g<<T|S,An=C+f}else Tn=1<<C|g<<T|S,An=f}function Um(f){f.return!==null&&(ei(f,1),bA(f,1,0))}function Ym(f){for(;f===td;)td=Gs[--Hs],Gs[Hs]=null,Xf=Gs[--Hs],Gs[Hs]=null;for(;f===Fi;)Fi=La[--Ra],La[Ra]=null,An=La[--Ra],La[Ra]=null,Tn=La[--Ra],La[Ra]=null}function xA(f,v){La[Ra++]=Tn,La[Ra++]=An,La[Ra++]=Fi,Tn=v.id,An=v.overflow,Fi=f}var pr=null,Le=null,se=!1,Ui=null,Ea=!1,jm=Error(a(519));function Yi(f){var v=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wf(Ma(v,f)),jm}function wA(f){var v=f.stateNode,g=f.type,S=f.memoizedProps;switch(v[dr]=f,v[Xr]=S,g){case"dialog":ae("cancel",v),ae("close",v);break;case"iframe":case"object":case"embed":ae("load",v);break;case"video":case"audio":for(g=0;g<pc.length;g++)ae(pc[g],v);break;case"source":ae("error",v);break;case"img":case"image":case"link":ae("error",v),ae("load",v);break;case"details":ae("toggle",v);break;case"input":ae("invalid",v),z2(v,S.value,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name,!0);break;case"select":ae("invalid",v);break;case"textarea":ae("invalid",v),B2(v,S.value,S.defaultValue,S.children)}g=S.children,typeof g!="string"&&typeof g!="number"&&typeof g!="bigint"||v.textContent===""+g||S.suppressHydrationWarning===!0||GD(v.textContent,g)?(S.popover!=null&&(ae("beforetoggle",v),ae("toggle",v)),S.onScroll!=null&&ae("scroll",v),S.onScrollEnd!=null&&ae("scrollend",v),S.onClick!=null&&(v.onclick=Qn),v=!0):v=!1,v||Yi(f,!0)}function TA(f){for(pr=f.return;pr;)switch(pr.tag){case 5:case 31:case 13:Ea=!1;return;case 27:case 3:Ea=!0;return;default:pr=pr.return}}function Fs(f){if(f!==pr)return!1;if(!se)return TA(f),se=!0,!1;var v=f.tag,g;if((g=v!==3&&v!==27)&&((g=v===5)&&(g=f.type,g=!(g!=="form"&&g!=="button")||u1(f.type,f.memoizedProps)),g=!g),g&&Le&&Yi(f),TA(f),v===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));Le=qD(f)}else if(v===31){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));Le=qD(f)}else v===27?(v=Le,no(f.type)?(f=d1,d1=null,Le=f):Le=v):Le=pr?Oa(f.stateNode.nextSibling):null;return!0}function el(){Le=pr=null,se=!1}function Xm(){var f=Ui;return f!==null&&(Kr===null?Kr=f:Kr.push.apply(Kr,f),Ui=null),f}function Wf(f){Ui===null?Ui=[f]:Ui.push(f)}var Wm=F(null),rl=null,ri=null;function ji(f,v,g){at(Wm,v._currentValue),v._currentValue=g}function ai(f){f._currentValue=Wm.current,W(Wm)}function Zm(f,v,g){for(;f!==null;){var S=f.alternate;if((f.childLanes&v)!==v?(f.childLanes|=v,S!==null&&(S.childLanes|=v)):S!==null&&(S.childLanes&v)!==v&&(S.childLanes|=v),f===g)break;f=f.return}}function qm(f,v,g,S){var T=f.child;for(T!==null&&(T.return=f);T!==null;){var C=T.dependencies;if(C!==null){var I=T.child;C=C.firstContext;t:for(;C!==null;){var B=C;C=T;for(var X=0;X<v.length;X++)if(B.context===v[X]){C.lanes|=g,B=C.alternate,B!==null&&(B.lanes|=g),Zm(C.return,g,f),S||(I=null);break t}C=B.next}}else if(T.tag===18){if(I=T.return,I===null)throw Error(a(341));I.lanes|=g,C=I.alternate,C!==null&&(C.lanes|=g),Zm(I,g,f),I=null}else I=T.child;if(I!==null)I.return=T;else for(I=T;I!==null;){if(I===f){I=null;break}if(T=I.sibling,T!==null){T.return=I.return,I=T;break}I=I.return}T=I}}function Us(f,v,g,S){f=null;for(var T=v,C=!1;T!==null;){if(!C){if((T.flags&524288)!==0)C=!0;else if((T.flags&262144)!==0)break}if(T.tag===10){var I=T.alternate;if(I===null)throw Error(a(387));if(I=I.memoizedProps,I!==null){var B=T.type;sa(T.pendingProps.value,I.value)||(f!==null?f.push(B):f=[B])}}else if(T===Pt.current){if(I=T.alternate,I===null)throw Error(a(387));I.memoizedState.memoizedState!==T.memoizedState.memoizedState&&(f!==null?f.push(Sc):f=[Sc])}T=T.return}f!==null&&qm(v,f,g,S),v.flags|=262144}function ed(f){for(f=f.firstContext;f!==null;){if(!sa(f.context._currentValue,f.memoizedValue))return!0;f=f.next}return!1}function al(f){rl=f,ri=null,f=f.dependencies,f!==null&&(f.firstContext=null)}function gr(f){return AA(rl,f)}function rd(f,v){return rl===null&&al(f),AA(f,v)}function AA(f,v){var g=v._currentValue;if(v={context:v,memoizedValue:g,next:null},ri===null){if(f===null)throw Error(a(308));ri=v,f.dependencies={lanes:0,firstContext:v},f.flags|=524288}else ri=ri.next=v;return g}var XG=typeof AbortController<"u"?AbortController:function(){var f=[],v=this.signal={aborted:!1,addEventListener:function(g,S){f.push(S)}};this.abort=function(){v.aborted=!0,f.forEach(function(g){return g()})}},WG=r.unstable_scheduleCallback,ZG=r.unstable_NormalPriority,We={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $m(){return{controller:new XG,data:new Map,refCount:0}}function Zf(f){f.refCount--,f.refCount===0&&WG(ZG,function(){f.controller.abort()})}var qf=null,Km=0,Ys=0,js=null;function qG(f,v){if(qf===null){var g=qf=[];Km=0,Ys=t1(),js={status:"pending",value:void 0,then:function(S){g.push(S)}}}return Km++,v.then(CA,CA),v}function CA(){if(--Km===0&&qf!==null){js!==null&&(js.status="fulfilled");var f=qf;qf=null,Ys=0,js=null;for(var v=0;v<f.length;v++)(0,f[v])()}}function $G(f,v){var g=[],S={status:"pending",value:null,reason:null,then:function(T){g.push(T)}};return f.then(function(){S.status="fulfilled",S.value=v;for(var T=0;T<g.length;T++)(0,g[T])(v)},function(T){for(S.status="rejected",S.reason=T,T=0;T<g.length;T++)(0,g[T])(void 0)}),S}var DA=z.S;z.S=function(f,v){fD=ia(),typeof v=="object"&&v!==null&&typeof v.then=="function"&&qG(f,v),DA!==null&&DA(f,v)};var nl=F(null);function Qm(){var f=nl.current;return f!==null?f:Me.pooledCache}function ad(f,v){v===null?at(nl,nl.current):at(nl,v.pool)}function MA(){var f=Qm();return f===null?null:{parent:We._currentValue,pool:f}}var Xs=Error(a(460)),Jm=Error(a(474)),nd=Error(a(542)),id={then:function(){}};function LA(f){return f=f.status,f==="fulfilled"||f==="rejected"}function RA(f,v,g){switch(g=f[g],g===void 0?f.push(v):g!==v&&(v.then(Qn,Qn),v=g),v.status){case"fulfilled":return v.value;case"rejected":throw f=v.reason,IA(f),f;default:if(typeof v.status=="string")v.then(Qn,Qn);else{if(f=Me,f!==null&&100<f.shellSuspendCounter)throw Error(a(482));f=v,f.status="pending",f.then(function(S){if(v.status==="pending"){var T=v;T.status="fulfilled",T.value=S}},function(S){if(v.status==="pending"){var T=v;T.status="rejected",T.reason=S}})}switch(v.status){case"fulfilled":return v.value;case"rejected":throw f=v.reason,IA(f),f}throw ol=v,Xs}}function il(f){try{var v=f._init;return v(f._payload)}catch(g){throw g!==null&&typeof g=="object"&&typeof g.then=="function"?(ol=g,Xs):g}}var ol=null;function EA(){if(ol===null)throw Error(a(459));var f=ol;return ol=null,f}function IA(f){if(f===Xs||f===nd)throw Error(a(483))}var Ws=null,$f=0;function od(f){var v=$f;return $f+=1,Ws===null&&(Ws=[]),RA(Ws,f,v)}function Kf(f,v){v=v.props.ref,f.ref=v!==void 0?v:null}function ld(f,v){throw v.$$typeof===d?Error(a(525)):(f=Object.prototype.toString.call(v),Error(a(31,f==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":f)))}function OA(f){function v(K,q){if(f){var Q=K.deletions;Q===null?(K.deletions=[q],K.flags|=16):Q.push(q)}}function g(K,q){if(!f)return null;for(;q!==null;)v(K,q),q=q.sibling;return null}function S(K){for(var q=new Map;K!==null;)K.key!==null?q.set(K.key,K):q.set(K.index,K),K=K.sibling;return q}function T(K,q){return K=ti(K,q),K.index=0,K.sibling=null,K}function C(K,q,Q){return K.index=Q,f?(Q=K.alternate,Q!==null?(Q=Q.index,Q<q?(K.flags|=67108866,q):Q):(K.flags|=67108866,q)):(K.flags|=1048576,q)}function I(K){return f&&K.alternate===null&&(K.flags|=67108866),K}function B(K,q,Q,ut){return q===null||q.tag!==6?(q=Hm(Q,K.mode,ut),q.return=K,q):(q=T(q,Q),q.return=K,q)}function X(K,q,Q,ut){var Nt=Q.type;return Nt===m?st(K,q,Q.props.children,ut,Q.key):q!==null&&(q.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===R&&il(Nt)===q.type)?(q=T(q,Q.props),Kf(q,Q),q.return=K,q):(q=Jv(Q.type,Q.key,Q.props,null,K.mode,ut),Kf(q,Q),q.return=K,q)}function J(K,q,Q,ut){return q===null||q.tag!==4||q.stateNode.containerInfo!==Q.containerInfo||q.stateNode.implementation!==Q.implementation?(q=Fm(Q,K.mode,ut),q.return=K,q):(q=T(q,Q.children||[]),q.return=K,q)}function st(K,q,Q,ut,Nt){return q===null||q.tag!==7?(q=tl(Q,K.mode,ut,Nt),q.return=K,q):(q=T(q,Q),q.return=K,q)}function ft(K,q,Q){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=Hm(""+q,K.mode,Q),q.return=K,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case p:return Q=Jv(q.type,q.key,q.props,null,K.mode,Q),Kf(Q,q),Q.return=K,Q;case y:return q=Fm(q,K.mode,Q),q.return=K,q;case R:return q=il(q),ft(K,q,Q)}if(U(q)||k(q))return q=tl(q,K.mode,Q,null),q.return=K,q;if(typeof q.then=="function")return ft(K,od(q),Q);if(q.$$typeof===w)return ft(K,rd(K,q),Q);ld(K,q)}return null}function et(K,q,Q,ut){var Nt=q!==null?q.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Nt!==null?null:B(K,q,""+Q,ut);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case p:return Q.key===Nt?X(K,q,Q,ut):null;case y:return Q.key===Nt?J(K,q,Q,ut):null;case R:return Q=il(Q),et(K,q,Q,ut)}if(U(Q)||k(Q))return Nt!==null?null:st(K,q,Q,ut,null);if(typeof Q.then=="function")return et(K,q,od(Q),ut);if(Q.$$typeof===w)return et(K,q,rd(K,Q),ut);ld(K,Q)}return null}function nt(K,q,Q,ut,Nt){if(typeof ut=="string"&&ut!==""||typeof ut=="number"||typeof ut=="bigint")return K=K.get(Q)||null,B(q,K,""+ut,Nt);if(typeof ut=="object"&&ut!==null){switch(ut.$$typeof){case p:return K=K.get(ut.key===null?Q:ut.key)||null,X(q,K,ut,Nt);case y:return K=K.get(ut.key===null?Q:ut.key)||null,J(q,K,ut,Nt);case R:return ut=il(ut),nt(K,q,Q,ut,Nt)}if(U(ut)||k(ut))return K=K.get(Q)||null,st(q,K,ut,Nt,null);if(typeof ut.then=="function")return nt(K,q,Q,od(ut),Nt);if(ut.$$typeof===w)return nt(K,q,Q,rd(q,ut),Nt);ld(q,ut)}return null}function At(K,q,Q,ut){for(var Nt=null,he=null,Lt=q,Kt=q=0,ie=null;Lt!==null&&Kt<Q.length;Kt++){Lt.index>Kt?(ie=Lt,Lt=null):ie=Lt.sibling;var ve=et(K,Lt,Q[Kt],ut);if(ve===null){Lt===null&&(Lt=ie);break}f&&Lt&&ve.alternate===null&&v(K,Lt),q=C(ve,q,Kt),he===null?Nt=ve:he.sibling=ve,he=ve,Lt=ie}if(Kt===Q.length)return g(K,Lt),se&&ei(K,Kt),Nt;if(Lt===null){for(;Kt<Q.length;Kt++)Lt=ft(K,Q[Kt],ut),Lt!==null&&(q=C(Lt,q,Kt),he===null?Nt=Lt:he.sibling=Lt,he=Lt);return se&&ei(K,Kt),Nt}for(Lt=S(Lt);Kt<Q.length;Kt++)ie=nt(Lt,K,Kt,Q[Kt],ut),ie!==null&&(f&&ie.alternate!==null&&Lt.delete(ie.key===null?Kt:ie.key),q=C(ie,q,Kt),he===null?Nt=ie:he.sibling=ie,he=ie);return f&&Lt.forEach(function(uo){return v(K,uo)}),se&&ei(K,Kt),Nt}function Vt(K,q,Q,ut){if(Q==null)throw Error(a(151));for(var Nt=null,he=null,Lt=q,Kt=q=0,ie=null,ve=Q.next();Lt!==null&&!ve.done;Kt++,ve=Q.next()){Lt.index>Kt?(ie=Lt,Lt=null):ie=Lt.sibling;var uo=et(K,Lt,ve.value,ut);if(uo===null){Lt===null&&(Lt=ie);break}f&&Lt&&uo.alternate===null&&v(K,Lt),q=C(uo,q,Kt),he===null?Nt=uo:he.sibling=uo,he=uo,Lt=ie}if(ve.done)return g(K,Lt),se&&ei(K,Kt),Nt;if(Lt===null){for(;!ve.done;Kt++,ve=Q.next())ve=ft(K,ve.value,ut),ve!==null&&(q=C(ve,q,Kt),he===null?Nt=ve:he.sibling=ve,he=ve);return se&&ei(K,Kt),Nt}for(Lt=S(Lt);!ve.done;Kt++,ve=Q.next())ve=nt(Lt,K,Kt,ve.value,ut),ve!==null&&(f&&ve.alternate!==null&&Lt.delete(ve.key===null?Kt:ve.key),q=C(ve,q,Kt),he===null?Nt=ve:he.sibling=ve,he=ve);return f&&Lt.forEach(function(l8){return v(K,l8)}),se&&ei(K,Kt),Nt}function Ce(K,q,Q,ut){if(typeof Q=="object"&&Q!==null&&Q.type===m&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case p:t:{for(var Nt=Q.key;q!==null;){if(q.key===Nt){if(Nt=Q.type,Nt===m){if(q.tag===7){g(K,q.sibling),ut=T(q,Q.props.children),ut.return=K,K=ut;break t}}else if(q.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===R&&il(Nt)===q.type){g(K,q.sibling),ut=T(q,Q.props),Kf(ut,Q),ut.return=K,K=ut;break t}g(K,q);break}else v(K,q);q=q.sibling}Q.type===m?(ut=tl(Q.props.children,K.mode,ut,Q.key),ut.return=K,K=ut):(ut=Jv(Q.type,Q.key,Q.props,null,K.mode,ut),Kf(ut,Q),ut.return=K,K=ut)}return I(K);case y:t:{for(Nt=Q.key;q!==null;){if(q.key===Nt)if(q.tag===4&&q.stateNode.containerInfo===Q.containerInfo&&q.stateNode.implementation===Q.implementation){g(K,q.sibling),ut=T(q,Q.children||[]),ut.return=K,K=ut;break t}else{g(K,q);break}else v(K,q);q=q.sibling}ut=Fm(Q,K.mode,ut),ut.return=K,K=ut}return I(K);case R:return Q=il(Q),Ce(K,q,Q,ut)}if(U(Q))return At(K,q,Q,ut);if(k(Q)){if(Nt=k(Q),typeof Nt!="function")throw Error(a(150));return Q=Nt.call(Q),Vt(K,q,Q,ut)}if(typeof Q.then=="function")return Ce(K,q,od(Q),ut);if(Q.$$typeof===w)return Ce(K,q,rd(K,Q),ut);ld(K,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,q!==null&&q.tag===6?(g(K,q.sibling),ut=T(q,Q),ut.return=K,K=ut):(g(K,q),ut=Hm(Q,K.mode,ut),ut.return=K,K=ut),I(K)):g(K,q)}return function(K,q,Q,ut){try{$f=0;var Nt=Ce(K,q,Q,ut);return Ws=null,Nt}catch(Lt){if(Lt===Xs||Lt===nd)throw Lt;var he=ua(29,Lt,null,K.mode);return he.lanes=ut,he.return=K,he}finally{}}}var ll=OA(!0),NA=OA(!1),Xi=!1;function t0(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function e0(f,v){f=f.updateQueue,v.updateQueue===f&&(v.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,callbacks:null})}function Wi(f){return{lane:f,tag:0,payload:null,callback:null,next:null}}function Zi(f,v,g){var S=f.updateQueue;if(S===null)return null;if(S=S.shared,(ge&2)!==0){var T=S.pending;return T===null?v.next=v:(v.next=T.next,T.next=v),S.pending=v,v=Qv(f),yA(f,null,g),v}return Kv(f,S,v,g),Qv(f)}function Qf(f,v,g){if(v=v.updateQueue,v!==null&&(v=v.shared,(g&4194048)!==0)){var S=v.lanes;S&=f.pendingLanes,g|=S,v.lanes=g,A2(f,g)}}function r0(f,v){var g=f.updateQueue,S=f.alternate;if(S!==null&&(S=S.updateQueue,g===S)){var T=null,C=null;if(g=g.firstBaseUpdate,g!==null){do{var I={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};C===null?T=C=I:C=C.next=I,g=g.next}while(g!==null);C===null?T=C=v:C=C.next=v}else T=C=v;g={baseState:S.baseState,firstBaseUpdate:T,lastBaseUpdate:C,shared:S.shared,callbacks:S.callbacks},f.updateQueue=g;return}f=g.lastBaseUpdate,f===null?g.firstBaseUpdate=v:f.next=v,g.lastBaseUpdate=v}var a0=!1;function Jf(){if(a0){var f=js;if(f!==null)throw f}}function tc(f,v,g,S){a0=!1;var T=f.updateQueue;Xi=!1;var C=T.firstBaseUpdate,I=T.lastBaseUpdate,B=T.shared.pending;if(B!==null){T.shared.pending=null;var X=B,J=X.next;X.next=null,I===null?C=J:I.next=J,I=X;var st=f.alternate;st!==null&&(st=st.updateQueue,B=st.lastBaseUpdate,B!==I&&(B===null?st.firstBaseUpdate=J:B.next=J,st.lastBaseUpdate=X))}if(C!==null){var ft=T.baseState;I=0,st=J=X=null,B=C;do{var et=B.lane&-536870913,nt=et!==B.lane;if(nt?(ne&et)===et:(S&et)===et){et!==0&&et===Ys&&(a0=!0),st!==null&&(st=st.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});t:{var At=f,Vt=B;et=v;var Ce=g;switch(Vt.tag){case 1:if(At=Vt.payload,typeof At=="function"){ft=At.call(Ce,ft,et);break t}ft=At;break t;case 3:At.flags=At.flags&-65537|128;case 0:if(At=Vt.payload,et=typeof At=="function"?At.call(Ce,ft,et):At,et==null)break t;ft=h({},ft,et);break t;case 2:Xi=!0}}et=B.callback,et!==null&&(f.flags|=64,nt&&(f.flags|=8192),nt=T.callbacks,nt===null?T.callbacks=[et]:nt.push(et))}else nt={lane:et,tag:B.tag,payload:B.payload,callback:B.callback,next:null},st===null?(J=st=nt,X=ft):st=st.next=nt,I|=et;if(B=B.next,B===null){if(B=T.shared.pending,B===null)break;nt=B,B=nt.next,nt.next=null,T.lastBaseUpdate=nt,T.shared.pending=null}}while(!0);st===null&&(X=ft),T.baseState=X,T.firstBaseUpdate=J,T.lastBaseUpdate=st,C===null&&(T.shared.lanes=0),Ji|=I,f.lanes=I,f.memoizedState=ft}}function PA(f,v){if(typeof f!="function")throw Error(a(191,f));f.call(v)}function zA(f,v){var g=f.callbacks;if(g!==null)for(f.callbacks=null,f=0;f<g.length;f++)PA(g[f],v)}var Zs=F(null),sd=F(0);function kA(f,v){f=hi,at(sd,f),at(Zs,v),hi=f|v.baseLanes}function n0(){at(sd,hi),at(Zs,Zs.current)}function i0(){hi=sd.current,W(Zs),W(sd)}var fa=F(null),Ia=null;function qi(f){var v=f.alternate;at(Fe,Fe.current&1),at(fa,f),Ia===null&&(v===null||Zs.current!==null||v.memoizedState!==null)&&(Ia=f)}function o0(f){at(Fe,Fe.current),at(fa,f),Ia===null&&(Ia=f)}function BA(f){f.tag===22?(at(Fe,Fe.current),at(fa,f),Ia===null&&(Ia=f)):$i()}function $i(){at(Fe,Fe.current),at(fa,fa.current)}function ca(f){W(fa),Ia===f&&(Ia=null),W(Fe)}var Fe=F(0);function ud(f){for(var v=f;v!==null;){if(v.tag===13){var g=v.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||h1(g)||v1(g)))return v}else if(v.tag===19&&(v.memoizedProps.revealOrder==="forwards"||v.memoizedProps.revealOrder==="backwards"||v.memoizedProps.revealOrder==="unstable_legacy-backwards"||v.memoizedProps.revealOrder==="together")){if((v.flags&128)!==0)return v}else if(v.child!==null){v.child.return=v,v=v.child;continue}if(v===f)break;for(;v.sibling===null;){if(v.return===null||v.return===f)return null;v=v.return}v.sibling.return=v.return,v=v.sibling}return null}var ni=0,qt=null,Te=null,Ze=null,fd=!1,qs=!1,sl=!1,cd=0,ec=0,$s=null,KG=0;function ke(){throw Error(a(321))}function l0(f,v){if(v===null)return!1;for(var g=0;g<v.length&&g<f.length;g++)if(!sa(f[g],v[g]))return!1;return!0}function s0(f,v,g,S,T,C){return ni=C,qt=v,v.memoizedState=null,v.updateQueue=null,v.lanes=0,z.H=f===null||f.memoizedState===null?bC:w0,sl=!1,C=g(S,T),sl=!1,qs&&(C=GA(v,g,S,T)),VA(f),C}function VA(f){z.H=nc;var v=Te!==null&&Te.next!==null;if(ni=0,Ze=Te=qt=null,fd=!1,ec=0,$s=null,v)throw Error(a(300));f===null||qe||(f=f.dependencies,f!==null&&ed(f)&&(qe=!0))}function GA(f,v,g,S){qt=f;var T=0;do{if(qs&&($s=null),ec=0,qs=!1,25<=T)throw Error(a(301));if(T+=1,Ze=Te=null,f.updateQueue!=null){var C=f.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}z.H=xC,C=v(g,S)}while(qs);return C}function QG(){var f=z.H,v=f.useState()[0];return v=typeof v.then=="function"?rc(v):v,f=f.useState()[0],(Te!==null?Te.memoizedState:null)!==f&&(qt.flags|=1024),v}function u0(){var f=cd!==0;return cd=0,f}function f0(f,v,g){v.updateQueue=f.updateQueue,v.flags&=-2053,f.lanes&=~g}function c0(f){if(fd){for(f=f.memoizedState;f!==null;){var v=f.queue;v!==null&&(v.pending=null),f=f.next}fd=!1}ni=0,Ze=Te=qt=null,qs=!1,ec=cd=0,$s=null}function kr(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?qt.memoizedState=Ze=f:Ze=Ze.next=f,Ze}function Ue(){if(Te===null){var f=qt.alternate;f=f!==null?f.memoizedState:null}else f=Te.next;var v=Ze===null?qt.memoizedState:Ze.next;if(v!==null)Ze=v,Te=f;else{if(f===null)throw qt.alternate===null?Error(a(467)):Error(a(310));Te=f,f={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ze===null?qt.memoizedState=Ze=f:Ze=Ze.next=f}return Ze}function hd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rc(f){var v=ec;return ec+=1,$s===null&&($s=[]),f=RA($s,f,v),v=qt,(Ze===null?v.memoizedState:Ze.next)===null&&(v=v.alternate,z.H=v===null||v.memoizedState===null?bC:w0),f}function vd(f){if(f!==null&&typeof f=="object"){if(typeof f.then=="function")return rc(f);if(f.$$typeof===w)return gr(f)}throw Error(a(438,String(f)))}function h0(f){var v=null,g=qt.updateQueue;if(g!==null&&(v=g.memoCache),v==null){var S=qt.alternate;S!==null&&(S=S.updateQueue,S!==null&&(S=S.memoCache,S!=null&&(v={data:S.data.map(function(T){return T.slice()}),index:0})))}if(v==null&&(v={data:[],index:0}),g===null&&(g=hd(),qt.updateQueue=g),g.memoCache=v,g=v.data[v.index],g===void 0)for(g=v.data[v.index]=Array(f),S=0;S<f;S++)g[S]=O;return v.index++,g}function ii(f,v){return typeof v=="function"?v(f):v}function dd(f){var v=Ue();return v0(v,Te,f)}function v0(f,v,g){var S=f.queue;if(S===null)throw Error(a(311));S.lastRenderedReducer=g;var T=f.baseQueue,C=S.pending;if(C!==null){if(T!==null){var I=T.next;T.next=C.next,C.next=I}v.baseQueue=T=C,S.pending=null}if(C=f.baseState,T===null)f.memoizedState=C;else{v=T.next;var B=I=null,X=null,J=v,st=!1;do{var ft=J.lane&-536870913;if(ft!==J.lane?(ne&ft)===ft:(ni&ft)===ft){var et=J.revertLane;if(et===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),ft===Ys&&(st=!0);else if((ni&et)===et){J=J.next,et===Ys&&(st=!0);continue}else ft={lane:0,revertLane:J.revertLane,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},X===null?(B=X=ft,I=C):X=X.next=ft,qt.lanes|=et,Ji|=et;ft=J.action,sl&&g(C,ft),C=J.hasEagerState?J.eagerState:g(C,ft)}else et={lane:ft,revertLane:J.revertLane,gesture:J.gesture,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},X===null?(B=X=et,I=C):X=X.next=et,qt.lanes|=ft,Ji|=ft;J=J.next}while(J!==null&&J!==v);if(X===null?I=C:X.next=B,!sa(C,f.memoizedState)&&(qe=!0,st&&(g=js,g!==null)))throw g;f.memoizedState=C,f.baseState=I,f.baseQueue=X,S.lastRenderedState=C}return T===null&&(S.lanes=0),[f.memoizedState,S.dispatch]}function d0(f){var v=Ue(),g=v.queue;if(g===null)throw Error(a(311));g.lastRenderedReducer=f;var S=g.dispatch,T=g.pending,C=v.memoizedState;if(T!==null){g.pending=null;var I=T=T.next;do C=f(C,I.action),I=I.next;while(I!==T);sa(C,v.memoizedState)||(qe=!0),v.memoizedState=C,v.baseQueue===null&&(v.baseState=C),g.lastRenderedState=C}return[C,S]}function HA(f,v,g){var S=qt,T=Ue(),C=se;if(C){if(g===void 0)throw Error(a(407));g=g()}else g=v();var I=!sa((Te||T).memoizedState,g);if(I&&(T.memoizedState=g,qe=!0),T=T.queue,y0(YA.bind(null,S,T,f),[f]),T.getSnapshot!==v||I||Ze!==null&&Ze.memoizedState.tag&1){if(S.flags|=2048,Ks(9,{destroy:void 0},UA.bind(null,S,T,g,v),null),Me===null)throw Error(a(349));C||(ni&127)!==0||FA(S,v,g)}return g}function FA(f,v,g){f.flags|=16384,f={getSnapshot:v,value:g},v=qt.updateQueue,v===null?(v=hd(),qt.updateQueue=v,v.stores=[f]):(g=v.stores,g===null?v.stores=[f]:g.push(f))}function UA(f,v,g,S){v.value=g,v.getSnapshot=S,jA(v)&&XA(f)}function YA(f,v,g){return g(function(){jA(v)&&XA(f)})}function jA(f){var v=f.getSnapshot;f=f.value;try{var g=v();return!sa(f,g)}catch{return!0}}function XA(f){var v=Jo(f,2);v!==null&&Qr(v,f,2)}function p0(f){var v=kr();if(typeof f=="function"){var g=f;if(f=g(),sl){Vi(!0);try{g()}finally{Vi(!1)}}}return v.memoizedState=v.baseState=f,v.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:f},v}function WA(f,v,g,S){return f.baseState=g,v0(f,Te,typeof S=="function"?S:ii)}function JG(f,v,g,S,T){if(yd(f))throw Error(a(485));if(f=v.action,f!==null){var C={payload:T,action:f,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(I){C.listeners.push(I)}};z.T!==null?g(!0):C.isTransition=!1,S(C),g=v.pending,g===null?(C.next=v.pending=C,ZA(v,C)):(C.next=g.next,v.pending=g.next=C)}}function ZA(f,v){var g=v.action,S=v.payload,T=f.state;if(v.isTransition){var C=z.T,I={};z.T=I;try{var B=g(T,S),X=z.S;X!==null&&X(I,B),qA(f,v,B)}catch(J){g0(f,v,J)}finally{C!==null&&I.types!==null&&(C.types=I.types),z.T=C}}else try{C=g(T,S),qA(f,v,C)}catch(J){g0(f,v,J)}}function qA(f,v,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?g.then(function(S){$A(f,v,S)},function(S){return g0(f,v,S)}):$A(f,v,g)}function $A(f,v,g){v.status="fulfilled",v.value=g,KA(v),f.state=g,v=f.pending,v!==null&&(g=v.next,g===v?f.pending=null:(g=g.next,v.next=g,ZA(f,g)))}function g0(f,v,g){var S=f.pending;if(f.pending=null,S!==null){S=S.next;do v.status="rejected",v.reason=g,KA(v),v=v.next;while(v!==S)}f.action=null}function KA(f){f=f.listeners;for(var v=0;v<f.length;v++)(0,f[v])()}function QA(f,v){return v}function JA(f,v){if(se){var g=Me.formState;if(g!==null){t:{var S=qt;if(se){if(Le){e:{for(var T=Le,C=Ea;T.nodeType!==8;){if(!C){T=null;break e}if(T=Oa(T.nextSibling),T===null){T=null;break e}}C=T.data,T=C==="F!"||C==="F"?T:null}if(T){Le=Oa(T.nextSibling),S=T.data==="F!";break t}}Yi(S)}S=!1}S&&(v=g[0])}}return g=kr(),g.memoizedState=g.baseState=v,S={pending:null,lanes:0,dispatch:null,lastRenderedReducer:QA,lastRenderedState:v},g.queue=S,g=mC.bind(null,qt,S),S.dispatch=g,S=p0(!1),C=x0.bind(null,qt,!1,S.queue),S=kr(),T={state:v,dispatch:null,action:f,pending:null},S.queue=T,g=JG.bind(null,qt,T,C,g),T.dispatch=g,S.memoizedState=f,[v,g,!1]}function tC(f){var v=Ue();return eC(v,Te,f)}function eC(f,v,g){if(v=v0(f,v,QA)[0],f=dd(ii)[0],typeof v=="object"&&v!==null&&typeof v.then=="function")try{var S=rc(v)}catch(I){throw I===Xs?nd:I}else S=v;v=Ue();var T=v.queue,C=T.dispatch;return g!==v.memoizedState&&(qt.flags|=2048,Ks(9,{destroy:void 0},t6.bind(null,T,g),null)),[S,C,f]}function t6(f,v){f.action=v}function rC(f){var v=Ue(),g=Te;if(g!==null)return eC(v,g,f);Ue(),v=v.memoizedState,g=Ue();var S=g.queue.dispatch;return g.memoizedState=f,[v,S,!1]}function Ks(f,v,g,S){return f={tag:f,create:g,deps:S,inst:v,next:null},v=qt.updateQueue,v===null&&(v=hd(),qt.updateQueue=v),g=v.lastEffect,g===null?v.lastEffect=f.next=f:(S=g.next,g.next=f,f.next=S,v.lastEffect=f),f}function aC(){return Ue().memoizedState}function pd(f,v,g,S){var T=kr();qt.flags|=f,T.memoizedState=Ks(1|v,{destroy:void 0},g,S===void 0?null:S)}function gd(f,v,g,S){var T=Ue();S=S===void 0?null:S;var C=T.memoizedState.inst;Te!==null&&S!==null&&l0(S,Te.memoizedState.deps)?T.memoizedState=Ks(v,C,g,S):(qt.flags|=f,T.memoizedState=Ks(1|v,C,g,S))}function nC(f,v){pd(8390656,8,f,v)}function y0(f,v){gd(2048,8,f,v)}function e6(f){qt.flags|=4;var v=qt.updateQueue;if(v===null)v=hd(),qt.updateQueue=v,v.events=[f];else{var g=v.events;g===null?v.events=[f]:g.push(f)}}function iC(f){var v=Ue().memoizedState;return e6({ref:v,nextImpl:f}),function(){if((ge&2)!==0)throw Error(a(440));return v.impl.apply(void 0,arguments)}}function oC(f,v){return gd(4,2,f,v)}function lC(f,v){return gd(4,4,f,v)}function sC(f,v){if(typeof v=="function"){f=f();var g=v(f);return function(){typeof g=="function"?g():v(null)}}if(v!=null)return f=f(),v.current=f,function(){v.current=null}}function uC(f,v,g){g=g!=null?g.concat([f]):null,gd(4,4,sC.bind(null,v,f),g)}function m0(){}function fC(f,v){var g=Ue();v=v===void 0?null:v;var S=g.memoizedState;return v!==null&&l0(v,S[1])?S[0]:(g.memoizedState=[f,v],f)}function cC(f,v){var g=Ue();v=v===void 0?null:v;var S=g.memoizedState;if(v!==null&&l0(v,S[1]))return S[0];if(S=f(),sl){Vi(!0);try{f()}finally{Vi(!1)}}return g.memoizedState=[S,v],S}function _0(f,v,g){return g===void 0||(ni&1073741824)!==0&&(ne&261930)===0?f.memoizedState=v:(f.memoizedState=g,f=hD(),qt.lanes|=f,Ji|=f,g)}function hC(f,v,g,S){return sa(g,v)?g:Zs.current!==null?(f=_0(f,g,S),sa(f,v)||(qe=!0),f):(ni&42)===0||(ni&1073741824)!==0&&(ne&261930)===0?(qe=!0,f.memoizedState=g):(f=hD(),qt.lanes|=f,Ji|=f,v)}function vC(f,v,g,S,T){var C=Y.p;Y.p=C!==0&&8>C?C:8;var I=z.T,B={};z.T=B,x0(f,!1,v,g);try{var X=T(),J=z.S;if(J!==null&&J(B,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var st=$G(X,S);ac(f,v,st,da(f))}else ac(f,v,S,da(f))}catch(ft){ac(f,v,{then:function(){},status:"rejected",reason:ft},da())}finally{Y.p=C,I!==null&&B.types!==null&&(I.types=B.types),z.T=I}}function r6(){}function S0(f,v,g,S){if(f.tag!==5)throw Error(a(476));var T=dC(f).queue;vC(f,T,v,j,g===null?r6:function(){return pC(f),g(S)})}function dC(f){var v=f.memoizedState;if(v!==null)return v;v={memoizedState:j,baseState:j,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:j},next:null};var g={};return v.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:g},next:null},f.memoizedState=v,f=f.alternate,f!==null&&(f.memoizedState=v),v}function pC(f){var v=dC(f);v.next===null&&(v=f.alternate.memoizedState),ac(f,v.next.queue,{},da())}function b0(){return gr(Sc)}function gC(){return Ue().memoizedState}function yC(){return Ue().memoizedState}function a6(f){for(var v=f.return;v!==null;){switch(v.tag){case 24:case 3:var g=da();f=Wi(g);var S=Zi(v,f,g);S!==null&&(Qr(S,v,g),Qf(S,v,g)),v={cache:$m()},f.payload=v;return}v=v.return}}function n6(f,v,g){var S=da();g={lane:S,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},yd(f)?_C(v,g):(g=Vm(f,v,g,S),g!==null&&(Qr(g,f,S),SC(g,v,S)))}function mC(f,v,g){var S=da();ac(f,v,g,S)}function ac(f,v,g,S){var T={lane:S,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};if(yd(f))_C(v,T);else{var C=f.alternate;if(f.lanes===0&&(C===null||C.lanes===0)&&(C=v.lastRenderedReducer,C!==null))try{var I=v.lastRenderedState,B=C(I,g);if(T.hasEagerState=!0,T.eagerState=B,sa(B,I))return Kv(f,v,T,0),Me===null&&$v(),!1}catch{}finally{}if(g=Vm(f,v,T,S),g!==null)return Qr(g,f,S),SC(g,v,S),!0}return!1}function x0(f,v,g,S){if(S={lane:2,revertLane:t1(),gesture:null,action:S,hasEagerState:!1,eagerState:null,next:null},yd(f)){if(v)throw Error(a(479))}else v=Vm(f,g,S,2),v!==null&&Qr(v,f,2)}function yd(f){var v=f.alternate;return f===qt||v!==null&&v===qt}function _C(f,v){qs=fd=!0;var g=f.pending;g===null?v.next=v:(v.next=g.next,g.next=v),f.pending=v}function SC(f,v,g){if((g&4194048)!==0){var S=v.lanes;S&=f.pendingLanes,g|=S,v.lanes=g,A2(f,g)}}var nc={readContext:gr,use:vd,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke};nc.useEffectEvent=ke;var bC={readContext:gr,use:vd,useCallback:function(f,v){return kr().memoizedState=[f,v===void 0?null:v],f},useContext:gr,useEffect:nC,useImperativeHandle:function(f,v,g){g=g!=null?g.concat([f]):null,pd(4194308,4,sC.bind(null,v,f),g)},useLayoutEffect:function(f,v){return pd(4194308,4,f,v)},useInsertionEffect:function(f,v){pd(4,2,f,v)},useMemo:function(f,v){var g=kr();v=v===void 0?null:v;var S=f();if(sl){Vi(!0);try{f()}finally{Vi(!1)}}return g.memoizedState=[S,v],S},useReducer:function(f,v,g){var S=kr();if(g!==void 0){var T=g(v);if(sl){Vi(!0);try{g(v)}finally{Vi(!1)}}}else T=v;return S.memoizedState=S.baseState=T,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:T},S.queue=f,f=f.dispatch=n6.bind(null,qt,f),[S.memoizedState,f]},useRef:function(f){var v=kr();return f={current:f},v.memoizedState=f},useState:function(f){f=p0(f);var v=f.queue,g=mC.bind(null,qt,v);return v.dispatch=g,[f.memoizedState,g]},useDebugValue:m0,useDeferredValue:function(f,v){var g=kr();return _0(g,f,v)},useTransition:function(){var f=p0(!1);return f=vC.bind(null,qt,f.queue,!0,!1),kr().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,v,g){var S=qt,T=kr();if(se){if(g===void 0)throw Error(a(407));g=g()}else{if(g=v(),Me===null)throw Error(a(349));(ne&127)!==0||FA(S,v,g)}T.memoizedState=g;var C={value:g,getSnapshot:v};return T.queue=C,nC(YA.bind(null,S,C,f),[f]),S.flags|=2048,Ks(9,{destroy:void 0},UA.bind(null,S,C,g,v),null),g},useId:function(){var f=kr(),v=Me.identifierPrefix;if(se){var g=An,S=Tn;g=(S&~(1<<32-la(S)-1)).toString(32)+g,v="_"+v+"R_"+g,g=cd++,0<g&&(v+="H"+g.toString(32)),v+="_"}else g=KG++,v="_"+v+"r_"+g.toString(32)+"_";return f.memoizedState=v},useHostTransitionStatus:b0,useFormState:JA,useActionState:JA,useOptimistic:function(f){var v=kr();v.memoizedState=v.baseState=f;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return v.queue=g,v=x0.bind(null,qt,!0,g),g.dispatch=v,[f,v]},useMemoCache:h0,useCacheRefresh:function(){return kr().memoizedState=a6.bind(null,qt)},useEffectEvent:function(f){var v=kr(),g={impl:f};return v.memoizedState=g,function(){if((ge&2)!==0)throw Error(a(440));return g.impl.apply(void 0,arguments)}}},w0={readContext:gr,use:vd,useCallback:fC,useContext:gr,useEffect:y0,useImperativeHandle:uC,useInsertionEffect:oC,useLayoutEffect:lC,useMemo:cC,useReducer:dd,useRef:aC,useState:function(){return dd(ii)},useDebugValue:m0,useDeferredValue:function(f,v){var g=Ue();return hC(g,Te.memoizedState,f,v)},useTransition:function(){var f=dd(ii)[0],v=Ue().memoizedState;return[typeof f=="boolean"?f:rc(f),v]},useSyncExternalStore:HA,useId:gC,useHostTransitionStatus:b0,useFormState:tC,useActionState:tC,useOptimistic:function(f,v){var g=Ue();return WA(g,Te,f,v)},useMemoCache:h0,useCacheRefresh:yC};w0.useEffectEvent=iC;var xC={readContext:gr,use:vd,useCallback:fC,useContext:gr,useEffect:y0,useImperativeHandle:uC,useInsertionEffect:oC,useLayoutEffect:lC,useMemo:cC,useReducer:d0,useRef:aC,useState:function(){return d0(ii)},useDebugValue:m0,useDeferredValue:function(f,v){var g=Ue();return Te===null?_0(g,f,v):hC(g,Te.memoizedState,f,v)},useTransition:function(){var f=d0(ii)[0],v=Ue().memoizedState;return[typeof f=="boolean"?f:rc(f),v]},useSyncExternalStore:HA,useId:gC,useHostTransitionStatus:b0,useFormState:rC,useActionState:rC,useOptimistic:function(f,v){var g=Ue();return Te!==null?WA(g,Te,f,v):(g.baseState=f,[f,g.queue.dispatch])},useMemoCache:h0,useCacheRefresh:yC};xC.useEffectEvent=iC;function T0(f,v,g,S){v=f.memoizedState,g=g(S,v),g=g==null?v:h({},v,g),f.memoizedState=g,f.lanes===0&&(f.updateQueue.baseState=g)}var A0={enqueueSetState:function(f,v,g){f=f._reactInternals;var S=da(),T=Wi(S);T.payload=v,g!=null&&(T.callback=g),v=Zi(f,T,S),v!==null&&(Qr(v,f,S),Qf(v,f,S))},enqueueReplaceState:function(f,v,g){f=f._reactInternals;var S=da(),T=Wi(S);T.tag=1,T.payload=v,g!=null&&(T.callback=g),v=Zi(f,T,S),v!==null&&(Qr(v,f,S),Qf(v,f,S))},enqueueForceUpdate:function(f,v){f=f._reactInternals;var g=da(),S=Wi(g);S.tag=2,v!=null&&(S.callback=v),v=Zi(f,S,g),v!==null&&(Qr(v,f,g),Qf(v,f,g))}};function wC(f,v,g,S,T,C,I){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(S,C,I):v.prototype&&v.prototype.isPureReactComponent?!Yf(g,S)||!Yf(T,C):!0}function TC(f,v,g,S){f=v.state,typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps(g,S),typeof v.UNSAFE_componentWillReceiveProps=="function"&&v.UNSAFE_componentWillReceiveProps(g,S),v.state!==f&&A0.enqueueReplaceState(v,v.state,null)}function ul(f,v){var g=v;if("ref"in v){g={};for(var S in v)S!=="ref"&&(g[S]=v[S])}if(f=f.defaultProps){g===v&&(g=h({},g));for(var T in f)g[T]===void 0&&(g[T]=f[T])}return g}function AC(f){qv(f)}function CC(f){console.error(f)}function DC(f){qv(f)}function md(f,v){try{var g=f.onUncaughtError;g(v.value,{componentStack:v.stack})}catch(S){setTimeout(function(){throw S})}}function MC(f,v,g){try{var S=f.onCaughtError;S(g.value,{componentStack:g.stack,errorBoundary:v.tag===1?v.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function C0(f,v,g){return g=Wi(g),g.tag=3,g.payload={element:null},g.callback=function(){md(f,v)},g}function LC(f){return f=Wi(f),f.tag=3,f}function RC(f,v,g,S){var T=g.type.getDerivedStateFromError;if(typeof T=="function"){var C=S.value;f.payload=function(){return T(C)},f.callback=function(){MC(v,g,S)}}var I=g.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(f.callback=function(){MC(v,g,S),typeof T!="function"&&(to===null?to=new Set([this]):to.add(this));var B=S.stack;this.componentDidCatch(S.value,{componentStack:B!==null?B:""})})}function i6(f,v,g,S,T){if(g.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){if(v=g.alternate,v!==null&&Us(v,g,T,!0),g=fa.current,g!==null){switch(g.tag){case 31:case 13:return Ia===null?Rd():g.alternate===null&&Be===0&&(Be=3),g.flags&=-257,g.flags|=65536,g.lanes=T,S===id?g.flags|=16384:(v=g.updateQueue,v===null?g.updateQueue=new Set([S]):v.add(S),K0(f,S,T)),!1;case 22:return g.flags|=65536,S===id?g.flags|=16384:(v=g.updateQueue,v===null?(v={transitions:null,markerInstances:null,retryQueue:new Set([S])},g.updateQueue=v):(g=v.retryQueue,g===null?v.retryQueue=new Set([S]):g.add(S)),K0(f,S,T)),!1}throw Error(a(435,g.tag))}return K0(f,S,T),Rd(),!1}if(se)return v=fa.current,v!==null?((v.flags&65536)===0&&(v.flags|=256),v.flags|=65536,v.lanes=T,S!==jm&&(f=Error(a(422),{cause:S}),Wf(Ma(f,g)))):(S!==jm&&(v=Error(a(423),{cause:S}),Wf(Ma(v,g))),f=f.current.alternate,f.flags|=65536,T&=-T,f.lanes|=T,S=Ma(S,g),T=C0(f.stateNode,S,T),r0(f,T),Be!==4&&(Be=2)),!1;var C=Error(a(520),{cause:S});if(C=Ma(C,g),hc===null?hc=[C]:hc.push(C),Be!==4&&(Be=2),v===null)return!0;S=Ma(S,g),g=v;do{switch(g.tag){case 3:return g.flags|=65536,f=T&-T,g.lanes|=f,f=C0(g.stateNode,S,f),r0(g,f),!1;case 1:if(v=g.type,C=g.stateNode,(g.flags&128)===0&&(typeof v.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(to===null||!to.has(C))))return g.flags|=65536,T&=-T,g.lanes|=T,T=LC(T),RC(T,f,g,S),r0(g,T),!1}g=g.return}while(g!==null);return!1}var D0=Error(a(461)),qe=!1;function yr(f,v,g,S){v.child=f===null?NA(v,null,g,S):ll(v,f.child,g,S)}function EC(f,v,g,S,T){g=g.render;var C=v.ref;if("ref"in S){var I={};for(var B in S)B!=="ref"&&(I[B]=S[B])}else I=S;return al(v),S=s0(f,v,g,I,C,T),B=u0(),f!==null&&!qe?(f0(f,v,T),oi(f,v,T)):(se&&B&&Um(v),v.flags|=1,yr(f,v,S,T),v.child)}function IC(f,v,g,S,T){if(f===null){var C=g.type;return typeof C=="function"&&!Gm(C)&&C.defaultProps===void 0&&g.compare===null?(v.tag=15,v.type=C,OC(f,v,C,S,T)):(f=Jv(g.type,null,S,v,v.mode,T),f.ref=v.ref,f.return=v,v.child=f)}if(C=f.child,!P0(f,T)){var I=C.memoizedProps;if(g=g.compare,g=g!==null?g:Yf,g(I,S)&&f.ref===v.ref)return oi(f,v,T)}return v.flags|=1,f=ti(C,S),f.ref=v.ref,f.return=v,v.child=f}function OC(f,v,g,S,T){if(f!==null){var C=f.memoizedProps;if(Yf(C,S)&&f.ref===v.ref)if(qe=!1,v.pendingProps=S=C,P0(f,T))(f.flags&131072)!==0&&(qe=!0);else return v.lanes=f.lanes,oi(f,v,T)}return M0(f,v,g,S,T)}function NC(f,v,g,S){var T=S.children,C=f!==null?f.memoizedState:null;if(f===null&&v.stateNode===null&&(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),S.mode==="hidden"){if((v.flags&128)!==0){if(C=C!==null?C.baseLanes|g:g,f!==null){for(S=v.child=f.child,T=0;S!==null;)T=T|S.lanes|S.childLanes,S=S.sibling;S=T&~C}else S=0,v.child=null;return PC(f,v,C,g,S)}if((g&536870912)!==0)v.memoizedState={baseLanes:0,cachePool:null},f!==null&&ad(v,C!==null?C.cachePool:null),C!==null?kA(v,C):n0(),BA(v);else return S=v.lanes=536870912,PC(f,v,C!==null?C.baseLanes|g:g,g,S)}else C!==null?(ad(v,C.cachePool),kA(v,C),$i(),v.memoizedState=null):(f!==null&&ad(v,null),n0(),$i());return yr(f,v,T,g),v.child}function ic(f,v){return f!==null&&f.tag===22||v.stateNode!==null||(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.sibling}function PC(f,v,g,S,T){var C=Qm();return C=C===null?null:{parent:We._currentValue,pool:C},v.memoizedState={baseLanes:g,cachePool:C},f!==null&&ad(v,null),n0(),BA(v),f!==null&&Us(f,v,S,!0),v.childLanes=T,null}function _d(f,v){return v=bd({mode:v.mode,children:v.children},f.mode),v.ref=f.ref,f.child=v,v.return=f,v}function zC(f,v,g){return ll(v,f.child,null,g),f=_d(v,v.pendingProps),f.flags|=2,ca(v),v.memoizedState=null,f}function o6(f,v,g){var S=v.pendingProps,T=(v.flags&128)!==0;if(v.flags&=-129,f===null){if(se){if(S.mode==="hidden")return f=_d(v,S),v.lanes=536870912,ic(null,f);if(o0(v),(f=Le)?(f=ZD(f,Ea),f=f!==null&&f.data==="&"?f:null,f!==null&&(v.memoizedState={dehydrated:f,treeContext:Fi!==null?{id:Tn,overflow:An}:null,retryLane:536870912,hydrationErrors:null},g=_A(f),g.return=v,v.child=g,pr=v,Le=null)):f=null,f===null)throw Yi(v);return v.lanes=536870912,null}return _d(v,S)}var C=f.memoizedState;if(C!==null){var I=C.dehydrated;if(o0(v),T)if(v.flags&256)v.flags&=-257,v=zC(f,v,g);else if(v.memoizedState!==null)v.child=f.child,v.flags|=128,v=null;else throw Error(a(558));else if(qe||Us(f,v,g,!1),T=(g&f.childLanes)!==0,qe||T){if(S=Me,S!==null&&(I=C2(S,g),I!==0&&I!==C.retryLane))throw C.retryLane=I,Jo(f,I),Qr(S,f,I),D0;Rd(),v=zC(f,v,g)}else f=C.treeContext,Le=Oa(I.nextSibling),pr=v,se=!0,Ui=null,Ea=!1,f!==null&&xA(v,f),v=_d(v,S),v.flags|=4096;return v}return f=ti(f.child,{mode:S.mode,children:S.children}),f.ref=v.ref,v.child=f,f.return=v,f}function Sd(f,v){var g=v.ref;if(g===null)f!==null&&f.ref!==null&&(v.flags|=4194816);else{if(typeof g!="function"&&typeof g!="object")throw Error(a(284));(f===null||f.ref!==g)&&(v.flags|=4194816)}}function M0(f,v,g,S,T){return al(v),g=s0(f,v,g,S,void 0,T),S=u0(),f!==null&&!qe?(f0(f,v,T),oi(f,v,T)):(se&&S&&Um(v),v.flags|=1,yr(f,v,g,T),v.child)}function kC(f,v,g,S,T,C){return al(v),v.updateQueue=null,g=GA(v,S,g,T),VA(f),S=u0(),f!==null&&!qe?(f0(f,v,C),oi(f,v,C)):(se&&S&&Um(v),v.flags|=1,yr(f,v,g,C),v.child)}function BC(f,v,g,S,T){if(al(v),v.stateNode===null){var C=Vs,I=g.contextType;typeof I=="object"&&I!==null&&(C=gr(I)),C=new g(S,C),v.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=A0,v.stateNode=C,C._reactInternals=v,C=v.stateNode,C.props=S,C.state=v.memoizedState,C.refs={},t0(v),I=g.contextType,C.context=typeof I=="object"&&I!==null?gr(I):Vs,C.state=v.memoizedState,I=g.getDerivedStateFromProps,typeof I=="function"&&(T0(v,g,I,S),C.state=v.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(I=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),I!==C.state&&A0.enqueueReplaceState(C,C.state,null),tc(v,S,C,T),Jf(),C.state=v.memoizedState),typeof C.componentDidMount=="function"&&(v.flags|=4194308),S=!0}else if(f===null){C=v.stateNode;var B=v.memoizedProps,X=ul(g,B);C.props=X;var J=C.context,st=g.contextType;I=Vs,typeof st=="object"&&st!==null&&(I=gr(st));var ft=g.getDerivedStateFromProps;st=typeof ft=="function"||typeof C.getSnapshotBeforeUpdate=="function",B=v.pendingProps!==B,st||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(B||J!==I)&&TC(v,C,S,I),Xi=!1;var et=v.memoizedState;C.state=et,tc(v,S,C,T),Jf(),J=v.memoizedState,B||et!==J||Xi?(typeof ft=="function"&&(T0(v,g,ft,S),J=v.memoizedState),(X=Xi||wC(v,g,X,S,et,J,I))?(st||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(v.flags|=4194308)):(typeof C.componentDidMount=="function"&&(v.flags|=4194308),v.memoizedProps=S,v.memoizedState=J),C.props=S,C.state=J,C.context=I,S=X):(typeof C.componentDidMount=="function"&&(v.flags|=4194308),S=!1)}else{C=v.stateNode,e0(f,v),I=v.memoizedProps,st=ul(g,I),C.props=st,ft=v.pendingProps,et=C.context,J=g.contextType,X=Vs,typeof J=="object"&&J!==null&&(X=gr(J)),B=g.getDerivedStateFromProps,(J=typeof B=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I!==ft||et!==X)&&TC(v,C,S,X),Xi=!1,et=v.memoizedState,C.state=et,tc(v,S,C,T),Jf();var nt=v.memoizedState;I!==ft||et!==nt||Xi||f!==null&&f.dependencies!==null&&ed(f.dependencies)?(typeof B=="function"&&(T0(v,g,B,S),nt=v.memoizedState),(st=Xi||wC(v,g,st,S,et,nt,X)||f!==null&&f.dependencies!==null&&ed(f.dependencies))?(J||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(S,nt,X),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(S,nt,X)),typeof C.componentDidUpdate=="function"&&(v.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(v.flags|=1024)):(typeof C.componentDidUpdate!="function"||I===f.memoizedProps&&et===f.memoizedState||(v.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===f.memoizedProps&&et===f.memoizedState||(v.flags|=1024),v.memoizedProps=S,v.memoizedState=nt),C.props=S,C.state=nt,C.context=X,S=st):(typeof C.componentDidUpdate!="function"||I===f.memoizedProps&&et===f.memoizedState||(v.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===f.memoizedProps&&et===f.memoizedState||(v.flags|=1024),S=!1)}return C=S,Sd(f,v),S=(v.flags&128)!==0,C||S?(C=v.stateNode,g=S&&typeof g.getDerivedStateFromError!="function"?null:C.render(),v.flags|=1,f!==null&&S?(v.child=ll(v,f.child,null,T),v.child=ll(v,null,g,T)):yr(f,v,g,T),v.memoizedState=C.state,f=v.child):f=oi(f,v,T),f}function VC(f,v,g,S){return el(),v.flags|=256,yr(f,v,g,S),v.child}var L0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function R0(f){return{baseLanes:f,cachePool:MA()}}function E0(f,v,g){return f=f!==null?f.childLanes&~g:0,v&&(f|=va),f}function GC(f,v,g){var S=v.pendingProps,T=!1,C=(v.flags&128)!==0,I;if((I=C)||(I=f!==null&&f.memoizedState===null?!1:(Fe.current&2)!==0),I&&(T=!0,v.flags&=-129),I=(v.flags&32)!==0,v.flags&=-33,f===null){if(se){if(T?qi(v):$i(),(f=Le)?(f=ZD(f,Ea),f=f!==null&&f.data!=="&"?f:null,f!==null&&(v.memoizedState={dehydrated:f,treeContext:Fi!==null?{id:Tn,overflow:An}:null,retryLane:536870912,hydrationErrors:null},g=_A(f),g.return=v,v.child=g,pr=v,Le=null)):f=null,f===null)throw Yi(v);return v1(f)?v.lanes=32:v.lanes=536870912,null}var B=S.children;return S=S.fallback,T?($i(),T=v.mode,B=bd({mode:"hidden",children:B},T),S=tl(S,T,g,null),B.return=v,S.return=v,B.sibling=S,v.child=B,S=v.child,S.memoizedState=R0(g),S.childLanes=E0(f,I,g),v.memoizedState=L0,ic(null,S)):(qi(v),I0(v,B))}var X=f.memoizedState;if(X!==null&&(B=X.dehydrated,B!==null)){if(C)v.flags&256?(qi(v),v.flags&=-257,v=O0(f,v,g)):v.memoizedState!==null?($i(),v.child=f.child,v.flags|=128,v=null):($i(),B=S.fallback,T=v.mode,S=bd({mode:"visible",children:S.children},T),B=tl(B,T,g,null),B.flags|=2,S.return=v,B.return=v,S.sibling=B,v.child=S,ll(v,f.child,null,g),S=v.child,S.memoizedState=R0(g),S.childLanes=E0(f,I,g),v.memoizedState=L0,v=ic(null,S));else if(qi(v),v1(B)){if(I=B.nextSibling&&B.nextSibling.dataset,I)var J=I.dgst;I=J,S=Error(a(419)),S.stack="",S.digest=I,Wf({value:S,source:null,stack:null}),v=O0(f,v,g)}else if(qe||Us(f,v,g,!1),I=(g&f.childLanes)!==0,qe||I){if(I=Me,I!==null&&(S=C2(I,g),S!==0&&S!==X.retryLane))throw X.retryLane=S,Jo(f,S),Qr(I,f,S),D0;h1(B)||Rd(),v=O0(f,v,g)}else h1(B)?(v.flags|=192,v.child=f.child,v=null):(f=X.treeContext,Le=Oa(B.nextSibling),pr=v,se=!0,Ui=null,Ea=!1,f!==null&&xA(v,f),v=I0(v,S.children),v.flags|=4096);return v}return T?($i(),B=S.fallback,T=v.mode,X=f.child,J=X.sibling,S=ti(X,{mode:"hidden",children:S.children}),S.subtreeFlags=X.subtreeFlags&65011712,J!==null?B=ti(J,B):(B=tl(B,T,g,null),B.flags|=2),B.return=v,S.return=v,S.sibling=B,v.child=S,ic(null,S),S=v.child,B=f.child.memoizedState,B===null?B=R0(g):(T=B.cachePool,T!==null?(X=We._currentValue,T=T.parent!==X?{parent:X,pool:X}:T):T=MA(),B={baseLanes:B.baseLanes|g,cachePool:T}),S.memoizedState=B,S.childLanes=E0(f,I,g),v.memoizedState=L0,ic(f.child,S)):(qi(v),g=f.child,f=g.sibling,g=ti(g,{mode:"visible",children:S.children}),g.return=v,g.sibling=null,f!==null&&(I=v.deletions,I===null?(v.deletions=[f],v.flags|=16):I.push(f)),v.child=g,v.memoizedState=null,g)}function I0(f,v){return v=bd({mode:"visible",children:v},f.mode),v.return=f,f.child=v}function bd(f,v){return f=ua(22,f,null,v),f.lanes=0,f}function O0(f,v,g){return ll(v,f.child,null,g),f=I0(v,v.pendingProps.children),f.flags|=2,v.memoizedState=null,f}function HC(f,v,g){f.lanes|=v;var S=f.alternate;S!==null&&(S.lanes|=v),Zm(f.return,v,g)}function N0(f,v,g,S,T,C){var I=f.memoizedState;I===null?f.memoizedState={isBackwards:v,rendering:null,renderingStartTime:0,last:S,tail:g,tailMode:T,treeForkCount:C}:(I.isBackwards=v,I.rendering=null,I.renderingStartTime=0,I.last=S,I.tail=g,I.tailMode=T,I.treeForkCount=C)}function FC(f,v,g){var S=v.pendingProps,T=S.revealOrder,C=S.tail;S=S.children;var I=Fe.current,B=(I&2)!==0;if(B?(I=I&1|2,v.flags|=128):I&=1,at(Fe,I),yr(f,v,S,g),S=se?Xf:0,!B&&f!==null&&(f.flags&128)!==0)t:for(f=v.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&HC(f,g,v);else if(f.tag===19)HC(f,g,v);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===v)break t;for(;f.sibling===null;){if(f.return===null||f.return===v)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}switch(T){case"forwards":for(g=v.child,T=null;g!==null;)f=g.alternate,f!==null&&ud(f)===null&&(T=g),g=g.sibling;g=T,g===null?(T=v.child,v.child=null):(T=g.sibling,g.sibling=null),N0(v,!1,T,g,C,S);break;case"backwards":case"unstable_legacy-backwards":for(g=null,T=v.child,v.child=null;T!==null;){if(f=T.alternate,f!==null&&ud(f)===null){v.child=T;break}f=T.sibling,T.sibling=g,g=T,T=f}N0(v,!0,g,null,C,S);break;case"together":N0(v,!1,null,null,void 0,S);break;default:v.memoizedState=null}return v.child}function oi(f,v,g){if(f!==null&&(v.dependencies=f.dependencies),Ji|=v.lanes,(g&v.childLanes)===0)if(f!==null){if(Us(f,v,g,!1),(g&v.childLanes)===0)return null}else return null;if(f!==null&&v.child!==f.child)throw Error(a(153));if(v.child!==null){for(f=v.child,g=ti(f,f.pendingProps),v.child=g,g.return=v;f.sibling!==null;)f=f.sibling,g=g.sibling=ti(f,f.pendingProps),g.return=v;g.sibling=null}return v.child}function P0(f,v){return(f.lanes&v)!==0?!0:(f=f.dependencies,!!(f!==null&&ed(f)))}function l6(f,v,g){switch(v.tag){case 3:wt(v,v.stateNode.containerInfo),ji(v,We,f.memoizedState.cache),el();break;case 27:case 5:Ot(v);break;case 4:wt(v,v.stateNode.containerInfo);break;case 10:ji(v,v.type,v.memoizedProps.value);break;case 31:if(v.memoizedState!==null)return v.flags|=128,o0(v),null;break;case 13:var S=v.memoizedState;if(S!==null)return S.dehydrated!==null?(qi(v),v.flags|=128,null):(g&v.child.childLanes)!==0?GC(f,v,g):(qi(v),f=oi(f,v,g),f!==null?f.sibling:null);qi(v);break;case 19:var T=(f.flags&128)!==0;if(S=(g&v.childLanes)!==0,S||(Us(f,v,g,!1),S=(g&v.childLanes)!==0),T){if(S)return FC(f,v,g);v.flags|=128}if(T=v.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),at(Fe,Fe.current),S)break;return null;case 22:return v.lanes=0,NC(f,v,g,v.pendingProps);case 24:ji(v,We,f.memoizedState.cache)}return oi(f,v,g)}function UC(f,v,g){if(f!==null)if(f.memoizedProps!==v.pendingProps)qe=!0;else{if(!P0(f,g)&&(v.flags&128)===0)return qe=!1,l6(f,v,g);qe=(f.flags&131072)!==0}else qe=!1,se&&(v.flags&1048576)!==0&&bA(v,Xf,v.index);switch(v.lanes=0,v.tag){case 16:t:{var S=v.pendingProps;if(f=il(v.elementType),v.type=f,typeof f=="function")Gm(f)?(S=ul(f,S),v.tag=1,v=BC(null,v,f,S,g)):(v.tag=0,v=M0(null,v,f,S,g));else{if(f!=null){var T=f.$$typeof;if(T===A){v.tag=11,v=EC(null,v,f,S,g);break t}else if(T===L){v.tag=14,v=IC(null,v,f,S,g);break t}}throw v=H(f)||f,Error(a(306,v,""))}}return v;case 0:return M0(f,v,v.type,v.pendingProps,g);case 1:return S=v.type,T=ul(S,v.pendingProps),BC(f,v,S,T,g);case 3:t:{if(wt(v,v.stateNode.containerInfo),f===null)throw Error(a(387));S=v.pendingProps;var C=v.memoizedState;T=C.element,e0(f,v),tc(v,S,null,g);var I=v.memoizedState;if(S=I.cache,ji(v,We,S),S!==C.cache&&qm(v,[We],g,!0),Jf(),S=I.element,C.isDehydrated)if(C={element:S,isDehydrated:!1,cache:I.cache},v.updateQueue.baseState=C,v.memoizedState=C,v.flags&256){v=VC(f,v,S,g);break t}else if(S!==T){T=Ma(Error(a(424)),v),Wf(T),v=VC(f,v,S,g);break t}else{switch(f=v.stateNode.containerInfo,f.nodeType){case 9:f=f.body;break;default:f=f.nodeName==="HTML"?f.ownerDocument.body:f}for(Le=Oa(f.firstChild),pr=v,se=!0,Ui=null,Ea=!0,g=NA(v,null,S,g),v.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling}else{if(el(),S===T){v=oi(f,v,g);break t}yr(f,v,S,g)}v=v.child}return v;case 26:return Sd(f,v),f===null?(g=tM(v.type,null,v.pendingProps,null))?v.memoizedState=g:se||(g=v.type,f=v.pendingProps,S=kd(bt.current).createElement(g),S[dr]=v,S[Xr]=f,mr(S,g,f),sr(S),v.stateNode=S):v.memoizedState=tM(v.type,f.memoizedProps,v.pendingProps,f.memoizedState),null;case 27:return Ot(v),f===null&&se&&(S=v.stateNode=KD(v.type,v.pendingProps,bt.current),pr=v,Ea=!0,T=Le,no(v.type)?(d1=T,Le=Oa(S.firstChild)):Le=T),yr(f,v,v.pendingProps.children,g),Sd(f,v),f===null&&(v.flags|=4194304),v.child;case 5:return f===null&&se&&((T=S=Le)&&(S=k6(S,v.type,v.pendingProps,Ea),S!==null?(v.stateNode=S,pr=v,Le=Oa(S.firstChild),Ea=!1,T=!0):T=!1),T||Yi(v)),Ot(v),T=v.type,C=v.pendingProps,I=f!==null?f.memoizedProps:null,S=C.children,u1(T,C)?S=null:I!==null&&u1(T,I)&&(v.flags|=32),v.memoizedState!==null&&(T=s0(f,v,QG,null,null,g),Sc._currentValue=T),Sd(f,v),yr(f,v,S,g),v.child;case 6:return f===null&&se&&((f=g=Le)&&(g=B6(g,v.pendingProps,Ea),g!==null?(v.stateNode=g,pr=v,Le=null,f=!0):f=!1),f||Yi(v)),null;case 13:return GC(f,v,g);case 4:return wt(v,v.stateNode.containerInfo),S=v.pendingProps,f===null?v.child=ll(v,null,S,g):yr(f,v,S,g),v.child;case 11:return EC(f,v,v.type,v.pendingProps,g);case 7:return yr(f,v,v.pendingProps,g),v.child;case 8:return yr(f,v,v.pendingProps.children,g),v.child;case 12:return yr(f,v,v.pendingProps.children,g),v.child;case 10:return S=v.pendingProps,ji(v,v.type,S.value),yr(f,v,S.children,g),v.child;case 9:return T=v.type._context,S=v.pendingProps.children,al(v),T=gr(T),S=S(T),v.flags|=1,yr(f,v,S,g),v.child;case 14:return IC(f,v,v.type,v.pendingProps,g);case 15:return OC(f,v,v.type,v.pendingProps,g);case 19:return FC(f,v,g);case 31:return o6(f,v,g);case 22:return NC(f,v,g,v.pendingProps);case 24:return al(v),S=gr(We),f===null?(T=Qm(),T===null&&(T=Me,C=$m(),T.pooledCache=C,C.refCount++,C!==null&&(T.pooledCacheLanes|=g),T=C),v.memoizedState={parent:S,cache:T},t0(v),ji(v,We,T)):((f.lanes&g)!==0&&(e0(f,v),tc(v,null,null,g),Jf()),T=f.memoizedState,C=v.memoizedState,T.parent!==S?(T={parent:S,cache:S},v.memoizedState=T,v.lanes===0&&(v.memoizedState=v.updateQueue.baseState=T),ji(v,We,S)):(S=C.cache,ji(v,We,S),S!==T.cache&&qm(v,[We],g,!0))),yr(f,v,v.pendingProps.children,g),v.child;case 29:throw v.pendingProps}throw Error(a(156,v.tag))}function li(f){f.flags|=4}function z0(f,v,g,S,T){if((v=(f.mode&32)!==0)&&(v=!1),v){if(f.flags|=16777216,(T&335544128)===T)if(f.stateNode.complete)f.flags|=8192;else if(gD())f.flags|=8192;else throw ol=id,Jm}else f.flags&=-16777217}function YC(f,v){if(v.type!=="stylesheet"||(v.state.loading&4)!==0)f.flags&=-16777217;else if(f.flags|=16777216,!iM(v))if(gD())f.flags|=8192;else throw ol=id,Jm}function xd(f,v){v!==null&&(f.flags|=4),f.flags&16384&&(v=f.tag!==22?w2():536870912,f.lanes|=v,eu|=v)}function oc(f,v){if(!se)switch(f.tailMode){case"hidden":v=f.tail;for(var g=null;v!==null;)v.alternate!==null&&(g=v),v=v.sibling;g===null?f.tail=null:g.sibling=null;break;case"collapsed":g=f.tail;for(var S=null;g!==null;)g.alternate!==null&&(S=g),g=g.sibling;S===null?v||f.tail===null?f.tail=null:f.tail.sibling=null:S.sibling=null}}function Re(f){var v=f.alternate!==null&&f.alternate.child===f.child,g=0,S=0;if(v)for(var T=f.child;T!==null;)g|=T.lanes|T.childLanes,S|=T.subtreeFlags&65011712,S|=T.flags&65011712,T.return=f,T=T.sibling;else for(T=f.child;T!==null;)g|=T.lanes|T.childLanes,S|=T.subtreeFlags,S|=T.flags,T.return=f,T=T.sibling;return f.subtreeFlags|=S,f.childLanes=g,v}function s6(f,v,g){var S=v.pendingProps;switch(Ym(v),v.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(v),null;case 1:return Re(v),null;case 3:return g=v.stateNode,S=null,f!==null&&(S=f.memoizedState.cache),v.memoizedState.cache!==S&&(v.flags|=2048),ai(We),pt(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(f===null||f.child===null)&&(Fs(v)?li(v):f===null||f.memoizedState.isDehydrated&&(v.flags&256)===0||(v.flags|=1024,Xm())),Re(v),null;case 26:var T=v.type,C=v.memoizedState;return f===null?(li(v),C!==null?(Re(v),YC(v,C)):(Re(v),z0(v,T,null,S,g))):C?C!==f.memoizedState?(li(v),Re(v),YC(v,C)):(Re(v),v.flags&=-16777217):(f=f.memoizedProps,f!==S&&li(v),Re(v),z0(v,T,f,S,g)),null;case 27:if(yt(v),g=bt.current,T=v.type,f!==null&&v.stateNode!=null)f.memoizedProps!==S&&li(v);else{if(!S){if(v.stateNode===null)throw Error(a(166));return Re(v),null}f=lt.current,Fs(v)?wA(v):(f=KD(T,S,g),v.stateNode=f,li(v))}return Re(v),null;case 5:if(yt(v),T=v.type,f!==null&&v.stateNode!=null)f.memoizedProps!==S&&li(v);else{if(!S){if(v.stateNode===null)throw Error(a(166));return Re(v),null}if(C=lt.current,Fs(v))wA(v);else{var I=kd(bt.current);switch(C){case 1:C=I.createElementNS("http://www.w3.org/2000/svg",T);break;case 2:C=I.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;default:switch(T){case"svg":C=I.createElementNS("http://www.w3.org/2000/svg",T);break;case"math":C=I.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;case"script":C=I.createElement("div"),C.innerHTML="<script><\/script>",C=C.removeChild(C.firstChild);break;case"select":C=typeof S.is=="string"?I.createElement("select",{is:S.is}):I.createElement("select"),S.multiple?C.multiple=!0:S.size&&(C.size=S.size);break;default:C=typeof S.is=="string"?I.createElement(T,{is:S.is}):I.createElement(T)}}C[dr]=v,C[Xr]=S;t:for(I=v.child;I!==null;){if(I.tag===5||I.tag===6)C.appendChild(I.stateNode);else if(I.tag!==4&&I.tag!==27&&I.child!==null){I.child.return=I,I=I.child;continue}if(I===v)break t;for(;I.sibling===null;){if(I.return===null||I.return===v)break t;I=I.return}I.sibling.return=I.return,I=I.sibling}v.stateNode=C;t:switch(mr(C,T,S),T){case"button":case"input":case"select":case"textarea":S=!!S.autoFocus;break t;case"img":S=!0;break t;default:S=!1}S&&li(v)}}return Re(v),z0(v,v.type,f===null?null:f.memoizedProps,v.pendingProps,g),null;case 6:if(f&&v.stateNode!=null)f.memoizedProps!==S&&li(v);else{if(typeof S!="string"&&v.stateNode===null)throw Error(a(166));if(f=bt.current,Fs(v)){if(f=v.stateNode,g=v.memoizedProps,S=null,T=pr,T!==null)switch(T.tag){case 27:case 5:S=T.memoizedProps}f[dr]=v,f=!!(f.nodeValue===g||S!==null&&S.suppressHydrationWarning===!0||GD(f.nodeValue,g)),f||Yi(v,!0)}else f=kd(f).createTextNode(S),f[dr]=v,v.stateNode=f}return Re(v),null;case 31:if(g=v.memoizedState,f===null||f.memoizedState!==null){if(S=Fs(v),g!==null){if(f===null){if(!S)throw Error(a(318));if(f=v.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(557));f[dr]=v}else el(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;Re(v),f=!1}else g=Xm(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=g),f=!0;if(!f)return v.flags&256?(ca(v),v):(ca(v),null);if((v.flags&128)!==0)throw Error(a(558))}return Re(v),null;case 13:if(S=v.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(T=Fs(v),S!==null&&S.dehydrated!==null){if(f===null){if(!T)throw Error(a(318));if(T=v.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(a(317));T[dr]=v}else el(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;Re(v),T=!1}else T=Xm(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=T),T=!0;if(!T)return v.flags&256?(ca(v),v):(ca(v),null)}return ca(v),(v.flags&128)!==0?(v.lanes=g,v):(g=S!==null,f=f!==null&&f.memoizedState!==null,g&&(S=v.child,T=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(T=S.alternate.memoizedState.cachePool.pool),C=null,S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(C=S.memoizedState.cachePool.pool),C!==T&&(S.flags|=2048)),g!==f&&g&&(v.child.flags|=8192),xd(v,v.updateQueue),Re(v),null);case 4:return pt(),f===null&&n1(v.stateNode.containerInfo),Re(v),null;case 10:return ai(v.type),Re(v),null;case 19:if(W(Fe),S=v.memoizedState,S===null)return Re(v),null;if(T=(v.flags&128)!==0,C=S.rendering,C===null)if(T)oc(S,!1);else{if(Be!==0||f!==null&&(f.flags&128)!==0)for(f=v.child;f!==null;){if(C=ud(f),C!==null){for(v.flags|=128,oc(S,!1),f=C.updateQueue,v.updateQueue=f,xd(v,f),v.subtreeFlags=0,f=g,g=v.child;g!==null;)mA(g,f),g=g.sibling;return at(Fe,Fe.current&1|2),se&&ei(v,S.treeForkCount),v.child}f=f.sibling}S.tail!==null&&ia()>Dd&&(v.flags|=128,T=!0,oc(S,!1),v.lanes=4194304)}else{if(!T)if(f=ud(C),f!==null){if(v.flags|=128,T=!0,f=f.updateQueue,v.updateQueue=f,xd(v,f),oc(S,!0),S.tail===null&&S.tailMode==="hidden"&&!C.alternate&&!se)return Re(v),null}else 2*ia()-S.renderingStartTime>Dd&&g!==536870912&&(v.flags|=128,T=!0,oc(S,!1),v.lanes=4194304);S.isBackwards?(C.sibling=v.child,v.child=C):(f=S.last,f!==null?f.sibling=C:v.child=C,S.last=C)}return S.tail!==null?(f=S.tail,S.rendering=f,S.tail=f.sibling,S.renderingStartTime=ia(),f.sibling=null,g=Fe.current,at(Fe,T?g&1|2:g&1),se&&ei(v,S.treeForkCount),f):(Re(v),null);case 22:case 23:return ca(v),i0(),S=v.memoizedState!==null,f!==null?f.memoizedState!==null!==S&&(v.flags|=8192):S&&(v.flags|=8192),S?(g&536870912)!==0&&(v.flags&128)===0&&(Re(v),v.subtreeFlags&6&&(v.flags|=8192)):Re(v),g=v.updateQueue,g!==null&&xd(v,g.retryQueue),g=null,f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(g=f.memoizedState.cachePool.pool),S=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(S=v.memoizedState.cachePool.pool),S!==g&&(v.flags|=2048),f!==null&&W(nl),null;case 24:return g=null,f!==null&&(g=f.memoizedState.cache),v.memoizedState.cache!==g&&(v.flags|=2048),ai(We),Re(v),null;case 25:return null;case 30:return null}throw Error(a(156,v.tag))}function u6(f,v){switch(Ym(v),v.tag){case 1:return f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 3:return ai(We),pt(),f=v.flags,(f&65536)!==0&&(f&128)===0?(v.flags=f&-65537|128,v):null;case 26:case 27:case 5:return yt(v),null;case 31:if(v.memoizedState!==null){if(ca(v),v.alternate===null)throw Error(a(340));el()}return f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 13:if(ca(v),f=v.memoizedState,f!==null&&f.dehydrated!==null){if(v.alternate===null)throw Error(a(340));el()}return f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 19:return W(Fe),null;case 4:return pt(),null;case 10:return ai(v.type),null;case 22:case 23:return ca(v),i0(),f!==null&&W(nl),f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 24:return ai(We),null;case 25:return null;default:return null}}function jC(f,v){switch(Ym(v),v.tag){case 3:ai(We),pt();break;case 26:case 27:case 5:yt(v);break;case 4:pt();break;case 31:v.memoizedState!==null&&ca(v);break;case 13:ca(v);break;case 19:W(Fe);break;case 10:ai(v.type);break;case 22:case 23:ca(v),i0(),f!==null&&W(nl);break;case 24:ai(We)}}function lc(f,v){try{var g=v.updateQueue,S=g!==null?g.lastEffect:null;if(S!==null){var T=S.next;g=T;do{if((g.tag&f)===f){S=void 0;var C=g.create,I=g.inst;S=C(),I.destroy=S}g=g.next}while(g!==T)}}catch(B){be(v,v.return,B)}}function Ki(f,v,g){try{var S=v.updateQueue,T=S!==null?S.lastEffect:null;if(T!==null){var C=T.next;S=C;do{if((S.tag&f)===f){var I=S.inst,B=I.destroy;if(B!==void 0){I.destroy=void 0,T=v;var X=g,J=B;try{J()}catch(st){be(T,X,st)}}}S=S.next}while(S!==C)}}catch(st){be(v,v.return,st)}}function XC(f){var v=f.updateQueue;if(v!==null){var g=f.stateNode;try{zA(v,g)}catch(S){be(f,f.return,S)}}}function WC(f,v,g){g.props=ul(f.type,f.memoizedProps),g.state=f.memoizedState;try{g.componentWillUnmount()}catch(S){be(f,v,S)}}function sc(f,v){try{var g=f.ref;if(g!==null){switch(f.tag){case 26:case 27:case 5:var S=f.stateNode;break;case 30:S=f.stateNode;break;default:S=f.stateNode}typeof g=="function"?f.refCleanup=g(S):g.current=S}}catch(T){be(f,v,T)}}function Cn(f,v){var g=f.ref,S=f.refCleanup;if(g!==null)if(typeof S=="function")try{S()}catch(T){be(f,v,T)}finally{f.refCleanup=null,f=f.alternate,f!=null&&(f.refCleanup=null)}else if(typeof g=="function")try{g(null)}catch(T){be(f,v,T)}else g.current=null}function ZC(f){var v=f.type,g=f.memoizedProps,S=f.stateNode;try{t:switch(v){case"button":case"input":case"select":case"textarea":g.autoFocus&&S.focus();break t;case"img":g.src?S.src=g.src:g.srcSet&&(S.srcset=g.srcSet)}}catch(T){be(f,f.return,T)}}function k0(f,v,g){try{var S=f.stateNode;E6(S,f.type,g,v),S[Xr]=v}catch(T){be(f,f.return,T)}}function qC(f){return f.tag===5||f.tag===3||f.tag===26||f.tag===27&&no(f.type)||f.tag===4}function B0(f){t:for(;;){for(;f.sibling===null;){if(f.return===null||qC(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.tag===27&&no(f.type)||f.flags&2||f.child===null||f.tag===4)continue t;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function V0(f,v,g){var S=f.tag;if(S===5||S===6)f=f.stateNode,v?(g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g).insertBefore(f,v):(v=g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g,v.appendChild(f),g=g._reactRootContainer,g!=null||v.onclick!==null||(v.onclick=Qn));else if(S!==4&&(S===27&&no(f.type)&&(g=f.stateNode,v=null),f=f.child,f!==null))for(V0(f,v,g),f=f.sibling;f!==null;)V0(f,v,g),f=f.sibling}function wd(f,v,g){var S=f.tag;if(S===5||S===6)f=f.stateNode,v?g.insertBefore(f,v):g.appendChild(f);else if(S!==4&&(S===27&&no(f.type)&&(g=f.stateNode),f=f.child,f!==null))for(wd(f,v,g),f=f.sibling;f!==null;)wd(f,v,g),f=f.sibling}function $C(f){var v=f.stateNode,g=f.memoizedProps;try{for(var S=f.type,T=v.attributes;T.length;)v.removeAttributeNode(T[0]);mr(v,S,g),v[dr]=f,v[Xr]=g}catch(C){be(f,f.return,C)}}var si=!1,$e=!1,G0=!1,KC=typeof WeakSet=="function"?WeakSet:Set,ur=null;function f6(f,v){if(f=f.containerInfo,l1=Yd,f=uA(f),Om(f)){if("selectionStart"in f)var g={start:f.selectionStart,end:f.selectionEnd};else t:{g=(g=f.ownerDocument)&&g.defaultView||window;var S=g.getSelection&&g.getSelection();if(S&&S.rangeCount!==0){g=S.anchorNode;var T=S.anchorOffset,C=S.focusNode;S=S.focusOffset;try{g.nodeType,C.nodeType}catch{g=null;break t}var I=0,B=-1,X=-1,J=0,st=0,ft=f,et=null;e:for(;;){for(var nt;ft!==g||T!==0&&ft.nodeType!==3||(B=I+T),ft!==C||S!==0&&ft.nodeType!==3||(X=I+S),ft.nodeType===3&&(I+=ft.nodeValue.length),(nt=ft.firstChild)!==null;)et=ft,ft=nt;for(;;){if(ft===f)break e;if(et===g&&++J===T&&(B=I),et===C&&++st===S&&(X=I),(nt=ft.nextSibling)!==null)break;ft=et,et=ft.parentNode}ft=nt}g=B===-1||X===-1?null:{start:B,end:X}}else g=null}g=g||{start:0,end:0}}else g=null;for(s1={focusedElem:f,selectionRange:g},Yd=!1,ur=v;ur!==null;)if(v=ur,f=v.child,(v.subtreeFlags&1028)!==0&&f!==null)f.return=v,ur=f;else for(;ur!==null;){switch(v=ur,C=v.alternate,f=v.flags,v.tag){case 0:if((f&4)!==0&&(f=v.updateQueue,f=f!==null?f.events:null,f!==null))for(g=0;g<f.length;g++)T=f[g],T.ref.impl=T.nextImpl;break;case 11:case 15:break;case 1:if((f&1024)!==0&&C!==null){f=void 0,g=v,T=C.memoizedProps,C=C.memoizedState,S=g.stateNode;try{var At=ul(g.type,T);f=S.getSnapshotBeforeUpdate(At,C),S.__reactInternalSnapshotBeforeUpdate=f}catch(Vt){be(g,g.return,Vt)}}break;case 3:if((f&1024)!==0){if(f=v.stateNode.containerInfo,g=f.nodeType,g===9)c1(f);else if(g===1)switch(f.nodeName){case"HEAD":case"HTML":case"BODY":c1(f);break;default:f.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((f&1024)!==0)throw Error(a(163))}if(f=v.sibling,f!==null){f.return=v.return,ur=f;break}ur=v.return}}function QC(f,v,g){var S=g.flags;switch(g.tag){case 0:case 11:case 15:fi(f,g),S&4&&lc(5,g);break;case 1:if(fi(f,g),S&4)if(f=g.stateNode,v===null)try{f.componentDidMount()}catch(I){be(g,g.return,I)}else{var T=ul(g.type,v.memoizedProps);v=v.memoizedState;try{f.componentDidUpdate(T,v,f.__reactInternalSnapshotBeforeUpdate)}catch(I){be(g,g.return,I)}}S&64&&XC(g),S&512&&sc(g,g.return);break;case 3:if(fi(f,g),S&64&&(f=g.updateQueue,f!==null)){if(v=null,g.child!==null)switch(g.child.tag){case 27:case 5:v=g.child.stateNode;break;case 1:v=g.child.stateNode}try{zA(f,v)}catch(I){be(g,g.return,I)}}break;case 27:v===null&&S&4&&$C(g);case 26:case 5:fi(f,g),v===null&&S&4&&ZC(g),S&512&&sc(g,g.return);break;case 12:fi(f,g);break;case 31:fi(f,g),S&4&&eD(f,g);break;case 13:fi(f,g),S&4&&rD(f,g),S&64&&(f=g.memoizedState,f!==null&&(f=f.dehydrated,f!==null&&(g=_6.bind(null,g),V6(f,g))));break;case 22:if(S=g.memoizedState!==null||si,!S){v=v!==null&&v.memoizedState!==null||$e,T=si;var C=$e;si=S,($e=v)&&!C?ci(f,g,(g.subtreeFlags&8772)!==0):fi(f,g),si=T,$e=C}break;case 30:break;default:fi(f,g)}}function JC(f){var v=f.alternate;v!==null&&(f.alternate=null,JC(v)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(v=f.stateNode,v!==null&&gm(v)),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}var Ie=null,Zr=!1;function ui(f,v,g){for(g=g.child;g!==null;)tD(f,v,g),g=g.sibling}function tD(f,v,g){if(oa&&typeof oa.onCommitFiberUnmount=="function")try{oa.onCommitFiberUnmount(If,g)}catch{}switch(g.tag){case 26:$e||Cn(g,v),ui(f,v,g),g.memoizedState?g.memoizedState.count--:g.stateNode&&(g=g.stateNode,g.parentNode.removeChild(g));break;case 27:$e||Cn(g,v);var S=Ie,T=Zr;no(g.type)&&(Ie=g.stateNode,Zr=!1),ui(f,v,g),yc(g.stateNode),Ie=S,Zr=T;break;case 5:$e||Cn(g,v);case 6:if(S=Ie,T=Zr,Ie=null,ui(f,v,g),Ie=S,Zr=T,Ie!==null)if(Zr)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(g.stateNode)}catch(C){be(g,v,C)}else try{Ie.removeChild(g.stateNode)}catch(C){be(g,v,C)}break;case 18:Ie!==null&&(Zr?(f=Ie,XD(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,g.stateNode),uu(f)):XD(Ie,g.stateNode));break;case 4:S=Ie,T=Zr,Ie=g.stateNode.containerInfo,Zr=!0,ui(f,v,g),Ie=S,Zr=T;break;case 0:case 11:case 14:case 15:Ki(2,g,v),$e||Ki(4,g,v),ui(f,v,g);break;case 1:$e||(Cn(g,v),S=g.stateNode,typeof S.componentWillUnmount=="function"&&WC(g,v,S)),ui(f,v,g);break;case 21:ui(f,v,g);break;case 22:$e=(S=$e)||g.memoizedState!==null,ui(f,v,g),$e=S;break;default:ui(f,v,g)}}function eD(f,v){if(v.memoizedState===null&&(f=v.alternate,f!==null&&(f=f.memoizedState,f!==null))){f=f.dehydrated;try{uu(f)}catch(g){be(v,v.return,g)}}}function rD(f,v){if(v.memoizedState===null&&(f=v.alternate,f!==null&&(f=f.memoizedState,f!==null&&(f=f.dehydrated,f!==null))))try{uu(f)}catch(g){be(v,v.return,g)}}function c6(f){switch(f.tag){case 31:case 13:case 19:var v=f.stateNode;return v===null&&(v=f.stateNode=new KC),v;case 22:return f=f.stateNode,v=f._retryCache,v===null&&(v=f._retryCache=new KC),v;default:throw Error(a(435,f.tag))}}function Td(f,v){var g=c6(f);v.forEach(function(S){if(!g.has(S)){g.add(S);var T=S6.bind(null,f,S);S.then(T,T)}})}function qr(f,v){var g=v.deletions;if(g!==null)for(var S=0;S<g.length;S++){var T=g[S],C=f,I=v,B=I;t:for(;B!==null;){switch(B.tag){case 27:if(no(B.type)){Ie=B.stateNode,Zr=!1;break t}break;case 5:Ie=B.stateNode,Zr=!1;break t;case 3:case 4:Ie=B.stateNode.containerInfo,Zr=!0;break t}B=B.return}if(Ie===null)throw Error(a(160));tD(C,I,T),Ie=null,Zr=!1,C=T.alternate,C!==null&&(C.return=null),T.return=null}if(v.subtreeFlags&13886)for(v=v.child;v!==null;)aD(v,f),v=v.sibling}var nn=null;function aD(f,v){var g=f.alternate,S=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:qr(v,f),$r(f),S&4&&(Ki(3,f,f.return),lc(3,f),Ki(5,f,f.return));break;case 1:qr(v,f),$r(f),S&512&&($e||g===null||Cn(g,g.return)),S&64&&si&&(f=f.updateQueue,f!==null&&(S=f.callbacks,S!==null&&(g=f.shared.hiddenCallbacks,f.shared.hiddenCallbacks=g===null?S:g.concat(S))));break;case 26:var T=nn;if(qr(v,f),$r(f),S&512&&($e||g===null||Cn(g,g.return)),S&4){var C=g!==null?g.memoizedState:null;if(S=f.memoizedState,g===null)if(S===null)if(f.stateNode===null){t:{S=f.type,g=f.memoizedProps,T=T.ownerDocument||T;e:switch(S){case"title":C=T.getElementsByTagName("title")[0],(!C||C[Pf]||C[dr]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=T.createElement(S),T.head.insertBefore(C,T.querySelector("head > title"))),mr(C,S,g),C[dr]=f,sr(C),S=C;break t;case"link":var I=aM("link","href",T).get(S+(g.href||""));if(I){for(var B=0;B<I.length;B++)if(C=I[B],C.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&C.getAttribute("rel")===(g.rel==null?null:g.rel)&&C.getAttribute("title")===(g.title==null?null:g.title)&&C.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){I.splice(B,1);break e}}C=T.createElement(S),mr(C,S,g),T.head.appendChild(C);break;case"meta":if(I=aM("meta","content",T).get(S+(g.content||""))){for(B=0;B<I.length;B++)if(C=I[B],C.getAttribute("content")===(g.content==null?null:""+g.content)&&C.getAttribute("name")===(g.name==null?null:g.name)&&C.getAttribute("property")===(g.property==null?null:g.property)&&C.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&C.getAttribute("charset")===(g.charSet==null?null:g.charSet)){I.splice(B,1);break e}}C=T.createElement(S),mr(C,S,g),T.head.appendChild(C);break;default:throw Error(a(468,S))}C[dr]=f,sr(C),S=C}f.stateNode=S}else nM(T,f.type,f.stateNode);else f.stateNode=rM(T,S,f.memoizedProps);else C!==S?(C===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):C.count--,S===null?nM(T,f.type,f.stateNode):rM(T,S,f.memoizedProps)):S===null&&f.stateNode!==null&&k0(f,f.memoizedProps,g.memoizedProps)}break;case 27:qr(v,f),$r(f),S&512&&($e||g===null||Cn(g,g.return)),g!==null&&S&4&&k0(f,f.memoizedProps,g.memoizedProps);break;case 5:if(qr(v,f),$r(f),S&512&&($e||g===null||Cn(g,g.return)),f.flags&32){T=f.stateNode;try{Is(T,"")}catch(At){be(f,f.return,At)}}S&4&&f.stateNode!=null&&(T=f.memoizedProps,k0(f,T,g!==null?g.memoizedProps:T)),S&1024&&(G0=!0);break;case 6:if(qr(v,f),$r(f),S&4){if(f.stateNode===null)throw Error(a(162));S=f.memoizedProps,g=f.stateNode;try{g.nodeValue=S}catch(At){be(f,f.return,At)}}break;case 3:if(Gd=null,T=nn,nn=Bd(v.containerInfo),qr(v,f),nn=T,$r(f),S&4&&g!==null&&g.memoizedState.isDehydrated)try{uu(v.containerInfo)}catch(At){be(f,f.return,At)}G0&&(G0=!1,nD(f));break;case 4:S=nn,nn=Bd(f.stateNode.containerInfo),qr(v,f),$r(f),nn=S;break;case 12:qr(v,f),$r(f);break;case 31:qr(v,f),$r(f),S&4&&(S=f.updateQueue,S!==null&&(f.updateQueue=null,Td(f,S)));break;case 13:qr(v,f),$r(f),f.child.flags&8192&&f.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(Cd=ia()),S&4&&(S=f.updateQueue,S!==null&&(f.updateQueue=null,Td(f,S)));break;case 22:T=f.memoizedState!==null;var X=g!==null&&g.memoizedState!==null,J=si,st=$e;if(si=J||T,$e=st||X,qr(v,f),$e=st,si=J,$r(f),S&8192)t:for(v=f.stateNode,v._visibility=T?v._visibility&-2:v._visibility|1,T&&(g===null||X||si||$e||fl(f)),g=null,v=f;;){if(v.tag===5||v.tag===26){if(g===null){X=g=v;try{if(C=X.stateNode,T)I=C.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{B=X.stateNode;var ft=X.memoizedProps.style,et=ft!=null&&ft.hasOwnProperty("display")?ft.display:null;B.style.display=et==null||typeof et=="boolean"?"":(""+et).trim()}}catch(At){be(X,X.return,At)}}}else if(v.tag===6){if(g===null){X=v;try{X.stateNode.nodeValue=T?"":X.memoizedProps}catch(At){be(X,X.return,At)}}}else if(v.tag===18){if(g===null){X=v;try{var nt=X.stateNode;T?WD(nt,!0):WD(X.stateNode,!1)}catch(At){be(X,X.return,At)}}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===f)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===f)break t;for(;v.sibling===null;){if(v.return===null||v.return===f)break t;g===v&&(g=null),v=v.return}g===v&&(g=null),v.sibling.return=v.return,v=v.sibling}S&4&&(S=f.updateQueue,S!==null&&(g=S.retryQueue,g!==null&&(S.retryQueue=null,Td(f,g))));break;case 19:qr(v,f),$r(f),S&4&&(S=f.updateQueue,S!==null&&(f.updateQueue=null,Td(f,S)));break;case 30:break;case 21:break;default:qr(v,f),$r(f)}}function $r(f){var v=f.flags;if(v&2){try{for(var g,S=f.return;S!==null;){if(qC(S)){g=S;break}S=S.return}if(g==null)throw Error(a(160));switch(g.tag){case 27:var T=g.stateNode,C=B0(f);wd(f,C,T);break;case 5:var I=g.stateNode;g.flags&32&&(Is(I,""),g.flags&=-33);var B=B0(f);wd(f,B,I);break;case 3:case 4:var X=g.stateNode.containerInfo,J=B0(f);V0(f,J,X);break;default:throw Error(a(161))}}catch(st){be(f,f.return,st)}f.flags&=-3}v&4096&&(f.flags&=-4097)}function nD(f){if(f.subtreeFlags&1024)for(f=f.child;f!==null;){var v=f;nD(v),v.tag===5&&v.flags&1024&&v.stateNode.reset(),f=f.sibling}}function fi(f,v){if(v.subtreeFlags&8772)for(v=v.child;v!==null;)QC(f,v.alternate,v),v=v.sibling}function fl(f){for(f=f.child;f!==null;){var v=f;switch(v.tag){case 0:case 11:case 14:case 15:Ki(4,v,v.return),fl(v);break;case 1:Cn(v,v.return);var g=v.stateNode;typeof g.componentWillUnmount=="function"&&WC(v,v.return,g),fl(v);break;case 27:yc(v.stateNode);case 26:case 5:Cn(v,v.return),fl(v);break;case 22:v.memoizedState===null&&fl(v);break;case 30:fl(v);break;default:fl(v)}f=f.sibling}}function ci(f,v,g){for(g=g&&(v.subtreeFlags&8772)!==0,v=v.child;v!==null;){var S=v.alternate,T=f,C=v,I=C.flags;switch(C.tag){case 0:case 11:case 15:ci(T,C,g),lc(4,C);break;case 1:if(ci(T,C,g),S=C,T=S.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(J){be(S,S.return,J)}if(S=C,T=S.updateQueue,T!==null){var B=S.stateNode;try{var X=T.shared.hiddenCallbacks;if(X!==null)for(T.shared.hiddenCallbacks=null,T=0;T<X.length;T++)PA(X[T],B)}catch(J){be(S,S.return,J)}}g&&I&64&&XC(C),sc(C,C.return);break;case 27:$C(C);case 26:case 5:ci(T,C,g),g&&S===null&&I&4&&ZC(C),sc(C,C.return);break;case 12:ci(T,C,g);break;case 31:ci(T,C,g),g&&I&4&&eD(T,C);break;case 13:ci(T,C,g),g&&I&4&&rD(T,C);break;case 22:C.memoizedState===null&&ci(T,C,g),sc(C,C.return);break;case 30:break;default:ci(T,C,g)}v=v.sibling}}function H0(f,v){var g=null;f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(g=f.memoizedState.cachePool.pool),f=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(f=v.memoizedState.cachePool.pool),f!==g&&(f!=null&&f.refCount++,g!=null&&Zf(g))}function F0(f,v){f=null,v.alternate!==null&&(f=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==f&&(v.refCount++,f!=null&&Zf(f))}function on(f,v,g,S){if(v.subtreeFlags&10256)for(v=v.child;v!==null;)iD(f,v,g,S),v=v.sibling}function iD(f,v,g,S){var T=v.flags;switch(v.tag){case 0:case 11:case 15:on(f,v,g,S),T&2048&&lc(9,v);break;case 1:on(f,v,g,S);break;case 3:on(f,v,g,S),T&2048&&(f=null,v.alternate!==null&&(f=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==f&&(v.refCount++,f!=null&&Zf(f)));break;case 12:if(T&2048){on(f,v,g,S),f=v.stateNode;try{var C=v.memoizedProps,I=C.id,B=C.onPostCommit;typeof B=="function"&&B(I,v.alternate===null?"mount":"update",f.passiveEffectDuration,-0)}catch(X){be(v,v.return,X)}}else on(f,v,g,S);break;case 31:on(f,v,g,S);break;case 13:on(f,v,g,S);break;case 23:break;case 22:C=v.stateNode,I=v.alternate,v.memoizedState!==null?C._visibility&2?on(f,v,g,S):uc(f,v):C._visibility&2?on(f,v,g,S):(C._visibility|=2,Qs(f,v,g,S,(v.subtreeFlags&10256)!==0||!1)),T&2048&&H0(I,v);break;case 24:on(f,v,g,S),T&2048&&F0(v.alternate,v);break;default:on(f,v,g,S)}}function Qs(f,v,g,S,T){for(T=T&&((v.subtreeFlags&10256)!==0||!1),v=v.child;v!==null;){var C=f,I=v,B=g,X=S,J=I.flags;switch(I.tag){case 0:case 11:case 15:Qs(C,I,B,X,T),lc(8,I);break;case 23:break;case 22:var st=I.stateNode;I.memoizedState!==null?st._visibility&2?Qs(C,I,B,X,T):uc(C,I):(st._visibility|=2,Qs(C,I,B,X,T)),T&&J&2048&&H0(I.alternate,I);break;case 24:Qs(C,I,B,X,T),T&&J&2048&&F0(I.alternate,I);break;default:Qs(C,I,B,X,T)}v=v.sibling}}function uc(f,v){if(v.subtreeFlags&10256)for(v=v.child;v!==null;){var g=f,S=v,T=S.flags;switch(S.tag){case 22:uc(g,S),T&2048&&H0(S.alternate,S);break;case 24:uc(g,S),T&2048&&F0(S.alternate,S);break;default:uc(g,S)}v=v.sibling}}var fc=8192;function Js(f,v,g){if(f.subtreeFlags&fc)for(f=f.child;f!==null;)oD(f,v,g),f=f.sibling}function oD(f,v,g){switch(f.tag){case 26:Js(f,v,g),f.flags&fc&&f.memoizedState!==null&&K6(g,nn,f.memoizedState,f.memoizedProps);break;case 5:Js(f,v,g);break;case 3:case 4:var S=nn;nn=Bd(f.stateNode.containerInfo),Js(f,v,g),nn=S;break;case 22:f.memoizedState===null&&(S=f.alternate,S!==null&&S.memoizedState!==null?(S=fc,fc=16777216,Js(f,v,g),fc=S):Js(f,v,g));break;default:Js(f,v,g)}}function lD(f){var v=f.alternate;if(v!==null&&(f=v.child,f!==null)){v.child=null;do v=f.sibling,f.sibling=null,f=v;while(f!==null)}}function cc(f){var v=f.deletions;if((f.flags&16)!==0){if(v!==null)for(var g=0;g<v.length;g++){var S=v[g];ur=S,uD(S,f)}lD(f)}if(f.subtreeFlags&10256)for(f=f.child;f!==null;)sD(f),f=f.sibling}function sD(f){switch(f.tag){case 0:case 11:case 15:cc(f),f.flags&2048&&Ki(9,f,f.return);break;case 3:cc(f);break;case 12:cc(f);break;case 22:var v=f.stateNode;f.memoizedState!==null&&v._visibility&2&&(f.return===null||f.return.tag!==13)?(v._visibility&=-3,Ad(f)):cc(f);break;default:cc(f)}}function Ad(f){var v=f.deletions;if((f.flags&16)!==0){if(v!==null)for(var g=0;g<v.length;g++){var S=v[g];ur=S,uD(S,f)}lD(f)}for(f=f.child;f!==null;){switch(v=f,v.tag){case 0:case 11:case 15:Ki(8,v,v.return),Ad(v);break;case 22:g=v.stateNode,g._visibility&2&&(g._visibility&=-3,Ad(v));break;default:Ad(v)}f=f.sibling}}function uD(f,v){for(;ur!==null;){var g=ur;switch(g.tag){case 0:case 11:case 15:Ki(8,g,v);break;case 23:case 22:if(g.memoizedState!==null&&g.memoizedState.cachePool!==null){var S=g.memoizedState.cachePool.pool;S!=null&&S.refCount++}break;case 24:Zf(g.memoizedState.cache)}if(S=g.child,S!==null)S.return=g,ur=S;else t:for(g=f;ur!==null;){S=ur;var T=S.sibling,C=S.return;if(JC(S),S===g){ur=null;break t}if(T!==null){T.return=C,ur=T;break t}ur=C}}}var h6={getCacheForType:function(f){var v=gr(We),g=v.data.get(f);return g===void 0&&(g=f(),v.data.set(f,g)),g},cacheSignal:function(){return gr(We).controller.signal}},v6=typeof WeakMap=="function"?WeakMap:Map,ge=0,Me=null,re=null,ne=0,Se=0,ha=null,Qi=!1,tu=!1,U0=!1,hi=0,Be=0,Ji=0,cl=0,Y0=0,va=0,eu=0,hc=null,Kr=null,j0=!1,Cd=0,fD=0,Dd=1/0,Md=null,to=null,Je=0,eo=null,ru=null,vi=0,X0=0,W0=null,cD=null,vc=0,Z0=null;function da(){return(ge&2)!==0&&ne!==0?ne&-ne:z.T!==null?t1():D2()}function hD(){if(va===0)if((ne&536870912)===0||se){var f=zv;zv<<=1,(zv&3932160)===0&&(zv=262144),va=f}else va=536870912;return f=fa.current,f!==null&&(f.flags|=32),va}function Qr(f,v,g){(f===Me&&(Se===2||Se===9)||f.cancelPendingCommit!==null)&&(au(f,0),ro(f,ne,va,!1)),Nf(f,g),((ge&2)===0||f!==Me)&&(f===Me&&((ge&2)===0&&(cl|=g),Be===4&&ro(f,ne,va,!1)),Dn(f))}function vD(f,v,g){if((ge&6)!==0)throw Error(a(327));var S=!g&&(v&127)===0&&(v&f.expiredLanes)===0||Of(f,v),T=S?g6(f,v):$0(f,v,!0),C=S;do{if(T===0){tu&&!S&&ro(f,v,0,!1);break}else{if(g=f.current.alternate,C&&!d6(g)){T=$0(f,v,!1),C=!1;continue}if(T===2){if(C=v,f.errorRecoveryDisabledLanes&C)var I=0;else I=f.pendingLanes&-536870913,I=I!==0?I:I&536870912?536870912:0;if(I!==0){v=I;t:{var B=f;T=hc;var X=B.current.memoizedState.isDehydrated;if(X&&(au(B,I).flags|=256),I=$0(B,I,!1),I!==2){if(U0&&!X){B.errorRecoveryDisabledLanes|=C,cl|=C,T=4;break t}C=Kr,Kr=T,C!==null&&(Kr===null?Kr=C:Kr.push.apply(Kr,C))}T=I}if(C=!1,T!==2)continue}}if(T===1){au(f,0),ro(f,v,0,!0);break}t:{switch(S=f,C=T,C){case 0:case 1:throw Error(a(345));case 4:if((v&4194048)!==v)break;case 6:ro(S,v,va,!Qi);break t;case 2:Kr=null;break;case 3:case 5:break;default:throw Error(a(329))}if((v&62914560)===v&&(T=Cd+300-ia(),10<T)){if(ro(S,v,va,!Qi),Bv(S,0,!0)!==0)break t;vi=v,S.timeoutHandle=YD(dD.bind(null,S,g,Kr,Md,j0,v,va,cl,eu,Qi,C,"Throttled",-0,0),T);break t}dD(S,g,Kr,Md,j0,v,va,cl,eu,Qi,C,null,-0,0)}}break}while(!0);Dn(f)}function dD(f,v,g,S,T,C,I,B,X,J,st,ft,et,nt){if(f.timeoutHandle=-1,ft=v.subtreeFlags,ft&8192||(ft&16785408)===16785408){ft={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qn},oD(v,C,ft);var At=(C&62914560)===C?Cd-ia():(C&4194048)===C?fD-ia():0;if(At=Q6(ft,At),At!==null){vi=C,f.cancelPendingCommit=At(xD.bind(null,f,v,C,g,S,T,I,B,X,st,ft,null,et,nt)),ro(f,C,I,!J);return}}xD(f,v,C,g,S,T,I,B,X)}function d6(f){for(var v=f;;){var g=v.tag;if((g===0||g===11||g===15)&&v.flags&16384&&(g=v.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var S=0;S<g.length;S++){var T=g[S],C=T.getSnapshot;T=T.value;try{if(!sa(C(),T))return!1}catch{return!1}}if(g=v.child,v.subtreeFlags&16384&&g!==null)g.return=v,v=g;else{if(v===f)break;for(;v.sibling===null;){if(v.return===null||v.return===f)return!0;v=v.return}v.sibling.return=v.return,v=v.sibling}}return!0}function ro(f,v,g,S){v&=~Y0,v&=~cl,f.suspendedLanes|=v,f.pingedLanes&=~v,S&&(f.warmLanes|=v),S=f.expirationTimes;for(var T=v;0<T;){var C=31-la(T),I=1<<C;S[C]=-1,T&=~I}g!==0&&T2(f,g,v)}function Ld(){return(ge&6)===0?(dc(0),!1):!0}function q0(){if(re!==null){if(Se===0)var f=re.return;else f=re,ri=rl=null,c0(f),Ws=null,$f=0,f=re;for(;f!==null;)jC(f.alternate,f),f=f.return;re=null}}function au(f,v){var g=f.timeoutHandle;g!==-1&&(f.timeoutHandle=-1,N6(g)),g=f.cancelPendingCommit,g!==null&&(f.cancelPendingCommit=null,g()),vi=0,q0(),Me=f,re=g=ti(f.current,null),ne=v,Se=0,ha=null,Qi=!1,tu=Of(f,v),U0=!1,eu=va=Y0=cl=Ji=Be=0,Kr=hc=null,j0=!1,(v&8)!==0&&(v|=v&32);var S=f.entangledLanes;if(S!==0)for(f=f.entanglements,S&=v;0<S;){var T=31-la(S),C=1<<T;v|=f[T],S&=~C}return hi=v,$v(),g}function pD(f,v){qt=null,z.H=nc,v===Xs||v===nd?(v=EA(),Se=3):v===Jm?(v=EA(),Se=4):Se=v===D0?8:v!==null&&typeof v=="object"&&typeof v.then=="function"?6:1,ha=v,re===null&&(Be=1,md(f,Ma(v,f.current)))}function gD(){var f=fa.current;return f===null?!0:(ne&4194048)===ne?Ia===null:(ne&62914560)===ne||(ne&536870912)!==0?f===Ia:!1}function yD(){var f=z.H;return z.H=nc,f===null?nc:f}function mD(){var f=z.A;return z.A=h6,f}function Rd(){Be=4,Qi||(ne&4194048)!==ne&&fa.current!==null||(tu=!0),(Ji&134217727)===0&&(cl&134217727)===0||Me===null||ro(Me,ne,va,!1)}function $0(f,v,g){var S=ge;ge|=2;var T=yD(),C=mD();(Me!==f||ne!==v)&&(Md=null,au(f,v)),v=!1;var I=Be;t:do try{if(Se!==0&&re!==null){var B=re,X=ha;switch(Se){case 8:q0(),I=6;break t;case 3:case 2:case 9:case 6:fa.current===null&&(v=!0);var J=Se;if(Se=0,ha=null,nu(f,B,X,J),g&&tu){I=0;break t}break;default:J=Se,Se=0,ha=null,nu(f,B,X,J)}}p6(),I=Be;break}catch(st){pD(f,st)}while(!0);return v&&f.shellSuspendCounter++,ri=rl=null,ge=S,z.H=T,z.A=C,re===null&&(Me=null,ne=0,$v()),I}function p6(){for(;re!==null;)_D(re)}function g6(f,v){var g=ge;ge|=2;var S=yD(),T=mD();Me!==f||ne!==v?(Md=null,Dd=ia()+500,au(f,v)):tu=Of(f,v);t:do try{if(Se!==0&&re!==null){v=re;var C=ha;e:switch(Se){case 1:Se=0,ha=null,nu(f,v,C,1);break;case 2:case 9:if(LA(C)){Se=0,ha=null,SD(v);break}v=function(){Se!==2&&Se!==9||Me!==f||(Se=7),Dn(f)},C.then(v,v);break t;case 3:Se=7;break t;case 4:Se=5;break t;case 7:LA(C)?(Se=0,ha=null,SD(v)):(Se=0,ha=null,nu(f,v,C,7));break;case 5:var I=null;switch(re.tag){case 26:I=re.memoizedState;case 5:case 27:var B=re;if(I?iM(I):B.stateNode.complete){Se=0,ha=null;var X=B.sibling;if(X!==null)re=X;else{var J=B.return;J!==null?(re=J,Ed(J)):re=null}break e}}Se=0,ha=null,nu(f,v,C,5);break;case 6:Se=0,ha=null,nu(f,v,C,6);break;case 8:q0(),Be=6;break t;default:throw Error(a(462))}}y6();break}catch(st){pD(f,st)}while(!0);return ri=rl=null,z.H=S,z.A=T,ge=g,re!==null?0:(Me=null,ne=0,$v(),Be)}function y6(){for(;re!==null&&!Ov();)_D(re)}function _D(f){var v=UC(f.alternate,f,hi);f.memoizedProps=f.pendingProps,v===null?Ed(f):re=v}function SD(f){var v=f,g=v.alternate;switch(v.tag){case 15:case 0:v=kC(g,v,v.pendingProps,v.type,void 0,ne);break;case 11:v=kC(g,v,v.pendingProps,v.type.render,v.ref,ne);break;case 5:c0(v);default:jC(g,v),v=re=mA(v,hi),v=UC(g,v,hi)}f.memoizedProps=f.pendingProps,v===null?Ed(f):re=v}function nu(f,v,g,S){ri=rl=null,c0(v),Ws=null,$f=0;var T=v.return;try{if(i6(f,T,v,g,ne)){Be=1,md(f,Ma(g,f.current)),re=null;return}}catch(C){if(T!==null)throw re=T,C;Be=1,md(f,Ma(g,f.current)),re=null;return}v.flags&32768?(se||S===1?f=!0:tu||(ne&536870912)!==0?f=!1:(Qi=f=!0,(S===2||S===9||S===3||S===6)&&(S=fa.current,S!==null&&S.tag===13&&(S.flags|=16384))),bD(v,f)):Ed(v)}function Ed(f){var v=f;do{if((v.flags&32768)!==0){bD(v,Qi);return}f=v.return;var g=s6(v.alternate,v,hi);if(g!==null){re=g;return}if(v=v.sibling,v!==null){re=v;return}re=v=f}while(v!==null);Be===0&&(Be=5)}function bD(f,v){do{var g=u6(f.alternate,f);if(g!==null){g.flags&=32767,re=g;return}if(g=f.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!v&&(f=f.sibling,f!==null)){re=f;return}re=f=g}while(f!==null);Be=6,re=null}function xD(f,v,g,S,T,C,I,B,X){f.cancelPendingCommit=null;do Id();while(Je!==0);if((ge&6)!==0)throw Error(a(327));if(v!==null){if(v===f.current)throw Error(a(177));if(C=v.lanes|v.childLanes,C|=Bm,$V(f,g,C,I,B,X),f===Me&&(re=Me=null,ne=0),ru=v,eo=f,vi=g,X0=C,W0=T,cD=S,(v.subtreeFlags&10256)!==0||(v.flags&10256)!==0?(f.callbackNode=null,f.callbackPriority=0,b6(Nv,function(){return DD(),null})):(f.callbackNode=null,f.callbackPriority=0),S=(v.flags&13878)!==0,(v.subtreeFlags&13878)!==0||S){S=z.T,z.T=null,T=Y.p,Y.p=2,I=ge,ge|=4;try{f6(f,v,g)}finally{ge=I,Y.p=T,z.T=S}}Je=1,wD(),TD(),AD()}}function wD(){if(Je===1){Je=0;var f=eo,v=ru,g=(v.flags&13878)!==0;if((v.subtreeFlags&13878)!==0||g){g=z.T,z.T=null;var S=Y.p;Y.p=2;var T=ge;ge|=4;try{aD(v,f);var C=s1,I=uA(f.containerInfo),B=C.focusedElem,X=C.selectionRange;if(I!==B&&B&&B.ownerDocument&&sA(B.ownerDocument.documentElement,B)){if(X!==null&&Om(B)){var J=X.start,st=X.end;if(st===void 0&&(st=J),"selectionStart"in B)B.selectionStart=J,B.selectionEnd=Math.min(st,B.value.length);else{var ft=B.ownerDocument||document,et=ft&&ft.defaultView||window;if(et.getSelection){var nt=et.getSelection(),At=B.textContent.length,Vt=Math.min(X.start,At),Ce=X.end===void 0?Vt:Math.min(X.end,At);!nt.extend&&Vt>Ce&&(I=Ce,Ce=Vt,Vt=I);var K=lA(B,Vt),q=lA(B,Ce);if(K&&q&&(nt.rangeCount!==1||nt.anchorNode!==K.node||nt.anchorOffset!==K.offset||nt.focusNode!==q.node||nt.focusOffset!==q.offset)){var Q=ft.createRange();Q.setStart(K.node,K.offset),nt.removeAllRanges(),Vt>Ce?(nt.addRange(Q),nt.extend(q.node,q.offset)):(Q.setEnd(q.node,q.offset),nt.addRange(Q))}}}}for(ft=[],nt=B;nt=nt.parentNode;)nt.nodeType===1&&ft.push({element:nt,left:nt.scrollLeft,top:nt.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<ft.length;B++){var ut=ft[B];ut.element.scrollLeft=ut.left,ut.element.scrollTop=ut.top}}Yd=!!l1,s1=l1=null}finally{ge=T,Y.p=S,z.T=g}}f.current=v,Je=2}}function TD(){if(Je===2){Je=0;var f=eo,v=ru,g=(v.flags&8772)!==0;if((v.subtreeFlags&8772)!==0||g){g=z.T,z.T=null;var S=Y.p;Y.p=2;var T=ge;ge|=4;try{QC(f,v.alternate,v)}finally{ge=T,Y.p=S,z.T=g}}Je=3}}function AD(){if(Je===4||Je===3){Je=0,Ef();var f=eo,v=ru,g=vi,S=cD;(v.subtreeFlags&10256)!==0||(v.flags&10256)!==0?Je=5:(Je=0,ru=eo=null,CD(f,f.pendingLanes));var T=f.pendingLanes;if(T===0&&(to=null),dm(g),v=v.stateNode,oa&&typeof oa.onCommitFiberRoot=="function")try{oa.onCommitFiberRoot(If,v,void 0,(v.current.flags&128)===128)}catch{}if(S!==null){v=z.T,T=Y.p,Y.p=2,z.T=null;try{for(var C=f.onRecoverableError,I=0;I<S.length;I++){var B=S[I];C(B.value,{componentStack:B.stack})}}finally{z.T=v,Y.p=T}}(vi&3)!==0&&Id(),Dn(f),T=f.pendingLanes,(g&261930)!==0&&(T&42)!==0?f===Z0?vc++:(vc=0,Z0=f):vc=0,dc(0)}}function CD(f,v){(f.pooledCacheLanes&=v)===0&&(v=f.pooledCache,v!=null&&(f.pooledCache=null,Zf(v)))}function Id(){return wD(),TD(),AD(),DD()}function DD(){if(Je!==5)return!1;var f=eo,v=X0;X0=0;var g=dm(vi),S=z.T,T=Y.p;try{Y.p=32>g?32:g,z.T=null,g=W0,W0=null;var C=eo,I=vi;if(Je=0,ru=eo=null,vi=0,(ge&6)!==0)throw Error(a(331));var B=ge;if(ge|=4,sD(C.current),iD(C,C.current,I,g),ge=B,dc(0,!1),oa&&typeof oa.onPostCommitFiberRoot=="function")try{oa.onPostCommitFiberRoot(If,C)}catch{}return!0}finally{Y.p=T,z.T=S,CD(f,v)}}function MD(f,v,g){v=Ma(g,v),v=C0(f.stateNode,v,2),f=Zi(f,v,2),f!==null&&(Nf(f,2),Dn(f))}function be(f,v,g){if(f.tag===3)MD(f,f,g);else for(;v!==null;){if(v.tag===3){MD(v,f,g);break}else if(v.tag===1){var S=v.stateNode;if(typeof v.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(to===null||!to.has(S))){f=Ma(g,f),g=LC(2),S=Zi(v,g,2),S!==null&&(RC(g,S,v,f),Nf(S,2),Dn(S));break}}v=v.return}}function K0(f,v,g){var S=f.pingCache;if(S===null){S=f.pingCache=new v6;var T=new Set;S.set(v,T)}else T=S.get(v),T===void 0&&(T=new Set,S.set(v,T));T.has(g)||(U0=!0,T.add(g),f=m6.bind(null,f,v,g),v.then(f,f))}function m6(f,v,g){var S=f.pingCache;S!==null&&S.delete(v),f.pingedLanes|=f.suspendedLanes&g,f.warmLanes&=~g,Me===f&&(ne&g)===g&&(Be===4||Be===3&&(ne&62914560)===ne&&300>ia()-Cd?(ge&2)===0&&au(f,0):Y0|=g,eu===ne&&(eu=0)),Dn(f)}function LD(f,v){v===0&&(v=w2()),f=Jo(f,v),f!==null&&(Nf(f,v),Dn(f))}function _6(f){var v=f.memoizedState,g=0;v!==null&&(g=v.retryLane),LD(f,g)}function S6(f,v){var g=0;switch(f.tag){case 31:case 13:var S=f.stateNode,T=f.memoizedState;T!==null&&(g=T.retryLane);break;case 19:S=f.stateNode;break;case 22:S=f.stateNode._retryCache;break;default:throw Error(a(314))}S!==null&&S.delete(v),LD(f,g)}function b6(f,v){return rn(f,v)}var Od=null,iu=null,Q0=!1,Nd=!1,J0=!1,ao=0;function Dn(f){f!==iu&&f.next===null&&(iu===null?Od=iu=f:iu=iu.next=f),Nd=!0,Q0||(Q0=!0,w6())}function dc(f,v){if(!J0&&Nd){J0=!0;do for(var g=!1,S=Od;S!==null;){if(f!==0){var T=S.pendingLanes;if(T===0)var C=0;else{var I=S.suspendedLanes,B=S.pingedLanes;C=(1<<31-la(42|f)+1)-1,C&=T&~(I&~B),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(g=!0,OD(S,C))}else C=ne,C=Bv(S,S===Me?C:0,S.cancelPendingCommit!==null||S.timeoutHandle!==-1),(C&3)===0||Of(S,C)||(g=!0,OD(S,C));S=S.next}while(g);J0=!1}}function x6(){RD()}function RD(){Nd=Q0=!1;var f=0;ao!==0&&O6()&&(f=ao);for(var v=ia(),g=null,S=Od;S!==null;){var T=S.next,C=ED(S,v);C===0?(S.next=null,g===null?Od=T:g.next=T,T===null&&(iu=g)):(g=S,(f!==0||(C&3)!==0)&&(Nd=!0)),S=T}Je!==0&&Je!==5||dc(f),ao!==0&&(ao=0)}function ED(f,v){for(var g=f.suspendedLanes,S=f.pingedLanes,T=f.expirationTimes,C=f.pendingLanes&-62914561;0<C;){var I=31-la(C),B=1<<I,X=T[I];X===-1?((B&g)===0||(B&S)!==0)&&(T[I]=qV(B,v)):X<=v&&(f.expiredLanes|=B),C&=~B}if(v=Me,g=ne,g=Bv(f,f===v?g:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),S=f.callbackNode,g===0||f===v&&(Se===2||Se===9)||f.cancelPendingCommit!==null)return S!==null&&S!==null&&Ta(S),f.callbackNode=null,f.callbackPriority=0;if((g&3)===0||Of(f,g)){if(v=g&-g,v===f.callbackPriority)return v;switch(S!==null&&Ta(S),dm(g)){case 2:case 8:g=b2;break;case 32:g=Nv;break;case 268435456:g=x2;break;default:g=Nv}return S=ID.bind(null,f),g=rn(g,S),f.callbackPriority=v,f.callbackNode=g,v}return S!==null&&S!==null&&Ta(S),f.callbackPriority=2,f.callbackNode=null,2}function ID(f,v){if(Je!==0&&Je!==5)return f.callbackNode=null,f.callbackPriority=0,null;var g=f.callbackNode;if(Id()&&f.callbackNode!==g)return null;var S=ne;return S=Bv(f,f===Me?S:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),S===0?null:(vD(f,S,v),ED(f,ia()),f.callbackNode!=null&&f.callbackNode===g?ID.bind(null,f):null)}function OD(f,v){if(Id())return null;vD(f,v,!0)}function w6(){P6(function(){(ge&6)!==0?rn(S2,x6):RD()})}function t1(){if(ao===0){var f=Ys;f===0&&(f=Pv,Pv<<=1,(Pv&261888)===0&&(Pv=256)),ao=f}return ao}function ND(f){return f==null||typeof f=="symbol"||typeof f=="boolean"?null:typeof f=="function"?f:Fv(""+f)}function PD(f,v){var g=v.ownerDocument.createElement("input");return g.name=v.name,g.value=v.value,f.id&&g.setAttribute("form",f.id),v.parentNode.insertBefore(g,v),f=new FormData(f),g.parentNode.removeChild(g),f}function T6(f,v,g,S,T){if(v==="submit"&&g&&g.stateNode===T){var C=ND((T[Xr]||null).action),I=S.submitter;I&&(v=(v=I[Xr]||null)?ND(v.formAction):I.getAttribute("formAction"),v!==null&&(C=v,I=null));var B=new Xv("action","action",null,S,T);f.push({event:B,listeners:[{instance:null,listener:function(){if(S.defaultPrevented){if(ao!==0){var X=I?PD(T,I):new FormData(T);S0(g,{pending:!0,data:X,method:T.method,action:C},null,X)}}else typeof C=="function"&&(B.preventDefault(),X=I?PD(T,I):new FormData(T),S0(g,{pending:!0,data:X,method:T.method,action:C},C,X))},currentTarget:T}]})}}for(var e1=0;e1<km.length;e1++){var r1=km[e1],A6=r1.toLowerCase(),C6=r1[0].toUpperCase()+r1.slice(1);an(A6,"on"+C6)}an(hA,"onAnimationEnd"),an(vA,"onAnimationIteration"),an(dA,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(FG,"onTransitionRun"),an(UG,"onTransitionStart"),an(YG,"onTransitionCancel"),an(pA,"onTransitionEnd"),Rs("onMouseEnter",["mouseout","mouseover"]),Rs("onMouseLeave",["mouseout","mouseover"]),Rs("onPointerEnter",["pointerout","pointerover"]),Rs("onPointerLeave",["pointerout","pointerover"]),qo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qo("onBeforeInput",["compositionend","keypress","textInput","paste"]),qo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),D6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pc));function zD(f,v){v=(v&4)!==0;for(var g=0;g<f.length;g++){var S=f[g],T=S.event;S=S.listeners;t:{var C=void 0;if(v)for(var I=S.length-1;0<=I;I--){var B=S[I],X=B.instance,J=B.currentTarget;if(B=B.listener,X!==C&&T.isPropagationStopped())break t;C=B,T.currentTarget=J;try{C(T)}catch(st){qv(st)}T.currentTarget=null,C=X}else for(I=0;I<S.length;I++){if(B=S[I],X=B.instance,J=B.currentTarget,B=B.listener,X!==C&&T.isPropagationStopped())break t;C=B,T.currentTarget=J;try{C(T)}catch(st){qv(st)}T.currentTarget=null,C=X}}}}function ae(f,v){var g=v[pm];g===void 0&&(g=v[pm]=new Set);var S=f+"__bubble";g.has(S)||(kD(v,f,2,!1),g.add(S))}function a1(f,v,g){var S=0;v&&(S|=4),kD(g,f,S,v)}var Pd="_reactListening"+Math.random().toString(36).slice(2);function n1(f){if(!f[Pd]){f[Pd]=!0,R2.forEach(function(g){g!=="selectionchange"&&(D6.has(g)||a1(g,!1,f),a1(g,!0,f))});var v=f.nodeType===9?f:f.ownerDocument;v===null||v[Pd]||(v[Pd]=!0,a1("selectionchange",!1,v))}}function kD(f,v,g,S){switch(hM(v)){case 2:var T=e8;break;case 8:T=r8;break;default:T=_1}g=T.bind(null,v,g,f),T=void 0,!Tm||v!=="touchstart"&&v!=="touchmove"&&v!=="wheel"||(T=!0),S?T!==void 0?f.addEventListener(v,g,{capture:!0,passive:T}):f.addEventListener(v,g,!0):T!==void 0?f.addEventListener(v,g,{passive:T}):f.addEventListener(v,g,!1)}function i1(f,v,g,S,T){var C=S;if((v&1)===0&&(v&2)===0&&S!==null)t:for(;;){if(S===null)return;var I=S.tag;if(I===3||I===4){var B=S.stateNode.containerInfo;if(B===T)break;if(I===4)for(I=S.return;I!==null;){var X=I.tag;if((X===3||X===4)&&I.stateNode.containerInfo===T)return;I=I.return}for(;B!==null;){if(I=Ds(B),I===null)return;if(X=I.tag,X===5||X===6||X===26||X===27){S=C=I;continue t}B=B.parentNode}}S=S.return}F2(function(){var J=C,st=xm(g),ft=[];t:{var et=gA.get(f);if(et!==void 0){var nt=Xv,At=f;switch(f){case"keypress":if(Yv(g)===0)break t;case"keydown":case"keyup":nt=SG;break;case"focusin":At="focus",nt=Mm;break;case"focusout":At="blur",nt=Mm;break;case"beforeblur":case"afterblur":nt=Mm;break;case"click":if(g.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":nt=j2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":nt=sG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":nt=wG;break;case hA:case vA:case dA:nt=cG;break;case pA:nt=AG;break;case"scroll":case"scrollend":nt=oG;break;case"wheel":nt=DG;break;case"copy":case"cut":case"paste":nt=vG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":nt=W2;break;case"toggle":case"beforetoggle":nt=LG}var Vt=(v&4)!==0,Ce=!Vt&&(f==="scroll"||f==="scrollend"),K=Vt?et!==null?et+"Capture":null:et;Vt=[];for(var q=J,Q;q!==null;){var ut=q;if(Q=ut.stateNode,ut=ut.tag,ut!==5&&ut!==26&&ut!==27||Q===null||K===null||(ut=kf(q,K),ut!=null&&Vt.push(gc(q,ut,Q))),Ce)break;q=q.return}0<Vt.length&&(et=new nt(et,At,null,g,st),ft.push({event:et,listeners:Vt}))}}if((v&7)===0){t:{if(et=f==="mouseover"||f==="pointerover",nt=f==="mouseout"||f==="pointerout",et&&g!==bm&&(At=g.relatedTarget||g.fromElement)&&(Ds(At)||At[Cs]))break t;if((nt||et)&&(et=st.window===st?st:(et=st.ownerDocument)?et.defaultView||et.parentWindow:window,nt?(At=g.relatedTarget||g.toElement,nt=J,At=At?Ds(At):null,At!==null&&(Ce=i(At),Vt=At.tag,At!==Ce||Vt!==5&&Vt!==27&&Vt!==6)&&(At=null)):(nt=null,At=J),nt!==At)){if(Vt=j2,ut="onMouseLeave",K="onMouseEnter",q="mouse",(f==="pointerout"||f==="pointerover")&&(Vt=W2,ut="onPointerLeave",K="onPointerEnter",q="pointer"),Ce=nt==null?et:zf(nt),Q=At==null?et:zf(At),et=new Vt(ut,q+"leave",nt,g,st),et.target=Ce,et.relatedTarget=Q,ut=null,Ds(st)===J&&(Vt=new Vt(K,q+"enter",At,g,st),Vt.target=Q,Vt.relatedTarget=Ce,ut=Vt),Ce=ut,nt&&At)e:{for(Vt=M6,K=nt,q=At,Q=0,ut=K;ut;ut=Vt(ut))Q++;ut=0;for(var Nt=q;Nt;Nt=Vt(Nt))ut++;for(;0<Q-ut;)K=Vt(K),Q--;for(;0<ut-Q;)q=Vt(q),ut--;for(;Q--;){if(K===q||q!==null&&K===q.alternate){Vt=K;break e}K=Vt(K),q=Vt(q)}Vt=null}else Vt=null;nt!==null&&BD(ft,et,nt,Vt,!1),At!==null&&Ce!==null&&BD(ft,Ce,At,Vt,!0)}}t:{if(et=J?zf(J):window,nt=et.nodeName&&et.nodeName.toLowerCase(),nt==="select"||nt==="input"&&et.type==="file")var he=eA;else if(J2(et))if(rA)he=VG;else{he=kG;var Lt=zG}else nt=et.nodeName,!nt||nt.toLowerCase()!=="input"||et.type!=="checkbox"&&et.type!=="radio"?J&&Sm(J.elementType)&&(he=eA):he=BG;if(he&&(he=he(f,J))){tA(ft,he,g,st);break t}Lt&&Lt(f,et,J),f==="focusout"&&J&&et.type==="number"&&J.memoizedProps.value!=null&&_m(et,"number",et.value)}switch(Lt=J?zf(J):window,f){case"focusin":(J2(Lt)||Lt.contentEditable==="true")&&(zs=Lt,Nm=J,jf=null);break;case"focusout":jf=Nm=zs=null;break;case"mousedown":Pm=!0;break;case"contextmenu":case"mouseup":case"dragend":Pm=!1,fA(ft,g,st);break;case"selectionchange":if(HG)break;case"keydown":case"keyup":fA(ft,g,st)}var Kt;if(Rm)t:{switch(f){case"compositionstart":var ie="onCompositionStart";break t;case"compositionend":ie="onCompositionEnd";break t;case"compositionupdate":ie="onCompositionUpdate";break t}ie=void 0}else Ps?K2(f,g)&&(ie="onCompositionEnd"):f==="keydown"&&g.keyCode===229&&(ie="onCompositionStart");ie&&(Z2&&g.locale!=="ko"&&(Ps||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&Ps&&(Kt=U2()):(Hi=st,Am="value"in Hi?Hi.value:Hi.textContent,Ps=!0)),Lt=zd(J,ie),0<Lt.length&&(ie=new X2(ie,f,null,g,st),ft.push({event:ie,listeners:Lt}),Kt?ie.data=Kt:(Kt=Q2(g),Kt!==null&&(ie.data=Kt)))),(Kt=EG?IG(f,g):OG(f,g))&&(ie=zd(J,"onBeforeInput"),0<ie.length&&(Lt=new X2("onBeforeInput","beforeinput",null,g,st),ft.push({event:Lt,listeners:ie}),Lt.data=Kt)),T6(ft,f,J,g,st)}zD(ft,v)})}function gc(f,v,g){return{instance:f,listener:v,currentTarget:g}}function zd(f,v){for(var g=v+"Capture",S=[];f!==null;){var T=f,C=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||C===null||(T=kf(f,g),T!=null&&S.unshift(gc(f,T,C)),T=kf(f,v),T!=null&&S.push(gc(f,T,C))),f.tag===3)return S;f=f.return}return[]}function M6(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5&&f.tag!==27);return f||null}function BD(f,v,g,S,T){for(var C=v._reactName,I=[];g!==null&&g!==S;){var B=g,X=B.alternate,J=B.stateNode;if(B=B.tag,X!==null&&X===S)break;B!==5&&B!==26&&B!==27||J===null||(X=J,T?(J=kf(g,C),J!=null&&I.unshift(gc(g,J,X))):T||(J=kf(g,C),J!=null&&I.push(gc(g,J,X)))),g=g.return}I.length!==0&&f.push({event:v,listeners:I})}var L6=/\r\n?/g,R6=/\u0000|\uFFFD/g;function VD(f){return(typeof f=="string"?f:""+f).replace(L6,`
49
- `).replace(R6,"")}function GD(f,v){return v=VD(v),VD(f)===v}function Ae(f,v,g,S,T,C){switch(g){case"children":typeof S=="string"?v==="body"||v==="textarea"&&S===""||Is(f,S):(typeof S=="number"||typeof S=="bigint")&&v!=="body"&&Is(f,""+S);break;case"className":Gv(f,"class",S);break;case"tabIndex":Gv(f,"tabindex",S);break;case"dir":case"role":case"viewBox":case"width":case"height":Gv(f,g,S);break;case"style":G2(f,S,C);break;case"data":if(v!=="object"){Gv(f,"data",S);break}case"src":case"href":if(S===""&&(v!=="a"||g!=="href")){f.removeAttribute(g);break}if(S==null||typeof S=="function"||typeof S=="symbol"||typeof S=="boolean"){f.removeAttribute(g);break}S=Fv(""+S),f.setAttribute(g,S);break;case"action":case"formAction":if(typeof S=="function"){f.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(g==="formAction"?(v!=="input"&&Ae(f,v,"name",T.name,T,null),Ae(f,v,"formEncType",T.formEncType,T,null),Ae(f,v,"formMethod",T.formMethod,T,null),Ae(f,v,"formTarget",T.formTarget,T,null)):(Ae(f,v,"encType",T.encType,T,null),Ae(f,v,"method",T.method,T,null),Ae(f,v,"target",T.target,T,null)));if(S==null||typeof S=="symbol"||typeof S=="boolean"){f.removeAttribute(g);break}S=Fv(""+S),f.setAttribute(g,S);break;case"onClick":S!=null&&(f.onclick=Qn);break;case"onScroll":S!=null&&ae("scroll",f);break;case"onScrollEnd":S!=null&&ae("scrollend",f);break;case"dangerouslySetInnerHTML":if(S!=null){if(typeof S!="object"||!("__html"in S))throw Error(a(61));if(g=S.__html,g!=null){if(T.children!=null)throw Error(a(60));f.innerHTML=g}}break;case"multiple":f.multiple=S&&typeof S!="function"&&typeof S!="symbol";break;case"muted":f.muted=S&&typeof S!="function"&&typeof S!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(S==null||typeof S=="function"||typeof S=="boolean"||typeof S=="symbol"){f.removeAttribute("xlink:href");break}g=Fv(""+S),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":S!=null&&typeof S!="function"&&typeof S!="symbol"?f.setAttribute(g,""+S):f.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":S&&typeof S!="function"&&typeof S!="symbol"?f.setAttribute(g,""):f.removeAttribute(g);break;case"capture":case"download":S===!0?f.setAttribute(g,""):S!==!1&&S!=null&&typeof S!="function"&&typeof S!="symbol"?f.setAttribute(g,S):f.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":S!=null&&typeof S!="function"&&typeof S!="symbol"&&!isNaN(S)&&1<=S?f.setAttribute(g,S):f.removeAttribute(g);break;case"rowSpan":case"start":S==null||typeof S=="function"||typeof S=="symbol"||isNaN(S)?f.removeAttribute(g):f.setAttribute(g,S);break;case"popover":ae("beforetoggle",f),ae("toggle",f),Vv(f,"popover",S);break;case"xlinkActuate":Kn(f,"http://www.w3.org/1999/xlink","xlink:actuate",S);break;case"xlinkArcrole":Kn(f,"http://www.w3.org/1999/xlink","xlink:arcrole",S);break;case"xlinkRole":Kn(f,"http://www.w3.org/1999/xlink","xlink:role",S);break;case"xlinkShow":Kn(f,"http://www.w3.org/1999/xlink","xlink:show",S);break;case"xlinkTitle":Kn(f,"http://www.w3.org/1999/xlink","xlink:title",S);break;case"xlinkType":Kn(f,"http://www.w3.org/1999/xlink","xlink:type",S);break;case"xmlBase":Kn(f,"http://www.w3.org/XML/1998/namespace","xml:base",S);break;case"xmlLang":Kn(f,"http://www.w3.org/XML/1998/namespace","xml:lang",S);break;case"xmlSpace":Kn(f,"http://www.w3.org/XML/1998/namespace","xml:space",S);break;case"is":Vv(f,"is",S);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=nG.get(g)||g,Vv(f,g,S))}}function o1(f,v,g,S,T,C){switch(g){case"style":G2(f,S,C);break;case"dangerouslySetInnerHTML":if(S!=null){if(typeof S!="object"||!("__html"in S))throw Error(a(61));if(g=S.__html,g!=null){if(T.children!=null)throw Error(a(60));f.innerHTML=g}}break;case"children":typeof S=="string"?Is(f,S):(typeof S=="number"||typeof S=="bigint")&&Is(f,""+S);break;case"onScroll":S!=null&&ae("scroll",f);break;case"onScrollEnd":S!=null&&ae("scrollend",f);break;case"onClick":S!=null&&(f.onclick=Qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!E2.hasOwnProperty(g))t:{if(g[0]==="o"&&g[1]==="n"&&(T=g.endsWith("Capture"),v=g.slice(2,T?g.length-7:void 0),C=f[Xr]||null,C=C!=null?C[g]:null,typeof C=="function"&&f.removeEventListener(v,C,T),typeof S=="function")){typeof C!="function"&&C!==null&&(g in f?f[g]=null:f.hasAttribute(g)&&f.removeAttribute(g)),f.addEventListener(v,S,T);break t}g in f?f[g]=S:S===!0?f.setAttribute(g,""):Vv(f,g,S)}}}function mr(f,v,g){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ae("error",f),ae("load",f);var S=!1,T=!1,C;for(C in g)if(g.hasOwnProperty(C)){var I=g[C];if(I!=null)switch(C){case"src":S=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,v));default:Ae(f,v,C,I,g,null)}}T&&Ae(f,v,"srcSet",g.srcSet,g,null),S&&Ae(f,v,"src",g.src,g,null);return;case"input":ae("invalid",f);var B=C=I=T=null,X=null,J=null;for(S in g)if(g.hasOwnProperty(S)){var st=g[S];if(st!=null)switch(S){case"name":T=st;break;case"type":I=st;break;case"checked":X=st;break;case"defaultChecked":J=st;break;case"value":C=st;break;case"defaultValue":B=st;break;case"children":case"dangerouslySetInnerHTML":if(st!=null)throw Error(a(137,v));break;default:Ae(f,v,S,st,g,null)}}z2(f,C,B,X,J,I,T,!1);return;case"select":ae("invalid",f),S=I=C=null;for(T in g)if(g.hasOwnProperty(T)&&(B=g[T],B!=null))switch(T){case"value":C=B;break;case"defaultValue":I=B;break;case"multiple":S=B;default:Ae(f,v,T,B,g,null)}v=C,g=I,f.multiple=!!S,v!=null?Es(f,!!S,v,!1):g!=null&&Es(f,!!S,g,!0);return;case"textarea":ae("invalid",f),C=T=S=null;for(I in g)if(g.hasOwnProperty(I)&&(B=g[I],B!=null))switch(I){case"value":S=B;break;case"defaultValue":T=B;break;case"children":C=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(a(91));break;default:Ae(f,v,I,B,g,null)}B2(f,S,T,C);return;case"option":for(X in g)if(g.hasOwnProperty(X)&&(S=g[X],S!=null))switch(X){case"selected":f.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:Ae(f,v,X,S,g,null)}return;case"dialog":ae("beforetoggle",f),ae("toggle",f),ae("cancel",f),ae("close",f);break;case"iframe":case"object":ae("load",f);break;case"video":case"audio":for(S=0;S<pc.length;S++)ae(pc[S],f);break;case"image":ae("error",f),ae("load",f);break;case"details":ae("toggle",f);break;case"embed":case"source":case"link":ae("error",f),ae("load",f);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in g)if(g.hasOwnProperty(J)&&(S=g[J],S!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,v));default:Ae(f,v,J,S,g,null)}return;default:if(Sm(v)){for(st in g)g.hasOwnProperty(st)&&(S=g[st],S!==void 0&&o1(f,v,st,S,g,void 0));return}}for(B in g)g.hasOwnProperty(B)&&(S=g[B],S!=null&&Ae(f,v,B,S,g,null))}function E6(f,v,g,S){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var T=null,C=null,I=null,B=null,X=null,J=null,st=null;for(nt in g){var ft=g[nt];if(g.hasOwnProperty(nt)&&ft!=null)switch(nt){case"checked":break;case"value":break;case"defaultValue":X=ft;default:S.hasOwnProperty(nt)||Ae(f,v,nt,null,S,ft)}}for(var et in S){var nt=S[et];if(ft=g[et],S.hasOwnProperty(et)&&(nt!=null||ft!=null))switch(et){case"type":C=nt;break;case"name":T=nt;break;case"checked":J=nt;break;case"defaultChecked":st=nt;break;case"value":I=nt;break;case"defaultValue":B=nt;break;case"children":case"dangerouslySetInnerHTML":if(nt!=null)throw Error(a(137,v));break;default:nt!==ft&&Ae(f,v,et,nt,S,ft)}}mm(f,I,B,X,J,st,C,T);return;case"select":nt=I=B=et=null;for(C in g)if(X=g[C],g.hasOwnProperty(C)&&X!=null)switch(C){case"value":break;case"multiple":nt=X;default:S.hasOwnProperty(C)||Ae(f,v,C,null,S,X)}for(T in S)if(C=S[T],X=g[T],S.hasOwnProperty(T)&&(C!=null||X!=null))switch(T){case"value":et=C;break;case"defaultValue":B=C;break;case"multiple":I=C;default:C!==X&&Ae(f,v,T,C,S,X)}v=B,g=I,S=nt,et!=null?Es(f,!!g,et,!1):!!S!=!!g&&(v!=null?Es(f,!!g,v,!0):Es(f,!!g,g?[]:"",!1));return;case"textarea":nt=et=null;for(B in g)if(T=g[B],g.hasOwnProperty(B)&&T!=null&&!S.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:Ae(f,v,B,null,S,T)}for(I in S)if(T=S[I],C=g[I],S.hasOwnProperty(I)&&(T!=null||C!=null))switch(I){case"value":et=T;break;case"defaultValue":nt=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(a(91));break;default:T!==C&&Ae(f,v,I,T,S,C)}k2(f,et,nt);return;case"option":for(var At in g)if(et=g[At],g.hasOwnProperty(At)&&et!=null&&!S.hasOwnProperty(At))switch(At){case"selected":f.selected=!1;break;default:Ae(f,v,At,null,S,et)}for(X in S)if(et=S[X],nt=g[X],S.hasOwnProperty(X)&&et!==nt&&(et!=null||nt!=null))switch(X){case"selected":f.selected=et&&typeof et!="function"&&typeof et!="symbol";break;default:Ae(f,v,X,et,S,nt)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Vt in g)et=g[Vt],g.hasOwnProperty(Vt)&&et!=null&&!S.hasOwnProperty(Vt)&&Ae(f,v,Vt,null,S,et);for(J in S)if(et=S[J],nt=g[J],S.hasOwnProperty(J)&&et!==nt&&(et!=null||nt!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(et!=null)throw Error(a(137,v));break;default:Ae(f,v,J,et,S,nt)}return;default:if(Sm(v)){for(var Ce in g)et=g[Ce],g.hasOwnProperty(Ce)&&et!==void 0&&!S.hasOwnProperty(Ce)&&o1(f,v,Ce,void 0,S,et);for(st in S)et=S[st],nt=g[st],!S.hasOwnProperty(st)||et===nt||et===void 0&&nt===void 0||o1(f,v,st,et,S,nt);return}}for(var K in g)et=g[K],g.hasOwnProperty(K)&&et!=null&&!S.hasOwnProperty(K)&&Ae(f,v,K,null,S,et);for(ft in S)et=S[ft],nt=g[ft],!S.hasOwnProperty(ft)||et===nt||et==null&&nt==null||Ae(f,v,ft,et,S,nt)}function HD(f){switch(f){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function I6(){if(typeof performance.getEntriesByType=="function"){for(var f=0,v=0,g=performance.getEntriesByType("resource"),S=0;S<g.length;S++){var T=g[S],C=T.transferSize,I=T.initiatorType,B=T.duration;if(C&&B&&HD(I)){for(I=0,B=T.responseEnd,S+=1;S<g.length;S++){var X=g[S],J=X.startTime;if(J>B)break;var st=X.transferSize,ft=X.initiatorType;st&&HD(ft)&&(X=X.responseEnd,I+=st*(X<B?1:(B-J)/(X-J)))}if(--S,v+=8*(C+I)/(T.duration/1e3),f++,10<f)break}}if(0<f)return v/f/1e6}return navigator.connection&&(f=navigator.connection.downlink,typeof f=="number")?f:5}var l1=null,s1=null;function kd(f){return f.nodeType===9?f:f.ownerDocument}function FD(f){switch(f){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function UD(f,v){if(f===0)switch(v){case"svg":return 1;case"math":return 2;default:return 0}return f===1&&v==="foreignObject"?0:f}function u1(f,v){return f==="textarea"||f==="noscript"||typeof v.children=="string"||typeof v.children=="number"||typeof v.children=="bigint"||typeof v.dangerouslySetInnerHTML=="object"&&v.dangerouslySetInnerHTML!==null&&v.dangerouslySetInnerHTML.__html!=null}var f1=null;function O6(){var f=window.event;return f&&f.type==="popstate"?f===f1?!1:(f1=f,!0):(f1=null,!1)}var YD=typeof setTimeout=="function"?setTimeout:void 0,N6=typeof clearTimeout=="function"?clearTimeout:void 0,jD=typeof Promise=="function"?Promise:void 0,P6=typeof queueMicrotask=="function"?queueMicrotask:typeof jD<"u"?function(f){return jD.resolve(null).then(f).catch(z6)}:YD;function z6(f){setTimeout(function(){throw f})}function no(f){return f==="head"}function XD(f,v){var g=v,S=0;do{var T=g.nextSibling;if(f.removeChild(g),T&&T.nodeType===8)if(g=T.data,g==="/$"||g==="/&"){if(S===0){f.removeChild(T),uu(v);return}S--}else if(g==="$"||g==="$?"||g==="$~"||g==="$!"||g==="&")S++;else if(g==="html")yc(f.ownerDocument.documentElement);else if(g==="head"){g=f.ownerDocument.head,yc(g);for(var C=g.firstChild;C;){var I=C.nextSibling,B=C.nodeName;C[Pf]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&C.rel.toLowerCase()==="stylesheet"||g.removeChild(C),C=I}}else g==="body"&&yc(f.ownerDocument.body);g=T}while(g);uu(v)}function WD(f,v){var g=f;f=0;do{var S=g.nextSibling;if(g.nodeType===1?v?(g._stashedDisplay=g.style.display,g.style.display="none"):(g.style.display=g._stashedDisplay||"",g.getAttribute("style")===""&&g.removeAttribute("style")):g.nodeType===3&&(v?(g._stashedText=g.nodeValue,g.nodeValue=""):g.nodeValue=g._stashedText||""),S&&S.nodeType===8)if(g=S.data,g==="/$"){if(f===0)break;f--}else g!=="$"&&g!=="$?"&&g!=="$~"&&g!=="$!"||f++;g=S}while(g)}function c1(f){var v=f.firstChild;for(v&&v.nodeType===10&&(v=v.nextSibling);v;){var g=v;switch(v=v.nextSibling,g.nodeName){case"HTML":case"HEAD":case"BODY":c1(g),gm(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}f.removeChild(g)}}function k6(f,v,g,S){for(;f.nodeType===1;){var T=g;if(f.nodeName.toLowerCase()!==v.toLowerCase()){if(!S&&(f.nodeName!=="INPUT"||f.type!=="hidden"))break}else if(S){if(!f[Pf])switch(v){case"meta":if(!f.hasAttribute("itemprop"))break;return f;case"link":if(C=f.getAttribute("rel"),C==="stylesheet"&&f.hasAttribute("data-precedence"))break;if(C!==T.rel||f.getAttribute("href")!==(T.href==null||T.href===""?null:T.href)||f.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin)||f.getAttribute("title")!==(T.title==null?null:T.title))break;return f;case"style":if(f.hasAttribute("data-precedence"))break;return f;case"script":if(C=f.getAttribute("src"),(C!==(T.src==null?null:T.src)||f.getAttribute("type")!==(T.type==null?null:T.type)||f.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin))&&C&&f.hasAttribute("async")&&!f.hasAttribute("itemprop"))break;return f;default:return f}}else if(v==="input"&&f.type==="hidden"){var C=T.name==null?null:""+T.name;if(T.type==="hidden"&&f.getAttribute("name")===C)return f}else return f;if(f=Oa(f.nextSibling),f===null)break}return null}function B6(f,v,g){if(v==="")return null;for(;f.nodeType!==3;)if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!g||(f=Oa(f.nextSibling),f===null))return null;return f}function ZD(f,v){for(;f.nodeType!==8;)if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!v||(f=Oa(f.nextSibling),f===null))return null;return f}function h1(f){return f.data==="$?"||f.data==="$~"}function v1(f){return f.data==="$!"||f.data==="$?"&&f.ownerDocument.readyState!=="loading"}function V6(f,v){var g=f.ownerDocument;if(f.data==="$~")f._reactRetry=v;else if(f.data!=="$?"||g.readyState!=="loading")v();else{var S=function(){v(),g.removeEventListener("DOMContentLoaded",S)};g.addEventListener("DOMContentLoaded",S),f._reactRetry=S}}function Oa(f){for(;f!=null;f=f.nextSibling){var v=f.nodeType;if(v===1||v===3)break;if(v===8){if(v=f.data,v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"||v==="F!"||v==="F")break;if(v==="/$"||v==="/&")return null}}return f}var d1=null;function qD(f){f=f.nextSibling;for(var v=0;f;){if(f.nodeType===8){var g=f.data;if(g==="/$"||g==="/&"){if(v===0)return Oa(f.nextSibling);v--}else g!=="$"&&g!=="$!"&&g!=="$?"&&g!=="$~"&&g!=="&"||v++}f=f.nextSibling}return null}function $D(f){f=f.previousSibling;for(var v=0;f;){if(f.nodeType===8){var g=f.data;if(g==="$"||g==="$!"||g==="$?"||g==="$~"||g==="&"){if(v===0)return f;v--}else g!=="/$"&&g!=="/&"||v++}f=f.previousSibling}return null}function KD(f,v,g){switch(v=kd(g),f){case"html":if(f=v.documentElement,!f)throw Error(a(452));return f;case"head":if(f=v.head,!f)throw Error(a(453));return f;case"body":if(f=v.body,!f)throw Error(a(454));return f;default:throw Error(a(451))}}function yc(f){for(var v=f.attributes;v.length;)f.removeAttributeNode(v[0]);gm(f)}var Na=new Map,QD=new Set;function Bd(f){return typeof f.getRootNode=="function"?f.getRootNode():f.nodeType===9?f:f.ownerDocument}var di=Y.d;Y.d={f:G6,r:H6,D:F6,C:U6,L:Y6,m:j6,X:W6,S:X6,M:Z6};function G6(){var f=di.f(),v=Ld();return f||v}function H6(f){var v=Ms(f);v!==null&&v.tag===5&&v.type==="form"?pC(v):di.r(f)}var ou=typeof document>"u"?null:document;function JD(f,v,g){var S=ou;if(S&&typeof v=="string"&&v){var T=Ca(v);T='link[rel="'+f+'"][href="'+T+'"]',typeof g=="string"&&(T+='[crossorigin="'+g+'"]'),QD.has(T)||(QD.add(T),f={rel:f,crossOrigin:g,href:v},S.querySelector(T)===null&&(v=S.createElement("link"),mr(v,"link",f),sr(v),S.head.appendChild(v)))}}function F6(f){di.D(f),JD("dns-prefetch",f,null)}function U6(f,v){di.C(f,v),JD("preconnect",f,v)}function Y6(f,v,g){di.L(f,v,g);var S=ou;if(S&&f&&v){var T='link[rel="preload"][as="'+Ca(v)+'"]';v==="image"&&g&&g.imageSrcSet?(T+='[imagesrcset="'+Ca(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(T+='[imagesizes="'+Ca(g.imageSizes)+'"]')):T+='[href="'+Ca(f)+'"]';var C=T;switch(v){case"style":C=lu(f);break;case"script":C=su(f)}Na.has(C)||(f=h({rel:"preload",href:v==="image"&&g&&g.imageSrcSet?void 0:f,as:v},g),Na.set(C,f),S.querySelector(T)!==null||v==="style"&&S.querySelector(mc(C))||v==="script"&&S.querySelector(_c(C))||(v=S.createElement("link"),mr(v,"link",f),sr(v),S.head.appendChild(v)))}}function j6(f,v){di.m(f,v);var g=ou;if(g&&f){var S=v&&typeof v.as=="string"?v.as:"script",T='link[rel="modulepreload"][as="'+Ca(S)+'"][href="'+Ca(f)+'"]',C=T;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=su(f)}if(!Na.has(C)&&(f=h({rel:"modulepreload",href:f},v),Na.set(C,f),g.querySelector(T)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(_c(C)))return}S=g.createElement("link"),mr(S,"link",f),sr(S),g.head.appendChild(S)}}}function X6(f,v,g){di.S(f,v,g);var S=ou;if(S&&f){var T=Ls(S).hoistableStyles,C=lu(f);v=v||"default";var I=T.get(C);if(!I){var B={loading:0,preload:null};if(I=S.querySelector(mc(C)))B.loading=5;else{f=h({rel:"stylesheet",href:f,"data-precedence":v},g),(g=Na.get(C))&&p1(f,g);var X=I=S.createElement("link");sr(X),mr(X,"link",f),X._p=new Promise(function(J,st){X.onload=J,X.onerror=st}),X.addEventListener("load",function(){B.loading|=1}),X.addEventListener("error",function(){B.loading|=2}),B.loading|=4,Vd(I,v,S)}I={type:"stylesheet",instance:I,count:1,state:B},T.set(C,I)}}}function W6(f,v){di.X(f,v);var g=ou;if(g&&f){var S=Ls(g).hoistableScripts,T=su(f),C=S.get(T);C||(C=g.querySelector(_c(T)),C||(f=h({src:f,async:!0},v),(v=Na.get(T))&&g1(f,v),C=g.createElement("script"),sr(C),mr(C,"link",f),g.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},S.set(T,C))}}function Z6(f,v){di.M(f,v);var g=ou;if(g&&f){var S=Ls(g).hoistableScripts,T=su(f),C=S.get(T);C||(C=g.querySelector(_c(T)),C||(f=h({src:f,async:!0,type:"module"},v),(v=Na.get(T))&&g1(f,v),C=g.createElement("script"),sr(C),mr(C,"link",f),g.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},S.set(T,C))}}function tM(f,v,g,S){var T=(T=bt.current)?Bd(T):null;if(!T)throw Error(a(446));switch(f){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(v=lu(g.href),g=Ls(T).hoistableStyles,S=g.get(v),S||(S={type:"style",instance:null,count:0,state:null},g.set(v,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){f=lu(g.href);var C=Ls(T).hoistableStyles,I=C.get(f);if(I||(T=T.ownerDocument||T,I={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(f,I),(C=T.querySelector(mc(f)))&&!C._p&&(I.instance=C,I.state.loading=5),Na.has(f)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},Na.set(f,g),C||q6(T,f,g,I.state))),v&&S===null)throw Error(a(528,""));return I}if(v&&S!==null)throw Error(a(529,""));return null;case"script":return v=g.async,g=g.src,typeof g=="string"&&v&&typeof v!="function"&&typeof v!="symbol"?(v=su(g),g=Ls(T).hoistableScripts,S=g.get(v),S||(S={type:"script",instance:null,count:0,state:null},g.set(v,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,f))}}function lu(f){return'href="'+Ca(f)+'"'}function mc(f){return'link[rel="stylesheet"]['+f+"]"}function eM(f){return h({},f,{"data-precedence":f.precedence,precedence:null})}function q6(f,v,g,S){f.querySelector('link[rel="preload"][as="style"]['+v+"]")?S.loading=1:(v=f.createElement("link"),S.preload=v,v.addEventListener("load",function(){return S.loading|=1}),v.addEventListener("error",function(){return S.loading|=2}),mr(v,"link",g),sr(v),f.head.appendChild(v))}function su(f){return'[src="'+Ca(f)+'"]'}function _c(f){return"script[async]"+f}function rM(f,v,g){if(v.count++,v.instance===null)switch(v.type){case"style":var S=f.querySelector('style[data-href~="'+Ca(g.href)+'"]');if(S)return v.instance=S,sr(S),S;var T=h({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return S=(f.ownerDocument||f).createElement("style"),sr(S),mr(S,"style",T),Vd(S,g.precedence,f),v.instance=S;case"stylesheet":T=lu(g.href);var C=f.querySelector(mc(T));if(C)return v.state.loading|=4,v.instance=C,sr(C),C;S=eM(g),(T=Na.get(T))&&p1(S,T),C=(f.ownerDocument||f).createElement("link"),sr(C);var I=C;return I._p=new Promise(function(B,X){I.onload=B,I.onerror=X}),mr(C,"link",S),v.state.loading|=4,Vd(C,g.precedence,f),v.instance=C;case"script":return C=su(g.src),(T=f.querySelector(_c(C)))?(v.instance=T,sr(T),T):(S=g,(T=Na.get(C))&&(S=h({},g),g1(S,T)),f=f.ownerDocument||f,T=f.createElement("script"),sr(T),mr(T,"link",S),f.head.appendChild(T),v.instance=T);case"void":return null;default:throw Error(a(443,v.type))}else v.type==="stylesheet"&&(v.state.loading&4)===0&&(S=v.instance,v.state.loading|=4,Vd(S,g.precedence,f));return v.instance}function Vd(f,v,g){for(var S=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=S.length?S[S.length-1]:null,C=T,I=0;I<S.length;I++){var B=S[I];if(B.dataset.precedence===v)C=B;else if(C!==T)break}C?C.parentNode.insertBefore(f,C.nextSibling):(v=g.nodeType===9?g.head:g,v.insertBefore(f,v.firstChild))}function p1(f,v){f.crossOrigin==null&&(f.crossOrigin=v.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=v.referrerPolicy),f.title==null&&(f.title=v.title)}function g1(f,v){f.crossOrigin==null&&(f.crossOrigin=v.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=v.referrerPolicy),f.integrity==null&&(f.integrity=v.integrity)}var Gd=null;function aM(f,v,g){if(Gd===null){var S=new Map,T=Gd=new Map;T.set(g,S)}else T=Gd,S=T.get(g),S||(S=new Map,T.set(g,S));if(S.has(f))return S;for(S.set(f,null),g=g.getElementsByTagName(f),T=0;T<g.length;T++){var C=g[T];if(!(C[Pf]||C[dr]||f==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var I=C.getAttribute(v)||"";I=f+I;var B=S.get(I);B?B.push(C):S.set(I,[C])}}return S}function nM(f,v,g){f=f.ownerDocument||f,f.head.insertBefore(g,v==="title"?f.querySelector("head > title"):null)}function $6(f,v,g){if(g===1||v.itemProp!=null)return!1;switch(f){case"meta":case"title":return!0;case"style":if(typeof v.precedence!="string"||typeof v.href!="string"||v.href==="")break;return!0;case"link":if(typeof v.rel!="string"||typeof v.href!="string"||v.href===""||v.onLoad||v.onError)break;switch(v.rel){case"stylesheet":return f=v.disabled,typeof v.precedence=="string"&&f==null;default:return!0}case"script":if(v.async&&typeof v.async!="function"&&typeof v.async!="symbol"&&!v.onLoad&&!v.onError&&v.src&&typeof v.src=="string")return!0}return!1}function iM(f){return!(f.type==="stylesheet"&&(f.state.loading&3)===0)}function K6(f,v,g,S){if(g.type==="stylesheet"&&(typeof S.media!="string"||matchMedia(S.media).matches!==!1)&&(g.state.loading&4)===0){if(g.instance===null){var T=lu(S.href),C=v.querySelector(mc(T));if(C){v=C._p,v!==null&&typeof v=="object"&&typeof v.then=="function"&&(f.count++,f=Hd.bind(f),v.then(f,f)),g.state.loading|=4,g.instance=C,sr(C);return}C=v.ownerDocument||v,S=eM(S),(T=Na.get(T))&&p1(S,T),C=C.createElement("link"),sr(C);var I=C;I._p=new Promise(function(B,X){I.onload=B,I.onerror=X}),mr(C,"link",S),g.instance=C}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(g,v),(v=g.state.preload)&&(g.state.loading&3)===0&&(f.count++,g=Hd.bind(f),v.addEventListener("load",g),v.addEventListener("error",g))}}var y1=0;function Q6(f,v){return f.stylesheets&&f.count===0&&Ud(f,f.stylesheets),0<f.count||0<f.imgCount?function(g){var S=setTimeout(function(){if(f.stylesheets&&Ud(f,f.stylesheets),f.unsuspend){var C=f.unsuspend;f.unsuspend=null,C()}},6e4+v);0<f.imgBytes&&y1===0&&(y1=62500*I6());var T=setTimeout(function(){if(f.waitingForImages=!1,f.count===0&&(f.stylesheets&&Ud(f,f.stylesheets),f.unsuspend)){var C=f.unsuspend;f.unsuspend=null,C()}},(f.imgBytes>y1?50:800)+v);return f.unsuspend=g,function(){f.unsuspend=null,clearTimeout(S),clearTimeout(T)}}:null}function Hd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ud(this,this.stylesheets);else if(this.unsuspend){var f=this.unsuspend;this.unsuspend=null,f()}}}var Fd=null;function Ud(f,v){f.stylesheets=null,f.unsuspend!==null&&(f.count++,Fd=new Map,v.forEach(J6,f),Fd=null,Hd.call(f))}function J6(f,v){if(!(v.state.loading&4)){var g=Fd.get(f);if(g)var S=g.get(null);else{g=new Map,Fd.set(f,g);for(var T=f.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<T.length;C++){var I=T[C];(I.nodeName==="LINK"||I.getAttribute("media")!=="not all")&&(g.set(I.dataset.precedence,I),S=I)}S&&g.set(null,S)}T=v.instance,I=T.getAttribute("data-precedence"),C=g.get(I)||S,C===S&&g.set(null,T),g.set(I,T),this.count++,S=Hd.bind(this),T.addEventListener("load",S),T.addEventListener("error",S),C?C.parentNode.insertBefore(T,C.nextSibling):(f=f.nodeType===9?f.head:f,f.insertBefore(T,f.firstChild)),v.state.loading|=4}}var Sc={$$typeof:w,Provider:null,Consumer:null,_currentValue:j,_currentValue2:j,_threadCount:0};function t8(f,v,g,S,T,C,I,B,X){this.tag=1,this.containerInfo=f,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hm(0),this.hiddenUpdates=hm(null),this.identifierPrefix=S,this.onUncaughtError=T,this.onCaughtError=C,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function oM(f,v,g,S,T,C,I,B,X,J,st,ft){return f=new t8(f,v,g,I,X,J,st,ft,B),v=1,C===!0&&(v|=24),C=ua(3,null,null,v),f.current=C,C.stateNode=f,v=$m(),v.refCount++,f.pooledCache=v,v.refCount++,C.memoizedState={element:S,isDehydrated:g,cache:v},t0(C),f}function lM(f){return f?(f=Vs,f):Vs}function sM(f,v,g,S,T,C){T=lM(T),S.context===null?S.context=T:S.pendingContext=T,S=Wi(v),S.payload={element:g},C=C===void 0?null:C,C!==null&&(S.callback=C),g=Zi(f,S,v),g!==null&&(Qr(g,f,v),Qf(g,f,v))}function uM(f,v){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var g=f.retryLane;f.retryLane=g!==0&&g<v?g:v}}function m1(f,v){uM(f,v),(f=f.alternate)&&uM(f,v)}function fM(f){if(f.tag===13||f.tag===31){var v=Jo(f,67108864);v!==null&&Qr(v,f,67108864),m1(f,67108864)}}function cM(f){if(f.tag===13||f.tag===31){var v=da();v=vm(v);var g=Jo(f,v);g!==null&&Qr(g,f,v),m1(f,v)}}var Yd=!0;function e8(f,v,g,S){var T=z.T;z.T=null;var C=Y.p;try{Y.p=2,_1(f,v,g,S)}finally{Y.p=C,z.T=T}}function r8(f,v,g,S){var T=z.T;z.T=null;var C=Y.p;try{Y.p=8,_1(f,v,g,S)}finally{Y.p=C,z.T=T}}function _1(f,v,g,S){if(Yd){var T=S1(S);if(T===null)i1(f,v,S,jd,g),vM(f,S);else if(n8(T,f,v,g,S))S.stopPropagation();else if(vM(f,S),v&4&&-1<a8.indexOf(f)){for(;T!==null;){var C=Ms(T);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var I=Zo(C.pendingLanes);if(I!==0){var B=C;for(B.pendingLanes|=2,B.entangledLanes|=2;I;){var X=1<<31-la(I);B.entanglements[1]|=X,I&=~X}Dn(C),(ge&6)===0&&(Dd=ia()+500,dc(0))}}break;case 31:case 13:B=Jo(C,2),B!==null&&Qr(B,C,2),Ld(),m1(C,2)}if(C=S1(S),C===null&&i1(f,v,S,jd,g),C===T)break;T=C}T!==null&&S.stopPropagation()}else i1(f,v,S,null,g)}}function S1(f){return f=xm(f),b1(f)}var jd=null;function b1(f){if(jd=null,f=Ds(f),f!==null){var v=i(f);if(v===null)f=null;else{var g=v.tag;if(g===13){if(f=o(v),f!==null)return f;f=null}else if(g===31){if(f=l(v),f!==null)return f;f=null}else if(g===3){if(v.stateNode.current.memoizedState.isDehydrated)return v.tag===3?v.stateNode.containerInfo:null;f=null}else v!==f&&(f=null)}}return jd=f,null}function hM(f){switch(f){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(FV()){case S2:return 2;case b2:return 8;case Nv:case UV:return 32;case x2:return 268435456;default:return 32}default:return 32}}var x1=!1,io=null,oo=null,lo=null,bc=new Map,xc=new Map,so=[],a8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vM(f,v){switch(f){case"focusin":case"focusout":io=null;break;case"dragenter":case"dragleave":oo=null;break;case"mouseover":case"mouseout":lo=null;break;case"pointerover":case"pointerout":bc.delete(v.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(v.pointerId)}}function wc(f,v,g,S,T,C){return f===null||f.nativeEvent!==C?(f={blockedOn:v,domEventName:g,eventSystemFlags:S,nativeEvent:C,targetContainers:[T]},v!==null&&(v=Ms(v),v!==null&&fM(v)),f):(f.eventSystemFlags|=S,v=f.targetContainers,T!==null&&v.indexOf(T)===-1&&v.push(T),f)}function n8(f,v,g,S,T){switch(v){case"focusin":return io=wc(io,f,v,g,S,T),!0;case"dragenter":return oo=wc(oo,f,v,g,S,T),!0;case"mouseover":return lo=wc(lo,f,v,g,S,T),!0;case"pointerover":var C=T.pointerId;return bc.set(C,wc(bc.get(C)||null,f,v,g,S,T)),!0;case"gotpointercapture":return C=T.pointerId,xc.set(C,wc(xc.get(C)||null,f,v,g,S,T)),!0}return!1}function dM(f){var v=Ds(f.target);if(v!==null){var g=i(v);if(g!==null){if(v=g.tag,v===13){if(v=o(g),v!==null){f.blockedOn=v,M2(f.priority,function(){cM(g)});return}}else if(v===31){if(v=l(g),v!==null){f.blockedOn=v,M2(f.priority,function(){cM(g)});return}}else if(v===3&&g.stateNode.current.memoizedState.isDehydrated){f.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}f.blockedOn=null}function Xd(f){if(f.blockedOn!==null)return!1;for(var v=f.targetContainers;0<v.length;){var g=S1(f.nativeEvent);if(g===null){g=f.nativeEvent;var S=new g.constructor(g.type,g);bm=S,g.target.dispatchEvent(S),bm=null}else return v=Ms(g),v!==null&&fM(v),f.blockedOn=g,!1;v.shift()}return!0}function pM(f,v,g){Xd(f)&&g.delete(v)}function i8(){x1=!1,io!==null&&Xd(io)&&(io=null),oo!==null&&Xd(oo)&&(oo=null),lo!==null&&Xd(lo)&&(lo=null),bc.forEach(pM),xc.forEach(pM)}function Wd(f,v){f.blockedOn===v&&(f.blockedOn=null,x1||(x1=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,i8)))}var Zd=null;function gM(f){Zd!==f&&(Zd=f,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Zd===f&&(Zd=null);for(var v=0;v<f.length;v+=3){var g=f[v],S=f[v+1],T=f[v+2];if(typeof S!="function"){if(b1(S||g)===null)continue;break}var C=Ms(g);C!==null&&(f.splice(v,3),v-=3,S0(C,{pending:!0,data:T,method:g.method,action:S},S,T))}}))}function uu(f){function v(X){return Wd(X,f)}io!==null&&Wd(io,f),oo!==null&&Wd(oo,f),lo!==null&&Wd(lo,f),bc.forEach(v),xc.forEach(v);for(var g=0;g<so.length;g++){var S=so[g];S.blockedOn===f&&(S.blockedOn=null)}for(;0<so.length&&(g=so[0],g.blockedOn===null);)dM(g),g.blockedOn===null&&so.shift();if(g=(f.ownerDocument||f).$$reactFormReplay,g!=null)for(S=0;S<g.length;S+=3){var T=g[S],C=g[S+1],I=T[Xr]||null;if(typeof C=="function")I||gM(g);else if(I){var B=null;if(C&&C.hasAttribute("formAction")){if(T=C,I=C[Xr]||null)B=I.formAction;else if(b1(T)!==null)continue}else B=I.action;typeof B=="function"?g[S+1]=B:(g.splice(S,3),S-=3),gM(g)}}}function yM(){function f(C){C.canIntercept&&C.info==="react-transition"&&C.intercept({handler:function(){return new Promise(function(I){return T=I})},focusReset:"manual",scroll:"manual"})}function v(){T!==null&&(T(),T=null),S||setTimeout(g,20)}function g(){if(!S&&!navigation.transition){var C=navigation.currentEntry;C&&C.url!=null&&navigation.navigate(C.url,{state:C.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var S=!1,T=null;return navigation.addEventListener("navigate",f),navigation.addEventListener("navigatesuccess",v),navigation.addEventListener("navigateerror",v),setTimeout(g,100),function(){S=!0,navigation.removeEventListener("navigate",f),navigation.removeEventListener("navigatesuccess",v),navigation.removeEventListener("navigateerror",v),T!==null&&(T(),T=null)}}}function w1(f){this._internalRoot=f}qd.prototype.render=w1.prototype.render=function(f){var v=this._internalRoot;if(v===null)throw Error(a(409));var g=v.current,S=da();sM(g,S,f,v,null,null)},qd.prototype.unmount=w1.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var v=f.containerInfo;sM(f.current,2,null,f,null,null),Ld(),v[Cs]=null}};function qd(f){this._internalRoot=f}qd.prototype.unstable_scheduleHydration=function(f){if(f){var v=D2();f={blockedOn:null,target:f,priority:v};for(var g=0;g<so.length&&v!==0&&v<so[g].priority;g++);so.splice(g,0,f),g===0&&dM(f)}};var mM=e.version;if(mM!=="19.2.4")throw Error(a(527,mM,"19.2.4"));Y.findDOMNode=function(f){var v=f._reactInternals;if(v===void 0)throw typeof f.render=="function"?Error(a(188)):(f=Object.keys(f).join(","),Error(a(268,f)));return f=u(v),f=f!==null?c(f):null,f=f===null?null:f.stateNode,f};var o8={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$d.isDisabled&&$d.supportsFiber)try{If=$d.inject(o8),oa=$d}catch{}}return Ac.createRoot=function(f,v){if(!n(f))throw Error(a(299));var g=!1,S="",T=AC,C=CC,I=DC;return v!=null&&(v.unstable_strictMode===!0&&(g=!0),v.identifierPrefix!==void 0&&(S=v.identifierPrefix),v.onUncaughtError!==void 0&&(T=v.onUncaughtError),v.onCaughtError!==void 0&&(C=v.onCaughtError),v.onRecoverableError!==void 0&&(I=v.onRecoverableError)),v=oM(f,1,!1,null,null,g,S,null,T,C,I,yM),f[Cs]=v.current,n1(f),new w1(v)},Ac.hydrateRoot=function(f,v,g){if(!n(f))throw Error(a(299));var S=!1,T="",C=AC,I=CC,B=DC,X=null;return g!=null&&(g.unstable_strictMode===!0&&(S=!0),g.identifierPrefix!==void 0&&(T=g.identifierPrefix),g.onUncaughtError!==void 0&&(C=g.onUncaughtError),g.onCaughtError!==void 0&&(I=g.onCaughtError),g.onRecoverableError!==void 0&&(B=g.onRecoverableError),g.formState!==void 0&&(X=g.formState)),v=oM(f,1,!0,v,g??null,S,T,X,C,I,B,yM),v.context=lM(null),g=v.current,S=da(),S=vm(S),T=Wi(S),T.callback=null,Zi(g,T,S),g=S,v.current.lanes=g,Nf(v,g),Dn(v),f[Cs]=v.current,n1(f),new qd(v)},Ac.version="19.2.4",Ac}var MM;function y8(){if(MM)return C1.exports;MM=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),C1.exports=g8(),C1.exports}var m8=y8();const by="",Z3=!1;async function _8(){const r=await fetch(`${by}/api/runs`);return r.ok?r.json():[]}async function S8(r){const e=await fetch(`${by}/api/runs/${r}`);return e.ok?e.json():null}async function b8(){const r=await fetch(`${by}/api/aggregate`);return r.ok?r.json():null}async function x8(){const r=await fetch(`${by}/api/overview`);return r.ok?r.json():null}const bg="__all__";function w8(){const[r,e]=Oe.useState([]),[t,a]=Oe.useState(""),[n,i]=Oe.useState(null),[o,l]=Oe.useState(!0),[s,u]=Oe.useState(Z3),c=Oe.useRef(null),h=Oe.useRef(null),d=Oe.useCallback(async()=>{const m=await _8();e(m),m.length>0&&!t?a(m[0].runId):m.length===0&&l(!1)},[t]),p=Oe.useCallback(async m=>{if(!m)return;l(!0);const _=m===bg?await b8():await S8(m);i(_),l(!1)},[]);Oe.useEffect(()=>{d()},[d]),Oe.useEffect(()=>{t&&p(t)},[t,p]),Oe.useEffect(()=>{function m(){c.current&&c.current.close();const _=new EventSource("/api/events");c.current=_,_.onmessage=b=>{try{const x=JSON.parse(b.data);x.type==="connected"?u(!0):x.type==="run_updated"&&(d(),t&&p(t))}catch{}},_.onerror=()=>{u(!1),_.close(),c.current=null,h.current&&clearTimeout(h.current),h.current=setTimeout(m,3e3)}}return m(),()=>{c.current&&c.current.close(),h.current&&clearTimeout(h.current)}},[t,d,p]);const y=Oe.useCallback(()=>{d(),t&&p(t)},[t,d,p]);return{runs:r,currentRunId:t,setCurrentRunId:a,runData:n,loading:o,connected:s,refresh:y}}function T8(){const[r,e]=Oe.useState(null),[t,a]=Oe.useState(!0),n=Oe.useCallback(async()=>{a(!0);const i=await x8();e(i),a(!1)},[]);return Oe.useEffect(()=>{n()},[n]),{data:r,loading:t,reload:n}}function $x(r){return r instanceof Date&&!isNaN(r.getTime())}function xg(r){if(!r)return"";try{const e=new Date(r);return $x(e)?`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:""}catch{return""}}function q3(r){if(!r)return"";try{const e=new Date(r);return $x(e)?`${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")} ${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`:""}catch{return""}}function A8(r){if(!r)return"";try{const e=new Date(r);return $x(e)?`${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")} ${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}:${String(e.getSeconds()).padStart(2,"0")}`:""}catch{return""}}const $3={loading:"加载中...",noData:"暂无数据",save:"保存并计算",saving:"保存中...",clickToSet:"点击设置",hours:"小时",eg:"例如",currency:"¥",currencyLabel:"人民币",perHour:"¥/h",exchangeRate:"7",branch:"分支",developer:"开发者",cycle:"周期",projectOverviewNav:"项目总览(负责人视角)",dashboardTitle:"AI 开发看板",projectOverviewTitle:"AIDevOS 项目总览",sseConnected:"SSE 已连接",sseDisconnected:"SSE 未连接",noRunData:"还没有数据",noRunDataHint:"用 AI 工具开始写代码,AIDA 会自动采集数据。<br/><br/>1. 在项目中配置 MCP(<code>.mcp.json</code>)<br/>2. 用 AI 工具正常开发 —— AIDA 自动采集<br/>3. 刷新此页面查看数据",noOverviewData:"暂无项目总览数据",noOverviewDataHint:"使用 <code>aida reindex</code> 生成项目索引",footerDashboard:"AIDevOS AI 开发质量看板",footerOverview:"AIDevOS 项目总览",chartNodeTime:"各节点累计耗时",chartTaskRanking:"最新 15 个任务耗时",chartStageTime:"阶段时间分布",chartTimeline:"开发时间线",chartTaskCompletion:"各阶段任务完成情况",chartFirstPassRate:"首次通过率趋势",chartDeviationPie:"偏差根因分析",chartDeviationBar:"偏差类别分布",chartBugSeverity:"Bug 严重度分布",chartReviewIssues:"自检问题分类",chartFileHotspot:"文件修改热点(偏差/缺陷修复)",chartDeviationTrend:"偏差数量与规则沉淀趋势",chartRulesTable:"偏差沉淀的规则",chartReviewsTable:"自检报告汇总",kpiPrd:"PRD 进度",kpiTasks:"任务完成",kpiDeviation:"偏差发现",kpiBug:"缺陷修复",kpiReviewRate:"自检通过率",kpiTokens:"Token 消耗",kpiFiles:"文件变更",kpiTime:"实际工时",kpiRoi:"成本回报率",modalTasks:"任务详情",modalDeviation:"偏差详情",modalBug:"缺陷详情",modalPrd:"PRD 阶段",modalReview:"自检报告",modalFiles:"变更文件",modalTime:"工时详情",modalRoi:"成本分析",modalTokens:"Token 消耗详情",thId:"ID",thTitle:"标题",thPhase:"阶段",thPrd:"PRD",thStatus:"状态",thRootCause:"根因",thCategory:"类别",thFiles:"涉及文件",thSeverity:"严重程度",thFix:"修复",thNumber:"编号",thDate:"日期",thScope:"范围",thIssueCount:"问题数",thResult:"结果",thFilePath:"文件路径",thOperation:"操作",thLineChanges:"+/-",thChangeCount:"修改次数",thDuration:"耗时",thStartTime:"开始时间",tasksCompleted:"任务完成",timeActualAi:"实际 AI 工时",timeEstManual:"预估人工工时",timeEfficiency:"效率倍数",timeNodeDetail:"节点耗时明细",roiSettingTitle:"成本参数设置",roiSettingHint:"填写以下信息后,系统将自动计算成本回报",roiEstManualHours:"预估人工工时",roiHourlyRate:"时薪",roiCostComparison:"成本对比",roiManualCost:"人工成本",roiAiCost:"AI Token 成本",roiSaved:"节省费用",roiValue:"每 ¥1 AI 成本节省",roiTimeComparison:"时间对比",roiHoursSaved:"AI 替代人工工时",roiAiProcessTime:"AI 累计处理时间",tokenTotal:"总 Token",tokenInput:"Input Tokens",tokenOutput:"Output Tokens",tokenCacheCreation:"Cache Creation",tokenCacheRead:"Cache Read",tokenPerPhase:"各阶段 Token 消耗",chartNoData:"暂无数据",chartNoNodeTime:"暂无节点耗时数据",chartNoTaskTime:"暂无任务耗时数据",chartNoTimeline:"暂无时间线数据",chartNoBug:"暂无缺陷数据",chartNoReviewIssue:"暂无自检问题数据",chartNoTrend:"暂无趋势数据",chartTotalTokens:"总 Token 消耗",chartDeviationCount:"偏差数量",chartAccumRules:"累计规则",chartQuantity:"数量",chartRules:"规则",bugCritical:"严重",bugHigh:"高",bugMedium:"中",bugLow:"低",chartNoTeam:"暂无团队数据",chartCompletedTasks:"完成任务",chartDeviations:"偏差数",chartBugs:"Bug 数",rulesNoData:"暂无沉淀规则",rulesSource:"来源",rulesCategory:"类别",rulesRule:"规则",rulesTargetFile:"目标文件",rulesPending:"(待沉淀)",reviewsNoData:"暂无自检报告",reviewsIssues:"个问题",reviewsDetail:"自检详情",reviewsScope:"范围:",reviewsDate:"日期:",reviewsIssueCount:"问题数:",reviewsIssueList:"问题列表:",ovTotalReqs:"总需求数",ovInProgress:"进行中",ovCompleted:"已完成",ovTaskCompletion:"任务完成",ovTotalDeviations:"总偏差",ovTotalBugs:"总缺陷",ovCodeLines:"代码行数",ovReqStatus:"需求状态分布",ovTeamEfficiency:"团队效率对比",ovReqList:"需求列表",ovTeamSummary:"团队成员汇总",ovBranch:"分支",ovTitle:"标题",ovStatus:"状态",ovTasks:"任务",ovDeviations:"偏差",ovDeveloper:"开发者",ovStartTime:"开始时间",ovLinesAdded:"+行数",ovAiHours:"AI 工时",ovModule:"模块",ovHighlights:"业务价值亮点",ovAi:"AI",ovManual:"手动",lmRuleMissing:"规则缺失",lmContextInsufficient:"上下文不足",lmHallucination:"盲目照搬/臆想",lmReqMisunderstand:"需求理解偏差",lmRefCopy:"参考照搬",lmProcessOmission:"流程遗漏",lmMultiRound:"多轮未收敛",lmContextLost:"上下文丢失",lmOtherReason:"其他原因",lmUiSpacing:"UI/间距",lmLayout:"布局/结构",lmComponent:"组件使用",lmI18n:"i18n/国际化",lmApi:"API 接口",lmLogicError:"逻辑错误",lmArchitecture:"架构设计",lmStyle:"样式问题",lmProcessCache:"流程/缓存",lmOther:"其他",nodeCodeGen:"代码生成",nodeBugFix:"Bug 修复",nodeDeviationFix:"偏差修复",nodeSelfReview:"自检审查",nodeTaskSplit:"任务拆分",nodeReqAnalysis:"需求分析",nodeReqIngestion:"需求接入",nodeBuildVerify:"构建验证",stageUncategorized:"未分类",chartNoStageTime:"暂无阶段耗时数据",chartNoReviewData:"暂无自检数据",chartNoFileHotspot:"暂无文件热点数据",chartNoDeviation:"暂无偏差数据",reqCompleted:"已完成",reqInProgress:"进行中",reqPending:"待开始",reqFailed:"失败",chartNoReqData:"暂无需求数据",tipDuration:"耗时",tipTaskCount:"任务数"},C8={loading:"Loading...",noData:"No data",save:"Save & Calculate",saving:"Saving...",clickToSet:"Click to set",hours:"hours",eg:"e.g.",currency:"$",currencyLabel:"USD",perHour:"$/h",exchangeRate:"1",branch:"Branch",developer:"Developer",cycle:"Cycle",projectOverviewNav:"Project Overview",dashboardTitle:"AI Dev Dashboard",projectOverviewTitle:"AIDevOS Project Overview",sseConnected:"SSE Connected",sseDisconnected:"SSE Disconnected",noRunData:"No data yet",noRunDataHint:"Start a development run with your AI tool to collect data.<br/><br/>1. Add MCP config to your project (<code>.mcp.json</code>)<br/>2. Start coding with your AI tool — AIDA collects data automatically<br/>3. Refresh this page to see your data",noOverviewData:"No project overview data",noOverviewDataHint:"Use <code>aida reindex</code> to generate project index",footerDashboard:"AIDevOS AI Development Quality Dashboard",footerOverview:"AIDevOS Project Overview",chartNodeTime:"Cumulative Time per Node",chartTaskRanking:"Latest 15 Tasks Duration",chartStageTime:"Phase Time Distribution",chartTimeline:"Development Timeline",chartTaskCompletion:"Task Completion by Phase",chartFirstPassRate:"First Pass Rate Trend",chartDeviationPie:"Deviation Root Cause",chartDeviationBar:"Deviation Category Distribution",chartBugSeverity:"Bug Severity Distribution",chartReviewIssues:"Review Issue Types",chartFileHotspot:"File Modification Hotspots",chartDeviationTrend:"Deviation & Rule Trend",chartRulesTable:"Rules from Deviations",chartReviewsTable:"Review Report Summary",kpiPrd:"PRD Progress",kpiTasks:"Tasks",kpiDeviation:"Deviations",kpiBug:"Bugs Fixed",kpiReviewRate:"Review Pass Rate",kpiTokens:"Token Usage",kpiFiles:"Files Changed",kpiTime:"Work Hours",kpiRoi:"Cost Savings",modalTasks:"Task Details",modalDeviation:"Deviation Details",modalBug:"Bug Details",modalPrd:"PRD Phases",modalReview:"Review Report",modalFiles:"Changed Files",modalTime:"Work Hours Details",modalRoi:"Cost Analysis",modalTokens:"Token Usage Details",thId:"ID",thTitle:"Title",thPhase:"Phase",thPrd:"PRD",thStatus:"Status",thRootCause:"Root Cause",thCategory:"Category",thFiles:"Files",thSeverity:"Severity",thFix:"Fix",thNumber:"No.",thDate:"Date",thScope:"Scope",thIssueCount:"Issues",thResult:"Result",thFilePath:"File Path",thOperation:"Action",thLineChanges:"+/-",thChangeCount:"Changes",thDuration:"Duration",thStartTime:"Start Time",tasksCompleted:"tasks completed",timeActualAi:"Actual AI Work Hours",timeEstManual:"Est. Manual Hours",timeEfficiency:"Efficiency Multiplier",timeNodeDetail:"Node Time Breakdown",roiSettingTitle:"Cost Settings",roiSettingHint:"Fill in the info below to calculate cost savings",roiEstManualHours:"Est. Manual Hours",roiHourlyRate:"Hourly Rate",roiCostComparison:"Cost Comparison",roiManualCost:"Manual Cost",roiAiCost:"AI Token Cost",roiSaved:"Cost Saved",roiValue:"Savings per $1 AI Cost",roiTimeComparison:"Time Comparison",roiHoursSaved:"Human Hours Replaced by AI",roiAiProcessTime:"AI Processing Time",tokenTotal:"Total Tokens",tokenInput:"Input Tokens",tokenOutput:"Output Tokens",tokenCacheCreation:"Cache Creation",tokenCacheRead:"Cache Read",tokenPerPhase:"Token Usage per Phase",chartNoData:"No data",chartNoNodeTime:"No node time data",chartNoTaskTime:"No task time data",chartNoTimeline:"No timeline data",chartNoBug:"No bug data",chartNoReviewIssue:"No review issue data",chartNoTrend:"No trend data",chartTotalTokens:"Total Token Usage",chartDeviationCount:"Deviations",chartAccumRules:"Accumulated Rules",chartQuantity:"Quantity",chartRules:"Rules",bugCritical:"Critical",bugHigh:"High",bugMedium:"Medium",bugLow:"Low",chartNoTeam:"No team data",chartCompletedTasks:"Tasks Done",chartDeviations:"Deviations",chartBugs:"Bugs",rulesNoData:"No rules yet",rulesSource:"Source",rulesCategory:"Category",rulesRule:"Rule",rulesTargetFile:"Target File",rulesPending:"(pending)",reviewsNoData:"No review reports",reviewsIssues:"issues",reviewsDetail:"Review Details",reviewsScope:"Scope:",reviewsDate:"Date:",reviewsIssueCount:"Issues:",reviewsIssueList:"Issue List:",ovTotalReqs:"Total Requirements",ovInProgress:"In Progress",ovCompleted:"Completed",ovTaskCompletion:"Task Completion",ovTotalDeviations:"Total Deviations",ovTotalBugs:"Total Bugs",ovCodeLines:"Lines of Code",ovReqStatus:"Requirement Status",ovTeamEfficiency:"Team Efficiency",ovReqList:"Requirement List",ovTeamSummary:"Team Summary",ovBranch:"Branch",ovTitle:"Title",ovStatus:"Status",ovTasks:"Tasks",ovDeviations:"Deviations",ovDeveloper:"Developer",ovStartTime:"Start Time",ovLinesAdded:"+Lines",ovAiHours:"AI Hours",ovModule:"Module",ovHighlights:"Business Value Highlights",ovAi:"AI",ovManual:"Manual",lmRuleMissing:"Rule Missing",lmContextInsufficient:"Insufficient Context",lmHallucination:"Hallucination",lmReqMisunderstand:"Requirement Misunderstanding",lmRefCopy:"Reference Copy",lmProcessOmission:"Process Omission",lmMultiRound:"Multi-round Unconverged",lmContextLost:"Context Lost",lmOtherReason:"Other",lmUiSpacing:"UI/Spacing",lmLayout:"Layout/Structure",lmComponent:"Component Usage",lmI18n:"i18n",lmApi:"API",lmLogicError:"Logic Error",lmArchitecture:"Architecture",lmStyle:"Style Issue",lmProcessCache:"Process/Cache",lmOther:"Other",nodeCodeGen:"Code Generation",nodeBugFix:"Bug Fix",nodeDeviationFix:"Deviation Fix",nodeSelfReview:"Self Review",nodeTaskSplit:"Task Split",nodeReqAnalysis:"Requirement Analysis",nodeReqIngestion:"Requirement Ingestion",nodeBuildVerify:"Build Verification",stageUncategorized:"Uncategorized",chartNoStageTime:"No stage time data",chartNoReviewData:"No review data",chartNoFileHotspot:"No file hotspot data",chartNoDeviation:"No deviation data",reqCompleted:"Completed",reqInProgress:"In Progress",reqPending:"Pending",reqFailed:"Failed",chartNoReqData:"No requirement data",tipDuration:"Duration",tipTaskCount:"Tasks"},D8={zh:$3,en:C8},Ou=Oe.createContext({locale:"zh",setLocale:()=>{},t:$3});function vr(){return Oe.useContext(Ou)}function M8(r){return D8[r]}function L8(){try{const r=localStorage.getItem("aida-locale");if(r==="en"||r==="zh")return r}catch{}return"zh"}function R8(r){try{localStorage.setItem("aida-locale",r)}catch{}}function R1({runs:r,currentRunId:e,onSelectRun:t,meta:a,connected:n}){const{locale:i,setLocale:o,t:l}=vr(),s=e===bg,u=c=>{const h=[`${l.branch}: ${c.branch}`,`${l.developer}: ${c.developer}`];if(c.aiModel&&h.push(`AI: ${c.aiModel}`),c.startTime){const d=xg(c.startTime),p=c.endTime?xg(c.endTime):"",y=p?`${d} ~ ${p}`:`${d} ~`;d&&h.push(`${l.cycle}: ${y}`)}return h.join(" | ")};return G.jsxs("div",{className:"flex items-center justify-between px-8 py-6 border-b border-[#1e2d3d]",children:[G.jsxs("div",{className:"flex items-center gap-4",children:[G.jsx("h1",{className:"text-[22px] font-semibold text-white",children:s?G.jsxs(G.Fragment,{children:[G.jsx("span",{className:"text-blue-500",children:"AIDevOS"})," ",l.projectOverviewTitle.replace("AIDevOS ","")]}):a?G.jsxs(G.Fragment,{children:[G.jsx("span",{className:"text-blue-500",children:a.branch})," ",l.dashboardTitle]}):G.jsxs(G.Fragment,{children:[G.jsx("span",{className:"text-blue-500",children:"AIDevOS"})," ",l.dashboardTitle]})}),G.jsxs("select",{value:e,onChange:c=>t(c.target.value),className:"appearance-none bg-[#162231] text-[#e0e6ed] border border-[#1e2d3d] rounded-lg px-3 py-2 text-[13px] cursor-pointer outline-none hover:border-[#2a4a6b]",children:[r.length===0&&G.jsx("option",{value:"",children:l.loading}),G.jsx("option",{value:bg,children:l.projectOverviewNav}),r.map(c=>G.jsxs("option",{value:c.runId,children:[c.branch," / ",c.developer]},c.runId))]}),Z3,G.jsx("div",{className:`w-2 h-2 rounded-full transition-colors ${n?"bg-green-500 shadow-[0_0_8px_#22c55e]":"bg-[#4a5a6a]"}`,title:n?l.sseConnected:l.sseDisconnected}),G.jsx("button",{onClick:()=>o(i==="zh"?"en":"zh"),className:"text-[11px] text-[#6b7b8d] hover:text-white border border-[#1e2d3d] hover:border-[#2a4a6b] rounded px-2 py-1 cursor-pointer transition-colors",children:i==="zh"?"EN":"中文"})]}),a&&!s&&G.jsx("div",{className:"text-[13px] text-[#6b7b8d]",children:u(a)})]})}function hl({title:r,open:e,onClose:t,children:a}){return e?G.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:t,children:G.jsxs("div",{className:"bg-[#162231] border border-[#1e2d3d] rounded-xl w-[90vw] max-w-[800px] max-h-[80vh] overflow-hidden flex flex-col",onClick:n=>n.stopPropagation(),children:[G.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[#1e2d3d]",children:[G.jsx("h2",{className:"text-base font-semibold text-white",children:r}),G.jsx("button",{onClick:t,className:"text-[#6b7b8d] hover:text-white text-xl leading-none cursor-pointer",children:"×"})]}),G.jsx("div",{className:"p-6 overflow-y-auto",children:a})]})}):null}const E8={"rule-missing":"lmRuleMissing","context-insufficient":"lmContextInsufficient",hallucination:"lmHallucination",misunderstanding:"lmReqMisunderstand","reference-copy":"lmRefCopy","process-omission":"lmProcessOmission","multi-round":"lmMultiRound","context-lost":"lmContextLost",other:"lmOtherReason"},I8={"ui-spacing":"lmUiSpacing",layout:"lmLayout","component-usage":"lmComponent",i18n:"lmI18n",api:"lmApi",logic:"lmLogicError",architecture:"lmArchitecture",style:"lmStyle",process:"lmProcessCache",other:"lmOther"};function K3(r,e){const t=E8[r];return t&&e?e[t]:r}function Vu(r,e){const t=I8[r];return t&&e?e[t]:r}const O8={"Code Generation":"nodeCodeGen","Bug Fix":"nodeBugFix","Deviation Fix":"nodeDeviationFix","Self Review":"nodeSelfReview","Task Split":"nodeTaskSplit","Requirement Analysis":"nodeReqAnalysis","code-generation":"nodeCodeGen","bug-fix":"nodeBugFix","deviation-fix":"nodeDeviationFix","self-review":"nodeSelfReview","task-split":"nodeTaskSplit","requirement-analysis":"nodeReqAnalysis","requirement-ingestion":"nodeReqIngestion","build-verify":"nodeBuildVerify",代码生成:"nodeCodeGen","Bug 修复":"nodeBugFix",bug修复:"nodeBugFix",偏差修复:"nodeDeviationFix",缺陷修复:"nodeBugFix",自检审查:"nodeSelfReview",质量自检:"nodeSelfReview",任务拆分:"nodeTaskSplit",需求分析:"nodeReqAnalysis",需求接入:"nodeReqIngestion",构建验证:"nodeBuildVerify"};function Kx(r,e){const t=O8[r];return t&&e?e[t]:r}function Kd(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function N8({data:r}){const{t:e}=vr(),[t,a]=Oe.useState(null),n=r.summary,i=r.metrics,o=(r.meta.prdPhases||[]).length>0,l=o?`${n.prdPhaseCount}`:n.totalTasks>0?`${n.completedTasks}/${n.totalTasks}`:"-",s=[{key:o?"prd":null,label:e.kpiPrd,color:"text-blue-500",value:l},{key:"tasks",label:e.kpiTasks,color:"text-green-500",value:`${n.completedTasks}/${n.totalTasks}`},{key:"deviation",label:e.kpiDeviation,color:"text-amber-500",value:`${n.deviationCount}`},{key:"bug",label:e.kpiBug,color:"text-red-500",value:`${n.bugCount}`}],u=[{key:"review",label:e.kpiReviewRate,color:"text-purple-500",value:i.reviewPassRate!=null?`${Math.round(i.reviewPassRate)}%`:"-"},{key:"files",label:e.kpiFiles,color:"text-cyan-500",value:`${n.filesChanged}`},{key:"time",label:e.kpiTime,color:"text-teal-500",value:i.actualWorkSeconds?Kd(i.actualWorkSeconds):"-"}],c=h=>G.jsx("div",{className:`grid gap-4 max-lg:grid-cols-2 max-sm:grid-cols-2 ${h.length>4?"grid-cols-5":h.length===3?"grid-cols-3":"grid-cols-4"}`,children:h.map(d=>G.jsxs("div",{onClick:()=>d.key&&a(d.key),className:`bg-[#162231] border border-[#1e2d3d] rounded-[10px] px-5 py-[18px] text-center transition-colors ${d.key?"cursor-pointer hover:border-[#2a4a6b]":"cursor-default"}`,children:[G.jsx("div",{className:`text-[32px] font-bold mb-1 ${d.color}`,children:d.value}),G.jsx("div",{className:"text-xs text-[#6b7b8d] uppercase tracking-wide",children:d.label})]},String(d.key)))});return G.jsxs(G.Fragment,{children:[G.jsxs("div",{className:"px-8 py-5 space-y-4",children:[c(s),c(u)]}),G.jsx(hl,{title:e.modalTasks,open:t==="tasks",onClose:()=>a(null),children:G.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[G.jsx("thead",{children:G.jsxs("tr",{children:[G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thId}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[200px]",children:e.thTitle}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:e.thPhase}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thPrd}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[120px]",children:e.thStartTime}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thDuration}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thStatus})]})}),G.jsx("tbody",{children:r.tasks.map(h=>{const d=h.startedAt&&h.completedAt?(new Date(h.completedAt).getTime()-new Date(h.startedAt).getTime())/1e3:null;return G.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:h.taskId}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[200px]",children:h.title}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:h.stageName}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:G.jsx("span",{className:"inline-block px-2 py-0.5 rounded text-[11px] bg-[#1e3a5f] text-[#60a5fa]",children:h.prdPhase})}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[120px] text-xs text-[#94a3b8]",children:q3(h.startedAt)}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px] text-xs text-[#94a3b8]",children:d!=null?Kd(d):"-"}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:G.jsx("span",{className:h.status==="done"?"text-green-500":"text-amber-500",children:h.status})})]},h.taskId)})})]})}),G.jsx(hl,{title:e.modalDeviation,open:t==="deviation",onClose:()=>a(null),children:G.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[G.jsx("thead",{children:G.jsxs("tr",{children:[G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thId}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:e.thTitle}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:e.thRootCause}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:e.thCategory}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:e.thFiles})]})}),G.jsx("tbody",{children:r.deviations.map(h=>G.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:h.deviationId}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[150px]",children:h.title}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:K3(h.rootCauseCategory,e)}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:Vu(h.deviationCategory,e)}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d] min-w-[150px]",children:h.files.join(", ")})]},h.deviationId))})]})}),G.jsx(hl,{title:e.modalBug,open:t==="bug",onClose:()=>a(null),children:r.bugs.length>0?G.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[G.jsx("thead",{children:G.jsxs("tr",{children:[G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thId}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:e.thTitle}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:e.thSeverity}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thStatus}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:e.thFix})]})}),G.jsx("tbody",{children:r.bugs.map(h=>G.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:h.bugId}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[150px]",children:h.title}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:h.severity}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:G.jsx("span",{className:h.status==="fixed"?"text-green-500":"text-red-500",children:h.status})}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d] min-w-[150px]",children:h.fix})]},h.bugId))})]}):G.jsx("div",{className:"text-[#6b7b8d] text-sm text-center py-4",children:e.noData})}),G.jsx(hl,{title:e.modalPrd,open:t==="prd",onClose:()=>a(null),children:G.jsx("div",{className:"space-y-3",children:(r.meta.prdPhases||[]).map(h=>{const d=r.tasks.filter(y=>y.prdPhase===h),p=d.filter(y=>y.status==="done").length;return G.jsxs("div",{className:"bg-[#0f1923] rounded-lg p-4",children:[G.jsxs("div",{className:"flex items-center justify-between mb-2",children:[G.jsx("span",{className:"text-sm font-medium text-white",children:h}),G.jsxs("span",{className:"text-xs text-[#6b7b8d]",children:[p,"/",d.length," ",e.tasksCompleted]})]}),G.jsx("div",{className:"w-full bg-[#1e2d3d] rounded-full h-2",children:G.jsx("div",{className:"bg-blue-500 h-2 rounded-full transition-all",style:{width:`${d.length?p/d.length*100:0}%`}})})]},h)})})}),G.jsx(hl,{title:e.modalReview,open:t==="review",onClose:()=>a(null),children:G.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[G.jsx("thead",{children:G.jsxs("tr",{children:[G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thNumber}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:e.thDate}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[200px]",children:e.thScope}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thIssueCount}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thResult})]})}),G.jsx("tbody",{children:r.reviews.map(h=>G.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:h.reviewId}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[130px] text-xs",children:A8(h.reviewedAt)}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[200px]",children:h.scope}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:h.issueCount}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:G.jsx("span",{className:h.result==="pass"?"text-green-500":"text-red-500",children:h.result})})]},h.reviewId))})]})}),G.jsx(hl,{title:e.modalFiles,open:t==="files",onClose:()=>a(null),children:r.files.length>0?G.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[G.jsx("thead",{children:G.jsxs("tr",{children:[G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[250px]",children:e.thFilePath}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:e.thOperation}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:e.thLineChanges}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:e.thChangeCount})]})}),G.jsx("tbody",{children:r.files.map(h=>G.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[250px]",children:h.path}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:G.jsx("span",{className:h.changeType==="created"?"text-green-500":h.changeType==="deleted"?"text-red-500":"text-blue-500",children:h.changeType})}),G.jsxs("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:[G.jsxs("span",{className:"text-green-500",children:["+",h.linesAdded]})," ",G.jsxs("span",{className:"text-red-500",children:["-",h.linesRemoved]})]}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:h.changeCount})]},h.path))})]}):G.jsx("div",{className:"text-[#6b7b8d] text-sm text-center py-4",children:e.noData})}),G.jsx(hl,{title:e.modalTime,open:t==="time",onClose:()=>a(null),children:G.jsxs("div",{className:"space-y-3 text-[13px]",children:[G.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[G.jsx("span",{className:"text-[#6b7b8d]",children:e.timeActualAi}),G.jsx("span",{className:"text-teal-500 font-medium",children:i.actualWorkSeconds?Kd(i.actualWorkSeconds):"-"})]}),G.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[G.jsx("span",{className:"text-[#6b7b8d]",children:e.timeEstManual}),G.jsx("span",{className:"text-[#e0e6ed]",children:r.cost.estimatedManualHours?`${r.cost.estimatedManualHours}h`:"-"})]}),G.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[G.jsx("span",{className:"text-[#6b7b8d]",children:e.timeEfficiency}),G.jsx("span",{className:"text-emerald-500 font-medium",children:i.efficiencyMultiplier?`${i.efficiencyMultiplier.toFixed(1)}x`:"-"})]}),i.nodeTimeBreakdown&&Object.keys(i.nodeTimeBreakdown).length>0&&G.jsxs("div",{className:"pt-3 border-t border-[#1e2d3d]",children:[G.jsx("div",{className:"text-[#6b7b8d] text-xs mb-2",children:e.timeNodeDetail}),Object.entries(i.nodeTimeBreakdown).map(([h,d])=>G.jsxs("div",{className:"flex justify-between py-1 text-xs",children:[G.jsx("span",{className:"text-[#94a3b8]",children:h}),G.jsx("span",{className:"text-[#e0e6ed]",children:Kd(d)})]},h))]})]})})]})}function fr({title:r,full:e,children:t}){return G.jsxs("div",{className:`bg-[#162231] border border-[#1e2d3d] rounded-[10px] p-5 ${e?"col-span-full":""}`,children:[G.jsx("h3",{className:"text-sm font-semibold text-[#94a3b8] mb-4 uppercase tracking-wide",children:r}),t]})}/*! *****************************************************************************
50
- Copyright (c) Microsoft Corporation.
51
-
52
- Permission to use, copy, modify, and/or distribute this software for any
53
- purpose with or without fee is hereby granted.
54
-
55
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
56
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
57
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
58
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
59
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
60
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
61
- PERFORMANCE OF THIS SOFTWARE.
62
- ***************************************************************************** */var ib=function(r,e){return ib=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},ib(r,e)};function Z(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ib(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var gh=function(){return gh=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},gh.apply(this,arguments)};function P8(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(r);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(t[a[n]]=r[a[n]]);return t}function LM(r,e,t,a){function n(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function l(c){try{u(a.next(c))}catch(h){o(h)}}function s(c){try{u(a.throw(c))}catch(h){o(h)}}function u(c){c.done?i(c.value):n(c.value).then(l,s)}u((a=a.apply(r,[])).next())})}function RM(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(u){return function(c){return s([u,c])}}function s(u){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(c){u=[6,c],n=0}finally{a=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var z8=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),k8=(function(){function r(){this.browser=new z8,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r})(),Ft=new k8;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ft.wxa=!0,Ft.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ft.worker=!0:!Ft.hasGlobalWindow||"Deno"in window?(Ft.node=!0,Ft.svgSupported=!0):B8(navigator.userAgent,Ft);function B8(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var Qx=12,Q3="sans-serif",ko=Qx+"px "+Q3,V8=20,G8=100,H8="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function F8(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-V8)/G8;e[a]=n}return e}var U8=F8(H8),_n={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=_n.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||ko),r.measureText(t);t=t||"",a=a||ko;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||Qx,l=0;if(a.indexOf("mono")>=0)l=o*t.length;else for(var s=0;s<t.length;s++){var u=U8[t[s]];l+=u==null?o:u*o}return{width:l}}})(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}};function J3(r){for(var e in _n)r[e]&&(_n[e]=r[e])}var tP=qa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),eP=qa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),cf=Object.prototype.toString,xy=Array.prototype,Y8=xy.forEach,j8=xy.filter,Jx=xy.slice,X8=xy.map,EM=(function(){}).constructor,Qd=EM?EM.prototype:null,tw="__proto__",W8=2311;function ew(){return W8++}function wy(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function Tt(r){if(r==null||typeof r!="object")return r;var e=r,t=cf.call(r);if(t==="[object Array]"){if(!Yu(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=Tt(r[a])}}else if(eP[t]){if(!Yu(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!tP[t]&&!Yu(r)&&!ss(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==tw&&(e[o]=Tt(r[o]))}return e}function It(r,e,t){if(!xt(e)||!xt(r))return t?Tt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==tw){var n=r[a],i=e[a];xt(i)&&xt(n)&&!it(i)&&!it(n)&&!ss(i)&&!ss(n)&&!ob(i)&&!ob(n)&&!Yu(i)&&!Yu(n)?It(n,i,t):(t||!(a in r))&&(r[a]=Tt(e[a]))}return r}function Ty(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=It(t,r[a],e);return t}function rt(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==tw&&(r[t]=e[t]);return r}function St(r,e,t){for(var a=Yt(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var Z8=_n.createCanvas;function Bt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function rw(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function ze(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else St(r,e,t)}function Sr(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function N(r,e,t){if(r&&e)if(r.forEach&&r.forEach===Y8)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function ot(r,e,t){if(!r)return[];if(!e)return Ay(r);if(r.map&&r.map===X8)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function qa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function te(r,e,t){if(!r)return[];if(!e)return Ay(r);if(r.filter&&r.filter===j8)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function rP(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Yt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function q8(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Jx.call(arguments)))}}var dt=Qd&&_t(Qd.bind)?Qd.call.bind(Qd.bind):q8;function Et(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Jx.call(arguments)))}}function it(r){return Array.isArray?Array.isArray(r):cf.call(r)==="[object Array]"}function _t(r){return typeof r=="function"}function vt(r){return typeof r=="string"}function wg(r){return cf.call(r)==="[object String]"}function Qt(r){return typeof r=="number"}function xt(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function ob(r){return!!tP[cf.call(r)]}function Yr(r){return!!eP[cf.call(r)]}function ss(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function fv(r){return r.colorStops!=null}function aP(r){return r.image!=null}function nP(r){return cf.call(r)==="[object RegExp]"}function Qu(r){return r!==r}function er(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function Rt(r,e){return r??e}function pn(r,e,t){return r??e??t}function Ay(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Jx.apply(r,e)}function Cy(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Ir(r,e){if(!r)throw new Error(e)}function Wa(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var iP="__ec_primitive__";function Nh(r){r[iP]=!0}function Yu(r){return r[iP]}var $8=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Yt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),oP=typeof Map=="function";function K8(){return oP?new Map:new $8}var lP=(function(){function r(e){var t=it(e);this.data=K8();var a=this;e instanceof r?e.each(n):e&&N(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return oP?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function mt(r){return new lP(r)}function Ju(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function cv(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&rt(t,e),t}function aw(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function gt(r,e){return r.hasOwnProperty(e)}function Pe(){}var yh=180/Math.PI;const Q8=Object.freeze(Object.defineProperty({__proto__:null,HashMap:lP,RADIAN_TO_DEGREE:yh,assert:Ir,bind:dt,clone:Tt,concatArray:Ju,createCanvas:Z8,createHashMap:mt,createObject:cv,curry:Et,defaults:St,disableUserSelect:aw,each:N,eqNaN:Qu,extend:rt,filter:te,find:rP,guid:ew,hasOwn:gt,indexOf:Bt,inherits:rw,isArray:it,isArrayLike:Sr,isBuiltInObject:ob,isDom:ss,isFunction:_t,isGradientObject:fv,isImagePatternObject:aP,isNumber:Qt,isObject:xt,isPrimitive:Yu,isRegExp:nP,isString:vt,isStringSafe:wg,isTypedArray:Yr,keys:Yt,logError:wy,map:ot,merge:It,mergeAll:Ty,mixin:ze,noop:Pe,normalizeCssArray:Cy,reduce:qa,retrieve:er,retrieve2:Rt,retrieve3:pn,setAsPrimitive:Nh,slice:Ay,trim:Wa},Symbol.toStringTag,{value:"Module"}));function Uo(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Mr(r,e){return r[0]=e[0],r[1]=e[1],r}function Hn(r){return[r[0],r[1]]}function sP(r,e,t){return r[0]=e,r[1]=t,r}function lb(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function Tg(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function wo(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Ph(r){return Math.sqrt(nw(r))}var J8=Ph;function nw(r){return r[0]*r[0]+r[1]*r[1]}var tH=nw;function eH(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function rH(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function aH(r,e){return r[0]*e[0]+r[1]*e[1]}function mh(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function ys(r,e){var t=Ph(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Ag(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var wi=Ag;function uP(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Ro=uP;function nH(r,e){return r[0]=-e[0],r[1]=-e[1],r}function _h(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function hr(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Ti(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ai(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}const iH=Object.freeze(Object.defineProperty({__proto__:null,add:lb,applyTransform:hr,clone:Hn,copy:Mr,create:Uo,dist:wi,distSquare:Ro,distance:Ag,distanceSquare:uP,div:rH,dot:aH,len:Ph,lenSquare:nw,length:J8,lengthSquare:tH,lerp:_h,max:Ai,min:Ti,mul:eH,negate:nH,normalize:ys,scale:mh,scaleAndAdd:Tg,set:sP,sub:wo},Symbol.toStringTag,{value:"Module"}));var fu=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),oH=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new fu(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new fu(t,e),"drag",e.event);var l=this.handler.findHover(a,n,t).target,s=this._dropTarget;this._dropTarget=l,t!==l&&(s&&l!==s&&this.handler.dispatchToElement(new fu(s,e),"dragleave",e.event),l&&l!==s&&this.handler.dispatchToElement(new fu(l,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new fu(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new fu(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),Ka=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var l=0;l<i[e].length;l++)if(i[e][l].h===a)return this;var s={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,s):i[e].push(s),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,l=n.length,s=0;s<l;s++){var u=n[s];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,l=t[o-1],s=n.length,u=0;u<s;u++){var c=n[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(l);break;case 1:c.h.call(l,t[0]);break;case 2:c.h.call(l,t[0],t[1]);break;default:c.h.apply(l,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),lH=Math.log(2);function sb(r,e,t,a,n,i){var o=a+"-"+n,l=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var s=Math.round(Math.log((1<<l)-1&~n)/lH);return r[t][s]}for(var u=a|1<<t,c=t+1;a&1<<c;)c++;for(var h=0,d=0,p=0;d<l;d++){var y=1<<d;y&n||(h+=(p%2?-1:1)*r[t][d]*sb(r,e-1,c,u,n|y,i),p++)}return i[o]=h,h}function IM(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=sb(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var l=0;l<8;l++)i[l]==null&&(i[l]=0),i[l]+=((o+l)%2?-1:1)*sb(t,7,o===0?1:0,1<<o,1<<l,a)/n*e[o];return function(s,u,c){var h=u*i[6]+c*i[7]+1;s[0]=(u*i[0]+c*i[1]+i[2])/h,s[1]=(u*i[3]+c*i[4]+i[5])/h}}}var OM="___zrEVENTSAVED",E1=[];function sH(r,e,t,a,n){return ub(E1,e,a,n,!0)&&ub(r,t,E1[0],E1[1])}function ub(r,e,t,a,n){if(e.getBoundingClientRect&&Ft.domSupported&&!fP(e)){var i=e[OM]||(e[OM]={}),o=uH(e,i),l=fH(o,i,n);if(l)return l(r,t,a),!0}return!1}function uH(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),l=o.style,s=i%2,u=(i>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[s]+":0",n[u]+":0",a[1-s]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function fH(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],l=[],s=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),h=2*u,d=c.left,p=c.top;o.push(d,p),s=s&&i&&d===i[h]&&p===i[h+1],l.push(r[u].offsetLeft,r[u].offsetTop)}return s&&n?n:(e.srcCoords=o,e[a]=t?IM(l,o):IM(o,l))}function fP(r){return r.nodeName.toUpperCase()==="CANVAS"}var cH=/([&<>"'])/g,hH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Rr(r){return r==null?"":(r+"").replace(cH,function(e,t){return hH[t]})}var vH=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,I1=[],dH=Ft.browser.firefox&&+Ft.browser.version.split(".")[0]<39;function fb(r,e,t,a){return t=t||{},a?NM(r,e,t):dH&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):NM(r,e,t),t}function NM(r,e,t){if(Ft.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(fP(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(ub(I1,r,a,n)){t.zrX=I1[0],t.zrY=I1[1];return}}t.zrX=t.zrY=0}function iw(r){return r||window.event}function Ga(r,e,t){if(e=iw(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&fb(r,o,e,t)}else{fb(r,e,e,t);var i=pH(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var l=e.button;return e.which==null&&l!==void 0&&vH.test(e.type)&&(e.which=l&1?1:l&2?3:l&4?2:0),e}function pH(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function cb(r,e,t,a){r.addEventListener(e,t,a)}function gH(r,e,t,a){r.removeEventListener(e,t,a)}var Ri=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function PM(r){return r.which===2||r.which===3}var yH=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,l=n.length;o<l;o++){var s=n[o],u=fb(a,s,{});i.points.push([u.zrX,u.zrY]),i.touches.push(s)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in O1)if(O1.hasOwnProperty(t)){var a=O1[t](this._track,e);if(a)return a}},r})();function zM(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function mH(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var O1={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=zM(a)/zM(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=mH(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function na(){return[1,0,0,1,0,0]}function hv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Dy(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Fn(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],l=e[0]*t[4]+e[2]*t[5]+e[4],s=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=l,r[5]=s,r}function Sn(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Yo(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],l=e[1],s=e[3],u=e[5],c=Math.sin(t),h=Math.cos(t);return r[0]=n*h+l*c,r[1]=-n*c+l*h,r[2]=i*h+s*c,r[3]=-i*c+h*s,r[4]=h*(o-a[0])+c*(u-a[1])+a[0],r[5]=h*(u-a[1])-c*(o-a[0])+a[1],r}function My(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ms(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],l=e[5],s=t*o-i*a;return s?(s=1/s,r[0]=o*s,r[1]=-i*s,r[2]=-a*s,r[3]=t*s,r[4]=(a*l-o*n)*s,r[5]=(i*n-t*l)*s,r):null}function cP(r){var e=na();return Dy(e,r),e}const _H=Object.freeze(Object.defineProperty({__proto__:null,clone:cP,copy:Dy,create:na,identity:hv,invert:ms,mul:Fn,rotate:Yo,scale:My,translate:Sn},Symbol.toStringTag,{value:"Module"}));var zt=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r})(),Jd=Math.min,tp=Math.max,vl=new zt,dl=new zt,pl=new zt,gl=new zt,Cc=new zt,Dc=new zt,kt=(function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=Jd(e.x,this.x),a=Jd(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=tp(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=tp(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=na();return Sn(i,i,[-t.x,-t.y]),My(i,i,[a,n]),Sn(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,l=a.y+a.height,s=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(i<s||u<n||l<c||h<o);if(t){var p=1/0,y=0,m=Math.abs(i-s),_=Math.abs(u-n),b=Math.abs(l-c),x=Math.abs(h-o),w=Math.min(m,_),A=Math.min(b,x);i<s||u<n?w>y&&(y=w,m<_?zt.set(Dc,-m,0):zt.set(Dc,_,0)):w<p&&(p=w,m<_?zt.set(Cc,m,0):zt.set(Cc,-_,0)),l<c||h<o?A>y&&(y=A,b<x?zt.set(Dc,0,-b):zt.set(Dc,0,x)):w<p&&(p=w,b<x?zt.set(Cc,0,b):zt.set(Cc,0,-x))}return t&&zt.copy(t,d?Cc:Dc),d},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],l=a[5];e.x=t.x*n+o,e.y=t.y*i+l,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}vl.x=pl.x=t.x,vl.y=gl.y=t.y,dl.x=gl.x=t.x+t.width,dl.y=pl.y=t.y+t.height,vl.transform(a),gl.transform(a),dl.transform(a),pl.transform(a),e.x=Jd(vl.x,dl.x,pl.x,gl.x),e.y=Jd(vl.y,dl.y,pl.y,gl.y);var s=tp(vl.x,dl.x,pl.x,gl.x),u=tp(vl.y,dl.y,pl.y,gl.y);e.width=s-e.x,e.height=u-e.y},r})(),hP="silent";function SH(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:bH}}function bH(){Ri(this.event)}var xH=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Ka),Mc=(function(){function r(e,t){this.x=e,this.y=t}return r})(),wH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],N1=new kt(0,0,0,0),vP=(function(r){Z(e,r);function e(t,a,n,i,o){var l=r.call(this)||this;return l._hovered=new Mc(0,0),l.storage=t,l.painter=a,l.painterRoot=i,l._pointerSize=o,n=n||new xH,l.proxy=null,l.setHandlerProxy(n),l._draggingMgr=new oH(l),l}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(N(wH,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=dP(this,a,n),o=this._hovered,l=o.target;l&&!l.__zr&&(o=this.findHover(o.x,o.y),l=o.target);var s=this._hovered=i?new Mc(a,n):this.findHover(a,n),u=s.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),l&&u!==l&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(s,"mousemove",t),u&&u!==l&&this.dispatchToElement(s,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Mc(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,l=SH(a,t,n);i&&(i[o]&&(l.cancelBubble=!!i[o].call(i,l)),i.trigger(a,l),i=i.__hostTarget?i.__hostTarget:i.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(a,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(s){typeof s[o]=="function"&&s[o].call(s,l),s.trigger&&s.trigger(a,l)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Mc(t,a);if(kM(i,o,t,a,n),this._pointerSize&&!o.target){for(var l=[],s=this._pointerSize,u=s/2,c=new kt(t-u,a-u,s,s),h=i.length-1;h>=0;h--){var d=i[h];d!==n&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(N1.copy(d.getBoundingRect()),d.transform&&N1.applyTransform(d.transform),N1.intersect(c)&&l.push(d))}if(l.length)for(var p=4,y=Math.PI/12,m=Math.PI*2,_=0;_<u;_+=p)for(var b=0;b<m;b+=y){var x=t+_*Math.cos(b),w=a+_*Math.sin(b);if(kM(l,o,x,w,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new yH);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var l=new Mc;l.target=i.target,this.dispatchToElement(l,o,i.event)}},e})(Ka);N(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){vP.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=dP(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||wi(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function TH(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var l=a.__hostTarget;a=l||a.parent}return n?hP:!0}return!1}function kM(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],l=void 0;if(o!==n&&!o.ignore&&(l=TH(o,t,a))&&(!e.topTarget&&(e.topTarget=o),l!==hP)){e.target=o;break}}}function dP(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var pP=32,Lc=7;function AH(r){for(var e=0;r>=pP;)e|=r&1,r>>=1;return r+e}function BM(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;CH(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function CH(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function VM(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,l=a,s;o<l;)s=o+l>>>1,n(i,r[s])<0?l=s:o=s+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function P1(r,e,t,a,n,i){var o=0,l=0,s=1;if(i(r,e[t+n])>0){for(l=a-n;s<l&&i(r,e[t+n+s])>0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l),o+=n,s+=n}else{for(l=n+1;s<l&&i(r,e[t+n-s])<=0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l);var u=o;o=n-s,s=n-u}for(o++;o<s;){var c=o+(s-o>>>1);i(r,e[t+c])>0?o=c+1:s=c}return s}function z1(r,e,t,a,n,i){var o=0,l=0,s=1;if(i(r,e[t+n])<0){for(l=n+1;s<l&&i(r,e[t+n-s])<0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l);var u=o;o=n-s,s=n-u}else{for(l=a-n;s<l&&i(r,e[t+n+s])>=0;)o=s,s=(s<<1)+1,s<=0&&(s=l);s>l&&(s=l),o+=n,s+=n}for(o++;o<s;){var c=o+(s-o>>>1);i(r,e[t+c])<0?s=c:o=c+1}return s}function DH(r,e){var t=Lc,a,n,i=0,o=[];a=[],n=[];function l(p,y){a[i]=p,n[i]=y,i+=1}function s(){for(;i>1;){var p=i-2;if(p>=1&&n[p-1]<=n[p]+n[p+1]||p>=2&&n[p-2]<=n[p]+n[p-1])n[p-1]<n[p+1]&&p--;else if(n[p]>n[p+1])break;c(p)}}function u(){for(;i>1;){var p=i-2;p>0&&n[p-1]<n[p+1]&&p--,c(p)}}function c(p){var y=a[p],m=n[p],_=a[p+1],b=n[p+1];n[p]=m+b,p===i-3&&(a[p+1]=a[p+2],n[p+1]=n[p+2]),i--;var x=z1(r[_],r,y,m,0,e);y+=x,m-=x,m!==0&&(b=P1(r[y+m-1],r,_,b,b-1,e),b!==0&&(m<=b?h(y,m,_,b):d(y,m,_,b)))}function h(p,y,m,_){var b=0;for(b=0;b<y;b++)o[b]=r[p+b];var x=0,w=m,A=p;if(r[A++]=r[w++],--_===0){for(b=0;b<y;b++)r[A+b]=o[x+b];return}if(y===1){for(b=0;b<_;b++)r[A+b]=r[w+b];r[A+_]=o[x];return}for(var M=t,D,L,R;;){D=0,L=0,R=!1;do if(e(r[w],o[x])<0){if(r[A++]=r[w++],L++,D=0,--_===0){R=!0;break}}else if(r[A++]=o[x++],D++,L=0,--y===1){R=!0;break}while((D|L)<M);if(R)break;do{if(D=z1(r[w],o,x,y,0,e),D!==0){for(b=0;b<D;b++)r[A+b]=o[x+b];if(A+=D,x+=D,y-=D,y<=1){R=!0;break}}if(r[A++]=r[w++],--_===0){R=!0;break}if(L=P1(o[x],r,w,_,0,e),L!==0){for(b=0;b<L;b++)r[A+b]=r[w+b];if(A+=L,w+=L,_-=L,_===0){R=!0;break}}if(r[A++]=o[x++],--y===1){R=!0;break}M--}while(D>=Lc||L>=Lc);if(R)break;M<0&&(M=0),M+=2}if(t=M,t<1&&(t=1),y===1){for(b=0;b<_;b++)r[A+b]=r[w+b];r[A+_]=o[x]}else{if(y===0)throw new Error;for(b=0;b<y;b++)r[A+b]=o[x+b]}}function d(p,y,m,_){var b=0;for(b=0;b<_;b++)o[b]=r[m+b];var x=p+y-1,w=_-1,A=m+_-1,M=0,D=0;if(r[A--]=r[x--],--y===0){for(M=A-(_-1),b=0;b<_;b++)r[M+b]=o[b];return}if(_===1){for(A-=y,x-=y,D=A+1,M=x+1,b=y-1;b>=0;b--)r[D+b]=r[M+b];r[A]=o[w];return}for(var L=t;;){var R=0,E=0,O=!1;do if(e(o[w],r[x])<0){if(r[A--]=r[x--],R++,E=0,--y===0){O=!0;break}}else if(r[A--]=o[w--],E++,R=0,--_===1){O=!0;break}while((R|E)<L);if(O)break;do{if(R=y-z1(o[w],r,p,y,y-1,e),R!==0){for(A-=R,x-=R,y-=R,D=A+1,M=x+1,b=R-1;b>=0;b--)r[D+b]=r[M+b];if(y===0){O=!0;break}}if(r[A--]=o[w--],--_===1){O=!0;break}if(E=_-P1(r[x],o,0,_,_-1,e),E!==0){for(A-=E,w-=E,_-=E,D=A+1,M=w+1,b=0;b<E;b++)r[D+b]=o[M+b];if(_<=1){O=!0;break}}if(r[A--]=r[x--],--y===0){O=!0;break}L--}while(R>=Lc||E>=Lc);if(O)break;L<0&&(L=0),L+=2}if(t=L,t<1&&(t=1),_===1){for(A-=y,x-=y,D=A+1,M=x+1,b=y-1;b>=0;b--)r[D+b]=r[M+b];r[A]=o[w]}else{if(_===0)throw new Error;for(M=A-(_-1),b=0;b<_;b++)r[M+b]=o[b]}}return{mergeRuns:s,forceMergeRuns:u,pushRun:l}}function rg(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<pP){i=BM(r,t,a,e),VM(r,t,a,t+i,e);return}var o=DH(r,e),l=AH(n);do{if(i=BM(r,t,a,e),i<l){var s=n;s>l&&(s=l),VM(r,t,t+s,t+i,e),i=s}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var ga=1,nh=2,Nu=4,GM=!1;function k1(){GM||(GM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function HM(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var MH=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=HM}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,rg(a,HM)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t?t=t.slice():t=[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var l=e.childrenRef(),s=0;s<l.length;s++){var u=l[s];e.__dirty&&(u.__dirty|=ga),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(k1(),c.z=0),isNaN(c.z2)&&(k1(),c.z2=0),isNaN(c.zlevel)&&(k1(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,a);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=Bt(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),Cg;Cg=Ft.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Sh={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Sh.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Sh.bounceIn(r*2)*.5:Sh.bounceOut(r*2-1)*.5+.5}},ep=Math.pow,Eo=Math.sqrt,Dg=1e-8,gP=1e-4,FM=Eo(3),rp=1/3,zn=Uo(),Ya=Uo(),ju=Uo();function To(r){return r>-Dg&&r<Dg}function yP(r){return r>Dg||r<-Dg}function tr(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function UM(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Mg(r,e,t,a,n,i){var o=a+3*(e-t)-r,l=3*(t-e*2+r),s=3*(e-r),u=r-n,c=l*l-3*o*s,h=l*s-9*o*u,d=s*s-3*l*u,p=0;if(To(c)&&To(h))if(To(l))i[0]=0;else{var y=-s/l;y>=0&&y<=1&&(i[p++]=y)}else{var m=h*h-4*c*d;if(To(m)){var _=h/c,y=-l/o+_,b=-_/2;y>=0&&y<=1&&(i[p++]=y),b>=0&&b<=1&&(i[p++]=b)}else if(m>0){var x=Eo(m),w=c*l+1.5*o*(-h+x),A=c*l+1.5*o*(-h-x);w<0?w=-ep(-w,rp):w=ep(w,rp),A<0?A=-ep(-A,rp):A=ep(A,rp);var y=(-l-(w+A))/(3*o);y>=0&&y<=1&&(i[p++]=y)}else{var M=(2*c*l-3*o*h)/(2*Eo(c*c*c)),D=Math.acos(M)/3,L=Eo(c),R=Math.cos(D),y=(-l-2*L*R)/(3*o),b=(-l+L*(R+FM*Math.sin(D)))/(3*o),E=(-l+L*(R-FM*Math.sin(D)))/(3*o);y>=0&&y<=1&&(i[p++]=y),b>=0&&b<=1&&(i[p++]=b),E>=0&&E<=1&&(i[p++]=E)}}return p}function mP(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,l=3*e-3*r,s=0;if(To(o)){if(yP(i)){var u=-l/i;u>=0&&u<=1&&(n[s++]=u)}}else{var c=i*i-4*o*l;if(To(c))n[0]=-i/(2*o);else if(c>0){var h=Eo(c),u=(-i+h)/(2*o),d=(-i-h)/(2*o);u>=0&&u<=1&&(n[s++]=u),d>=0&&d<=1&&(n[s++]=d)}}return s}function Bo(r,e,t,a,n,i){var o=(e-r)*n+r,l=(t-e)*n+e,s=(a-t)*n+t,u=(l-o)*n+o,c=(s-l)*n+l,h=(c-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=c,i[6]=s,i[7]=a}function _P(r,e,t,a,n,i,o,l,s,u,c){var h,d=.005,p=1/0,y,m,_,b;zn[0]=s,zn[1]=u;for(var x=0;x<1;x+=.05)Ya[0]=tr(r,t,n,o,x),Ya[1]=tr(e,a,i,l,x),_=Ro(zn,Ya),_<p&&(h=x,p=_);p=1/0;for(var w=0;w<32&&!(d<gP);w++)y=h-d,m=h+d,Ya[0]=tr(r,t,n,o,y),Ya[1]=tr(e,a,i,l,y),_=Ro(Ya,zn),y>=0&&_<p?(h=y,p=_):(ju[0]=tr(r,t,n,o,m),ju[1]=tr(e,a,i,l,m),b=Ro(ju,zn),m<=1&&b<p?(h=m,p=b):d*=.5);return c&&(c[0]=tr(r,t,n,o,h),c[1]=tr(e,a,i,l,h)),Eo(p)}function LH(r,e,t,a,n,i,o,l,s){for(var u=r,c=e,h=0,d=1/s,p=1;p<=s;p++){var y=p*d,m=tr(r,t,n,o,y),_=tr(e,a,i,l,y),b=m-u,x=_-c;h+=Math.sqrt(b*b+x*x),u=m,c=_}return h}function cr(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function hb(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function RH(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),l=r-a,s=0;if(To(i)){if(yP(o)){var u=-l/o;u>=0&&u<=1&&(n[s++]=u)}}else{var c=o*o-4*i*l;if(To(c)){var u=-o/(2*i);u>=0&&u<=1&&(n[s++]=u)}else if(c>0){var h=Eo(c),u=(-o+h)/(2*i),d=(-o-h)/(2*i);u>=0&&u<=1&&(n[s++]=u),d>=0&&d<=1&&(n[s++]=d)}}return s}function SP(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function zh(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,l=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=l,n[3]=l,n[4]=o,n[5]=t}function bP(r,e,t,a,n,i,o,l,s){var u,c=.005,h=1/0;zn[0]=o,zn[1]=l;for(var d=0;d<1;d+=.05){Ya[0]=cr(r,t,n,d),Ya[1]=cr(e,a,i,d);var p=Ro(zn,Ya);p<h&&(u=d,h=p)}h=1/0;for(var y=0;y<32&&!(c<gP);y++){var m=u-c,_=u+c;Ya[0]=cr(r,t,n,m),Ya[1]=cr(e,a,i,m);var p=Ro(Ya,zn);if(m>=0&&p<h)u=m,h=p;else{ju[0]=cr(r,t,n,_),ju[1]=cr(e,a,i,_);var b=Ro(ju,zn);_<=1&&b<h?(u=_,h=b):c*=.5}}return s&&(s[0]=cr(r,t,n,u),s[1]=cr(e,a,i,u)),Eo(h)}function EH(r,e,t,a,n,i,o){for(var l=r,s=e,u=0,c=1/o,h=1;h<=o;h++){var d=h*c,p=cr(r,t,n,d),y=cr(e,a,i,d),m=p-l,_=y-s;u+=Math.sqrt(m*m+_*_),l=p,s=y}return u}var IH=/cubic-bezier\(([0-9,\.e ]+)\)/;function ow(r){var e=r&&IH.exec(r);if(e){var t=e[1].split(","),a=+Wa(t[0]),n=+Wa(t[1]),i=+Wa(t[2]),o=+Wa(t[3]);if(isNaN(a+n+i+o))return;var l=[];return function(s){return s<=0?0:s>=1?1:Mg(0,a,i,1,s,l)&&tr(0,n,o,1,l[0])}}}var OH=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Pe,this.ondestroy=e.ondestroy||Pe,this.onrestart=e.onrestart||Pe,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,l=o?o(i):i;if(this.onframe(l),i===1)if(this.loop){var s=n%a;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=_t(e)?e:Sh[e]||ow(e)},r})(),xP=(function(){function r(e){this.value=e}return r})(),NH=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new xP(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),vv=(function(){function r(e){this._list=new NH,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),l=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=a.head;a.remove(s),delete n[s.key],i=s.value,this._lastRemovedEntry=s}l?l.value=t:l=new xP(t),l.key=e,a.insertEntry(l),n[e]=l}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),YM={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 gn(r){return r=Math.round(r),r<0?0:r>255?255:r}function PH(r){return r=Math.round(r),r<0?0:r>360?360:r}function kh(r){return r<0?0:r>1?1:r}function B1(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?gn(parseFloat(e)/100*255):gn(parseInt(e,10))}function es(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?kh(parseFloat(e)/100):kh(parseFloat(e))}function V1(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ao(r,e,t){return r+(e-r)*t}function Va(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function vb(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var wP=new vv(20),ap=null;function cu(r,e){ap&&vb(ap,e),ap=wP.put(r,ap||e.slice())}function Fr(r,e){if(r){e=e||[];var t=wP.get(r);if(t)return vb(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in YM)return vb(e,YM[a]),cu(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Va(e,0,0,0,1);return}return Va(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),cu(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Va(e,0,0,0,1);return}return Va(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),cu(r,e),e}return}var o=a.indexOf("("),l=a.indexOf(")");if(o!==-1&&l+1===n){var s=a.substr(0,o),u=a.substr(o+1,l-(o+1)).split(","),c=1;switch(s){case"rgba":if(u.length!==4)return u.length===3?Va(e,+u[0],+u[1],+u[2],1):Va(e,0,0,0,1);c=es(u.pop());case"rgb":if(u.length>=3)return Va(e,B1(u[0]),B1(u[1]),B1(u[2]),u.length===3?c:es(u[3])),cu(r,e),e;Va(e,0,0,0,1);return;case"hsla":if(u.length!==4){Va(e,0,0,0,1);return}return u[3]=es(u[3]),db(u,e),cu(r,e),e;case"hsl":if(u.length!==3){Va(e,0,0,0,1);return}return db(u,e),cu(r,e),e;default:return}}Va(e,0,0,0,1)}}function db(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=es(r[1]),n=es(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Va(e,gn(V1(o,i,t+1/3)*255),gn(V1(o,i,t)*255),gn(V1(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function zH(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,l=(i+n)/2,s,u;if(o===0)s=0,u=0;else{l<.5?u=o/(i+n):u=o/(2-i-n);var c=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,d=((i-a)/6+o/2)/o;e===i?s=d-h:t===i?s=1/3+c-d:a===i&&(s=2/3+h-c),s<0&&(s+=1),s>1&&(s-=1)}var p=[s*360,u,l];return r[3]!=null&&p.push(r[3]),p}}function Lg(r,e){var t=Fr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return yn(t,t.length===4?"rgba":"rgb")}}function kH(r){var e=Fr(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function bh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],l=e[i],s=a-n;return t[0]=gn(Ao(o[0],l[0],s)),t[1]=gn(Ao(o[1],l[1],s)),t[2]=gn(Ao(o[2],l[2],s)),t[3]=kh(Ao(o[3],l[3],s)),t}}var BH=bh;function lw(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Fr(e[n]),l=Fr(e[i]),s=a-n,u=yn([gn(Ao(o[0],l[0],s)),gn(Ao(o[1],l[1],s)),gn(Ao(o[2],l[2],s)),kh(Ao(o[3],l[3],s))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var VH=lw;function Xu(r,e,t,a){var n=Fr(r);if(r)return n=zH(n),e!=null&&(n[0]=PH(e)),t!=null&&(n[1]=es(t)),a!=null&&(n[2]=es(a)),yn(db(n),"rgba")}function Bh(r,e){var t=Fr(r);if(t&&e!=null)return t[3]=kh(e),yn(t,"rgba")}function yn(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Vh(r,e){var t=Fr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function GH(){return yn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var jM=new vv(100);function Rg(r){if(vt(r)){var e=jM.get(r);return e||(e=Lg(r,-.1),jM.put(r,e)),e}else if(fv(r)){var t=rt({},r);return t.colorStops=ot(r.colorStops,function(a){return{offset:a.offset,color:Lg(a.color,-.1)}}),t}return r}const HH=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:bh,fastMapToColor:BH,lerp:lw,lift:Lg,liftColor:Rg,lum:Vh,mapToColor:VH,modifyAlpha:Bh,modifyHSL:Xu,parse:Fr,random:GH,stringify:yn,toHex:kH},Symbol.toStringTag,{value:"Module"}));var Eg=Math.round;function Gh(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Fr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var XM=1e-4;function Co(r){return r<XM&&r>-XM}function np(r){return Eg(r*1e3)/1e3}function pb(r){return Eg(r*1e4)/1e4}function FH(r){return"matrix("+np(r[0])+","+np(r[1])+","+np(r[2])+","+np(r[3])+","+pb(r[4])+","+pb(r[5])+")"}var UH={left:"start",right:"end",center:"middle",middle:"middle"};function YH(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function jH(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function XH(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function TP(r){return r&&!!r.image}function WH(r){return r&&!!r.svgElement}function sw(r){return TP(r)||WH(r)}function AP(r){return r.type==="linear"}function CP(r){return r.type==="radial"}function DP(r){return r&&(r.type==="linear"||r.type==="radial")}function Ly(r){return"url(#"+r+")"}function MP(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function LP(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*yh,n=Rt(r.scaleX,1),i=Rt(r.scaleY,1),o=r.skewX||0,l=r.skewY||0,s=[];return(e||t)&&s.push("translate("+e+"px,"+t+"px)"),a&&s.push("rotate("+a+")"),(n!==1||i!==1)&&s.push("scale("+n+","+i+")"),(o||l)&&s.push("skew("+Eg(o*yh)+"deg, "+Eg(l*yh)+"deg)"),s.join(" ")}var ZH=(function(){return Ft.hasGlobalWindow&&_t(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})(),gb=Array.prototype.slice;function bi(r,e,t){return(e-r)*t+r}function G1(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=bi(e[i],t[i],a);return r}function qH(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var l=0;l<i;l++)r[o][l]=bi(e[o][l],t[o][l],a)}return r}function ip(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function WM(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var l=0;l<i;l++)r[o][l]=e[o][l]+t[o][l]*a}return r}function $H(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},l=i;l<Math.max(t,a);l++)n.push({offset:o.offset,color:o.color.slice()})}function KH(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var l=i>o;if(l)a.length=o;else for(var s=i;s<o;s++)a.push(t===1?n[s]:gb.call(n[s]))}for(var u=a[0]&&a[0].length,s=0;s<a.length;s++)if(t===1)isNaN(a[s])&&(a[s]=n[s]);else for(var c=0;c<u;c++)isNaN(a[s][c])&&(a[s][c]=n[s][c])}}function xh(r){if(Sr(r)){var e=r.length;if(Sr(r[0])){for(var t=[],a=0;a<e;a++)t.push(gb.call(r[a]));return t}return gb.call(r)}return r}function ag(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function QH(r){return Sr(r&&r[0])?2:1}var op=0,ng=1,RP=2,ih=3,yb=4,mb=5,ZM=6;function qM(r){return r===yb||r===mb}function lp(r){return r===ng||r===RP}var Rc=[0,0,0,0],JH=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,l=ZM,s=t;if(Sr(t)){var u=QH(t);l=u,(u===1&&!Qt(t[0])||u===2&&!Qt(t[0][0]))&&(o=!0)}else if(Qt(t)&&!Qu(t))l=op;else if(vt(t))if(!isNaN(+t))l=op;else{var c=Fr(t);c&&(s=c,l=ih)}else if(fv(t)){var h=rt({},s);h.colorStops=ot(t.colorStops,function(p){return{offset:p.offset,color:Fr(p.color)}}),AP(t)?l=yb:CP(t)&&(l=mb),s=h}i===0?this.valType=l:(l!==this.valType||l===ZM)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return a&&(d.easing=a,d.easingFunc=_t(a)?a:Sh[a]||ow(a)),n.push(d),d},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(m,_){return m.time-_.time});for(var n=this.valType,i=a.length,o=a[i-1],l=this.discrete,s=lp(n),u=qM(n),c=0;c<i;c++){var h=a[c],d=h.value,p=o.value;h.percent=h.time/e,l||(s&&c!==i-1?KH(d,p,n):u&&$H(d.colorStops,p.colorStops))}if(!l&&n!==mb&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var y=a[0].value,c=0;c<i;c++)n===op?a[c].additiveValue=a[c].value-y:n===ih?a[c].additiveValue=ip([],a[c].value,y,-1):lp(n)&&(a[c].additiveValue=n===ng?ip([],a[c].value,y,-1):WM([],a[c].value,y,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,l=o.length,s=this.propName,u=i===ih,c,h=this._lastFr,d=Math.min,p,y;if(l===1)p=y=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var m=d(h+1,l-1);for(c=m;c>=0&&!(o[c].percent<=t);c--);c=d(c,l-2)}else{for(c=h;c<l&&!(o[c].percent>t);c++);c=d(c-1,l-2)}y=o[c+1],p=o[c]}if(p&&y){this._lastFr=c,this._lastFrP=t;var _=y.percent-p.percent,b=_===0?1:d((t-p.percent)/_,1);y.easingFunc&&(b=y.easingFunc(b));var x=a?this._additiveValue:u?Rc:e[s];if((lp(i)||u)&&!x&&(x=this._additiveValue=[]),this.discrete)e[s]=b<1?p.rawValue:y.rawValue;else if(lp(i))i===ng?G1(x,p[n],y[n],b):qH(x,p[n],y[n],b);else if(qM(i)){var w=p[n],A=y[n],M=i===yb;e[s]={type:M?"linear":"radial",x:bi(w.x,A.x,b),y:bi(w.y,A.y,b),colorStops:ot(w.colorStops,function(L,R){var E=A.colorStops[R];return{offset:bi(L.offset,E.offset,b),color:ag(G1([],L.color,E.color,b))}}),global:A.global},M?(e[s].x2=bi(w.x2,A.x2,b),e[s].y2=bi(w.y2,A.y2,b)):e[s].r=bi(w.r,A.r,b)}else if(u)G1(x,p[n],y[n],b),a||(e[s]=ag(x));else{var D=bi(p[n],y[n],b);a?this._additiveValue=D:e[s]=D}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===op?e[a]=e[a]+n:t===ih?(Fr(e[a],Rc),ip(Rc,Rc,n,1),e[a]=ag(Rc)):t===ng?ip(e[a],e[a],n,1):t===RP&&WM(e[a],e[a],n,1)},r})(),uw=(function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){wy("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Yt(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var l=a[o],s=i[l];if(!s){s=i[l]=new JH(l);var u=void 0,c=this._getAdditiveTrack(l);if(c){var h=c.keyframes,d=h[h.length-1];u=d&&d.value,c.valType===ih&&u&&(u=ag(u))}else u=this._target[l];if(u==null)continue;e>0&&s.addKeyframe(0,xh(u),n),this._trackKeys.push(l)}s.addKeyframe(e,xh(t[l]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],l=this._tracks[o],s=this._getAdditiveTrack(o),u=l.keyframes,c=u.length;if(l.prepare(n,s),l.needsAnimate())if(!this._allowDiscrete&&l.discrete){var h=u[c-1];h&&(t._target[l.propName]=h.rawValue),l.setFinished()}else a.push(l)}if(a.length||this._force){var d=new OH({life:n,loop:this._loop,delay:this._delay||0,onframe:function(p){t._started=2;var y=t._additiveAnimators;if(y){for(var m=!1,_=0;_<y.length;_++)if(y[_]._clip){m=!0;break}m||(t._additiveAnimators=null)}for(var _=0;_<a.length;_++)a[_].step(t._target,p);var b=t._onframeCbs;if(b)for(var _=0;_<b.length;_++)b[_](t._target,p)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return ot(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var l=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){l=!1;break}return l&&this._abortedCallback(),l},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var l=o.keyframes,s=l[a?0:l.length-1];s&&(e[i]=xh(s.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Yt(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var l=o.pop();i.addKeyframe(l.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r})();function Gu(){return new Date().getTime()}var t7=(function(r){Z(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return 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 a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Gu()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,l=i.step(a,n);l&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(Cg(a),!t._paused&&t.update())}Cg(a)},e.prototype.start=function(){this._running||(this._time=Gu(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Gu(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Gu()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new uw(t,a.loop);return this.addAnimator(n),n},e})(Ka),e7=300,H1=Ft.domSupported,F1=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=ot(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}})(),$M={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},KM=!1;function _b(r){var e=r.pointerType;return e==="pen"||e==="touch"}function r7(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function U1(r){r&&(r.zrByTouch=!0)}function a7(r,e){return Ga(r.dom,new n7(r,e),!0)}function EP(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var n7=(function(){function r(e,t){this.stopPropagation=Pe,this.stopImmediatePropagation=Pe,this.preventDefault=Pe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),fn={mousedown:function(r){r=Ga(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ga(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ga(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ga(this.dom,r);var e=r.toElement||r.relatedTarget;EP(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){KM=!0,r=Ga(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){KM||(r=Ga(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ga(this.dom,r),U1(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),fn.mousemove.call(this,r),fn.mousedown.call(this,r)},touchmove:function(r){r=Ga(this.dom,r),U1(r),this.handler.processGesture(r,"change"),fn.mousemove.call(this,r)},touchend:function(r){r=Ga(this.dom,r),U1(r),this.handler.processGesture(r,"end"),fn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<e7&&fn.click.call(this,r)},pointerdown:function(r){fn.mousedown.call(this,r)},pointermove:function(r){_b(r)||fn.mousemove.call(this,r)},pointerup:function(r){fn.mouseup.call(this,r)},pointerout:function(r){_b(r)||fn.mouseout.call(this,r)}};N(["click","dblclick","contextmenu"],function(r){fn[r]=function(e){e=Ga(this.dom,e),this.trigger(r,e)}});var Sb={pointermove:function(r){_b(r)||Sb.mousemove.call(this,r)},pointerup:function(r){Sb.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function i7(r,e){var t=e.domHandlers;Ft.pointerEventsSupported?N(F1.pointer,function(a){ig(e,a,function(n){t[a].call(r,n)})}):(Ft.touchEventsSupported&&N(F1.touch,function(a){ig(e,a,function(n){t[a].call(r,n),r7(e)})}),N(F1.mouse,function(a){ig(e,a,function(n){n=iw(n),e.touching||t[a].call(r,n)})}))}function o7(r,e){Ft.pointerEventsSupported?N($M.pointer,t):Ft.touchEventsSupported||N($M.mouse,t);function t(a){function n(i){i=iw(i),EP(r,i.target)||(i=a7(r,i),e.domHandlers[a].call(r,i))}ig(e,a,n,{capture:!0})}}function ig(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,cb(r.domTarget,e,t,a)}function Y1(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&gH(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var QM=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),l7=(function(r){Z(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new QM(t,fn),H1&&(n._globalHandlerScope=new QM(document,Sb)),i7(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Y1(this._localHandlerScope),H1&&Y1(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,H1&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?o7(this,a):Y1(a)}},e})(Ka),IP=1;Ft.hasGlobalWindow&&(IP=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ig=IP,bb=.4,xb="#333",wb="#ccc",s7="#eee",JM=hv,tL=5e-5;function yl(r){return r>tL||r<-tL}var ml=[],hu=[],j1=na(),X1=Math.abs,Ci=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return yl(this.rotation)||yl(this.x)||yl(this.y)||yl(this.scaleX-1)||yl(this.scaleY-1)||yl(this.skewX)||yl(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(JM(a),this.invTransform=null);return}a=a||na(),t?this.getLocalTransform(a):JM(a),e&&(t?Fn(a,e,a):Dy(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ml);var a=ml[0]<0?-1:1,n=ml[1]<0?-1:1,i=((ml[0]-a)*t+a)/ml[0]||0,o=((ml[1]-n)*t+n)/ml[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||na(),ms(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||na(),Fn(hu,e.invTransform,t),t=hu);var a=this.originX,n=this.originY;(a||n)&&(j1[4]=a,j1[5]=n,Fn(hu,t,j1),hu[4]-=a,hu[5]-=n,t=hu),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&hr(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&hr(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&X1(e[0]-1)>1e-10&&X1(e[3]-1)>1e-10?Math.sqrt(X1(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){OP(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,l=e.anchorX,s=e.anchorY,u=e.rotation||0,c=e.x,h=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(a||n||l||s){var y=a+l,m=n+s;t[4]=-y*i-d*m*o,t[5]=-m*o-p*y*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=p*i,t[2]=d*o,u&&Yo(t,t,u),t[4]+=a+c,t[5]+=n+h,t},r.initDefaultProps=(function(){var e=r.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})(),r})(),Yn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function OP(r,e){for(var t=0;t<Yn.length;t++){var a=Yn[t];r[a]=e[a]}}var eL={};function Sa(r,e){e=e||ko;var t=eL[e];t||(t=eL[e]=new vv(500));var a=t.get(r);return a==null&&(a=_n.measureText(r,e).width,t.put(r,a)),a}function rL(r,e,t,a){var n=Sa(r,e),i=Ry(e),o=oh(0,n,t),l=Pu(0,i,a),s=new kt(o,l,n,i);return s}function dv(r,e,t,a){var n=((r||"")+"").split(`
63
- `),i=n.length;if(i===1)return rL(n[0],e,t,a);for(var o=new kt(0,0,0,0),l=0;l<n.length;l++){var s=rL(n[l],e,t,a);l===0?o.copy(s):o.union(s)}return o}function oh(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Pu(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Ry(r){return Sa("国",r)}function bn(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Og(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,l=i/2,s=t.x,u=t.y,c="left",h="top";if(a instanceof Array)s+=bn(a[0],t.width),u+=bn(a[1],t.height),c=null,h=null;else switch(a){case"left":s-=n,u+=l,c="right",h="middle";break;case"right":s+=n+o,u+=l,h="middle";break;case"top":s+=o/2,u-=n,c="center",h="bottom";break;case"bottom":s+=o/2,u+=i+n,c="center";break;case"inside":s+=o/2,u+=l,c="center",h="middle";break;case"insideLeft":s+=n,u+=l,h="middle";break;case"insideRight":s+=o-n,u+=l,c="right",h="middle";break;case"insideTop":s+=o/2,u+=n,c="center";break;case"insideBottom":s+=o/2,u+=i-n,c="center",h="bottom";break;case"insideTopLeft":s+=n,u+=n;break;case"insideTopRight":s+=o-n,u+=n,c="right";break;case"insideBottomLeft":s+=n,u+=i-n,h="bottom";break;case"insideBottomRight":s+=o-n,u+=i-n,c="right",h="bottom";break}return r=r||{},r.x=s,r.y=u,r.align=c,r.verticalAlign=h,r}var W1="__zr_normal__",Z1=Yn.concat(["ignore"]),u7=qa(Yn,function(r,e){return r[e]=!0,r},{ignore:!1}),vu={},f7=new kt(0,0,0,0),Ey=(function(){function r(e){this.id=ew(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,l=void 0,s=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var c=f7;a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(vu,a,c):Og(vu,a,c),i.x=vu.x,i.y=vu.y,o=vu.align,l=vu.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=c.width*.5,p=c.height*.5):(d=bn(h[0],c.width),p=bn(h[1],c.height)),u=!0,i.originX=-i.x+d+(n?0:c.x),i.originY=-i.y+p+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var y=a.offset;y&&(i.x+=y[0],i.y+=y[1],u||(i.originX=-y[0],i.originY=-y[1]));var m=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,x=void 0,w=void 0;m&&this.canBeInsideText()?(b=a.insideFill,x=a.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(b),w=!0)):(b=a.outsideFill,x=a.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(b),w=!0)),b=b||"#000",(b!==_.fill||x!==_.stroke||w!==_.autoStroke||o!==_.align||l!==_.verticalAlign)&&(s=!0,_.fill=b,_.stroke=x,_.autoStroke=w,_.align=o,_.verticalAlign=l,t.setDefaultTextStyle(_)),t.__dirty|=ga,s&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?wb:xb},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Fr(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,yn(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},rt(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(xt(e))for(var a=e,n=Yt(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==W1)){var o=n.targetName,l=o?t[o]:t;n.saveTo(l)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Z1)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(W1,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===W1,o=this.hasState();if(!(!o&&i)){var l=this.currentStates,s=this.stateTransition;if(!(Bt(l,e)>=0&&(t||l.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){wy("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,d=this._textGuide;return h&&h.useState(e,t,a,c),d&&d.useState(e,t,a,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ga),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,l=o===i.length;if(l){for(var s=0;s<o;s++)if(e[s]!==i[s]){l=!1;break}}if(l)return;for(var s=0;s<o;s++){var u=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&n.push(c)}var h=n[o-1],d=!!(h&&h.hoverLayer||a);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(n),y=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!t&&!this.__inHover&&y&&y.duration>0,y);var m=this._textContent,_=this._textGuide;m&&m.useStates(e,t,d),_&&_.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ga)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=Bt(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=Bt(n,e),o=Bt(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];rt(t,i),i.textConfig&&(a=a||{},rt(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var l=!(t&&n);t&&t.textConfig?(this.textConfig=rt({},n?this.textConfig:a.textConfig),rt(this.textConfig,t.textConfig)):l&&a.textConfig&&(this.textConfig=a.textConfig);for(var s={},u=!1,c=0;c<Z1.length;c++){var h=Z1[c],d=i&&u7[h];t&&t[h]!=null?d?(u=!0,s[h]=t[h]):this[h]=t[h]:l&&a[h]!=null&&(d?(u=!0,s[h]=a[h]):this[h]=a[h])}if(!i)for(var c=0;c<this.animators.length;c++){var p=this.animators[c],y=p.targetName;p.getLoop()||p.__changeFinalValue(y?(t||a)[y]:t||a)}u&&this._transitionState(e,s,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Ci,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),rt(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ga;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new uw(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=Bt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var l=a[o];!e||e===l.scope?l.stop(t):i.push(l)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){q1(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){q1(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=q1(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=ga;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var s=this[n]=[];l(this,s)}return this[n]},set:function(s){this[i]=s[0],this[o]=s[1],this[n]=s,l(this,s)}});function l(s,u){Object.defineProperty(u,0,{get:function(){return s[i]},set:function(c){s[i]=c}}),Object.defineProperty(u,1,{get:function(){return s[o]},set:function(c){s[o]=c}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))})(),r})();ze(Ey,Ka);ze(Ey,Ci);function q1(r,e,t,a,n){t=t||{};var i=[];NP(r,"",r,e,t,a,i,n);var o=i.length,l=!1,s=t.done,u=t.aborted,c=function(){l=!0,o--,o<=0&&(l?s&&s():u&&u())},h=function(){o--,o<=0&&(l?s&&s():u&&u())};o||s&&s(),i.length>0&&t.during&&i[0].during(function(y,m){t.during(m)});for(var d=0;d<i.length;d++){var p=i[d];c&&p.done(c),h&&p.aborted(h),t.force&&p.duration(t.duration),p.start(t.easing)}return i}function $1(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function c7(r){return Sr(r[0])}function h7(r,e,t){if(Sr(e[t]))if(Sr(r[t])||(r[t]=[]),Yr(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),$1(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(c7(n))for(var l=n[0].length,s=0;s<o;s++)i[s]?$1(i[s],n[s],l):i[s]=Array.prototype.slice.call(n[s]);else $1(i,n,o);i.length=n.length}else r[t]=e[t]}function v7(r,e){return r===e||Sr(r)&&Sr(e)&&d7(r,e)}function d7(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function NP(r,e,t,a,n,i,o,l){for(var s=Yt(a),u=n.duration,c=n.delay,h=n.additive,d=n.setToFinal,p=!xt(i),y=r.animators,m=[],_=0;_<s.length;_++){var b=s[_],x=a[b];if(x!=null&&t[b]!=null&&(p||i[b]))if(xt(x)&&!Sr(x)&&!fv(x)){if(e){l||(t[b]=x,r.updateDuringAnimation(e));continue}NP(r,b,t[b],x,n,i&&i[b],o,l)}else m.push(b);else l||(t[b]=x,r.updateDuringAnimation(e),m.push(b))}var w=m.length;if(!h&&w)for(var A=0;A<y.length;A++){var M=y[A];if(M.targetName===e){var D=M.stopTracks(m);if(D){var L=Bt(y,M);y.splice(L,1)}}}if(n.force||(m=te(m,function(P){return!v7(a[P],t[P])}),w=m.length),w>0||n.force&&!o.length){var R=void 0,E=void 0,O=void 0;if(l){E={},d&&(R={});for(var A=0;A<w;A++){var b=m[A];E[b]=t[b],d?R[b]=a[b]:t[b]=a[b]}}else if(d){O={};for(var A=0;A<w;A++){var b=m[A];O[b]=xh(t[b]),h7(t,a,b)}}var M=new uw(t,!1,!1,h?te(y,function(k){return k.targetName===e}):null);M.targetName=e,n.scope&&(M.scope=n.scope),d&&R&&M.whenWithKeys(0,R,m),O&&M.whenWithKeys(0,O,m),M.whenWithKeys(u??500,l?E:a,m).delay(c||0),r.addAnimator(M,e),o.push(M)}}var Ct=(function(r){Z(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return 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 a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=Bt(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=Bt(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new kt(0,0,0,0),n=t||this._children,i=[],o=null,l=0;l<n.length;l++){var s=n[l];if(!(s.ignore||s.invisible)){var u=s.getBoundingRect(),c=s.getLocalTransform(i);c?(kt.applyTransform(a,u,c),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e})(Ey);Ct.prototype.type="group";/*!
64
- * ZRender, a high performance 2d drawing library.
65
- *
66
- * Copyright (c) 2013, Baidu Inc.
67
- * All rights reserved.
68
- *
69
- * LICENSE
70
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
71
- */var og={},Wl={};function p7(r){delete Wl[r]}function g7(r){if(!r)return!1;if(typeof r=="string")return Vh(r,1)<bb;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Vh(e[n].color,1);return t/=a,t<bb}return!1}var y7=(function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new MH,o=a.renderer||"canvas";og[o]||(o=Yt(og)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var l=new og[o](t,i,a,e),s=a.ssr||l.ssrOnly;this.storage=i,this.painter=l;var u=!Ft.node&&!Ft.worker&&!s?new l7(l.getViewportRoot(),l.root):null,c=a.useCoarsePointer,h=c==null||c==="auto"?Ft.touchEventsSupported:!!c,d=44,p;h&&(p=Rt(a.pointerSize,d)),this.handler=new vP(i,l,u,l.root,p),this.animation=new t7({stage:{update:s?null:function(){return n._flush(!0)}}}),s||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=g7(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=Gu();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=Gu();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Ct&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.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,p7(this.id))},r})();function Tb(r,e){var t=new y7(ew(),r,e);return Wl[t.id]=t,t}function m7(r){r.dispose()}function _7(){for(var r in Wl)Wl.hasOwnProperty(r)&&Wl[r].dispose();Wl={}}function S7(r){return Wl[r]}function PP(r,e){og[r]=e}var Ab;function zP(r){if(typeof Ab=="function")return Ab(r)}function kP(r){Ab=r}var b7="5.6.1";const x7=Object.freeze(Object.defineProperty({__proto__:null,dispose:m7,disposeAll:_7,getElementSSRData:zP,getInstance:S7,init:Tb,registerPainter:PP,registerSSRDataGetter:kP,version:b7},Symbol.toStringTag,{value:"Module"}));var aL=1e-4,BP=20;function w7(r){return r.replace(/^\s+|\s+$/g,"")}function oe(r,e,t,a){var n=e[0],i=e[1],o=t[0],l=t[1],s=i-n,u=l-o;if(s===0)return u===0?o:(o+l)/2;if(a)if(s>0){if(r<=n)return o;if(r>=i)return l}else{if(r>=n)return o;if(r<=i)return l}else{if(r===n)return o;if(r===i)return l}return(r-n)/s*u+o}function ht(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return vt(r)?w7(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Ne(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),BP),r=(+r).toFixed(e),t?r:+r}function ma(r){return r.sort(function(e,t){return e-t}),r}function vn(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return VP(r)}function VP(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function fw(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function T7(r,e,t){if(!r[e])return 0;var a=GP(r,t);return a[e]||0}function GP(r,e){var t=qa(r,function(p,y){return p+(isNaN(y)?0:y)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=ot(r,function(p){return(isNaN(p)?0:p)/t*a*100}),i=a*100,o=ot(n,function(p){return Math.floor(p)}),l=qa(o,function(p,y){return p+y},0),s=ot(n,function(p,y){return p-o[y]});l<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=s.length;h<d;++h)s[h]>u&&(u=s[h],c=h);++o[c],s[c]=0,++l}return ot(o,function(p){return p/a})}function A7(r,e){var t=Math.max(vn(r),vn(e)),a=r+e;return t>BP?a:Ne(a,t)}var Cb=9007199254740991;function cw(r){var e=Math.PI*2;return(r%e+e)%e}function tf(r){return r>-aL&&r<aL}var C7=/^(?:(\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 ba(r){if(r instanceof Date)return r;if(vt(r)){var e=C7.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else 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)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function HP(r){return Math.pow(10,Iy(r))}function Iy(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function hw(r,e){var t=Iy(r),a=Math.pow(10,t),n=r/a,i;return e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function lg(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function Db(r){r.sort(function(s,u){return l(s,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function l(s,u,c){return s.interval[c]<u.interval[c]||s.interval[c]===u.interval[c]&&(s.close[c]-u.close[c]===(c?-1:1)||!c&&l(s,u,1))}}function jn(r){var e=parseFloat(r);return e==r&&(e!==0||!vt(r)||r.indexOf("x")<=0)?e:NaN}function vw(r){return!isNaN(jn(r))}function FP(){return Math.round(Math.random()*9)}function UP(r,e){return e===0?r:UP(e,r%e)}function nL(r,e){return r==null?e:e==null?r:r*e/UP(r,e)}function le(r){throw new Error(r)}function iL(r,e,t){return(e-r)*t+r}var YP="series\0",jP="\0_ec_\0";function de(r){return r instanceof Array?r:r==null?[]:[r]}function us(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var oL=["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 hf(r){return xt(r)&&!it(r)&&!(r instanceof Date)?r.value:r}function D7(r){return xt(r)&&!(r instanceof Array)}function XP(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=mt();N(e,function(s,u){if(!xt(s)){e[u]=null;return}});var l=M7(r,o,t);return(a||n)&&L7(l,r,o,e),a&&R7(l,e),a||n?E7(l,e,n):i&&I7(l,e),O7(l),l}function M7(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||Hh(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function L7(r,e,t,a){N(a,function(n,i){if(!(!n||n.id==null)){var o=wh(n.id),l=t.get(o);if(l!=null){var s=r[l];Ir(!s.newOption,'Duplicated option on id "'+o+'".'),s.newOption=n,s.existing=e[l],a[i]=null}}})}function R7(r,e){N(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!Hh(t)&&!Hh(i)&&WP("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function E7(r,e,t){N(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||Hh(n.existing)||n.existing&&a.id!=null&&!WP("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function I7(r,e){N(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function O7(r){var e=mt();N(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),N(r,function(t){var a=t.newOption;Ir(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),N(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(xt(i)){if(o.name=i.name!=null?wh(i.name):n?n.name:YP+a,n)o.id=wh(n.id);else if(i.id!=null)o.id=wh(i.id);else{var l=0;do o.id="\0"+o.name+"\0"+l++;while(e.get(o.id))}e.set(o.id,t)}})}function WP(r,e,t){var a=Ke(e[r],null),n=Ke(t[r],null);return a!=null&&n!=null&&a===n}function wh(r){return Ke(r,"")}function Ke(r,e){return r==null?e:vt(r)?r:Qt(r)||wg(r)?r+"":e}function dw(r){var e=r.name;return!!(e&&e.indexOf(YP))}function Hh(r){return r&&r.id!=null&&wh(r.id).indexOf(jP)===0}function N7(r){return jP+r}function P7(r,e,t){N(r,function(a){var n=a.newOption;xt(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=z7(e,n,a.existing,t))})}function z7(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function k7(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,l,s){for(var u=0,c=o.length;u<c;u++){var h=Ke(o[u].seriesId,null);if(h==null)return;for(var d=de(o[u].dataIndex),p=s&&s[h],y=0,m=d.length;y<m;y++){var _=d[y];p&&p[_]?p[_]=null:(l[h]||(l[h]={}))[_]=1}}}function i(o,l){var s=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(l)s.push(+u);else{var c=i(o[u],!0);c.length&&s.push({seriesId:u,dataIndex:c})}return s}}function fs(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return it(e.dataIndex)?ot(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return it(e.name)?ot(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function $t(){var r="__ec_inner_"+B7++;return function(e){return e[r]||(e[r]={})}}var B7=FP();function Th(r,e,t){var a=pw(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,l=o,s=t?t.defaultMainType:null;return!n&&s&&i.set(s,{}),i.each(function(u,c){var h=pv(r,c,u,{useDefault:s===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});l[c+"Models"]=h.models,l[c+"Model"]=h.models[0]}),l}function pw(r,e){var t;if(vt(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=mt(),i={},o=!1;return N(t,function(l,s){if(s==="dataIndex"||s==="dataIndexInside"){i[s]=l;return}var u=s.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();if(!(!c||!h||e&&e.includeMainTypes&&Bt(e.includeMainTypes,c)<0)){o=o||!!c;var d=n.get(c)||n.set(c,{});d[h]=l}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var je={useDefault:!0,enableAll:!1,enableNone:!1},V7={useDefault:!1,enableAll:!0,enableNone:!0};function pv(r,e,t,a){a=a||je;var n=t.index,i=t.id,o=t.name,l={models:null,specified:n!=null||i!=null||o!=null};if(!l.specified){var s=void 0;return l.models=a.useDefault&&(s=r.getComponent(e))?[s]:[],l}return n==="none"||n===!1?(Ir(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):(n==="all"&&(Ir(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),l.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),l)}function ZP(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function G7(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function H7(r){return r==="auto"?Ft.domSupported?"html":"richText":r||"html"}function Mb(r,e){var t=mt(),a=[];return N(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function qP(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Qt(a)){var o=iL(t||0,a,n);return Ne(o,i?Math.max(vn(t||0),vn(a)):e)}else{if(vt(a))return n<1?t:a;for(var l=[],s=t,u=a,c=Math.max(s?s.length:0,u.length),h=0;h<c;++h){var d=r.getDimensionInfo(h);if(d&&d.type==="ordinal")l[h]=(n<1&&s?s:u)[h];else{var p=s&&s[h]?s[h]:0,y=u[h],o=iL(p,y,n);l[h]=Ne(o,i?Math.max(vn(p),vn(y)):e)}}return l}}var F7=".",_l="___EC__COMPONENT__CONTAINER___",$P="___EC__EXTENDED_CLASS___";function Bn(r){var e={main:"",sub:""};if(r){var t=r.split(F7);e.main=t[0]||"",e.sub=t[1]||""}return e}function U7(r){Ir(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Y7(r){return!!(r&&r[$P])}function gw(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return j7(a)?n=(function(i){Z(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(t.$constructor||a).apply(this,arguments)},rw(n,this)),rt(n.prototype,t),n[$P]=!0,n.extend=this.extend,n.superCall=Z7,n.superApply=q7,n.superClass=a,n}}function j7(r){return _t(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function KP(r,e){r.extend=e.extend}var X7=Math.round(Math.random()*10);function W7(r){var e=["__\0is_clz",X7++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function Z7(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function q7(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Oy(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){U7(n),a.prototype.type=n;var i=Bn(n);if(!i.sub)e[i.main]=a;else if(i.sub!==_l){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[_l]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Bn(a),i=[],o=e[n.main];return o&&o[_l]?N(o,function(l,s){s!==_l&&i.push(l)}):i.push(o),i},r.hasClass=function(a){var n=Bn(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return N(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Bn(a),i=e[n.main];return i&&i[_l]};function t(a){var n=e[a.main];return(!n||!n[_l])&&(n=e[a.main]={},n[_l]=!0),n}}function cs(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},l=0;l<r.length;l++){var s=r[l][1];if(!(n&&Bt(n,s)>=0||i&&Bt(i,s)<0)){var u=a.getShallow(s,e);u!=null&&(o[r[l][0]]=u)}}return o}}var $7=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],K7=cs($7),Q7=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return K7(this,e,t)},r})(),Lb=new vv(50);function J7(r){if(typeof r=="string"){var e=Lb.get(r);return e&&e.image}else return r}function yw(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Lb.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!Ny(e)&&i.pending.push(o)):(e=_n.loadImage(r,lL,lL),e.__zrImageSrc=r,Lb.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function lL(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Ny(r){return r&&r.width&&r.height}var K1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function tF(r,e,t,a,n){var i={};return QP(i,r,e,t,a,n),i.text}function QP(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
72
- `);i=JP(t,a,n,i);for(var l=!1,s={},u=0,c=o.length;u<c;u++)tz(s,o[u],i),o[u]=s.textLine,l=l||s.isTruncated;r.text=o.join(`
73
- `),r.isTruncated=l}function JP(r,e,t,a){a=a||{};var n=rt({},a);n.font=e,t=Rt(t,"..."),n.maxIterations=Rt(a.maxIterations,2);var i=n.minChar=Rt(a.minChar,0);n.cnCharWidth=Sa("国",e);var o=n.ascCharWidth=Sa("a",e);n.placeholder=Rt(a.placeholder,"");for(var l=r=Math.max(0,r-1),s=0;s<i&&l>=o;s++)l-=o;var u=Sa(t,e);return u>l&&(t="",u=0),l=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=l,n.containerWidth=r,n}function tz(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Sa(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var l=0;;l++){if(o<=i||l>=t.maxIterations){e+=t.ellipsis;break}var s=l===0?eF(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=Sa(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function eF(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var l=r.charCodeAt(i);n+=0<=l&&l<=127?t:a}return i}function rF(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=Ry(n),l=Rt(e.lineHeight,o),s=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,h=e.width,d;h!=null&&(t==="break"||t==="breakAll")?d=r?ez(r,e.font,h,t==="breakAll",0).lines:[]:d=r?r.split(`
74
- `):[];var p=d.length*l,y=Rt(e.height,p);if(p>y&&u){var m=Math.floor(y/l);c=c||d.length>m,d=d.slice(0,m)}if(r&&i&&h!=null)for(var _=JP(h,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},x=0;x<d.length;x++)tz(b,d[x],_),d[x]=b.textLine,c=c||b.isTruncated;for(var w=y,A=0,x=0;x<d.length;x++)A=Math.max(Sa(d[x],n),A);h==null&&(h=A);var M=A;return a&&(w+=a[0]+a[2],M+=a[1]+a[3],h+=a[1]+a[3]),s&&(M=h),{lines:d,height:y,outerWidth:M,outerHeight:w,lineHeight:l,calculatedLineHeight:o,contentWidth:A,contentHeight:p,width:h,isTruncated:c}}var aF=(function(){function r(){}return r})(),sL=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),nF=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function iF(r,e){var t=new nF;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,l=K1.lastIndex=0,s;(s=K1.exec(r))!=null;){var u=s.index;u>l&&Q1(t,r.substring(l,u),e,o),Q1(t,s[2],e,o,s[1]),l=K1.lastIndex}l<r.length&&Q1(t,r.substring(l,r.length),e,o);var c=[],h=0,d=0,p=e.padding,y=i==="truncate",m=e.lineOverflow==="truncate",_={};function b(tt,F,W){tt.width=F,tt.lineHeight=W,h+=W,d=Math.max(d,F)}t:for(var x=0;x<t.lines.length;x++){for(var w=t.lines[x],A=0,M=0,D=0;D<w.tokens.length;D++){var L=w.tokens[D],R=L.styleName&&e.rich[L.styleName]||{},E=L.textPadding=R.padding,O=E?E[1]+E[3]:0,P=L.font=R.font||e.font;L.contentHeight=Ry(P);var k=Rt(R.height,L.contentHeight);if(L.innerHeight=k,E&&(k+=E[0]+E[2]),L.height=k,L.lineHeight=pn(R.lineHeight,e.lineHeight,k),L.align=R&&R.align||e.align,L.verticalAlign=R&&R.verticalAlign||"middle",m&&n!=null&&h+L.lineHeight>n){var V=t.lines.length;D>0?(w.tokens=w.tokens.slice(0,D),b(w,M,A),t.lines=t.lines.slice(0,x+1)):t.lines=t.lines.slice(0,x),t.isTruncated=t.isTruncated||t.lines.length<V;break t}var H=R.width,U=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")L.percentWidth=H,c.push(L),L.contentWidth=Sa(L.text,P);else{if(U){var z=R.backgroundColor,Y=z&&z.image;Y&&(Y=J7(Y),Ny(Y)&&(L.width=Math.max(L.width,Y.width*k/Y.height)))}var j=y&&a!=null?a-M:null;j!=null&&j<L.width?!U||j<O?(L.text="",L.width=L.contentWidth=0):(QP(_,L.text,j-O,P,e.ellipsis,{minChar:e.truncateMinChar}),L.text=_.text,t.isTruncated=t.isTruncated||_.isTruncated,L.width=L.contentWidth=Sa(L.text,P)):L.contentWidth=Sa(L.text,P)}L.width+=O,M+=L.width,R&&(A=Math.max(A,L.lineHeight))}b(w,M,A)}t.outerWidth=t.width=Rt(a,d),t.outerHeight=t.height=Rt(n,h),t.contentHeight=h,t.contentWidth=d,p&&(t.outerWidth+=p[1]+p[3],t.outerHeight+=p[0]+p[2]);for(var x=0;x<c.length;x++){var L=c[x],$=L.percentWidth;L.width=parseInt($,10)/100*t.width}return t}function Q1(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},l=r.lines,s=o.font||t.font,u=!1,c,h;if(a){var d=o.padding,p=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var y=bn(o.width,a.width)+p;l.length>0&&y+a.accumWidth>a.width&&(c=e.split(`
75
- `),u=!0),a.accumWidth=y}else{var m=ez(e,s,a.width,a.breakAll,a.accumWidth);a.accumWidth=m.accumWidth+p,h=m.linesWidths,c=m.lines}}else c=e.split(`
76
- `);for(var _=0;_<c.length;_++){var b=c[_],x=new aF;if(x.styleName=n,x.text=b,x.isLineHolder=!b&&!i,typeof o.width=="number"?x.width=o.width:x.width=h?h[_]:Sa(b,s),!_&&!u){var w=(l[l.length-1]||(l[0]=new sL)).tokens,A=w.length;A===1&&w[0].isLineHolder?w[0]=x:(b||!A||i)&&w.push(x)}else l.push(new sL([x]))}}function oF(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var lF=qa(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function sF(r){return oF(r)?!!lF[r]:!0}function ez(r,e,t,a,n){for(var i=[],o=[],l="",s="",u=0,c=0,h=0;h<r.length;h++){var d=r.charAt(h);if(d===`
77
- `){s&&(l+=s,c+=u),i.push(l),o.push(c),l="",s="",u=0,c=0;continue}var p=Sa(d,e),y=a?!1:!sF(d);if(i.length?c+p>t:n+c+p>t){c?(l||s)&&(y?(l||(l=s,s="",u=0,c=u),i.push(l),o.push(c-u),s+=d,u+=p,l="",c=u):(s&&(l+=s,s="",u=0),i.push(l),o.push(c),l=d,c=p)):y?(i.push(s),o.push(u),s=d,u=p):(i.push(d),o.push(p));continue}c+=p,y?(s+=d,u+=p):(s&&(l+=s,s="",u=0),l+=d)}return!i.length&&!l&&(l=r,s="",u=0),s&&(l+=s),l&&(i.push(l),o.push(c)),i.length===1&&(c+=n),{accumWidth:c,lines:i,linesWidths:o}}var Rb="__zr_style_"+Math.round(Math.random()*10),rs={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Py={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};rs[Rb]=!0;var uL=["z","z2","invisible"],uF=["invisible"],$a=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=Yt(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[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,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&fF(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(i&&this.parent)for(var s=this.parent;s;){if(s.ignore)return!1;s=s.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,l=i.shadowOffsetX||0,s=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new kt(0,0,0,0)),a?kt.applyTransform(t,n,a):t.copy(n),(o||l||s)&&(t.width+=o*2+Math.abs(l),t.height+=o*2+Math.abs(s),t.x=Math.min(t.x,t.x+l-o),t.y=Math.min(t.y,t.y+s-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new kt(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){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:rt(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=nh,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&nh)},e.prototype.styleUpdated=function(){this.__dirty&=~nh},e.prototype.createStyle=function(t){return cv(rs,t)},e.prototype.useStyle=function(t){t[Rb]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Rb]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,uL)},e.prototype._applyStateObj=function(t,a,n,i,o,l){r.prototype._applyStateObj.call(this,t,a,n,i,o,l);var s=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):s&&(u=n.style),u)if(o){var c=this.style;if(this.style=this.createStyle(s?{}:c),s)for(var h=Yt(c),d=0;d<h.length;d++){var p=h[d];p in u&&(u[p]=u[p],this.style[p]=c[p])}for(var y=Yt(u),d=0;d<y.length;d++){var p=y[d];this.style[p]=this.style[p]}this._transitionState(t,{style:u},l,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?uF:uL,d=0;d<m.length;d++){var p=m[d];a&&a[p]!=null?this[p]=a[p]:s&&n[p]!=null&&(this[p]=n[p])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return rt(t,a),t},e.prototype.getAnimationStyleProps=function(){return Py},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=ga|nh})(),e})(Ey),J1=new kt(0,0,0,0),t_=new kt(0,0,0,0);function fF(r,e,t){return J1.copy(r.getBoundingRect()),r.transform&&J1.applyTransform(r.transform),t_.width=e,t_.height=t,!J1.intersect(t_)}var ea=Math.min,ra=Math.max,e_=Math.sin,r_=Math.cos,Sl=Math.PI*2,sp=Uo(),up=Uo(),fp=Uo();function zy(r,e,t){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],l=a[1],s=1;s<r.length;s++)a=r[s],n=ea(n,a[0]),i=ra(i,a[0]),o=ea(o,a[1]),l=ra(l,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=l}}function fL(r,e,t,a,n,i){n[0]=ea(r,t),n[1]=ea(e,a),i[0]=ra(r,t),i[1]=ra(e,a)}var cL=[],hL=[];function cF(r,e,t,a,n,i,o,l,s,u){var c=mP,h=tr,d=c(r,t,n,o,cL);s[0]=1/0,s[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var y=h(r,t,n,o,cL[p]);s[0]=ea(y,s[0]),u[0]=ra(y,u[0])}d=c(e,a,i,l,hL);for(var p=0;p<d;p++){var m=h(e,a,i,l,hL[p]);s[1]=ea(m,s[1]),u[1]=ra(m,u[1])}s[0]=ea(r,s[0]),u[0]=ra(r,u[0]),s[0]=ea(o,s[0]),u[0]=ra(o,u[0]),s[1]=ea(e,s[1]),u[1]=ra(e,u[1]),s[1]=ea(l,s[1]),u[1]=ra(l,u[1])}function hF(r,e,t,a,n,i,o,l){var s=SP,u=cr,c=ra(ea(s(r,t,n),1),0),h=ra(ea(s(e,a,i),1),0),d=u(r,t,n,c),p=u(e,a,i,h);o[0]=ea(r,n,d),o[1]=ea(e,i,p),l[0]=ra(r,n,d),l[1]=ra(e,i,p)}function vF(r,e,t,a,n,i,o,l,s){var u=Ti,c=Ai,h=Math.abs(n-i);if(h%Sl<1e-4&&h>1e-4){l[0]=r-t,l[1]=e-a,s[0]=r+t,s[1]=e+a;return}if(sp[0]=r_(n)*t+r,sp[1]=e_(n)*a+e,up[0]=r_(i)*t+r,up[1]=e_(i)*a+e,u(l,sp,up),c(s,sp,up),n=n%Sl,n<0&&(n=n+Sl),i=i%Sl,i<0&&(i=i+Sl),n>i&&!o?i+=Sl:n<i&&o&&(n+=Sl),o){var d=i;i=n,n=d}for(var p=0;p<i;p+=Math.PI/2)p>n&&(fp[0]=r_(p)*t+r,fp[1]=e_(p)*a+e,u(l,fp,l),c(s,fp,s))}var me={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bl=[],xl=[],Mn=[],fo=[],Ln=[],Rn=[],a_=Math.min,n_=Math.max,wl=Math.cos,Tl=Math.sin,pi=Math.abs,Eb=Math.PI,_o=Eb*2,i_=typeof Float32Array<"u",Ec=[];function o_(r){var e=Math.round(r/Eb*1e8)/1e8;return e%2*Eb}function mw(r,e){var t=o_(r[0]);t<0&&(t+=_o);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=_o?n=t+_o:e&&t-n>=_o?n=t-_o:!e&&t>n?n=t+(_o-o_(t-n)):e&&t<n&&(n=t-(_o-o_(n-t))),r[0]=t,r[1]=n}var Xn=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){a=a||0,a>0&&(this._ux=pi(a/Ig/e)||0,this._uy=pi(a/Ig/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(me.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=pi(e-this._xi),n=pi(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(me.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(me.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(me.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),Ec[0]=n,Ec[1]=i,mw(Ec,o),n=Ec[0],i=Ec[1];var l=i-n;return this.addData(me.A,e,t,a,a,n,l,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=wl(i)*a+e,this._yi=Tl(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(me.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(me.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&i_&&(this.data=new Float32Array(t));for(var a=0;a<t;a++)this.data[a]=e[a];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,a=0,n=this._len,i=0;i<t;i++)a+=e[i].len();i_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a));for(var i=0;i<t;i++)for(var o=e[i].data,l=0;l<o.length;l++)this.data[n++]=o[l];this._len=n},r.prototype.addData=function(e,t,a,n,i,o,l,s,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var h=0;h<arguments.length;h++)c[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,i_&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Mn[0]=Mn[1]=Ln[0]=Ln[1]=Number.MAX_VALUE,fo[0]=fo[1]=Rn[0]=Rn[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var l=e[o++],s=o===1;switch(s&&(t=e[o],a=e[o+1],n=t,i=a),l){case me.M:t=n=e[o++],a=i=e[o++],Ln[0]=n,Ln[1]=i,Rn[0]=n,Rn[1]=i;break;case me.L:fL(t,a,e[o],e[o+1],Ln,Rn),t=e[o++],a=e[o++];break;case me.C:cF(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ln,Rn),t=e[o++],a=e[o++];break;case me.Q:hF(t,a,e[o++],e[o++],e[o],e[o+1],Ln,Rn),t=e[o++],a=e[o++];break;case me.A:var u=e[o++],c=e[o++],h=e[o++],d=e[o++],p=e[o++],y=e[o++]+p;o+=1;var m=!e[o++];s&&(n=wl(p)*h+u,i=Tl(p)*d+c),vF(u,c,h,d,p,y,m,Ln,Rn),t=wl(y)*h+u,a=Tl(y)*d+c;break;case me.R:n=t=e[o++],i=a=e[o++];var _=e[o++],b=e[o++];fL(n,i,n+_,i+b,Ln,Rn);break;case me.Z:t=n,a=i;break}Ti(Mn,Mn,Ln),Ai(fo,fo,Rn)}return o===0&&(Mn[0]=Mn[1]=fo[0]=fo[1]=0),new kt(Mn[0],Mn[1],fo[0]-Mn[0],fo[1]-Mn[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,a=this._ux,n=this._uy,i=0,o=0,l=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,d=0;d<t;){var p=e[d++],y=d===1;y&&(i=e[d],o=e[d+1],l=i,s=o);var m=-1;switch(p){case me.M:i=l=e[d++],o=s=e[d++];break;case me.L:{var _=e[d++],b=e[d++],x=_-i,w=b-o;(pi(x)>a||pi(w)>n||d===t-1)&&(m=Math.sqrt(x*x+w*w),i=_,o=b);break}case me.C:{var A=e[d++],M=e[d++],_=e[d++],b=e[d++],D=e[d++],L=e[d++];m=LH(i,o,A,M,_,b,D,L,10),i=D,o=L;break}case me.Q:{var A=e[d++],M=e[d++],_=e[d++],b=e[d++];m=EH(i,o,A,M,_,b,10),i=_,o=b;break}case me.A:var R=e[d++],E=e[d++],O=e[d++],P=e[d++],k=e[d++],V=e[d++],H=V+k;d+=1,y&&(l=wl(k)*O+R,s=Tl(k)*P+E),m=n_(O,P)*a_(_o,Math.abs(V)),i=wl(H)*O+R,o=Tl(H)*P+E;break;case me.R:{l=i=e[d++],s=o=e[d++];var U=e[d++],z=e[d++];m=U*2+z*2;break}case me.Z:{var x=l-i,w=s-o;m=Math.sqrt(x*x+w*w),i=l,o=s;break}}m>=0&&(u[h++]=m,c+=m)}return this._pathLen=c,c},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,l,s,u,c,h,d,p=t<1,y,m,_=0,b=0,x,w=0,A,M;if(!(p&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,m=this._pathLen,x=t*m,!x)))t:for(var D=0;D<o;){var L=a[D++],R=D===1;switch(R&&(u=a[D],c=a[D+1],l=u,s=c),L!==me.L&&w>0&&(e.lineTo(A,M),w=0),L){case me.M:l=u=a[D++],s=c=a[D++],e.moveTo(u,c);break;case me.L:{h=a[D++],d=a[D++];var E=pi(h-u),O=pi(d-c);if(E>n||O>i){if(p){var P=y[b++];if(_+P>x){var k=(x-_)/P;e.lineTo(u*(1-k)+h*k,c*(1-k)+d*k);break t}_+=P}e.lineTo(h,d),u=h,c=d,w=0}else{var V=E*E+O*O;V>w&&(A=h,M=d,w=V)}break}case me.C:{var H=a[D++],U=a[D++],z=a[D++],Y=a[D++],j=a[D++],$=a[D++];if(p){var P=y[b++];if(_+P>x){var k=(x-_)/P;Bo(u,H,z,j,k,bl),Bo(c,U,Y,$,k,xl),e.bezierCurveTo(bl[1],xl[1],bl[2],xl[2],bl[3],xl[3]);break t}_+=P}e.bezierCurveTo(H,U,z,Y,j,$),u=j,c=$;break}case me.Q:{var H=a[D++],U=a[D++],z=a[D++],Y=a[D++];if(p){var P=y[b++];if(_+P>x){var k=(x-_)/P;zh(u,H,z,k,bl),zh(c,U,Y,k,xl),e.quadraticCurveTo(bl[1],xl[1],bl[2],xl[2]);break t}_+=P}e.quadraticCurveTo(H,U,z,Y),u=z,c=Y;break}case me.A:var tt=a[D++],F=a[D++],W=a[D++],at=a[D++],lt=a[D++],ct=a[D++],bt=a[D++],Pt=!a[D++],wt=W>at?W:at,pt=pi(W-at)>.001,Ot=lt+ct,yt=!1;if(p){var P=y[b++];_+P>x&&(Ot=lt+ct*(x-_)/P,yt=!0),_+=P}if(pt&&e.ellipse?e.ellipse(tt,F,W,at,bt,lt,Ot,Pt):e.arc(tt,F,wt,lt,Ot,Pt),yt)break t;R&&(l=wl(lt)*W+tt,s=Tl(lt)*at+F),u=wl(Ot)*W+tt,c=Tl(Ot)*at+F;break;case me.R:l=u=a[D],s=c=a[D+1],h=a[D++],d=a[D++];var Dt=a[D++],ce=a[D++];if(p){var P=y[b++];if(_+P>x){var Zt=x-_;e.moveTo(h,d),e.lineTo(h+a_(Zt,Dt),d),Zt-=Dt,Zt>0&&e.lineTo(h+Dt,d+a_(Zt,ce)),Zt-=ce,Zt>0&&e.lineTo(h+n_(Dt-Zt,0),d+ce),Zt-=Dt,Zt>0&&e.lineTo(h,d+n_(ce-Zt,0));break t}_+=P}e.rect(h,d,Dt,ce);break;case me.Z:if(p){var P=y[b++];if(_+P>x){var k=(x-_)/P;e.lineTo(u*(1-k)+l*k,c*(1-k)+s*k);break t}_+=P}e.closePath(),u=l,c=s}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=me,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})();function bo(r,e,t,a,n,i,o){if(n===0)return!1;var l=n,s=0,u=r;if(o>e+l&&o>a+l||o<e-l&&o<a-l||i>r+l&&i>t+l||i<r-l&&i<t-l)return!1;if(r!==t)s=(e-a)/(r-t),u=(r*a-t*e)/(r-t);else return Math.abs(i-r)<=l/2;var c=s*i-o+u,h=c*c/(s*s+1);return h<=l/2*l/2}function dF(r,e,t,a,n,i,o,l,s,u,c){if(s===0)return!1;var h=s;if(c>e+h&&c>a+h&&c>i+h&&c>l+h||c<e-h&&c<a-h&&c<i-h&&c<l-h||u>r+h&&u>t+h&&u>n+h&&u>o+h||u<r-h&&u<t-h&&u<n-h&&u<o-h)return!1;var d=_P(r,e,t,a,n,i,o,l,u,c,null);return d<=h/2}function rz(r,e,t,a,n,i,o,l,s){if(o===0)return!1;var u=o;if(s>e+u&&s>a+u&&s>i+u||s<e-u&&s<a-u&&s<i-u||l>r+u&&l>t+u&&l>n+u||l<r-u&&l<t-u&&l<n-u)return!1;var c=bP(r,e,t,a,n,i,l,s,null);return c<=u/2}var vL=Math.PI*2;function _a(r){return r%=vL,r<0&&(r+=vL),r}var Ic=Math.PI*2;function pF(r,e,t,a,n,i,o,l,s){if(o===0)return!1;var u=o;l-=r,s-=e;var c=Math.sqrt(l*l+s*s);if(c-u>t||c+u<t)return!1;if(Math.abs(a-n)%Ic<1e-4)return!0;if(i){var h=a;a=_a(n),n=_a(h)}else a=_a(a),n=_a(n);a>n&&(n+=Ic);var d=Math.atan2(s,l);return d<0&&(d+=Ic),d>=a&&d<=n||d+Ic>=a&&d+Ic<=n}function xi(r,e,t,a,n,i){if(i>e&&i>a||i<e&&i<a||a===e)return 0;var o=(i-e)/(a-e),l=a<e?1:-1;(o===1||o===0)&&(l=a<e?.5:-.5);var s=o*(t-r)+r;return s===n?1/0:s>n?l:0}var co=Xn.CMD,Al=Math.PI*2,gF=1e-4;function yF(r,e){return Math.abs(r-e)<gF}var Vr=[-1,-1,-1],Fa=[-1,-1];function mF(){var r=Fa[0];Fa[0]=Fa[1],Fa[1]=r}function _F(r,e,t,a,n,i,o,l,s,u){if(u>e&&u>a&&u>i&&u>l||u<e&&u<a&&u<i&&u<l)return 0;var c=Mg(e,a,i,l,u,Vr);if(c===0)return 0;for(var h=0,d=-1,p=void 0,y=void 0,m=0;m<c;m++){var _=Vr[m],b=_===0||_===1?.5:1,x=tr(r,t,n,o,_);x<s||(d<0&&(d=mP(e,a,i,l,Fa),Fa[1]<Fa[0]&&d>1&&mF(),p=tr(e,a,i,l,Fa[0]),d>1&&(y=tr(e,a,i,l,Fa[1]))),d===2?_<Fa[0]?h+=p<e?b:-b:_<Fa[1]?h+=y<p?b:-b:h+=l<y?b:-b:_<Fa[0]?h+=p<e?b:-b:h+=l<p?b:-b)}return h}function SF(r,e,t,a,n,i,o,l){if(l>e&&l>a&&l>i||l<e&&l<a&&l<i)return 0;var s=RH(e,a,i,l,Vr);if(s===0)return 0;var u=SP(e,a,i);if(u>=0&&u<=1){for(var c=0,h=cr(e,a,i,u),d=0;d<s;d++){var p=Vr[d]===0||Vr[d]===1?.5:1,y=cr(r,t,n,Vr[d]);y<o||(Vr[d]<u?c+=h<e?p:-p:c+=i<h?p:-p)}return c}else{var p=Vr[0]===0||Vr[0]===1?.5:1,y=cr(r,t,n,Vr[0]);return y<o?0:i<e?p:-p}}function bF(r,e,t,a,n,i,o,l){if(l-=e,l>t||l<-t)return 0;var s=Math.sqrt(t*t-l*l);Vr[0]=-s,Vr[1]=s;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Al-1e-4){a=0,n=Al;var c=i?1:-1;return o>=Vr[0]+r&&o<=Vr[1]+r?c:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=Al,n+=Al);for(var d=0,p=0;p<2;p++){var y=Vr[p];if(y+r>o){var m=Math.atan2(l,y),c=i?1:-1;m<0&&(m=Al+m),(m>=a&&m<=n||m+Al>=a&&m+Al<=n)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function az(r,e,t,a,n){for(var i=r.data,o=r.len(),l=0,s=0,u=0,c=0,h=0,d,p,y=0;y<o;){var m=i[y++],_=y===1;switch(m===co.M&&y>1&&(t||(l+=xi(s,u,c,h,a,n))),_&&(s=i[y],u=i[y+1],c=s,h=u),m){case co.M:c=i[y++],h=i[y++],s=c,u=h;break;case co.L:if(t){if(bo(s,u,i[y],i[y+1],e,a,n))return!0}else l+=xi(s,u,i[y],i[y+1],a,n)||0;s=i[y++],u=i[y++];break;case co.C:if(t){if(dF(s,u,i[y++],i[y++],i[y++],i[y++],i[y],i[y+1],e,a,n))return!0}else l+=_F(s,u,i[y++],i[y++],i[y++],i[y++],i[y],i[y+1],a,n)||0;s=i[y++],u=i[y++];break;case co.Q:if(t){if(rz(s,u,i[y++],i[y++],i[y],i[y+1],e,a,n))return!0}else l+=SF(s,u,i[y++],i[y++],i[y],i[y+1],a,n)||0;s=i[y++],u=i[y++];break;case co.A:var b=i[y++],x=i[y++],w=i[y++],A=i[y++],M=i[y++],D=i[y++];y+=1;var L=!!(1-i[y++]);d=Math.cos(M)*w+b,p=Math.sin(M)*A+x,_?(c=d,h=p):l+=xi(s,u,d,p,a,n);var R=(a-b)*A/w+b;if(t){if(pF(b,x,A,M,M+D,L,e,R,n))return!0}else l+=bF(b,x,A,M,M+D,L,R,n);s=Math.cos(M+D)*w+b,u=Math.sin(M+D)*A+x;break;case co.R:c=s=i[y++],h=u=i[y++];var E=i[y++],O=i[y++];if(d=c+E,p=h+O,t){if(bo(c,h,d,h,e,a,n)||bo(d,h,d,p,e,a,n)||bo(d,p,c,p,e,a,n)||bo(c,p,c,h,e,a,n))return!0}else l+=xi(d,h,d,p,a,n),l+=xi(c,p,c,h,a,n);break;case co.Z:if(t){if(bo(s,u,c,h,e,a,n))return!0}else l+=xi(s,u,c,h,a,n);s=c,u=h;break}}return!t&&!yF(u,h)&&(l+=xi(s,u,c,h,a,n)||0),l!==0}function xF(r,e,t){return az(r,0,!1,e,t)}function wF(r,e,t,a){return az(r,e,!0,t,a)}var Ng=St({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},rs),TF={style:St({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Py.style)},l_=Yn.concat(["invisible","culling","z","z2","zlevel","parent"]),Ut=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(s){t.buildPath(s,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var l=0;l<l_.length;++l)n[l_[l]]=this[l_[l]];n.__dirty|=ga}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=Yt(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],l=t[o];o==="style"?this.style?rt(this.style,l):this.useStyle(l):o==="shape"?rt(this.shape,l):r.prototype.attrKV.call(this,o,l)}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(t!=="none"){if(vt(t)){var a=Vh(t,0);return a>.5?xb:a>.2?s7:wb}else if(t)return wb}return xb},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(vt(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Vh(t,0)<bb;if(i===o)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Nu},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 Xn(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(a==null||a==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Nu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){l.copy(t);var s=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}s>1e-10&&(l.width+=u/s,l.height+=u/s,l.x-=u/s/2,l.y-=u/s/2)}return l}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var l=this.path;if(this.hasStroke()){var s=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),wF(l,s/u,t,a)))return!0}if(this.hasFill())return xF(l,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Nu,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){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:rt(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Nu)},e.prototype.createStyle=function(t){return cv(Ng,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=rt({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,l){r.prototype._applyStateObj.call(this,t,a,n,i,o,l);var s=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=rt({},n.shape),rt(u,a.shape)):(u=rt({},i?this.shape:n.shape),rt(u,a.shape)):s&&(u=n.shape),u)if(o){this.shape=rt({},this.shape);for(var c={},h=Yt(u),d=0;d<h.length;d++){var p=h[d];typeof u[p]=="object"?this.shape[p]=u[p]:c[p]=u[p]}this._transitionState(t,{shape:c},l)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},e.prototype.getAnimationStyleProps=function(){return TF},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=(function(i){Z(o,i);function o(l){var s=i.call(this,l)||this;return t.init&&t.init.call(s,l),s}return o.prototype.getDefaultStyle=function(){return Tt(t.style)},o.prototype.getDefaultShape=function(){return Tt(t.shape)},o})(e);for(var n in t)typeof t[n]=="function"&&(a.prototype[n]=t[n]);return a},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=ga|nh|Nu})(),e})($a),AF=St({strokeFirst:!0,font:ko,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ng),ef=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return a!=null&&a!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return cv(AF,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var n=dv(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})($a);ef.prototype.type="tspan";var CF=St({x:0,y:0},rs),DF={style:St({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Py.style)};function MF(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var or=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return cv(CF,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=MF(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",l=a[o];return l==null?i[t]:i[t]/i[o]*l},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return DF},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new kt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})($a);or.prototype.type="image";function LF(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,l,s,u,c;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?l=s=u=c=o:o instanceof Array?o.length===1?l=s=u=c=o[0]:o.length===2?(l=u=o[0],s=c=o[1]):o.length===3?(l=o[0],s=c=o[1],u=o[2]):(l=o[0],s=o[1],u=o[2],c=o[3]):l=s=u=c=0;var h;l+s>n&&(h=l+s,l*=n/h,s*=n/h),u+c>n&&(h=u+c,u*=n/h,c*=n/h),s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+c>i&&(h=l+c,l*=i/h,c*=i/h),r.moveTo(t+l,a),r.lineTo(t+n-s,a),s!==0&&r.arc(t+n-s,a+s,s,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+c,a+i),c!==0&&r.arc(t+c,a+i-c,c,Math.PI/2,Math.PI),r.lineTo(t,a+l),l!==0&&r.arc(t+l,a+l,l,Math.PI,Math.PI*1.5)}var Hu=Math.round;function nz(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var l=t&&t.lineWidth;return l&&(Hu(a*2)===Hu(n*2)&&(r.x1=r.x2=Zl(a,l,!0)),Hu(i*2)===Hu(o*2)&&(r.y1=r.y2=Zl(i,l,!0))),r}}function iz(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var l=t&&t.lineWidth;return l&&(r.x=Zl(a,l,!0),r.y=Zl(n,l,!0),r.width=Math.max(Zl(a+i,l,!1)-r.x,i===0?0:1),r.height=Math.max(Zl(n+o,l,!1)-r.y,o===0?0:1)),r}}function Zl(r,e,t){if(!e)return r;var a=Hu(r*2);return(a+Hu(e))%2===0?a/2:(a+(t?1:-1))/2}var RF=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),EF={},Wt=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new RF},e.prototype.buildPath=function(t,a){var n,i,o,l;if(this.subPixelOptimize){var s=iz(EF,a,this.style);n=s.x,i=s.y,o=s.width,l=s.height,s.r=a.r,a=s}else n=a.x,i=a.y,o=a.width,l=a.height;a.r?LF(t,a):t.rect(n,i,o,l)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ut);Wt.prototype.type="rect";var dL={fill:"#000"},pL=2,IF={style:St({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},Py.style)},Xt=(function(r){Z(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=dL,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var a=this._children[t];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var a=this.innerTransformable;return a?a.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,PF(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new kt(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var l=a[o],s=l.getBoundingRect(),u=l.getLocalTransform(n);u?(t.copy(s),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||s.clone(),i.union(s))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||dL},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return rt(t,a),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,a){for(var n=Yt(a),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},rt(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return IF},e.prototype._getOrCreateChild=function(t){var a=this._children[this._childCursor];return(!a||!(a instanceof t))&&(a=new t),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var t=this.style,a=t.font||ko,n=t.padding,i=xL(t),o=rF(i,t),l=s_(t),s=!!t.backgroundColor,u=o.outerHeight,c=o.outerWidth,h=o.contentWidth,d=o.lines,p=o.lineHeight,y=this._defaultStyle;this.isTruncated=!!o.isTruncated;var m=t.x||0,_=t.y||0,b=t.align||y.align||"left",x=t.verticalAlign||y.verticalAlign||"top",w=m,A=Pu(_,o.contentHeight,x);if(l||n){var M=oh(m,c,b),D=Pu(_,u,x);l&&this._renderBackground(t,t,M,D,c,u)}A+=p/2,n&&(w=bL(m,b,n),x==="top"?A+=n[0]:x==="bottom"&&(A-=n[2]));for(var L=0,R=!1,E=SL("fill"in t?t.fill:(R=!0,y.fill)),O=_L("stroke"in t?t.stroke:!s&&(!y.autoStroke||R)?(L=pL,y.stroke):null),P=t.textShadowBlur>0,k=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),V=o.calculatedLineHeight,H=0;H<d.length;H++){var U=this._getOrCreateChild(ef),z=U.createStyle();U.useStyle(z),z.text=d[H],z.x=w,z.y=A,z.textAlign=b,z.textBaseline="middle",z.opacity=t.opacity,z.strokeFirst=!0,P&&(z.shadowBlur=t.textShadowBlur||0,z.shadowColor=t.textShadowColor||"transparent",z.shadowOffsetX=t.textShadowOffsetX||0,z.shadowOffsetY=t.textShadowOffsetY||0),z.stroke=O,z.fill=E,O&&(z.lineWidth=t.lineWidth||L,z.lineDash=t.lineDash,z.lineDashOffset=t.lineDashOffset||0),z.font=a,yL(z,t),A+=p,k&&U.setBoundingRect(new kt(oh(z.x,h,z.textAlign),Pu(z.y,V,z.textBaseline),h,V))}},e.prototype._updateRichTexts=function(){var t=this.style,a=xL(t),n=iF(a,t),i=n.width,o=n.outerWidth,l=n.outerHeight,s=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,d=t.align||h.align,p=t.verticalAlign||h.verticalAlign;this.isTruncated=!!n.isTruncated;var y=oh(u,o,d),m=Pu(c,l,p),_=y,b=m;s&&(_+=s[3],b+=s[0]);var x=_+i;s_(t)&&this._renderBackground(t,t,y,m,o,l);for(var w=!!t.backgroundColor,A=0;A<n.lines.length;A++){for(var M=n.lines[A],D=M.tokens,L=D.length,R=M.lineHeight,E=M.width,O=0,P=_,k=x,V=L-1,H=void 0;O<L&&(H=D[O],!H.align||H.align==="left");)this._placeToken(H,t,R,b,P,"left",w),E-=H.width,P+=H.width,O++;for(;V>=0&&(H=D[V],H.align==="right");)this._placeToken(H,t,R,b,k,"right",w),E-=H.width,k-=H.width,V--;for(P+=(i-(P-_)-(x-k)-E)/2;O<=V;)H=D[O],this._placeToken(H,t,R,b,P+H.width/2,"center",w),P+=H.width,O++;b+=R}},e.prototype._placeToken=function(t,a,n,i,o,l,s){var u=a.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,h=i+n/2;c==="top"?h=i+t.height/2:c==="bottom"&&(h=i+n-t.height/2);var d=!t.isLineHolder&&s_(u);d&&this._renderBackground(u,a,l==="right"?o-t.width:l==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var p=!!u.backgroundColor,y=t.textPadding;y&&(o=bL(o,l,y),h-=t.height/2-y[0]-t.innerHeight/2);var m=this._getOrCreateChild(ef),_=m.createStyle();m.useStyle(_);var b=this._defaultStyle,x=!1,w=0,A=SL("fill"in u?u.fill:"fill"in a?a.fill:(x=!0,b.fill)),M=_L("stroke"in u?u.stroke:"stroke"in a?a.stroke:!p&&!s&&(!b.autoStroke||x)?(w=pL,b.stroke):null),D=u.textShadowBlur>0||a.textShadowBlur>0;_.text=t.text,_.x=o,_.y=h,D&&(_.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,_.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),_.textAlign=l,_.textBaseline="middle",_.font=t.font||ko,_.opacity=pn(u.opacity,a.opacity,1),yL(_,u),M&&(_.lineWidth=pn(u.lineWidth,a.lineWidth,w),_.lineDash=Rt(u.lineDash,a.lineDash),_.lineDashOffset=a.lineDashOffset||0,_.stroke=M),A&&(_.fill=A);var L=t.contentWidth,R=t.contentHeight;m.setBoundingRect(new kt(oh(_.x,L,_.textAlign),Pu(_.y,R,_.textBaseline),L,R))},e.prototype._renderBackground=function(t,a,n,i,o,l){var s=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=s&&s.image,d=s&&!h,p=t.borderRadius,y=this,m,_;if(d||t.lineHeight||u&&c){m=this._getOrCreateChild(Wt),m.useStyle(m.createStyle()),m.style.fill=null;var b=m.shape;b.x=n,b.y=i,b.width=o,b.height=l,b.r=p,m.dirtyShape()}if(d){var x=m.style;x.fill=s||null,x.fillOpacity=Rt(t.fillOpacity,1)}else if(h){_=this._getOrCreateChild(or),_.onload=function(){y.dirtyStyle()};var w=_.style;w.image=s.image,w.x=n,w.y=i,w.width=o,w.height=l}if(u&&c){var x=m.style;x.lineWidth=u,x.stroke=c,x.strokeOpacity=Rt(t.strokeOpacity,1),x.lineDash=t.borderDash,x.lineDashOffset=t.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var A=(m||_).style;A.shadowBlur=t.shadowBlur||0,A.shadowColor=t.shadowColor||"transparent",A.shadowOffsetX=t.shadowOffsetX||0,A.shadowOffsetY=t.shadowOffsetY||0,A.opacity=pn(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return lz(t)&&(a=[t.fontStyle,t.fontWeight,oz(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Wa(a)||t.textFont||t.font},e})($a),OF={left:!0,right:1,center:1},NF={top:1,bottom:1,middle:1},gL=["fontStyle","fontWeight","fontSize","fontFamily"];function oz(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Qx+"px":r+"px"}function yL(r,e){for(var t=0;t<gL.length;t++){var a=gL[t],n=e[a];n!=null&&(r[a]=n)}}function lz(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function PF(r){return mL(r),N(r.rich,mL),r}function mL(r){if(r){r.font=Xt.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||OF[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||NF[t]?t:"top";var a=r.padding;a&&(r.padding=Cy(r.padding))}}function _L(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function SL(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function bL(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function xL(r){var e=r.text;return e!=null&&(e+=""),e}function s_(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Mt=$t(),Ib=function(r,e,t,a){if(a){var n=Mt(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=Mt(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},wL=1,TL={},sz=$t(),_w=$t(),Sw=0,gv=1,ky=2,jr=["emphasis","blur","select"],Fh=["normal","emphasis","blur","select"],vf=10,zF=9,as="highlight",sg="downplay",Ah="select",ug="unselect",Ch="toggleSelect";function du(r){return r!=null&&r!=="none"}function By(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function uz(r){By(r,"emphasis",ky)}function fz(r){r.hoverState===ky&&By(r,"normal",Sw)}function bw(r){By(r,"blur",gv)}function cz(r){r.hoverState===gv&&By(r,"normal",Sw)}function kF(r){r.selected=!0}function BF(r){r.selected=!1}function AL(r,e,t){e(r,t)}function Bi(r,e,t){AL(r,e,t),r.isGroup&&r.traverse(function(a){AL(a,e,t)})}function Pg(r,e){switch(e){case"emphasis":r.hoverState=ky;break;case"normal":r.hoverState=Sw;break;case"blur":r.hoverState=gv;break;case"select":r.selected=!0}}function VF(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var l=e[o],s=n[l];i[l]=s??(a&&a[l])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function GF(r,e,t,a){var n=t&&Bt(t,"select")>=0,i=!1;if(r instanceof Ut){var o=sz(r),l=n&&o.selectFill||o.normalFill,s=n&&o.selectStroke||o.normalStroke;if(du(l)||du(s)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=rt({},a),u=rt({},u),u.fill=l):!du(u.fill)&&du(l)?(i=!0,a=rt({},a),u=rt({},u),u.fill=Rg(l)):!du(u.stroke)&&du(s)&&(i||(a=rt({},a),u=rt({},u)),u.stroke=Rg(s)),a.style=u}}if(a&&a.z2==null){i||(a=rt({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??vf)}return a}function HF(r,e,t){if(t&&t.z2==null){t=rt({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??zF)}return t}function FF(r,e,t){var a=Bt(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:VF(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=rt({},t),o=rt({opacity:a?n:i.opacity*.1},o),t.style=o),t}function u_(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return GF(this,r,e,t);if(r==="blur")return FF(this,r,t);if(r==="select")return HF(this,r,t)}return t}function hs(r){r.stateProxy=u_;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=u_),t&&(t.stateProxy=u_)}function CL(r,e){!pz(r,e)&&!r.__highByOuter&&Bi(r,uz)}function DL(r,e){!pz(r,e)&&!r.__highByOuter&&Bi(r,fz)}function Ei(r,e){r.__highByOuter|=1<<(e||0),Bi(r,uz)}function Ii(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Bi(r,fz)}function hz(r){Bi(r,bw)}function xw(r){Bi(r,cz)}function vz(r){Bi(r,kF)}function dz(r){Bi(r,BF)}function pz(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function gz(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=_w(i),l=n==="series",s=l?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!l&&a.push(s),o.isBlured&&(s.group.traverse(function(u){cz(u)}),l&&t.push(i)),o.isBlured=!1}),N(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Ob(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,c){for(var h=0;h<c.length;h++){var d=u.getItemGraphicEl(c[h]);d&&xw(d)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),l=o.coordinateSystem;l&&l.master&&(l=l.master);var s=[];n.eachSeries(function(u){var c=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var d=h&&l?h===l:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!d||e==="series"&&c)){var p=a.getViewOfSeriesModel(u);if(p.group.traverse(function(_){_.__highByOuter&&c&&e==="self"||bw(_)}),Sr(e))i(u.getData(),e);else if(xt(e))for(var y=Yt(e),m=0;m<y.length;m++)i(u.getData(y[m]),e[y[m]]);s.push(u),_w(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u!=="series"){var h=a.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(s,!0,n)}})}}function Nb(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){_w(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){bw(i)})}}}function UF(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=fs(n,e);i=(it(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var l=n.count(),s=0;!o&&s<l;)o=n.getItemGraphicEl(s++);if(o){var u=Mt(o);Ob(a,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);c!=null&&Ob(a,c,h,t)}}}function ww(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var l=o.findHighDownDispatchers(t),s,u=0;u<l.length;u++)if(Mt(l[u]).focus==="self"){s=!0;break}return{focusSelf:s,dispatchers:l}}function YF(r,e,t){var a=Mt(r),n=ww(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&Nb(a.componentMainType,a.componentIndex,t),N(i,function(l){return CL(l,e)})):(Ob(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&Nb(a.componentMainType,a.componentIndex,t),CL(r,e))}function jF(r,e,t){gz(t);var a=Mt(r),n=ww(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?N(n,function(i){return DL(i,e)}):DL(r,e)}function XF(r,e,t){if(zb(e)){var a=e.dataType,n=r.getData(a),i=fs(n,e);it(i)||(i=[i]),r[e.type===Ch?"toggleSelect":e.type===Ah?"select":"unselect"](i,a)}}function ML(r){var e=r.getAllData();N(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?vz(i):dz(i)})})}function WF(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();N(a,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var l={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(l.dataType=i),e.push(l)}})}),e}function Io(r,e,t){ql(r,!0),Bi(r,hs),Pb(r,e,t)}function ZF(r){ql(r,!1)}function Ee(r,e,t,a){a?ZF(r):Io(r,e,t)}function Pb(r,e,t){var a=Mt(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var LL=["emphasis","blur","select"],qF={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function br(r,e,t,a){t=t||"itemStyle";for(var n=0;n<LL.length;n++){var i=LL[n],o=e.getModel([i,t]),l=r.ensureState(i);l.style=a?a(o):o[qF[t]]()}}function ql(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function Uh(r){return!!(r&&r.__highDownDispatcher)}function $F(r,e,t){var a=Mt(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function KF(r){var e=TL[r];return e==null&&wL<=32&&(e=TL[r]=wL++),e}function zb(r){var e=r.type;return e===Ah||e===ug||e===Ch}function RL(r){var e=r.type;return e===as||e===sg}function QF(r){var e=sz(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var pu=Xn.CMD,JF=[[],[],[]],EL=Math.sqrt,tU=Math.atan2;function yz(r,e){if(e){var t=r.data,a=r.len(),n,i,o,l,s,u,c=pu.M,h=pu.C,d=pu.L,p=pu.R,y=pu.A,m=pu.Q;for(o=0,l=0;o<a;){switch(n=t[o++],l=o,i=0,n){case c:i=1;break;case d:i=1;break;case h:i=3;break;case m:i=2;break;case y:var _=e[4],b=e[5],x=EL(e[0]*e[0]+e[1]*e[1]),w=EL(e[2]*e[2]+e[3]*e[3]),A=tU(-e[1]/w,e[0]/x);t[o]*=x,t[o++]+=_,t[o]*=w,t[o++]+=b,t[o++]*=x,t[o++]*=w,t[o++]+=A,t[o++]+=A,o+=2,l=o;break;case p:u[0]=t[o++],u[1]=t[o++],hr(u,u,e),t[l++]=u[0],t[l++]=u[1],u[0]+=t[o++],u[1]+=t[o++],hr(u,u,e),t[l++]=u[0],t[l++]=u[1]}for(s=0;s<i;s++){var M=JF[s];M[0]=t[o++],M[1]=t[o++],hr(M,M,e),t[l++]=M[0],t[l++]=M[1]}}r.increaseVersion()}}var f_=Math.sqrt,cp=Math.sin,hp=Math.cos,Oc=Math.PI;function IL(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function kb(r,e){return(r[0]*e[0]+r[1]*e[1])/(IL(r)*IL(e))}function OL(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(kb(r,e))}function NL(r,e,t,a,n,i,o,l,s,u,c){var h=s*(Oc/180),d=hp(h)*(r-t)/2+cp(h)*(e-a)/2,p=-1*cp(h)*(r-t)/2+hp(h)*(e-a)/2,y=d*d/(o*o)+p*p/(l*l);y>1&&(o*=f_(y),l*=f_(y));var m=(n===i?-1:1)*f_((o*o*(l*l)-o*o*(p*p)-l*l*(d*d))/(o*o*(p*p)+l*l*(d*d)))||0,_=m*o*p/l,b=m*-l*d/o,x=(r+t)/2+hp(h)*_-cp(h)*b,w=(e+a)/2+cp(h)*_+hp(h)*b,A=OL([1,0],[(d-_)/o,(p-b)/l]),M=[(d-_)/o,(p-b)/l],D=[(-1*d-_)/o,(-1*p-b)/l],L=OL(M,D);if(kb(M,D)<=-1&&(L=Oc),kb(M,D)>=1&&(L=0),L<0){var R=Math.round(L/Oc*1e6)/1e6;L=Oc*2+R%2*Oc}c.addData(u,x,w,o,l,A,L,h,i)}var eU=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,rU=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function aU(r){var e=new Xn;if(!r)return e;var t=0,a=0,n=t,i=a,o,l=Xn.CMD,s=r.match(eU);if(!s)return e;for(var u=0;u<s.length;u++){for(var c=s[u],h=c.charAt(0),d=void 0,p=c.match(rU)||[],y=p.length,m=0;m<y;m++)p[m]=parseFloat(p[m]);for(var _=0;_<y;){var b=void 0,x=void 0,w=void 0,A=void 0,M=void 0,D=void 0,L=void 0,R=t,E=a,O=void 0,P=void 0;switch(h){case"l":t+=p[_++],a+=p[_++],d=l.L,e.addData(d,t,a);break;case"L":t=p[_++],a=p[_++],d=l.L,e.addData(d,t,a);break;case"m":t+=p[_++],a+=p[_++],d=l.M,e.addData(d,t,a),n=t,i=a,h="l";break;case"M":t=p[_++],a=p[_++],d=l.M,e.addData(d,t,a),n=t,i=a,h="L";break;case"h":t+=p[_++],d=l.L,e.addData(d,t,a);break;case"H":t=p[_++],d=l.L,e.addData(d,t,a);break;case"v":a+=p[_++],d=l.L,e.addData(d,t,a);break;case"V":a=p[_++],d=l.L,e.addData(d,t,a);break;case"C":d=l.C,e.addData(d,p[_++],p[_++],p[_++],p[_++],p[_++],p[_++]),t=p[_-2],a=p[_-1];break;case"c":d=l.C,e.addData(d,p[_++]+t,p[_++]+a,p[_++]+t,p[_++]+a,p[_++]+t,p[_++]+a),t+=p[_-2],a+=p[_-1];break;case"S":b=t,x=a,O=e.len(),P=e.data,o===l.C&&(b+=t-P[O-4],x+=a-P[O-3]),d=l.C,R=p[_++],E=p[_++],t=p[_++],a=p[_++],e.addData(d,b,x,R,E,t,a);break;case"s":b=t,x=a,O=e.len(),P=e.data,o===l.C&&(b+=t-P[O-4],x+=a-P[O-3]),d=l.C,R=t+p[_++],E=a+p[_++],t+=p[_++],a+=p[_++],e.addData(d,b,x,R,E,t,a);break;case"Q":R=p[_++],E=p[_++],t=p[_++],a=p[_++],d=l.Q,e.addData(d,R,E,t,a);break;case"q":R=p[_++]+t,E=p[_++]+a,t+=p[_++],a+=p[_++],d=l.Q,e.addData(d,R,E,t,a);break;case"T":b=t,x=a,O=e.len(),P=e.data,o===l.Q&&(b+=t-P[O-4],x+=a-P[O-3]),t=p[_++],a=p[_++],d=l.Q,e.addData(d,b,x,t,a);break;case"t":b=t,x=a,O=e.len(),P=e.data,o===l.Q&&(b+=t-P[O-4],x+=a-P[O-3]),t+=p[_++],a+=p[_++],d=l.Q,e.addData(d,b,x,t,a);break;case"A":w=p[_++],A=p[_++],M=p[_++],D=p[_++],L=p[_++],R=t,E=a,t=p[_++],a=p[_++],d=l.A,NL(R,E,t,a,D,L,w,A,M,d,e);break;case"a":w=p[_++],A=p[_++],M=p[_++],D=p[_++],L=p[_++],R=t,E=a,t+=p[_++],a+=p[_++],d=l.A,NL(R,E,t,a,D,L,w,A,M,d,e);break}}(h==="z"||h==="Z")&&(d=l.Z,e.addData(d),t=n,a=i),o=d}return e.toStatic(),e}var mz=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Ut);function _z(r){return r.setData!=null}function Sz(r,e){var t=aU(r),a=rt({},e);return a.buildPath=function(n){if(_z(n)){n.setData(t.data);var i=n.getContext();i&&n.rebuildPath(i,1)}else{var i=n;t.rebuildPath(i,1)}},a.applyTransform=function(n){yz(t,n),this.dirtyShape()},a}function bz(r,e){return new mz(Sz(r,e))}function nU(r,e){var t=Sz(r,e),a=(function(n){Z(i,n);function i(o){var l=n.call(this,o)||this;return l.applyTransform=t.applyTransform,l.buildPath=t.buildPath,l}return i})(mz);return a}function iU(r,e){for(var t=[],a=r.length,n=0;n<a;n++){var i=r[n];t.push(i.getUpdatedPathProxy(!0))}var o=new Ut(e);return o.createPathProxy(),o.buildPath=function(l){if(_z(l)){l.appendPath(t);var s=l.getContext();s&&l.rebuildPath(s,1)}},o}function Tw(r,e){e=e||{};var t=new Ut;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?yz(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var oU=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Wn=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new oU},e.prototype.buildPath=function(t,a){t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,Math.PI*2)},e})(Ut);Wn.prototype.type="circle";var lU=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),yv=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new lU},e.prototype.buildPath=function(t,a){var n=.5522848,i=a.cx,o=a.cy,l=a.rx,s=a.ry,u=l*n,c=s*n;t.moveTo(i-l,o),t.bezierCurveTo(i-l,o-c,i-u,o-s,i,o-s),t.bezierCurveTo(i+u,o-s,i+l,o-c,i+l,o),t.bezierCurveTo(i+l,o+c,i+u,o+s,i,o+s),t.bezierCurveTo(i-u,o+s,i-l,o+c,i-l,o),t.closePath()},e})(Ut);yv.prototype.type="ellipse";var xz=Math.PI,c_=xz*2,Cl=Math.sin,gu=Math.cos,sU=Math.acos,Ar=Math.atan2,PL=Math.abs,Dh=Math.sqrt,lh=Math.max,En=Math.min,un=1e-4;function uU(r,e,t,a,n,i,o,l){var s=t-r,u=a-e,c=o-n,h=l-i,d=h*s-c*u;if(!(d*d<un))return d=(c*(e-i)-h*(r-n))/d,[r+d*s,e+d*u]}function vp(r,e,t,a,n,i,o){var l=r-t,s=e-a,u=(o?i:-i)/Dh(l*l+s*s),c=u*s,h=-u*l,d=r+c,p=e+h,y=t+c,m=a+h,_=(d+y)/2,b=(p+m)/2,x=y-d,w=m-p,A=x*x+w*w,M=n-i,D=d*m-y*p,L=(w<0?-1:1)*Dh(lh(0,M*M*A-D*D)),R=(D*w-x*L)/A,E=(-D*x-w*L)/A,O=(D*w+x*L)/A,P=(-D*x+w*L)/A,k=R-_,V=E-b,H=O-_,U=P-b;return k*k+V*V>H*H+U*U&&(R=O,E=P),{cx:R,cy:E,x0:-c,y0:-h,x1:R*(n/M-1),y1:E*(n/M-1)}}function fU(r){var e;if(it(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function cU(r,e){var t,a=lh(e.r,0),n=lh(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var l=a;a=n,n=l}var s=e.startAngle,u=e.endAngle;if(!(isNaN(s)||isNaN(u))){var c=e.cx,h=e.cy,d=!!e.clockwise,p=PL(u-s),y=p>c_&&p%c_;if(y>un&&(p=y),!(a>un))r.moveTo(c,h);else if(p>c_-un)r.moveTo(c+a*gu(s),h+a*Cl(s)),r.arc(c,h,a,s,u,!d),n>un&&(r.moveTo(c+n*gu(u),h+n*Cl(u)),r.arc(c,h,n,u,s,d));else{var m=void 0,_=void 0,b=void 0,x=void 0,w=void 0,A=void 0,M=void 0,D=void 0,L=void 0,R=void 0,E=void 0,O=void 0,P=void 0,k=void 0,V=void 0,H=void 0,U=a*gu(s),z=a*Cl(s),Y=n*gu(u),j=n*Cl(u),$=p>un;if($){var tt=e.cornerRadius;tt&&(t=fU(tt),m=t[0],_=t[1],b=t[2],x=t[3]);var F=PL(a-n)/2;if(w=En(F,b),A=En(F,x),M=En(F,m),D=En(F,_),E=L=lh(w,A),O=R=lh(M,D),(L>un||R>un)&&(P=a*gu(u),k=a*Cl(u),V=n*gu(s),H=n*Cl(s),p<xz)){var W=uU(U,z,V,H,P,k,Y,j);if(W){var at=U-W[0],lt=z-W[1],ct=P-W[0],bt=k-W[1],Pt=1/Cl(sU((at*ct+lt*bt)/(Dh(at*at+lt*lt)*Dh(ct*ct+bt*bt)))/2),wt=Dh(W[0]*W[0]+W[1]*W[1]);E=En(L,(a-wt)/(Pt+1)),O=En(R,(n-wt)/(Pt-1))}}}if(!$)r.moveTo(c+U,h+z);else if(E>un){var pt=En(b,E),Ot=En(x,E),yt=vp(V,H,U,z,a,pt,d),Dt=vp(P,k,Y,j,a,Ot,d);r.moveTo(c+yt.cx+yt.x0,h+yt.cy+yt.y0),E<L&&pt===Ot?r.arc(c+yt.cx,h+yt.cy,E,Ar(yt.y0,yt.x0),Ar(Dt.y0,Dt.x0),!d):(pt>0&&r.arc(c+yt.cx,h+yt.cy,pt,Ar(yt.y0,yt.x0),Ar(yt.y1,yt.x1),!d),r.arc(c,h,a,Ar(yt.cy+yt.y1,yt.cx+yt.x1),Ar(Dt.cy+Dt.y1,Dt.cx+Dt.x1),!d),Ot>0&&r.arc(c+Dt.cx,h+Dt.cy,Ot,Ar(Dt.y1,Dt.x1),Ar(Dt.y0,Dt.x0),!d))}else r.moveTo(c+U,h+z),r.arc(c,h,a,s,u,!d);if(!(n>un)||!$)r.lineTo(c+Y,h+j);else if(O>un){var pt=En(m,O),Ot=En(_,O),yt=vp(Y,j,P,k,n,-Ot,d),Dt=vp(U,z,V,H,n,-pt,d);r.lineTo(c+yt.cx+yt.x0,h+yt.cy+yt.y0),O<R&&pt===Ot?r.arc(c+yt.cx,h+yt.cy,O,Ar(yt.y0,yt.x0),Ar(Dt.y0,Dt.x0),!d):(Ot>0&&r.arc(c+yt.cx,h+yt.cy,Ot,Ar(yt.y0,yt.x0),Ar(yt.y1,yt.x1),!d),r.arc(c,h,n,Ar(yt.cy+yt.y1,yt.cx+yt.x1),Ar(Dt.cy+Dt.y1,Dt.cx+Dt.x1),d),pt>0&&r.arc(c+Dt.cx,h+Dt.cy,pt,Ar(Dt.y1,Dt.x1),Ar(Dt.y0,Dt.x0),!d))}else r.lineTo(c+Y,h+j),r.arc(c,h,n,u,s,d)}r.closePath()}}}var hU=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})(),Or=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new hU},e.prototype.buildPath=function(t,a){cU(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ut);Or.prototype.type="sector";var vU=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),df=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new vU},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e})(Ut);df.prototype.type="ring";function dU(r,e,t,a){var n=[],i=[],o=[],l=[],s,u,c,h;if(a){c=[1/0,1/0],h=[-1/0,-1/0];for(var d=0,p=r.length;d<p;d++)Ti(c,c,r[d]),Ai(h,h,r[d]);Ti(c,c,a[0]),Ai(h,h,a[1])}for(var d=0,p=r.length;d<p;d++){var y=r[d];if(t)s=r[d?d-1:p-1],u=r[(d+1)%p];else if(d===0||d===p-1){n.push(Hn(r[d]));continue}else s=r[d-1],u=r[d+1];wo(i,u,s),mh(i,i,e);var m=Ag(y,s),_=Ag(y,u),b=m+_;b!==0&&(m/=b,_/=b),mh(o,i,-m),mh(l,i,_);var x=lb([],y,o),w=lb([],y,l);a&&(Ai(x,x,c),Ti(x,x,h),Ai(w,w,c),Ti(w,w,h)),n.push(x),n.push(w)}return t&&n.push(n.shift()),n}function wz(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=dU(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,l=0;l<(t?o:o-1);l++){var s=i[l*2],u=i[l*2+1],c=n[(l+1)%o];r.bezierCurveTo(s[0],s[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var l=1,h=n.length;l<h;l++)r.lineTo(n[l][0],n[l][1])}t&&r.closePath()}}var pU=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Nr=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new pU},e.prototype.buildPath=function(t,a){wz(t,a,!0)},e})(Ut);Nr.prototype.type="polygon";var gU=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),zr=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new gU},e.prototype.buildPath=function(t,a){wz(t,a,!1)},e})(Ut);zr.prototype.type="polyline";var yU={},mU=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Qe=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mU},e.prototype.buildPath=function(t,a){var n,i,o,l;if(this.subPixelOptimize){var s=nz(yU,a,this.style);n=s.x1,i=s.y1,o=s.x2,l=s.y2}else n=a.x1,i=a.y1,o=a.x2,l=a.y2;var u=a.percent;u!==0&&(t.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,l=i*(1-u)+l*u),t.lineTo(o,l))},e.prototype.pointAt=function(t){var a=this.shape;return[a.x1*(1-t)+a.x2*t,a.y1*(1-t)+a.y2*t]},e})(Ut);Qe.prototype.type="line";var Jr=[],_U=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function zL(r,e,t){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(t?UM:tr)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?UM:tr)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?hb:cr)(r.x1,r.cpx1,r.x2,e),(t?hb:cr)(r.y1,r.cpy1,r.y2,e)]}var pf=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _U},e.prototype.buildPath=function(t,a){var n=a.x1,i=a.y1,o=a.x2,l=a.y2,s=a.cpx1,u=a.cpy1,c=a.cpx2,h=a.cpy2,d=a.percent;d!==0&&(t.moveTo(n,i),c==null||h==null?(d<1&&(zh(n,s,o,d,Jr),s=Jr[1],o=Jr[2],zh(i,u,l,d,Jr),u=Jr[1],l=Jr[2]),t.quadraticCurveTo(s,u,o,l)):(d<1&&(Bo(n,s,c,o,d,Jr),s=Jr[1],c=Jr[2],o=Jr[3],Bo(i,u,h,l,d,Jr),u=Jr[1],h=Jr[2],l=Jr[3]),t.bezierCurveTo(s,u,c,h,o,l)))},e.prototype.pointAt=function(t){return zL(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=zL(this.shape,t,!0);return ys(a,a)},e})(Ut);pf.prototype.type="bezier-curve";var SU=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),mv=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new SU},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),l=a.startAngle,s=a.endAngle,u=a.clockwise,c=Math.cos(l),h=Math.sin(l);t.moveTo(c*o+n,h*o+i),t.arc(n,i,o,l,s,!u)},e})(Ut);mv.prototype.type="arc";var Vy=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,a=this.shapeChanged(),n=0;n<t.length;n++)a=a||t[n].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(a[0],a[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],a=0;a<t.length;a++)t[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ut.prototype.getBoundingRect.call(this)},e})(Ut),Tz=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),gf=(function(r){Z(e,r);function e(t,a,n,i,o,l){var s=r.call(this,o)||this;return s.x=t??0,s.y=a??0,s.x2=n??1,s.y2=i??0,s.type="linear",s.global=l||!1,s}return e})(Tz),Aw=(function(r){Z(e,r);function e(t,a,n,i,o){var l=r.call(this,i)||this;return l.x=t??.5,l.y=a??.5,l.r=n??.5,l.type="radial",l.global=o||!1,l}return e})(Tz),Dl=[0,0],Ml=[0,0],dp=new zt,pp=new zt,zg=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new zt;for(var a=0;a<2;a++)this._axes[a]=new zt;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var a=this._corners,n=this._axes,i=e.x,o=e.y,l=i+e.width,s=o+e.height;if(a[0].set(i,o),a[1].set(l,o),a[2].set(l,s),a[3].set(i,s),t)for(var u=0;u<4;u++)a[u].transform(t);zt.sub(n[0],a[1],a[0]),zt.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(e,t){var a=!0,n=!t;return dp.set(1/0,1/0),pp.set(0,0),!this._intersectCheckOneSide(this,e,dp,pp,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,dp,pp,n,-1)&&(a=!1,n)||n||zt.copy(t,a?dp:pp),a},r.prototype._intersectCheckOneSide=function(e,t,a,n,i,o){for(var l=!0,s=0;s<2;s++){var u=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Dl),this._getProjMinMaxOnAxis(s,t._corners,Ml),Dl[1]<Ml[0]||Dl[0]>Ml[1]){if(l=!1,i)return l;var c=Math.abs(Ml[0]-Dl[1]),h=Math.abs(Dl[0]-Ml[1]);Math.min(c,h)>n.len()&&(c<h?zt.scale(n,u,-c*o):zt.scale(n,u,h*o))}else if(a){var c=Math.abs(Ml[0]-Dl[1]),h=Math.abs(Dl[0]-Ml[1]);Math.min(c,h)<a.len()&&(c<h?zt.scale(a,u,c*o):zt.scale(a,u,-h*o))}}return l},r.prototype._getProjMinMaxOnAxis=function(e,t,a){for(var n=this._axes[e],i=this._origin,o=t[0].dot(n)+i[e],l=o,s=o,u=1;u<t.length;u++){var c=t[u].dot(n)+i[e];l=Math.min(c,l),s=Math.max(c,s)}a[0]=l,a[1]=s},r})(),bU=[],Az=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,a){t.call(a,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,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,a){a=a||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var a=this._cursor;a<this._displayables.length;a++)t&&t(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)t&&t(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var a=this._displayables[t];a.parent=this,a.update(),a.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var a=this._temporaryDisplayables[t];a.parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new kt(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(bU)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var l=this._displayables[o];if(l.contain(t,a))return!0}return!1},e})($a),Cz=$t();function yf(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var l=e&&e.isAnimationEnabled(),s=r==="update";if(l){var u=void 0,c=void 0,h=void 0;a?(u=Rt(a.duration,200),c=Rt(a.easing,"cubicOut"),h=0):(u=e.getShallow(s?"animationDurationUpdate":"animationDuration"),c=e.getShallow(s?"animationEasingUpdate":"animationEasing"),h=e.getShallow(s?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(h=i.delay)),_t(h)&&(h=h(t,n)),_t(u)&&(u=u(t));var d={duration:u||0,delay:h,easing:c};return d}else return null}function Cw(r,e,t,a,n,i,o){var l=!1,s;_t(n)?(o=i,i=n,n=null):xt(n)&&(i=n.cb,o=n.during,l=n.isFrom,s=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var c=yf(r,a,n,u?s||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(c&&c.duration>0){var h=c.duration,d=c.delay,p=c.easing,y={duration:h,delay:d||0,easing:p,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};l?e.animateFrom(t,y):e.animateTo(t,y)}else e.stopAnimation(),!l&&e.attr(t),o&&o(1),i&&i()}function Jt(r,e,t,a,n,i){Cw("update",r,e,t,a,n,i)}function De(r,e,t,a,n,i){Cw("enter",r,e,t,a,n,i)}function Wu(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function Vo(r,e,t,a,n,i){Wu(r)||Cw("leave",r,e,t,a,n,i)}function kL(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),Vo(r,{style:{opacity:0}},e,t,a)}function Yh(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||kL(n,e,t,a)}):kL(r,e,t,a)}function xn(r){Cz(r).oldStyle=r.style}function xU(r){return Cz(r).oldStyle}var kg=Math.max,Bg=Math.min,Bb={};function Dz(r){return Ut.extend(r)}var wU=nU;function Mz(r,e){return wU(r,e)}function Qa(r,e){Bb[r]=e}function Gy(r){if(Bb.hasOwnProperty(r))return Bb[r]}function _v(r,e,t,a){var n=bz(r,e);return t&&(a==="center"&&(t=Lz(t,n.getBoundingRect())),Mw(n,t)),n}function Dw(r,e,t){var a=new or({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var i={width:n.width,height:n.height};a.setStyle(Lz(e,i))}}});return a}function Lz(r,e){var t=e.width/e.height,a=r.height*t,n;a<=r.width?n=r.height:(a=r.width,n=a/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var ya=iU;function Mw(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function rf(r,e){return nz(r,r,{lineWidth:e}),r}function TU(r){return iz(r.shape,r.shape,r.style),r}var fg=Zl;function Oo(r,e){for(var t=hv([]);r&&r!==e;)Fn(t,r.getLocalTransform(),t),r=r.parent;return t}function mn(r,e,t){return e&&!Sr(e)&&(e=Ci.getLocalTransform(e)),t&&(e=ms([],e)),hr([],r,e)}function Hy(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=mn(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function BL(r){return!r.isGroup}function AU(r){return r.shape!=null}function Sv(r,e,t){if(!r||!e)return;function a(o){var l={};return o.traverse(function(s){BL(s)&&s.anid&&(l[s.anid]=s)}),l}function n(o){var l={x:o.x,y:o.y,rotation:o.rotation};return AU(o)&&(l.shape=rt({},o.shape)),l}var i=a(r);e.traverse(function(o){if(BL(o)&&o.anid){var l=i[o.anid];if(l){var s=n(o);o.attr(n(l)),Jt(o,s,t,Mt(o).dataIndex)}}})}function Lw(r,e){return ot(r,function(t){var a=t[0];a=kg(a,e.x),a=Bg(a,e.x+e.width);var n=t[1];return n=kg(n,e.y),n=Bg(n,e.y+e.height),[a,n]})}function Rz(r,e){var t=kg(r.x,e.x),a=Bg(r.x+r.width,e.x+e.width),n=kg(r.y,e.y),i=Bg(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function mf(r,e,t){var a=rt({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),St(n,t),new or(a)):_v(r.replace("path://",""),a,t,"center")}function sh(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var l=n[i];if(Ez(r,e,t,a,l[0],l[1],o[0],o[1]))return!0;o=l}}function Ez(r,e,t,a,n,i,o,l){var s=t-r,u=a-e,c=o-n,h=l-i,d=h_(c,h,s,u);if(CU(d))return!1;var p=r-n,y=e-i,m=h_(p,y,s,u)/d;if(m<0||m>1)return!1;var _=h_(p,y,c,h)/d;return!(_<0||_>1)}function h_(r,e,t,a){return r*a-t*e}function CU(r){return r<=1e-6&&r>=-1e-6}function _s(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=vt(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,l={componentType:i,name:a,$vars:["name"]};l[i+"Index"]=o;var s=r.formatterParamsExtra;s&&N(Yt(s),function(c){gt(l,c)||(l[c]=s[c],l.$vars.push(c))});var u=Mt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:St({content:a,encodeHTMLContent:!0,formatterParams:l},n)}}function VL(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function jo(r,e){if(r)if(it(r))for(var t=0;t<r.length;t++)VL(r[t],e);else VL(r,e)}Qa("circle",Wn);Qa("ellipse",yv);Qa("sector",Or);Qa("ring",df);Qa("polygon",Nr);Qa("polyline",zr);Qa("rect",Wt);Qa("line",Qe);Qa("bezierCurve",pf);Qa("arc",mv);const Ss=Object.freeze(Object.defineProperty({__proto__:null,Arc:mv,BezierCurve:pf,BoundingRect:kt,Circle:Wn,CompoundPath:Vy,Ellipse:yv,Group:Ct,Image:or,IncrementalDisplayable:Az,Line:Qe,LinearGradient:gf,OrientedBoundingRect:zg,Path:Ut,Point:zt,Polygon:Nr,Polyline:zr,RadialGradient:Aw,Rect:Wt,Ring:df,Sector:Or,Text:Xt,applyTransform:mn,clipPointsByRect:Lw,clipRectByRect:Rz,createIcon:mf,extendPath:Mz,extendShape:Dz,getShapeClass:Gy,getTransform:Oo,groupTransition:Sv,initProps:De,isElementRemoved:Wu,lineLineIntersect:Ez,linePolygonIntersect:sh,makeImage:Dw,makePath:_v,mergePath:ya,registerShape:Qa,removeElement:Vo,removeElementWithFadeOut:Yh,resizePath:Mw,setTooltipConfig:_s,subPixelOptimize:fg,subPixelOptimizeLine:rf,subPixelOptimizeRect:TU,transformDirection:Hy,traverseElements:jo,updateProps:Jt},Symbol.toStringTag,{value:"Module"}));var Fy={};function Iz(r,e){for(var t=0;t<jr.length;t++){var a=jr[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Vb(r,e,t){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,l;a&&(l=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),l==null&&(l=_t(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var s={normal:l},u=0;u<jr.length;u++){var c=jr[u],h=e[c];s[c]=Rt(a?a.getFormattedLabel(n,c,null,i,h&&h.get("formatter")):null,l)}return s}function xr(r,e,t,a){t=t||Fy;for(var n=r instanceof Xt,i=!1,o=0;o<Fh.length;o++){var l=e[Fh[o]];if(l&&l.getShallow("show")){i=!0;break}}var s=n?r:r.getTextContent();if(i){n||(s||(s=new Xt,r.setTextContent(s)),r.stateProxy&&(s.stateProxy=r.stateProxy));var u=Vb(t,e),c=e.normal,h=!!c.getShallow("show"),d=_e(c,a&&a.normal,t,!1,!n);d.text=u.normal,n||r.setTextConfig(Vg(c,t,!1));for(var o=0;o<jr.length;o++){var p=jr[o],l=e[p];if(l){var y=s.ensureState(p),m=!!Rt(l.getShallow("show"),h);if(m!==h&&(y.ignore=!m),y.style=_e(l,a&&a[p],t,!0,!n),y.style.text=u[p],!n){var _=r.ensureState(p);_.textConfig=Vg(l,t,!0)}}}s.silent=!!c.getShallow("silent"),s.style.x!=null&&(d.x=s.style.x),s.style.y!=null&&(d.y=s.style.y),s.ignore=!h,s.useStyle(d),s.dirty(),t.enableTextSetter&&(_f(s).setLabelText=function(b){var x=Vb(t,e,b);Iz(s,x)})}else s&&(s.ignore=!0);r.dirty()}function nr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<jr.length;a++){var n=jr[a];t[n]=r.getModel([n,e])}return t}function _e(r,e,t,a,n){var i={};return DU(i,r,t,a,n),e&&rt(i,e),i}function Vg(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=Rt(r.getShallow("distance"),t?null:5),l=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(a.position=n),l!=null&&(a.offset=l),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",a}function DU(r,e,t,a,n){t=t||Fy;var i=e.ecModel,o=i&&i.option.textStyle,l=MU(e),s;if(l){s={};for(var u in l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);UL(s[u]={},c,o,t,a,n,!1,!0)}}s&&(r.rich=s);var h=e.get("overflow");h&&(r.overflow=h);var d=e.get("minMargin");d!=null&&(r.margin=d),UL(r,e,o,t,a,n,!0,!1)}function MU(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Fy).rich;if(t){e=e||{};for(var a=Yt(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var GL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],HL=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],FL=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function UL(r,e,t,a,n,i,o,l){t=!n&&t||Fy;var s=a&&a.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Rt(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(s?u=s:u=null),(c==="inherit"||c==="auto")&&(s?c=s:c=null),i||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(r.fill=u),c!=null&&(r.stroke=c);var d=Rt(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=Rt(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var y=Rt(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);y!=null&&(r.lineDashOffset=y),!n&&h==null&&!l&&(h=a&&a.defaultOpacity),h!=null&&(r.opacity=h),!n&&!i&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var m=0;m<GL.length;m++){var _=GL[m],b=Rt(e.getShallow(_),t[_]);b!=null&&(r[_]=b)}for(var m=0;m<HL.length;m++){var _=HL[m],b=e.getShallow(_);b!=null&&(r[_]=b)}if(r.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(r.verticalAlign=x)}if(!o||!a.disableBox){for(var m=0;m<FL.length;m++){var _=FL[m],b=e.getShallow(_);b!=null&&(r[_]=b)}var w=e.getShallow("borderType");w!=null&&(r.borderDash=w),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&s&&(r.backgroundColor=s),(r.borderColor==="auto"||r.borderColor==="inherit")&&s&&(r.borderColor=s)}}function Rw(r,e){var t=e&&e.getModel("textStyle");return Wa([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var _f=$t();function Oz(r,e,t,a){if(r){var n=_f(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function Nz(r,e,t,a,n){var i=_f(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,l=Rt(i.interpolatedValue,i.prevValue),s=i.value;function u(c){var h=qP(t,i.precision,l,s,c);i.interpolatedValue=c===1?null:h;var d=Vb({labelDataIndex:e,labelFetcher:n,defaultText:o?o(h):h+""},i.statesModels,h);Iz(r,d)}r.percent=0,(i.prevValue==null?De:Jt)(r,{percent:1},a,e,null,u)}var LU=["textStyle","color"],v_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],d_=new Xt,RU=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(LU):null)},r.prototype.getFont=function(){return Rw({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<v_.length;a++)t[v_[a]]=this.getShallow(v_[a]);return d_.useStyle(t),d_.update(),d_.getBoundingRect()},r})(),Pz=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],EU=cs(Pz),IU=(function(){function r(){}return r.prototype.getLineStyle=function(e){return EU(this,e)},r})(),zz=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],OU=cs(zz),NU=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return OU(this,e,t)},r})(),ee=(function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){It(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=a==null?a:a[e];if(n==null&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(Tt(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Ft.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r})();gw(ee);W7(ee);ze(ee,IU);ze(ee,NU);ze(ee,Q7);ze(ee,RU);var PU=Math.round(Math.random()*10);function Sf(r){return[r||"",PU++].join("_")}function zU(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=Bn(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=Bn(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function kU(r,e){r.topologicalTravel=function(i,o,l,s){if(!i.length)return;var u=t(o),c=u.graph,h=u.noEntryList,d={};for(N(i,function(x){d[x]=!0});h.length;){var p=h.pop(),y=c[p],m=!!d[p];m&&(l.call(s,p,y.originalDeps.slice()),delete d[p]),N(y.successor,m?b:_)}N(d,function(){var x="";throw new Error(x)});function _(x){c[x].entryCount--,c[x].entryCount===0&&h.push(x)}function b(x){d[x]=!0,_(x)}};function t(i){var o={},l=[];return N(i,function(s){var u=a(o,s),c=u.originalDeps=e(s),h=n(c,i);u.entryCount=h.length,u.entryCount===0&&l.push(s),N(h,function(d){Bt(u.predecessor,d)<0&&u.predecessor.push(d);var p=a(o,d);Bt(p.successor,d)<0&&p.successor.push(s)})}),{graph:o,noEntryList:l}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var l=[];return N(i,function(s){Bt(o,s)>=0&&l.push(s)}),l}}function Xo(r,e){return It(It({},r,!0),e,!0)}const BU={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:". "}}}},VU={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 Gg="ZH",Ew="EN",Zu=Ew,cg={},Iw={},kz=Ft.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Zu).toUpperCase();return r.indexOf(Gg)>-1?Gg:Zu})():Zu;function Ow(r,e){r=r.toUpperCase(),Iw[r]=new ee(e),cg[r]=e}function GU(r){if(vt(r)){var e=cg[r.toUpperCase()]||{};return r===Gg||r===Ew?Tt(e):It(Tt(e),Tt(cg[Zu]),!1)}else return It(Tt(r),Tt(cg[Zu]),!1)}function Gb(r){return Iw[r]}function HU(){return Iw[Zu]}Ow(Ew,BU);Ow(Gg,VU);var Nw=1e3,Pw=Nw*60,Mh=Pw*60,Xa=Mh*24,YL=Xa*365,uh={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}"},gp="{yyyy}-{MM}-{dd}",jL={year:"{yyyy}",month:"{yyyy}-{MM}",day:gp,hour:gp+" "+uh.hour,minute:gp+" "+uh.minute,second:gp+" "+uh.second,millisecond:uh.none},p_=["year","month","day","hour","minute","second","millisecond"],Bz=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Gr(r,e){return r+="","0000".substr(0,e-r.length)+r}function qu(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function FU(r){return r===qu(r)}function UU(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function bv(r,e,t,a){var n=ba(r),i=n[zw(t)](),o=n[$u(t)]()+1,l=Math.floor((o-1)/3)+1,s=n[Uy(t)](),u=n["get"+(t?"UTC":"")+"Day"](),c=n[jh(t)](),h=(c-1)%12+1,d=n[Yy(t)](),p=n[jy(t)](),y=n[Xy(t)](),m=c>=12?"pm":"am",_=m.toUpperCase(),b=a instanceof ee?a:Gb(a||kz)||HU(),x=b.getModel("time"),w=x.get("month"),A=x.get("monthAbbr"),M=x.get("dayOfWeek"),D=x.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,m+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Gr(i%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,A[o-1]).replace(/{MM}/g,Gr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Gr(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,M[u]).replace(/{ee}/g,D[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Gr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Gr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Gr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Gr(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Gr(y,3)).replace(/{S}/g,y+"")}function YU(r,e,t,a,n){var i=null;if(vt(t))i=t;else if(_t(t))i=t(r.value,e,{level:r.level});else{var o=rt({},uh);if(r.level>0)for(var l=0;l<p_.length;++l)o[p_[l]]="{primary|"+o[p_[l]]+"}";var s=t?t.inherit===!1?t:St(t,o):o,u=Vz(r.value,n);if(s[u])i=s[u];else if(s.inherit){for(var c=Bz.indexOf(u),l=c-1;l>=0;--l)if(s[u]){i=s[u];break}i=i||o.none}if(it(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return bv(new Date(r.value),i,n,a)}function Vz(r,e){var t=ba(r),a=t[$u(e)]()+1,n=t[Uy(e)](),i=t[jh(e)](),o=t[Yy(e)](),l=t[jy(e)](),s=t[Xy(e)](),u=s===0,c=u&&l===0,h=c&&o===0,d=h&&i===0,p=d&&n===1,y=p&&a===1;return y?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function XL(r,e,t){var a=Qt(r)?ba(r):r;switch(e=e||Vz(r,t),e){case"year":return a[zw(t)]();case"half-year":return a[$u(t)]()>=6?1:0;case"quarter":return Math.floor((a[$u(t)]()+1)/4);case"month":return a[$u(t)]();case"day":return a[Uy(t)]();case"half-day":return a[jh(t)]()/24;case"hour":return a[jh(t)]();case"minute":return a[Yy(t)]();case"second":return a[jy(t)]();case"millisecond":return a[Xy(t)]()}}function zw(r){return r?"getUTCFullYear":"getFullYear"}function $u(r){return r?"getUTCMonth":"getMonth"}function Uy(r){return r?"getUTCDate":"getDate"}function jh(r){return r?"getUTCHours":"getHours"}function Yy(r){return r?"getUTCMinutes":"getMinutes"}function jy(r){return r?"getUTCSeconds":"getSeconds"}function Xy(r){return r?"getUTCMilliseconds":"getMilliseconds"}function jU(r){return r?"setUTCFullYear":"setFullYear"}function Gz(r){return r?"setUTCMonth":"setMonth"}function Hz(r){return r?"setUTCDate":"setDate"}function Fz(r){return r?"setUTCHours":"setHours"}function Uz(r){return r?"setUTCMinutes":"setMinutes"}function Yz(r){return r?"setUTCSeconds":"setSeconds"}function jz(r){return r?"setUTCMilliseconds":"setMilliseconds"}function XU(r,e,t,a,n,i,o,l){var s=new Xt({style:{text:r,font:e,align:t,verticalAlign:a,padding:n,rich:i,overflow:o?"truncate":null,lineHeight:l}});return s.getBoundingRect()}function kw(r){if(!vw(r))return vt(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Bw(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var bs=Cy;function Hb(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Wa(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",l=r instanceof Date;if(o||l){var s=o?ba(r):r;if(isNaN(+s)){if(l)return"-"}else return bv(s,a,t)}if(e==="ordinal")return wg(r)?n(r):Qt(r)&&i(r)?r+"":"-";var u=jn(r);return i(u)?kw(u):wg(r)?n(r):typeof r=="boolean"?r+"":"-"}var WL=["a","b","c","d","e","f","g"],g_=function(r,e){return"{"+r+(e??"")+"}"};function Vw(r,e,t){it(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=WL[i];r=r.replace(g_(o),g_(o,0))}for(var l=0;l<a;l++)for(var s=0;s<n.length;s++){var u=e[l][n[s]];r=r.replace(g_(WL[s],l),t?Rr(u):u)}return r}function WU(r,e,t){return N(e,function(a,n){r=r.replace("{"+n+"}",a)}),r}function Xz(r,e){var t=vt(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Rr(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Rr(a)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function ZU(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
78
- yyyy`);var a=ba(e),n=t?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,l=a[n+"Date"](),s=a[n+"Hours"](),u=a[n+"Minutes"](),c=a[n+"Seconds"](),h=a[n+"Milliseconds"]();return r=r.replace("MM",Gr(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Gr(i%100+"",2)).replace("dd",Gr(l,2)).replace("d",l).replace("hh",Gr(s,2)).replace("h",s).replace("mm",Gr(u,2)).replace("m",u).replace("ss",Gr(c,2)).replace("s",c).replace("SSS",Gr(h,3)),r}function qU(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function vs(r,e){return e=e||"transparent",vt(r)?r:xt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Hg(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var hg=N,Wz=["left","right","top","bottom","width","height"],$l=[["width","left","right"],["height","top","bottom"]];function Gw(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var l=0;e.eachChild(function(s,u){var c=s.getBoundingRect(),h=e.childAt(u+1),d=h&&h.getBoundingRect(),p,y;if(r==="horizontal"){var m=c.width+(d?-d.x+c.x:0);p=i+m,p>a||s.newline?(i=0,p=m,o+=l+t,l=c.height):l=Math.max(l,c.height)}else{var _=c.height+(d?-d.y+c.y:0);y=o+_,y>n||s.newline?(i+=l+t,o=0,y=_,l=c.width):l=Math.max(l,c.width)}s.newline||(s.x=i,s.y=o,s.markRedraw(),r==="horizontal"?i=p+t:o=y+t)})}var ns=Gw;Et(Gw,"vertical");Et(Gw,"horizontal");function $U(r,e,t){var a=e.width,n=e.height,i=ht(r.left,a),o=ht(r.top,n),l=ht(r.right,a),s=ht(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(l)||isNaN(parseFloat(r.right)))&&(l=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(s)||isNaN(parseFloat(r.bottom)))&&(s=n),t=bs(t||0),{width:Math.max(l-i-t[1]-t[3],0),height:Math.max(s-o-t[0]-t[2],0)}}function Xe(r,e,t){t=bs(t||0);var a=e.width,n=e.height,i=ht(r.left,a),o=ht(r.top,n),l=ht(r.right,a),s=ht(r.bottom,n),u=ht(r.width,a),c=ht(r.height,n),h=t[2]+t[0],d=t[1]+t[3],p=r.aspect;switch(isNaN(u)&&(u=a-l-d-i),isNaN(c)&&(c=n-s-h-o),p!=null&&(isNaN(u)&&isNaN(c)&&(p>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(i)&&(i=a-l-u-d),isNaN(o)&&(o=n-s-c-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-d;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-t[0];break;case"bottom":o=n-c-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-d-i-(l||0)),isNaN(c)&&(c=n-h-o-(s||0));var y=new kt(i+t[3],o+t[0],u,c);return y.margin=t,y}function Wy(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],l=!n||!n.hv||n.hv[1],s=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!l)return!1;var u;if(s==="raw")u=r.type==="group"?new kt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var h=Xe(St({width:u.width,height:u.height},e),t,a),d=o?h.x-u.x:0,p=l?h.y-u.y:0;return s==="raw"?(i.x=d,i.y=p):(i.x+=d,i.y+=p),i===r&&r.markRedraw(),!0}function KU(r,e){return r[$l[e][0]]!=null||r[$l[e][1]]!=null&&r[$l[e][2]]!=null}function Xh(r){var e=r.layoutMode||r.constructor.layoutMode;return xt(e)?e:e?{type:e}:null}function Go(r,e,t){var a=t&&t.ignoreSize;!it(a)&&(a=[a,a]);var n=o($l[0],0),i=o($l[1],1);u($l[0],r,n),u($l[1],r,i);function o(c,h){var d={},p=0,y={},m=0,_=2;if(hg(c,function(w){y[w]=r[w]}),hg(c,function(w){l(e,w)&&(d[w]=y[w]=e[w]),s(d,w)&&p++,s(y,w)&&m++}),a[h])return s(e,c[1])?y[c[2]]=null:s(e,c[2])&&(y[c[1]]=null),y;if(m===_||!p)return y;if(p>=_)return d;for(var b=0;b<c.length;b++){var x=c[b];if(!l(d,x)&&l(r,x)){d[x]=r[x];break}}return d}function l(c,h){return c.hasOwnProperty(h)}function s(c,h){return c[h]!=null&&c[h]!=="auto"}function u(c,h,d){hg(c,function(p){h[p]=d[p]})}}function bf(r){return Zz({},r)}function Zz(r,e){return e&&r&&hg(Wz,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var QU=$t(),Ht=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=Sf("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Xh(this),i=n?bf(t):{},o=a.getTheme();It(t,o.get(this.mainType)),It(t,this.getDefaultOption()),n&&Go(t,i,n)},e.prototype.mergeOption=function(t,a){It(this.option,t,!0);var n=Xh(this);n&&Go(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Y7(t))return t.defaultOption;var a=QU(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var l={},s=n.length-1;s>=0;s--)l=It(l,n[s],!0);a.defaultOption=l}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return pv(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},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})(ee);KP(Ht,ee);Oy(Ht);zU(Ht);kU(Ht,JU);function JU(r){var e=[];return N(Ht.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=ot(e,function(t){return Bn(t).main}),r!=="dataset"&&Bt(e,"dataset")<=0&&e.unshift("dataset"),e}var qz="";typeof navigator<"u"&&(qz=navigator.platform||"");var yu="rgba(0, 0, 0, 0.2)";const t9={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:yu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qz.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var $z=mt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ja="original",Pr="arrayRows",tn="objectRows",Zn="keyedColumns",No="typedArray",Kz="unknown",Un="column",xf="row",_r={Must:1,Might:2,Not:3},Qz=$t();function e9(r){Qz(r).datasetMap=mt()}function Jz(r,e,t){var a={},n=Fw(e);if(!n||!r)return a;var i=[],o=[],l=e.ecModel,s=Qz(l).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,c,h;r=r.slice(),N(r,function(m,_){var b=xt(m)?m:r[_]={name:m};b.type==="ordinal"&&c==null&&(c=_,h=y(b)),a[b.name]=[]});var d=s.get(u)||s.set(u,{categoryWayDim:h,valueWayDim:0});N(r,function(m,_){var b=m.name,x=y(m);if(c==null){var w=d.valueWayDim;p(a[b],w,x),p(o,w,x),d.valueWayDim+=x}else if(c===_)p(a[b],0,x),p(i,0,x);else{var w=d.categoryWayDim;p(a[b],w,x),p(o,w,x),d.categoryWayDim+=x}});function p(m,_,b){for(var x=0;x<b;x++)m.push(_+x)}function y(m){var _=m.dimsDef;return _?_.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function Hw(r,e,t){var a={},n=Fw(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,l;(i===tn||i===Zn)&&N(o,function(c,h){(xt(c)?c.name:c)==="name"&&(l=h)});var s=(function(){for(var c={},h={},d=[],p=0,y=Math.min(5,t);p<y;p++){var m=e5(e.data,i,e.seriesLayoutBy,o,e.startIndex,p);d.push(m);var _=m===_r.Not;if(_&&c.v==null&&p!==l&&(c.v=p),(c.n==null||c.n===c.v||!_&&d[c.n]===_r.Not)&&(c.n=p),b(c)&&d[c.n]!==_r.Not)return c;_||(m===_r.Might&&h.v==null&&p!==l&&(h.v=p),(h.n==null||h.n===h.v)&&(h.n=p))}function b(x){return x.v!=null&&x.n!=null}return b(c)?c:b(h)?h:null})();if(s){a.value=[s.v];var u=l??s.n;a.itemName=[u],a.seriesName=[u]}return a}function Fw(r){var e=r.get("data",!0);if(!e)return pv(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},je).models[0]}function r9(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:pv(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},je).models}function t5(r,e){return e5(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function e5(r,e,t,a,n,i){var o,l=5;if(Yr(r))return _r.Not;var s,u;if(a){var c=a[i];xt(c)?(s=c.name,u=c.type):vt(c)&&(s=c)}if(u!=null)return u==="ordinal"?_r.Must:_r.Not;if(e===Pr){var h=r;if(t===xf){for(var d=h[i],p=0;p<(d||[]).length&&p<l;p++)if((o=A(d[n+p]))!=null)return o}else for(var p=0;p<h.length&&p<l;p++){var y=h[n+p];if(y&&(o=A(y[i]))!=null)return o}}else if(e===tn){var m=r;if(!s)return _r.Not;for(var p=0;p<m.length&&p<l;p++){var _=m[p];if(_&&(o=A(_[s]))!=null)return o}}else if(e===Zn){var b=r;if(!s)return _r.Not;var d=b[s];if(!d||Yr(d))return _r.Not;for(var p=0;p<d.length&&p<l;p++)if((o=A(d[p]))!=null)return o}else if(e===Ja)for(var x=r,p=0;p<x.length&&p<l;p++){var _=x[p],w=hf(_);if(!it(w))return _r.Not;if((o=A(w[i]))!=null)return o}function A(M){var D=vt(M);if(M!=null&&Number.isFinite(Number(M))&&M!=="")return D?_r.Might:_r.Not;if(D&&M!=="-")return _r.Must}return _r.Not}var Fb=mt();function a9(r,e){Ir(Fb.get(r)==null&&e),Fb.set(r,e)}function n9(r,e,t){var a=Fb.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var ZL=$t(),i9=$t(),Uw=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=de(this.get("color",!0)),i=this.get("colorLayer",!0);return r5(this,ZL,n,i,e,t,a)},r.prototype.clearColorPalette=function(){l9(this,ZL)},r})();function Ub(r,e,t,a){var n=de(r.get(["aria","decal","decals"]));return r5(r,i9,n,null,e,t,a)}function o9(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function r5(r,e,t,a,n,i,o){i=i||r;var l=e(i),s=l.paletteIdx||0,u=l.paletteNameMap=l.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!a?t:o9(a,o);if(c=c||t,!(!c||!c.length)){var h=c[s];return n&&(u[n]=h),l.paletteIdx=(s+1)%c.length,h}}function l9(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var yp,Nc,qL,$L="\0_ec_inner",s9=1,Yw=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,l){i=i||{},this.option=null,this._theme=new ee(i),this._locale=new ee(o),this._optionManager=l},e.prototype.setOption=function(t,a,n){var i=JL(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,JL(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?qL(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var l=i.getTimelineOption(this);l&&(n=!0,this._mergeOption(l,a))}if(!t||t==="recreate"||t==="media"){var s=i.getMediaOption(this);s.length&&N(s,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,l=[],s=mt(),u=a&&a.replaceMergeMainTypeMap;e9(this),N(t,function(h,d){h!=null&&(Ht.hasClass(d)?d&&(l.push(d),s.set(d,!0)):n[d]=n[d]==null?Tt(h):It(n[d],h,!0))}),u&&u.each(function(h,d){Ht.hasClass(d)&&!s.get(d)&&(l.push(d),s.set(d,!0))}),Ht.topologicalTravel(l,Ht.getAllClassMainTypes(),c,this);function c(h){var d=n9(this,h,de(t[h])),p=i.get(h),y=p?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=XP(p,d,y);P7(m,h,Ht),n[h]=null,i.set(h,null),o.set(h,0);var _=[],b=[],x=0,w;N(m,function(A,M){var D=A.existing,L=A.newOption;if(!L)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var R=h==="series",E=Ht.getClass(h,A.keyInfo.subType,!R);if(!E)return;if(h==="tooltip"){if(w)return;w=!0}if(D&&D.constructor===E)D.name=A.keyInfo.name,D.mergeOption(L,this),D.optionUpdated(L,!1);else{var O=rt({componentIndex:M},A.keyInfo);D=new E(L,this,this,O),rt(D,O),A.brandNew&&(D.__requireNewView=!0),D.init(L,this,this),D.optionUpdated(null,!0)}}D?(_.push(D.option),b.push(D),x++):(_.push(void 0),b.push(void 0))},this),n[h]=_,i.set(h,b),o.set(h,x),h==="series"&&yp(this)}this._seriesIndices||yp(this)},e.prototype.getOption=function(){var t=Tt(this.option);return N(t,function(a,n){if(Ht.hasClass(n)){for(var i=de(a),o=i.length,l=!1,s=o-1;s>=0;s--)i[s]&&!Hh(i[s])?l=!0:(i[s]=null,!l&&o--);i.length=o,t[n]=i}}),delete t[$L],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,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var n=t.index,i=t.id,o=t.name,l=this._componentsMap.get(a);if(!l||!l.length)return[];var s;return n!=null?(s=[],N(de(n),function(u){l[u]&&s.push(l[u])})):i!=null?s=KL("id",i,l):o!=null?s=KL("name",o,l):s=te(l,function(u){return!!u}),QL(s,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=l(a),o=i?this.queryComponents(i):te(this._componentsMap.get(n),function(u){return!!u});return s(QL(o,t));function l(u){var c=n+"Index",h=n+"Id",d=n+"Name";return u&&(u[c]!=null||u[h]!=null||u[d]!=null)?{mainType:n,index:u[c],id:u[h],name:u[d]}:null}function s(u){return t.filter?te(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(_t(t)){var o=a,l=t;i.each(function(h,d){for(var p=0;h&&p<h.length;p++){var y=h[p];y&&l.call(o,d,y,y.componentIndex)}})}else for(var s=vt(t)?i.get(t):xt(t)?this.findComponents(t):null,u=0;s&&u<s.length;u++){var c=s[u];c&&a.call(n,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=Ke(t,null);return te(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return te(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return te(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){Nc(this),N(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){N(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){Nc(this),N(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return N(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return Nc(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){Nc(this);var n=[];N(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=mt(n)},e.prototype.restoreData=function(t){yp(this);var a=this._componentsMap,n=[];a.each(function(i,o){Ht.hasClass(o)&&n.push(o)}),Ht.topologicalTravel(n,Ht.getAllClassMainTypes(),function(i){N(a.get(i),function(o){o&&(i!=="series"||!u9(o,t))&&o.restoreData()})})},e.internalField=(function(){yp=function(t){var a=t._seriesIndices=[];N(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=mt(a)},Nc=function(t){},qL=function(t,a){t.option={},t.option[$L]=s9,t._componentsMap=mt({series:[]}),t._componentsCount=mt();var n=a.aria;xt(n)&&n.enabled==null&&(n.enabled=!0),f9(a,t._theme.option),It(a,t9,!1),t._mergeOption(a,null)}})(),e})(ee);function u9(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||n!=null&&r.name!==n}}function f9(r,e){var t=r.color&&!r.colorLayer;N(e,function(a,n){n==="colorLayer"&&t||Ht.hasClass(n)||(typeof a=="object"?r[n]=r[n]?It(r[n],a,!1):Tt(a):r[n]==null&&(r[n]=a))})}function KL(r,e,t){if(it(e)){var a=mt();return N(e,function(i){if(i!=null){var o=Ke(i,null);o!=null&&a.set(i,!0)}}),te(t,function(i){return i&&a.get(i[r])})}else{var n=Ke(e,null);return te(t,function(i){return i&&n!=null&&i[r]===n})}}function QL(r,e){return e.hasOwnProperty("subType")?te(r,function(t){return t&&t.subType===e.subType}):r}function JL(r){var e=mt();return r&&N(de(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ze(Yw,Uw);var c9=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],a5=(function(){function r(e){N(c9,function(t){this[t]=dt(e[t],e)},this)}return r})(),y_={},wf=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];N(y_,function(n,i){var o=n.create(e,t);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(e,t){N(this._coordinateSystems,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){y_[e]=t},r.get=function(e){return y_[e]},r})(),h9=/^(min|max)?(.+)$/,v9=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(N(de(e.series),function(o){o&&o.data&&Yr(o.data)&&Nh(o.data)}),N(de(e.dataset),function(o){o&&o.source&&Yr(o.source)&&Nh(o.source)})),e=Tt(e);var n=this._optionBackup,i=d9(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Tt(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=Tt(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],l=[];if(!n.length&&!i)return l;for(var s=0,u=n.length;s<u;s++)p9(n[s].query,t,a)&&o.push(s);return!o.length&&i&&(o=[-1]),o.length&&!y9(o,this._currentMediaIndices)&&(l=ot(o,function(c){return Tt(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,l},r})();function d9(r,e,t){var a=[],n,i,o=r.baseOption,l=r.timeline,s=r.options,u=r.media,c=!!r.media,h=!!(s||l||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=l)):((h||c)&&(r.options=r.media=null),i=r),c&&it(u)&&N(u,function(p){p&&p.option&&(p.query?a.push(p):n||(n=p))}),d(i),N(s,function(p){return d(p)}),N(a,function(p){return d(p.option)});function d(p){N(e,function(y){y(p,t)})}return{baseOption:i,timelineOptions:s||[],mediaDefault:n,mediaList:a}}function p9(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return N(r,function(i,o){var l=o.match(h9);if(!(!l||!l[1]||!l[2])){var s=l[1],u=l[2].toLowerCase();g9(a[u],i,s)||(n=!1)}}),n}function g9(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function y9(r,e){return r.join(",")===e.join(",")}var ln=N,Wh=xt,tR=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function m_(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=tR.length;t<a;t++){var n=tR[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?It(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?It(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Lr(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,St(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function fh(r){Lr(r,"itemStyle"),Lr(r,"lineStyle"),Lr(r,"areaStyle"),Lr(r,"label"),Lr(r,"labelLine"),Lr(r,"upperLabel"),Lr(r,"edgeLabel")}function Ye(r,e){var t=Wh(r)&&r[e],a=Wh(t)&&t.textStyle;if(a)for(var n=0,i=oL.length;n<i;n++){var o=oL[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function Ha(r){r&&(fh(r),Ye(r,"label"),r.emphasis&&Ye(r.emphasis,"label"))}function m9(r){if(Wh(r)){m_(r),fh(r),Ye(r,"label"),Ye(r,"upperLabel"),Ye(r,"edgeLabel"),r.emphasis&&(Ye(r.emphasis,"label"),Ye(r.emphasis,"upperLabel"),Ye(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(m_(e),Ha(e));var t=r.markLine;t&&(m_(t),Ha(t));var a=r.markArea;a&&Ha(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Yr(i))for(var o=0;o<i.length;o++)Ha(i[o]);N(r.categories,function(u){fh(u)})}if(n&&!Yr(n))for(var o=0;o<n.length;o++)Ha(n[o]);if(e=r.markPoint,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)Ha(l[o]);if(t=r.markLine,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)it(s[o])?(Ha(s[o][0]),Ha(s[o][1])):Ha(s[o]);r.type==="gauge"?(Ye(r,"axisLabel"),Ye(r,"title"),Ye(r,"detail")):r.type==="treemap"?(Lr(r.breadcrumb,"itemStyle"),N(r.levels,function(u){fh(u)})):r.type==="tree"&&fh(r.leaves)}}function gi(r){return it(r)?r:r?[r]:[]}function eR(r){return(it(r)?r[0]:r)||{}}function _9(r,e){ln(gi(r.series),function(a){Wh(a)&&m9(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),ln(t,function(a){ln(gi(r[a]),function(n){n&&(Ye(n,"axisLabel"),Ye(n.axisPointer,"label"))})}),ln(gi(r.parallel),function(a){var n=a&&a.parallelAxisDefault;Ye(n,"axisLabel"),Ye(n&&n.axisPointer,"label")}),ln(gi(r.calendar),function(a){Lr(a,"itemStyle"),Ye(a,"dayLabel"),Ye(a,"monthLabel"),Ye(a,"yearLabel")}),ln(gi(r.radar),function(a){Ye(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),ln(gi(r.geo),function(a){Wh(a)&&(Ha(a),ln(gi(a.regions),function(n){Ha(n)}))}),ln(gi(r.timeline),function(a){Ha(a),Lr(a,"label"),Lr(a,"itemStyle"),Lr(a,"controlStyle",!0);var n=a.data;it(n)&&N(n,function(i){xt(i)&&(Lr(i,"label"),Lr(i,"itemStyle"))})}),ln(gi(r.toolbox),function(a){Lr(a,"iconStyle"),ln(a.feature,function(n){Lr(n,"iconStyle")})}),Ye(eR(r.axisPointer),"label"),Ye(eR(r.tooltip).axisPointer,"label")}function S9(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&(a=a&&a[t[n]],a!=null);n++);return a}function b9(r,e,t,a){for(var n=e.split(","),i=r,o,l=0;l<n.length-1;l++)o=n[l],i[o]==null&&(i[o]={}),i=i[o];i[n[l]]==null&&(i[n[l]]=t)}function rR(r){r&&N(x9,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var x9=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],w9=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],__=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Pc(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<__.length;t++){var a=__[t][1],n=__[t][0];e[a]!=null&&(e[n]=e[a])}}function aR(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function nR(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function T9(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function n5(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&n5(r[t].children,e)}function i5(r,e){_9(r,e),r.series=de(r.series),N(r.series,function(t){if(xt(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),aR(t.label);var n=t.data;if(n&&!Yr(n))for(var i=0;i<n.length;i++)aR(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=S9(t,"pointer.color");o!=null&&b9(t,"itemStyle.color",o)}else if(a==="bar"){Pc(t),Pc(t.backgroundStyle),Pc(t.emphasis);var n=t.data;if(n&&!Yr(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Pc(n[i]),Pc(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var l=t.highlightPolicy;l&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=l)),nR(t),n5(t.data,nR)}else a==="graph"||a==="sankey"?T9(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&St(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),rR(t)}}),r.dataRange&&(r.visualMap=r.dataRange),N(w9,function(t){var a=r[t];a&&(it(a)||(a=[a]),N(a,function(n){rR(n)}))})}function A9(r){var e=mt();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),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;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(C9)}function C9(r){N(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,l=e.isStackedByIndex,s=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,h){var d=o.get(e.stackedDimension,h);if(isNaN(d))return n;var p,y;l?y=o.getRawIndex(h):p=o.get(e.stackedByDimension,h);for(var m=NaN,_=t-1;_>=0;_--){var b=r[_];if(l||(y=b.data.rawIndexOf(b.stackedByDimension,p)),y>=0){var x=b.data.getByRawIndex(b.stackResultDimension,y);if(s==="all"||s==="positive"&&x>0||s==="negative"&&x<0||s==="samesign"&&d>=0&&x>0||s==="samesign"&&d<=0&&x<0){d=A7(d,x),m=x;break}}}return a[0]=d,a[1]=m,a})})}var Zy=(function(){function r(e){this.data=e.data||(e.sourceFormat===Zn?{}:[]),this.sourceFormat=e.sourceFormat||Kz,this.seriesLayoutBy=e.seriesLayoutBy||Un,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];n.type==null&&t5(this,a)===_r.Must&&(n.type="ordinal")}}return r})();function jw(r){return r instanceof Zy}function Yb(r,e,t){t=t||o5(r);var a=e.seriesLayoutBy,n=M9(r,t,a,e.sourceHeader,e.dimensions),i=new Zy({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:Tt(e)});return i}function Xw(r){return new Zy({data:r,sourceFormat:Yr(r)?No:Ja})}function D9(r){return new Zy({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Tt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function o5(r){var e=Kz;if(Yr(r))e=No;else if(it(r)){r.length===0&&(e=Pr);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(it(n)||Yr(n)){e=Pr;break}else if(xt(n)){e=tn;break}}}}else if(xt(r)){for(var i in r)if(gt(r,i)&&Sr(r[i])){e=Zn;break}}return e}function M9(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:iR(n),startIndex:o,dimensionsDetectedCount:i};if(e===Pr){var l=r;a==="auto"||a==null?oR(function(u){u!=null&&u!=="-"&&(vt(u)?o==null&&(o=1):o=0)},t,l,10):o=Qt(a)?a:a?1:0,!n&&o===1&&(n=[],oR(function(u,c){n[c]=u!=null?u+"":""},t,l,1/0)),i=n?n.length:t===xf?l.length:l[0]?l[0].length:null}else if(e===tn)n||(n=L9(r));else if(e===Zn)n||(n=[],N(r,function(u,c){n.push(c)}));else if(e===Ja){var s=hf(r[0]);i=it(s)&&s.length||1}return{startIndex:o,dimensionsDefine:iR(n),dimensionsDetectedCount:i}}function L9(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Yt(t)}function iR(r){if(r){var e=mt();return ot(r,function(t,a){t=xt(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function oR(r,e,t,a){if(e===xf)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else for(var i=t[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function l5(r){var e=r.sourceFormat;return e===tn||e===Zn}var Ll,Rl,El,lR,sR,s5=(function(){function r(e,t){var a=jw(e)?e:Xw(e);this._source=a;var n=this._data=a.data;a.sourceFormat===No&&(this._offset=0,this._dimSize=t,this._data=n),sR(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;sR=function(o,l,s){var u=s.sourceFormat,c=s.seriesLayoutBy,h=s.startIndex,d=s.dimensionsDefine,p=lR[Ww(u,c)];if(rt(o,p),u===No)o.getItem=t,o.count=n,o.fillStorage=a;else{var y=u5(u,c);o.getItem=dt(y,null,l,h,d);var m=f5(u,c);o.count=dt(m,null,l,h,d)}};var t=function(o,l){o=o-this._offset,l=l||[];for(var s=this._data,u=this._dimSize,c=u*o,h=0;h<u;h++)l[h]=s[c+h];return l},a=function(o,l,s,u){for(var c=this._data,h=this._dimSize,d=0;d<h;d++){for(var p=u[d],y=p[0]==null?1/0:p[0],m=p[1]==null?-1/0:p[1],_=l-o,b=s[d],x=0;x<_;x++){var w=c[x*h+d];b[o+x]=w,w<y&&(y=w),w>m&&(m=w)}p[0]=y,p[1]=m}},n=function(){return this._data?this._data.length/this._dimSize:0};lR=(e={},e[Pr+"_"+Un]={pure:!0,appendData:i},e[Pr+"_"+xf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[tn]={pure:!0,appendData:i},e[Zn]={pure:!0,appendData:function(o){var l=this._data;N(o,function(s,u){for(var c=l[u]||(l[u]=[]),h=0;h<(s||[]).length;h++)c.push(s[h])})}},e[Ja]={appendData:i},e[No]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var l=0;l<o.length;l++)this._data.push(o[l])}})(),r})(),uR=function(r,e,t,a){return r[a]},R9=(Ll={},Ll[Pr+"_"+Un]=function(r,e,t,a){return r[a+e]},Ll[Pr+"_"+xf]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,l=0;l<o.length;l++){var s=o[l];i[l]=s?s[a]:null}return i},Ll[tn]=uR,Ll[Zn]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var l=t[o].name,s=r[l];i[o]=s?s[a]:null}return i},Ll[Ja]=uR,Ll);function u5(r,e){var t=R9[Ww(r,e)];return t}var fR=function(r,e,t){return r.length},E9=(Rl={},Rl[Pr+"_"+Un]=function(r,e,t){return Math.max(0,r.length-e)},Rl[Pr+"_"+xf]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Rl[tn]=fR,Rl[Zn]=function(r,e,t){var a=t[0].name,n=r[a];return n?n.length:0},Rl[Ja]=fR,Rl);function f5(r,e){var t=E9[Ww(r,e)];return t}var S_=function(r,e,t){return r[e]},I9=(El={},El[Pr]=S_,El[tn]=function(r,e,t){return r[t]},El[Zn]=S_,El[Ja]=function(r,e,t){var a=hf(r);return a instanceof Array?a[e]:a},El[No]=S_,El);function c5(r){var e=I9[r];return e}function Ww(r,e){return r===Pr?r+"_"+e:r}function af(r,e,t){if(r){var a=r.getRawDataItem(e);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),l=n.getDimensionProperty(o);return c5(i)(a,o,l)}else{var s=a;return i===Ja&&(s=hf(a)),s}}}}var O9=/\{@(.+?)\}/g,qy=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),l=a.getRawDataItem(e),s=a.getItemVisual(e,"style"),u=s&&s[a.getItemVisual(e,"drawType")||"fill"],c=s&&s.stroke,h=this.mainType,d=h==="series",p=a.userOutput&&a.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:l,dataType:t,value:n,color:u,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var l=this.getData(a),s=this.getDataParams(e,a);if(o&&(s.value=o.interpolatedValue),n!=null&&it(s.value)&&(s.value=s.value[n]),!i){var u=l.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(_t(i))return s.status=t,s.dimensionIndex=n,i(s);if(vt(i)){var c=Vw(i,s);return c.replace(O9,function(h,d){var p=d.length,y=d;y.charAt(0)==="["&&y.charAt(p-1)==="]"&&(y=+y.slice(1,p-1));var m=af(l,e,y);if(o&&it(o.interpolatedValue)){var _=l.getDimensionIndex(y);_>=0&&(m=o.interpolatedValue[_])}return m!=null?m+"":""})}},r.prototype.getRawValue=function(e,t){return af(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r})();function cR(r){var e,t;return xt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Lh(r){return new N9(r)}var N9=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=c(this._modBy),l=this._modDataCount||0,s=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==s||l!==u)&&(i="reset");function c(x){return!(x>=1)&&(x=1),x}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=s,this._modDataCount=u;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,y=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!a&&(h||p<y)){var m=this._progress;if(it(m))for(var _=0;_<m.length;_++)this._doProgress(m[_],p,y,s,u);else this._doProgress(m,p,y,s,u)}this._dueIndex=y;var b=this._settedOutputEnd!=null?this._settedOutputEnd:y;this._outputDueEnd=b}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,a,n,i){hR.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:hR.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),it(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),hR=(function(){var r,e,t,a,n,i={reset:function(s,u,c,h){e=s,r=u,t=c,a=h,n=Math.ceil(a/t),i.next=t>1&&a>0?l:o}};return i;function o(){return e<r?e++:null}function l(){var s=e%n*t+Math.ceil(e/n),u=e>=r?null:s<a?s:e;return e++,u}})();function Po(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Qt(r)&&r!=null&&r!=="-"&&(r=+ba(r)),r==null||r===""?NaN:Number(r))}var P9=mt({number:function(r){return parseFloat(r)},time:function(r){return+ba(r)},trim:function(r){return vt(r)?Wa(r):r}});function h5(r){return P9.get(r)}var v5={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},z9=(function(){function r(e,t){if(!Qt(t)){var a="";le(a)}this._opFn=v5[e],this._rvalFloat=jn(t)}return r.prototype.evaluate=function(e){return Qt(e)?this._opFn(e,this._rvalFloat):this._opFn(jn(e),this._rvalFloat)},r})(),d5=(function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Qt(e)?e:jn(e),n=Qt(t)?t:jn(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var l=vt(e),s=vt(t);l&&(a=s?e:0),s&&(n=l?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),k9=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=jn(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=jn(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function B9(r,e){return r==="eq"||r==="ne"?new k9(r==="eq",e):gt(v5,r)?new z9(r,e):null}var V9=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Po(e,t)},r})();function G9(r,e){var t=new V9,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Un&&le(o);var l=[],s={},u=r.dimensionsDefine;if(u)N(u,function(m,_){var b=m.name,x={index:_,name:b,displayName:m.displayName};if(l.push(x),b!=null){var w="";gt(s,b)&&le(w),s[b]=x}});else for(var c=0;c<r.dimensionsDetectedCount;c++)l.push({index:c});var h=u5(n,Un);e.__isBuiltIn&&(t.getRawDataItem=function(m){return h(a,i,l,m)},t.getRawData=dt(H9,null,r)),t.cloneRawData=dt(F9,null,r);var d=f5(n,Un);t.count=dt(d,null,a,i,l);var p=c5(n);t.retrieveValue=function(m,_){var b=h(a,i,l,m);return y(b,_)};var y=t.retrieveValueFromItem=function(m,_){if(m!=null){var b=l[_];if(b)return p(m,_,b.name)}};return t.getDimensionInfo=dt(U9,null,l,s),t.cloneAllDimensionInfo=dt(Y9,null,l),t}function H9(r){var e=r.sourceFormat;if(!Zw(e)){var t="";le(t)}return r.data}function F9(r){var e=r.sourceFormat,t=r.data;if(!Zw(e)){var a="";le(a)}if(e===Pr){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===tn){for(var n=[],i=0,o=t.length;i<o;i++)n.push(rt({},t[i]));return n}}function U9(r,e,t){if(t!=null){if(Qt(t)||!isNaN(t)&&!gt(e,t))return r[t];if(gt(e,t))return e[t]}}function Y9(r){return Tt(r)}var p5=mt();function j9(r){r=Tt(r);var e=r.type,t="";e||le(t);var a=e.split(":");a.length!==2&&le(t);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,p5.set(e,r)}function X9(r,e,t){var a=de(r),n=a.length,i="";n||le(i);for(var o=0,l=n;o<l;o++){var s=a[o];e=W9(s,e),o!==l-1&&(e.length=Math.max(e.length,1))}return e}function W9(r,e,t,a){var n="";e.length||le(n),xt(r)||le(n);var i=r.type,o=p5.get(i);o||le(n);var l=ot(e,function(u){return G9(u,o)}),s=de(o.transform({upstream:l[0],upstreamList:l,config:Tt(r.config)}));return ot(s,function(u,c){var h="";xt(u)||le(h),u.data||le(h);var d=o5(u.data);Zw(d)||le(h);var p,y=e[0];if(y&&c===0&&!u.dimensions){var m=y.startIndex;m&&(u.data=y.data.slice(0,m).concat(u.data)),p={seriesLayoutBy:Un,sourceHeader:m,dimensions:y.metaRawOption.dimensions}}else p={seriesLayoutBy:Un,sourceHeader:0,dimensions:u.dimensions};return Yb(u.data,p,null)})}function Zw(r){return r===Pr||r===tn}var $y="undefined",Z9=typeof Uint32Array===$y?Array:Uint32Array,q9=typeof Uint16Array===$y?Array:Uint16Array,g5=typeof Int32Array===$y?Array:Int32Array,vR=typeof Float64Array===$y?Array:Float64Array,y5={float:vR,int:g5,ordinal:Array,number:Array,time:vR},b_;function mu(r){return r>65535?Z9:q9}function _u(){return[1/0,-1/0]}function $9(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function dR(r,e,t,a,n){var i=y5[t||"float"];if(n){var o=r[e],l=o&&o.length;if(l!==a){for(var s=new i(a),u=0;u<l;u++)s[u]=o[u];r[e]=s}}else r[e]=new i(a)}var jb=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=mt()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=b_[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],l5(n),this._dimensions=ot(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new y5[t||"float"](this._rawCount),this._rawExtent[i]=_u(),i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,l=a.length;o===0&&(i[e]=_u());for(var s=i[e],u=o;u<l;u++){var c=a[u]=t.parseAndCollect(a[u]);isNaN(c)||(s[0]=Math.min(c,s[0]),s[1]=Math.max(c,s[1]))}n.ordinalMeta=t,n.ordinalOffset=l,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,l=this.count(),s=l+Math.max(e.length,t||0),u=0;u<i;u++){var c=n[u];dR(a,u,c.type,s,!0)}for(var h=[],d=l;d<s;d++)for(var p=d-l,y=0;y<i;y++){var c=n[y],m=b_.arrayRows.call(this,e[p]||h,c.property,p,y);a[y][d]=m;var _=o[y];m<_[0]&&(_[0]=m),m>_[1]&&(_[1]=m)}return this._rawCount=this._count=s,{start:l,end:s}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,l=o.length,s=this._rawExtent,u=ot(o,function(x){return x.property}),c=0;c<l;c++){var h=o[c];s[c]||(s[c]=_u()),dR(i,c,h.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,s);else for(var d=[],p=e;p<t;p++){d=n.getItem(p,d);for(var y=0;y<l;y++){var m=i[y],_=this._dimValueGetter(d,u[y],p,y);m[p]=_;var b=s[y];_<b[0]&&(b[0]=_),_>b[1]&&(b[1]=_)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var a=t.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var n=this._chunks,i=n[e],o=[];if(!i)return o;a==null&&(a=1/0);for(var l=1/0,s=-1,u=0,c=0,h=this.count();c<h;c++){var d=this.getRawIndex(c),p=t-i[d],y=Math.abs(p);y<=a&&((y<l||y===l&&p>=0&&s<0)&&(l=y,s=p,u=0),p===s&&(o[u++]=c))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a=mu(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=mu(a._rawCount),o=new i(n),l=[],s=e.length,u=0,c=e[0],h=a._chunks,d=0;d<n;d++){var p=void 0,y=a.getRawIndex(d);if(s===0)p=t(d);else if(s===1){var m=h[c][y];p=t(m,d)}else{for(var _=0;_<s;_++)l[_]=h[e[_]][y];l[_]=d,p=t.apply(null,l)}p&&(o[u++]=y)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Yt(e),i=n.length;if(!i)return this;var o=t.count(),l=mu(t._rawCount),s=new l(o),u=0,c=n[0],h=e[c][0],d=e[c][1],p=t._chunks,y=!1;if(!t._indices){var m=0;if(i===1){for(var _=p[n[0]],b=0;b<a;b++){var x=_[b];(x>=h&&x<=d||isNaN(x))&&(s[u++]=m),m++}y=!0}else if(i===2){for(var _=p[n[0]],w=p[n[1]],A=e[n[1]][0],M=e[n[1]][1],b=0;b<a;b++){var x=_[b],D=w[b];(x>=h&&x<=d||isNaN(x))&&(D>=A&&D<=M||isNaN(D))&&(s[u++]=m),m++}y=!0}}if(!y)if(i===1)for(var b=0;b<o;b++){var L=t.getRawIndex(b),x=p[n[0]][L];(x>=h&&x<=d||isNaN(x))&&(s[u++]=L)}else for(var b=0;b<o;b++){for(var R=!0,L=t.getRawIndex(b),E=0;E<i;E++){var O=n[E],x=p[O][L];(x<e[O][0]||x>e[O][1])&&(R=!1)}R&&(s[u++]=t.getRawIndex(b))}return u<o&&(t._indices=s),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,l=e.count(),s=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=_u();for(var h=0;h<l;h++){for(var d=e.getRawIndex(h),p=0;p<o;p++)s[p]=n[t[p]][d];s[o]=h;var y=a&&a.apply(null,s);if(y!=null){typeof y!="object"&&(i[0]=y,y=i);for(var c=0;c<y.length;c++){var m=t[c],_=y[c],b=u[m],x=n[m];x&&(x[d]=_),_<b[0]&&(b[0]=_),_>b[1]&&(b[1]=_)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),l=0,s=Math.floor(1/t),u=this.getRawIndex(0),c,h,d,p=new(mu(this._rawCount))(Math.min((Math.ceil(o/s)+2)*2,o));p[l++]=u;for(var y=1;y<o-1;y+=s){for(var m=Math.min(y+s,o-1),_=Math.min(y+s*2,o),b=(_+m)/2,x=0,w=m;w<_;w++){var A=this.getRawIndex(w),M=i[A];isNaN(M)||(x+=M)}x/=_-m;var D=y,L=Math.min(y+s,o),R=y-1,E=i[u];c=-1,d=D;for(var O=-1,P=0,w=D;w<L;w++){var A=this.getRawIndex(w),M=i[A];if(isNaN(M)){P++,O<0&&(O=A);continue}h=Math.abs((R-b)*(M-E)-(R-w)*(x-E)),h>c&&(c=h,d=A)}P>0&&P<L-D&&(p[l++]=Math.min(O,d),d=Math.max(O,d)),p[l++]=d,u=d}return p[l++]=this.getRawIndex(o-1),a._count=l,a._indices=p,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(e,t){for(var a=this.clone([e],!0),n=a._chunks,i=Math.floor(1/t),o=n[e],l=this.count(),s=new(mu(this._rawCount))(Math.ceil(l/i)*2),u=0,c=0;c<l;c+=i){var h=c,d=o[this.getRawIndex(h)],p=c,y=o[this.getRawIndex(p)],m=i;c+i>l&&(m=l-c);for(var _=0;_<m;_++){var b=this.getRawIndex(c+_),x=o[b];x<d&&(d=x,h=c+_),x>y&&(y=x,p=c+_)}var w=this.getRawIndex(h),A=this.getRawIndex(p);h<p?(s[u++]=w,s[u++]=A):(s[u++]=A,s[u++]=w)}return a._count=u,a._indices=s,a._updateGetRawIdx(),a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,l=[],s=Math.floor(1/t),u=o[e],c=this.count(),h=i._rawExtent[e]=_u(),d=new(mu(this._rawCount))(Math.ceil(c/s)),p=0,y=0;y<c;y+=s){s>c-y&&(s=c-y,l.length=s);for(var m=0;m<s;m++){var _=this.getRawIndex(y+m);l[m]=u[_]}var b=a(l),x=this.getRawIndex(Math.min(y+n(l,b)||0,c-1));u[x]=b,b<h[0]&&(h[0]=b),b>h[1]&&(h[1]=b),d[p++]=x}return i._count=p,i._indices=d,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var l=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][l],i);break;case 2:t(n[e[0]][l],n[e[1]][l],i);break;default:for(var s=0,u=[];s<a;s++)u[s]=n[e[s]][l];u[s]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=_u();if(!t)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var l=o[0],s=o[1],u=0;u<n;u++){var c=this.getRawIndex(u),h=t[c];h<l&&(l=h),h>s&&(s=h)}return o=[l,s],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&qa(e,function(l,s){return l[s]=!0,l},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?$9(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Tt(this._extent),e._rawExtent=Tt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,a,n,i){return Po(t[i],this._dimensions[i])}b_={arrayRows:e,objectRows:function(t,a,n,i){return Po(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Po(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}})(),r})(),m5=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(mp(e)){var o=e,l=void 0,s=void 0,u=void 0;if(a){var c=t[0];c.prepareSource(),u=c.getSource(),l=u.data,s=u.sourceFormat,i=[c._getVersionSign()]}else l=o.get("data",!0),s=Yr(l)?No:Ja,i=[];var h=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=Rt(h.seriesLayoutBy,d.seriesLayoutBy)||null,y=Rt(h.sourceHeader,d.sourceHeader),m=Rt(h.dimensions,d.dimensions),_=p!==d.seriesLayoutBy||!!y!=!!d.sourceHeader||m;n=_?[Yb(l,{seriesLayoutBy:p,sourceHeader:y,dimensions:m},s)]:[]}else{var b=e;if(a){var x=this._applyTransform(t);n=x.sourceList,i=x.upstreamSignList}else{var w=b.get("source",!0);n=[Yb(w,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&gR(i)}var o,l=[],s=[];return N(e,function(u){u.prepareSource();var c=u.getSource(n||0),h="";n!=null&&!c&&gR(h),l.push(c),s.push(u._getVersionSign())}),a?o=X9(a,l,{datasetIndex:t.componentIndex}):n!=null&&(o=[D9(l[0])]),{sourceList:o,upstreamSignList:s}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var l=o[a];if(!l){var s=this._getUpstreamSourceManagers()[0];mp(this._sourceHost)&&s?l=s._innerGetDataStore(e,t,a):(l=new jb,l.initData(new s5(t,e.length),e)),o[a]=l}return l},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(mp(e)){var t=Fw(e);return t?[t.getSourceManager()]:[]}else return ot(r9(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(mp(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r})();function pR(r){var e=r.option.transform;e&&Nh(r.option.transform)}function mp(r){return r.mainType==="series"}function gR(r){throw new Error(r)}var K9="line-height:1";function _5(r){var e=r.lineHeight;return e==null?K9:"line-height:"+Rr(e+"")+"px"}function S5(r,e){var t=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,l=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Rr(a+"")+"px;color:"+Rr(t)+";font-weight:"+Rr(n+""),valueStyle:"font-size:"+Rr(o+"")+"px;color:"+Rr(i)+";font-weight:"+Rr(l+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:l}}}var Q9=[0,10,20,30],J9=["",`
79
- `,`
80
-
81
- `,`
82
-
83
-
84
- `];function ir(r,e){return e.type=r,e}function Xb(r){return r.type==="section"}function b5(r){return Xb(r)?tY:eY}function x5(r){if(Xb(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return N(r.blocks,function(n){var i=x5(n);i>=e&&(e=i+ +(a&&(!i||Xb(n)&&!n.noHeader)))}),e}return 0}function tY(r,e,t,a){var n=e.noHeader,i=rY(x5(e)),o=[],l=e.blocks||[];Ir(!l||it(l)),l=l||[];var s=r.orderMode;if(e.sortBlocks&&s){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(gt(u,s)){var c=new d5(u[s],null);l.sort(function(m,_){return c.evaluate(m.sortParam,_.sortParam)})}else s==="seriesDesc"&&l.reverse()}N(l,function(m,_){var b=e.valueFormatter,x=b5(m)(b?rt(rt({},r),{valueFormatter:b}):r,m,_>0?i.html:0,a);x!=null&&o.push(x)});var h=r.renderMode==="richText"?o.join(i.richText):Wb(a,o.join(""),n?t:i.html);if(n)return h;var d=Hb(e.header,"ordinal",r.useUTC),p=S5(a,r.renderMode).nameStyle,y=_5(a);return r.renderMode==="richText"?w5(r,d,p)+i.richText+h:Wb(a,'<div style="'+p+";"+y+';">'+Rr(d)+"</div>"+h,t)}function eY(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,l=!e.markerType,s=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(A){return A=it(A)?A:[A],ot(A,function(M,D){return Hb(M,it(p)?p[D]:p,u)})};if(!(i&&o)){var h=l?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),d=i?"":Hb(s,"ordinal",u),p=e.valueType,y=o?[]:c(e.value,e.dataIndex),m=!l||!i,_=!l&&i,b=S5(a,n),x=b.nameStyle,w=b.valueStyle;return n==="richText"?(l?"":h)+(i?"":w5(r,d,x))+(o?"":iY(r,y,m,_,w)):Wb(a,(l?"":h)+(i?"":aY(d,!l,x))+(o?"":nY(y,m,_,w)),t)}}function yR(r,e,t,a,n,i){if(r){var o=b5(r),l={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(l,r,0,i)}}function rY(r){return{html:Q9[r],richText:J9[r]}}function Wb(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=_5(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function aY(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Rr(r)+"</span>"}function nY(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=it(r)?r:[r],'<span style="'+i+";"+a+'">'+ot(r,function(o){return Rr(o)}).join("&nbsp;&nbsp;")+"</span>"}function w5(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function iY(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(it(e)?e.join(" "):e,i)}function T5(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return vs(a)}function A5(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var x_=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=FP()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=Xz({color:t,type:e,renderMode:a,markerId:n});return vt(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};it(t)?N(t,function(i){return rt(a,i)}):rt(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r})();function C5(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,l=e.getRawValue(t),s=it(l),u=T5(e,t),c,h,d,p;if(o>1||s&&!o){var y=oY(l,e,t,i,u);c=y.inlineValues,h=y.inlineValueTypes,d=y.blocks,p=y.inlineValues[0]}else if(o){var m=n.getDimensionInfo(i[0]);p=c=af(n,t,i[0]),h=m.type}else p=c=s?l[0]:l;var _=dw(e),b=_&&e.name||"",x=n.getName(t),w=a?b:x;return ir("section",{header:b,noHeader:a||!_,sortParam:p,blocks:[ir("nameValue",{markerType:"item",markerColor:u,name:w,noName:!Wa(w),value:c,valueType:h,dataIndex:t})].concat(d||[])})}function oY(r,e,t,a,n){var i=e.getData(),o=qa(r,function(h,d,p){var y=i.getDimensionInfo(p);return h=h||y&&y.tooltip!==!1&&y.displayName!=null},!1),l=[],s=[],u=[];a.length?N(a,function(h){c(af(i,t,h),h)}):N(r,c);function c(h,d){var p=i.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(o?u.push(ir("nameValue",{markerType:"subItem",markerColor:n,name:p.displayName,value:h,valueType:p.type})):(l.push(h),s.push(p.type)))}return{inlineValues:l,inlineValueTypes:s,blocks:u}}var ho=$t();function _p(r,e){return r.getName(e)||r.getId(e)}var vg="__universalTransitionEnabled",pe=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Lh({count:sY,reset:uY}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=ho(this).sourceManager=new m5(this);i.prepareSource();var o=this.getInitialData(t,n);_R(o,this),this.dataTask.context.data=o,ho(this).dataBeforeProcessed=o,mR(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Xh(this),i=n?bf(t):{},o=this.subType;Ht.hasClass(o)&&(o+="Series"),It(t,a.getTheme().get(this.subType)),It(t,this.getDefaultOption()),us(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Go(t,i,n)},e.prototype.mergeOption=function(t,a){t=It(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Xh(this);n&&Go(this.option,t,n);var i=ho(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);_R(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ho(this).dataBeforeProcessed=o,mR(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Yr(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&us(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=Zb(this);if(a){var n=a.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return ho(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=Zb(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}ho(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return mt(t)},e.prototype.getSourceManager=function(){return ho(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ho(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,a,n){return C5({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ft.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=Uw.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},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,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l<t.length;l++){var s=t[l],u=_p(o,s);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Yt(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[_p(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[vg])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,l=o.selectedMode,s=a.length;if(!(!l||!s)){if(l==="series")o.selectedMap="all";else if(l==="multiple"){xt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<s;c++){var h=a[c],d=_p(t,h);u[d]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(h)}}else if(l==="single"||l===!0){var p=a[s-1],d=_p(t,p);o.selectedMap=(n={},n[d]=!0,n),this._selectedDataIndicesMap=(i={},i[d]=t.getRawIndex(p),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return Ht.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})(Ht);ze(pe,qy);ze(pe,Uw);KP(pe,Ht);function mR(r){var e=r.name;dw(r)||(r.name=lY(r)||e)}function lY(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return N(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function sY(r){return r.model.getRawData().count()}function uY(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),fY}function fY(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function _R(r,e){N(Ju(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Et(cY,e))})}function cY(r,e){var t=Zb(r);return t&&t.setOutputEnd((e||this).count()),e}function Zb(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var we=(function(){function r(){this.group=new Ct,this.uid=Sf("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();gw(we);Oy(we);function Tf(){var r=$t();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),l=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==l)&&"reset"}}var D5=$t(),hY=Tf(),fe=(function(){function r(){this.group=new Ct,this.uid=Sf("viewChart"),this.renderTask=Lh({plan:vY,reset:dY}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&bR(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&bR(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){jo(this.group,e)},r.markUpdateMethod=function(e,t){D5(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function SR(r,e,t){r&&Uh(r)&&(e==="emphasis"?Ei:Ii)(r,t)}function bR(r,e,t){var a=fs(r,e),n=e&&e.highlightKey!=null?KF(e.highlightKey):null;a!=null?N(de(a),function(i){SR(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){SR(i,t,n)})}gw(fe);Oy(fe);function vY(r){return hY(r.model)}function dY(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,l=n&&D5(n).updateMethod,s=i?"incrementalPrepareRender":l&&o[l]?l:"render";return s!=="render"&&o[s](e,t,a,n),pY[s]}var pY={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Fg="\0__throttleOriginMethod",xR="\0__throttleRate",wR="\0__throttleType";function Ky(r,e,t){var a,n=0,i=0,o=null,l,s,u,c;e=e||0;function h(){i=new Date().getTime(),o=null,r.apply(s,u||[])}var d=function(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];a=new Date().getTime(),s=this,u=p;var m=c||e,_=c||t;c=null,l=a-(_?n:i)-m,clearTimeout(o),_?o=setTimeout(h,m):l>=0?h():o=setTimeout(h,-l),n=a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(p){c=p},d}function Af(r,e,t,a){var n=r[e];if(n){var i=n[Fg]||n,o=n[wR],l=n[xR];if(l!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Ky(i,t,a==="debounce"),n[Fg]=i,n[wR]=a,n[xR]=t}return n}}function Zh(r,e){var t=r[e];t&&t[Fg]&&(t.clear&&t.clear(),r[e]=t[Fg])}var TR=$t(),AR={itemStyle:cs(zz,!0),lineStyle:cs(Pz,!0)},gY={lineStyle:"stroke",itemStyle:"fill"};function M5(r,e){var t=r.visualStyleMapper||AR[e];return t||(console.warn("Unknown style type '"+e+"'."),AR.itemStyle)}function L5(r,e){var t=r.visualDrawType||gY[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var yY={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=M5(r,a),o=i(n),l=n.getShallow("decal");l&&(t.setVisual("decal",l),l.dirty=!0);var s=L5(r,a),u=o[s],c=_t(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[s]||c||h){var d=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[s]||(o[s]=d,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||_t(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||_t(o.stroke)?d:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",s),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(p,y){var m=r.getDataParams(y),_=rt({},o);_[s]=c(m),p.setItemVisual(y,"style",_)}}}},zc=new ee,mY={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=M5(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,l){var s=o.getRawDataItem(l);if(s&&s[a]){zc.option=s[a];var u=n(zc),c=o.ensureUniqueItemVisual(l,"style");rt(c,u),zc.option.decal&&(o.setItemVisual(l,"decal",zc.option.decal),zc.option.decal.dirty=!0),i in u&&o.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},_Y={performRawSeries:!0,overallReset:function(r){var e=mt();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),TR(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=TR(t).scope,l=t.visualStyleAccessPath||"itemStyle",s=L5(t,l);i.each(function(u){var c=i.getRawIndex(u);n[c]=u}),a.each(function(u){var c=n[u],h=i.getItemVisual(c,"colorFromPalette");if(h){var d=i.ensureUniqueItemVisual(c,"style"),p=a.getName(u)||u+"",y=a.count();d[s]=t.getColorFromPalette(p,o,y)}})}})}},Sp=Math.PI;function SY(r,e){e=e||{},St(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 t=new Ct,a=new Wt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Xt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Wt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new mv({shape:{startAngle:-Sp/2,endAngle:-Sp/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Sp*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Sp*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var l=n.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-s*2-(e.showSpinner&&l?10:0)-l)/2-(e.showSpinner&&l?0:5+l/2)+(e.showSpinner?0:l/2)+(l?0:s),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-s,y:c-s,width:s*2,height:s*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var R5=(function(){function r(e,t,a,n){this._stageTaskMap=mt(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,l=n&&n.modDataCount,s=l!=null?Math.ceil(l/o):null;return{step:o,modBy:s,modDataCount:l}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,l=e.get("large")&&i>=e.get("largeThreshold"),s=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:s,large:l}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=mt();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;N(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Ir(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;N(e,function(s,u){if(!(n.visualType&&n.visualType!==s.visualType)){var c=o._stageTaskMap.get(s.uid),h=c.seriesTaskMap,d=c.overallTask;if(d){var p,y=d.agentStubMap;y.each(function(_){l(n,_)&&(_.dirty(),p=!0)}),p&&d.dirty(),o.updatePayload(d,a);var m=o.getPerformArgs(d,n.block);y.each(function(_){_.perform(m)}),d.perform(m)&&(i=!0)}else h&&h.each(function(_,b){l(n,_)&&_.dirty();var x=o.getPerformArgs(_,n.block);x.skip=!s.performRawSeries&&t.isSeriesFiltered(_.context.model),o.updatePayload(_,a),_.perform(x)&&(i=!0)})}});function l(s,u){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,l=t.seriesTaskMap=mt(),s=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(c):s?a.eachRawSeriesByType(s,c):u&&u(a,n).each(c);function c(h){var d=h.uid,p=l.set(d,o&&o.get(d)||Lh({plan:AY,reset:CY,count:MY}));p.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,p)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Lh({reset:bY});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var l=o.agentStubMap,s=o.agentStubMap=mt(),u=e.seriesType,c=e.getTargetSeries,h=!0,d=!1,p="";Ir(!e.createOnAllSeries,p),u?a.eachRawSeriesByType(u,y):c?c(a,n).each(y):(h=!1,N(a.getSeries(),y));function y(m){var _=m.uid,b=s.set(_,l&&l.get(_)||(d=!0,Lh({reset:xY,onDirty:TY})));b.context={model:m,overallProgress:h},b.agent=o,b.__block=h,i._pipe(m,b)}d&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return _t(e)&&(e={overallReset:e,seriesType:LY(e)}),e.uid=Sf("stageHandler"),t&&(e.visualType=t),e},r})();function bY(r){r.overallReset(r.ecModel,r.api,r.payload)}function xY(r){return r.overallProgress&&wY}function wY(){this.agent.dirty(),this.getDownstream().dirty()}function TY(){this.agent&&this.agent.dirty()}function AY(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function CY(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=de(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?ot(e,function(t,a){return E5(a)}):DY}var DY=E5(0);function E5(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function MY(r){return r.data.count()}function LY(r){Ug=null;try{r(qh,I5)}catch{}return Ug}var qh={},I5={},Ug;O5(qh,Yw);O5(I5,a5);qh.eachSeriesByType=qh.eachRawSeriesByType=function(r){Ug=r};qh.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Ug=r.subType)};function O5(r,e){for(var t in e.prototype)r[t]=Pe}var CR=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const RY={color:CR,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],CR]};var Dr="#B9B8CE",DR="#100C2A",bp=function(){return{axisLine:{lineStyle:{color:Dr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},MR=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],N5={darkMode:!0,color:MR,backgroundColor:DR,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Dr},pageTextStyle:{color:Dr}},textStyle:{color:Dr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Dr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Dr},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:Dr}},timeline:{lineStyle:{color:Dr},label:{color:Dr},controlStyle:{color:Dr,borderColor:Dr}},calendar:{itemStyle:{color:DR},dayLabel:{color:Dr},monthLabel:{color:Dr},yearLabel:{color:Dr}},timeAxis:bp(),logAxis:bp(),valueAxis:bp(),categoryAxis:bp(),line:{symbol:"circle"},graph:{color:MR},gauge:{title:{color:Dr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Dr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};N5.categoryAxis.splitLine.show=!1;var EY=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(vt(e)){var i=Bn(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],l={name:1,dataIndex:1,dataType:1};N(e,function(s,u){for(var c=!1,h=0;h<o.length;h++){var d=o[h],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var y=u.slice(0,p);y!=="data"&&(t.mainType=y,t[d.toLowerCase()]=s,c=!0)}}l.hasOwnProperty(u)&&(a[u]=s,c=!0),c||(n[u]=s)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,l=a.view;if(!o||!l)return!0;var s=t.cptQuery,u=t.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(e,t.otherQuery,n,i));function c(h,d,p,y){return h[p]==null||d[y||p]===h[p]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),qb=["symbol","symbolSize","symbolRotate","symbolOffset"],LR=qb.concat(["symbolKeepAspect"]),IY={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<qb.length;o++){var l=qb[o],s=r.get(l);_t(s)?(i=!0,n[l]=s):a[l]=s}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(rt({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=Yt(n);function c(h,d){for(var p=r.getRawValue(d),y=r.getDataParams(d),m=0;m<u.length;m++){var _=u[m];h.setItemVisual(d,_,n[_](p,y))}}return{dataEach:i?c:null}}},OY={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(n,i){for(var o=n.getItemModel(i),l=0;l<LR.length;l++){var s=LR[l],u=o.getShallow(s,!0);u!=null&&n.setItemVisual(i,s,u)}}return{dataEach:t.hasItemOption?a:null}}};function qw(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function xv(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function P5(r,e,t,a){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}function z5(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}N([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=rt({},n),o.dispatchAction(rt(n,{type:a[1],seriesIndex:t(i,n)}))})})}function Su(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var l=o.seriesIndex,s=o.option.selectedMap,u=n.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===l){var h=o.getData(),d=fs(h,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:it(d)?h.getName(d[0]):h.getName(d),selected:vt(s)?s:rt({},s)})}})}function NY(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(Su("map","selectchanged",e,n,a),Su("pie","selectchanged",e,n,a)):a.fromAction==="select"?(Su("map","selected",e,n,a),Su("pie","selected",e,n,a)):a.fromAction==="unselect"&&(Su("map","unselected",e,n,a),Su("pie","unselected",e,n,a))})}function Kl(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var PY=Math.round(Math.random()*9),zY=typeof Object.defineProperty=="function",kY=(function(){function r(){this._id="__ec_inner_"+PY++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return zY?Object.defineProperty(a,this._id,{value:t,enumerable:!1,configurable:!0}):a[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),BY=Ut.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),VY=Ut.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),GY=Ut.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,l=o*o/(i-o),s=a-i+o+l,u=Math.asin(l/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),p=o*.6,y=o*.7;r.moveTo(t-c,s+l),r.arc(t,s,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-h*p,s+l+d*p,t,a-y,t,a),r.bezierCurveTo(t,a-y,t-c+h*p,s+l+d*p,t-c,s+l),r.closePath()}}),HY=Ut.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),FY={line:Qe,rect:Wt,roundRect:Wt,square:Wt,circle:Wn,diamond:VY,pin:GY,arrow:HY,triangle:BY},UY={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},Yg={};N(FY,function(r,e){Yg[e]=new r});var YY=Ut.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Og(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var n=Yg[a];n||(a="rect",n=Yg[a]),UY[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function jY(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Ge(r,e,t,a,n,i,o){var l=r.indexOf("empty")===0;l&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var s;return r.indexOf("image://")===0?s=Dw(r.slice(8),new kt(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?s=_v(r.slice(7),{},new kt(e,t,a,n),o?"center":"cover"):s=new YY({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),s.__isEmptyBrush=l,s.setColor=jY,i&&s.setColor(i),s}function Cf(r){return it(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function xs(r,e){if(r!=null)return it(r)||(r=[r,r]),[ht(r[0],e[0])||0,ht(Rt(r[1],r[0]),e[1])||0]}function Ql(r){return isFinite(r)}function XY(r,e,t){var a=e.x==null?0:e.x,n=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*t.width+t.x,n=n*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),a=Ql(a)?a:0,n=Ql(n)?n:1,i=Ql(i)?i:0,o=Ql(o)?o:0;var l=r.createLinearGradient(a,i,n,o);return l}function WY(r,e,t){var a=t.width,n=t.height,i=Math.min(a,n),o=e.x==null?.5:e.x,l=e.y==null?.5:e.y,s=e.r==null?.5:e.r;e.global||(o=o*a+t.x,l=l*n+t.y,s=s*i),o=Ql(o)?o:.5,l=Ql(l)?l:.5,s=s>=0&&Ql(s)?s:.5;var u=r.createRadialGradient(o,l,0,o,l,s);return u}function $b(r,e,t){for(var a=e.type==="radial"?WY(r,e,t):XY(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function ZY(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function xp(r){return parseInt(r,10)}function Fu(r,e,t){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[a]!=null&&t[a]!=="auto")return parseFloat(t[a]);var l=document.defaultView.getComputedStyle(r);return(r[n]||xp(l[a])||xp(r.style[a]))-(xp(l[i])||0)-(xp(l[o])||0)|0}function qY(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Qt(r)?[r]:it(r)?r:null}function $w(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&qY(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=ot(t,function(i){return i/n}),a/=n)}return[t,a]}var $Y=new Xn(!0);function jg(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function RR(r){return typeof r=="string"&&r!=="none"}function Xg(r){var e=r.fill;return e!=null&&e!=="none"}function ER(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function IR(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Kb(r,e,t){var a=yw(e.image,e.__image,t);if(Ny(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*yh),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function KY(r,e,t,a){var n,i=jg(t),o=Xg(t),l=t.strokePercent,s=l<1,u=!e.path;(!e.silent||s)&&u&&e.createPathProxy();var c=e.path||$Y,h=e.__dirty;if(!a){var d=t.fill,p=t.stroke,y=o&&!!d.colorStops,m=i&&!!p.colorStops,_=o&&!!d.image,b=i&&!!p.image,x=void 0,w=void 0,A=void 0,M=void 0,D=void 0;(y||m)&&(D=e.getBoundingRect()),y&&(x=h?$b(r,d,D):e.__canvasFillGradient,e.__canvasFillGradient=x),m&&(w=h?$b(r,p,D):e.__canvasStrokeGradient,e.__canvasStrokeGradient=w),_&&(A=h||!e.__canvasFillPattern?Kb(r,d,e):e.__canvasFillPattern,e.__canvasFillPattern=A),b&&(M=h||!e.__canvasStrokePattern?Kb(r,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),y?r.fillStyle=x:_&&(A?r.fillStyle=A:o=!1),m?r.strokeStyle=w:b&&(M?r.strokeStyle=M:i=!1)}var L=e.getGlobalScale();c.setScale(L[0],L[1],e.segmentIgnoreThreshold);var R,E;r.setLineDash&&t.lineDash&&(n=$w(e),R=n[0],E=n[1]);var O=!0;(u||h&Nu)&&(c.setDPR(r.dpr),s?c.setContext(null):(c.setContext(r),O=!1),c.reset(),e.buildPath(c,e.shape,a),c.toStatic(),e.pathUpdated()),O&&c.rebuildPath(r,s?l:1),R&&(r.setLineDash(R),r.lineDashOffset=E),a||(t.strokeFirst?(i&&IR(r,t),o&&ER(r,t)):(o&&ER(r,t),i&&IR(r,t))),R&&r.setLineDash([])}function QY(r,e,t){var a=e.__image=yw(t.image,e.__image,e,e.onload);if(!(!a||!Ny(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),l=e.getHeight(),s=a.width/a.height;if(o==null&&l!=null?o=l*s:l==null&&o!=null?l=o/s:o==null&&l==null&&(o=a.width,l=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(a,u,c,t.sWidth,t.sHeight,n,i,o,l)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,h=o-u,d=l-c;r.drawImage(a,u,c,h,d,n,i,o,l)}else r.drawImage(a,n,i,o,l)}}function JY(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||ko,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=$w(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(jg(t)&&r.strokeText(n,t.x,t.y),Xg(t)&&r.fillText(n,t.x,t.y)):(Xg(t)&&r.fillText(n,t.x,t.y),jg(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var OR=["shadowBlur","shadowOffsetX","shadowOffsetY"],NR=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function k5(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){aa(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?rs.opacity:o}(a||e.blend!==t.blend)&&(i||(aa(r,n),i=!0),r.globalCompositeOperation=e.blend||rs.blend);for(var l=0;l<OR.length;l++){var s=OR[l];(a||e[s]!==t[s])&&(i||(aa(r,n),i=!0),r[s]=r.dpr*(e[s]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(aa(r,n),i=!0),r.shadowColor=e.shadowColor||rs.shadowColor),i}function PR(r,e,t,a,n){var i=$h(e,n.inHover),o=a?null:t&&$h(t,n.inHover)||{};if(i===o)return!1;var l=k5(r,i,o,a,n);if((a||i.fill!==o.fill)&&(l||(aa(r,n),l=!0),RR(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(l||(aa(r,n),l=!0),RR(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(l||(aa(r,n),l=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var s=i.lineWidth,u=s/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(l||(aa(r,n),l=!0),r.lineWidth=u)}for(var c=0;c<NR.length;c++){var h=NR[c],d=h[0];(a||i[d]!==o[d])&&(l||(aa(r,n),l=!0),r[d]=i[d]||h[1])}return l}function tj(r,e,t,a,n){return k5(r,$h(e,n.inHover),t&&$h(t,n.inHover),a,n)}function B5(r,e){var t=e.transform,a=r.dpr||1;t?r.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):r.setTransform(a,0,0,a,0,0)}function ej(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),B5(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}function rj(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var zR=1,kR=2,BR=3,VR=4;function aj(r){var e=Xg(r),t=jg(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function aa(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function $h(r,e){return e&&r.__hoverStyle||r.style}function Kw(r,e){Jl(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Jl(r,e,t,a){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~ga,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,l=!1,s=!1;if((!o||ZY(i,o))&&(o&&o.length&&(aa(r,t),r.restore(),s=l=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(aa(r,t),r.save(),ej(i,r,t),l=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(s=l=!0);var c=e instanceof Ut&&e.autoBatch&&aj(e.style);l||rj(n,u.transform)?(aa(r,t),B5(r,e)):c||aa(r,t);var h=$h(e,t.inHover);e instanceof Ut?(t.lastDrawType!==zR&&(s=!0,t.lastDrawType=zR),PR(r,e,u,s,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),KY(r,e,h,c),c&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof ef?(t.lastDrawType!==BR&&(s=!0,t.lastDrawType=BR),PR(r,e,u,s,t),JY(r,e,h)):e instanceof or?(t.lastDrawType!==kR&&(s=!0,t.lastDrawType=kR),tj(r,e,u,s,t),QY(r,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==VR&&(s=!0,t.lastDrawType=VR),nj(r,e,t)),c&&a&&aa(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function nj(r,e,t){var a=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,l;for(o=e.getCursor(),l=a.length;o<l;o++){var s=a[o];s.beforeBrush&&s.beforeBrush(),s.innerBeforeBrush(),Jl(r,s,i,o===l-1),s.innerAfterBrush(),s.afterBrush&&s.afterBrush(),i.prevEl=s}for(var u=0,c=n.length;u<c;u++){var s=n[u];s.beforeBrush&&s.beforeBrush(),s.innerBeforeBrush(),Jl(r,s,i,u===c-1),s.innerAfterBrush(),s.afterBrush&&s.afterBrush(),i.prevEl=s}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var w_=new kY,GR=new vv(100),HR=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function nf(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&w_.delete(r);var i=w_.get(r);if(i)return i;var o=St(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var l={repeat:"repeat"};return s(l),l.rotation=o.rotation,l.scaleX=l.scaleY=n?1:1/t,w_.set(r,l),r.dirty=!1,l;function s(u){for(var c=[t],h=!0,d=0;d<HR.length;++d){var p=o[HR[d]];if(p!=null&&!it(p)&&!vt(p)&&!Qt(p)&&typeof p!="boolean"){h=!1;break}c.push(p)}var y;if(h){y=c.join(",")+(n?"-svg":"");var m=GR.get(y);m&&(n?u.svgElement=m:u.image=m)}var _=G5(o.dashArrayX),b=ij(o.dashArrayY),x=V5(o.symbol),w=oj(_),A=H5(b),M=!n&&_n.createCanvas(),D=n&&{tag:"g",attrs:{},key:"dcl",children:[]},L=E(),R;M&&(M.width=L.width*t,M.height=L.height*t,R=M.getContext("2d")),O(),h&&GR.put(y,M||D),u.image=M,u.svgElement=D,u.svgWidth=L.width,u.svgHeight=L.height;function E(){for(var P=1,k=0,V=w.length;k<V;++k)P=nL(P,w[k]);for(var H=1,k=0,V=x.length;k<V;++k)H=nL(H,x[k].length);P*=H;var U=A*w.length*x.length;return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(U,o.maxTileHeight))}}function O(){R&&(R.clearRect(0,0,M.width,M.height),o.backgroundColor&&(R.fillStyle=o.backgroundColor,R.fillRect(0,0,M.width,M.height)));for(var P=0,k=0;k<b.length;++k)P+=b[k];if(P<=0)return;for(var V=-A,H=0,U=0,z=0;V<L.height;){if(H%2===0){for(var Y=U/2%x.length,j=0,$=0,tt=0;j<L.width*2;){for(var F=0,k=0;k<_[z].length;++k)F+=_[z][k];if(F<=0)break;if($%2===0){var W=(1-o.symbolSize)*.5,at=j+_[z][$]*W,lt=V+b[H]*W,ct=_[z][$]*o.symbolSize,bt=b[H]*o.symbolSize,Pt=tt/2%x[Y].length;wt(at,lt,ct,bt,x[Y][Pt])}j+=_[z][$],++tt,++$,$===_[z].length&&($=0)}++z,z===_.length&&(z=0)}V+=b[H],++U,++H,H===b.length&&(H=0)}function wt(pt,Ot,yt,Dt,ce){var Zt=n?1:t,ue=Ge(ce,pt*Zt,Ot*Zt,yt*Zt,Dt*Zt,o.color,o.symbolKeepAspect);if(n){var ye=a.painter.renderOneToVNode(ue);ye&&D.children.push(ye)}else Kw(R,ue)}}}}function V5(r){if(!r||r.length===0)return[["rect"]];if(vt(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!vt(r[t])){e=!1;break}if(e)return V5([r]);for(var a=[],t=0;t<r.length;++t)vt(r[t])?a.push([r[t]]):a.push(r[t]);return a}function G5(r){if(!r||r.length===0)return[[0,0]];if(Qt(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!Qt(r[a])){t=!1;break}if(t)return G5([r]);for(var n=[],a=0;a<r.length;++a)if(Qt(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=ot(r[a],function(l){return Math.ceil(l)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function ij(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Qt(r)){var e=Math.ceil(r);return[e,e]}var t=ot(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function oj(r){return ot(r,function(e){return H5(e)})}function H5(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function lj(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var l=a.getItemVisual(o,"decal");if(l){var s=a.ensureUniqueItemVisual(o,"style");s.decal=nf(l,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=nf(n,e)}}})}var cn=new Ka,F5={};function sj(r,e){F5[r]=e}function U5(r){return F5[r]}var uj="5.6.0",fj={zrender:"5.6.1"},cj=1,hj=800,vj=900,dj=1e3,pj=2e3,gj=5e3,Y5=1e3,yj=1100,Qw=2e3,j5=3e3,mj=4e3,Qy=4500,_j=4600,Sj=5e3,bj=6e3,X5=7e3,W5={PROCESSOR:{FILTER:dj,SERIES_FILTER:hj,STATISTIC:gj},VISUAL:{LAYOUT:Y5,PROGRESSIVE_LAYOUT:yj,GLOBAL:Qw,CHART:j5,POST_CHART_LAYOUT:_j,COMPONENT:mj,BRUSH:Sj,CHART_ITEM:Qy,ARIA:bj,DECAL:X5}},Cr="__flagInMainProcess",ta="__pendingUpdate",T_="__needsUpdateStatus",FR=/^[a-zA-Z0-9_]+$/,A_="__connectUpdateStatus",UR=0,xj=1,wj=2;function Z5(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return $5(this,r,e)}}function q5(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $5(this,r,e)}}function $5(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Ka.prototype[e].apply(r,t)}var K5=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Ka),Q5=K5.prototype;Q5.on=q5("on");Q5.off=q5("off");var bu,C_,wp,vo,D_,M_,L_,kc,Bc,YR,jR,R_,XR,Tp,WR,J5,Pa,ZR,Wg=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this,new EY)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},vt(a)&&(a=tk[a]),i._dom=t;var o="canvas",l="auto",s=!1;n.ssr&&kP(function(d){var p=Mt(d),y=p.dataIndex;if(y!=null){var m=mt();return m.set("series_index",p.seriesIndex),m.set("data_index",y),p.ssrType&&m.set("ssr_type",p.ssrType),m}});var u=i._zr=Tb(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Rt(n.useDirtyRect,s),useCoarsePointer:Rt(n.useCoarsePointer,l),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Ky(dt(u.flush,u),17),a=Tt(a),a&&i5(a,!0),i._theme=a,i._locale=GU(n.locale||kz),i._coordSysMgr=new wf;var c=i._api=WR(i);function h(d,p){return d.__prio-p.__prio}return rg(qg,h),rg(Qb,h),i._scheduler=new R5(i,c,Qb,qg),i._messageCenter=new K5,i._initEvents(),i.resize=dt(i.resize,i),u.animation.on("frame",i._onframe,i),YR(u,i),jR(u,i),Nh(i),i}return e.prototype._onframe=function(){if(!this._disposed){ZR(this);var t=this._scheduler;if(this[ta]){var a=this[ta].silent;this[Cr]=!0;try{bu(this),vo.update.call(this,null,this[ta].updateParams)}catch(s){throw this[Cr]=!1,this[ta]=null,s}this._zr.flush(),this[Cr]=!1,this[ta]=null,kc.call(this,a),Bc.call(this,a)}else if(t.unfinished){var n=cj,i=this._model,o=this._api;t.unfinished=!1;do{var l=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),M_(this,i),t.performVisualTasks(i),Tp(this,this._model,o,"remain",{}),n-=+new Date-l}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,a,n){if(!this[Cr]){if(this._disposed){this.id;return}var i,o,l;if(xt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,l=a.transition,a=a.notMerge),this[Cr]=!0,!this._model||a){var s=new v9(this._api),u=this._theme,c=this._model=new Yw;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,s)}this._model.setOption(t,{replaceMerge:o},Jb);var h={seriesTransition:l,optionChanged:!0};if(n)this[ta]={silent:i,updateParams:h},this[Cr]=!1,this.getZr().wakeUp();else{try{bu(this),vo.update.call(this,null,h)}catch(d){throw this[ta]=null,this[Cr]=!1,d}this._ssr||this._zr.flush(),this[ta]=null,this[Cr]=!1,kc.call(this,i),Bc.call(this,i)}}},e.prototype.setTheme=function(){},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||Ft.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Ft.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return N(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;N(a,function(s){n.eachComponent({mainType:s},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return N(i,function(s){s.group.ignore=!1}),l},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,l=1/0;if($g[n]){var s=l,u=l,c=-l,h=-l,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();N(is,function(w,A){if(w.group===n){var M=a?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(Tt(t)),D=w.getDom().getBoundingClientRect();s=i(D.left,s),u=i(D.top,u),c=o(D.right,c),h=o(D.bottom,h),d.push({dom:M,left:D.left,top:D.top})}}),s*=p,u*=p,c*=p,h*=p;var y=c-s,m=h-u,_=_n.createCanvas(),b=Tb(_,{renderer:a?"svg":"canvas"});if(b.resize({width:y,height:m}),a){var x="";return N(d,function(w){var A=w.left-s,M=w.top-u;x+='<g transform="translate('+A+","+M+')">'+w.dom+"</g>"}),b.painter.getSvgRoot().innerHTML=x,t.connectedBackgroundColor&&b.painter.setBackgroundColor(t.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}else return t.connectedBackgroundColor&&b.add(new Wt({shape:{x:0,y:0,width:y,height:m},style:{fill:t.connectedBackgroundColor}})),N(d,function(w){var A=new or({style:{x:w.left*p-s,y:w.top*p-u,image:w.dom}});b.add(A)}),b.refreshImmediately(),_.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a){return D_(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return D_(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=Th(n,t);return N(o,function(l,s){s.indexOf("Models")>=0&&N(l,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(a);else if(s==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=Th(n,t,{defaultMainType:"series"}),o=i.seriesModel,l=o.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?l.indexOfRawIndex(i.dataIndex):null;return s!=null?qw(l,s,a):xv(l,a)},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=this;N(Tj,function(a){var n=function(i){var o=t.getModel(),l=i.target,s,u=a==="globalout";if(u?s={}:l&&Kl(l,function(y){var m=Mt(y);if(m&&m.dataIndex!=null){var _=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return s=_&&_.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return s=rt({},m.eventData),!0},!0),s){var c=s.componentType,h=s.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=s.seriesIndex);var d=c&&h!=null&&o.getComponent(c,h),p=d&&t[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];s.event=i,s.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:s,model:d,view:p},t.trigger(a,s)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),N(Rh,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),N(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),NY(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&ZP(this.getDom(),tT,"");var a=this,n=a._api,i=a._model;N(a._componentsViews,function(o){o.dispose(i,n)}),N(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete is[a.id]},e.prototype.resize=function(t){if(!this[Cr]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[ta]&&(i==null&&(i=this[ta].silent),n=!0,this[ta]=null),this[Cr]=!0;try{n&&bu(this),vo.update.call(this,{type:"resize",animation:rt({duration:0},t&&t.animation)})}catch(o){throw this[Cr]=!1,o}this[Cr]=!1,kc.call(this,i),Bc.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(xt(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!tx[t]){var n=tx[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=rt({},t);return a.type=Rh[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(xt(a)||(a={silent:!!a}),!!Zg[t.type]&&this._model){if(this[Cr]){this._pendingActions.push(t);return}var n=a.silent;L_.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&Ft.browser.weChat&&this._throttledZrFlush(),kc.call(this,n),Bc.call(this,n)}},e.prototype.updateLabelLayout=function(){cn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){bu=function(h){var d=h._scheduler;d.restorePipelines(h._model),d.prepareStageTasks(),C_(h,!0),C_(h,!1),d.plan()},C_=function(h,d){for(var p=h._model,y=h._scheduler,m=d?h._componentsViews:h._chartsViews,_=d?h._componentsMap:h._chartsMap,b=h._zr,x=h._api,w=0;w<m.length;w++)m[w].__alive=!1;d?p.eachComponent(function(D,L){D!=="series"&&A(L)}):p.eachSeries(A);function A(D){var L=D.__requireNewView;D.__requireNewView=!1;var R="_ec_"+D.id+"_"+D.type,E=!L&&_[R];if(!E){var O=Bn(D.type),P=d?we.getClass(O.main,O.sub):fe.getClass(O.sub);E=new P,E.init(p,x),_[R]=E,m.push(E),b.add(E.group)}D.__viewId=E.__id=R,E.__alive=!0,E.__model=D,E.group.__ecComponentInfo={mainType:D.mainType,index:D.componentIndex},!d&&y.prepareView(E,D,p,x)}for(var w=0;w<m.length;){var M=m[w];M.__alive?w++:(!d&&M.renderTask.dispose(),b.remove(M.group),M.dispose(p,x),m.splice(w,1),_[M.__id]===M&&delete _[M.__id],M.__id=M.group.__ecComponentInfo=null)}},wp=function(h,d,p,y,m){var _=h._model;if(_.setUpdatePayload(p),!y){N([].concat(h._componentsViews).concat(h._chartsViews),M);return}var b={};b[y+"Id"]=p[y+"Id"],b[y+"Index"]=p[y+"Index"],b[y+"Name"]=p[y+"Name"];var x={mainType:y,query:b};m&&(x.subType=m);var w=p.excludeSeriesId,A;w!=null&&(A=mt(),N(de(w),function(D){var L=Ke(D,null);L!=null&&A.set(L,!0)})),_&&_.eachComponent(x,function(D){var L=A&&A.get(D.id)!=null;if(!L)if(RL(p))if(D instanceof pe)p.type===as&&!p.notBlur&&!D.get(["emphasis","disabled"])&&UF(D,p,h._api);else{var R=ww(D.mainType,D.componentIndex,p.name,h._api),E=R.focusSelf,O=R.dispatchers;p.type===as&&E&&!p.notBlur&&Nb(D.mainType,D.componentIndex,h._api),O&&N(O,function(P){p.type===as?Ei(P):Ii(P)})}else zb(p)&&D instanceof pe&&(XF(D,p,h._api),ML(D),Pa(h))},h),_&&_.eachComponent(x,function(D){var L=A&&A.get(D.id)!=null;L||M(h[y==="series"?"_chartsMap":"_componentsMap"][D.__viewId])},h);function M(D){D&&D.__alive&&D[d]&&D[d](D.__model,_,h._api,p)}},vo={prepareAndUpdate:function(h){bu(this),vo.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,d){var p=this._model,y=this._api,m=this._zr,_=this._coordSysMgr,b=this._scheduler;if(p){p.setUpdatePayload(h),b.restoreData(p,h),b.performSeriesTasks(p),_.create(p,y),b.performDataProcessorTasks(p,h),M_(this,p),_.update(p,y),t(p),b.performVisualTasks(p,h),R_(this,p,y,h,d);var x=p.get("backgroundColor")||"transparent",w=p.get("darkMode");m.setBackgroundColor(x),w!=null&&w!=="auto"&&m.setDarkMode(w),cn.trigger("afterupdate",p,y)}},updateTransform:function(h){var d=this,p=this._model,y=this._api;if(p){p.setUpdatePayload(h);var m=[];p.eachComponent(function(b,x){if(b!=="series"){var w=d.getViewOfComponentModel(x);if(w&&w.__alive)if(w.updateTransform){var A=w.updateTransform(x,p,y,h);A&&A.update&&m.push(w)}else m.push(w)}});var _=mt();p.eachSeries(function(b){var x=d._chartsMap[b.__viewId];if(x.updateTransform){var w=x.updateTransform(b,p,y,h);w&&w.update&&_.set(b.uid,1)}else _.set(b.uid,1)}),t(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0,dirtyMap:_}),Tp(this,p,y,h,{},_),cn.trigger("afterupdate",p,y)}},updateView:function(h){var d=this._model;d&&(d.setUpdatePayload(h),fe.markUpdateMethod(h,"updateView"),t(d),this._scheduler.performVisualTasks(d,h,{setDirty:!0}),R_(this,d,this._api,h,{}),cn.trigger("afterupdate",d,this._api))},updateVisual:function(h){var d=this,p=this._model;p&&(p.setUpdatePayload(h),p.eachSeries(function(y){y.getData().clearAllVisual()}),fe.markUpdateMethod(h,"updateVisual"),t(p),this._scheduler.performVisualTasks(p,h,{visualType:"visual",setDirty:!0}),p.eachComponent(function(y,m){if(y!=="series"){var _=d.getViewOfComponentModel(m);_&&_.__alive&&_.updateVisual(m,p,d._api,h)}}),p.eachSeries(function(y){var m=d._chartsMap[y.__viewId];m.updateVisual(y,p,d._api,h)}),cn.trigger("afterupdate",p,this._api))},updateLayout:function(h){vo.update.call(this,h)}},D_=function(h,d,p,y){if(h._disposed){h.id;return}for(var m=h._model,_=h._coordSysMgr.getCoordinateSystems(),b,x=Th(m,p),w=0;w<_.length;w++){var A=_[w];if(A[d]&&(b=A[d](m,x,y))!=null)return b}},M_=function(h,d){var p=h._chartsMap,y=h._scheduler;d.eachSeries(function(m){y.updateStreamModes(m,p[m.__viewId])})},L_=function(h,d){var p=this,y=this.getModel(),m=h.type,_=h.escapeConnect,b=Zg[m],x=b.actionInfo,w=(x.update||"update").split(":"),A=w.pop(),M=w[0]!=null&&Bn(w[0]);this[Cr]=!0;var D=[h],L=!1;h.batch&&(L=!0,D=ot(h.batch,function(H){return H=St(rt({},H),h),H.batch=null,H}));var R=[],E,O=zb(h),P=RL(h);if(P&&gz(this._api),N(D,function(H){if(E=b.action(H,p._model,p._api),E=E||rt({},H),E.type=x.event||E.type,R.push(E),P){var U=pw(h),z=U.queryOptionMap,Y=U.mainTypeSpecified,j=Y?z.keys()[0]:"series";wp(p,A,H,j),Pa(p)}else O?(wp(p,A,H,"series"),Pa(p)):M&&wp(p,A,H,M.main,M.sub)}),A!=="none"&&!P&&!O&&!M)try{this[ta]?(bu(this),vo.update.call(this,h),this[ta]=null):vo[A].call(this,h)}catch(H){throw this[Cr]=!1,H}if(L?E={type:x.event||m,escapeConnect:_,batch:R}:E=R[0],this[Cr]=!1,!d){var k=this._messageCenter;if(k.trigger(E.type,E),O){var V={type:"selectchanged",escapeConnect:_,selected:WF(y),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};k.trigger(V.type,V)}}},kc=function(h){for(var d=this._pendingActions;d.length;){var p=d.shift();L_.call(this,p,h)}},Bc=function(h){!h&&this.trigger("updated")},YR=function(h,d){h.on("rendered",function(p){d.trigger("rendered",p),h.animation.isFinished()&&!d[ta]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},jR=function(h,d){h.on("mouseover",function(p){var y=p.target,m=Kl(y,Uh);m&&(YF(m,p,d._api),Pa(d))}).on("mouseout",function(p){var y=p.target,m=Kl(y,Uh);m&&(jF(m,p,d._api),Pa(d))}).on("click",function(p){var y=p.target,m=Kl(y,function(x){return Mt(x).dataIndex!=null},!0);if(m){var _=m.selected?"unselect":"select",b=Mt(m);d._api.dispatchAction({type:_,dataType:b.dataType,dataIndexInside:b.dataIndex,seriesIndex:b.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(d){d.clearColorPalette()})}function a(h){var d=[],p=[],y=!1;if(h.eachComponent(function(x,w){var A=w.get("zlevel")||0,M=w.get("z")||0,D=w.getZLevelKey();y=y||!!D,(x==="series"?p:d).push({zlevel:A,z:M,idx:w.componentIndex,type:x,key:D})}),y){var m=d.concat(p),_,b;rg(m,function(x,w){return x.zlevel===w.zlevel?x.z-w.z:x.zlevel-w.zlevel}),N(m,function(x){var w=h.getComponent(x.type,x.idx),A=x.zlevel,M=x.key;_!=null&&(A=Math.max(_,A)),M?(A===_&&M!==b&&A++,b=M):b&&(A===_&&A++,b=""),_=A,w.setZLevel(A)})}}R_=function(h,d,p,y,m){a(d),XR(h,d,p,y,m),N(h._chartsViews,function(_){_.__alive=!1}),Tp(h,d,p,y,m),N(h._chartsViews,function(_){_.__alive||_.remove(d,p)})},XR=function(h,d,p,y,m,_){N(_||h._componentsViews,function(b){var x=b.__model;u(x,b),b.render(x,d,p,y),l(x,b),c(x,b)})},Tp=function(h,d,p,y,m,_){var b=h._scheduler;m=rt(m||{},{updatedSeries:d.getSeries()}),cn.trigger("series:beforeupdate",d,p,m);var x=!1;d.eachSeries(function(w){var A=h._chartsMap[w.__viewId];A.__alive=!0;var M=A.renderTask;b.updatePayload(M,y),u(w,A),_&&_.get(w.uid)&&M.dirty(),M.perform(b.getPerformArgs(M))&&(x=!0),A.group.silent=!!w.get("silent"),o(w,A),ML(w)}),b.unfinished=x||b.unfinished,cn.trigger("series:layoutlabels",d,p,m),cn.trigger("series:transition",d,p,m),d.eachSeries(function(w){var A=h._chartsMap[w.__viewId];l(w,A),c(w,A)}),i(h,d),cn.trigger("series:afterupdate",d,p,m)},Pa=function(h){h[T_]=!0,h.getZr().wakeUp()},ZR=function(h){h[T_]&&(h.getZr().storage.traverse(function(d){Wu(d)||n(d)}),h[T_]=!1)};function n(h){for(var d=[],p=h.currentStates,y=0;y<p.length;y++){var m=p[y];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}h.selected&&h.states.select&&d.push("select"),h.hoverState===ky&&h.states.emphasis?d.push("emphasis"):h.hoverState===gv&&h.states.blur&&d.push("blur"),h.useStates(d)}function i(h,d){var p=h._zr,y=p.storage,m=0;y.traverse(function(_){_.isGroup||m++}),m>d.get("hoverLayerThreshold")&&!Ft.node&&!Ft.worker&&d.eachSeries(function(_){if(!_.preventUsingHoverLayer){var b=h._chartsMap[_.__viewId];b.__alive&&b.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function o(h,d){var p=h.get("blendMode")||null;d.eachRendered(function(y){y.isGroup||(y.style.blend=p)})}function l(h,d){if(!h.preventAutoZ){var p=h.get("z")||0,y=h.get("zlevel")||0;d.eachRendered(function(m){return s(m,p,y,-1/0),!0})}}function s(h,d,p,y){var m=h.getTextContent(),_=h.getTextGuideLine(),b=h.isGroup;if(b)for(var x=h.childrenRef(),w=0;w<x.length;w++)y=Math.max(s(x[w],d,p,y),y);else h.z=d,h.zlevel=p,y=Math.max(h.z2,y);if(m&&(m.z=d,m.zlevel=p,isFinite(y)&&(m.z2=y+2)),_){var A=h.textGuideLineConfig;_.z=d,_.zlevel=p,isFinite(y)&&(_.z2=y+(A&&A.showAbove?1:-1))}return y}function u(h,d){d.eachRendered(function(p){if(!Wu(p)){var y=p.getTextContent(),m=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(h,d){var p=h.getModel("stateAnimation"),y=h.isAnimationEnabled(),m=p.get("duration"),_=m>0?{duration:m,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(b){if(b.states&&b.states.emphasis){if(Wu(b))return;if(b instanceof Ut&&QF(b),b.__dirty){var x=b.prevStates;x&&b.useStates(x)}if(y){b.stateTransition=_;var w=b.getTextContent(),A=b.getTextGuideLine();w&&(w.stateTransition=_),A&&(A.stateTransition=_)}b.__dirty&&n(b)}})}WR=function(h){return new((function(d){Z(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(y){for(;y;){var m=y.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);y=y.parent}},p.prototype.enterEmphasis=function(y,m){Ei(y,m),Pa(h)},p.prototype.leaveEmphasis=function(y,m){Ii(y,m),Pa(h)},p.prototype.enterBlur=function(y){hz(y),Pa(h)},p.prototype.leaveBlur=function(y){xw(y),Pa(h)},p.prototype.enterSelect=function(y){vz(y),Pa(h)},p.prototype.leaveSelect=function(y){dz(y),Pa(h)},p.prototype.getModel=function(){return h.getModel()},p.prototype.getViewOfComponentModel=function(y){return h.getViewOfComponentModel(y)},p.prototype.getViewOfSeriesModel=function(y){return h.getViewOfSeriesModel(y)},p})(a5))(h)},J5=function(h){function d(p,y){for(var m=0;m<p.length;m++){var _=p[m];_[A_]=y}}N(Rh,function(p,y){h._messageCenter.on(y,function(m){if($g[h.group]&&h[A_]!==UR){if(m&&m.escapeConnect)return;var _=h.makeActionFromEvent(m),b=[];N(is,function(x){x!==h&&x.group===h.group&&b.push(x)}),d(b,UR),N(b,function(x){x[A_]!==xj&&x.dispatchAction(_)}),d(b,wj)}})})}})(),e})(Ka),Jw=Wg.prototype;Jw.on=Z5("on");Jw.off=Z5("off");Jw.one=function(r,e,t){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)}this.on.call(this,r,n,t)};var Tj=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Zg={},Rh={},Qb=[],Jb=[],qg=[],tk={},tx={},is={},$g={},Aj=+new Date-0,Cj=+new Date-0,tT="_echarts_instance_";function Dj(r,e,t){var a=!(t&&t.ssr);if(a){var n=eT(r);if(n)return n}var i=new Wg(r,e,t);return i.id="ec_"+Aj++,is[i.id]=i,a&&ZP(r,tT,i.id),J5(i),cn.trigger("afterinit",i),i}function Mj(r){if(it(r)){var e=r;r=null,N(e,function(t){t.group!=null&&(r=t.group)}),r=r||"g_"+Cj++,N(e,function(t){t.group=r})}return $g[r]=!0,r}function ek(r){$g[r]=!1}var Lj=ek;function Rj(r){vt(r)?r=is[r]:r instanceof Wg||(r=eT(r)),r instanceof Wg&&!r.isDisposed()&&r.dispose()}function eT(r){return is[G7(r,tT)]}function Ej(r){return is[r]}function rT(r,e){tk[r]=e}function aT(r){Bt(Jb,r)<0&&Jb.push(r)}function nT(r,e){iT(Qb,r,e,pj)}function rk(r){Jy("afterinit",r)}function ak(r){Jy("afterupdate",r)}function Jy(r,e){cn.on(r,e)}function wn(r,e,t){_t(e)&&(t=e,e="");var a=xt(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!Rh[e]&&(Ir(FR.test(a)&&FR.test(e)),Zg[a]||(Zg[a]={action:t,actionInfo:r}),Rh[e]=a)}function nk(r,e){wf.register(r,e)}function Ij(r){var e=wf.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function ik(r,e){iT(qg,r,e,Y5,"layout")}function Wo(r,e){iT(qg,r,e,j5,"visual")}var qR=[];function iT(r,e,t,a,n){if((_t(e)||xt(e))&&(t=e,e=a),!(Bt(qR,t)>=0)){qR.push(t);var i=R5.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function oT(r,e){tx[r]=e}function Oj(r){J3({createCanvas:r})}function ok(r,e,t){var a=U5("registerMap");a&&a(r,e,t)}function Nj(r){var e=U5("getMap");return e&&e(r)}var lk=j9;Wo(Qw,yY);Wo(Qy,mY);Wo(Qy,_Y);Wo(Qw,IY);Wo(Qy,OY);Wo(X5,lj);aT(i5);nT(vj,A9);oT("default",SY);wn({type:as,event:as,update:as},Pe);wn({type:sg,event:sg,update:sg},Pe);wn({type:Ah,event:Ah,update:Ah},Pe);wn({type:ug,event:ug,update:ug},Pe);wn({type:Ch,event:Ch,update:Ch},Pe);rT("light",RY);rT("dark",N5);var Pj={},$R=[],zj={registerPreprocessor:aT,registerProcessor:nT,registerPostInit:rk,registerPostUpdate:ak,registerUpdateLifecycle:Jy,registerAction:wn,registerCoordinateSystem:nk,registerLayout:ik,registerVisual:Wo,registerTransform:lk,registerLoading:oT,registerMap:ok,registerImpl:sj,PRIORITY:W5,ComponentModel:Ht,ComponentView:we,SeriesModel:pe,ChartView:fe,registerComponentModel:function(r){Ht.registerClass(r)},registerComponentView:function(r){we.registerClass(r)},registerSeriesModel:function(r){pe.registerClass(r)},registerChartView:function(r){fe.registerClass(r)},registerSubTypeDefaulter:function(r,e){Ht.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){PP(r,e)}};function Gt(r){if(it(r)){N(r,function(e){Gt(e)});return}Bt($R,r)>=0||($R.push(r),_t(r)&&(r={install:r}),r.install(zj))}function Vc(r){return r==null?0:r.length||1}function KR(r){return r}var Oi=(function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||KR,this._newKeyGetter=n||KR,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var l=n[o],s=a[l],u=Vc(s);if(u>1){var c=s.shift();s.length===1&&(a[l]=s[0]),this._update&&this._update(c,o)}else u===1?(a[l]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var l=0;l<i.length;l++){var s=i[l],u=a[s],c=n[s],h=Vc(u),d=Vc(c);if(h>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[s]=null;else if(h===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[s]=null;else if(h===1&&d===1)this._update&&this._update(c,u),n[s]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[s]=null;else if(h>1)for(var p=0;p<h;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=Vc(i);if(o>1)for(var l=0;l<o;l++)this._add&&this._add(i[l]);else o===1&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var l="_ec_"+this[n](e[o],o);if(i||(a[o]=l),!!t){var s=t[l],u=Vc(s);u===0?(t[l]=o,i&&a.push(l)):u===1?t[l]=[s,o]:s.push(o)}}},r})(),kj=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Bj(r,e){var t={},a=t.encode={},n=mt(),i=[],o=[],l={};N(r.dimensions,function(d){var p=r.getDimensionInfo(d),y=p.coordDim;if(y){var m=p.coordDimIndex;E_(a,y)[m]=d,p.isExtraCoord||(n.set(y,1),Vj(p.type)&&(i[0]=d),E_(l,y)[m]=r.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(d)}$z.each(function(_,b){var x=E_(a,b),w=p.otherDims[b];w!=null&&w!==!1&&(x[w]=p.name)})});var s=[],u={};n.each(function(d,p){var y=a[p];u[p]=y[0],s=s.concat(y)}),t.dataDimsOnCoord=s,t.dataDimIndicesOnCoord=ot(s,function(d){return r.getDimensionInfo(d).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(i=c.slice());var h=a.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new kj(l,e),t}function E_(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Kg(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Vj(r){return!(r==="ordinal"||r==="time")}var dg=(function(){function r(e){this.otherDims={},e!=null&&rt(this,e)}return r})(),Gj=$t(),Hj={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},sk=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=ck(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Rt(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=l5(this.source),a=!hk(e),n="",i=[],o=0,l=0;o<e;o++){var s=void 0,u=void 0,c=void 0,h=this.dimensions[l];if(h&&h.storeDimIndex===o)s=t?h.name:null,u=h.type,c=h.ordinalMeta,l++;else{var d=this.getSourceDimension(o);d&&(s=t?d.name:null,u=d.type)}i.push({property:s,type:u,ordinalMeta:c}),t&&s!=null&&(!h||!h.isCalculationCoord)&&(n+=a?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),n+="$",n+=Hj[u]||"f",c&&(n+=c.uid),n+="$"}var p=this.source,y=[p.seriesLayoutBy,p.startIndex,n].join("$$");return{dimensions:i,hash:y}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function uk(r){return r instanceof sk}function fk(r){for(var e=mt(),t=0;t<(r||[]).length;t++){var a=r[t],n=xt(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function ck(r){var e=Gj(r);return e.dimNameMap||(e.dimNameMap=fk(r.dimensionsDefine))}function hk(r){return r>30}var Gc=xt,po=ot,Fj=typeof Int32Array>"u"?Array:Int32Array,Uj="e\0\0",QR=-1,Yj=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],jj=["_approximateExtent"],JR,Ap,Hc,Fc,I_,Uc,O_,Er=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;uk(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],l={},s=!1,u={},c=0;c<a.length;c++){var h=a[c],d=vt(h)?new dg({name:h}):h instanceof dg?h:new dg(h),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var y=d.otherDims=d.otherDims||{};o.push(p),i[p]=d,u[p]!=null&&(s=!0),d.createInvertedIndices&&(l[p]=[]),y.itemName===0&&(this._nameDimIdx=c),y.itemId===0&&(this._idDimIdx=c),n&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=l,this._dimOmitted){var m=this._dimIdxToName=mt();N(o,function(_){m.set(i[_].storeDimIndex,_)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Qt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var n=this,i;if(e instanceof jb&&(i=e),!i){var o=this.dimensions,l=jw(e)||Sr(e)?new s5(e,o.length):e;i=new jb;var s=po(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(l,s,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Bj(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t&&t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var l=n;l<i;l++){var s=l-n;this._nameList[l]=t[s],o&&O_(this,l)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==No&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,l=n.getSource().sourceFormat,s=l===Ja;if(s&&!n.pure)for(var u=[],c=e;c<t;c++){var h=n.getItem(c,u);if(!this.hasItemOption&&D7(h)&&(this.hasItemOption=!0),h){var d=h.name;i[c]==null&&d!=null&&(i[c]=Ke(d,null));var p=h.id;o[c]==null&&p!=null&&(o[c]=Ke(p,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)O_(this,c);JR(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Gc(e)?rt(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=Hc(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return Ap(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return it(e)?n.getValues(po(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],n=a&&a[t];return n==null||isNaN(n)?QR:n},r.prototype.indicesOfNearest=function(e,t,a){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,a)},r.prototype.each=function(e,t,a){_t(e)&&(a=t,t=e,e=[]);var n=a||this,i=po(Fc(e),this._getStoreDimIndex,this);this._store.each(i,n?dt(t,n):t)},r.prototype.filterSelf=function(e,t,a){_t(e)&&(a=t,t=e,e=[]);var n=a||this,i=po(Fc(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?dt(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Yt(e);return N(n,function(i){var o=t._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){_t(e)&&(a=t,t=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=po(Fc(e),this._getStoreDimIndex,this),l=Uc(this);return l._store=this._store.map(o,i?dt(t,i):t),l},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=po(Fc(e),this._getStoreDimIndex,this);this._store.modify(o,i?dt(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=Uc(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=Uc(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=Uc(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new ee(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Oi(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Ap(e,a)},function(a){return Ap(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Gc(e)?rt(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),it(i)?i=i.slice():Gc(i)&&(i=rt({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Gc(t)?rt(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Gc(e)?rt(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?rt(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;Ib(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){N(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:po(this.dimensions,this._getDimInfo,this),this.hostModel)),I_(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];_t(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Ay(arguments)))})},r.internalField=(function(){JR=function(e){var t=e._invertedIndicesMap;N(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,l=e._store;if(o){a=t[n]=new Fj(o.categories.length);for(var s=0;s<a.length;s++)a[s]=QR;for(var s=0;s<l.count();s++)a[l.get(i.storeDimIndex,s)]=s}})},Hc=function(e,t,a){return Ke(e._getCategory(t,a),null)},Ap=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=Hc(e,e._idDimIdx,t)),a==null&&(a=Uj+t),a},Fc=function(e){return it(e)||(e=e!=null?[e]:[]),e},Uc=function(e){var t=new r(e._schema?e._schema:po(e.dimensions,e._getDimInfo,e),e.hostModel);return I_(t,e),t},I_=function(e,t){N(Yj.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,N(jj,function(a){e[a]=Tt(t[a])}),e._calculationInfo=rt({},t._calculationInfo)},O_=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,l=a[t],s=n[t];if(l==null&&i!=null&&(a[t]=l=Hc(e,i,t)),s==null&&o!=null&&(n[t]=s=Hc(e,o,t)),s==null&&l!=null){var u=e._nameRepeatCount,c=u[l]=(u[l]||0)+1;s=l,c>1&&(s+="__ec__"+c),n[t]=s}}})(),r})();function Xj(r,e){return Df(r,e).dimensions}function Df(r,e){jw(r)||(r=Xw(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=mt(),i=[],o=Zj(r,t,a,e.dimensionsCount),l=e.canOmitUnusedDimensions&&hk(o),s=a===r.dimensionsDefine,u=s?ck(r):fk(a),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var h=mt(c),d=new g5(o),p=0;p<d.length;p++)d[p]=-1;function y(E){var O=d[E];if(O<0){var P=a[E],k=xt(P)?P:{name:P},V=new dg,H=k.name;H!=null&&u.get(H)!=null&&(V.name=V.displayName=H),k.type!=null&&(V.type=k.type),k.displayName!=null&&(V.displayName=k.displayName);var U=i.length;return d[E]=U,V.storeDimIndex=E,i.push(V),V}return i[O]}if(!l)for(var p=0;p<o;p++)y(p);h.each(function(E,O){var P=de(E).slice();if(P.length===1&&!vt(P[0])&&P[0]<0){h.set(O,!1);return}var k=h.set(O,[]);N(P,function(V,H){var U=vt(V)?u.get(V):V;U!=null&&U<o&&(k[H]=U,_(y(U),O,H))})});var m=0;N(t,function(E){var O,P,k,V;if(vt(E))O=E,V={};else{V=E,O=V.name;var H=V.ordinalMeta;V.ordinalMeta=null,V=rt({},V),V.ordinalMeta=H,P=V.dimsDef,k=V.otherDims,V.name=V.coordDim=V.coordDimIndex=V.dimsDef=V.otherDims=null}var U=h.get(O);if(U!==!1){if(U=de(U),!U.length)for(var z=0;z<(P&&P.length||1);z++){for(;m<o&&y(m).coordDim!=null;)m++;m<o&&U.push(m++)}N(U,function(Y,j){var $=y(Y);if(s&&V.type!=null&&($.type=V.type),_(St($,V),O,j),$.name==null&&P){var tt=P[j];!xt(tt)&&(tt={name:tt}),$.name=$.displayName=tt.name,$.defaultTooltip=tt.defaultTooltip}k&&St($.otherDims,k)})}});function _(E,O,P){$z.get(O)!=null?E.otherDims[O]=P:(E.coordDim=O,E.coordDimIndex=P,n.set(O,!0))}var b=e.generateCoord,x=e.generateCoordCount,w=x!=null;x=b?x||1:0;var A=b||"value";function M(E){E.name==null&&(E.name=E.coordDim)}if(l)N(i,function(E){M(E)}),i.sort(function(E,O){return E.storeDimIndex-O.storeDimIndex});else for(var D=0;D<o;D++){var L=y(D),R=L.coordDim;R==null&&(L.coordDim=qj(A,n,w),L.coordDimIndex=0,(!b||x<=0)&&(L.isExtraCoord=!0),x--),M(L),L.type==null&&(t5(r,D)===_r.Must||L.isExtraCoord&&(L.otherDims.itemName!=null||L.otherDims.seriesName!=null))&&(L.type="ordinal")}return Wj(i),new sk({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:l})}function Wj(r){for(var e=mt(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function Zj(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return N(e,function(i){var o;xt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function qj(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var $j=(function(){function r(e){this.coordSysDims=[],this.axisMap=mt(),this.categoryAxisMap=mt(),this.coordSysName=e}return r})();function Kj(r){var e=r.get("coordinateSystem"),t=new $j(e),a=Qj[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var Qj={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",je).models[0],i=r.getReferringComponents("yAxis",je).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),xu(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),xu(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",je).models[0];e.coordSysDims=["single"],t.set("single",n),xu(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",je).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),xu(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),xu(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();N(i.parallelAxisIndex,function(l,s){var u=n.getComponent("parallelAxis",l),c=o[s];t.set(c,u),xu(u)&&(a.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=s))})}};function xu(r){return r.get("type")==="category"}function vk(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,l;Jj(e)?i=e:(o=e.schema,i=o.dimensions,l=e.store);var s=!!(r&&r.get("stack")),u,c,h,d;if(N(i,function(x,w){vt(x)&&(i[w]=x={name:x}),s&&!x.isExtraCoord&&(!a&&!u&&x.ordinalMeta&&(u=x),!c&&x.type!=="ordinal"&&x.type!=="time"&&(!n||n===x.coordDim)&&(c=x))}),c&&!a&&!u&&(a=!0),c){h="__\0ecstackresult_"+r.id,d="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,y=c.type,m=0;N(i,function(x){x.coordDim===p&&m++});var _={name:h,coordDim:p,coordDimIndex:m,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},b={name:d,coordDim:d,coordDimIndex:m+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(l&&(_.storeDimIndex=l.ensureCalculationDimension(d,y),b.storeDimIndex=l.ensureCalculationDimension(h,y)),o.appendCalculationDimension(_),o.appendCalculationDimension(b)):(i.push(_),i.push(b))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:h}}function Jj(r){return!uk(r.schema)}function Ni(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function lT(r,e){return Ni(r,e)?r.getCalculationInfo("stackResultDimension"):e}function tX(r,e){var t=r.get("coordinateSystem"),a=wf.get(t),n;return e&&e.coordSysDims&&(n=ot(e.coordSysDims,function(i){var o={name:i},l=e.axisMap.get(i);if(l){var s=l.get("type");o.type=Kg(s)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function eX(r,e,t){var a,n;return t&&N(r,function(i,o){var l=i.coordDim,s=t.categoryAxisMap.get(l);s&&(a==null&&(a=o),i.ordinalMeta=s.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function qn(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Xw(r)):(n=a.getSource(),i=n.sourceFormat===Ja);var o=Kj(e),l=tX(e,o),s=t.useEncodeDefaulter,u=_t(s)?s:s?Et(Jz,l,e):null,c={coordDimensions:l,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=Df(n,c),d=eX(h.dimensions,t.createInvertedIndices,o),p=i?null:a.getSharedDataStore(h),y=vk(e,{schema:h,store:p}),m=new Er(h,e);m.setCalculationInfo(y);var _=d!=null&&rX(n)?function(b,x,w,A){return A===d?w:this.defaultDimValueGetter(b,x,w,A)}:null;return m.hasItemOption=!1,m.initData(i?n:p,null,_),m}function rX(r){if(r.sourceFormat===Ja){var e=aX(r.data||[]);return!it(hf(e))}}function aX(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var $n=(function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();Oy($n);var nX=0,ex=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++nX}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&ot(a,iX);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!vt(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=mt(this.categories))},r})();function iX(r){return xt(r)&&r.value!=null?r.value:r+""}function rx(r){return r.type==="interval"||r.type==="log"}function oX(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=hw(i/e,!0);t!=null&&o<t&&(o=n.interval=t),a!=null&&o>a&&(o=n.interval=a);var l=n.intervalPrecision=dk(o),s=n.niceTickExtent=[Ne(Math.ceil(r[0]/o)*o,l),Ne(Math.floor(r[1]/o)*o,l)];return lX(s,r),n}function N_(r){var e=Math.pow(10,Iy(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ne(t*e)}function dk(r){return vn(r)+2}function tE(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function lX(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),tE(r,0,e),tE(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function tm(r,e){return r>=e[0]&&r<=e[1]}function em(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function rm(r,e){return r*(e[1]-e[0])+e[0]}var am=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new ex({})),it(n)&&(n=new ex({categories:ot(n,function(i){return xt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:vt(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),tm(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),em(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(rm(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,l=this._ordinalMeta.categories.length,s=Math.min(l,a.length);o<s;++o){var u=a[o];n[o]=u,i[u]=o}for(var c=0;o<l;++o){for(;i[c]!=null;)c++;n.push(c),i[c]=o}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},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})($n);$n.registerClass(am);var Il=Ne,Pi=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return tm(t,this._extent)},e.prototype.normalize=function(t){return em(t,this._extent)},e.prototype.scale=function(t){return rm(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]<a[0]&&(a[0]=t[0]),t[1]>a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=dk(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,l=[];if(!a)return l;var s=1e4;n[0]<i[0]&&(t?l.push({value:Il(i[0]-a,o)}):l.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(l.push({value:u}),u=Il(u+a,o),u!==l[l.length-1].value);)if(l.length>s)return[];var c=l.length?l[l.length-1].value:i[1];return n[1]>c&&(t?l.push({value:Il(c+a,o)}):l.push({value:n[1]})),l},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var l=a[o],s=a[o-1],u=0,c=[],h=l.value-s.value,d=h/t;u<t-1;){var p=Il(s.value+(u+1)*d);p>i[0]&&p<i[1]&&c.push(p),u++}n.push(c)}return n},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=vn(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Il(t.value,n,!0);return kw(i)},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var l=oX(i,t,a,n);this._intervalPrecision=l.intervalPrecision,this._interval=l.interval,this._niceExtent=l.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=Il(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Il(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e})($n);$n.registerClass(Pi);var pk=typeof Float32Array<"u",sX=pk?Float32Array:Array;function Vn(r){return it(r)?pk?new Float32Array(r):r:new sX(r)}var ax="__ec_stack_";function gk(r){return r.get("stack")||ax+r.seriesIndex}function sT(r){return r.dim+r.index}function uX(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(St({bandWidth:n,axisKey:a,stackId:ax+i},r));for(var o=_k(e),l=[],i=0;i<r.count;i++){var s=o[a][ax+i];s.offsetCenter=s.offset+s.width/2,l.push(s)}return l}}function yk(r,e){var t=[];return e.eachSeriesByType(r,function(a){xk(a)&&t.push(a)}),t}function fX(r){var e={};N(r,function(s){var u=s.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=s.getData(),d=c.dim+"_"+c.index,p=h.getDimensionIndex(h.mapDimension(c.dim)),y=h.getStore(),m=0,_=y.count();m<_;++m){var b=y.get(p,m);e[d]?e[d].push(b):e[d]=[b]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(n){n.sort(function(s,u){return s-u});for(var i=null,o=1;o<n.length;++o){var l=n[o]-n[o-1];l>0&&(i=i===null?l:Math.min(i,l))}t[a]=i}}return t}function mk(r){var e=fX(r),t=[];return N(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),l;if(i.type==="category")l=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var s=i.dim+"_"+i.index,u=e[s],c=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),d=Math.abs(h[1]-h[0]);l=u?c/d*u:c}else{var p=a.getData();l=Math.abs(o[1]-o[0])/p.count()}var y=ht(a.get("barWidth"),l),m=ht(a.get("barMaxWidth"),l),_=ht(a.get("barMinWidth")||(wk(a)?.5:1),l),b=a.get("barGap"),x=a.get("barCategoryGap");t.push({bandWidth:l,barWidth:y,barMaxWidth:m,barMinWidth:_,barGap:b,barCategoryGap:x,axisKey:sT(i),stackId:gk(a)})}),_k(t)}function _k(r){var e={};N(r,function(a,n){var i=a.axisKey,o=a.bandWidth,l=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},s=l.stacks;e[i]=l;var u=a.stackId;s[u]||l.autoWidthCount++,s[u]=s[u]||{width:0,maxWidth:0};var c=a.barWidth;c&&!s[u].width&&(s[u].width=c,c=Math.min(l.remainedWidth,c),l.remainedWidth-=c);var h=a.barMaxWidth;h&&(s[u].maxWidth=h);var d=a.barMinWidth;d&&(s[u].minWidth=d);var p=a.barGap;p!=null&&(l.gap=p);var y=a.barCategoryGap;y!=null&&(l.categoryGap=y)});var t={};return N(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,l=a.categoryGap;if(l==null){var s=Yt(i).length;l=Math.max(35-s*4,15)+"%"}var u=ht(l,o),c=ht(a.gap,1),h=a.remainedWidth,d=a.autoWidthCount,p=(h-u)/(d+(d-1)*c);p=Math.max(p,0),N(i,function(b){var x=b.maxWidth,w=b.minWidth;if(b.width){var A=b.width;x&&(A=Math.min(A,x)),w&&(A=Math.max(A,w)),b.width=A,h-=A+c*A,d--}else{var A=p;x&&x<A&&(A=Math.min(x,h)),w&&w>A&&(A=w),A!==p&&(b.width=A,h-=A+c*A,d--)}}),p=(h-u)/(d+(d-1)*c),p=Math.max(p,0);var y=0,m;N(i,function(b,x){b.width||(b.width=p),m=b,y+=b.width*(1+c)}),m&&(y-=m.width*c);var _=-y/2;N(i,function(b,x){t[n][x]=t[n][x]||{bandWidth:o,offset:_,width:b.width},_+=b.width*(1+c)})}),t}function cX(r,e,t){if(r&&e){var a=r[sT(e)];return a}}function Sk(r,e){var t=yk(r,e),a=mk(t);N(t,function(n){var i=n.getData(),o=n.coordinateSystem,l=o.getBaseAxis(),s=gk(n),u=a[sT(l)][s],c=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function bk(r){return{seriesType:r,plan:Tf(),reset:function(e){if(xk(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),l=t.getDimensionIndex(t.mapDimension(n.dim)),s=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),h=Ni(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),p=hX(n,i),y=wk(e),m=e.get("barMinHeight")||0,_=c&&t.getDimensionIndex(c),b=t.getLayout("size"),x=t.getLayout("offset");return{progress:function(w,A){for(var M=w.count,D=y&&Vn(M*3),L=y&&s&&Vn(M*3),R=y&&Vn(M),E=a.master.getRect(),O=d?E.width:E.height,P,k=A.getStore(),V=0;(P=w.next())!=null;){var H=k.get(h?_:o,P),U=k.get(l,P),z=p,Y=void 0;h&&(Y=+H-k.get(o,P));var j=void 0,$=void 0,tt=void 0,F=void 0;if(d){var W=a.dataToPoint([H,U]);if(h){var at=a.dataToPoint([Y,U]);z=at[0]}j=z,$=W[1]+x,tt=W[0]-z,F=b,Math.abs(tt)<m&&(tt=(tt<0?-1:1)*m)}else{var W=a.dataToPoint([U,H]);if(h){var at=a.dataToPoint([U,Y]);z=at[1]}j=W[0]+x,$=z,tt=b,F=W[1]-z,Math.abs(F)<m&&(F=(F<=0?-1:1)*m)}y?(D[V]=j,D[V+1]=$,D[V+2]=d?tt:F,L&&(L[V]=d?E.x:j,L[V+1]=d?$:E.y,L[V+2]=O),R[P]=P):A.setItemLayout(P,{x:j,y:$,width:tt,height:F}),V+=3}y&&A.setLayout({largePoints:D,largeDataIndices:R,largeBackgroundPoints:L,valueAxisHorizontal:d})}}}}}}function xk(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function wk(r){return r.pipelineContext&&r.pipelineContext.large}function hX(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var vX=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},uT=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return bv(t.value,jL[UU(qu(this._minLevelUnit))]||jL.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return YU(t,a,n,o,i)},e.prototype.getTicks=function(){var t=this._interval,a=this._extent,n=[];if(!t)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=SX(this._minLevelUnit,this._approxInterval,i,a);return n=n.concat(o),n.push({value:a[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1]&&(a[0]-=Xa,a[1]+=Xa),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-Xa}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var l=Cp.length,s=Math.min(vX(Cp,this._approxInterval,0,l),l-1);this._interval=Cp[s][1],this._minLevelUnit=Cp[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return Qt(t)?t:+ba(t)},e.prototype.contain=function(t){return tm(this.parse(t),this._extent)},e.prototype.normalize=function(t){return em(this.parse(t),this._extent)},e.prototype.scale=function(t){return rm(t,this._extent)},e.type="time",e})(Pi),Cp=[["second",Nw],["minute",Pw],["hour",Mh],["quarter-day",Mh*6],["half-day",Mh*12],["day",Xa*1.2],["half-week",Xa*3.5],["week",Xa*7],["month",Xa*31],["quarter",Xa*95],["half-year",YL/2],["year",YL]];function dX(r,e,t,a){var n=ba(e),i=ba(t),o=function(y){return XL(n,y,a)===XL(i,y,a)},l=function(){return o("year")},s=function(){return l()&&o("month")},u=function(){return s()&&o("day")},c=function(){return u()&&o("hour")},h=function(){return c()&&o("minute")},d=function(){return h()&&o("second")},p=function(){return d()&&o("millisecond")};switch(r){case"year":return l();case"month":return s();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return p()}}function pX(r,e){return r/=Xa,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function gX(r){var e=30*Xa;return r/=e,r>6?6:r>3?3:r>2?2:1}function yX(r){return r/=Mh,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function eE(r,e){return r/=e?Pw:Nw,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function mX(r){return hw(r,!0)}function _X(r,e,t){var a=new Date(r);switch(qu(e)){case"year":case"month":a[Gz(t)](0);case"day":a[Hz(t)](1);case"hour":a[Fz(t)](0);case"minute":a[Uz(t)](0);case"second":a[Yz(t)](0),a[jz(t)](0)}return a.getTime()}function SX(r,e,t,a){var n=1e4,i=Bz,o=0;function l(O,P,k,V,H,U,z){for(var Y=new Date(P),j=P,$=Y[V]();j<k&&j<=a[1];)z.push({value:j}),$+=O,Y[H]($),j=Y.getTime();z.push({value:j,notAdd:!0})}function s(O,P,k){var V=[],H=!P.length;if(!dX(qu(O),a[0],a[1],t)){H&&(P=[{value:_X(new Date(a[0]),O,t)},{value:a[1]}]);for(var U=0;U<P.length-1;U++){var z=P[U].value,Y=P[U+1].value;if(z!==Y){var j=void 0,$=void 0,tt=void 0,F=!1;switch(O){case"year":j=Math.max(1,Math.round(e/Xa/365)),$=zw(t),tt=jU(t);break;case"half-year":case"quarter":case"month":j=gX(e),$=$u(t),tt=Gz(t);break;case"week":case"half-week":case"day":j=pX(e),$=Uy(t),tt=Hz(t),F=!0;break;case"half-day":case"quarter-day":case"hour":j=yX(e),$=jh(t),tt=Fz(t);break;case"minute":j=eE(e,!0),$=Yy(t),tt=Uz(t);break;case"second":j=eE(e,!1),$=jy(t),tt=Yz(t);break;case"millisecond":j=mX(e),$=Xy(t),tt=jz(t);break}l(j,z,Y,$,tt,F,V),O==="year"&&k.length>1&&U===0&&k.unshift({value:k[0].value-j})}}for(var U=0;U<V.length;U++)k.push(V[U]);return V}}for(var u=[],c=[],h=0,d=0,p=0;p<i.length&&o++<n;++p){var y=qu(i[p]);if(FU(i[p])){s(i[p],u[u.length-1]||[],c);var m=i[p+1]?qu(i[p+1]):null;if(y!==m){if(c.length){d=h,c.sort(function(O,P){return O.value-P.value});for(var _=[],b=0;b<c.length;++b){var x=c[b].value;(b===0||c[b-1].value!==x)&&(_.push(c[b]),x>=a[0]&&x<=a[1]&&h++)}var w=(a[1]-a[0])/e;if(h>w*1.5&&d>w/1.5||(u.push(_),h>w||r===i[p]))break}c=[]}}}for(var A=te(ot(u,function(O){return te(O,function(P){return P.value>=a[0]&&P.value<=a[1]&&!P.notAdd})}),function(O){return O.length>0}),M=[],D=A.length-1,p=0;p<A.length;++p)for(var L=A[p],R=0;R<L.length;++R)M.push({value:L[R].value,level:D-p});M.sort(function(O,P){return O.value-P.value});for(var E=[],p=0;p<M.length;++p)(p===0||M[p].value!==M[p-1].value)&&E.push(M[p]);return E}$n.registerClass(uT);var rE=$n.prototype,Eh=Pi.prototype,bX=Ne,xX=Math.floor,wX=Math.ceil,Dp=Math.pow,sn=Math.log,fT=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Pi,t._interval=0,t}return e.prototype.getTicks=function(t){var a=this._originalScale,n=this._extent,i=a.getExtent(),o=Eh.getTicks.call(this,t);return ot(o,function(l){var s=l.value,u=Ne(Dp(this.base,s));return u=s===n[0]&&this._fixMin?Mp(u,i[0]):u,u=s===n[1]&&this._fixMax?Mp(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,a){var n=sn(this.base);t=sn(Math.max(0,t))/n,a=sn(Math.max(0,a))/n,Eh.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=rE.getExtent.call(this);a[0]=Dp(t,a[0]),a[1]=Dp(t,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=Mp(a[0],i[0])),this._fixMax&&(a[1]=Mp(a[1],i[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=sn(t[0])/sn(a),t[1]=sn(t[1])/sn(a),rE.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=HP(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var l=[Ne(wX(a[0]/i)*i),Ne(xX(a[1]/i)*i)];this._interval=i,this._niceExtent=l}},e.prototype.calcNiceExtent=function(t){Eh.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 t=sn(t)/sn(this.base),tm(t,this._extent)},e.prototype.normalize=function(t){return t=sn(t)/sn(this.base),em(t,this._extent)},e.prototype.scale=function(t){return t=rm(t,this._extent),Dp(this.base,t)},e.type="log",e})($n),Tk=fT.prototype;Tk.getMinorTicks=Eh.getMinorTicks;Tk.getLabel=Eh.getLabel;function Mp(r,e){return bX(r,vn(e))}$n.registerClass(fT);var TX=(function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;_t(o)?this._modelMinNum=Lp(e,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=Lp(e,o));var l=this._modelMaxRaw=t.get("max",!0);if(_t(l)?this._modelMaxNum=Lp(e,l({min:a[0],max:a[1]})):l!=="dataMax"&&(this._modelMaxNum=Lp(e,l)),n)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),u=it(s)?s:[s||0,s||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[bn(u[0],1),bn(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),l=this._modelMinRaw==="dataMin"?t:this._modelMinNum,s=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=l!=null,c=s!=null;l==null&&(l=e?n?0:NaN:t-i[0]*o),s==null&&(s=e?n?n-1:NaN:a+i[1]*o),(l==null||!isFinite(l))&&(l=NaN),(s==null||!isFinite(s))&&(s=NaN);var h=Qu(l)||Qu(s)||e&&!n;this._needCrossZero&&(l>0&&s>0&&!u&&(l=0),l<0&&s<0&&!c&&(s=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(l=d,u=!0),p!=null&&(s=p,c=!0),{min:l,max:s,minFixed:u,maxFixed:c,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[CX[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=AX[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),AX={min:"_determinedMin",max:"_determinedMax"},CX={min:"_dataMin",max:"_dataMax"};function Ak(r,e,t){var a=r.rawExtentInfo;return a||(a=new TX(r,e,t),r.rawExtentInfo=a,a)}function Lp(r,e){return e==null?null:Qu(e)?NaN:r.parse(e)}function Ck(r,e){var t=r.type,a=Ak(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var l=yk("bar",o),s=!1;if(N(l,function(h){s=s||h.getBaseAxis()===e.axis}),s){var u=mk(l),c=DX(n,i,e,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function DX(r,e,t,a){var n=t.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=cX(a,t.axis);if(o===void 0)return{min:r,max:e};var l=1/0;N(o,function(p){l=Math.min(p.offset,l)});var s=-1/0;N(o,function(p){s=Math.max(p.offset+p.width,s)}),l=Math.abs(l),s=Math.abs(s);var u=l+s,c=e-r,h=1-(l+s)/i,d=c/h-c;return e+=d*(s/u),r-=d*(l/u),{min:r,max:e}}function ds(r,e){var t=e,a=Ck(r,t),n=a.extent,i=t.get("splitNumber");r instanceof fT&&(r.base=t.get("logBase"));var o=r.type,l=t.get("interval"),s=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:s?t.get("minInterval"):null,maxInterval:s?t.get("maxInterval"):null}),l!=null&&r.setInterval&&r.setInterval(l)}function wv(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new am({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new uT({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new($n.getClass(e)||Pi)}}function MX(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Mf(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?(function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}})(e):vt(e)?(function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i??"");return o}})(e):_t(e)?(function(a){return function(n,i){return t!=null&&(i=n.value-t),a(cT(r,n),i,n.level!=null?{level:n.level}:null)}})(e):function(a){return r.scale.getLabel(a)}}function cT(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function LX(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof am?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),l=Mf(r),s,u=1;n>40&&(u=Math.ceil(n/40));for(var c=0;c<n;c+=u){var h=a?a[c]:{value:i[0]+c},d=l(h,c),p=o.getTextRect(d),y=RX(p,o.get("rotate")||0);s?s.union(y):s=y}return s}}function RX(r,e){var t=e*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(t))+Math.abs(n*Math.sin(t)),o=a*Math.abs(Math.sin(t))+Math.abs(n*Math.cos(t)),l=new kt(r.x,r.y,i,o);return l}function hT(r){var e=r.get("interval");return e??"auto"}function Dk(r){return r.type==="category"&&hT(r.getLabelModel())===0}function Qg(r,e){var t={};return N(r.mapDimensionsAll(e),function(a){t[lT(r,a)]=!0}),Yt(t)}function EX(r,e,t){e&&N(Qg(e,t),function(a){var n=e.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var Lf=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})();function IX(r){return qn(null,r)}var OX={isDimensionStacked:Ni,enableDataStack:vk,getStackedDimension:lT};function NX(r,e){var t=e;e instanceof ee||(t=new ee(e));var a=wv(t);return a.setExtent(r[0],r[1]),ds(a,t),a}function PX(r){ze(r,Lf)}function zX(r,e){return e=e||{},_e(r,null,null,e.state!=="normal")}const kX=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Xj,createList:IX,createScale:NX,createSymbol:Ge,createTextStyle:zX,dataStack:OX,enableHoverEmphasis:Io,getECData:Mt,getLayoutRect:Xe,mixinAxisModelCommonMethods:PX},Symbol.toStringTag,{value:"Module"}));var BX=1e-8;function aE(r,e){return Math.abs(r-e)<BX}function Ul(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=xi(n[0],n[1],o[0],o[1],e,t),n=o}var l=r[0];return(!aE(n[0],l[0])||!aE(n[1],l[1]))&&(a+=xi(n[0],n[1],l[0],l[1],e,t)),a!==0}var VX=[];function P_(r,e){for(var t=0;t<r.length;t++)hr(r[t],r[t],e)}function nE(r,e,t,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Ti(e,e,i),Ai(t,t,i))}}function GX(r){for(var e=0,t=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],l=0;l<n;l++){var s=r[l][0],u=r[l][1],c=i*u-s*o;e+=c,t+=(i+s)*c,a+=(o+u)*c,i=s,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}var Mk=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})(),iE=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),oE=(function(){function r(e){this.type="linestring",this.points=e}return r})(),Lk=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,a,n=0,i=0;i<t.length;i++){var o=t[i],l=o.exterior,s=l&&l.length;s>n&&(a=o,n=s)}if(a)return GX(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return N(o,function(l){l.type==="polygon"?nE(l.exterior,n,i,t):N(l.points,function(s){nE(s,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new kt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var l=n[i];if(l.type==="polygon"){var s=l.exterior,u=l.interiors;if(Ul(s,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(Ul(u[c],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,a,n,i){var o=this.getBoundingRect(),l=o.width/o.height;n?i||(i=n/l):n=l*i;for(var s=new kt(t,a,n,i),u=o.calculateTransform(s),c=this.geometries,h=0;h<c.length;h++){var d=c[h];d.type==="polygon"?(P_(d.exterior,u),N(d.interiors,function(p){P_(p,u)})):N(d.points,function(p){P_(p,u)})}o=this._rect,o.copy(s),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e})(Mk),HX=(function(r){Z(e,r);function e(t,a){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=hv(VX),o=t;o&&!o.isGeoSVGGraphicRoot;)Fn(i,o.getLocalTransform(),i),o=o.parent;return ms(i,i),hr(n,n,i),n},e})(Mk);function FX(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var a=e.features;return N(a,function(n){var i=n.geometry,o=i.encodeOffsets,l=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=Rk(l,o,t);break;case"Polygon":z_(l,o,t);break;case"MultiLineString":z_(l,o,t);break;case"MultiPolygon":N(l,function(s,u){return z_(s,o[u],t)})}}),e.UTF8Encoding=!1,e}function z_(r,e,t){for(var a=0;a<r.length;a++)r[a]=Rk(r[a],e[a],t)}function Rk(r,e,t){for(var a=[],n=e[0],i=e[1],o=0;o<r.length;o+=2){var l=r.charCodeAt(o)-64,s=r.charCodeAt(o+1)-64;l=l>>1^-(l&1),s=s>>1^-(s&1),l+=n,s+=i,n=l,i=s,a.push([l/t,s/t])}return a}function nx(r,e){return r=FX(r),ot(te(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new iE(o[0],o.slice(1)));break;case"MultiPolygon":N(n.coordinates,function(s){s[0]&&i.push(new iE(s[0],s.slice(1)))});break;case"LineString":i.push(new oE([n.coordinates]));break;case"MultiLineString":i.push(new oE(n.coordinates))}var l=new Lk(a[e||"name"],i,a.cp);return l.properties=a,l})}const UX=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Cb,asc:ma,getPercentWithPrecision:T7,getPixelPrecision:fw,getPrecision:vn,getPrecisionSafe:VP,isNumeric:vw,isRadianAroundZero:tf,linearMap:oe,nice:hw,numericToNumber:jn,parseDate:ba,quantile:lg,quantity:HP,quantityExponent:Iy,reformIntervals:Db,remRadian:cw,round:Ne},Symbol.toStringTag,{value:"Module"})),YX=Object.freeze(Object.defineProperty({__proto__:null,format:bv,parse:ba},Symbol.toStringTag,{value:"Module"})),jX=Object.freeze(Object.defineProperty({__proto__:null,Arc:mv,BezierCurve:pf,BoundingRect:kt,Circle:Wn,CompoundPath:Vy,Ellipse:yv,Group:Ct,Image:or,IncrementalDisplayable:Az,Line:Qe,LinearGradient:gf,Polygon:Nr,Polyline:zr,RadialGradient:Aw,Rect:Wt,Ring:df,Sector:Or,Text:Xt,clipPointsByRect:Lw,clipRectByRect:Rz,createIcon:mf,extendPath:Mz,extendShape:Dz,getShapeClass:Gy,getTransform:Oo,initProps:De,makeImage:Dw,makePath:_v,mergePath:ya,registerShape:Qa,resizePath:Mw,updateProps:Jt},Symbol.toStringTag,{value:"Module"})),XX=Object.freeze(Object.defineProperty({__proto__:null,addCommas:kw,capitalFirst:qU,encodeHTML:Rr,formatTime:ZU,formatTpl:Vw,getTextRect:XU,getTooltipMarker:Xz,normalizeCssArray:bs,toCamelCase:Bw,truncateText:tF},Symbol.toStringTag,{value:"Module"})),WX=Object.freeze(Object.defineProperty({__proto__:null,bind:dt,clone:Tt,curry:Et,defaults:St,each:N,extend:rt,filter:te,indexOf:Bt,inherits:rw,isArray:it,isFunction:_t,isObject:xt,isString:vt,map:ot,merge:It,reduce:qa},Symbol.toStringTag,{value:"Module"}));var Kh=$t();function Ek(r,e){var t=ot(e,function(a){return r.scale.parse(a)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function ZX(r){var e=r.getLabelModel().get("customValues");if(e){var t=Mf(r),a=r.scale.getExtent(),n=Ek(r,e),i=te(n,function(o){return o>=a[0]&&o<=a[1]});return{labels:ot(i,function(o){var l={value:o};return{formattedLabel:t(l),rawLabel:r.scale.getLabel(l),tickValue:o}})}}return r.type==="category"?$X(r):QX(r)}function qX(r,e){var t=r.getTickModel().get("customValues");if(t){var a=r.scale.getExtent(),n=Ek(r,t);return{ticks:te(n,function(i){return i>=a[0]&&i<=a[1]})}}return r.type==="category"?KX(r,e):{ticks:ot(r.scale.getTicks(),function(i){return i.value})}}function $X(r){var e=r.getLabelModel(),t=Ik(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Ik(r,e){var t=Ok(r,"labels"),a=hT(e),n=Nk(t,a);if(n)return n;var i,o;return _t(a)?i=kk(r,a):(o=a==="auto"?JX(r):a,i=zk(r,o)),Pk(t,a,{labels:i,labelCategoryInterval:o})}function KX(r,e){var t=Ok(r,"ticks"),a=hT(e),n=Nk(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),_t(a))i=kk(r,a,!0);else if(a==="auto"){var l=Ik(r,r.getLabelModel());o=l.labelCategoryInterval,i=ot(l.labels,function(s){return s.tickValue})}else o=a,i=zk(r,o,!0);return Pk(t,a,{ticks:i,tickCategoryInterval:o})}function QX(r){var e=r.scale.getTicks(),t=Mf(r);return{labels:ot(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function Ok(r,e){return Kh(r)[e]||(Kh(r)[e]=[])}function Nk(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function Pk(r,e,t){return r.push({key:e,value:t}),t}function JX(r){var e=Kh(r).autoInterval;return e??(Kh(r).autoInterval=r.calculateCategoryInterval())}function tW(r){var e=eW(r),t=Mf(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var l=1;o>40&&(l=Math.max(1,Math.floor(o/40)));for(var s=i[0],u=r.dataToCoord(s+1)-r.dataToCoord(s),c=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),d=0,p=0;s<=i[1];s+=l){var y=0,m=0,_=dv(t({value:s}),e.font,"center","top");y=_.width*1.3,m=_.height*1.3,d=Math.max(d,y,7),p=Math.max(p,m,7)}var b=d/c,x=p/h;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var w=Math.max(0,Math.floor(Math.min(b,x))),A=Kh(r.model),M=r.getExtent(),D=A.lastAutoInterval,L=A.lastTickCount;return D!=null&&L!=null&&Math.abs(D-w)<=1&&Math.abs(L-o)<=1&&D>w&&A.axisExtent0===M[0]&&A.axisExtent1===M[1]?w=D:(A.lastTickCount=o,A.lastAutoInterval=w,A.axisExtent0=M[0],A.axisExtent1=M[1]),w}function eW(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zk(r,e,t){var a=Mf(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),l=[],s=Math.max((e||0)+1,1),u=i[0],c=n.count();u!==0&&s>1&&c/s>2&&(u=Math.round(Math.ceil(u/s)*s));var h=Dk(r),d=o.get("showMinLabel")||h,p=o.get("showMaxLabel")||h;d&&u!==i[0]&&m(i[0]);for(var y=u;y<=i[1];y+=s)m(y);p&&y-s!==i[1]&&m(i[1]);function m(_){var b={value:_};l.push(t?_:{formattedLabel:a(b),rawLabel:n.getLabel(b),tickValue:_})}return l}function kk(r,e,t){var a=r.scale,n=Mf(r),i=[];return N(a.getTicks(),function(o){var l=a.getLabel(o),s=o.value;e(o.value,l)&&i.push(t?s:{formattedLabel:n(o),rawLabel:l,tickValue:s})}),i}var lE=[0,1],en=(function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return fw(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&n.type==="ordinal"&&(a=a.slice(),sE(a,n.count())),oe(e,lE,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),sE(a,n.count()));var i=oe(e,a,lE,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=qX(this,t),n=a.ticks,i=ot(n,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),o=t.get("alignWithLabel");return rW(this,i,o,e.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),n=ot(a,function(i){return ot(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return ZX(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return tW(this)},r})();function sE(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function rW(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,l;if(n===1)e[0].coord=i[0],o=e[1]={coord:i[1],tickValue:e[0].tickValue};else{var s=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/s;N(e,function(p){p.coord-=u/2});var c=r.scale.getExtent();l=1+c[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*l,tickValue:c[1]+1},e.push(o)}var h=i[0]>i[1];d(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&d(i[0],e[0].coord)&&e.unshift({coord:i[0]}),d(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&d(o.coord,i[1])&&e.push({coord:i[1]});function d(p,y){return p=Ne(p),y=Ne(y),h?p>y:p<y}}function aW(r){var e=Ht.extend(r);return Ht.registerClass(e),e}function nW(r){var e=we.extend(r);return we.registerClass(e),e}function iW(r){var e=pe.extend(r);return pe.registerClass(e),e}function oW(r){var e=fe.extend(r);return fe.registerClass(e),e}var Yc=Math.PI*2,Ol=Xn.CMD,lW=["top","right","bottom","left"];function sW(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function uW(r,e,t,a,n,i,o,l,s){o-=r,l-=e;var u=Math.sqrt(o*o+l*l);o/=u,l/=u;var c=o*t+r,h=l*t+e;if(Math.abs(a-n)%Yc<1e-4)return s[0]=c,s[1]=h,u-t;if(i){var d=a;a=_a(n),n=_a(d)}else a=_a(a),n=_a(n);a>n&&(n+=Yc);var p=Math.atan2(l,o);if(p<0&&(p+=Yc),p>=a&&p<=n||p+Yc>=a&&p+Yc<=n)return s[0]=c,s[1]=h,u-t;var y=t*Math.cos(a)+r,m=t*Math.sin(a)+e,_=t*Math.cos(n)+r,b=t*Math.sin(n)+e,x=(y-o)*(y-o)+(m-l)*(m-l),w=(_-o)*(_-o)+(b-l)*(b-l);return x<w?(s[0]=y,s[1]=m,Math.sqrt(x)):(s[0]=_,s[1]=b,Math.sqrt(w))}function Jg(r,e,t,a,n,i,o,l){var s=n-r,u=i-e,c=t-r,h=a-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=s*c+u*h,y=p/d;l&&(y=Math.min(Math.max(y,0),1)),y*=d;var m=o[0]=r+y*c,_=o[1]=e+y*h;return Math.sqrt((m-n)*(m-n)+(_-i)*(_-i))}function Bk(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var l=r+t,s=e+a,u=o[0]=Math.min(Math.max(n,r),l),c=o[1]=Math.min(Math.max(i,e),s);return Math.sqrt((u-n)*(u-n)+(c-i)*(c-i))}var hn=[];function fW(r,e,t){var a=Bk(e.x,e.y,e.width,e.height,r.x,r.y,hn);return t.set(hn[0],hn[1]),a}function cW(r,e,t){for(var a=0,n=0,i=0,o=0,l,s,u=1/0,c=e.data,h=r.x,d=r.y,p=0;p<c.length;){var y=c[p++];p===1&&(a=c[p],n=c[p+1],i=a,o=n);var m=u;switch(y){case Ol.M:i=c[p++],o=c[p++],a=i,n=o;break;case Ol.L:m=Jg(a,n,c[p],c[p+1],h,d,hn,!0),a=c[p++],n=c[p++];break;case Ol.C:m=_P(a,n,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,hn),a=c[p++],n=c[p++];break;case Ol.Q:m=bP(a,n,c[p++],c[p++],c[p],c[p+1],h,d,hn),a=c[p++],n=c[p++];break;case Ol.A:var _=c[p++],b=c[p++],x=c[p++],w=c[p++],A=c[p++],M=c[p++];p+=1;var D=!!(1-c[p++]);l=Math.cos(A)*x+_,s=Math.sin(A)*w+b,p<=1&&(i=l,o=s);var L=(h-_)*w/x+_;m=uW(_,b,w,A,A+M,D,L,d,hn),a=Math.cos(A+M)*x+_,n=Math.sin(A+M)*w+b;break;case Ol.R:i=a=c[p++],o=n=c[p++];var R=c[p++],E=c[p++];m=Bk(i,o,R,E,h,d,hn);break;case Ol.Z:m=Jg(a,n,i,o,h,d,hn,!0),a=i,n=o;break}m<u&&(u=m,t.set(hn[0],hn[1]))}return u}var dn=new zt,xe=new zt,Ve=new zt,Gn=new zt,kn=new zt;function uE(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||lW,l=a.getBoundingRect().clone();l.applyTransform(a.getComputedTransform());var s=1/0,u=n.anchor,c=r.getComputedTransform(),h=c&&ms([],c),d=e.get("length2")||0;u&&Ve.copy(u);for(var p=0;p<o.length;p++){var y=o[p];sW(y,0,l,dn,Gn),zt.scaleAndAdd(xe,dn,Gn,d),xe.transform(h);var m=r.getBoundingRect(),_=u?u.distance(xe):r instanceof Ut?cW(xe,r.path,Ve):fW(xe,m,Ve);_<s&&(s=_,xe.transform(c),Ve.transform(c),Ve.toArray(i[0]),xe.toArray(i[1]),dn.toArray(i[2]))}Vk(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var ty=[],Hr=new zt;function Vk(r,e){if(e<=180&&e>0){e=e/180*Math.PI,dn.fromArray(r[0]),xe.fromArray(r[1]),Ve.fromArray(r[2]),zt.sub(Gn,dn,xe),zt.sub(kn,Ve,xe);var t=Gn.len(),a=kn.len();if(!(t<.001||a<.001)){Gn.scale(1/t),kn.scale(1/a);var n=Gn.dot(kn),i=Math.cos(e);if(i<n){var o=Jg(xe.x,xe.y,Ve.x,Ve.y,dn.x,dn.y,ty,!1);Hr.fromArray(ty),Hr.scaleAndAdd(kn,o/Math.tan(Math.PI-e));var l=Ve.x!==xe.x?(Hr.x-xe.x)/(Ve.x-xe.x):(Hr.y-xe.y)/(Ve.y-xe.y);if(isNaN(l))return;l<0?zt.copy(Hr,xe):l>1&&zt.copy(Hr,Ve),Hr.toArray(r[1])}}}}function hW(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,dn.fromArray(r[0]),xe.fromArray(r[1]),Ve.fromArray(r[2]),zt.sub(Gn,xe,dn),zt.sub(kn,Ve,xe);var a=Gn.len(),n=kn.len();if(!(a<.001||n<.001)){Gn.scale(1/a),kn.scale(1/n);var i=Gn.dot(e),o=Math.cos(t);if(i<o){var l=Jg(xe.x,xe.y,Ve.x,Ve.y,dn.x,dn.y,ty,!1);Hr.fromArray(ty);var s=Math.PI/2,u=Math.acos(kn.dot(e)),c=s+u-t;if(c>=s)zt.copy(Hr,Ve);else{Hr.scaleAndAdd(kn,l/Math.tan(Math.PI/2-c));var h=Ve.x!==xe.x?(Hr.x-xe.x)/(Ve.x-xe.x):(Hr.y-xe.y)/(Ve.y-xe.y);if(isNaN(h))return;h<0?zt.copy(Hr,xe):h>1&&zt.copy(Hr,Ve)}Hr.toArray(r[1])}}}}function k_(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var l=a.getModel("lineStyle").getLineStyle();n?r.useStyle(l):i.style=l}function vW(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=wi(a[0],a[1]),i=wi(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,l=_h([],a[1],a[0],o/n),s=_h([],a[1],a[2],o/i),u=_h([],l,s,.5);r.bezierCurveTo(l[0],l[1],l[0],l[1],u[0],u[1]),r.bezierCurveTo(s[0],s[1],s[0],s[1],a[2][0],a[2][1])}else for(var c=1;c<a.length;c++)r.lineTo(a[c][0],a[c][1])}function vT(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),l=n.ignore,s=0;s<Fh.length;s++){var u=Fh[s],c=e[u],h=u==="normal";if(c){var d=c.get("show"),p=h?l:Rt(n.states[u]&&n.states[u].ignore,l);if(p||!Rt(d,o)){var y=h?a:a&&a.states[u];y&&(y.ignore=!0),a&&k_(a,!0,u,c);continue}a||(a=new zr,r.setTextGuideLine(a),!h&&(l||!o)&&k_(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),k_(a,!1,u,c)}}if(a){St(a.style,t),a.style.fill=null;var m=i.get("showAbove"),_=r.textGuideLineConfig=r.textGuideLineConfig||{};_.showAbove=m||!1,a.buildPath=vW}}function dT(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<jr.length;a++){var n=jr[a];t[n]=r.getModel([n,e])}return t}function Gk(r){for(var e=[],t=0;t<r.length;t++){var a=r[t];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),l=!i||i[1]<1e-5&&i[2]<1e-5,s=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=s/2,u.y-=s/2,u.width+=s,u.height+=s;var c=l?new zg(o,i):null;e.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:c,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:l,transform:i})}}return e}function Hk(r,e,t,a,n,i){var o=r.length;if(o<2)return;r.sort(function(D,L){return D.rect[e]-L.rect[e]});for(var l=0,s,u=!1,c=0;c<o;c++){var h=r[c],d=h.rect;s=d[e]-l,s<0&&(d[e]-=s,h.label[e]-=s,u=!0),l=d[e]+d[t]}var p=r[0],y=r[o-1],m,_;b(),m<0&&A(-m,.8),_<0&&A(_,.8),b(),x(m,_,1),x(_,m,-1),b(),m<0&&M(-m),_<0&&M(_);function b(){m=p.rect[e]-a,_=n-y.rect[e]-y.rect[t]}function x(D,L,R){if(D<0){var E=Math.min(L,-D);if(E>0){w(E*R,0,o);var O=E+D;O<0&&A(-O*R,1)}else A(-D*R,1)}}function w(D,L,R){D!==0&&(u=!0);for(var E=L;E<R;E++){var O=r[E],P=O.rect;P[e]+=D,O.label[e]+=D}}function A(D,L){for(var R=[],E=0,O=1;O<o;O++){var P=r[O-1].rect,k=Math.max(r[O].rect[e]-P[e]-P[t],0);R.push(k),E+=k}if(E){var V=Math.min(Math.abs(D)/E,L);if(D>0)for(var O=0;O<o-1;O++){var H=R[O]*V;w(H,0,O+1)}else for(var O=o-1;O>0;O--){var H=R[O-1]*V;w(-H,O,o)}}}function M(D){var L=D<0?-1:1;D=Math.abs(D);for(var R=Math.ceil(D/(o-1)),E=0;E<o-1;E++)if(L>0?w(R,0,E+1):w(-R,o-E-1,o),D-=R,D<=0)return}return u}function dW(r,e,t,a){return Hk(r,"x","width",e,t)}function Fk(r,e,t,a){return Hk(r,"y","height",e,t)}function Uk(r){var e=[];r.sort(function(m,_){return _.priority-m.priority});var t=new kt(0,0,0,0);function a(m){if(!m.ignore){var _=m.ensureState("emphasis");_.ignore==null&&(_.ignore=!1)}m.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,l=i.localRect,s=i.transform,u=i.label,c=i.labelLine;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=i.obb,d=!1,p=0;p<e.length;p++){var y=e[p];if(t.intersect(y.rect)){if(o&&y.axisAligned){d=!0;break}if(y.obb||(y.obb=new zg(y.localRect,y.transform)),h||(h=new zg(l,s)),h.intersect(y.obb)){d=!0;break}}}d?(a(u),c&&a(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function pW(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function gW(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:pW(a&&a.shape.points)}}var fE=["align","verticalAlign","width","height","fontSize"],Br=new Ci,B_=$t(),yW=$t();function Rp(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var Ep=["x","y","rotation"],mW=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,l=n.__hostTarget,s=l.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();kt.applyTransform(c,c,u),u?Br.setLocalTransform(u):(Br.x=Br.y=Br.rotation=Br.originX=Br.originY=0,Br.scaleX=Br.scaleY=1),Br.rotation=_a(Br.rotation);var h=n.__hostTarget,d;if(h){d=h.getBoundingRect().plain();var p=h.getComputedTransform();kt.applyTransform(d,d,p)}var y=d&&h.getTextGuideLine();this._labelList.push({label:n,labelLine:y,seriesModel:a,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:y&&y.ignore,x:Br.x,y:Br.y,scaleX:Br.scaleX,scaleY:Br.scaleY,rotation:Br.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:s.position,attachedRot:s.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");(_t(n)||Yt(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),l=Mt(i);o&&!o.disableLabelLayout&&t._addLabel(l.dataIndex,l.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(w,A){return function(){uE(w,A)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],l=o.label,s=l.__hostTarget,u=o.defaultAttr,c=void 0;_t(o.layoutOption)?c=o.layoutOption(gW(o,s)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var h=Math.PI/180;s&&s.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(l.x=ht(c.x,t),l.setStyle("x",0),d=!0):(l.x=u.x,l.setStyle("x",u.style.x)),c.y!=null?(l.y=ht(c.y,a),l.setStyle("y",0),d=!0):(l.y=u.y,l.setStyle("y",u.style.y)),c.labelLinePoints){var p=s.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}var y=B_(l);y.needsUpdateLabelLine=d,l.rotation=c.rotate!=null?c.rotate*h:u.rotation,l.scaleX=u.scaleX,l.scaleY=u.scaleY;for(var m=0;m<fE.length;m++){var _=fE[m];l.setStyle(_,c[_]!=null?c[_]:u.style[_])}if(c.draggable){if(l.draggable=!0,l.cursor="move",s){var b=o.seriesModel;if(o.dataIndex!=null){var x=o.seriesModel.getData(o.dataType);b=x.getItemModel(o.dataIndex)}l.on("drag",n(s,b.getModel("labelLine")))}}else l.off("drag"),l.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=Gk(this._labelList),i=te(n,function(s){return s.layoutOption.moveOverlap==="shiftX"}),o=te(n,function(s){return s.layoutOption.moveOverlap==="shiftY"});dW(i,0,t),Fk(o,0,a);var l=te(n,function(s){return s.layoutOption.hideOverlap});Uk(l)},r.prototype.processLabelsOverall=function(){var e=this;N(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var l=!n,s=o.getTextContent();!l&&s&&(l=B_(s).needsUpdateLabelLine),l&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=Mt(e),i=n.dataIndex;if(a&&i!=null){var o=t.getData(n.dataType),l=o.getItemModel(i),s={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");s.stroke=u[c]}var h=l.getModel("labelLine");vT(e,dT(l),s),uE(e,h)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!Wu(e))){var i=B_(a),o=i.oldLayout,l=Mt(e),s=l.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},c=t.getData(l.dataType);if(o){a.attr(o);var d=e.prevStates;d&&(Bt(d,"select")>=0&&a.attr(i.oldLayoutSelect),Bt(d,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Jt(a,u,t,s)}else if(a.attr(u),!_f(a).valueAnimation){var h=Rt(a.style.opacity,1);a.style.opacity=0,De(a,{style:{opacity:h}},t,s)}if(i.oldLayout=u,a.states.select){var p=i.oldLayoutSelect={};Rp(p,u,Ep),Rp(p,a.states.select,Ep)}if(a.states.emphasis){var y=i.oldLayoutEmphasis={};Rp(y,u,Ep),Rp(y,a.states.emphasis,Ep)}Nz(a,s,c,t,t)}if(n&&!n.ignore&&!n.invisible){var i=yW(n),o=i.oldLayout,m={points:n.shape.points};o?(n.attr({shape:o}),Jt(n,{shape:m},t)):(n.setShape(m),n.style.strokePercent=0,De(n,{style:{strokePercent:1}},t)),i.oldLayout=m}},r})(),V_=$t();function _W(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=V_(t).labelManager;n||(n=V_(t).labelManager=new mW),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=V_(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var G_=Math.sin,H_=Math.cos,Yk=Math.PI,Nl=Math.PI*2,SW=180/Yk,jk=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,l,s){var u=l-o,c=!s,h=Math.abs(u),d=Co(h-Nl)||(c?u>=Nl:-u>=Nl),p=u>0?u%Nl:u%Nl+Nl,y=!1;d?y=!0:Co(h)?y=!1:y=p>=Yk==!!c;var m=e+a*H_(o),_=t+n*G_(o);this._start&&this._add("M",m,_);var b=Math.round(i*SW);if(d){var x=1/this._p,w=(c?1:-1)*(Nl-x);this._add("A",a,n,b,1,+c,e+a*H_(o+w),t+n*G_(o+w)),x>.01&&this._add("A",a,n,b,0,+c,m,_)}else{var A=e+a*H_(l),M=t+n*G_(l);this._add("A",a,n,b,+y,+c,A,M)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,l,s,u){for(var c=[],h=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p)){this._invalid=!0;return}c.push(Math.round(p*h)/h)}this._d.push(e+c.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),pT="none",bW=Math.round;function xW(r){var e=r.fill;return e!=null&&e!==pT}function wW(r){var e=r.stroke;return e!=null&&e!==pT}var ix=["lineCap","miterLimit","lineJoin"],TW=ot(ix,function(r){return"stroke-"+r.toLowerCase()});function AW(r,e,t,a){var n=e.opacity==null?1:e.opacity;if(t instanceof or){r("opacity",n);return}if(xW(e)){var i=Gh(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",pT);if(wW(e)){var l=Gh(e.stroke);r("stroke",l.color);var s=e.strokeNoScale?t.getLineScale():1,u=s?(e.lineWidth||0)/s:0,c=e.strokeOpacity!=null?e.strokeOpacity*l.opacity*n:l.opacity*n,h=e.strokeFirst;if(u!==1&&r("stroke-width",u),h&&r("paint-order",h?"stroke":"fill"),c<1&&r("stroke-opacity",c),e.lineDash){var d=$w(t),p=d[0],y=d[1];p&&(y=bW(y||0),r("stroke-dasharray",p.join(",")),(y||a)&&r("stroke-dashoffset",y))}for(var m=0;m<ix.length;m++){var _=ix[m];if(e[_]!==Ng[_]){var b=e[_]||Ng[_];b&&r(TW[m],b)}}}}var Xk="http://www.w3.org/2000/svg",Wk="http://www.w3.org/1999/xlink",CW="http://www.w3.org/2000/xmlns/",DW="http://www.w3.org/XML/1998/namespace",cE="ecmeta_";function Zk(r){return document.createElementNS(Xk,r)}function rr(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function MW(r,e){var t=[];if(e)for(var a in e){var n=e[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function LW(r){return"</"+r+">"}function gT(r,e){e=e||{};var t=e.newline?`
85
- `:"";function a(n){var i=n.children,o=n.tag,l=n.attrs,s=n.text;return MW(o,l)+(o!=="style"?Rr(s):s||"")+(i?""+t+ot(i,function(u){return a(u)}).join(t)+t:"")+LW(o)}return a(r)}function RW(r,e,t){t=t||{};var a=t.newline?`
86
- `:"",n=" {"+a,i=a+"}",o=ot(Yt(r),function(s){return s+n+ot(Yt(r[s]),function(u){return u+":"+r[s][u]+";"}).join(a)+i}).join(a),l=ot(Yt(e),function(s){return"@keyframes "+s+n+ot(Yt(e[s]),function(u){return u+n+ot(Yt(e[s][u]),function(c){var h=e[s][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!l?"":["<![CDATA[",o,l,"]]>"].join(a)}function ox(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function hE(r,e,t,a){return rr("svg","root",{width:r,height:e,xmlns:Xk,"xmlns:xlink":Wk,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var EW=0;function qk(){return EW++}var vE={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"},kl="transform-origin";function IW(r,e,t){var a=rt({},r.shape);rt(a,e),r.buildPath(t,a);var n=new jk;return n.reset(MP(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function OW(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[kl]=t+"px "+a+"px")}var NW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function $k(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function PW(r,e,t){var a=r.shape.paths,n={},i,o;if(N(a,function(s){var u=ox(t.zrId);u.animation=!0,nm(s,{},u,!0);var c=u.cssAnims,h=u.cssNodes,d=Yt(c),p=d.length;if(p){o=d[p-1];var y=c[o];for(var m in y){var _=y[m];n[m]=n[m]||{d:""},n[m].d+=_.d||""}for(var b in h){var x=h[b].animation;x.indexOf(o)>=0&&(i=x)}}}),!!i){e.d=!1;var l=$k(n,t);return i.replace(o,l)}}function dE(r){return vt(r)?vE[r]?"cubic-bezier("+vE[r]+")":ow(r)?r:"":""}function nm(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Vy){var l=PW(r,e,t);if(l)o.push(l);else if(!i)return}else if(!i)return;for(var s={},u=0;u<i;u++){var c=n[u],h=[c.getMaxTime()/1e3+"s"],d=dE(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var y=h.join(" ");s[y]=s[y]||[y,[]],s[y][1].push(c)}function m(x){var w=x[1],A=w.length,M={},D={},L={},R="animation-timing-function";function E(wt,pt,Ot){for(var yt=wt.getTracks(),Dt=wt.getMaxTime(),ce=0;ce<yt.length;ce++){var Zt=yt[ce];if(Zt.needsAnimate()){var ue=Zt.keyframes,ye=Zt.propName;if(Ot&&(ye=Ot(ye)),ye)for(var He=0;He<ue.length;He++){var wr=ue[He],lr=Math.round(wr.time/Dt*100)+"%",rn=dE(wr.easing),Ta=wr.rawValue;(vt(Ta)||Qt(Ta))&&(pt[lr]=pt[lr]||{},pt[lr][ye]=wr.rawValue,rn&&(pt[lr][R]=rn))}}}}for(var O=0;O<A;O++){var P=w[O],k=P.targetName;k?k==="shape"&&E(P,D):!a&&E(P,M)}for(var V in M){var H={};OP(H,r),rt(H,M[V]);var U=LP(H),z=M[V][R];L[V]=U?{transform:U}:{},OW(L[V],H),z&&(L[V][R]=z)}var Y,j=!0;for(var V in D){L[V]=L[V]||{};var $=!Y,z=D[V][R];$&&(Y=new Xn);var tt=Y.len();Y.reset(),L[V].d=IW(r,D[V],Y);var F=Y.len();if(!$&&tt!==F){j=!1;break}z&&(L[V][R]=z)}if(!j)for(var V in L)delete L[V].d;if(!a)for(var O=0;O<A;O++){var P=w[O],k=P.targetName;k==="style"&&E(P,L,function(yt){return NW[yt]})}for(var W=Yt(L),at=!0,lt,O=1;O<W.length;O++){var ct=W[O-1],bt=W[O];if(L[ct][kl]!==L[bt][kl]){at=!1;break}lt=L[ct][kl]}if(at&&lt){for(var V in L)L[V][kl]&&delete L[V][kl];e[kl]=lt}if(te(W,function(wt){return Yt(L[wt]).length>0}).length){var Pt=$k(L,t);return Pt+" "+x[0]+" both"}}for(var _ in s){var l=m(s[_]);l&&o.push(l)}if(o.length){var b=t.zrId+"-cls-"+qk();t.cssNodes["."+b]={animation:o.join(",")},e.class=b}}function zW(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};pE(a,e,t)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,l=r.states.select&&r.states.select.style&&r.states.select.style.fill,s=r.currentStates.indexOf("select")>=0&&l||o;s&&(i=Rg(s))}var u=n.lineWidth;if(u){var c=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),pE(a,e,t)}}function pE(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+qk(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var Qh=Math.round;function Kk(r){return r&&vt(r.src)}function Qk(r){return r&&_t(r.toDataURL)}function yT(r,e,t,a){AW(function(n,i){var o=n==="fill"||n==="stroke";o&&DP(i)?tB(e,r,n,a):o&&sw(i)?eB(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),UW(t,r,a)}function mT(r,e){var t=zP(e);t&&(t.each(function(a,n){a!=null&&(r[(cE+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[cE+"silent"]="true"))}function gE(r){return Co(r[0]-1)&&Co(r[1])&&Co(r[2])&&Co(r[3]-1)}function kW(r){return Co(r[4])&&Co(r[5])}function _T(r,e,t){if(e&&!(kW(e)&&gE(e))){var a=1e4;r.transform=gE(e)?"translate("+Qh(e[4]*a)/a+" "+Qh(e[5]*a)/a+")":FH(e)}}function yE(r,e,t){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(Qh(a[i][0]*t)/t),n.push(Qh(a[i][1]*t)/t);e.points=n.join(" ")}function mE(r){return!r.smooth}function BW(r){var e=ot(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,a,n){for(var i=0;i<e.length;i++){var o=e[i],l=t[o[0]];l!=null&&(a[o[1]]=Qh(l*n)/n)}}}var VW={circle:[BW(["cx","cy","r"])],polyline:[yE,mE],polygon:[yE,mE]};function GW(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function Jk(r,e){var t=r.style,a=r.shape,n=VW[r.type],i={},o=e.animation,l="path",s=r.style.strokePercent,u=e.compress&&MP(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&GW(r))&&!(s<1)){l=r.type;var c=Math.pow(10,u);n[0](a,i,c)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var d=r.path;h&&(d.beginPath(),r.buildPath(d,r.shape),r.pathUpdated());var p=d.getVersion(),y=r,m=y.__svgPathBuilder;(y.__svgPathVersion!==p||!m||s!==y.__svgPathStrokePercent)&&(m||(m=y.__svgPathBuilder=new jk),m.reset(u),d.rebuildPath(m,s),m.generateStr(),y.__svgPathVersion=p,y.__svgPathStrokePercent=s),i.d=m.getStr()}return _T(i,r.transform),yT(i,t,r,e),mT(i,r),e.animation&&nm(r,i,e),e.emphasis&&zW(r,i,e),rr(l,r.id+"",i)}function HW(r,e){var t=r.style,a=t.image;if(a&&!vt(a)&&(Kk(a)?a=a.src:Qk(a)&&(a=a.toDataURL())),!!a){var n=t.x||0,i=t.y||0,o=t.width,l=t.height,s={href:a,width:o,height:l};return n&&(s.x=n),i&&(s.y=i),_T(s,r.transform),yT(s,t,r,e),mT(s,r),e.animation&&nm(r,s,e),rr("image",r.id+"",s)}}function FW(r,e){var t=r.style,a=t.text;if(a!=null&&(a+=""),!(!a||isNaN(t.x)||isNaN(t.y))){var n=t.font||ko,i=t.x||0,o=YH(t.y||0,Ry(n),t.textBaseline),l=UH[t.textAlign]||t.textAlign,s={"dominant-baseline":"central","text-anchor":l};if(lz(t)){var u="",c=t.fontStyle,h=oz(t.fontSize);if(!parseFloat(h))return;var d=t.fontFamily||Q3,p=t.fontWeight;u+="font-size:"+h+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),s.style=u}else s.style="font: "+n;return a.match(/\s/)&&(s["xml:space"]="preserve"),i&&(s.x=i),o&&(s.y=o),_T(s,r.transform),yT(s,t,r,e),mT(s,r),e.animation&&nm(r,s,e),rr("text",r.id+"",s,void 0,a)}}function _E(r,e){if(r instanceof Ut)return Jk(r,e);if(r instanceof or)return HW(r,e);if(r instanceof ef)return FW(r,e)}function UW(r,e,t){var a=r.style;if(jH(a)){var n=XH(r),i=t.shadowCache,o=i[n];if(!o){var l=r.getGlobalScale(),s=l[0],u=l[1];if(!s||!u)return;var c=a.shadowOffsetX||0,h=a.shadowOffsetY||0,d=a.shadowBlur,p=Gh(a.shadowColor),y=p.opacity,m=p.color,_=d/2/s,b=d/2/u,x=_+" "+b;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=rr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[rr("feDropShadow","",{dx:c/s,dy:h/u,stdDeviation:x,"flood-color":m,"flood-opacity":y})]),i[n]=o}e.filter=Ly(o)}}function tB(r,e,t,a){var n=r[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(AP(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(CP(n))i="radialGradient",o.cx=Rt(n.x,.5),o.cy=Rt(n.y,.5),o.r=Rt(n.r,.5);else return;for(var l=n.colorStops,s=[],u=0,c=l.length;u<c;++u){var h=pb(l[u].offset)*100+"%",d=l[u].color,p=Gh(d),y=p.color,m=p.opacity,_={offset:h};_["stop-color"]=y,m<1&&(_["stop-opacity"]=m),s.push(rr("stop",u+"",_))}var b=rr(i,"",o,s),x=gT(b),w=a.gradientCache,A=w[x];A||(A=a.zrId+"-g"+a.gradientIdx++,w[x]=A,o.id=A,a.defs[A]=rr(i,A,o,s)),e[t]=Ly(A)}function eB(r,e,t,a){var n=r.style[t],i=r.getBoundingRect(),o={},l=n.repeat,s=l==="no-repeat",u=l==="repeat-x",c=l==="repeat-y",h;if(TP(n)){var d=n.imageWidth,p=n.imageHeight,y=void 0,m=n.image;if(vt(m)?y=m:Kk(m)?y=m.src:Qk(m)&&(y=m.toDataURL()),typeof Image>"u"){var _="Image width/height must been given explictly in svg-ssr renderer.";Ir(d,_),Ir(p,_)}else if(d==null||p==null){var b=function(O,P){if(O){var k=O.elm,V=d||P.width,H=p||P.height;O.tag==="pattern"&&(u?(H=1,V/=i.width):c&&(V=1,H/=i.height)),O.attrs.width=V,O.attrs.height=H,k&&(k.setAttribute("width",V),k.setAttribute("height",H))}},x=yw(y,null,r,function(O){s||b(D,O),b(h,O)});x&&x.width&&x.height&&(d=d||x.width,p=p||x.height)}h=rr("image","img",{href:y,width:d,height:p}),o.width=d,o.height=p}else n.svgElement&&(h=Tt(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var w,A;s?w=A=1:u?(A=1,w=o.width/i.width):c?(w=1,A=o.height/i.height):o.patternUnits="userSpaceOnUse",w!=null&&!isNaN(w)&&(o.width=w),A!=null&&!isNaN(A)&&(o.height=A);var M=LP(n);M&&(o.patternTransform=M);var D=rr("pattern","",o,[h]),L=gT(D),R=a.patternCache,E=R[L];E||(E=a.zrId+"-p"+a.patternIdx++,R[L]=E,o.id=E,D=a.defs[E]=rr("pattern",E,o,[h])),e[t]=Ly(E)}}function YW(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=rr("clipPath",i,o,[Jk(r,t)])}e["clip-path"]=Ly(i)}function SE(r){return document.createTextNode(r)}function Yl(r,e,t){r.insertBefore(e,t)}function bE(r,e){r.removeChild(e)}function xE(r,e){r.appendChild(e)}function rB(r){return r.parentNode}function aB(r){return r.nextSibling}function F_(r,e){r.textContent=e}var wE=58,jW=120,XW=rr("","");function lx(r){return r===void 0}function Pn(r){return r!==void 0}function WW(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function ch(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function Jh(r){var e,t=r.children,a=r.tag;if(Pn(a)){var n=r.elm=Zk(a);if(ST(XW,r),it(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&xE(n,Jh(i))}else Pn(r.text)&&!xt(r.text)&&xE(n,SE(r.text))}else r.elm=SE(r.text);return r.elm}function nB(r,e,t,a,n){for(;a<=n;++a){var i=t[a];i!=null&&Yl(r,Jh(i),e)}}function ey(r,e,t,a){for(;t<=a;++t){var n=e[t];if(n!=null)if(Pn(n.tag)){var i=rB(n.elm);bE(i,n.elm)}else bE(r,n.elm)}}function ST(r,e){var t,a=e.elm,n=r&&r.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t],l=n[t];l!==o&&(o===!0?a.setAttribute(t,""):o===!1?a.removeAttribute(t):t==="style"?a.style.cssText=o:t.charCodeAt(0)!==jW?a.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?a.setAttributeNS(CW,t,o):t.charCodeAt(3)===wE?a.setAttributeNS(DW,t,o):t.charCodeAt(5)===wE?a.setAttributeNS(Wk,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function ZW(r,e,t){for(var a=0,n=0,i=e.length-1,o=e[0],l=e[i],s=t.length-1,u=t[0],c=t[s],h,d,p,y;a<=i&&n<=s;)o==null?o=e[++a]:l==null?l=e[--i]:u==null?u=t[++n]:c==null?c=t[--s]:ch(o,u)?(zu(o,u),o=e[++a],u=t[++n]):ch(l,c)?(zu(l,c),l=e[--i],c=t[--s]):ch(o,c)?(zu(o,c),Yl(r,o.elm,aB(l.elm)),o=e[++a],c=t[--s]):ch(l,u)?(zu(l,u),Yl(r,l.elm,o.elm),l=e[--i],u=t[++n]):(lx(h)&&(h=WW(e,a,i)),d=h[u.key],lx(d)?Yl(r,Jh(u),o.elm):(p=e[d],p.tag!==u.tag?Yl(r,Jh(u),o.elm):(zu(p,u),e[d]=void 0,Yl(r,p.elm,o.elm))),u=t[++n]);(a<=i||n<=s)&&(a>i?(y=t[s+1]==null?null:t[s+1].elm,nB(r,y,t,n,s)):ey(r,e,a,i))}function zu(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(ST(r,e),lx(e.text)?Pn(a)&&Pn(n)?a!==n&&ZW(t,a,n):Pn(n)?(Pn(r.text)&&F_(t,""),nB(t,null,n,0,n.length-1)):Pn(a)?ey(t,a,0,a.length-1):Pn(r.text)&&F_(t,""):r.text!==e.text&&(Pn(a)&&ey(t,a,0,a.length-1),F_(t,e.text)))}function qW(r,e){if(ch(r,e))zu(r,e);else{var t=r.elm,a=rB(t);Jh(e),a!==null&&(Yl(a,e.elm,aB(t)),ey(a,[r],0,0))}return e}var $W=0,KW=(function(){function r(e,t,a){if(this.type="svg",this.refreshHover=TE(),this.configLayer=TE(),this.storage=t,this._opts=a=rt({},a),this.root=e,this._id="zr"+$W++,this._oldVNode=hE(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Zk("svg");ST(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",qW(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return _E(e,ox(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=ox(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],l=this._bgVNode=QW(a,n,this._backgroundColor,i);l&&o.push(l);var s=e.compress?null:this._mainVNode=rr("g","main",{},[]);this._paintList(t,i,s?s.children:o),s&&o.push(s);var u=ot(Yt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(rr("defs","defs",{},u)),e.animation){var c=RW(i.cssNodes,i.cssAnims,{newline:!0});if(c){var h=rr("style","stl",{},[],c);o.push(h)}}return hE(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},gT(this.renderToVNode({animation:Rt(e.cssAnimation,!0),emphasis:Rt(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Rt(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,l,s,u=0,c=0;c<n;c++){var h=e[c];if(!h.invisible){var d=h.__clipPaths,p=d&&d.length||0,y=s&&s.length||0,m=void 0;for(m=Math.max(p-1,y-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var _=y-1;_>m;_--)o--,l=i[o-1];for(var b=m+1;b<p;b++){var x={};YW(d[b],x,t);var w=rr("g","clip-g-"+u++,x,[]);(l?l.children:a).push(w),i[o++]=w,l=w}s=d;var A=_E(h,t);A&&(l?l.children:a).push(A)}}},r.prototype.resize=function(e,t){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),t!=null&&(a.height=t),n&&i&&(i.style.display="none",e=Fu(n,0,a),t=Fu(n,1,a),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(sw(this._backgroundColor))this.refresh();else{var l=this._svgDom;l&&(l.setAttribute("width",e),l.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),a="data:image/svg+xml;";return e?(t=ZH(t),t&&a+"base64,"+t):a+"charset=UTF-8,"+encodeURIComponent(t)},r})();function TE(r){return function(){}}function QW(r,e,t,a){var n;if(t&&t!=="none")if(n=rr("rect","bg",{width:r,height:e,x:"0",y:"0"}),DP(t))tB({fill:t},n.attrs,"fill",a);else if(sw(t))eB({style:{fill:t},dirty:Pe,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=Gh(t),o=i.color,l=i.opacity;n.attrs.fill=o,l<1&&(n.attrs["fill-opacity"]=l)}return n}function JW(r){r.registerPainter("svg",KW)}function AE(r,e,t){var a=_n.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}var U_=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||Ig,typeof t=="string"?o=AE(t,a,n):xt(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var l=o.style;return l&&(aw(o),o.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),i.painter=a,i.dpr=n,i}return 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=AE("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],l=this.maxRepaintRectCount,s=!1,u=new kt(0,0,0,0);function c(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var w=new kt(0,0,0,0);w.copy(x),o.push(w)}else{for(var A=!1,M=1/0,D=0,L=0;L<o.length;++L){var R=o[L];if(R.intersect(x)){var E=new kt(0,0,0,0);E.copy(R),E.union(x),o[L]=E,A=!0;break}else if(s){u.copy(x),u.union(R);var O=x.width*x.height,P=R.width*R.height,k=u.width*u.height,V=k-O-P;V<M&&(M=V,D=L)}}if(s&&(o[D].union(x),A=!0),!A){var w=new kt(0,0,0,0);w.copy(x),o.push(w)}s||(s=o.length>=l)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var d=t[h];if(d){var p=d.shouldBePainted(n,i,!0,!0),y=d.__isRendered&&(d.__dirty&ga||!p)?d.getPrevPaintRect():null;y&&c(y);var m=p&&(d.__dirty&ga||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var d=a[h],p=d&&d.shouldBePainted(n,i,!0,!0);if(d&&(!p||!d.__zr)&&d.__isRendered){var y=d.getPrevPaintRect();y&&c(y)}}var _;do{_=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var b=h+1;b<o.length;)o[h].intersect(o[b])?(_=!0,o[h].union(o[b]),o.splice(b,1)):b++;h++}}while(_);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,a){var n=this.dpr,i=this.dom,o=i.style,l=this.domBack;o&&(o.width=t+"px",o.height=a+"px"),i.width=t*n,i.height=a*n,l&&(l.width=t*n,l.height=a*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,a,n){var i=this.dom,o=this.ctx,l=i.width,s=i.height;a=a||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,h=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,l/h,s/h));var p=this.domBack;function y(m,_,b,x){if(o.clearRect(m,_,b,x),a&&a!=="transparent"){var w=void 0;if(fv(a)){var A=a.global||a.__width===b&&a.__height===x;w=A&&a.__canvasGradient||$b(o,a,{x:0,y:0,width:b,height:x}),a.__canvasGradient=w,a.__width=b,a.__height=x}else aP(a)&&(a.scaleX=a.scaleX||h,a.scaleY=a.scaleY||h,w=Kb(o,a,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=w||a,o.fillRect(m,_,b,x),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(p,m,_,b,x),o.restore())}!n||u?y(0,0,l,s):n.length&&N(n,function(m){y(m.x*h,m.y*h,m.width*h,m.height*h)})},e})(Ka),CE=1e5,Pl=314159,Ip=.01,tZ=.001;function eZ(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function rZ(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var aZ=(function(){function r(e,t,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=a=rt({},a||{}),this.dpr=a.devicePixelRatio||Ig,this._singleCanvas=i,this.root=e;var o=e.style;o&&(aw(e),e.innerHTML=""),this.storage=t;var l=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var c=e,h=c.width,d=c.height;a.width!=null&&(h=a.width),a.height!=null&&(d=a.height),this.dpr=a.devicePixelRatio||1,c.width=h*this.dpr,c.height=d*this.dpr,this._width=h,this._height=d;var p=new U_(c,this,this.dpr);p.__builtin__=!0,p.initContext(),s[Pl]=p,p.zlevel=Pl,l.push(Pl),this._domRoot=e}else{this._width=Fu(e,0,a),this._height=Fu(e,1,a);var u=this._domRoot=rZ(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,a,e,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],l=this._layers[o];if(!l.__builtin__&&l.refresh){var s=i===0?this._backgroundColor:null;l.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,a=this._hoverlayer;if(a&&a.clear(),!!t){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var l=e[o];l.__inHover&&(a||(a=this._hoverlayer=this.getLayer(CE)),i||(i=a.ctx,i.save()),Jl(i,l,n,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(CE)},r.prototype.paintOne=function(e,t){Kw(e,t)},r.prototype._paintList=function(e,t,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,a),o=i.finished,l=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),l&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var s=this;Cg(function(){s._paintList(e,t,a,n)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Pl).ctx,t=this._domRoot.width,a=this._domRoot.height;e.clearRect(0,0,t,a),this.eachBuiltinLayer(function(n){n.virtual&&e.drawImage(n.dom,0,0,t,a)})},r.prototype._doPaintList=function(e,t,a){for(var n=this,i=[],o=this._opts.useDirtyRect,l=0;l<this._zlevelList.length;l++){var s=this._zlevelList[l],u=this._layers[s];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&i.push(u)}for(var c=!0,h=!1,d=function(m){var _=i[m],b=_.ctx,x=o&&_.createRepaintRects(e,t,p._width,p._height),w=a?_.__startIndex:_.__drawIndex,A=!a&&_.incremental&&Date.now,M=A&&Date.now(),D=_.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(_.__startIndex===_.__endIndex)_.clear(!1,D,x);else if(w===_.__startIndex){var L=e[w];(!L.incremental||!L.notClear||a)&&_.clear(!1,D,x)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=_.__startIndex);var R,E=function(V){var H={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(R=w;R<_.__endIndex;R++){var U=e[R];if(U.__inHover&&(h=!0),n._doPaintEl(U,_,o,V,H,R===_.__endIndex-1),A){var z=Date.now()-M;if(z>15)break}}H.prevElClipPaths&&b.restore()};if(x)if(x.length===0)R=_.__endIndex;else for(var O=p.dpr,P=0;P<x.length;++P){var k=x[P];b.save(),b.beginPath(),b.rect(k.x*O,k.y*O,k.width*O,k.height*O),b.clip(),E(k),b.restore()}else b.save(),E(),b.restore();_.__drawIndex=R,_.__drawIndex<_.__endIndex&&(c=!1)},p=this,y=0;y<i.length;y++)d(y);return Ft.wxa&&N(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:h}},r.prototype._doPaintEl=function(e,t,a,n,i,o){var l=t.ctx;if(a){var s=e.getPaintRect();(!n||s&&s.intersect(n))&&(Jl(l,e,i,o),e.setPrevPaintRect(s))}else Jl(l,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Pl);var a=this._layers[e];return a||(a=new U_("zr_"+e,this,this.dpr),a.zlevel=e,a.__builtin__=!0,this._layerConfig[e]?It(a,this._layerConfig[e],!0):this._layerConfig[e-Ip]&&It(a,this._layerConfig[e-Ip],!0),t&&(a.virtual=t),this.insertLayer(e,a),a.initContext()),a},r.prototype.insertLayer=function(e,t){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,l=null,s=-1;if(!a[e]&&eZ(t)){if(i>0&&e>n[0]){for(s=0;s<i-1&&!(n[s]<e&&n[s+1]>e);s++);l=a[n[s]]}if(n.splice(s+1,0,e),a[e]=t,!t.virtual)if(l){var u=l.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,d){h.__dirty=h.__used=!1});function t(h){i&&(i.__endIndex!==h&&(i.__dirty=!0),i.__endIndex=h)}if(this._singleCanvas)for(var a=1;a<e.length;a++){var n=e[a];if(n.zlevel!==e[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,l,s;for(s=0;s<e.length;s++){var n=e[s],u=n.zlevel,c=void 0;l!==u&&(l=u,o=0),n.incremental?(c=this.getLayer(u+tZ,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Ip:0),this._needsManuallyCompositing),c.__builtin__||wy("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==s&&(c.__dirty=!0),c.__startIndex=s,c.incremental?c.__drawIndex=-1:c.__drawIndex=s,t(s),i=c),n.__dirty&ga&&!n.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(h,d){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,N(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?It(a[e],t,!0):a[e]=t;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===e||i===e+Ip){var o=this._layers[i];It(o,a[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,a=this._zlevelList,n=t[e];n&&(n.dom.parentNode.removeChild(n.dom),delete t[e],a.splice(Bt(a,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(e!=null&&(n.width=e),t!=null&&(n.height=t),e=Fu(i,0,n),t=Fu(i,1,n),a.style.display="",this._width!==e||t!==this._height){a.style.width=e+"px",a.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Pl).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Pl].dom;var t=new U_("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var a=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height;this.eachLayer(function(h){h.__builtin__?a.drawImage(h.dom,0,0,n,i):h.renderToCanvas&&(a.save(),h.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},l=this.storage.getDisplayList(!0),s=0,u=l.length;s<u;s++){var c=l[s];Jl(a,c,o,s===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function nZ(r){r.registerPainter("canvas",aZ)}var iZ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return qn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new Ct,n=Ge("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),l=i==="none"?"circle":i,s=t.itemHeight*.8,u=Ge(l,(t.itemWidth-s)/2,(t.itemHeight-s)/2,s,s,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),l.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},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})(pe);function of(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=af(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(af(r,e,t[o]));return i.join(" ")}}function iB(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!it(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var Tv=(function(r){Z(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var l=Ge(t,-1,-1,2,2,null,o);l.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=oZ,this._symbolType=t,this.add(l)},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(){Ei(this.childAt(0))},e.prototype.downplay=function(){Ii(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",l=t.hostModel,s=e.getSymbolSize(t,a),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,s,h)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(p):Jt(d,p,l,a),xn(d)}if(this._updateCommon(t,a,s,n,i),u){var d=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,De(d,p,l,a)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var l=this.childAt(0),s=t.hostModel,u,c,h,d,p,y,m,_,b;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,h=i.selectItemStyle,d=i.focus,p=i.blurScope,m=i.labelStatesModels,_=i.hoverScale,b=i.cursorStyle,y=i.emphasisDisabled),!i||t.hasItemOption){var x=i&&i.itemModel?i.itemModel:t.getItemModel(a),w=x.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),h=x.getModel(["select","itemStyle"]).getItemStyle(),c=x.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),p=w.get("blurScope"),y=w.get("disabled"),m=nr(x),_=w.getShallow("scale"),b=x.getShallow("cursor")}var A=t.getItemVisual(a,"symbolRotate");l.attr("rotation",(A||0)*Math.PI/180||0);var M=xs(t.getItemVisual(a,"symbolOffset"),n);M&&(l.x=M[0],l.y=M[1]),b&&l.attr("cursor",b);var D=t.getItemVisual(a,"style"),L=D.fill;if(l instanceof or){var R=l.style;l.useStyle(rt({image:R.image,x:R.x,y:R.y,width:R.width,height:R.height},D))}else l.__isEmptyBrush?l.useStyle(rt({},D)):l.useStyle(D),l.style.decal=null,l.setColor(L,o&&o.symbolInnerColor),l.style.strokeNoScale=!0;var E=t.getItemVisual(a,"liftZ"),O=this._z2;E!=null?O==null&&(this._z2=l.z2,l.z2+=E):O!=null&&(l.z2=O,this._z2=null);var P=o&&o.useNameLabel;xr(l,m,{labelFetcher:s,labelDataIndex:a,defaultText:k,inheritColor:L,defaultOpacity:D.opacity});function k(U){return P?t.getName(U):of(t,U)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var V=l.ensureState("emphasis");V.style=u,l.ensureState("select").style=h,l.ensureState("blur").style=c;var H=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;V.scaleX=this._sizeX*H,V.scaleY=this._sizeY*H,this.setSymbolScale(1),Ee(this,d,p,y)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=Mt(this).dataIndex,l=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var s=i.getTextContent();s&&Vo(s,{style:{opacity:0}},a,{dataIndex:o,removeOpt:l,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Vo(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:l})},e.getSymbolSize=function(t,a){return Cf(t.getItemVisual(a,"symbolSize"))},e})(Ct);function oZ(r,e){this.parent.drift(r,e)}function Y_(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function DE(r){return r!=null&&!xt(r)&&(r={isIgnore:r}),r||{}}function ME(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:nr(e),cursorStyle:e.get("cursor")}}var Av=(function(){function r(e){this.group=new Ct,this._SymbolCtor=e||Tv}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=DE(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,l=t.disableAnimation,s=ME(e),u={disableAnimation:l},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var d=c(h);if(Y_(e,d,h,t)){var p=new o(e,h,s,u);p.setPosition(d),e.setItemGraphicEl(h,p),a.add(p)}}).update(function(h,d){var p=i.getItemGraphicEl(d),y=c(h);if(!Y_(e,y,h,t)){a.remove(p);return}var m=e.getItemVisual(h,"symbol")||"circle",_=p&&p.getSymbolType&&p.getSymbolType();if(!p||_&&_!==m)a.remove(p),p=new o(e,h,s,u),p.setPosition(y);else{p.updateData(e,h,s,u);var b={x:y[0],y:y[1]};l?p.attr(b):Jt(p,b,n)}a.add(p),e.setItemGraphicEl(h,p)}).remove(function(h){var d=i.getItemGraphicEl(h);d&&d.fadeOut(function(){a.remove(d)},n)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ME(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=DE(a);function n(s){s.isGroup||(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Y_(t,o,i,a)){var l=new this._SymbolCtor(t,i,this._seriesScope);l.traverse(n),l.setPosition(o),this.group.add(l),t.setItemGraphicEl(i,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){jo(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r})();function oB(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=lZ(n,t),o=a.dim,l=n.dim,s=e.mapDimension(l),u=e.mapDimension(o),c=l==="x"||l==="radius"?1:0,h=ot(r.dimensions,function(y){return e.mapDimension(y)}),d=!1,p=e.getCalculationInfo("stackResultDimension");return Ni(e,h[0])&&(d=!0,h[0]=p),Ni(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:i,valueAxisDim:l,baseAxisDim:o,stacked:!!d,valueDim:s,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function lZ(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:Qt(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function lB(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function sZ(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function uZ(r,e,t,a,n,i,o,l){for(var s=sZ(r,e),u=[],c=[],h=[],d=[],p=[],y=[],m=[],_=oB(n,e,o),b=r.getLayout("points")||[],x=e.getLayout("points")||[],w=0;w<s.length;w++){var A=s[w],M=!0,D=void 0,L=void 0;switch(A.cmd){case"=":D=A.idx*2,L=A.idx1*2;var R=b[D],E=b[D+1],O=x[L],P=x[L+1];(isNaN(R)||isNaN(E))&&(R=O,E=P),u.push(R,E),c.push(O,P),h.push(t[D],t[D+1]),d.push(a[L],a[L+1]),m.push(e.getRawIndex(A.idx1));break;case"+":var k=A.idx,V=_.dataDimsForPoint,H=n.dataToPoint([e.get(V[0],k),e.get(V[1],k)]);L=k*2,u.push(H[0],H[1]),c.push(x[L],x[L+1]);var U=lB(_,n,e,k);h.push(U[0],U[1]),d.push(a[L],a[L+1]),m.push(e.getRawIndex(k));break;case"-":M=!1}M&&(p.push(A),y.push(y.length))}y.sort(function(ct,bt){return m[ct]-m[bt]});for(var z=u.length,Y=Vn(z),j=Vn(z),$=Vn(z),tt=Vn(z),F=[],w=0;w<y.length;w++){var W=y[w],at=w*2,lt=W*2;Y[at]=u[lt],Y[at+1]=u[lt+1],j[at]=c[lt],j[at+1]=c[lt+1],$[at]=h[lt],$[at+1]=h[lt+1],tt[at]=d[lt],tt[at+1]=d[lt+1],F[w]=p[W]}return{current:Y,next:j,stackedOnCurrent:$,stackedOnNext:tt,status:F}}var go=Math.min,yo=Math.max;function os(r,e){return isNaN(r)||isNaN(e)}function sx(r,e,t,a,n,i,o,l,s){for(var u,c,h,d,p,y,m=t,_=0;_<a;_++){var b=e[m*2],x=e[m*2+1];if(m>=n||m<0)break;if(os(b,x)){if(s){m+=i;continue}break}if(m===t)r[i>0?"moveTo":"lineTo"](b,x),h=b,d=x;else{var w=b-u,A=x-c;if(w*w+A*A<.5){m+=i;continue}if(o>0){for(var M=m+i,D=e[M*2],L=e[M*2+1];D===b&&L===x&&_<a;)_++,M+=i,m+=i,D=e[M*2],L=e[M*2+1],b=e[m*2],x=e[m*2+1],w=b-u,A=x-c;var R=_+1;if(s)for(;os(D,L)&&R<a;)R++,M+=i,D=e[M*2],L=e[M*2+1];var E=.5,O=0,P=0,k=void 0,V=void 0;if(R>=a||os(D,L))p=b,y=x;else{O=D-u,P=L-c;var H=b-u,U=D-b,z=x-c,Y=L-x,j=void 0,$=void 0;if(l==="x"){j=Math.abs(H),$=Math.abs(U);var tt=O>0?1:-1;p=b-tt*j*o,y=x,k=b+tt*$*o,V=x}else if(l==="y"){j=Math.abs(z),$=Math.abs(Y);var F=P>0?1:-1;p=b,y=x-F*j*o,k=b,V=x+F*$*o}else j=Math.sqrt(H*H+z*z),$=Math.sqrt(U*U+Y*Y),E=$/($+j),p=b-O*o*(1-E),y=x-P*o*(1-E),k=b+O*o*E,V=x+P*o*E,k=go(k,yo(D,b)),V=go(V,yo(L,x)),k=yo(k,go(D,b)),V=yo(V,go(L,x)),O=k-b,P=V-x,p=b-O*j/$,y=x-P*j/$,p=go(p,yo(u,b)),y=go(y,yo(c,x)),p=yo(p,go(u,b)),y=yo(y,go(c,x)),O=b-p,P=x-y,k=b+O*$/j,V=x+P*$/j}r.bezierCurveTo(h,d,p,y,b,x),h=k,d=V}else r.lineTo(b,x)}u=b,c=x,m+=i}return _}var sB=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),fZ=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sB},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&os(n[o*2-2],n[o*2-1]);o--);for(;i<o&&os(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=sx(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=Xn.CMD,l,s,u=a==="x",c=[],h=0;h<i.length;){var d=i[h++],p=void 0,y=void 0,m=void 0,_=void 0,b=void 0,x=void 0,w=void 0;switch(d){case o.M:l=i[h++],s=i[h++];break;case o.L:if(p=i[h++],y=i[h++],w=u?(t-l)/(p-l):(t-s)/(y-s),w<=1&&w>=0){var A=u?(y-s)*w+s:(p-l)*w+l;return u?[t,A]:[A,t]}l=p,s=y;break;case o.C:p=i[h++],y=i[h++],m=i[h++],_=i[h++],b=i[h++],x=i[h++];var M=u?Mg(l,p,m,b,t,c):Mg(s,y,_,x,t,c);if(M>0)for(var D=0;D<M;D++){var L=c[D];if(L<=1&&L>=0){var A=u?tr(s,y,_,x,L):tr(l,p,m,b,L);return u?[t,A]:[A,t]}}l=b,s=x;break}}},e})(Ut),cZ=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(sB),uB=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new cZ},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,l=n.length/2,s=a.smoothMonotone;if(a.connectNulls){for(;l>0&&os(n[l*2-2],n[l*2-1]);l--);for(;o<l&&os(n[o*2],n[o*2+1]);o++);}for(;o<l;){var u=sx(t,n,o,l,l,1,a.smooth,s,a.connectNulls);sx(t,i,o+u-1,u,l,-1,a.stackedOnSmooth,s,a.connectNulls),o+=u+1,t.closePath()}},e})(Ut);function fB(r,e,t,a,n){var i=r.getArea(),o=i.x,l=i.y,s=i.width,u=i.height,c=t.get(["lineStyle","width"])||0;o-=c/2,l-=c/2,s+=c,u+=c,s=Math.ceil(s),o!==Math.floor(o)&&(o=Math.floor(o),s++);var h=new Wt({shape:{x:o,y:l,width:s,height:u}});if(e){var d=r.getBaseAxis(),p=d.isHorizontal(),y=d.inverse;p?(y&&(h.shape.x+=s),h.shape.width=0):(y||(h.shape.y+=u),h.shape.height=0);var m=_t(n)?function(_){n(_,h)}:null;De(h,{shape:{width:s,height:u,x:o,y:l}},t,null,a,m)}return h}function cB(r,e,t){var a=r.getArea(),n=Ne(a.r0,1),i=Ne(a.r,1),o=new Or({shape:{cx:Ne(r.cx,1),cy:Ne(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var l=r.getBaseAxis().dim==="angle";l?o.shape.endAngle=a.startAngle:o.shape.r=n,De(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function Cv(r,e,t,a,n){if(r){if(r.type==="polar")return cB(r,e,t);if(r.type==="cartesian2d")return fB(r,e,t,a,n)}else return null;return null}function ws(r,e){return r.type===e}function LE(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function RE(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],l=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(l)||(t=Math.min(l,t),n=Math.max(l,n))}return[[e,t],[a,n]]}function EE(r,e){var t=RE(r),a=t[0],n=t[1],i=RE(e),o=i[0],l=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-l[0]),Math.abs(n[1]-l[1]))}function IE(r){return Qt(r)?r:r?.5:0}function hZ(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=Vn(a*2),i=0;i<a;i++){var o=lB(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function mo(r,e,t,a,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,l=[],s=0,u=[],c=[],h=[],d=[];if(n){for(s=0;s<r.length;s+=2){var p=e||r;!isNaN(p[s])&&!isNaN(p[s+1])&&d.push(r[s],r[s+1])}r=d}for(s=0;s<r.length-2;s+=2)switch(h[0]=r[s+2],h[1]=r[s+3],c[0]=r[s],c[1]=r[s+1],l.push(c[0],c[1]),a){case"end":u[o]=h[o],u[1-o]=c[1-o],l.push(u[0],u[1]);break;case"middle":var y=(c[o]+h[o])/2,m=[];u[o]=m[o]=y,u[1-o]=c[1-o],m[1-o]=h[1-o],l.push(u[0],u[1]),l.push(m[0],m[1]);break;default:u[o]=c[o],u[1-o]=h[1-o],l.push(u[0],u[1])}return l.push(r[s++],r[s++]),l}function vZ(r,e){var t=[],a=r.length,n,i;function o(c,h,d){var p=c.coord,y=(d-p)/(h.coord-p),m=lw(y,[c.color,h.color]);return{coord:d,color:m}}for(var l=0;l<a;l++){var s=r[l],u=s.coord;if(u<0)n=s;else if(u>e){i?t.push(o(i,s,e)):n&&t.push(o(n,s,0),o(n,s,e));break}else n&&(t.push(o(n,s,0)),n=null),t.push(s),i=s}return t}function dZ(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var l=r.getDimensionInfo(a[o].dimension);if(n=l&&l.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var s=e.getAxis(n),u=ot(i.stops,function(w){return{coord:s.toGlobalCoord(s.dataToCoord(w.value)),color:w.color}}),c=u.length,h=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=vZ(u,n==="x"?t.getWidth():t.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var y=10,m=d[0].coord-y,_=d[p-1].coord+y,b=_-m;if(b<.001)return"transparent";N(d,function(w){w.offset=(w.coord-m)/b}),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var x=new gf(0,0,0,0,d,!0);return x[n]=m,x[n+"2"]=_,x}}}function pZ(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&gZ(i,e))){var o=e.mapDimension(i.dim),l={};return N(i.getViewLabels(),function(s){var u=i.scale.getRawOrdinalNumber(s.tickValue);l[u]=1}),function(s){return!l.hasOwnProperty(e.get(o,s))}}}}function gZ(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Tv.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function yZ(r,e){return isNaN(r)||isNaN(e)}function mZ(r){for(var e=r.length/2;e>0&&yZ(r[e*2-2],r[e*2-1]);e--);return e-1}function OE(r,e){return[r[e*2],r[e*2+1]]}function _Z(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,l=0,s=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){s=u;break}l=u,i=o}return{range:[l,s],t:(e-i)/(o-i)}}function hB(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<jr.length;e++)if(r.get([jr[e],"endLabel","show"]))return!0;return!1}function j_(r,e,t,a){if(ws(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),l={lastFrameIndex:0},s=hB(a)?function(p,y){r._endLabelOnDuring(p,y,o,l,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),c=fB(e,t,a,function(){var p=r._endLabel;p&&t&&l.originalX!=null&&p.attr({x:l.originalX,y:l.originalY})},s);if(!a.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=d*2):(h.x-=d,h.width+=d*2)}return s&&s(1,c),c}else return cB(e,t,a)}function SZ(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var bZ=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Ct,a=new Av;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=dt(this._changePolyState,this)},e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,l=t.getData(),s=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=l.getLayout("points")||[],h=i.type==="polar",d=this._coordSys,p=this._symbolDraw,y=this._polyline,m=this._polygon,_=this._lineGroup,b=!a.ssr&&t.get("animation"),x=!u.isEmpty(),w=u.get("origin"),A=oB(i,l,w),M=x&&hZ(i,l,A),D=t.get("showSymbol"),L=t.get("connectNulls"),R=D&&!h&&pZ(t,l,i),E=this._data;E&&E.eachItemGraphicEl(function(ct,bt){ct.__temp&&(o.remove(ct),E.setItemGraphicEl(bt,null))}),D||p.remove(),o.add(_);var O=h?!1:t.get("step"),P;i&&i.getArea&&t.get("clip",!0)&&(P=i.getArea(),P.width!=null?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r+=.5)),this._clipShapeForSymbol=P;var k=dZ(l,i,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(y&&d.type===i.type&&O===this._step))D&&p.updateData(l,{isIgnore:R,clipShape:P,disableAnimation:!0,getSymbolPoint:function(ct){return[c[ct*2],c[ct*2+1]]}}),b&&this._initSymbolLabelAnimation(l,i,P),O&&(M&&(M=mo(M,c,i,O,L)),c=mo(c,null,i,O,L)),y=this._newPolyline(c),x?m=this._newPolygon(c,M):m&&(_.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(t,i,vs(k)),_.setClipPath(j_(this,i,!0,t));else{x&&!m?m=this._newPolygon(c,M):m&&!x&&(_.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(t,i,vs(k));var V=_.getClipPath();if(V){var H=j_(this,i,!1,t);De(V,{shape:H.shape},t)}else _.setClipPath(j_(this,i,!0,t));D&&p.updateData(l,{isIgnore:R,clipShape:P,disableAnimation:!0,getSymbolPoint:function(ct){return[c[ct*2],c[ct*2+1]]}}),(!LE(this._stackedOnPoints,M)||!LE(this._points,c))&&(b?this._doUpdateAnimation(l,M,i,n,O,w,L):(O&&(M&&(M=mo(M,c,i,O,L)),c=mo(c,null,i,O,L)),y.setShape({points:c}),m&&m.setShape({points:c,stackedOnPoints:M})))}var U=t.getModel("emphasis"),z=U.get("focus"),Y=U.get("blurScope"),j=U.get("disabled");if(y.useStyle(St(s.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),br(y,t,"lineStyle"),y.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var $=y.getState("emphasis").style;$.lineWidth=+y.style.lineWidth+1}Mt(y).seriesIndex=t.seriesIndex,Ee(y,z,Y,j);var tt=IE(t.get("smooth")),F=t.get("smoothMonotone");if(y.setShape({smooth:tt,smoothMonotone:F,connectNulls:L}),m){var W=l.getCalculationInfo("stackedOnSeries"),at=0;m.useStyle(St(u.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),W&&(at=IE(W.get("smooth"))),m.setShape({smooth:tt,stackedOnSmooth:at,smoothMonotone:F,connectNulls:L}),br(m,t,"areaStyle"),Mt(m).seriesIndex=t.seriesIndex,Ee(m,z,Y,j)}var lt=this._changePolyState;l.eachItemGraphicEl(function(ct){ct&&(ct.onHoverStateChange=lt)}),this._polyline.onHoverStateChange=lt,this._data=l,this._coordSys=i,this._stackedOnPoints=M,this._points=c,this._step=O,this._valueOrigin=w,t.get("triggerLineEvent")&&(this.packEventData(t,y),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,a){Mt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),l=fs(o,i);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var s=o.getLayout("points"),u=o.getItemGraphicEl(l);if(!u){var c=s[l*2],h=s[l*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var d=t.get("zlevel")||0,p=t.get("z")||0;u=new Tv(o,l),u.x=c,u.y=h,u.setZ(d,p);var y=u.getSymbolPath().getTextContent();y&&(y.zlevel=d,y.z=p,y.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(l,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else fe.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),l=fs(o,i);if(this._changePolyState("normal"),l!=null&&l>=0){var s=o.getItemGraphicEl(l);s&&(s.__temp?(o.setItemGraphicEl(l,null),this.group.remove(s)):s.downplay())}else fe.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;Pg(this._polyline,t),a&&Pg(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new fZ({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new uB({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,l=a.getBaseAxis(),s=l.inverse;a.type==="cartesian2d"?(i=l.isHorizontal(),o=!1):a.type==="polar"&&(i=l.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");_t(c)&&(c=c(null));var h=u.get("animationDelay")||0,d=_t(h)?h(null):h;t.eachItemGraphicEl(function(p,y){var m=p;if(m){var _=[p.x,p.y],b=void 0,x=void 0,w=void 0;if(n)if(o){var A=n,M=a.pointToCoord(_);i?(b=A.startAngle,x=A.endAngle,w=-M[1]/180*Math.PI):(b=A.r0,x=A.r,w=M[0])}else{var D=n;i?(b=D.x,x=D.x+D.width,w=p.x):(b=D.y+D.height,x=D.y,w=p.y)}var L=x===b?0:(w-b)/(x-b);s&&(L=1-L);var R=_t(h)?h(y):c*L+d,E=m.getSymbolPath(),O=E.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:R}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:R}),E.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(hB(t)){var o=t.getData(),l=this._polyline,s=o.getLayout("points");if(!s){l.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Xt({z2:200}),u.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var c=mZ(s);c>=0&&(xr(l,nr(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(h,d,p){return p!=null?iB(o,p):of(o,h)},enableTextSetter:!0},SZ(i,a)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,l,s){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),d=n.hostModel,p=d.get("connectNulls"),y=l.get("precision"),m=l.get("distance")||0,_=s.getBaseAxis(),b=_.isHorizontal(),x=_.inverse,w=a.shape,A=x?b?w.x:w.y+w.height:b?w.x+w.width:w.y,M=(b?m:0)*(x?-1:1),D=(b?0:-m)*(x?-1:1),L=b?"x":"y",R=_Z(h,A,L),E=R.range,O=E[1]-E[0],P=void 0;if(O>=1){if(O>1&&!p){var k=OE(h,E[0]);u.attr({x:k[0]+M,y:k[1]+D}),o&&(P=d.getRawValue(E[0]))}else{var k=c.getPointOn(A,L);k&&u.attr({x:k[0]+M,y:k[1]+D});var V=d.getRawValue(E[0]),H=d.getRawValue(E[1]);o&&(P=qP(n,y,V,H,R.t))}i.lastFrameIndex=E[0]}else{var U=t===1||i.lastFrameIndex>0?E[0]:0,k=OE(h,U);o&&(P=d.getRawValue(U)),u.attr({x:k[0]+M,y:k[1]+D})}if(o){var z=_f(u);typeof z.setLabelText=="function"&&z.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,l,s){var u=this._polyline,c=this._polygon,h=t.hostModel,d=uZ(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),p=d.current,y=d.stackedOnCurrent,m=d.next,_=d.stackedOnNext;if(o&&(y=mo(d.stackedOnCurrent,d.current,n,o,s),p=mo(d.current,null,n,o,s),_=mo(d.stackedOnNext,d.next,n,o,s),m=mo(d.next,null,n,o,s)),EE(p,m)>3e3||c&&EE(y,_)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:_}));return}u.shape.__points=d.current,u.shape.points=p;var b={shape:{points:m}};d.current!==p&&(b.shape.__points=d.next),u.stopAnimation(),Jt(u,b,h),c&&(c.setShape({points:p,stackedOnPoints:y}),c.stopAnimation(),Jt(c,{shape:{stackedOnPoints:_}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var x=[],w=d.status,A=0;A<w.length;A++){var M=w[A].cmd;if(M==="="){var D=t.getItemGraphicEl(w[A].idx1);D&&x.push({el:D,ptIdx:A})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var L=u.shape.__points,R=0;R<x.length;R++){var E=x[R].el,O=x[R].ptIdx*2;E.x=L[O],E.y=L[O+1],E.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(fe);function Dv(r,e){return{seriesType:r,plan:Tf(),reset:function(t){var a=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(n){var l=ot(n.dimensions,function(p){return a.mapDimension(p)}).slice(0,2),s=l.length,u=a.getCalculationInfo("stackResultDimension");Ni(a,l[0])&&(l[0]=u),Ni(a,l[1])&&(l[1]=u);var c=a.getStore(),h=a.getDimensionIndex(l[0]),d=a.getDimensionIndex(l[1]);return s&&{progress:function(p,y){for(var m=p.end-p.start,_=o&&Vn(m*s),b=[],x=[],w=p.start,A=0;w<p.end;w++){var M=void 0;if(s===1){var D=c.get(h,w);M=n.dataToPoint(D,null,x)}else b[0]=c.get(h,w),b[1]=c.get(d,w),M=n.dataToPoint(b,null,x);o?(_[A++]=M[0],_[A++]=M[1]):y.setItemLayout(w,M.slice())}o&&y.setLayout("points",_)}}}}}}var xZ={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},wZ=function(r){return Math.round(r.length/2)};function vB(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,l=n.count();if(l>10&&o.type==="cartesian2d"&&i){var s=o.getBaseAxis(),u=o.getOtherAxis(s),c=s.getExtent(),h=a.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(h||1),p=Math.round(l/d);if(isFinite(p)&&p>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/p)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/p));var y=void 0;vt(i)?y=xZ[i]:_t(i)&&(y=i),y&&e.setData(n.downSample(n.mapDimension(u.dim),1/p,y,wZ))}}}}}function TZ(r){r.registerChartView(bZ),r.registerSeriesModel(iZ),r.registerLayout(Dv("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vB("line"))}var tv=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return qn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),l=i.dataToPoint(o);if(n)N(i.getAxes(),function(d,p){if(d.type==="category"&&a!=null){var y=d.getTicksCoords(),m=d.getTickModel().get("alignWithLabel"),_=o[p],b=a[p]==="x1"||a[p]==="y1";if(b&&!m&&(_+=1),y.length<2)return;if(y.length===2){l[p]=d.toGlobalCoord(d.getExtent()[b?1:0]);return}for(var x=void 0,w=void 0,A=1,M=0;M<y.length;M++){var D=y[M].coord,L=M===y.length-1?y[M-1].tickValue+A:y[M].tickValue;if(L===_){w=D;break}else if(L<_)x=D;else if(x!=null&&L>_){w=(D+x)/2;break}M===1&&(A=L-y[0].tickValue)}w==null&&(x?x&&(w=y[y.length-1].coord):w=y[0].coord),l[p]=d.toGlobalCoord(w)}});else{var s=this.getData(),u=s.getLayout("offset"),c=s.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;l[h]+=u+c/2}return l}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})(pe);pe.registerClass(tv);var AZ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return qn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Xo(tv.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})(tv),CZ=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),ry=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new CZ},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),l=Math.max(a.r,0),s=(l-o)*.5,u=o+s,c=a.startAngle,h=a.endAngle,d=a.clockwise,p=Math.PI*2,y=d?h-c<p:c-h<p;y||(c=h-(d?p:-p));var m=Math.cos(c),_=Math.sin(c),b=Math.cos(h),x=Math.sin(h);y?(t.moveTo(m*o+n,_*o+i),t.arc(m*u+n,_*u+i,s,-Math.PI+c,c,!d)):t.moveTo(m*l+n,_*l+i),t.arc(n,i,l,c,h,!d),t.arc(b*u+n,x*u+i,s,h-Math.PI*2,h-Math.PI,!d),o!==0&&t.arc(n,i,o,h,c,d)},e})(Ut);function DZ(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Og(a,n,i);var l=r(o),s=n.distance!=null?n.distance:5,u=this.shape,c=u.cx,h=u.cy,d=u.r,p=u.r0,y=(d+p)/2,m=u.startAngle,_=u.endAngle,b=(m+_)/2,x=t?Math.abs(d-p)/2:0,w=Math.cos,A=Math.sin,M=c+d*w(m),D=h+d*A(m),L="left",R="top";switch(l){case"startArc":M=c+(p-s)*w(b),D=h+(p-s)*A(b),L="center",R="top";break;case"insideStartArc":M=c+(p+s)*w(b),D=h+(p+s)*A(b),L="center",R="bottom";break;case"startAngle":M=c+y*w(m)+Op(m,s+x,!1),D=h+y*A(m)+Np(m,s+x,!1),L="right",R="middle";break;case"insideStartAngle":M=c+y*w(m)+Op(m,-s+x,!1),D=h+y*A(m)+Np(m,-s+x,!1),L="left",R="middle";break;case"middle":M=c+y*w(b),D=h+y*A(b),L="center",R="middle";break;case"endArc":M=c+(d+s)*w(b),D=h+(d+s)*A(b),L="center",R="bottom";break;case"insideEndArc":M=c+(d-s)*w(b),D=h+(d-s)*A(b),L="center",R="top";break;case"endAngle":M=c+y*w(_)+Op(_,s+x,!0),D=h+y*A(_)+Np(_,s+x,!0),L="left",R="middle";break;case"insideEndAngle":M=c+y*w(_)+Op(_,-s+x,!0),D=h+y*A(_)+Np(_,-s+x,!0),L="right",R="middle";break;default:return Og(a,n,i)}return a=a||{},a.x=M,a.y=D,a.align=L,a.verticalAlign=R,a}}function MZ(r,e,t,a){if(Qt(a)){r.setTextConfig({rotation:a});return}else if(it(e)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,l=(i+o)/2,s,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":s=l;break;case"startAngle":case"insideStartAngle":s=i;break;case"endAngle":case"insideEndAngle":s=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-s;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function Op(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Np(r,e,t){return e*Math.cos(r)*(t?1:-1)}function ts(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;it(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ot(a,function(i){return bn(i,n)})}}var X_=Math.max,W_=Math.min;function LZ(r,e){var t=r.getArea&&r.getArea();if(ws(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=n,t.width+=n*2):(t.y-=n,t.height+=n*2)}}return t}var RZ=(function(r){Z(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){jo(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var o=this.group,l=t.getData(),s=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var d=t.isAnimationEnabled()?t:null,p=EZ(t,u);p&&this._enableRealtimeSort(p,l,n);var y=t.get("clip",!0)||p,m=LZ(u,l);o.removeClipPath();var _=t.get("roundCap",!0),b=t.get("showBackground",!0),x=t.getModel("backgroundStyle"),w=x.get("borderRadius")||0,A=[],M=this._backgroundEls,D=i&&i.isInitSort,L=i&&i.type==="changeAxisOrder";function R(P){var k=Pp[u.type](l,P),V=BZ(u,h,k);return V.useStyle(x.getItemStyle()),u.type==="cartesian2d"?V.setShape("r",w):V.setShape("cornerRadius",w),A[P]=V,V}l.diff(s).add(function(P){var k=l.getItemModel(P),V=Pp[u.type](l,P,k);if(b&&R(P),!(!l.hasValue(P)||!BE[u.type](V))){var H=!1;y&&(H=NE[u.type](m,V));var U=PE[u.type](t,l,P,V,h,d,c.model,!1,_);p&&(U.forceLabelAnimation=!0),VE(U,l,P,k,V,t,h,u.type==="polar"),D?U.attr({shape:V}):p?zE(p,d,U,V,P,h,!1,!1):De(U,{shape:V},t,P),l.setItemGraphicEl(P,U),o.add(U),U.ignore=H}}).update(function(P,k){var V=l.getItemModel(P),H=Pp[u.type](l,P,V);if(b){var U=void 0;M.length===0?U=R(k):(U=M[k],U.useStyle(x.getItemStyle()),u.type==="cartesian2d"?U.setShape("r",w):U.setShape("cornerRadius",w),A[P]=U);var z=Pp[u.type](l,P),Y=pB(h,z,u);Jt(U,{shape:Y},d,P)}var j=s.getItemGraphicEl(k);if(!l.hasValue(P)||!BE[u.type](H)){o.remove(j);return}var $=!1;if(y&&($=NE[u.type](m,H),$&&o.remove(j)),j?xn(j):j=PE[u.type](t,l,P,H,h,d,c.model,!!j,_),p&&(j.forceLabelAnimation=!0),L){var tt=j.getTextContent();if(tt){var F=_f(tt);F.prevValue!=null&&(F.prevValue=F.value)}}else VE(j,l,P,V,H,t,h,u.type==="polar");D?j.attr({shape:H}):p?zE(p,d,j,H,P,h,!0,L):Jt(j,{shape:H},t,P,null),l.setItemGraphicEl(P,j),j.ignore=$,o.add(j)}).remove(function(P){var k=s.getItemGraphicEl(P);k&&Yh(k,t,P)}).execute();var E=this._backgroundGroup||(this._backgroundGroup=new Ct);E.removeAll();for(var O=0;O<A.length;++O)E.add(A[O]);o.add(E),this._backgroundEls=A,this._data=l},e.prototype._renderLarge=function(t,a,n){this._clear(),HE(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),HE(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Cv(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var l=function(s){var u=a.getItemGraphicEl(s),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,l,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,l){var s=n(l);s=s??NaN,i.push({dataIndex:l,mappedValue:s,ordinalNumber:o})}),i.sort(function(o,l){return l.mappedValue-o.mappedValue}),{ordinalNumbers:ot(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),l=Number.MAX_VALUE,s=0,u=i.getOrdinalMeta().categories.length;s<u;++s){var c=t.rawIndexOf(o,i.getRawOrdinalNumber(s)),h=c<0?Number.MIN_VALUE:a(t.indexOfRawIndex(c));if(h>l)return!0;l=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),l=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=l;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(l){return t.get(t.mapDimension(a.otherAxis.dim),l)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Yh(i,t,Mt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(fe),NE={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=X_(e.x,r.x),l=W_(e.x+e.width,n),s=X_(e.y,r.y),u=W_(e.y+e.height,i),c=l<o,h=u<s;return e.x=c&&o>n?l:o,e.y=h&&s>i?u:s,e.width=c?0:l-o,e.height=h?0:u-s,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=W_(e.r,r.r),i=X_(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},PE={cartesian2d:function(r,e,t,a,n,i,o,l,s){var u=new Wt({shape:rt({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,h=n?"height":"width";c[h]=0}return u},polar:function(r,e,t,a,n,i,o,l,s){var u=!n&&s?ry:Or,c=new u({shape:a,z2:1});c.name="item";var h=dB(n);if(c.calculateTextPosition=DZ(h,{isRoundCap:u===ry}),i){var d=c.shape,p=n?"r":"endAngle",y={};d[p]=n?a.r0:a.startAngle,y[p]=a[p],(l?Jt:De)(c,{shape:y},i)}return c}};function EZ(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function zE(r,e,t,a,n,i,o,l){var s,u;i?(u={x:a.x,width:a.width},s={y:a.y,height:a.height}):(u={y:a.y,height:a.height},s={x:a.x,width:a.width}),l||(o?Jt:De)(t,{shape:s},e,n,null);var c=e?r.baseAxis.model:null;(o?Jt:De)(t,{shape:u},c,n)}function kE(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var IZ=["x","y","width","height"],OZ=["cx","cy","r","startAngle","endAngle"],BE={cartesian2d:function(r){return!kE(r,IZ)},polar:function(r){return!kE(r,OZ)}},Pp={cartesian2d:function(r,e,t){var a=r.getItemLayout(e),n=t?PZ(t,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function NZ(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function dB(r){return(function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}})(r)}function VE(r,e,t,a,n,i,o,l){var s=e.getItemVisual(t,"style");if(l){if(!i.get("roundCap")){var c=r.shape,h=ts(a.getModel("itemStyle"),c,!0);rt(c,h),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(s);var d=a.getShallow("cursor");d&&r.attr("cursor",d);var p=l?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",y=nr(a);xr(r,y,{labelFetcher:i,labelDataIndex:t,defaultText:of(i.getData(),t),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:p});var m=r.getTextContent();if(l&&m){var _=a.get(["label","position"]);r.textConfig.inside=_==="middle"?!0:null,MZ(r,_==="outside"?p:_,dB(o),a.get(["label","rotate"]))}Oz(m,y,i.getRawValue(t),function(x){return iB(e,x)});var b=a.getModel(["emphasis"]);Ee(r,b.get("focus"),b.get("blurScope"),b.get("disabled")),br(r,a),NZ(n)&&(r.style.fill="none",r.style.stroke="none",N(r.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function PZ(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var zZ=(function(){function r(){}return r})(),GE=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new zZ},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,l=[],s=[],u=this.barWidth,c=0;c<n.length;c+=3)s[i]=u,s[o]=n[c+2],l[i]=n[c+i],l[o]=n[c+o],t.rect(l[0],l[1],s[0],s[1])},e})(Ut);function HE(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),l=n.getLayout("size"),s=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var c=new GE({shape:{points:u},incremental:!!a,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=l,c.useStyle(s.getItemStyle()),e.add(c),t&&t.push(c)}var h=new GE({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=l,e.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,Mt(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",FE),h.on("mousemove",FE)),t&&t.push(h)}var FE=Ky(function(r){var e=this,t=kZ(e,r.offsetX,r.offsetY);Mt(e).dataIndex=t>=0?t:null},30,!1);function kZ(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,l=[],s=[],u=r.barWidth,c=0,h=i.length/3;c<h;c++){var d=c*3;if(s[a]=u,s[n]=i[d+2],l[a]=i[d+a],l[n]=i[d+n],s[n]<0&&(l[n]+=s[n],s[n]=-s[n]),e>=l[0]&&e<=l[0]+s[0]&&t>=l[1]&&t<=l[1]+s[1])return o[c]}return-1}function pB(r,e,t){if(ws(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function BZ(r,e,t){var a=r.type==="polar"?Or:Wt;return new a({shape:pB(e,t,r),silent:!0,z2:0})}function VZ(r){r.registerChartView(RZ),r.registerSeriesModel(AZ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Et(Sk,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bk("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vB("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var UE=Math.PI*2,zp=Math.PI/180;function gB(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function yB(r,e){var t=gB(r,e),a=r.get("center"),n=r.get("radius");it(n)||(n=[0,n]);var i=ht(t.width,e.getWidth()),o=ht(t.height,e.getHeight()),l=Math.min(i,o),s=ht(n[0],l/2),u=ht(n[1],l/2),c,h,d=r.coordinateSystem;if(d){var p=d.dataToPoint(a);c=p[0]||0,h=p[1]||0}else it(a)||(a=[a,a]),c=ht(a[0],i)+t.x,h=ht(a[1],o)+t.y;return{cx:c,cy:h,r0:s,r:u}}function GZ(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=gB(a,t),l=yB(a,t),s=l.cx,u=l.cy,c=l.r,h=l.r0,d=-a.get("startAngle")*zp,p=a.get("endAngle"),y=a.get("padAngle")*zp;p=p==="auto"?d-UE:-p*zp;var m=a.get("minAngle")*zp,_=m+y,b=0;n.each(i,function(Y){!isNaN(Y)&&b++});var x=n.getSum(i),w=Math.PI/(x||b)*2,A=a.get("clockwise"),M=a.get("roseType"),D=a.get("stillShowZeroSum"),L=n.getDataExtent(i);L[0]=0;var R=A?1:-1,E=[d,p],O=R*y/2;mw(E,!A),d=E[0],p=E[1];var P=mB(a);P.startAngle=d,P.endAngle=p,P.clockwise=A;var k=Math.abs(p-d),V=k,H=0,U=d;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(Y,j){var $;if(isNaN(Y)){n.setItemLayout(j,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:s,cy:u,r0:h,r:M?NaN:c});return}M!=="area"?$=x===0&&D?w:Y*w:$=k/b,$<_?($=_,V-=_):H+=Y;var tt=U+R*$,F=0,W=0;y>$?(F=U+R*$/2,W=F):(F=U+O,W=tt-O),n.setItemLayout(j,{angle:$,startAngle:F,endAngle:W,clockwise:A,cx:s,cy:u,r0:h,r:M?oe(Y,L,[h,c]):c}),U=tt}),V<UE&&b)if(V<=.001){var z=k/b;n.each(i,function(Y,j){if(!isNaN(Y)){var $=n.getItemLayout(j);$.angle=z;var tt=0,F=0;z<y?(tt=d+R*(j+1/2)*z,F=tt):(tt=d+R*j*z+O,F=d+R*(j+1)*z-O),$.startAngle=tt,$.endAngle=F}})}else w=V/H,U=d,n.each(i,function(Y,j){if(!isNaN(Y)){var $=n.getItemLayout(j),tt=$.angle===_?_:Y*w,F=0,W=0;tt<y?(F=U+R*tt/2,W=F):(F=U+O,W=U+R*tt-O),$.startAngle=F,$.endAngle=W,U+=R*tt}})})}var mB=$t();function Mv(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),l=0;l<a.length;l++)if(!a[l].isSelected(o))return!1;return!0})}}}}var HZ=Math.PI/180;function YE(r,e,t,a,n,i,o,l,s,u){if(r.length<2)return;function c(m){for(var _=m.rB,b=_*_,x=0;x<m.list.length;x++){var w=m.list[x],A=Math.abs(w.label.y-t),M=a+w.len,D=M*M,L=Math.sqrt(Math.abs((1-A*A/b)*D)),R=e+(L+w.len2)*n,E=R-w.label.x,O=w.targetTextWidth-E*n;_B(w,O,!0),w.label.x=R}}function h(m){for(var _={list:[],maxY:0},b={list:[],maxY:0},x=0;x<m.length;x++)if(m[x].labelAlignTo==="none"){var w=m[x],A=w.label.y>t?b:_,M=Math.abs(w.label.y-t);if(M>=A.maxY){var D=w.label.x-e-w.len2*n,L=a+w.len,R=Math.abs(D)<L?Math.sqrt(M*M/(1-D*D/L/L)):L;A.rB=R,A.maxY=M}A.list.push(w)}c(_),c(b)}for(var d=r.length,p=0;p<d;p++)if(r[p].position==="outer"&&r[p].labelAlignTo==="labelLine"){var y=r[p].label.x-u;r[p].linePoints[1][0]+=y,r[p].label.x=u}Fk(r,s,s+o)&&h(r)}function FZ(r,e,t,a,n,i,o,l){for(var s=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<r.length;d++){var p=r[d].label;Z_(r[d])||(p.x<e?(c=Math.min(c,p.x),s.push(r[d])):(h=Math.max(h,p.x),u.push(r[d])))}for(var d=0;d<r.length;d++){var y=r[d];if(!Z_(y)&&y.linePoints){if(y.labelStyleWidth!=null)continue;var p=y.label,m=y.linePoints,_=void 0;y.labelAlignTo==="edge"?p.x<e?_=m[2][0]-y.labelDistance-o-y.edgeDistance:_=o+n-y.edgeDistance-m[2][0]-y.labelDistance:y.labelAlignTo==="labelLine"?p.x<e?_=c-o-y.bleedMargin:_=o+n-h-y.bleedMargin:p.x<e?_=p.x-o-y.bleedMargin:_=o+n-p.x-y.bleedMargin,y.targetTextWidth=_,_B(y,_)}}YE(u,e,t,a,1,n,i,o,l,h),YE(s,e,t,a,-1,n,i,o,l,c);for(var d=0;d<r.length;d++){var y=r[d];if(!Z_(y)&&y.linePoints){var p=y.label,m=y.linePoints,b=y.labelAlignTo==="edge",x=p.style.padding,w=x?x[1]+x[3]:0,A=p.style.backgroundColor?0:w,M=y.rect.width+A,D=m[1][0]-m[2][0];b?p.x<e?m[2][0]=o+y.edgeDistance+M+y.labelDistance:m[2][0]=o+n-y.edgeDistance-M-y.labelDistance:(p.x<e?m[2][0]=p.x+y.labelDistance:m[2][0]=p.x-y.labelDistance,m[1][0]=m[2][0]+D),m[1][1]=m[2][1]=p.y}}}function _B(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,l=n.padding,s=l?l[1]+l[3]:0,u=n.overflow,c=i.width+(o?0:s);if(e<c||t){var h=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-s);var d=a.getBoundingRect();a.setStyle("width",Math.ceil(d.width)),a.setStyle("backgroundColor",o)}else{var p=e-s,y=e<c?p:t?p>r.unconstrainedWidth?null:p:null;a.setStyle("width",y)}var m=a.getBoundingRect();i.width=m.width;var _=(a.style.margin||0)+2.1;i.height=m.height+_,i.y-=(i.height-h)/2}}}function Z_(r){return r.position==="center"}function UZ(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*HZ,l=e.getLayout("viewRect"),s=e.getLayout("r"),u=l.width,c=l.x,h=l.y,d=l.height;function p(D){D.ignore=!0}function y(D){if(!D.ignore)return!0;for(var L in D.states)if(D.states[L].ignore===!1)return!0;return!1}e.each(function(D){var L=e.getItemGraphicEl(D),R=L.shape,E=L.getTextContent(),O=L.getTextGuideLine(),P=e.getItemModel(D),k=P.getModel("label"),V=k.get("position")||P.get(["emphasis","label","position"]),H=k.get("distanceToLabelLine"),U=k.get("alignTo"),z=ht(k.get("edgeDistance"),u),Y=k.get("bleedMargin"),j=P.getModel("labelLine"),$=j.get("length");$=ht($,u);var tt=j.get("length2");if(tt=ht(tt,u),Math.abs(R.endAngle-R.startAngle)<o){N(E.states,p),E.ignore=!0,O&&(N(O.states,p),O.ignore=!0);return}if(y(E)){var F=(R.startAngle+R.endAngle)/2,W=Math.cos(F),at=Math.sin(F),lt,ct,bt,Pt;a=R.cx,n=R.cy;var wt=V==="inside"||V==="inner";if(V==="center")lt=R.cx,ct=R.cy,Pt="center";else{var pt=(wt?(R.r+R.r0)/2*W:R.r*W)+a,Ot=(wt?(R.r+R.r0)/2*at:R.r*at)+n;if(lt=pt+W*3,ct=Ot+at*3,!wt){var yt=pt+W*($+s-R.r),Dt=Ot+at*($+s-R.r),ce=yt+(W<0?-1:1)*tt,Zt=Dt;U==="edge"?lt=W<0?c+z:c+u-z:lt=ce+(W<0?-H:H),ct=Zt,bt=[[pt,Ot],[yt,Dt],[ce,Zt]]}Pt=wt?"center":U==="edge"?W>0?"right":"left":W>0?"left":"right"}var ue=Math.PI,ye=0,He=k.get("rotate");if(Qt(He))ye=He*(ue/180);else if(V==="center")ye=0;else if(He==="radial"||He===!0){var wr=W<0?-F+ue:-F;ye=wr}else if(He==="tangential"&&V!=="outside"&&V!=="outer"){var lr=Math.atan2(W,at);lr<0&&(lr=ue*2+lr);var rn=at>0;rn&&(lr=ue+lr),ye=lr-ue}if(i=!!ye,E.x=lt,E.y=ct,E.rotation=ye,E.setStyle({verticalAlign:"middle"}),wt){E.setStyle({align:Pt});var Ef=E.states.select;Ef&&(Ef.x+=E.x,Ef.y+=E.y)}else{var Ta=E.getBoundingRect().clone();Ta.applyTransform(E.getComputedTransform());var Ov=(E.style.margin||0)+2.1;Ta.y-=Ov/2,Ta.height+=Ov,t.push({label:E,labelLine:O,position:V,len:$,len2:tt,minTurnAngle:j.get("minTurnAngle"),maxSurfaceAngle:j.get("maxSurfaceAngle"),surfaceNormal:new zt(W,at),linePoints:bt,textAlign:Pt,labelDistance:H,labelAlignTo:U,edgeDistance:z,bleedMargin:Y,rect:Ta,unconstrainedWidth:Ta.width,labelStyleWidth:E.style.width})}L.setTextConfig({inside:wt})}}),!i&&r.get("avoidLabelOverlap")&&FZ(t,a,n,s,u,d,c,h);for(var m=0;m<t.length;m++){var _=t[m],b=_.label,x=_.labelLine,w=isNaN(b.x)||isNaN(b.y);if(b){b.setStyle({align:_.textAlign}),w&&(N(b.states,p),b.ignore=!0);var A=b.states.select;A&&(A.x+=b.x,A.y+=b.y)}if(x){var M=_.linePoints;w||!M?(N(x.states,p),x.ignore=!0):(Vk(M,_.minTurnAngle),hW(M,_.surfaceNormal,_.maxSurfaceAngle),x.setShape({points:M}),b.__hostTarget.textGuideLineConfig={anchor:new zt(M[0][0],M[0][1])})}}}var YZ=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new Xt;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,l=t.hostModel,s=t.getItemModel(a),u=s.getModel("emphasis"),c=t.getItemLayout(a),h=rt(ts(s.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){o.setShape(h);return}if(i){o.setShape(h);var d=l.getShallow("animationType");l.ecModel.ssr?(De(o,{scaleX:0,scaleY:0},l,{dataIndex:a,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):d==="scale"?(o.shape.r=c.r0,De(o,{shape:{r:c.r}},l,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),De(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},l,a)):(o.shape.endAngle=c.startAngle,Jt(o,{shape:{endAngle:c.endAngle}},l,a))}else xn(o),Jt(o,{shape:h},l,a);o.useStyle(t.getItemVisual(a,"style")),br(o,s);var p=(c.startAngle+c.endAngle)/2,y=l.get("selectedOffset"),m=Math.cos(p)*y,_=Math.sin(p)*y,b=s.getShallow("cursor");b&&o.attr("cursor",b),this._updateLabel(l,t,a),o.ensureState("emphasis").shape=rt({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},ts(u.getModel("itemStyle"),c)),rt(o.ensureState("select"),{x:m,y:_,shape:ts(s.getModel(["select","itemStyle"]),c)}),rt(o.ensureState("blur"),{shape:ts(s.getModel(["blur","itemStyle"]),c)});var x=o.getTextGuideLine(),w=o.getTextContent();x&&rt(x.ensureState("select"),{x:m,y:_}),rt(w.ensureState("select"),{x:m,y:_}),Ee(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),l=o.getModel("labelLine"),s=a.getItemVisual(n,"style"),u=s&&s.fill,c=s&&s.opacity;xr(i,nr(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var d=t.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new zr,this.setTextGuideLine(p)),vT(this,dT(o),{stroke:u,opacity:pn(l.get(["lineStyle","opacity"]),c,1)})}},e})(Or),jZ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n,i){var o=t.getData(),l=this._data,s=this.group,u;if(!l&&o.count()>0){for(var c=o.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<o.count();++h)c=o.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var d=mB(t),p=new Or({shape:rt(yB(t,n),d)});p.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,s.add(p)}o.diff(l).add(function(y){var m=new YZ(o,y,u);o.setItemGraphicEl(y,m),s.add(m)}).update(function(y,m){var _=l.getItemGraphicEl(m);_.updateData(o,y,u),_.off("click"),s.add(_),o.setItemGraphicEl(y,_)}).remove(function(y){var m=l.getItemGraphicEl(y);Yh(m,t,y)}).execute(),UZ(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,l=t[1]-i.cy,s=Math.sqrt(o*o+l*l);return s<=i.r&&s>=i.r0}},e.type="pie",e})(fe);function Rf(r,e,t){e=it(e)&&{coordDimensions:e}||rt({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=Df(a,e).dimensions,i=new Er(n,r);return i.initData(a,t),i}var Lv=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r})(),XZ=$t(),WZ=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Lv(dt(this.getData,this),dt(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Rf(this,{coordDimensions:["value"],encodeDefaulter:Et(Hw,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=XZ(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(s){o.push(s)}),i=n.seats=GP(o,a.hostModel.get("percentPrecision"))}var l=r.prototype.getDataParams.call(this,t);return l.percent=i[t]||0,l.$vars.push("percent"),l},e.prototype._defaultLabelLine=function(t){us(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.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})(pe);function ZZ(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Qt(o)&&!isNaN(o)&&o<0)})}}}function qZ(r){r.registerChartView(jZ),r.registerSeriesModel(WZ),z5("pie",r.registerAction),r.registerLayout(Et(GZ,"pie")),r.registerProcessor(Mv("pie")),r.registerProcessor(ZZ("pie"))}var $Z=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return qn(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.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})(pe),SB=4,KZ=(function(){function r(){}return r})(),QZ=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new KZ},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,l=o.shape,s=t.getContext?t.getContext():t,u=s&&i[0]<SB,c=this.softClipShape,h;if(u){this._ctx=s;return}for(this._ctx=null,h=this._off;h<n.length;){var d=n[h++],p=n[h++];isNaN(d)||isNaN(p)||c&&!c.contain(d,p)||(l.x=d-i[0]/2,l.y=p-i[1]/2,l.width=i[0],l.height=i[1],o.buildPath(t,l,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,a=t.points,n=t.size,i=this._ctx,o=this.softClipShape,l;if(i){for(l=this._off;l<a.length;){var s=a[l++],u=a[l++];isNaN(s)||isNaN(u)||o&&!o.contain(s,u)||i.fillRect(s-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=l,this.notClear=!0)}},e.prototype.findDataIndex=function(t,a){for(var n=this.shape,i=n.points,o=n.size,l=Math.max(o[0],4),s=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,h=i[c]-l/2,d=i[c+1]-s/2;if(t>=h&&a>=d&&t<=h+l&&a<=d+s)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],l=i[1],s=1/0,u=1/0,c=-1/0,h=-1/0,d=0;d<n.length;){var p=n[d++],y=n[d++];s=Math.min(p,s),c=Math.max(p,c),u=Math.min(y,u),h=Math.max(y,h)}t=this._rect=new kt(s-o/2,u-l/2,c-s+o,h-u+l)}return t},e})(Ut),JZ=(function(){function r(){this.group=new Ct}return r.prototype.updateData=function(e,t){this._clear();var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;t=new Float32Array(t.buffer,i,n)}a.setShape("points",t),a.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,a){var n=this._newAdded[0],i=t.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var l=o.length,s=new Float32Array(l+i.length);s.set(o),s.set(i,l),n.endIndex=e.end,n.setShape({points:s})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new QZ({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;a=a||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=Ge(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<SB;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var l=t.getVisual("style"),s=l&&l.fill;s&&e.setColor(s);var u=Mt(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),tq=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Dv("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var a=t.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new JZ:new Av,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(fe),eq=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return 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})(Ht),ux=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",je).models[0]},e.type="cartesian2dAxis",e})(Ht);ze(ux,Lf);var bB={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},rq=It({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},bB),bT=It({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}}},bB),aq=It({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},bT),nq=St({logBase:10},bT);const xB={category:rq,value:bT,time:aq,log:nq};var iq={value:1,category:1,time:1,log:1};function lf(r,e,t,a){N(iq,function(n,i){var o=It(It({},xB[i],!0),a,!0),l=(function(s){Z(u,s);function u(){var c=s!==null&&s.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var d=Xh(this),p=d?bf(c):{},y=h.getTheme();It(c,y.get(i+"Axis")),It(c,this.getDefaultOption()),c.type=jE(c),d&&Go(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=ex.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u})(t);r.registerComponentModel(l)}),r.registerSubTypeDefaulter(e+"Axis",jE)}function jE(r){return r.type||(r.data?"category":"value")}var oq=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return ot(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),te(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),fx=["x","y"];function XE(r){return r.type==="interval"||r.type==="time"}var lq=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=fx,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!XE(t)||!XE(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),l=this.dataToPoint([n[1],i[1]]),s=n[1]-n[0],u=i[1]-i[0];if(!(!s||!u)){var c=(l[0]-o[0])/s,h=(l[1]-o[1])/u,d=o[0]-n[0]*c,p=o[1]-i[0]*h,y=this._transform=[c,0,0,h,d,p];this._invTransform=ms([],y)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.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,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),l=new kt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(l)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return hr(n,t,this._transform);var l=this.getAxis("x"),s=this.getAxis("y");return n[0]=l.toGlobalCoord(l.dataToCoord(i,a)),n[1]=s.toGlobalCoord(s.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),l=i.getExtent(),s=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(l[0],l[1]),u),Math.max(l[0],l[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return hr(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,l=Math.max(a[0],a[1])-i+t,s=Math.max(n[0],n[1])-o+t;return new kt(i,o,l,s)},e})(oq),sq=(function(r){Z(e,r);function e(t,a,n,i,o){var l=r.call(this,t,a,n)||this;return l.index=0,l.type=i||"value",l.position=o||"bottom",l}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(en);function cx(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],l=n.position,s=o?"onZero":l,u=n.dim,c=a.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,y=u==="x"?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));y[d.onZero]=Math.max(Math.min(m,y[1]),y[0])}i.position=[u==="y"?y[d[s]]:h[0],u==="x"?y[d[s]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=_[l],i.labelOffset=o?y[d[l]]-y[d.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),er(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var b=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-b:b,i.z2=1,i}function WE(r){return r.get("coordinateSystem")==="cartesian2d"}function ZE(r){var e={xAxisModel:null,yAxisModel:null};return N(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,je).models[0];e[a]=i}),e}var q_=Math.log;function wB(r,e,t){var a=Pi.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,l=a.getInterval.call(t),s=Ck(r,e),u=s.extent,c=s.fixMin,h=s.fixMax;if(r.type==="log"){var d=q_(r.base);u=[q_(u[0])/d,q_(u[1])/d]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:h});var p=a.getExtent.call(r);c&&(u[0]=p[0]),h&&(u[1]=p[1]);var y=a.getInterval.call(r),m=u[0],_=u[1];if(c&&h)y=(_-m)/o;else if(c)for(_=u[0]+y*o;_<u[1]&&isFinite(_)&&isFinite(u[1]);)y=N_(y),_=u[0]+y*o;else if(h)for(m=u[1]-y*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)y=N_(y),m=u[1]-y*o;else{var b=r.getTicks().length-1;b>o&&(y=N_(y));var x=y*o;_=Math.ceil(u[1]/y)*y,m=Ne(_-x),m<0&&u[0]>=0?(m=0,_=Ne(x)):_>0&&u[1]<=0&&(_=0,m=-Ne(x))}var w=(n[0].value-i[0].value)/l,A=(n[o].value-i[o].value)/l;a.setExtent.call(r,m+y*w,_+y*A),a.setInterval.call(r,y),(w||A)&&a.setNiceExtent.call(r,m+y,_-y)}var uq=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fx,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var l,s=Yt(o),u=s.length;if(u){for(var c=[],h=u-1;h>=0;h--){var d=+s[h],p=o[d],y=p.model,m=p.scale;rx(m)&&y.get("alignTicks")&&y.get("interval")==null?c.push(p):(ds(m,y),rx(m)&&(l=p))}c.length&&(l||(l=c.pop(),ds(l.scale,l.model)),N(c,function(_){wB(_.scale,_.model,l.scale)}))}}n(a.x),n(a.y);var i={};N(a.x,function(o){qE(a,"y",o,i)}),N(a.y,function(o){qE(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=Xe(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var l=this._axesList;s(),i&&(N(l,function(u){if(!u.model.get(["axisLabel","inside"])){var c=LX(u);if(c){var h=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[h]-=c[h]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),s()),N(this._coordsList,function(u){u.calcAffineTransform()});function s(){N(l,function(u){var c=u.isHorizontal(),h=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(h[d],h[1-d]),fq(u,c?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}xt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",je).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",je).models[0],i=e.gridModel,o=this._coordsList,l,s;if(t)l=t.coordinateSystem,Bt(o,l)<0&&(l=null);else if(a&&n)l=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)s=this.getAxis("x",a.componentIndex);else if(n)s=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(l=this._coordsList[0])}return{cartesian:l,axis:s}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},l={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=l,N(l.x,function(c,h){N(l.y,function(d,p){var y="x"+h+"y"+p,m=new lq(y);m.master=n,m.model=e,n._coordsMap[y]=m,n._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(h,d){if($_(h,e)){var p=h.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var y=new sq(c,wv(h),[0,0],h.get("type"),p),m=y.type==="category";y.onBand=m&&h.get("boundaryGap"),y.inverse=h.get("inverse"),h.axis=y,y.model=h,y.grid=i,y.index=d,i._axesList.push(y),l[c][d]=y,s[c]++}}}},r.prototype._updateScale=function(e,t){N(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),e.eachSeries(function(n){if(WE(n)){var i=ZE(n),o=i.xAxisModel,l=i.yAxisModel;if(!$_(o,t)||!$_(l,t))return;var s=this.getCartesian(o.componentIndex,l.componentIndex),u=n.getData(),c=s.getAxis("x"),h=s.getAxis("y");a(u,c),a(u,h)}},this);function a(n,i){N(Qg(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return N(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);Bt(t,i)<0&&t.push(i),Bt(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o)}),e.eachSeries(function(n){if(WE(n)){var i=ZE(n),o=i.xAxisModel,l=i.yAxisModel,s=o.getCoordSysModel(),u=s.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,l.componentIndex)}}),a},r.dimensions=fx,r})();function $_(r,e){return r.getCoordSysModel()===e}function qE(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[e],i,o=t.model,l=o.get(["axisLine","onZero"]),s=o.get(["axisLine","onZeroAxisIndex"]);if(!l)return;if(s!=null)$E(n[s])&&(i=n[s]);else for(var u in n)if(n.hasOwnProperty(u)&&$E(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(h){return h.dim+"_"+h.index}}function $E(r){return r&&r.type!=="category"&&r.type!=="time"&&MX(r)}function fq(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}var Do=Math.PI,Ur=(function(){function r(e,t){this.group=new Ct,this.opt=t,this.axisModel=e,St(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new Ct({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!KE[e]},r.prototype.add=function(e){KE[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var n=cw(t-e),i,o;return tf(n)?(o=a>0?"top":"bottom",i="center"):tf(n-Do)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<Do?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),KE={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=e.axis.getExtent(),o=a.transform,l=[i[0],0],s=[i[1],0],u=l[0]>s[0];o&&(hr(l,l,o),hr(s,s,o));var c=rt({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Qe({shape:{x1:l[0],y1:l[1],x2:s[0],y2:s[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});rf(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var d=e.get(["axisLine","symbol"]);if(d!=null){var p=e.get(["axisLine","symbolSize"]);vt(d)&&(d=[d,d]),(vt(p)||Qt(p))&&(p=[p,p]);var y=xs(e.get(["axisLine","symbolOffset"])||0,p),m=p[0],_=p[1];N([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((l[0]-s[0])*(l[0]-s[0])+(l[1]-s[1])*(l[1]-s[1]))}],function(b,x){if(d[x]!=="none"&&d[x]!=null){var w=Ge(d[x],-m/2,-_/2,m,_,c.stroke,!0),A=b.r+b.offset,M=u?s:l;w.attr({rotation:b.rotate,x:M[0]+A*Math.cos(r.rotation),y:M[1]-A*Math.sin(r.rotation),silent:!0,z2:11}),t.add(w)}})}}},axisTickLabel:function(r,e,t,a){var n=vq(t,a,e,r),i=pq(t,a,e,r);if(hq(e,i,n),dq(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Gk(ot(i,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));Uk(o)}},axisName:function(r,e,t,a){var n=er(r.axisName,e.get("name"));if(n){var i=e.get("nameLocation"),o=r.nameDirection,l=e.getModel("nameTextStyle"),s=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-c*s:i==="end"?u[1]+c*s:(u[0]+u[1])/2,JE(i)?r.labelOffset+o*s:0],d,p=e.get("nameRotate");p!=null&&(p=p*Do/180);var y;JE(i)?d=Ur.innerTextLayout(r.rotation,p??r.rotation,o):(d=cq(r.rotation,i,p||0,u),y=r.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(d.rotation)),!isFinite(y)&&(y=null)));var m=l.getFont(),_=e.get("nameTruncate",!0)||{},b=_.ellipsis,x=er(r.nameTruncateMaxWidth,_.maxWidth,y),w=new Xt({x:h[0],y:h[1],rotation:d.rotation,silent:Ur.isLabelSilent(e),style:_e(l,{text:n,font:m,overflow:"truncate",width:x,ellipsis:b,fill:l.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:l.get("align")||d.textAlign,verticalAlign:l.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(_s({el:w,componentModel:e,itemName:n}),w.__fullText=n,w.anid="name",e.get("triggerEvent")){var A=Ur.makeAxisEventDataBase(e);A.targetType="axisName",A.name=n,Mt(w).eventData=A}a.add(w),w.updateTransform(),t.add(w),w.decomposeTransform()}}};function cq(r,e,t,a){var n=cw(t-r),i,o,l=a[0]>a[1],s=e==="start"&&!l||e!=="start"&&l;return tf(n-Do/2)?(o=s?"bottom":"top",i="center"):tf(n-Do*1.5)?(o=s?"top":"bottom",i="center"):(o="middle",n<Do*1.5&&n>Do/2?i=s?"left":"right":i=s?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function hq(r,e,t){if(!Dk(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],l=e[e.length-1],s=e[e.length-2],u=t[0],c=t[1],h=t[t.length-1],d=t[t.length-2];a===!1?(za(i),za(u)):QE(i,o)&&(a?(za(o),za(c)):(za(i),za(u))),n===!1?(za(l),za(h)):QE(s,l)&&(n?(za(s),za(d)):(za(l),za(h)))}}function za(r){r&&(r.ignore=!0)}function QE(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=hv([]);return Yo(n,n,-r.rotation),t.applyTransform(Fn([],n,r.getLocalTransform())),a.applyTransform(Fn([],n,e.getLocalTransform())),t.intersect(a)}}function JE(r){return r==="middle"||r==="center"}function TB(r,e,t,a,n){for(var i=[],o=[],l=[],s=0;s<r.length;s++){var u=r[s].coord;o[0]=u,o[1]=0,l[0]=u,l[1]=t,e&&(hr(o,o,e),hr(l,l,e));var c=new Qe({shape:{x1:o[0],y1:o[1],x2:l[0],y2:l[1]},style:a,z2:2,autoBatch:!0,silent:!0});rf(c.shape,c.style.lineWidth),c.anid=n+"_"+r[s].tickValue,i.push(c)}return i}function vq(r,e,t,a){var n=t.axis,i=t.getModel("axisTick"),o=i.get("show");if(o==="auto"&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var l=i.getModel("lineStyle"),s=a.tickDirection*i.get("length"),u=n.getTicksCoords(),c=TB(u,e.transform,s,St(l.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)r.add(c[h]);return c}}function dq(r,e,t,a){var n=t.axis,i=t.getModel("minorTick");if(!(!i.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var l=i.getModel("lineStyle"),s=a*i.get("length"),u=St(l.getLineStyle(),St(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var h=TB(o[c],e.transform,s,u,"minorticks_"+c),d=0;d<h.length;d++)r.add(h[d])}}function pq(r,e,t,a){var n=t.axis,i=er(a.axisLabelShow,t.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=t.getModel("axisLabel"),l=o.get("margin"),s=n.getViewLabels(),u=(er(a.labelRotate,o.get("rotate"))||0)*Do/180,c=Ur.innerTextLayout(a.rotation,u,a.labelDirection),h=t.getCategories&&t.getCategories(!0),d=[],p=Ur.isLabelSilent(t),y=t.get("triggerEvent");return N(s,function(m,_){var b=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,x=m.formattedLabel,w=m.rawLabel,A=o;if(h&&h[b]){var M=h[b];xt(M)&&M.textStyle&&(A=new ee(M.textStyle,o,t.ecModel))}var D=A.getTextColor()||t.get(["axisLine","lineStyle","color"]),L=n.dataToCoord(b),R=A.getShallow("align",!0)||c.textAlign,E=Rt(A.getShallow("alignMinLabel",!0),R),O=Rt(A.getShallow("alignMaxLabel",!0),R),P=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||c.textVerticalAlign,k=Rt(A.getShallow("verticalAlignMinLabel",!0),P),V=Rt(A.getShallow("verticalAlignMaxLabel",!0),P),H=new Xt({x:L,y:a.labelOffset+a.labelDirection*l,rotation:c.rotation,silent:p,z2:10+(m.level||0),style:_e(A,{text:x,align:_===0?E:_===s.length-1?O:R,verticalAlign:_===0?k:_===s.length-1?V:P,fill:_t(D)?D(n.type==="category"?w:n.type==="value"?b+"":b,_):D})});if(H.anid="label_"+b,_s({el:H,componentModel:t,itemName:x,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:w,tickIndex:_}}),y){var U=Ur.makeAxisEventDataBase(t);U.targetType="axisLabel",U.value=w,U.tickIndex=_,n.type==="category"&&(U.dataIndex=b),Mt(H).eventData=U}e.add(H),H.updateTransform(),d.push(H),r.add(H),H.decomposeTransform()}),d}}function gq(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return yq(t,r,e),t.seriesInvolved&&_q(t,r),t}function yq(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];N(t.getCoordinateSystems(),function(l){if(!l.axisPointerEnabled)return;var s=ev(l.model),u=r.coordSysAxesInfo[s]={};r.coordSysMap[s]=l;var c=l.model,h=c.getModel("tooltip",a);if(N(l.getAxes(),Et(m,!1,null)),l.getTooltipAxes&&a&&h.get("show")){var d=h.get("trigger")==="axis",p=h.get(["axisPointer","type"])==="cross",y=l.getTooltipAxes(h.get(["axisPointer","axis"]));(d||p)&&N(y.baseAxes,Et(m,p?"cross":!0,d)),p&&N(y.otherAxes,Et(m,"cross",!1))}function m(_,b,x){var w=x.model.getModel("axisPointer",n),A=w.get("show");if(!(!A||A==="auto"&&!_&&!hx(w))){b==null&&(b=w.get("triggerTooltip")),w=_?mq(x,h,n,e,_,b):w;var M=w.get("snap"),D=w.get("triggerEmphasis"),L=ev(x.model),R=b||M||x.type==="category",E=r.axesInfo[L]={key:L,axis:x,coordSys:l,axisPointerModel:w,triggerTooltip:b,triggerEmphasis:D,involveSeries:R,snap:M,useHandle:hx(w),seriesModels:[],linkGroup:null};u[L]=E,r.seriesInvolved=r.seriesInvolved||R;var O=Sq(i,x);if(O!=null){var P=o[O]||(o[O]={axesInfo:{}});P.axesInfo[L]=E,P.mapper=i[O].mapper,E.linkGroup=P}}}})}function mq(r,e,t,a,n,i){var o=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],s={};N(l,function(d){s[d]=Tt(o.get(d))}),s.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(s.type="line");var u=s.label||(s.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var h=s.lineStyle=o.get("crossStyle");h&&St(u,h.textStyle)}}return r.model.getModel("axisPointer",new ee(s,t,a))}function _q(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||n==="none"||n===!1||n==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||N(r.coordSysAxesInfo[ev(a.model)],function(o){var l=o.axis;a.getAxis(l.dim)===l&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function Sq(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(K_(i[a+"AxisId"],t.id)||K_(i[a+"AxisIndex"],t.componentIndex)||K_(i[a+"AxisName"],t.name))return n}}function K_(r,e){return r==="all"||it(r)&&Bt(r,e)>=0||r===e}function bq(r){var e=xT(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var l=hx(t);i==null&&(n.status=l?"show":"hide");var s=a.getExtent().slice();s[0]>s[1]&&s.reverse(),(o==null||o>s[1])&&(o=s[1]),o<s[0]&&(o=s[0]),n.value=o,l&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function xT(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ev(r)]}function xq(r){var e=xT(r);return e&&e.axisPointerModel}function hx(r){return!!r.get(["handle","show"])}function ev(r){return r.type+"||"+r.id}var tI={},Ts=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.axisPointerClass&&bq(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=xq(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){tI[t]=a},e.getAxisPointerClass=function(t){return t&&tI[t]},e.type="axis",e})(we),vx=$t();function AB(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),l=o.get("color"),s=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=l.length,h=vx(r).splitAreaColors,d=mt(),p=0;if(h)for(var y=0;y<u.length;y++){var m=h.get(u[y].tickValue);if(m!=null){p=(m+(c-1)*y)%c;break}}var _=n.toGlobalCoord(u[0].coord),b=o.getAreaStyle();l=it(l)?l:[l];for(var y=1;y<u.length;y++){var x=n.toGlobalCoord(u[y].coord),w=void 0,A=void 0,M=void 0,D=void 0;n.isHorizontal()?(w=_,A=s.y,M=x-w,D=s.height,_=w+M):(w=s.x,A=_,M=s.width,D=x-A,_=A+D);var L=u[y-1].tickValue;L!=null&&d.set(L,p),e.add(new Wt({anid:L!=null?"area_"+L:null,shape:{x:w,y:A,width:M,height:D},style:St({fill:l[p]},b),autoBatch:!0,silent:!0})),p=(p+1)%c}vx(r).splitAreaColors=d}}}function CB(r){vx(r).splitAreaColors=null}var wq=["axisLine","axisTickLabel","axisName"],Tq=["splitArea","splitLine","minorSplitLine"],DB=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ct,this.group.add(this._axisGroup),!!t.get("show")){var l=t.getCoordSysModel(),s=cx(l,t),u=new Ur(t,rt({handleAutoShown:function(h){for(var d=l.coordinateSystem.getCartesians(),p=0;p<d.length;p++)if(rx(d[p].getOtherAxis(t.axis).scale))return!0;return!1}},s));N(wq,u.add,u),this._axisGroup.add(u.getGroup()),N(Tq,function(h){t.get([h,"show"])&&Aq[h](this,this._axisGroup,t,l)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||Sv(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){CB(this)},e.type="cartesianAxis",e})(Ts),Aq={splitLine:function(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),l=o.get("color"),s=i.get("showMinLine")!==!1,u=i.get("showMaxLine")!==!1;l=it(l)?l:[l];for(var c=a.coordinateSystem.getRect(),h=n.isHorizontal(),d=0,p=n.getTicksCoords({tickModel:i}),y=[],m=[],_=o.getLineStyle(),b=0;b<p.length;b++){var x=n.toGlobalCoord(p[b].coord);if(!(b===0&&!s||b===p.length-1&&!u)){var w=p[b].tickValue;h?(y[0]=x,y[1]=c.y,m[0]=x,m[1]=c.y+c.height):(y[0]=c.x,y[1]=x,m[0]=c.x+c.width,m[1]=x);var A=d++%l.length,M=new Qe({anid:w!=null?"line_"+w:null,autoBatch:!0,shape:{x1:y[0],y1:y[1],x2:m[0],y2:m[1]},style:St({stroke:l[A]},_),silent:!0});rf(M.shape,_.lineWidth),e.add(M)}}}},minorSplitLine:function(r,e,t,a){var n=t.axis,i=t.getModel("minorSplitLine"),o=i.getModel("lineStyle"),l=a.coordinateSystem.getRect(),s=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=o.getLineStyle(),p=0;p<u.length;p++)for(var y=0;y<u[p].length;y++){var m=n.toGlobalCoord(u[p][y].coord);s?(c[0]=m,c[1]=l.y,h[0]=m,h[1]=l.y+l.height):(c[0]=l.x,c[1]=m,h[0]=l.x+l.width,h[1]=m);var _=new Qe({anid:"minor_line_"+u[p][y].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});rf(_.shape,d.lineWidth),e.add(_)}},splitArea:function(r,e,t,a){AB(r,e,t,a)}},MB=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(DB),Cq=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=MB.type,t}return e.type="yAxis",e})(DB),Dq=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new Wt({shape:t.coordinateSystem.getRect(),style:St({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(we),eI={offset:0};function LB(r){r.registerComponentView(Dq),r.registerComponentModel(eq),r.registerCoordinateSystem("cartesian2d",uq),lf(r,"x",ux,eI),lf(r,"y",ux,eI),r.registerComponentView(MB),r.registerComponentView(Cq),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Mq(r){Gt(LB),r.registerSeriesModel($Z),r.registerChartView(tq),r.registerLayout(Dv("scatter"))}function Lq(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();N(i,function(o,l){t.each(t.mapDimension(i[l].dim),function(s,u){a[u]=a[u]||[];var c=n.dataToPoint(s,l);a[u][l]=rI(c)?c:aI(n)})}),t.each(function(o){var l=rP(a[o],function(s){return rI(s)})||aI(n);a[o].push(l.slice()),t.setItemLayout(o,a[o])})}})}function rI(r){return!isNaN(r[0])&&!isNaN(r[1])}function aI(r){return[r.cx,r.cy]}function Rq(r){var e=r.polar;if(e){it(e)||(e=[e]);var t=[];N(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],it(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}N(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var Eq=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,l=t.getData(),s=this._data;function u(d,p){var y=d.getItemVisual(p,"symbol")||"circle";if(y!=="none"){var m=Cf(d.getItemVisual(p,"symbolSize")),_=Ge(y,-1,-1,2,2),b=d.getItemVisual(p,"symbolRotate")||0;return _.attr({style:{strokeNoScale:!0},z2:100,scaleX:m[0]/2,scaleY:m[1]/2,rotation:b*Math.PI/180||0}),_}}function c(d,p,y,m,_,b){y.removeAll();for(var x=0;x<p.length-1;x++){var w=u(m,_);w&&(w.__dimIdx=x,d[x]?(w.setPosition(d[x]),Ss[b?"initProps":"updateProps"](w,{x:p[x][0],y:p[x][1]},t,_)):w.setPosition(p[x]),y.add(w))}}function h(d){return ot(d,function(p){return[i.cx,i.cy]})}l.diff(s).add(function(d){var p=l.getItemLayout(d);if(p){var y=new Nr,m=new zr,_={shape:{points:p}};y.shape.points=h(p),m.shape.points=h(p),De(y,_,t,d),De(m,_,t,d);var b=new Ct,x=new Ct;b.add(m),b.add(y),b.add(x),c(m.shape.points,p,x,l,d,!0),l.setItemGraphicEl(d,b)}}).update(function(d,p){var y=s.getItemGraphicEl(p),m=y.childAt(0),_=y.childAt(1),b=y.childAt(2),x={shape:{points:l.getItemLayout(d)}};x.shape.points&&(c(m.shape.points,x.shape.points,b,l,d,!1),xn(_),xn(m),Jt(m,x,t),Jt(_,x,t),l.setItemGraphicEl(d,y))}).remove(function(d){o.remove(s.getItemGraphicEl(d))}).execute(),l.eachItemGraphicEl(function(d,p){var y=l.getItemModel(p),m=d.childAt(0),_=d.childAt(1),b=d.childAt(2),x=l.getItemVisual(p,"style"),w=x.fill;o.add(d),m.useStyle(St(y.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:w})),br(m,y,"lineStyle"),br(_,y,"areaStyle");var A=y.getModel("areaStyle"),M=A.isEmpty()&&A.parentModel.isEmpty();_.ignore=M,N(["emphasis","select","blur"],function(R){var E=y.getModel([R,"areaStyle"]),O=E.isEmpty()&&E.parentModel.isEmpty();_.ensureState(R).ignore=O&&M}),_.useStyle(St(A.getAreaStyle(),{fill:w,opacity:.7,decal:x.decal}));var D=y.getModel("emphasis"),L=D.getModel("itemStyle").getItemStyle();b.eachChild(function(R){if(R instanceof or){var E=R.style;R.useStyle(rt({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},x))}else R.useStyle(x),R.setColor(w),R.style.strokeNoScale=!0;var O=R.ensureState("emphasis");O.style=Tt(L);var P=l.getStore().get(l.getDimensionIndex(R.__dimIdx),p);(P==null||isNaN(P))&&(P=""),xr(R,nr(y),{labelFetcher:l.hostModel,labelDataIndex:p,labelDimIndex:R.__dimIdx,defaultText:P,inheritColor:w,defaultOpacity:x.opacity})}),Ee(d,D.get("focus"),D.get("blurScope"),D.get("disabled"))}),this._data=l},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e})(fe),Iq=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Lv(dt(this.getData,this),dt(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return Rf(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.coordinateSystem,l=o.getIndicatorAxes(),s=this.getData().getName(t),u=s===""?this.name:s,c=T5(this,t);return ir("section",{header:u,sortBlocks:!0,blocks:ot(l,function(h){var d=i.get(i.mapDimension(h.dim),t);return ir("nameValue",{markerType:"subItem",markerColor:c,name:h.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(ot(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,l=i.length;o<l;o++)if(!isNaN(i[o])){var s=n.getIndicatorAxes();return n.coordToPoint(s[o].dataToCoord(i[o]),o)}}},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})(pe),jc=xB.value;function kp(r,e){return St({show:e},r)}var Oq=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),l=this.get("axisLabel"),s=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),d=this.get("triggerEvent"),p=ot(this.get("indicator")||[],function(y){y.max!=null&&y.max>0&&!y.min?y.min=0:y.min!=null&&y.min<0&&!y.max&&(y.max=0);var m=s;y.color!=null&&(m=St({color:y.color},s));var _=It(Tt(y),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:l,name:y.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:m,triggerEvent:d},!1);if(vt(c)){var b=_.name;_.name=c.replace("{value}",b??"")}else _t(c)&&(_.name=c(_.name,_));var x=new ee(_,null,this.ecModel);return ze(x,Lf.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x},this);this._indicatorModels=p},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:It({lineStyle:{color:"#bbb"}},jc.axisLine),axisLabel:kp(jc.axisLabel,!1),axisTick:kp(jc.axisTick,!1),splitLine:kp(jc.splitLine,!0),splitArea:kp(jc.splitArea,!0),indicator:[]},e})(Ht),Nq=["axisLine","axisTickLabel","axisName"],Pq=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes(),i=ot(n,function(o){var l=o.model.get("showName")?o.name:"",s=new Ur(o.model,{axisName:l,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});N(i,function(o){N(Nq,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),l=t.getModel("splitArea"),s=o.getModel("lineStyle"),u=l.getModel("areaStyle"),c=o.get("show"),h=l.get("show"),d=s.get("color"),p=u.get("color"),y=it(d)?d:[d],m=it(p)?p:[p],_=[],b=[];function x(U,z,Y){var j=Y%z.length;return U[j]=U[j]||[],j}if(i==="circle")for(var w=n[0].getTicksCoords(),A=a.cx,M=a.cy,D=0;D<w.length;D++){if(c){var L=x(_,y,D);_[L].push(new Wn({shape:{cx:A,cy:M,r:w[D].coord}}))}if(h&&D<w.length-1){var L=x(b,m,D);b[L].push(new df({shape:{cx:A,cy:M,r0:w[D].coord,r:w[D+1].coord}}))}}else for(var R,E=ot(n,function(U,z){var Y=U.getTicksCoords();return R=R==null?Y.length-1:Math.min(Y.length-1,R),ot(Y,function(j){return a.coordToPoint(j.coord,z)})}),O=[],D=0;D<=R;D++){for(var P=[],k=0;k<n.length;k++)P.push(E[k][D]);if(P[0]&&P.push(P[0].slice()),c){var L=x(_,y,D);_[L].push(new zr({shape:{points:P}}))}if(h&&O){var L=x(b,m,D-1);b[L].push(new Nr({shape:{points:P.concat(O)}}))}O=P.slice().reverse()}var V=s.getLineStyle(),H=u.getAreaStyle();N(b,function(U,z){this.group.add(ya(U,{style:St({stroke:"none",fill:m[z%m.length]},H),silent:!0}))},this),N(_,function(U,z){this.group.add(ya(U,{style:St({fill:"none",stroke:y[z%y.length]},V),silent:!0}))},this)},e.type="radar",e})(we),zq=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e})(en),kq=(function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=ot(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,l=new zq(o,new Pi);return l.name=n.get("name"),l.model=n,n.axis=l,this.dimensions.push(o),l},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var i=Math.atan2(-a,t),o=1/0,l,s=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(i-c.angle);h<o&&(l=c,s=u,o=h)}return[s,+(l&&l.coordToData(n))]},r.prototype.resize=function(e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight(),o=Math.min(n,i)/2;this.cx=ht(a[0],n),this.cy=ht(a[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var l=e.get("radius");(vt(l)||Qt(l))&&(l=[0,l]),this.r0=ht(l[0],o),this.r=ht(l[1],o),N(this._indicatorAxes,function(s,u){s.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),s.angle=c},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model;N(a,function(l){l.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(l,s){if(!(l.get("coordinateSystem")!=="radar"||e.getComponent("radar",l.get("radarIndex"))!==n)){var u=l.getData();N(a,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=n.get("splitNumber"),o=new Pi;o.setExtent(0,i),o.setInterval(1),N(a,function(l,s){wB(l.scale,l.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function Bq(r){r.registerCoordinateSystem("radar",kq),r.registerComponentModel(Oq),r.registerComponentView(Pq),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function Vq(r){Gt(Bq),r.registerChartView(Eq),r.registerSeriesModel(Iq),r.registerLayout(Lq),r.registerProcessor(Mv("radar")),r.registerPreprocessor(Rq)}var nI="\0_ec_interaction_mutex";function Gq(r,e,t){var a=wT(r);a[e]=t}function Hq(r,e,t){var a=wT(r),n=a[e];n===t&&(a[e]=null)}function iI(r,e){return!!wT(r)[e]}function wT(r){return r[nI]||(r[nI]={})}wn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Pe);var Rv=(function(r){Z(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=dt(a._mousedownHandler,a),i=dt(a._mousemoveHandler,a),o=dt(a._mouseupHandler,a),l=dt(a._mousewheelHandler,a),s=dt(a._pinchHandler,a);return a.enable=function(u,c){this.disable(),this._opt=St(Tt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",l),t.on("pinch",s))},a.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",l),t.off("pinch",s)},a}return 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(!PM(t)){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!pg("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||iI(this._zr,"globalPan"))){var a=t.offsetX,n=t.offsetY,i=this._x,o=this._y,l=a-i,s=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&Ri(t.event),RB(this,"pan","moveOnMouseMove",t,{dx:l,dy:s,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){PM(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=pg("zoomOnMouseWheel",t,this._opt),n=pg("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),l=t.offsetX,s=t.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;Q_(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:l,originY:s,isAvailableBehavior:null})}if(n){var h=Math.abs(i),d=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);Q_(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:d,originX:l,originY:s,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!iI(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;Q_(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e})(Ka);function Q_(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Ri(a.event),RB(r,e,t,a,n))}function RB(r,e,t,a,n){n.isAvailableBehavior=dt(pg,null,t,a),r.trigger(e,n)}function pg(r,e,t){var a=t[r];return!r||a&&(!vt(a)||e.event[a+"Key"])}function TT(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function AT(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var l=i.min||0,s=i.max||1/0;o=Math.max(Math.min(s,o),l)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var Fq={axisPointer:1,tooltip:1,brush:1};function im(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!Fq.hasOwnProperty(a.mainType)&&n&&n.model!==t}function EB(r){if(vt(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var J_,ay={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"},oI=Yt(ay),ny={"alignment-baseline":"textBaseline","stop-color":"stopColor"},lI=Yt(ny),Uq=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=EB(e);this._defsUsePending=[];var n=new Ct;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",l=parseFloat(a.getAttribute("width")||t.width),s=parseFloat(a.getAttribute("height")||t.height);isNaN(l)&&(l=null),isNaN(s)&&(s=null),pa(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Xq(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(o){var d=om(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&l!=null&&s!=null&&(h=OB(c,{x:0,y:0,width:l,height:s}),!t.ignoreViewBox)){var p=n;n=new Ct,n.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return!t.ignoreRootClip&&l!=null&&s!=null&&n.setClipPath(new Wt({shape:{x:0,y:0,width:l,height:s}})),{root:n,width:l,height:s,viewBoxRect:c,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var l=e.nodeName.toLowerCase(),s,u=n;if(l==="defs"&&(i=!0),l==="text"&&(o=!0),l==="defs"||l==="switch")s=t;else{if(!i){var c=J_[l];if(c&&gt(J_,l)){s=c.call(this,e,t);var h=e.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:s};a.push(d),l==="g"&&(u=d)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:l,el:s});t.add(s)}}var p=sI[l];if(p&&gt(sI,l)){var y=p.call(this,e),m=e.getAttribute("id");m&&(this._defs[m]=y)}}if(s&&s.isGroup)for(var _=e.firstChild;_;)_.nodeType===1?this._parseNode(_,s,a,u,i,o):_.nodeType===3&&o&&this._parseText(_,s),_=_.nextSibling},r.prototype._parseText=function(e,t){var a=new ef({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ka(t,a),pa(e,a,this._defsUsePending,!1,!1),Yq(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var l=a.getBoundingRect();return this._textX+=l.width,t.add(a),a},r.internalField=(function(){J_={g:function(e,t){var a=new Ct;return ka(t,a),pa(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new Wt;return ka(t,a),pa(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Wn;return ka(t,a),pa(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Qe;return ka(t,a),pa(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new yv;return ka(t,a),pa(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=cI(a));var i=new Nr({shape:{points:n||[]},silent:!0});return ka(t,i),pa(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=cI(a));var i=new zr({shape:{points:n||[]},silent:!0});return ka(t,i),pa(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new or;return ka(t,a),pa(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var l=new Ct;return ka(t,l),pa(e,l,this._defsUsePending,!1,!0),l},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",l=new Ct;return ka(t,l),pa(e,l,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),l},path:function(e,t){var a=e.getAttribute("d")||"",n=bz(a);return ka(t,n),pa(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),sI={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new gf(e,t,a,n);return uI(r,i),fI(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Aw(e,t,a);return uI(r,n),fI(r,n),n}};function uI(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function fI(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};IB(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function ka(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),St(e.__inheritedStyle,r.__inheritedStyle))}function cI(r){for(var e=om(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function pa(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},l={};r.nodeType===1&&(qq(r,e),IB(r,o,l),a||$q(r,o,l)),i.style=i.style||{},o.fill!=null&&(i.style.fill=hI(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=hI(i,"stroke",o.stroke,t)),N(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(s){o[s]!=null&&(i.style[s]=parseFloat(o[s]))}),N(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(s){o[s]!=null&&(i.style[s]=o[s])}),n&&(i.__selfStyle=l),o.lineDash&&(i.style.lineDash=ot(om(o.lineDash),function(s){return parseFloat(s)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Yq(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,l=o;o&&(o==="middle"&&(l="center"),r.style.textAlign=l)}}var jq=/^url\(\s*#(.*?)\)/;function hI(r,e,t,a){var n=t&&t.match(jq);if(n){var i=Wa(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function Xq(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var Wq=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function om(r){return r.match(Wq)||[]}var Zq=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,tS=Math.PI/180;function qq(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(Zq,function(h,d,p){return a.push(d,p),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],l=a[i-1],s=om(o);switch(n=n||na(),l){case"translate":Sn(n,n,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":My(n,n,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":Yo(n,n,-parseFloat(s[0])*tS,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(s[0])*tS);Fn(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(s[0])*tS);Fn(n,[1,c,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(s[0]),n[1]=parseFloat(s[1]),n[2]=parseFloat(s[2]),n[3]=parseFloat(s[3]),n[4]=parseFloat(s[4]),n[5]=parseFloat(s[5]);break}}e.setLocalTransform(n)}}var vI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function IB(r,e,t){var a=r.getAttribute("style");if(a){vI.lastIndex=0;for(var n;(n=vI.exec(a))!=null;){var i=n[1],o=gt(ay,i)?ay[i]:null;o&&(e[o]=n[2]);var l=gt(ny,i)?ny[i]:null;l&&(t[l]=n[2])}}}function $q(r,e,t){for(var a=0;a<oI.length;a++){var n=oI[a],i=r.getAttribute(n);i!=null&&(e[ay[n]]=i)}for(var a=0;a<lI.length;a++){var n=lI[a],i=r.getAttribute(n);i!=null&&(t[ny[n]]=i)}}function OB(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function Kq(r,e){var t=new Uq;return t.parse(r,e)}var Qq=mt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Jq=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=mt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=EB(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=e$(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&Kq(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Ir(a!=null)}catch(_){throw new Error(`Invalid svg format
87
- `+_.message)}var n=new Ct;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,l=t.viewBoxRect,s=this._boundingRect;if(!s){var u=void 0,c=void 0,h=void 0,d=void 0;if(i!=null?(u=0,h=i):l&&(u=l.x,h=l.width),o!=null?(c=0,d=o):l&&(c=l.y,d=l.height),u==null||c==null){var p=a.getBoundingRect();u==null&&(u=p.x,h=p.width),c==null&&(c=p.y,d=p.height)}s=this._boundingRect=new kt(u,c,h,d)}if(l){var y=OB(l,s);a.scaleX=a.scaleY=y.scale,a.x=y.x,a.y=y.y}n.setClipPath(new Wt({shape:s.plain()}));var m=[];return N(t.named,function(_){Qq.get(_.svgNodeTagLower)!=null&&(m.push(_),t$(_.el))}),{root:n,boundingRect:s,named:m}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r})();function t$(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function e$(r){var e=[],t=mt();return N(r,function(a){if(a.namedFrom==null){var n=new HX(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var dx=[126,25],dI="南海诸岛",Bl=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var zl=0;zl<Bl.length;zl++)for(var wu=0;wu<Bl[zl].length;wu++)Bl[zl][wu][0]/=10.5,Bl[zl][wu][1]/=-10.5/.75,Bl[zl][wu][0]+=dx[0],Bl[zl][wu][1]+=dx[1];function r$(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===dI)return;e.push(new Lk(dI,ot(Bl,function(a){return{type:"polygon",exterior:a}}),dx))}}var a$={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function n$(r,e){if(r==="china"){var t=a$[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var i$=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function o$(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:i$[0]})}var l$="name",s$=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=mt(),this._mapName=e,this._specialAreas=a,this._geoJSON=f$(t)}return r.prototype.load=function(e,t){t=t||l$;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:u$(n)})}var i=mt(),o=[];return N(a.regions,function(l){var s=l.name;e&&gt(e,s)&&(l=l.cloneShallow(s=e[s])),o.push(l),i.set(s,l)}),{regions:o,boundingRect:a.boundingRect||new kt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?nx(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
88
- `+i.message)}return r$(t,n),N(n,function(i){var o=i.name;n$(t,i),o$(t,i);var l=this._specialAreas&&this._specialAreas[o];l&&i.transformTo(l.left,l.top,l.width,l.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function u$(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function f$(r){return vt(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Xc=mt();const zi={registerMap:function(r,e,t){if(e.svg){var a=new Jq(r,e.svg);Xc.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new s$(r,n,t);Xc.set(r,a)}},getGeoResource:function(r){return Xc.get(r)},getMapForUser:function(r){var e=Xc.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=Xc.get(r);if(a)return a.load(e,t)}};var CT=["rect","circle","line","ellipse","polygon","polyline","path"],c$=mt(CT),h$=mt(CT.concat(["g"])),v$=mt(CT.concat(["g"])),NB=$t();function Bp(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function pI(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var PB=(function(){function r(e){var t=new Ct;this.uid=Sf("ec_map_draw"),this._controller=new Rv(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Ct),t.add(this._svgGroup=new Ct)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",l=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(b){!l&&b.getHostGeoModel()===e&&(l=b.getData())});var s=e.coordinateSystem,u=this._regionsGroup,c=this.group,h=s.getTransformInfo(),d=h.raw,p=h.roam,y=!u.childAt(0)||i;y?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):Jt(c,p,e);var m=l&&l.getVisual("visualMeta")&&l.getVisual("visualMeta").length>0,_={api:a,geo:s,mapOrGeoModel:e,data:l,isVisualEncodedByVisualMap:m,isGeo:o,transformInfoRaw:d};s.resourceType==="geoJSON"?this._buildGeoJSON(_):s.resourceType==="geoSVG"&&this._buildSVG(_),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=mt(),a=mt(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,l=e.data,s=e.geo.projection,u=s&&s.stream;function c(p,y){return y&&(p=y(p)),p&&[p[0]*i.scaleX+i.x,p[1]*i.scaleY+i.y]}function h(p){for(var y=[],m=!u&&s&&s.project,_=0;_<p.length;++_){var b=c(p[_],m);b&&y.push(b)}return y}function d(p){return{shape:{points:h(p)}}}n.removeAll(),N(e.geo.regions,function(p){var y=p.name,m=t.get(y),_=a.get(y)||{},b=_.dataIdx,x=_.regionModel;if(!m){m=t.set(y,new Ct),n.add(m),b=l?l.indexOfName(y):null,x=e.isGeo?o.getRegionModel(y):l?l.getItemModel(b):null;var w=x.get("silent",!0);w!=null&&(m.silent=w),a.set(y,{dataIdx:b,regionModel:x})}var A=[],M=[];N(p.geometries,function(R){if(R.type==="polygon"){var E=[R.exterior].concat(R.interiors||[]);u&&(E=bI(E,u)),N(E,function(P){A.push(new Nr(d(P)))})}else{var O=R.points;u&&(O=bI(O,u,!0)),N(O,function(P){M.push(new zr(d(P)))})}});var D=c(p.getCenter(),s&&s.project);function L(R,E){if(R.length){var O=new Vy({culling:!0,segmentIgnoreThreshold:1,shape:{paths:R}});m.add(O),gI(e,O,b,x),yI(e,O,y,x,o,b,D),E&&(pI(O),N(O.states,pI))}}L(A),L(M,!0)}),t.each(function(p,y){var m=a.get(y),_=m.dataIdx,b=m.regionModel;mI(e,p,y,b,o,_),_I(e,p,y,b,o),SI(e,p,y,b,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=mt(),i=!1;N(this._svgGraphicRecord.named,function(o){var l=o.name,s=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,h=o.el,d=u?u.indexOfName(l):null,p=s.getRegionModel(l);c$.get(c)!=null&&h instanceof $a&&gI(e,h,d,p),h instanceof $a&&(h.culling=!0);var y=p.get("silent",!0);if(y!=null&&(h.silent=y),h.z2EmphasisLift=0,!o.namedFrom&&(v$.get(c)!=null&&yI(e,h,l,p,s,d,null),mI(e,h,l,p,s,d),_I(e,h,l,p,s),h$.get(c)!=null)){var m=SI(e,h,l,p,s);m==="self"&&(i=!0);var _=n.get(l)||n.set(l,[]);_.push(h)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){hs(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=zi.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=zi.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a){var n=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(e.get("roam")||!1);var l=e.mainType;function s(){var u={type:"geoRoam",componentType:l};return u[l+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,TT(o,u.dx,u.dy),a.dispatchAction(rt(s(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,AT(o,u.scale,u.originX,u.originY),a.dispatchAction(rt(s(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,h){return n.containPoint([c,h])&&!im(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=NB(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function gI(r,e,t,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),l=a.getModel(["select","itemStyle"]),s=Bp(n),u=Bp(i),c=Bp(l),h=Bp(o),d=r.data;if(d){var p=d.getItemVisual(t,"style"),y=d.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&p.fill&&(s.fill=p.fill),y&&(s.decal=nf(y,r.api))}e.setStyle(s),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,hs(e)}function yI(r,e,t,a,n,i,o){var l=r.data,s=r.isGeo,u=l&&isNaN(l.get(l.mapDimension("value"),i)),c=l&&l.getItemLayout(i);if(s||u||c&&c.showLabel){var h=s?t:i,d=void 0;(!l||i>=0)&&(d=n);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;xr(e,nr(a),{labelFetcher:d,labelDataIndex:h,defaultText:t},p);var y=e.getTextContent();if(y&&(NB(y).ignore=y.ignore,e.textConfig&&o)){var m=e.getBoundingRect().clone();e.textConfig.layoutRect=m,e.textConfig.position=[(o[0]-m.x)/m.width*100+"%",(o[1]-m.y)/m.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function mI(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):Mt(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function _I(r,e,t,a,n){r.data||_s({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function SI(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Ee(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&$F(e,n,t),o}function bI(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var l=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(s,u){isFinite(s)&&isFinite(u)&&n.push([s,u])},sphere:function(){}});return!t&&l.polygonStart(),N(r,function(s){l.lineStart();for(var u=0;u<s.length;u++)l.point(s[u][0],s[u][1]);l.lineEnd()}),!t&&l.polygonEnd(),a}var d$=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var l=this._mapDraw;l&&o.add(l.group)}else if(t.needsDrawMap){var l=this._mapDraw||new PB(n);o.add(l.group),l.draw(t,a,n,this,i),this._mapDraw=l}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t,a,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,a,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(l,s){if(!isNaN(l)){var u=i.getItemLayout(s);if(!(!u||!u.point)){var c=u.point,h=u.offset,d=new Wn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+h*9,cy:c[1],r:3},silent:!0,z2:8+(h?0:vf+1)});if(!h){var p=t.mainSeries.getData(),y=i.getName(s),m=p.indexOfName(y),_=i.getItemModel(s),b=_.getModel("label"),x=p.getItemGraphicEl(m);xr(d,nr(_),{labelFetcher:{getFormattedLabel:function(w,A){return t.getFormattedLabel(m,A)}},defaultText:y}),d.disableLabelAnimation=!0,b.get("position")||d.setTextConfig({position:"bottom"}),x.onHoverStateChange=function(w){Pg(d,w)}}o.add(d)}}})},e.type="map",e})(fe),p$=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var a=Rf(this,{coordDimensions:["value"],encodeDefaulter:Et(Hw,this)}),n=mt(),i=[],o=0,l=a.count();o<l;o++){var s=a.getName(o);n.set(s,o)}var u=zi.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return N(u.regions,function(c){var h=c.name,d=n.get(h),p=c.properties&&c.properties.echartsStyle,y;d==null?(y={name:h},i.push(y)):y=a.getRawDataItem(d),p&&It(y,p)}),a.appendData(i),a},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData(),o=this.getRawValue(t),l=i.getName(t),s=this.seriesGroup,u=[],c=0;c<s.length;c++){var h=s[c].originalData.indexOfName(l),d=i.mapDimension("value");isNaN(s[c].originalData.get(d,h))||u.push(s[c].name)}return ir("section",{header:u.join(", "),noHeader:!u.length,blocks:[ir("nameValue",{name:l,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",n=Ge(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",a.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})(pe);function g$(r,e){var t={};return N(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,l=1/0,s=-1/0,u=t[i].length,c=0;c<u;c++)l=Math.min(l,t[i][c]),s=Math.max(s,t[i][c]),o+=t[i][c];var h;return e==="min"?h=l:e==="max"?h=s:e==="average"?h=o/u:h=o,u===0?NaN:h})}function y$(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getHostGeoModel(),n=a?"o"+a.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),N(e,function(t,a){for(var n=g$(ot(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function m$(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getMapType();if(!(t.getHostGeoModel()||e[a])){var n={};N(t.seriesGroup,function(o){var l=o.coordinateSystem,s=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(u,c){var h=s.getName(c),d=l.getRegion(h);if(!(!d||isNaN(u))){var p=n[h]||0,y=l.dataToPoint(d.getCenter());n[h]=p+1,s.setItemLayout(c,{point:y,offset:p})}})});var i=t.getData();i.each(function(o){var l=i.getName(o),s=i.getItemLayout(o)||{};s.showLabel=!n[l],i.setItemLayout(o,s)}),e[a]=!0}})}var xI=hr,Ev=(function(r){Z(e,r);function e(t){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new Ci,a._rawTransformable=new Ci,a.name=t,a}return e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new kt(t,a,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,n,i){this._transformTo(t,a,n,i),this._viewRect=new kt(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),l=this._rawTransformable;l.transform=o.calculateTransform(new kt(t,a,n,i));var s=l.parent;l.parent=null,l.decomposeTransform(),l.parent=s,this._updateTransform()},e.prototype.setCenter=function(t,a){t&&(this._center=[ht(t[0],a.getWidth()),ht(t[1],a.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var a=this.zoomLimit;a&&(a.max!=null&&(t=Math.min(a.max,t)),a.min!=null&&(t=Math.max(a.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),a=t.x+t.width/2,n=t.y+t.height/2;return[a,n]},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(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=hr([],i,t),n=hr([],n,t),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),Dy(this.transform||(this.transform=[]),a.transform||na()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],ms(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new Ci;return n.transform=a.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,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?xI(n,t,i):Mr(n,t)},e.prototype.pointToData=function(t){var a=this.invTransform;return a?xI([],t,a):[t[0],t[1]]},e.prototype.convertToPixel=function(t,a,n){var i=wI(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=wI(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e})(Ci);function wI(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var _$={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},zB=["lng","lat"],px=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this,t)||this;i.dimensions=zB,i.type="geo",i._nameCoordMap=mt(),i.map=a;var o=n.projection,l=zi.load(a,n.nameMap,n.nameProperty),s=zi.getGeoResource(a);i.resourceType=s?s.type:null;var u=i.regions=l.regions,c=_$[s.type];i._regionsMap=l.regionsMap,i.regions=l.regions,i.projection=o;var h;if(o)for(var d=0;d<u.length;d++){var p=u[d].getBoundingRect(o);h=h||p.clone(),h.union(p)}else h=l.boundingRect;return i.setBoundingRect(h.x,h.y,h.width,h.height),i.aspectScale=o?1:Rt(n.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),l=this._invertLongitute;o=o.clone(),l&&(o.y=-o.y-o.height);var s=this._rawTransformable;s.transform=o.calculateTransform(new kt(t,a,n,i));var u=s.parent;s.parent=null,s.decomposeTransform(),s.parent=u,l&&(s.scaleY=-s.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(vt(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,a,n)}},e.prototype.pointToData=function(t){var a=this.projection;return a&&(t=a.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,a,n){return r.prototype.dataToPoint.call(this,t,a,n)},e.prototype.convertToPixel=function(t,a,n){var i=TI(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=TI(a);return i===this?i.pointToData(n):null},e})(Ev);ze(px,Ev);function TI(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",je).models[0]||{}).coordinateSystem:null}function AI(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],n=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],l=a[1],s=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var c=function(D,L,R,E){for(var O=R-D,P=E-L,k=0;k<=100;k++){var V=k/100,H=i.project([D+O*V,L+P*V]);Ti(a,a,H),Ai(n,n,H)}};c(o,l,s,l),c(s,l,s,u),c(s,u,o,u),c(o,u,s,l)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var h=this.getBoundingRect(),d=r.get("layoutCenter"),p=r.get("layoutSize"),y=e.getWidth(),m=e.getHeight(),_=h.width/h.height*this.aspectScale,b=!1,x,w;d&&p&&(x=[ht(d[0],y),ht(d[1],m)],w=ht(p,Math.min(y,m)),!isNaN(x[0])&&!isNaN(x[1])&&!isNaN(w)&&(b=!0));var A;if(b)A={},_>1?(A.width=w,A.height=w/_):(A.height=w,A.width=w*_),A.y=x[1]-A.height/2,A.x=x[0]-A.width/2;else{var M=r.getBoxLayoutParams();M.aspect=_,A=Xe(M,{width:y,height:m})}this.setViewRect(A.x,A.y,A.width,A.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function S$(r,e){N(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var b$=(function(){function r(){this.dimensions=zB}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,l){var s=o.get("map"),u=new px(s+l,s,rt({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=AI,u.resize(o,t)}),e.eachSeries(function(o){var l=o.get("coordinateSystem");if(l==="geo"){var s=o.get("geoIndex")||0;o.coordinateSystem=a[s]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var l=o.getMapType();i[l]=i[l]||[],i[l].push(o)}}),N(i,function(o,l){var s=ot(o,function(c){return c.get("nameMap")}),u=new px(l,l,rt({nameMap:Ty(s)},n(o[0])));u.zoomLimit=er.apply(null,ot(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=AI,u.resize(o[0],t),N(o,function(c){c.coordinateSystem=u,S$(u,c)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=mt(),l=0;l<i.length;l++)o.set(i[l].name,i[l]);var s=zi.load(t,a,n);return N(s.regions,function(u){var c=u.name,h=o.get(c),d=u.properties&&u.properties.echartsStyle;h||(h={name:c},i.push(h)),d&&It(h,d)}),i},r})(),kB=new b$,x$=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=zi.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),us(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=kB.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=qa(a.regions||[],function(i,o){var l=o.name;return l&&(i.set(l,new ee(o,t,t.ecModel)),o.selected&&(n[l]=!0)),i},mt()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ee(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var n=this.getRegionModel(t),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(_t(i))return o.status=a,i(o);if(vt(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[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})(Ht);function CI(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function DT(r,e,t,a){var n=r.getZoom(),i=r.getCenter(),o=e.zoom,l=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(l[0]-=e.dx,l[1]-=e.dy,r.setCenter(CI(r,l),a)),o!=null){if(t){var s=t.min||0,u=t.max||1/0;o=Math.max(Math.min(n*o,u),s)/n}r.scaleX*=o,r.scaleY*=o;var c=(e.originX-r.x)*(o-1),h=(e.originY-r.y)*(o-1);r.x-=c,r.y-=h,r.updateTransform(),r.setCenter(CI(r,l),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var w$=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new PB(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype._handleRegionClick=function(t){var a;Kl(t.target,function(n){return(a=Mt(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var l=Mt(o).eventData;if(l)return i._model.isSelected(l.name)?n.enterSelect(o):n.leaveSelect(o),!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})(we);function T$(r,e,t){zi.registerMap(r,e,t)}function BB(r){r.registerCoordinateSystem("geo",kB),r.registerComponentModel(x$),r.registerComponentView(w$),r.registerImpl("registerMap",T$),r.registerImpl("getMap",function(t){return zi.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},l=[];return i.eachComponent({mainType:"geo",query:n},function(s){s[t](n.name);var u=s.coordinateSystem;N(u.regions,function(h){o[h.name]=s.isSelected(h.name)||!1});var c=[];N(o,function(h,d){o[d]&&c.push(d)}),l.push({geoIndex:s.componentIndex,name:c})}),{selected:o,allSelected:l,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType||"series";a.eachComponent({mainType:i,query:t},function(o){var l=o.coordinateSystem;if(l.type==="geo"){var s=DT(l,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(s.center),o.setZoom&&o.setZoom(s.zoom),i==="series"&&N(o.seriesGroup,function(u){u.setCenter(s.center),u.setZoom(s.zoom)})}})})}function A$(r){Gt(BB),r.registerChartView(d$),r.registerSeriesModel(p$),r.registerLayout(m$),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,y$),z5("map",r.registerAction)}function C$(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],a,n;a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var l=n[o];l.hierNode={defaultAncestor:null,ancestor:l,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(l)}}function D$(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){R$(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=E$(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function M$(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function DI(r){return arguments.length?r:N$}function hh(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function L$(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function R$(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function E$(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],l=e,s=n.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,h=l.hierNode.modifier;l=eS(l),i=rS(i),l&&i;){n=eS(n),o=rS(o),n.hierNode.ancestor=r;var d=l.hierNode.prelim+h-i.hierNode.prelim-u+a(l,i);d>0&&(O$(I$(l,r,t),r,d),u+=d,s+=d),h+=l.hierNode.modifier,u+=i.hierNode.modifier,s+=n.hierNode.modifier,c+=o.hierNode.modifier}l&&!eS(n)&&(n.hierNode.thread=l,n.hierNode.modifier+=h-s),i&&!rS(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=r)}return t}function eS(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function rS(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function I$(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function O$(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function N$(r,e){return r.parentNode===e.parentNode?1:2}var P$=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),z$=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new P$},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,l=n[0],s=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(l[0],l[1]);return}var u=a.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,d=ht(a.forkPosition,1),p=[];p[c]=o[c],p[h]=o[h]+(s[h]-o[h])*d,t.moveTo(o[0],o[1]),t.lineTo(p[0],p[1]),t.moveTo(l[0],l[1]),p[c]=l[c],t.lineTo(p[0],p[1]),p[c]=s[c],t.lineTo(p[0],p[1]),t.lineTo(s[0],s[1]);for(var y=1;y<i-1;y++){var m=n[y];t.moveTo(m[0],m[1]),p[c]=m[c],t.lineTo(p[0],p[1])}},e})(Ut),k$=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new Ct,t}return e.prototype.init=function(t,a){this._controller=new Rv(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,a,n){var i=t.getData(),o=t.layoutInfo,l=this._mainGroup,s=t.get("layout");s==="radial"?(l.x=o.x+o.width/2,l.y=o.y+o.height/2):(l.x=o.x,l.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,a,n);var u=this._data;i.diff(u).add(function(c){MI(i,c)&&LI(i,c,null,l,t)}).update(function(c,h){var d=u.getItemGraphicEl(h);if(!MI(i,c)){d&&EI(u,h,d,l,t);return}LI(i,c,d,l,t)}).remove(function(c){var h=u.getItemGraphicEl(c);h&&EI(u,c,h,l,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,h){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:h})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,a){var n=t.getData(),i=[];n.each(function(h){var d=n.getItemLayout(h);d&&!isNaN(d.x)&&!isNaN(d.y)&&i.push([+d.x,+d.y])});var o=[],l=[];zy(i,o,l);var s=this._min,u=this._max;l[0]-o[0]===0&&(o[0]=s?s[0]:o[0]-1,l[0]=u?u[0]:l[0]+1),l[1]-o[1]===0&&(o[1]=s?s[1]:o[1]-1,l[1]=u?u[1]:l[1]+1);var c=t.coordinateSystem=new Ev;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(o[0],o[1],l[0]-o[0],l[1]-o[1]),c.setCenter(t.get("center"),a),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=l},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,l=this._controllerHost,s=this.group;o.setPointerChecker(function(u,c,h){var d=s.getBoundingRect();return d.applyTransform(s.transform),d.contain(c,h)&&!im(u,n,t)}),o.enable(t.get("roam")),l.zoomLimit=t.get("scaleLimit"),l.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){TT(l,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){AT(l,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var a=t.getData(),n=this._getNodeGlobalScale(t);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var a=t.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),l=(o-1)*n+1;return l/i},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})(fe);function MI(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function LI(r,e,t,a,n){var i=!t,o=r.tree.getNodeByDataIndex(e),l=o.getModel(),s=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?s:"#fff",c=r.tree.root,h=o.parentNode===c?o:o.parentNode||o,d=r.getItemGraphicEl(h.dataIndex),p=h.getLayout(),y=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,m=o.getLayout();i?(t=new Tv(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=y.x,t.y=y.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=m.rawX,t.__radialRawY=m.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Jt(t,{x:m.x,y:m.y},n);var _=t.getSymbolPath();if(n.get("layout")==="radial"){var b=c.children[0],x=b.getLayout(),w=b.children.length,A=void 0,M=void 0;if(m.x===x.x&&o.isExpand===!0&&b.children.length){var D={x:(b.children[0].getLayout().x+b.children[w-1].getLayout().x)/2,y:(b.children[0].getLayout().y+b.children[w-1].getLayout().y)/2};A=Math.atan2(D.y-x.y,D.x-x.x),A<0&&(A=Math.PI*2+A),M=D.x<x.x,M&&(A=A-Math.PI)}else A=Math.atan2(m.y-x.y,m.x-x.x),A<0&&(A=Math.PI*2+A),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(M=m.x<x.x,M&&(A=A-Math.PI)):(M=m.x>x.x,M||(A=A-Math.PI));var L=M?"left":"right",R=l.getModel("label"),E=R.get("rotate"),O=E*(Math.PI/180),P=_.getTextContent();P&&(_.setTextConfig({position:R.get("position")||L,rotation:E==null?-A:O,origin:"center"}),P.setStyle("verticalAlign","middle"))}var k=l.get(["emphasis","focus"]),V=k==="relative"?Ju(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;V&&(Mt(t).focus=V),B$(n,o,c,t,y,p,m,a),t.__edge&&(t.onHoverStateChange=function(H){if(H!=="blur"){var U=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);U&&U.hoverState===gv||Pg(t.__edge,H)}})}function B$(r,e,t,a,n,i,o,l){var s=e.getModel(),u=r.get("edgeShape"),c=r.get("layout"),h=r.getOrient(),d=r.get(["lineStyle","curveness"]),p=r.get("edgeForkPosition"),y=s.getModel("lineStyle").getLineStyle(),m=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(m||(m=a.__edge=new pf({shape:gx(c,h,d,n,n)})),Jt(m,{shape:gx(c,h,d,i,o)},r));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var _=e.children,b=[],x=0;x<_.length;x++){var w=_[x].getLayout();b.push([w.x,w.y])}m||(m=a.__edge=new z$({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),Jt(m,{shape:{parentPoint:[o.x,o.y],childPoints:b}},r)}m&&!(u==="polyline"&&!e.isExpand)&&(m.useStyle(St({strokeNoScale:!0,fill:null},y)),br(m,s,"lineStyle"),hs(m),l.add(m))}function RI(r,e,t,a,n){var i=e.tree.root,o=VB(i,r),l=o.source,s=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var c=e.getItemGraphicEl(l.dataIndex),h=c.__edge,d=u.__edge||(l.isExpand===!1||l.children.length===1?h:void 0),p=a.get("edgeShape"),y=a.get("layout"),m=a.get("orient"),_=a.get(["lineStyle","curveness"]);d&&(p==="curve"?Vo(d,{shape:gx(y,m,_,s,s),style:{opacity:0}},a,{cb:function(){t.remove(d)},removeOpt:n}):p==="polyline"&&a.get("layout")==="orthogonal"&&Vo(d,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},a,{cb:function(){t.remove(d)},removeOpt:n}))}}function VB(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,a;a=t.getLayout(),a==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:a}}function EI(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,l=VB(o,i).sourceLayout,s={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};Vo(t,{x:l.x+1,y:l.y+1},n,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:s}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:s}),i.children.forEach(function(u){RI(u,r,a,n,s)}),RI(i,r,a,n,s)}function gx(r,e,t,a,n){var i,o,l,s,u,c,h,d;if(r==="radial"){u=a.rawX,h=a.rawY,c=n.rawX,d=n.rawY;var p=hh(u,h),y=hh(u,h+(d-h)*t),m=hh(c,d+(h-d)*t),_=hh(c,d);return{x1:p.x||0,y1:p.y||0,x2:_.x||0,y2:_.y||0,cpx1:y.x||0,cpy1:y.y||0,cpx2:m.x||0,cpy2:m.y||0}}else u=a.x,h=a.y,c=n.x,d=n.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*t,o=h,l=c+(u-c)*t,s=d),(e==="TB"||e==="BT")&&(i=u,o=h+(d-h)*t,l=c,s=d+(h-d)*t);return{x1:u,y1:h,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:l,cpy2:s}}var Za=$t();function GB(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,HB(e,t,r),N(t,function(a){N(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,Et(V$,r))})}),e.wrapMethod("cloneShallow",Et(H$,r)),N(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,Et(G$,r))}),Ir(t[e.dataType]===e)}function V$(r,e){if(Y$(this)){var t=rt({},Za(this).datas);t[this.dataType]=e,HB(e,t,r)}else MT(e,this.dataType,Za(this).mainData,r);return e}function G$(r,e){return r.struct&&r.struct.update(),e}function H$(r,e){return N(Za(e).datas,function(t,a){t!==e&&MT(t.cloneShallow(),a,e,r)}),e}function F$(r){var e=Za(this).mainData;return r==null||e==null?e:Za(e).datas[r]}function U$(){var r=Za(this).mainData;return r==null?[{data:r}]:ot(Yt(Za(r).datas),function(e){return{type:e,data:Za(r).datas[e]}})}function Y$(r){return Za(r).mainData===r}function HB(r,e,t){Za(r).datas={},N(e,function(a,n){MT(a,n,r,t)})}function MT(r,e,t,a){Za(t).datas[e]=r,Za(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=F$,r.getLinkedDataAll=U$}var j$=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,a){_t(e)&&(a=t,t=e,e=null),e=e||{},vt(e)&&(e={order:e});var n=e.order||"preorder",i=this[e.attr||"children"],o;n==="preorder"&&(o=t.call(a,this));for(var l=0;!o&&l<i.length;l++)i[l].eachNode(e,t,a);n==="postorder"&&t.call(a,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],a=e?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})(),LT=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,a){this.root.eachNode(e,t,a)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,a=0,n=t.length;a<n;a++)t[a].dataIndex=-1;for(var a=0,n=e.count();a<n;a++)t[e.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,a){var n=new r(t),i=[],o=1;l(e);function l(c,h){var d=c.value;o=Math.max(o,it(d)?d.length:1),i.push(c);var p=new j$(Ke(c.name,""),n);h?X$(p,h):n.root=p,n._nodes.push(p);var y=c.children;if(y)for(var m=0;m<y.length;m++)l(y[m],p)}n.root.updateDepthAndHeight(0);var s=Df(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Er(s,t);return u.initData(i),a&&a(u),GB({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r})();function X$(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function rv(r,e,t){if(r&&Bt(e,r.type)>=0){var a=t.getData().tree.root,n=r.targetNode;if(vt(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function FB(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function RT(r,e){var t=FB(r);return Bt(t,e)>=0}function lm(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var W$=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new ee(n,this,this.ecModel),o=LT.createTree(a,this,l);function l(h){h.wrapMethod("getItemModel",function(d,p){var y=o.getNodeByDataIndex(p);return y&&y.children.length&&y.isExpand||(d.parentModel=i),d})}var s=0;o.eachNode("preorder",function(h){h.depth>s&&(s=h.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:s;return o.root.eachNode("preorder",function(h){var d=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=d&&d.collapsed!=null?!d.collapsed:h.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(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,a,n){for(var i=this.getData().tree,o=i.root.children[0],l=i.getNodeByDataIndex(t),s=l.getValue(),u=l.name;l&&l!==o;)u=l.parentNode.name+"."+u,l=l.parentNode;return ir("nameValue",{name:u,value:s,noValue:isNaN(s)||s==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=lm(n,this),a.collapsed=!n.isExpand,a},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})(pe);function Z$(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var l=0;l<o.length;l++)a.push(o[l])}for(;i=n.pop();)e(i,t)}function Wc(r,e){for(var t=[r],a;a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function q$(r,e){r.eachSeriesByType("tree",function(t){$$(t,e)})}function $$(r,e){var t=L$(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=DI(function(w,A){return(w.parentNode===A.parentNode?1:2)/w.depth})):(n=t.width,i=t.height,o=DI());var l=r.getData().tree.root,s=l.children[0];if(s){C$(l),Z$(s,D$,o),l.hierNode.modifier=-s.hierNode.prelim,Wc(s,M$);var u=s,c=s,h=s;Wc(s,function(w){var A=w.getLayout().x;A<u.getLayout().x&&(u=w),A>c.getLayout().x&&(c=w),w.depth>h.depth&&(h=w)});var d=u===c?1:o(u,c)/2,p=d-u.getLayout().x,y=0,m=0,_=0,b=0;if(a==="radial")y=n/(c.getLayout().x+d+p),m=i/(h.depth-1||1),Wc(s,function(w){_=(w.getLayout().x+p)*y,b=(w.depth-1)*m;var A=hh(_,b);w.setLayout({x:A.x,y:A.y,rawX:_,rawY:b},!0)});else{var x=r.getOrient();x==="RL"||x==="LR"?(m=i/(c.getLayout().x+d+p),y=n/(h.depth-1||1),Wc(s,function(w){b=(w.getLayout().x+p)*m,_=x==="LR"?(w.depth-1)*y:n-(w.depth-1)*y,w.setLayout({x:_,y:b},!0)})):(x==="TB"||x==="BT")&&(y=n/(c.getLayout().x+d+p),m=i/(h.depth-1||1),Wc(s,function(w){_=(w.getLayout().x+p)*y,b=x==="TB"?(w.depth-1)*m:i-(w.depth-1)*m,w.setLayout({x:_,y:b},!0)}))}}}function K$(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),l=t.ensureUniqueItemVisual(n.dataIndex,"style");rt(l,o)})})}function Q$(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=DT(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function J$(r){r.registerChartView(k$),r.registerSeriesModel(W$),r.registerLayout(q$),r.registerVisual(K$),Q$(r)}var II=["treemapZoomToNode","treemapRender","treemapMove"];function tK(r){for(var e=0;e<II.length;e++)r.registerAction({type:II[e],update:"updateView"},Pe);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,a){a.eachComponent({mainType:"series",subType:"treemap",query:t},n);function n(i,o){var l=["treemapZoomToNode","treemapRootToNode"],s=rv(t,l,i);if(s){var u=i.getViewRoot();u&&(t.direction=RT(u,s.node)?"rollUp":"drillDown"),i.resetViewRoot(s.node)}}})}function UB(r){var e=r.getData(),t=e.tree,a={};t.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Ub(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var eK=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};YB(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},l=new ee({itemStyle:o},this,a);i=t.levels=rK(i,a);var s=ot(i||[],function(h){return new ee(h,l,a)},this),u=LT.createTree(n,this,c);function c(h){h.wrapMethod("getItemModel",function(d,p){var y=u.getNodeByDataIndex(p),m=y?s[y.depth]:null;return d.parentModel=m||l,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),l=i.getName(t);return ir("nameValue",{name:l,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=lm(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},rt(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=mt(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.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 a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){UB(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:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(pe);function YB(r){var e=0;N(r.children,function(a){YB(a);var n=a.value;it(n)&&(n=n[0]),e+=n});var t=r.value;it(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),it(r.value)?r.value[0]=t:r.value=t}function rK(r,e){var t=de(e.get("color")),a=de(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;N(r,function(l){var s=new ee(l),u=s.get("color"),c=s.get("decal");(s.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(s.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}var aK=8,OI=8,aS=5,nK=(function(){function r(e){this.group=new Ct,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var l=i.getModel("itemStyle"),s=i.getModel("emphasis"),u=l.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,l,s,u,c,n),Wy(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=Ke(n.getModel().get("name"),""),o=a.getTextRect(i),l=Math.max(o.width+aK*2,t.emptyItemWidth);t.totalWidth+=l+OI,t.renderList.push({node:n,text:i,width:l})}},r.prototype._renderContent=function(e,t,a,n,i,o,l){for(var s=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),h=$U(t.pos,t.box),d=t.totalWidth,p=t.renderList,y=n.getModel("itemStyle").getItemStyle(),m=p.length-1;m>=0;m--){var _=p[m],b=_.node,x=_.width,w=_.text;d>h.width&&(d-=x-u,x=u,w=null);var A=new Nr({shape:{points:iK(s,0,x,c,m===p.length-1,m===0)},style:St(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Xt({style:_e(i,{text:w})}),textConfig:{position:"inside"},z2:vf*1e4,onclick:Et(l,b)});A.disableLabelAnimation=!0,A.getTextContent().ensureState("emphasis").style=_e(o,{text:w}),A.ensureState("emphasis").style=y,Ee(A,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(A),oK(A,e,b),s+=x+OI}},r.prototype.remove=function(){this.group.removeAll()},r})();function iK(r,e,t,a,n,i){var o=[[n?r:r-aS,e],[r+t,e],[r+t,e+a],[n?r:r-aS,e+a]];return!i&&o.splice(2,0,[r+t+aS,e+a/2]),!n&&o.push([r,e+a/2]),o}function oK(r,e,t){Mt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&lm(t,e)}}var lK=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r})();function sK(){return new lK}var yx=Ct,NI=Wt,PI=3,zI="label",kI="upperLabel",uK=vf*10,fK=vf*2,cK=vf*3,Vl=cs([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),BI=function(r){var e=Vl(r);return e.stroke=e.fill=e.lineWidth=null,e},iy=$t(),hK=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Zc(),t}return e.prototype.render=function(t,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Bt(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=a;var l=["treemapZoomToNode","treemapRootToNode"],s=rv(i,l,t),u=i&&i.type,c=t.layoutInfo,h=!this._oldTree,d=this._storage,p=u==="treemapRootToNode"&&s&&d?{rootNodeGroup:d.nodeGroup[s.node.getRawIndex()],direction:i.direction}:null,y=this._giveContainerGroup(c),m=t.get("animation"),_=this._doRender(y,t,p);m&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(y,_,t,p):_.renderFinally(),this._resetController(n),this._renderBreadcrumb(t,n,s)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new yx,this._initEvents(a),this.group.add(a)),a.x=t.x,a.y=t.y,a},e.prototype._doRender=function(t,a,n){var i=a.getData().tree,o=this._oldTree,l=Zc(),s=Zc(),u=this._storage,c=[];function h(x,w,A,M){return vK(a,s,u,n,l,c,x,w,A,M)}m(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var d=_(u);if(this._oldTree=i,this._storage=s,this._controllerHost){var p=this.seriesModel.layoutInfo,y=i.root.getLayout();y.width===p.width&&y.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:l,willDeleteEls:d,renderFinally:b};function m(x,w,A,M,D){M?(w=x,N(x,function(E,O){!E.isRemoved()&&R(O,O)})):new Oi(w,x,L,L).add(R).update(R).remove(Et(R,null)).execute();function L(E){return E.getId()}function R(E,O){var P=E!=null?x[E]:null,k=O!=null?w[O]:null,V=h(P,k,A,D);V&&m(P&&P.viewChildren||[],k&&k.viewChildren||[],V,M,D+1)}}function _(x){var w=Zc();return x&&N(x,function(A,M){var D=w[M];N(A,function(L){L&&(D.push(L),iy(L).willDelete=!0)})}),w}function b(){N(d,function(x){N(x,function(w){w.parent&&w.parent.remove(w)})}),N(c,function(x){x.invisible=!0,x.dirty()})}},e.prototype._doAnimation=function(t,a,n,i){var o=n.get("animationDurationUpdate"),l=n.get("animationEasing"),s=(_t(o)?0:o)||0,u=(_t(l)?null:l)||"cubicOut",c=sK();N(a.willDeleteEls,function(h,d){N(h,function(p,y){if(!p.invisible){var m=p.parent,_,b=iy(m);if(i&&i.direction==="drillDown")_=m===i.rootNodeGroup?{shape:{x:0,y:0,width:b.nodeWidth,height:b.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var x=0,w=0;b.willDelete||(x=b.nodeWidth/2,w=b.nodeHeight/2),_=d==="nodeGroup"?{x,y:w,style:{opacity:0}}:{shape:{x,y:w,width:0,height:0},style:{opacity:0}}}_&&c.add(p,_,s,0,u)}})}),N(this._storage,function(h,d){N(h,function(p,y){var m=a.lastsForAnimation[d][y],_={};m&&(p instanceof Ct?m.oldX!=null&&(_.x=p.x,_.y=p.y,p.x=m.oldX,p.y=m.oldY):(m.oldShape&&(_.shape=rt({},p.shape),p.setShape(m.oldShape)),m.fadein?(p.setStyle("opacity",0),_.style={opacity:1}):p.style.opacity!==1&&(_.style={opacity:1})),c.add(p,_,s,0,u))})},this),this._state="animating",c.finished(dt(function(){this._state="ready",a.renderFinally()},this)).start()},e.prototype._resetController=function(t){var a=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),a||(a=this._controller=new Rv(t.getZr()),a.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),a.on("pan",dt(this._onPan,this)),a.on("zoom",dt(this._onZoom,this)));var i=new kt(0,0,t.getWidth(),t.getHeight());a.setPointerChecker(function(o,l,s){return i.contain(l,s)})},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>PI||Math.abs(t.dy)>PI)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.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 a=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var l=o.getLayout();if(!l)return;var s=new kt(l.x,l.y,l.width,l.height),u=null,c=this._controllerHost;u=c.zoomLimit;var h=c.zoom=c.zoom||1;if(h*=i,u){var d=u.min||0,p=u.max||1/0;h=Math.max(Math.min(p,h),d)}var y=h/c.zoom;c.zoom=h;var m=this.seriesModel.layoutInfo;a-=m.x,n-=m.y;var _=na();Sn(_,_,[-a,-n]),My(_,_,[y,y]),Sn(_,_,[a,n]),s.applyTransform(_),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var l=o.node;if(l.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var s=l.hostTree.data.getItemModel(l.dataIndex),u=s.get("link",!0),c=s.get("target",!0)||"blank";u&&Hg(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new nK(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(RT(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Zc(),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,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var l=this._storage.background[o.getRawIndex()];if(l){var s=l.transformCoordToLocal(t,a),u=l.shape;if(u.x<=s[0]&&s[0]<=u.x+u.width&&u.y<=s[1]&&s[1]<=u.y+u.height)n={node:o,offsetX:s[0],offsetY:s[1]};else return!1}},this),n},e.type="treemap",e})(fe);function Zc(){return{nodeGroup:[],background:[],content:[]}}function vK(r,e,t,a,n,i,o,l,s,u){if(!o)return;var c=o.getLayout(),h=r.getData(),d=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var p=c.width,y=c.height,m=c.borderWidth,_=c.invisible,b=o.getRawIndex(),x=l&&l.getRawIndex(),w=o.viewChildren,A=c.upperHeight,M=w&&w.length,D=d.getModel("itemStyle"),L=d.getModel(["emphasis","itemStyle"]),R=d.getModel(["blur","itemStyle"]),E=d.getModel(["select","itemStyle"]),O=D.get("borderRadius")||0,P=ct("nodeGroup",yx);if(!P)return;if(s.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),iy(P).nodeWidth=p,iy(P).nodeHeight=y,c.isAboveViewRoot)return P;var k=ct("background",NI,u,fK);k&&tt(P,k,M&&c.upperLabelHeight);var V=d.getModel("emphasis"),H=V.get("focus"),U=V.get("blurScope"),z=V.get("disabled"),Y=H==="ancestor"?o.getAncestorsIndices():H==="descendant"?o.getDescendantIndices():H;if(M)Uh(P)&&ql(P,!1),k&&(ql(k,!z),h.setItemGraphicEl(o.dataIndex,k),Pb(k,Y,U));else{var j=ct("content",NI,u,cK);j&&F(P,j),k.disableMorphing=!0,k&&Uh(k)&&ql(k,!1),ql(P,!z),h.setItemGraphicEl(o.dataIndex,P);var $=d.getShallow("cursor");$&&j.attr("cursor",$),Pb(P,Y,U)}return P;function tt(wt,pt,Ot){var yt=Mt(pt);if(yt.dataIndex=o.dataIndex,yt.seriesIndex=r.seriesIndex,pt.setShape({x:0,y:0,width:p,height:y,r:O}),_)W(pt);else{pt.invisible=!1;var Dt=o.getVisual("style"),ce=Dt.stroke,Zt=BI(D);Zt.fill=ce;var ue=Vl(L);ue.fill=L.get("borderColor");var ye=Vl(R);ye.fill=R.get("borderColor");var He=Vl(E);if(He.fill=E.get("borderColor"),Ot){var wr=p-2*m;at(pt,ce,Dt.opacity,{x:m,y:0,width:wr,height:A})}else pt.removeTextContent();pt.setStyle(Zt),pt.ensureState("emphasis").style=ue,pt.ensureState("blur").style=ye,pt.ensureState("select").style=He,hs(pt)}wt.add(pt)}function F(wt,pt){var Ot=Mt(pt);Ot.dataIndex=o.dataIndex,Ot.seriesIndex=r.seriesIndex;var yt=Math.max(p-2*m,0),Dt=Math.max(y-2*m,0);if(pt.culling=!0,pt.setShape({x:m,y:m,width:yt,height:Dt,r:O}),_)W(pt);else{pt.invisible=!1;var ce=o.getVisual("style"),Zt=ce.fill,ue=BI(D);ue.fill=Zt,ue.decal=ce.decal;var ye=Vl(L),He=Vl(R),wr=Vl(E);at(pt,Zt,ce.opacity,null),pt.setStyle(ue),pt.ensureState("emphasis").style=ye,pt.ensureState("blur").style=He,pt.ensureState("select").style=wr,hs(pt)}wt.add(pt)}function W(wt){!wt.invisible&&i.push(wt)}function at(wt,pt,Ot,yt){var Dt=d.getModel(yt?kI:zI),ce=Ke(d.get("name"),null),Zt=Dt.getShallow("show");xr(wt,nr(d,yt?kI:zI),{defaultText:Zt?ce:null,inheritColor:pt,defaultOpacity:Ot,labelFetcher:r,labelDataIndex:o.dataIndex});var ue=wt.getTextContent();if(ue){var ye=ue.style,He=Cy(ye.padding||0);yt&&(wt.setTextConfig({layoutRect:yt}),ue.disableLabelLayout=!0),ue.beforeUpdate=function(){var lr=Math.max((yt?yt.width:wt.shape.width)-He[1]-He[3],0),rn=Math.max((yt?yt.height:wt.shape.height)-He[0]-He[2],0);(ye.width!==lr||ye.height!==rn)&&ue.setStyle({width:lr,height:rn})},ye.truncateMinChar=2,ye.lineOverflow="truncate",lt(ye,yt,c);var wr=ue.getState("emphasis");lt(wr?wr.style:null,yt,c)}}function lt(wt,pt,Ot){var yt=wt?wt.text:null;if(!pt&&Ot.isLeafRoot&&yt!=null){var Dt=r.get("drillDownIcon",!0);wt.text=Dt?Dt+" "+yt:yt}}function ct(wt,pt,Ot,yt){var Dt=x!=null&&t[wt][x],ce=n[wt];return Dt?(t[wt][x]=null,bt(ce,Dt)):_||(Dt=new pt,Dt instanceof $a&&(Dt.z2=dK(Ot,yt)),Pt(ce,Dt)),e[wt][b]=Dt}function bt(wt,pt){var Ot=wt[b]={};pt instanceof yx?(Ot.oldX=pt.x,Ot.oldY=pt.y):Ot.oldShape=rt({},pt.shape)}function Pt(wt,pt){var Ot=wt[b]={},yt=o.parentNode,Dt=pt instanceof Ct;if(yt&&(!a||a.direction==="drillDown")){var ce=0,Zt=0,ue=n.background[yt.getRawIndex()];!a&&ue&&ue.oldShape&&(ce=ue.oldShape.width,Zt=ue.oldShape.height),Dt?(Ot.oldX=0,Ot.oldY=Zt):Ot.oldShape={x:ce,y:Zt,width:0,height:0}}Ot.fadein=!Dt}}function dK(r,e){return r*uK+e}var av=N,pK=xt,oy=-1,ar=(function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=Tt(e);this.type=a,this.mappingMethod=t,this._normalizeData=mK[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(nS(n),gK(n)):t==="category"?n.categories?yK(n):nS(n,!0):(Ir(t!=="linear"||n.dataExtent),nS(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return dt(this._normalizeData,this)},r.listVisualTypes=function(){return Yt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){xt(e)?N(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=it(e)?[]:xt(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,l){var s=t.call(a,o,l);n?i=s:i[l]=s}),i},r.retrieveVisuals=function(e){var t={},a;return e&&av(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(it(e))e=e.slice();else if(pK(e)){var t=[];av(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,l=t.length;o<l;o++){var s=t[o].value;if(s!=null){if(s===e||vt(s)&&s===e+"")return o;a&&d(s,o)}}for(var o=0,l=t.length;o<l;o++){var u=t[o],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(Gp(h[1],e,c[1]))return o}else if(c[1]===1/0){if(Gp(h[0],c[0],e))return o}else if(Gp(h[0],c[0],e)&&Gp(h[1],e,c[1]))return o;a&&d(c[0],o),a&&d(c[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function d(p,y){var m=Math.abs(p-e);m<i&&(i=m,n=y)}},r.visualHandlers={color:{applyVisual:qc("color"),getColorMapper:function(){var e=this.option;return dt(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),vh.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=bh(t,e.parsedVisual,n),i?n:yn(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return yn(bh(e,this.option.parsedVisual),"rgba")},category:vh,piecewise:function(e,t){var a=_x.call(this,t);return a==null&&(a=yn(bh(e,this.option.parsedVisual),"rgba")),a},fixed:Gl}},colorHue:Vp(function(e,t){return Xu(e,t)}),colorSaturation:Vp(function(e,t){return Xu(e,null,t)}),colorLightness:Vp(function(e,t){return Xu(e,null,null,t)}),colorAlpha:Vp(function(e,t){return Bh(e,t)}),decal:{applyVisual:qc("decal"),_normalizedToVisual:{linear:null,category:vh,piecewise:null,fixed:null}},opacity:{applyVisual:qc("opacity"),_normalizedToVisual:mx([0,1])},liftZ:{applyVisual:qc("liftZ"),_normalizedToVisual:{linear:Gl,category:Gl,piecewise:Gl,fixed:Gl}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:VI,category:vh,piecewise:function(e,t){var a=_x.call(this,t);return a==null&&(a=VI.call(this,e)),a},fixed:Gl}},symbolSize:{applyVisual:qc("symbolSize"),_normalizedToVisual:mx([0,1])}},r})();function gK(r){var e=r.pieceList;r.hasSpecialVisual=!1,N(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function yK(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(av(e,function(o,l){t[o]=l}),!it(a)){var n=[];xt(a)?av(a,function(o,l){var s=t[l];n[s??oy]=o}):n[oy]=a,a=jB(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function nS(r,e){var t=r.visual,a=[];xt(t)?av(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),jB(r,a)}function Vp(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:mx([0,1])}}function VI(r){var e=this.option.visual;return e[Math.round(oe(r,[0,1],[0,e.length-1],!0))]||{}}function qc(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function vh(r){var e=this.option.visual;return e[this.option.loop&&r!==oy?r%e.length:r]}function Gl(){return this.option.visual[0]}function mx(r){return{linear:function(e){return oe(e,r,this.option.visual,!0)},category:vh,piecewise:function(e,t){var a=_x.call(this,t);return a==null&&(a=oe(e,r,this.option.visual,!0)),a},fixed:Gl}}function _x(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=ar.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function jB(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=ot(e,function(t){var a=Fr(t);return a||[0,0,0,1]})),e}var mK={linear:function(r){return oe(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=ar.findPieceIndex(r,e,!0);if(t!=null)return oe(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??oy},fixed:Pe};function Gp(r,e,t){return r?e<=t:e<t}var _K="itemStyle",XB=$t();const SK={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||WB(t,{},r.getViewRoot().getAncestors(),r)}};function WB(r,e,t,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var l=n.getModel(_K),s=bK(l,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=l.get("borderColor"),h=l.get("borderColorSaturation"),d;h!=null&&(d=GI(s),c=xK(h,d)),u.stroke=c;var p=r.viewChildren;if(!p||!p.length)d=GI(s),u.fill=d;else{var y=wK(r,n,i,l,s,p);N(p,function(m,_){if(m.depth>=t.length||m===t[m.depth]){var b=TK(n,s,m,_,y,a);WB(m,b,t,a)}})}}}function bK(r,e,t){var a=rt({},e),n=t.designatedVisualItemStyle;return N(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function GI(r){var e=iS(r,"color");if(e){var t=iS(r,"colorAlpha"),a=iS(r,"colorSaturation");return a&&(e=Xu(e,null,null,a)),t&&(e=Bh(e,t)),e}}function xK(r,e){return e!=null?Xu(e,null,null,r):null}function iS(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function wK(r,e,t,a,n,i){if(!(!i||!i.length)){var o=oS(e,"color")||n.color!=null&&n.color!=="none"&&(oS(e,"colorAlpha")||oS(e,"colorSaturation"));if(o){var l=e.get("visualMin"),s=e.get("visualMax"),u=t.dataExtent.slice();l!=null&&l<u[0]&&(u[0]=l),s!=null&&s>u[1]&&(u[1]=s);var c=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(c==="index"||c==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var d=new ar(h);return XB(d).drColorMappingBy=c,d}}}function oS(r,e){var t=r.get(e);return it(t)&&t.length?{name:e,range:t}:null}function TK(r,e,t,a,n,i){var o=rt({},e);if(n){var l=n.type,s=l==="color"&&XB(n).drColorMappingBy,u=s==="index"?a:s==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[l]=n.mapValueToVisual(u)}return o}var nv=Math.max,ly=Math.min,HI=er,ET=N,ZB=["itemStyle","borderWidth"],AK=["itemStyle","gapWidth"],CK=["upperLabel","show"],DK=["upperLabel","height"];const MK={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,l=Xe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),s=o.size||[],u=ht(HI(l.width,s[0]),n),c=ht(HI(l.height,s[1]),i),h=a&&a.type,d=["treemapZoomToNode","treemapRootToNode"],p=rv(a,d,r),y=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,m=r.getViewRoot(),_=FB(m);if(h!=="treemapMove"){var b=h==="treemapZoomToNode"?NK(r,p,m,u,c):y?[y.width,y.height]:[u,c],x=o.sort;x&&x!=="asc"&&x!=="desc"&&(x="desc");var w={squareRatio:o.squareRatio,sort:x,leafDepth:o.leafDepth};m.hostTree.clearLayouts();var A={x:0,y:0,width:b[0],height:b[1],area:b[0]*b[1]};m.setLayout(A),qB(m,w,!1,0),A=m.getLayout(),ET(_,function(D,L){var R=(_[L+1]||m).getValue();D.setLayout(rt({dataExtent:[R,R],borderWidth:0,upperHeight:0},A))})}var M=r.getData().tree.root;M.setLayout(PK(l,y,p),!0),r.setLayoutInfo(l),$B(M,new kt(-l.x,-l.y,n,i),_,m,0)}};function qB(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var l=r.getModel(),s=l.get(ZB),u=l.get(AK)/2,c=KB(l),h=Math.max(s,c),d=s-u,p=h-u;r.setLayout({borderWidth:s,upperHeight:h,upperLabelHeight:c},!0),n=nv(n-2*d,0),i=nv(i-d-p,0);var y=n*i,m=LK(r,l,y,e,t,a);if(m.length){var _={x:d,y:p,width:n,height:i},b=ly(n,i),x=1/0,w=[];w.area=0;for(var A=0,M=m.length;A<M;){var D=m[A];w.push(D),w.area+=D.getLayout().area;var L=OK(w,b,e.squareRatio);L<=x?(A++,x=L):(w.area-=w.pop().getLayout().area,FI(w,b,_,u,!1),b=ly(_.width,_.height),w.length=w.area=0,x=1/0)}if(w.length&&FI(w,b,_,u,!0),!t){var R=l.get("childrenVisibleMin");R!=null&&y<R&&(t=!0)}for(var A=0,M=m.length;A<M;A++)qB(m[A],e,t,a+1)}}}function LK(r,e,t,a,n,i){var o=r.children||[],l=a.sort;l!=="asc"&&l!=="desc"&&(l=null);var s=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!s)return r.viewChildren=[];o=te(o,function(p){return!p.isRemoved()}),EK(o,l);var u=IK(e,o,l);if(u.sum===0)return r.viewChildren=[];if(u.sum=RK(e,t,u.sum,l,o),u.sum===0)return r.viewChildren=[];for(var c=0,h=o.length;c<h;c++){var d=o[c].getValue()/u.sum*t;o[c].setLayout({area:d})}return s&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function RK(r,e,t,a,n){if(!a)return t;for(var i=r.get("visibleMin"),o=n.length,l=o,s=o-1;s>=0;s--){var u=n[a==="asc"?o-s-1:s].getValue();u/t*e<i&&(l=s,t-=u)}return a==="asc"?n.splice(0,o-l):n.splice(l,o-l),t}function EK(r,e){return e&&r.sort(function(t,a){var n=e==="asc"?t.getValue()-a.getValue():a.getValue()-t.getValue();return n===0?e==="asc"?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:n}),r}function IK(r,e,t){for(var a=0,n=0,i=e.length;n<i;n++)a+=e[n].getValue();var o=r.get("visualDimension"),l;return!e||!e.length?l=[NaN,NaN]:o==="value"&&t?(l=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&l.reverse()):(l=[1/0,-1/0],ET(e,function(s){var u=s.getValue(o);u<l[0]&&(l[0]=u),u>l[1]&&(l[1]=u)})),{sum:a,dataExtent:l}}function OK(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,l=r.length;i<l;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var s=r.area*r.area,u=e*e*t;return s?nv(u*a/s,s/(u*n)):1/0}function FI(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,l=["x","y"],s=["width","height"],u=t[l[i]],c=e?r.area/e:0;(n||c>t[s[o]])&&(c=t[s[o]]);for(var h=0,d=r.length;h<d;h++){var p=r[h],y={},m=c?p.getLayout().area/c:0,_=y[s[o]]=nv(c-2*a,0),b=t[l[i]]+t[s[i]]-u,x=h===d-1||b<m?b:m,w=y[s[i]]=nv(x-2*a,0);y[l[o]]=t[l[o]]+ly(a,_/2),y[l[i]]=u+ly(a,w/2),u+=x,p.setLayout(y,!0)}t[l[o]]+=c,t[s[o]]-=c}function NK(r,e,t,a,n){var i=(e||{}).node,o=[a,n];if(!i||i===t)return o;for(var l,s=a*n,u=s*r.option.zoomToNodeRatio;l=i.parentNode;){for(var c=0,h=l.children,d=0,p=h.length;d<p;d++)c+=h[d].getValue();var y=i.getValue();if(y===0)return o;u*=c/y;var m=l.getModel(),_=m.get(ZB),b=Math.max(_,KB(m));u+=4*_*_+(3*_+b)*Math.pow(u,.5),u>Cb&&(u=Cb),i=l}u<s&&(u=s);var x=Math.pow(u/s,.5);return[a*x,n*x]}function PK(r,e,t){if(e)return{x:e.x,y:e.y};var a={x:0,y:0};if(!t)return a;var n=t.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],l=n;l;){var s=l.getLayout();o[0]+=s.x,o[1]+=s.y,l=l.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function $B(r,e,t,a,n){var i=r.getLayout(),o=t[n],l=o&&o===r;if(!(o&&!l||n===t.length&&r!==a)){r.setLayout({isInView:!0,invisible:!l&&!e.intersect(i),isAboveViewRoot:l},!0);var s=new kt(e.x-i.x,e.y-i.y,e.width,e.height);ET(r.viewChildren||[],function(u){$B(u,s,t,a,n+1)})}}function KB(r){return r.get(CK)?r.get(DK):0}function zK(r){r.registerSeriesModel(eK),r.registerChartView(hK),r.registerVisual(SK),r.registerLayout(MK),tK(r)}function kK(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(l){var s=i.getItemModel(l),u=s.getShallow("category");if(u!=null){Qt(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function BK(r){var e={};r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var l=a.getName(o);i["ec-"+l]=o;var s=a.getItemModel(o),u=s.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(l,e)),a.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++){var d=s.getShallow(c[h],!0);d!=null&&a.setItemVisual(o,c[h],d)}}),a.count()&&n.each(function(o){var l=n.getItemModel(o),s=l.getShallow("category");if(s!=null){vt(s)&&(s=i["ec-"+s]);var u=a.getItemVisual(s,"style"),c=n.ensureUniqueItemVisual(o,"style");rt(c,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],d=0;d<h.length;d++)n.setItemVisual(o,h[d],a.getItemVisual(s,h[d]))}})})}function Hp(r){return r instanceof Array||(r=[r,r]),r}function VK(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=Hp(e.get("edgeSymbol")),i=Hp(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var l=a.getItemModel(o),s=t.getEdgeByIndex(o),u=Hp(l.getShallow("symbol",!0)),c=Hp(l.getShallow("symbolSize",!0)),h=l.getModel("lineStyle").getLineStyle(),d=a.ensureUniqueItemVisual(o,"style");switch(rt(d,h),d.stroke){case"source":{var p=s.node1.getVisual("style");d.stroke=p&&p.fill;break}case"target":{var p=s.node2.getVisual("style");d.stroke=p&&p.fill;break}}u[0]&&s.setVisual("fromSymbol",u[0]),u[1]&&s.setVisual("toSymbol",u[1]),c[0]&&s.setVisual("fromSymbolSize",c[0]),c[1]&&s.setVisual("toSymbolSize",c[1])})})}var Sx="-->",sm=function(r){return r.get("autoCurveness")||null},QB=function(r,e){var t=sm(r),a=20,n=[];if(Qt(t))a=t;else if(it(t)){r.__curvenessList=t;return}e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},iv=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(Sx)},JB=function(r){var e=r.split(Sx);return[e[0],e[2],e[1]].join(Sx)},GK=function(r,e){var t=iv(r.node1,r.node2,e);return e.__edgeMap[t]},HK=function(r,e){var t=bx(iv(r.node1,r.node2,e),e),a=bx(iv(r.node2,r.node1,e),e);return t+a},bx=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function FK(r){sm(r)&&(r.__curvenessList=[],r.__edgeMap={},QB(r))}function UK(r,e,t,a){if(sm(t)){var n=iv(r,e,t),i=t.__edgeMap,o=i[JB(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function IT(r,e,t,a){var n=sm(e),i=it(n);if(!n)return null;var o=GK(r,e);if(!o)return null;for(var l=-1,s=0;s<o.length;s++)if(o[s]===t){l=s;break}var u=HK(r,e);QB(e,u),r.lineStyle=r.lineStyle||{};var c=iv(r.node1,r.node2,e),h=e.__curvenessList,d=i||u%2?0:1;if(o.isForward)return h[d+l];var p=JB(c),y=bx(p,e),m=h[l+y+d];return a?i?n&&n[0]===0?(y+d)%2?m:-m:((y%2?0:1)+d)%2?m:-m:(y+d)%2?m:-m:h[l+y+d]}function t4(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),OT(t,r)}}function OT(r,e){r.eachEdge(function(t,a){var n=pn(t.getModel().get(["lineStyle","curveness"]),-IT(t,e,a,!0),0),i=Hn(t.node1.getLayout()),o=Hn(t.node2.getLayout()),l=[i,o];+n&&l.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(l)})}function YK(r,e){r.eachSeriesByType("graph",function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];N(n.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var l=0;l<i.count();l++){for(var s=[],u=!1,c=0;c<o.length;c++){var h=i.get(o[c],l);isNaN(h)||(u=!0),s.push(h)}u?i.setItemLayout(l,n.dataToPoint(s)):i.setItemLayout(l,[NaN,NaN])}OT(i.graph,t)}else(!a||a==="none")&&t4(t)})}function dh(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,a=e.scaleX,n=e.getZoom(),i=(n-1)*t+1;return i/a}function ph(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var UI=Math.PI,lS=[];function NT(r,e,t,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),l=o.graph,s=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,h=o.count();if(o.setLayout({cx:s,cy:u}),!!h){if(t){var d=n.pointToData(a),p=d[0],y=d[1],m=[p-s,y-u];ys(m,m),mh(m,m,c),t.setLayout([s+m[0],u+m[1]],!0);var _=r.get(["circular","rotateLabel"]);e4(t,_,s,u)}jK[e](r,l,o,c,s,u,h),l.eachEdge(function(b,x){var w=pn(b.getModel().get(["lineStyle","curveness"]),IT(b,r,x),0),A=Hn(b.node1.getLayout()),M=Hn(b.node2.getLayout()),D,L=(A[0]+M[0])/2,R=(A[1]+M[1])/2;+w&&(w*=3,D=[s*w+L*(1-w),u*w+R*(1-w)]),b.setLayout([A,M,D])})}}}var jK={value:function(r,e,t,a,n,i,o){var l=0,s=t.getSum("value"),u=Math.PI*2/(s||o);e.eachNode(function(c){var h=c.getValue("value"),d=u*(s?h:1)/2;l+=d,c.setLayout([a*Math.cos(l)+n,a*Math.sin(l)+i]),l+=d})},symbolSize:function(r,e,t,a,n,i,o){var l=0;lS.length=o;var s=dh(r);e.eachNode(function(h){var d=ph(h);isNaN(d)&&(d=2),d<0&&(d=0),d*=s;var p=Math.asin(d/2/a);isNaN(p)&&(p=UI/2),lS[h.dataIndex]=p,l+=p*2});var u=(2*UI-l)/o/2,c=0;e.eachNode(function(h){var d=u+lS[h.dataIndex];c+=d,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=d})}};function e4(r,e,t,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,l=n.getSymbolPath();if(e){var s=r.getLayout(),u=Math.atan2(s[1]-a,s[0]-t);u<0&&(u=Math.PI*2+u);var c=s[0]<t;c&&(u=u-Math.PI);var h=c?"left":"right";l.setTextConfig({rotation:-u,position:h,origin:"center"});var d=l.ensureState("emphasis");rt(d.textConfig||(d.textConfig={}),{position:h})}else l.setTextConfig({rotation:o*=Math.PI/180})}}function XK(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&NT(e,"symbolSize")})}var Tu=Tg;function WK(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,l=i.height,s=[i.x+o/2,i.y+l/2],u=t.gravity==null?.1:t.gravity,c=0;c<a.length;c++){var h=a[c];h.p||(h.p=Uo(o*(Math.random()-.5)+s[0],l*(Math.random()-.5)+s[1])),h.pp=Hn(h.p),h.edges=null}var d=t.friction==null?.6:t.friction,p=d,y,m;return{warmUp:function(){p=d*.8},setFixed:function(_){a[_].fixed=!0},setUnfixed:function(_){a[_].fixed=!1},beforeStep:function(_){y=_},afterStep:function(_){m=_},step:function(_){y&&y(a,n);for(var b=[],x=a.length,w=0;w<n.length;w++){var A=n[w];if(!A.ignoreForceLayout){var M=A.n1,D=A.n2;wo(b,D.p,M.p);var L=Ph(b)-A.d,R=D.w/(M.w+D.w);isNaN(R)&&(R=0),ys(b,b),!M.fixed&&Tu(M.p,M.p,b,R*L*p),!D.fixed&&Tu(D.p,D.p,b,-(1-R)*L*p)}}for(var w=0;w<x;w++){var E=a[w];E.fixed||(wo(b,s,E.p),Tu(E.p,E.p,b,u*p))}for(var w=0;w<x;w++)for(var M=a[w],O=w+1;O<x;O++){var D=a[O];wo(b,D.p,M.p);var L=Ph(b);L===0&&(sP(b,Math.random()-.5,Math.random()-.5),L=1);var P=(M.rep+D.rep)/L/L;!M.fixed&&Tu(M.pp,M.pp,b,P),!D.fixed&&Tu(D.pp,D.pp,b,-P)}for(var k=[],w=0;w<x;w++){var E=a[w];E.fixed||(wo(k,E.p,E.pp),Tu(E.p,E.p,k,p),Mr(E.pp,E.p))}p=p*.992;var V=p<.01;m&&m(a,n,V),_&&_(V)}}}function ZK(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,l=e.getModel("force"),s=l.get("initLayout");e.preservedPoints?i.each(function(w){var A=i.getId(w);i.setItemLayout(w,a[A]||[NaN,NaN])}):!s||s==="none"?t4(e):s==="circular"&&NT(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),h=l.get("repulsion"),d=l.get("edgeLength"),p=it(h)?h:[h,h],y=it(d)?d:[d,d];y=[y[1],y[0]];var m=i.mapArray("value",function(w,A){var M=i.getItemLayout(A),D=oe(w,u,p);return isNaN(D)&&(D=(p[0]+p[1])/2),{w:D,rep:D,fixed:i.getItemModel(A).get("fixed"),p:!M||isNaN(M[0])||isNaN(M[1])?null:M}}),_=o.mapArray("value",function(w,A){var M=n.getEdgeByIndex(A),D=oe(w,c,y);isNaN(D)&&(D=(y[0]+y[1])/2);var L=M.getModel(),R=pn(M.getModel().get(["lineStyle","curveness"]),-IT(M,e,A,!0),0);return{n1:m[M.node1.dataIndex],n2:m[M.node2.dataIndex],d:D,curveness:R,ignoreForceLayout:L.get("ignoreForceLayout")}}),b=t.getBoundingRect(),x=WK(m,_,{rect:b,gravity:l.get("gravity"),friction:l.get("friction")});x.beforeStep(function(w,A){for(var M=0,D=w.length;M<D;M++)w[M].fixed&&Mr(w[M].p,n.getNodeByIndex(M).getLayout())}),x.afterStep(function(w,A,M){for(var D=0,L=w.length;D<L;D++)w[D].fixed||n.getNodeByIndex(D).setLayout(w[D].p),a[i.getId(D)]=w[D].p;for(var D=0,L=A.length;D<L;D++){var R=A[D],E=n.getEdgeByIndex(D),O=R.n1.p,P=R.n2.p,k=E.getLayout();k=k?k.slice():[],k[0]=k[0]||[],k[1]=k[1]||[],Mr(k[0],O),Mr(k[1],P),+R.curveness&&(k[2]=[(O[0]+P[0])/2-(O[1]-P[1])*R.curveness,(O[1]+P[1])/2-(P[0]-O[0])*R.curveness]),E.setLayout(k)}}),e.forceLayout=x,e.preservedPoints=a,x.step()}else e.forceLayout=null})}function qK(r,e,t){var a=rt(r.getBoxLayoutParams(),{aspect:t});return Xe(a,{width:e.getWidth(),height:e.getHeight()})}function $K(r,e){var t=[];return r.eachSeriesByType("graph",function(a){var n=a.get("coordinateSystem");if(!n||n==="view"){var i=a.getData(),o=i.mapArray(function(_){var b=i.getItemModel(_);return[+b.get("x"),+b.get("y")]}),l=[],s=[];zy(o,l,s),s[0]-l[0]===0&&(s[0]+=1,l[0]-=1),s[1]-l[1]===0&&(s[1]+=1,l[1]-=1);var u=(s[0]-l[0])/(s[1]-l[1]),c=qK(a,e,u);isNaN(u)&&(l=[c.x,c.y],s=[c.x+c.width,c.y+c.height]);var h=s[0]-l[0],d=s[1]-l[1],p=c.width,y=c.height,m=a.coordinateSystem=new Ev;m.zoomLimit=a.get("scaleLimit"),m.setBoundingRect(l[0],l[1],h,d),m.setViewRect(c.x,c.y,p,y),m.setCenter(a.get("center"),e),m.setZoom(a.get("zoom")),t.push(m)}}),t}var YI=Qe.prototype,sS=pf.prototype,r4=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(r4);function uS(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var KK=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new r4},e.prototype.buildPath=function(t,a){uS(a)?YI.buildPath.call(this,t,a):sS.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return uS(this.shape)?YI.pointAt.call(this,t):sS.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=uS(a)?[a.x2-a.x1,a.y2-a.y1]:sS.tangentAt.call(this,t);return ys(n,n)},e})(Ut),fS=["fromSymbol","toSymbol"];function jI(r){return"_"+r+"Type"}function XI(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),l=e.getItemVisual(t,r+"KeepAspect"),s=Cf(n),u=xs(o||0,s);return a+s+u+(i||"")+(l||"")}function WI(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),l=e.getItemVisual(t,r+"KeepAspect"),s=Cf(n),u=xs(o||0,s),c=Ge(a,-s[0]/2+u[0],-s[1]/2+u[1],s[0],s[1],null,l);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=r,c}}function QK(r){var e=new KK({name:"line",subPixelOptimize:!0});return xx(e.shape,r),e}function xx(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var PT=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),l=QK(o);l.shape.percent=0,De(l,{shape:{percent:1}},i,a),this.add(l),N(fS,function(s){var u=WI(s,t,a);this.add(u),this[jI(s)]=XI(s,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),l=t.getItemLayout(a),s={shape:{}};xx(s.shape,l),Jt(o,s,i,a),N(fS,function(u){var c=XI(u,t,a),h=jI(u);if(this[h]!==c){this.remove(this.childOfName(u));var d=WI(u,t,a);this.add(d)}this[h]=c},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),l=n&&n.emphasisLineStyle,s=n&&n.blurLineStyle,u=n&&n.selectLineStyle,c=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,d=n&&n.focus,p=n&&n.blurScope;if(!n||t.hasItemOption){var y=t.getItemModel(a),m=y.getModel("emphasis");l=m.getModel("lineStyle").getLineStyle(),s=y.getModel(["blur","lineStyle"]).getLineStyle(),u=y.getModel(["select","lineStyle"]).getLineStyle(),h=m.get("disabled"),d=m.get("focus"),p=m.get("blurScope"),c=nr(y)}var _=t.getItemVisual(a,"style"),b=_.stroke;o.useStyle(_),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=l,o.ensureState("blur").style=s,o.ensureState("select").style=u,N(fS,function(D){var L=this.childOfName(D);if(L){L.setColor(b),L.style.opacity=_.opacity;for(var R=0;R<jr.length;R++){var E=jr[R],O=o.getState(E);if(O){var P=O.style||{},k=L.ensureState(E),V=k.style||(k.style={});P.stroke!=null&&(V[L.__isEmptyBrush?"stroke":"fill"]=P.stroke),P.opacity!=null&&(V.opacity=P.opacity)}}L.markRedraw()}},this);var x=i.getRawValue(a);xr(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(D,L){return i.getFormattedLabel(D,L,t.dataType)}},inheritColor:b||"#000",defaultOpacity:_.opacity,defaultText:(x==null?t.getName(a):isFinite(x)?Ne(x):x)+""});var w=this.getTextContent();if(w){var A=c.normal;w.__align=w.style.align,w.__verticalAlign=w.style.verticalAlign,w.__position=A.get("position")||"middle";var M=A.get("distance");it(M)||(M=[M,M]),w.__labelDistance=M}this.setTextConfig({position:null,local:!0,inside:!1}),Ee(this,d,p,h)},e.prototype.highlight=function(){Ei(this)},e.prototype.downplay=function(){Ii(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");xx(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,l=this.parent;l;)l.scaleX&&(o/=l.scaleX),l=l.parent;var s=t.childOfName("line");if(!this.__dirty&&!s.__dirty)return;var u=s.shape.percent,c=s.pointAt(0),h=s.pointAt(u),d=wo([],h,c);ys(d,d);function p(O,P){var k=O.__specifiedRotation;if(k==null){var V=s.tangentAt(P);O.attr("rotation",(P===1?-1:1)*Math.PI/2-Math.atan2(V[1],V[0]))}else O.attr("rotation",k)}if(a&&(a.setPosition(c),p(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(h),p(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var y=void 0,m=void 0,_=i.__labelDistance,b=_[0]*o,x=_[1]*o,w=u/2,A=s.tangentAt(w),M=[A[1],-A[0]],D=s.pointAt(w);M[1]>0&&(M[0]=-M[0],M[1]=-M[1]);var L=A[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var R=-Math.atan2(A[1],A[0]);h[0]<c[0]&&(R=Math.PI+R),i.rotation=R}var E=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":E=-x,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":E=x,m="top";break;default:E=0,m="middle"}switch(i.__position){case"end":i.x=d[0]*b+h[0],i.y=d[1]*x+h[1],y=d[0]>.8?"left":d[0]<-.8?"right":"center",m=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*b+c[0],i.y=-d[1]*x+c[1],y=d[0]>.8?"right":d[0]<-.8?"left":"center",m=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=b*L+c[0],i.y=c[1]+E,y=A[0]<0?"right":"left",i.originX=-b*L,i.originY=-E;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=D[0],i.y=D[1]+E,y="center",i.originY=-E;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-b*L+h[0],i.y=h[1]+E,y=A[0]>=0?"right":"left",i.originX=b*L,i.originY=-E;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||y})}},e})(Ct),zT=(function(){function r(e){this.group=new Ct,this._LineCtor=e||PT}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=ZI(e);e.diff(i).add(function(l){t._doAdd(e,l,o)}).update(function(l,s){t._doUpdate(i,e,s,l,o)}).remove(function(l){n.remove(i.getItemGraphicEl(l))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ZI(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(l){!l.isGroup&&!JK(l)&&(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(cS(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){jo(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(cS(n)){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);if(!cS(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},r})();function JK(r){return r.animators&&r.animators.length>0}function ZI(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:nr(e)}}function qI(r){return isNaN(r[0])||isNaN(r[1])}function cS(r){return r&&!qI(r[0])&&!qI(r[1])}var hS=[],vS=[],dS=[],Au=cr,pS=Ro,$I=Math.abs;function KI(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,l,s=t*t,u=.1,c=.1;c<=.9;c+=.1){hS[0]=Au(a[0],n[0],i[0],c),hS[1]=Au(a[1],n[1],i[1],c);var h=$I(pS(hS,e)-s);h<o&&(o=h,l=c)}for(var d=0;d<32;d++){var p=l+u;vS[0]=Au(a[0],n[0],i[0],l),vS[1]=Au(a[1],n[1],i[1],l),dS[0]=Au(a[0],n[0],i[0],p),dS[1]=Au(a[1],n[1],i[1],p);var h=pS(vS,e)-s;if($I(h)<.01)break;var y=pS(dS,e)-s;u/=2,h<0?y>=0?l=l+u:l=l-u:y>=0?l=l-u:l=l+u}return l}function gS(r,e){var t=[],a=zh,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(l,s){var u=l.getLayout(),c=l.getVisual("fromSymbol"),h=l.getVisual("toSymbol");u.__original||(u.__original=[Hn(u[0]),Hn(u[1])],u[2]&&u.__original.push(Hn(u[2])));var d=u.__original;if(u[2]!=null){if(Mr(n[0],d[0]),Mr(n[1],d[2]),Mr(n[2],d[1]),c&&c!=="none"){var p=ph(l.node1),y=KI(n,d[0],p*e);a(n[0][0],n[1][0],n[2][0],y,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],y,t),n[0][1]=t[3],n[1][1]=t[4]}if(h&&h!=="none"){var p=ph(l.node2),y=KI(n,d[1],p*e);a(n[0][0],n[1][0],n[2][0],y,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],y,t),n[1][1]=t[1],n[2][1]=t[2]}Mr(u[0],n[0]),Mr(u[1],n[2]),Mr(u[2],n[1])}else{if(Mr(i[0],d[0]),Mr(i[1],d[1]),wo(o,i[1],i[0]),ys(o,o),c&&c!=="none"){var p=ph(l.node1);Tg(i[0],i[0],o,p*e)}if(h&&h!=="none"){var p=ph(l.node2);Tg(i[1],i[1],o,-p*e)}Mr(u[0],i[0]),Mr(u[1],i[1])}})}function QI(r){return r.type==="view"}var tQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new Av,i=new zT,o=this.group;this._controller=new Rv(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var l=this._symbolDraw,s=this._lineDraw,u=this.group;if(QI(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Jt(u,c,t)}gS(t.getGraph(),dh(t));var h=t.getData();l.updateData(h);var d=t.getEdgeData();s.updateData(d),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var p=t.forceLayout,y=t.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,y);var m=t.get("layout");h.graph.eachNode(function(w){var A=w.dataIndex,M=w.getGraphicEl(),D=w.getModel();if(M){M.off("drag").off("dragend");var L=D.get("draggable");L&&M.on("drag",function(E){switch(m){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,y),p.setFixed(A),h.setItemLayout(A,[M.x,M.y]);break;case"circular":h.setItemLayout(A,[M.x,M.y]),w.setLayout({fixed:!0},!0),NT(t,"symbolSize",w,[E.offsetX,E.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(A,[M.x,M.y]),OT(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){p&&p.setUnfixed(A)}),M.setDraggable(L,!!D.get("cursor"));var R=D.get(["emphasis","focus"]);R==="adjacency"&&(Mt(M).focus=w.getAdjacentDataIndices())}}),h.graph.eachEdge(function(w){var A=w.getGraphicEl(),M=w.getModel().get(["emphasis","focus"]);A&&M==="adjacency"&&(Mt(A).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var _=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),b=h.getLayout("cx"),x=h.getLayout("cy");h.graph.eachNode(function(w){e4(w,_,b,x)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;(function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,l=this._controllerHost,s=this.group;if(o.setPointerChecker(function(u,c,h){var d=s.getBoundingRect();return d.applyTransform(s.transform),d.contain(c,h)&&!im(u,n,t)}),!QI(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),l.zoomLimit=t.get("scaleLimit"),l.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){TT(l,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){AT(l,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),gS(t.getGraph(),dh(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=dh(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){gS(t.getGraph(),dh(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})(fe);function Cu(r){return"_EC_"+r}var eQ=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[Cu(e)]){var n=new Hl(e,t);return n.hostGraph=this,this.nodes.push(n),a[Cu(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Cu(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Qt(e)&&(e=this.nodes[e]),Qt(t)&&(t=this.nodes[t]),e instanceof Hl||(e=n[Cu(e)]),t instanceof Hl||(t=n[Cu(t)]),!(!e||!t)){var o=e.id+"-"+t.id,l=new a4(e,t,a);return l.hostGraph=this,this._directed&&(e.outEdges.push(l),t.inEdges.push(l)),e.edges.push(l),e!==t&&t.edges.push(l),this.edges.push(l),i[o]=l,l}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Hl&&(e=e.id),t instanceof Hl&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof Hl||(t=this._nodesMap[Cu(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var l=[t];l.length;)for(var s=l.shift(),u=s[i],o=0;o<u.length;o++){var c=u[o],h=c.node1===s?c.node2:c.node1;if(!h.__visited){if(e.call(n,h,s))return;l.push(h),h.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(l){var s=n[t.getRawIndex(l)];return s.node1.dataIndex>=0&&s.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r})(),Hl=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=mt(),t=mt(),a=0;a<this.edges.length;a++){var n=this.edges[a];if(!(n.dataIndex<0)){e.set(n.dataIndex,!0);for(var i=[n.node1],o=[n.node2],l=0;l<i.length;){var s=i[l];l++,t.set(s.dataIndex,!0);for(var u=0;u<s.inEdges.length;u++)e.set(s.inEdges[u].dataIndex,!0),i.push(s.inEdges[u].node1)}for(l=0;l<o.length;){var c=o[l];l++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r})(),a4=(function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.edgeData.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=mt(),t=mt();e.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,t.set(o.dataIndex,!0);for(var l=0;l<o.inEdges.length;l++)e.set(o.inEdges[l].dataIndex,!0),a.push(o.inEdges[l].node1)}for(i=0;i<n.length;){var s=n[i];i++,t.set(s.dataIndex,!0);for(var l=0;l<s.outEdges.length;l++)e.set(s.outEdges[l].dataIndex,!0),n.push(s.outEdges[l].node2)}return{edge:e.keys(),node:t.keys()}},r})();function n4(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}ze(Hl,n4("hostGraph","data"));ze(a4,n4("hostGraph","edgeData"));function i4(r,e,t,a,n){for(var i=new eQ(a),o=0;o<r.length;o++)i.addNode(er(r[o].id,r[o].name,o),o);for(var l=[],s=[],u=0,o=0;o<e.length;o++){var c=e[o],h=c.source,d=c.target;i.addEdge(h,d,u)&&(s.push(c),l.push(er(Ke(c.id,null),h+" > "+d)),u++)}var p=t.get("coordinateSystem"),y;if(p==="cartesian2d"||p==="polar")y=qn(r,t);else{var m=wf.get(p),_=m?m.dimensions||[]:[];Bt(_,"value")<0&&_.concat(["value"]);var b=Df(r,{coordDimensions:_,encodeDefine:t.getEncode()}).dimensions;y=new Er(b,t),y.initData(r)}var x=new Er(["value"],t);return x.initData(s,l),n&&n(y,x),GB({mainData:y,struct:i,structAttr:"graph",datas:{node:y,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var rQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Lv(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),us(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){FK(this);var l=i4(i,n,this,!0,s);return N(l.edges,function(u){UK(u.node1,u.node2,this,u.dataIndex)},this),l.data}function s(u,c){u.wrapMethod("getItemModel",function(y){var m=o._categoriesModels,_=y.getShallow("category"),b=m[_];return b&&(b.parentModel=y.parentModel,y.parentModel=b),y});var h=ee.prototype.getModel;function d(y,m){var _=h.call(this,y,m);return _.resolveParentPath=p,_}c.wrapMethod("getItemModel",function(y){return y.resolveParentPath=p,y.getModel=d,y});function p(y){if(y&&(y[0]==="label"||y[1]==="label")){var m=y.slice();return y[0]==="label"?m[0]="edgeLabel":y[1]==="label"&&(m[1]="edgeLabel"),m}return y}}},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,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),l=i.graph.getEdgeByIndex(t),s=i.getName(l.node1.dataIndex),u=i.getName(l.node2.dataIndex),c=[];return s!=null&&c.push(s),u!=null&&c.push(u),ir("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var h=C5({series:this,dataIndex:t,multipleSeries:a});return h},e.prototype._updateCategoriesData=function(){var t=ot(this.option.categories||[],function(n){return n.value!=null?n:rt({value:0},n)}),a=new Er(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&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})(pe),aQ={type:"graphRoam",event:"graphRoam",update:"none"};function nQ(r){r.registerChartView(tQ),r.registerSeriesModel(rQ),r.registerProcessor(kK),r.registerVisual(BK),r.registerVisual(VK),r.registerLayout(YK),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,XK),r.registerLayout(ZK),r.registerCoordinateSystem("graphView",{dimensions:Ev.dimensions,create:$K}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Pe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Pe),r.registerAction(aQ,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=DT(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var iQ=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),oQ=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new iQ},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,l=a.width,s=a.angle,u=a.x-n(s)*l*(l>=o/3?1:2),c=a.y-i(s)*l*(l>=o/3?1:2);s=a.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(a.x+n(s)*l,a.y+i(s)*l),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(s)*l,a.y-i(s)*l),t.lineTo(u,c)},e})(Ut);function lQ(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=ht(t[0],e.getWidth()),l=ht(t[1],e.getHeight()),s=ht(r.get("radius"),i/2);return{cx:o,cy:l,r:s}}function Fp(r,e){var t=r==null?"":r+"";return e&&(vt(e)?t=e.replace("{value}",t):_t(e)&&(t=e(r))),t}var sQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=lQ(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var l=this.group,s=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),d=h.get("roundCap"),p=d?ry:Or,y=h.get("show"),m=h.getModel("lineStyle"),_=m.get("width"),b=[u,c];mw(b,!s),u=b[0],c=b[1];for(var x=c-u,w=u,A=[],M=0;y&&M<i.length;M++){var D=Math.min(Math.max(i[M][0],0),1);c=u+x*D;var L=new p({shape:{startAngle:w,endAngle:c,cx:o.cx,cy:o.cy,clockwise:s,r0:o.r-_,r:o.r},silent:!0});L.setStyle({fill:i[M][1]}),L.setStyle(m.getLineStyle(["color","width"])),A.push(L),w=c}A.reverse(),N(A,function(E){return l.add(E)});var R=function(E){if(E<=0)return i[0][1];var O;for(O=0;O<i.length;O++)if(i[O][0]>=E&&(O===0?0:i[O-1][0])<E)return i[O][1];return i[O-1][1]};this._renderTicks(t,a,n,R,o,u,c,s,_),this._renderTitleAndDetail(t,a,n,R,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,R,o,u,c,s,_)},e.prototype._renderTicks=function(t,a,n,i,o,l,s,u,c){for(var h=this.group,d=o.cx,p=o.cy,y=o.r,m=+t.get("min"),_=+t.get("max"),b=t.getModel("splitLine"),x=t.getModel("axisTick"),w=t.getModel("axisLabel"),A=t.get("splitNumber"),M=x.get("splitNumber"),D=ht(b.get("length"),y),L=ht(x.get("length"),y),R=l,E=(s-l)/A,O=E/M,P=b.getModel("lineStyle").getLineStyle(),k=x.getModel("lineStyle").getLineStyle(),V=b.get("distance"),H,U,z=0;z<=A;z++){if(H=Math.cos(R),U=Math.sin(R),b.get("show")){var Y=V?V+c:c,j=new Qe({shape:{x1:H*(y-Y)+d,y1:U*(y-Y)+p,x2:H*(y-D-Y)+d,y2:U*(y-D-Y)+p},style:P,silent:!0});P.stroke==="auto"&&j.setStyle({stroke:i(z/A)}),h.add(j)}if(w.get("show")){var Y=w.get("distance")+V,$=Fp(Ne(z/A*(_-m)+m),w.get("formatter")),tt=i(z/A),F=H*(y-D-Y)+d,W=U*(y-D-Y)+p,at=w.get("rotate"),lt=0;at==="radial"?(lt=-R+2*Math.PI,lt>Math.PI/2&&(lt+=Math.PI)):at==="tangential"?lt=-R-Math.PI/2:Qt(at)&&(lt=at*Math.PI/180),lt===0?h.add(new Xt({style:_e(w,{text:$,x:F,y:W,verticalAlign:U<-.8?"top":U>.8?"bottom":"middle",align:H<-.4?"left":H>.4?"right":"center"},{inheritColor:tt}),silent:!0})):h.add(new Xt({style:_e(w,{text:$,x:F,y:W,verticalAlign:"middle",align:"center"},{inheritColor:tt}),silent:!0,originX:F,originY:W,rotation:lt}))}if(x.get("show")&&z!==A){var Y=x.get("distance");Y=Y?Y+c:c;for(var ct=0;ct<=M;ct++){H=Math.cos(R),U=Math.sin(R);var bt=new Qe({shape:{x1:H*(y-Y)+d,y1:U*(y-Y)+p,x2:H*(y-L-Y)+d,y2:U*(y-L-Y)+p},silent:!0,style:k});k.stroke==="auto"&&bt.setStyle({stroke:i((z+ct/M)/A)}),h.add(bt),R+=O}R-=O}else R+=E}},e.prototype._renderPointer=function(t,a,n,i,o,l,s,u,c){var h=this.group,d=this._data,p=this._progressEls,y=[],m=t.get(["pointer","show"]),_=t.getModel("progress"),b=_.get("show"),x=t.getData(),w=x.mapDimension("value"),A=+t.get("min"),M=+t.get("max"),D=[A,M],L=[l,s];function R(O,P){var k=x.getItemModel(O),V=k.getModel("pointer"),H=ht(V.get("width"),o.r),U=ht(V.get("length"),o.r),z=t.get(["pointer","icon"]),Y=V.get("offsetCenter"),j=ht(Y[0],o.r),$=ht(Y[1],o.r),tt=V.get("keepAspect"),F;return z?F=Ge(z,j-H/2,$-U,H,U,null,tt):F=new oQ({shape:{angle:-Math.PI/2,width:H,r:U,x:j,y:$}}),F.rotation=-(P+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function E(O,P){var k=_.get("roundCap"),V=k?ry:Or,H=_.get("overlap"),U=H?_.get("width"):c/x.count(),z=H?o.r-U:o.r-(O+1)*U,Y=H?o.r:o.r-O*U,j=new V({shape:{startAngle:l,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:Y}});return H&&(j.z2=oe(x.get(w,O),[A,M],[100,0],!0)),j}(b||m)&&(x.diff(d).add(function(O){var P=x.get(w,O);if(m){var k=R(O,l);De(k,{rotation:-((isNaN(+P)?L[0]:oe(P,D,L,!0))+Math.PI/2)},t),h.add(k),x.setItemGraphicEl(O,k)}if(b){var V=E(O,l),H=_.get("clip");De(V,{shape:{endAngle:oe(P,D,L,H)}},t),h.add(V),Ib(t.seriesIndex,x.dataType,O,V),y[O]=V}}).update(function(O,P){var k=x.get(w,O);if(m){var V=d.getItemGraphicEl(P),H=V?V.rotation:l,U=R(O,H);U.rotation=H,Jt(U,{rotation:-((isNaN(+k)?L[0]:oe(k,D,L,!0))+Math.PI/2)},t),h.add(U),x.setItemGraphicEl(O,U)}if(b){var z=p[P],Y=z?z.shape.endAngle:l,j=E(O,Y),$=_.get("clip");Jt(j,{shape:{endAngle:oe(k,D,L,$)}},t),h.add(j),Ib(t.seriesIndex,x.dataType,O,j),y[O]=j}}).execute(),x.each(function(O){var P=x.getItemModel(O),k=P.getModel("emphasis"),V=k.get("focus"),H=k.get("blurScope"),U=k.get("disabled");if(m){var z=x.getItemGraphicEl(O),Y=x.getItemVisual(O,"style"),j=Y.fill;if(z instanceof or){var $=z.style;z.useStyle(rt({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},Y))}else z.useStyle(Y),z.type!=="pointer"&&z.setColor(j);z.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",i(oe(x.get(w,O),D,[0,1],!0))),z.z2EmphasisLift=0,br(z,P),Ee(z,V,H,U)}if(b){var tt=y[O];tt.useStyle(x.getItemVisual(O,"style")),tt.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),tt.z2EmphasisLift=0,br(tt,P),Ee(tt,V,H,U)}}),this._progressEls=y)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),l=n.get("icon"),s=n.get("offsetCenter"),u=n.get("keepAspect"),c=Ge(l,a.cx-o/2+ht(s[0],a.r),a.cy-o/2+ht(s[1],a.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var l=this,s=t.getData(),u=s.mapDimension("value"),c=+t.get("min"),h=+t.get("max"),d=new Ct,p=[],y=[],m=t.isAnimationEnabled(),_=t.get(["pointer","showAbove"]);s.diff(this._data).add(function(b){p[b]=new Xt({silent:!0}),y[b]=new Xt({silent:!0})}).update(function(b,x){p[b]=l._titleEls[x],y[b]=l._detailEls[x]}).execute(),s.each(function(b){var x=s.getItemModel(b),w=s.get(u,b),A=new Ct,M=i(oe(w,[c,h],[0,1],!0)),D=x.getModel("title");if(D.get("show")){var L=D.get("offsetCenter"),R=o.cx+ht(L[0],o.r),E=o.cy+ht(L[1],o.r),O=p[b];O.attr({z2:_?0:2,style:_e(D,{x:R,y:E,text:s.getName(b),align:"center",verticalAlign:"middle"},{inheritColor:M})}),A.add(O)}var P=x.getModel("detail");if(P.get("show")){var k=P.get("offsetCenter"),V=o.cx+ht(k[0],o.r),H=o.cy+ht(k[1],o.r),U=ht(P.get("width"),o.r),z=ht(P.get("height"),o.r),Y=t.get(["progress","show"])?s.getItemVisual(b,"style").fill:M,O=y[b],j=P.get("formatter");O.attr({z2:_?0:2,style:_e(P,{x:V,y:H,text:Fp(w,j),width:isNaN(U)?null:U,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:Y})}),Oz(O,{normal:P},w,function(tt){return Fp(tt,j)}),m&&Nz(O,b,s,t,{getFormattedLabel:function(tt,F,W,at,lt,ct){return Fp(ct?ct.interpolatedValue:w,j)}}),A.add(O)}d.add(A)}),this.group.add(d),this._titleEls=p,this._detailEls=y},e.type="gauge",e})(fe),uQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return Rf(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})(pe);function fQ(r){r.registerChartView(sQ),r.registerSeriesModel(uQ)}var cQ=["itemStyle","opacity"],hQ=(function(r){Z(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new zr,l=new Xt;return i.setTextContent(l),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,l=t.getItemModel(a),s=t.getItemLayout(a),u=l.getModel("emphasis"),c=l.get(cQ);c=c??1,n||xn(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:s.points}),i.style.opacity=0,De(i,{style:{opacity:c}},o,a)):Jt(i,{style:{opacity:c},shape:{points:s.points}},o,a),br(i,l),this._updateLabel(t,a),Ee(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),l=t.hostModel,s=t.getItemModel(a),u=t.getItemLayout(a),c=u.label,h=t.getItemVisual(a,"style"),d=h.fill;xr(o,nr(s),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var p=c.linePoints;i.setShape({points:p}),n.textGuideLineConfig={anchor:p?new zt(p[0][0],p[0][1]):null},Jt(o,{style:{x:c.x,y:c.y}},l,a),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),vT(n,dT(s),{stroke:d})},e})(Nr),vQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,l=this.group;i.diff(o).add(function(s){var u=new hQ(i,s);i.setItemGraphicEl(s,u),l.add(u)}).update(function(s,u){var c=o.getItemGraphicEl(u);c.updateData(i,s),l.add(c),i.setItemGraphicEl(s,c)}).remove(function(s){var u=o.getItemGraphicEl(s);Yh(u,t,s)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e})(fe),dQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Lv(dt(this.getData,this),dt(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Rf(this,{coordDimensions:["value"],encodeDefaulter:Et(Hw,this)})},e.prototype._defaultLabelLine=function(t){us(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},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})(pe);function pQ(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gQ(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(s){return s}),n=[],i=e==="ascending",o=0,l=r.count();o<l;o++)n[o]=o;return _t(e)?n.sort(e):e!=="none"&&n.sort(function(s,u){return i?a[s]-a[u]:a[u]-a[s]}),n}function yQ(r){var e=r.hostModel,t=e.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),l=n.getModel("labelLine"),s=r.getItemLayout(a),u=s.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",h,d,p,y;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,p=(u[0][1]+u[3][1])/2,h="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,p=(u[1][1]+u[2][1])/2,h="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,p=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),y=[[d,p],[d,p]];else{var m=void 0,_=void 0,b=void 0,x=void 0,w=l.get("length");o==="left"?(m=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,b=m-w,d=b-5,h="right"):o==="right"?(m=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,b=m+w,d=b+5,h="left"):o==="top"?(m=(u[3][0]+u[0][0])/2,_=(u[3][1]+u[0][1])/2,x=_-w,p=x-5,h="center"):o==="bottom"?(m=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,x=_+w,p=x+5,h="center"):o==="rightTop"?(m=t==="horizontal"?u[3][0]:u[1][0],_=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(x=_-w,p=x-5,h="center"):(b=m+w,d=b+5,h="top")):o==="rightBottom"?(m=u[2][0],_=u[2][1],t==="horizontal"?(x=_+w,p=x+5,h="center"):(b=m+w,d=b+5,h="bottom")):o==="leftTop"?(m=u[0][0],_=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(x=_-w,p=x-5,h="center"):(b=m-w,d=b-5,h="right")):o==="leftBottom"?(m=t==="horizontal"?u[1][0]:u[3][0],_=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(x=_+w,p=x+5,h="center"):(b=m-w,d=b-5,h="right")):(m=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,t==="horizontal"?(x=_+w,p=x+5,h="center"):(b=m+w,d=b+5,h="left")),t==="horizontal"?(b=m,d=b):(x=_,p=x),y=[[m,_],[b,x]]}s.label={linePoints:y,x:d,y:p,verticalAlign:"middle",textAlign:h,inside:c}})}function mQ(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=pQ(t,e),l=t.get("orient"),s=o.width,u=o.height,c=gQ(a,i),h=o.x,d=o.y,p=l==="horizontal"?[ht(t.get("minSize"),u),ht(t.get("maxSize"),u)]:[ht(t.get("minSize"),s),ht(t.get("maxSize"),s)],y=a.getDataExtent(n),m=t.get("min"),_=t.get("max");m==null&&(m=Math.min(y[0],0)),_==null&&(_=y[1]);var b=t.get("funnelAlign"),x=t.get("gap"),w=l==="horizontal"?s:u,A=(w-x*(a.count()-1))/a.count(),M=function(H,U){if(l==="horizontal"){var z=a.get(n,H)||0,Y=oe(z,[m,_],p,!0),j=void 0;switch(b){case"top":j=d;break;case"center":j=d+(u-Y)/2;break;case"bottom":j=d+(u-Y);break}return[[U,j],[U,j+Y]]}var $=a.get(n,H)||0,tt=oe($,[m,_],p,!0),F;switch(b){case"left":F=h;break;case"center":F=h+(s-tt)/2;break;case"right":F=h+s-tt;break}return[[F,U],[F+tt,U]]};i==="ascending"&&(A=-A,x=-x,l==="horizontal"?h+=s:d+=u,c=c.reverse());for(var D=0;D<c.length;D++){var L=c[D],R=c[D+1],E=a.getItemModel(L);if(l==="horizontal"){var O=E.get(["itemStyle","width"]);O==null?O=A:(O=ht(O,s),i==="ascending"&&(O=-O));var P=M(L,h),k=M(R,h+O);h+=O+x,a.setItemLayout(L,{points:P.concat(k.slice().reverse())})}else{var V=E.get(["itemStyle","height"]);V==null?V=A:(V=ht(V,u),i==="ascending"&&(V=-V));var P=M(L,d),k=M(R,d+V);d+=V+x,a.setItemLayout(L,{points:P.concat(k.slice().reverse())})}}yQ(a)})}function _Q(r){r.registerChartView(vQ),r.registerSeriesModel(dQ),r.registerLayout(mQ),r.registerProcessor(Mv("funnel"))}var SQ=.3,bQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Ct,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._dataGroup,l=t.getData(),s=this._data,u=t.coordinateSystem,c=u.dimensions,h=tO(t);l.diff(s).add(d).update(p).remove(y).execute();function d(_){var b=JI(l,o,_,c,u);yS(b,l,_,h)}function p(_,b){var x=s.getItemGraphicEl(b),w=o4(l,_,c,u);l.setItemGraphicEl(_,x),Jt(x,{shape:{points:w}},t,_),xn(x),yS(x,l,_,h)}function y(_){var b=s.getItemGraphicEl(_);o.remove(b)}if(!this._initialized){this._initialized=!0;var m=xQ(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(m)}this._data=l},e.prototype.incrementalPrepareRender=function(t,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,a,n){for(var i=a.getData(),o=a.coordinateSystem,l=o.dimensions,s=tO(a),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var h=JI(i,this._dataGroup,c,l,o);h.incremental=!0,yS(h,i,c,s),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(fe);function xQ(r,e,t){var a=r.model,n=r.getRect(),i=new Wt({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),De(i,{shape:{width:n.width,height:n.height}},e,t),i}function o4(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],l=r.get(r.mapDimension(o),e);wQ(l,a.getAxis(o).type)||n.push(a.dataToPoint(l,o))}return n}function JI(r,e,t,a,n){var i=o4(r,t,a,n),o=new zr({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function tO(r){var e=r.get("smooth",!0);return e===!0&&(e=SQ),e=jn(e),Qu(e)&&(e=0),{smooth:e}}function yS(r,e,t,a){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");br(r,n,"lineStyle"),Ee(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function wQ(r,e){return e==="category"?r==null:r==null||isNaN(r)}var TQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,a){return qn(null,this,{useEncodeDefaulter:dt(AQ,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,l){t===o&&i.push(n.getRawIndex(l))}),i},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})(pe);function AQ(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return N(e.dimensions,function(a){var n=CQ(a);t[a]=n}),t}}function CQ(r){return+r.replace("dim","")}var DQ=["lineStyle","opacity"],MQ={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,l){var s=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(l).get(DQ,!0);u!=null&&(s=u)}var c=i.ensureUniqueItemVisual(l,"style");c.opacity=s},n.start,n.end)}}}};function LQ(r){RQ(r),EQ(r)}function RQ(r){if(!r.parallel){var e=!1;N(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function EQ(r){var e=de(r.parallelAxis);N(e,function(t){if(xt(t)){var a=t.parallelIndex||0,n=de(r.parallel)[a];n&&n.parallelAxisDefault&&It(t,n.parallelAxisDefault,!1)}})}var IQ=5,OQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},N(NQ,function(i,o){n.getZr().on(o,this._handlers[o]=dt(i,this))},this)),Af(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){Zh(this,"_throttledDispatchExpand"),N(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(rt({type:"parallelAxisExpand"},t))},e.type="parallel",e})(we),NQ={mousedown:function(r){mS(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(mS(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>IQ)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!mS(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function mS(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var PQ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&It(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){N(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=te(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);N(n,function(i){t.push("dim"+i.get("dim")),a.push(i.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})(Ht),zQ=(function(r){Z(e,r);function e(t,a,n,i,o){var l=r.call(this,t,a,n)||this;return l.type=i||"value",l.axisIndex=o,l}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(en);function As(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=Du(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var l=Math.abs(e[1]-e[0]);l=Du(l,[0,o]),n=i=Du(l,[n,i]),a=0}e[0]=Du(e[0],t),e[1]=Du(e[1],t);var s=_S(e,a);e[a]+=r;var u=n||0,c=t.slice();s.sign<0?c[0]+=u:c[1]-=u,e[a]=Du(e[a],c);var h;return h=_S(e,a),n!=null&&(h.sign!==s.sign||h.span<n)&&(e[1-a]=e[a]+s.sign*n),h=_S(e,a),i!=null&&h.span>i&&(e[1-a]=e[a]+h.sign*i),e}function _S(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Du(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var SS=N,l4=Math.min,s4=Math.max,eO=Math.floor,kQ=Math.ceil,rO=Ne,BQ=Math.PI,VQ=(function(){function r(e,t,a){this.type="parallel",this._axesMap=mt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;SS(n,function(o,l){var s=i[l],u=t.getComponent("parallelAxis",s),c=this._axesMap.set(o,new zQ(o,wv(u),[0,0],u.get("type"),s)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],l=e[i];return o>=a&&o<=a+t.axisLength&&l>=n&&l<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();SS(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ds(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Xe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,l=t[n[o]],s=[0,l],u=this.dimensions.length,c=Up(e.get("axisExpandWidth"),s),h=Up(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&l>0,p=e.get("axisExpandWindow"),y;if(p)y=Up(p[1]-p[0],s),p[1]=p[0]+y;else{y=Up(c*(h-1),s);var m=e.get("axisExpandCenter")||eO(u/2);p=[c*m-y/2],p[1]=p[0]+y}var _=(l-y)/(u-h);_<3&&(_=0);var b=[eO(rO(p[0]/c,1))+1,kQ(rO(p[1]/c,1))-1],x=_/c*p[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:l,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:_,axisExpandWindow:p,axisCount:u,winInnerIndices:b,axisExpandWindow0Pos:x}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var l=[0,n.axisLength],s=o.inverse?1:0;o.setExtent(l[s],l[1-s])}),SS(a,function(o,l){var s=(n.axisExpandable?HQ:GQ)(l,n),u={horizontal:{x:s.position,y:n.axisLength},vertical:{x:0,y:s.position}},c={horizontal:BQ/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],d=c[i],p=na();Yo(p,p,d),Sn(p,p,h),this._axesLayout[o]={position:h,rotation:d,transform:p,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,l=[],s=[];N(o,function(_){l.push(e.mapDimension(_)),s.push(i.get(_).model)});for(var u=this.hasAxisBrushed(),c=a;c<n;c++){var h=void 0;if(!u)h="normal";else{h="active";for(var d=e.getValues(l,c),p=0,y=o.length;p<y;p++){var m=s[p].getActiveState(d[p]);if(m==="inactive"){h="inactive";break}}}t(h,c)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return mn([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return Tt(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var l=e[a]-t.layoutBase-t.axisExpandWindow0Pos,s,u="slide",c=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),d=h[0]!=null;if(c)d&&c&&l<i*h[0]?(u="jump",s=l-i*h[2]):d&&c&&l>i*(1-h[0])?(u="jump",s=l-i*(1-h[2])):(s=l-i*h[1])>=0&&(s=l-i*(1-h[1]))<=0&&(s=0),s*=t.axisExpandWidth/c,s?As(s,n,o,"all"):u="none";else{var p=n[1]-n[0],y=o[1]*l/p;n=[s4(0,y-p/2)],n[1]=l4(o[1],n[0]+p),n[0]=n[1]-p}return{axisExpandWindow:n,behavior:u}},r})();function Up(r,e){return l4(s4(r,e[0]),e[1])}function GQ(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function HQ(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,l,s=i,u=!1,c;return r<o[0]?(l=r*i,c=i):r<=o[1]?(l=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],s=a,u=!0):(l=t-(n-1-r)*i,c=i),{position:l,axisNameAvailableWidth:s,axisLabelShow:u,nameTruncateMaxWidth:c}}function FQ(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new VQ(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",je).models[0];a.coordinateSystem=n.coordinateSystem}}),t}var UQ={create:FQ},Tx=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return cs([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=Tt(t);if(a)for(var n=a.length-1;n>=0;n--)ma(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e})(Ht);ze(Tx,Lf);var ps=!0,ov=Math.min,sf=Math.max,YQ=Math.pow,jQ=1e4,XQ=6,WQ=6,aO="globalPan",ZQ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},qQ={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},nO={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},$Q=0,kT=(function(r){Z(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new Ct,a._uid="brushController_"+$Q++,N(aJ,function(n,i){this._handlers[i]=dt(n,this)},a),a}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||Gq(a,aO,this._uid),N(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=It(Tt(nO),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Hq(t,aO,this._uid),N(this._handlers,function(a,n){t.off(n,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};N(t,function(n){a[n.panelId]=Tt(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=ot(t,function(d){return It(Tt(nO),d,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,l=this._creatingCover;return new Oi(n,t,u,s).add(c).update(c).remove(h).execute(),this;function s(d,p){return(d.id!=null?d.id:a+p)+"-"+d.brushType}function u(d,p){return s(d.__brushOption,p)}function c(d,p){var y=t[d];if(p!=null&&n[p]===l)i[d]=n[p];else{var m=i[d]=p!=null?(n[p].__brushOption=y,n[p]):f4(o,u4(o,y));BT(o,m)}}function h(d){n[d]!==l&&o.group.remove(n[d])}},e.prototype.unmount=function(){return this.enableBrush(!1),Ax(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Ka);function u4(r,e){var t=um[e.brushType].createCover(r,e);return t.__brushOption=e,h4(t,e),r.group.add(t),t}function f4(r,e){var t=VT(e);return t.endCreating&&(t.endCreating(r,e),h4(e,e.__brushOption)),e}function c4(r,e){var t=e.__brushOption;VT(e).updateCoverShape(r,e,t.range,t)}function h4(r,e){var t=e.z;t==null&&(t=jQ),r.traverse(function(a){a.z=t,a.z2=t})}function BT(r,e){VT(e).updateCommon(r,e),c4(r,e)}function VT(r){return um[r.__brushOption.brushType]}function GT(r,e,t){var a=r._panels;if(!a)return ps;var n,i=r._transform;return N(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function v4(r,e){var t=r._panels;if(!t)return ps;var a=e.__brushOption.panelId;return a!=null?t[a]:ps}function Ax(r){var e=r._covers,t=e.length;return N(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function gs(r,e){var t=ot(r._covers,function(a){var n=a.__brushOption,i=Tt(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function KQ(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],n=t[0]-a[0],i=t[1]-a[1],o=YQ(n*n+i*i,.5);return o>XQ}function d4(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function p4(r,e,t,a){var n=new Ct;return n.add(new Wt({name:"main",style:HT(t),silent:!0,draggable:!0,cursor:"move",drift:Et(iO,r,e,n,["n","s","w","e"]),ondragend:Et(gs,e,{isEnd:!0})})),N(a,function(i){n.add(new Wt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Et(iO,r,e,n,i),ondragend:Et(gs,e,{isEnd:!0})}))}),n}function g4(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=sf(n,WQ),o=t[0][0],l=t[1][0],s=o-n/2,u=l-n/2,c=t[0][1],h=t[1][1],d=c-i+n/2,p=h-i+n/2,y=c-o,m=h-l,_=y+n,b=m+n;yi(r,e,"main",o,l,y,m),a.transformable&&(yi(r,e,"w",s,u,i,b),yi(r,e,"e",d,u,i,b),yi(r,e,"n",s,u,_,i),yi(r,e,"s",s,p,_,i),yi(r,e,"nw",s,u,i,i),yi(r,e,"ne",d,u,i,i),yi(r,e,"sw",s,p,i,i),yi(r,e,"se",d,p,i,i))}function Cx(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(HT(t)),n.attr({silent:!a,cursor:a?"move":"default"}),N([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),l=i.length===1?Dx(r,i[0]):JQ(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?qQ[l]+"-resize":null})})}function yi(r,e,t,a,n,i,o){var l=e.childOfName(t);l&&l.setShape(eJ(FT(r,e,[[a,n],[a+i,n+o]])))}function HT(r){return St({strokeNoScale:!0},r.brushStyle)}function y4(r,e,t,a){var n=[ov(r,t),ov(e,a)],i=[sf(r,t),sf(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function QQ(r){return Oo(r.group)}function Dx(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=Hy(t[e],QQ(r));return a[n]}function JQ(r,e){var t=[Dx(r,e[0]),Dx(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function iO(r,e,t,a,n,i){var o=t.__brushOption,l=r.toRectRange(o.range),s=m4(e,n,i);N(a,function(u){var c=ZQ[u];l[c[0]][c[1]]+=s[c[0]]}),o.range=r.fromRectRange(y4(l[0][0],l[1][0],l[0][1],l[1][1])),BT(e,t),gs(e,{isEnd:!1})}function tJ(r,e,t,a){var n=e.__brushOption.range,i=m4(r,t,a);N(n,function(o){o[0]+=i[0],o[1]+=i[1]}),BT(r,e),gs(r,{isEnd:!1})}function m4(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function FT(r,e,t){var a=v4(r,e);return a&&a!==ps?a.clipPath(t,r._transform):Tt(t)}function eJ(r){var e=ov(r[0][0],r[1][0]),t=ov(r[0][1],r[1][1]),a=sf(r[0][0],r[1][0]),n=sf(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function rJ(r,e,t){if(!(!r._brushType||nJ(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=GT(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var l=n[o].__brushOption;if(i&&(i===ps||l.panelId===i.panelId)&&um[l.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}function Mx(r){var e=r.event;e.preventDefault&&e.preventDefault()}function Lx(r,e,t){return r.childOfName("main").contain(e,t)}function _4(r,e,t,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,l;if(r._track.push(t.slice()),KQ(r)||n){if(i&&!n){o.brushMode==="single"&&Ax(r);var s=Tt(o);s.brushType=oO(s.brushType,i),s.panelId=i===ps?null:i.panelId,n=r._creatingCover=u4(r,s),r._covers.push(n)}if(n){var u=um[oO(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(FT(r,n,r._track)),a&&(f4(r,n),u.updateCommon(r,n)),c4(r,n),l={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&GT(r,e,t)&&Ax(r)&&(l={isEnd:a,removeOnClick:!0});return l}function oO(r,e){return r==="auto"?e.defaultBrushType:r}var aJ={mousedown:function(r){if(this._dragging)lO(this,r);else if(!r.target||!r.target.draggable){Mx(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=GT(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,a=this.group.transformCoordToLocal(e,t);if(rJ(this,r,a),this._dragging){Mx(r);var n=_4(this,r,a,!1);n&&gs(this,n)}},mouseup:function(r){lO(this,r)}};function lO(r,e){if(r._dragging){Mx(e);var t=e.offsetX,a=e.offsetY,n=r.group.transformCoordToLocal(t,a),i=_4(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&gs(r,i)}}function nJ(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var um={lineX:sO(0),lineY:sO(1),rect:{createCover:function(r,e){function t(a){return a}return p4({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=d4(r);return y4(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){g4(r,e,t,a)},updateCommon:Cx,contain:Lx},polygon:{createCover:function(r,e){var t=new Ct;return t.add(new zr({name:"main",style:HT(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Nr({name:"main",draggable:!0,drift:Et(tJ,r,e),ondragend:Et(gs,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:FT(r,e,t)})},updateCommon:Cx,contain:Lx}};function sO(r){return{createCover:function(e,t){return p4({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=d4(e),a=ov(t[0][r],t[1][r]),n=sf(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=v4(e,t);if(o!==ps&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var l=e._zr;i=[0,[l.getWidth(),l.getHeight()][1-r]]}var s=[a,i];r&&s.reverse(),g4(e,t,s,n)},updateCommon:Cx,contain:Lx}}function S4(r){return r=UT(r),function(e){return Lw(e,r)}}function b4(r,e){return r=UT(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function x4(r,e,t){var a=UT(r);return function(n,i){return a.contain(i[0],i[1])&&!im(n,e,t)}}function UT(r){return kt.create(r)}var iJ=["axisLine","axisTickLabel","axisName"],oJ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new kT(a.getZr())).on("brush",dt(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!lJ(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ct,this.group.add(this._axisGroup),!!t.get("show")){var l=uJ(t,a),s=l.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,h=t.axis.dim,d=s.getAxisLayout(h),p=rt({strokeContainThreshold:c},d),y=new Ur(t,p);N(iJ,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(p,u,t,l,c,n),Sv(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,l){var s=n.axis.getExtent(),u=s[1]-s[0],c=Math.min(30,Math.abs(u)*.1),h=kt.create({x:s[0],y:-o/2,width:u,height:o});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:S4(h),isTargetByCursor:x4(h,l,i),getLinearBrushOtherExtent:b4(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(sJ(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=ot(a,function(l){return[i.coordToData(l.range[0],!0),i.coordToData(l.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(we);function lJ(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function sJ(r){var e=r.axis;return ot(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function uJ(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var fJ={type:"axisAreaSelect",event:"axisAreaSelected"};function cJ(r){r.registerAction(fJ,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var hJ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function w4(r){r.registerComponentView(OQ),r.registerComponentModel(PQ),r.registerCoordinateSystem("parallel",UQ),r.registerPreprocessor(LQ),r.registerComponentModel(Tx),r.registerComponentView(oJ),lf(r,"parallel",Tx,hJ),cJ(r)}function vJ(r){Gt(w4),r.registerChartView(bQ),r.registerSeriesModel(TQ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,MQ)}var dJ=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),pJ=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new dJ},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){Ei(this)},e.prototype.downplay=function(){Ii(this)},e})(Ut),gJ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),l=this.group,s=t.layoutInfo,u=s.width,c=s.height,h=t.getData(),d=t.getData("edge"),p=t.get("orient");this._model=t,l.removeAll(),l.x=s.x,l.y=s.y,o.eachEdge(function(y){var m=new pJ,_=Mt(m);_.dataIndex=y.dataIndex,_.seriesIndex=t.seriesIndex,_.dataType="edge";var b=y.getModel(),x=b.getModel("lineStyle"),w=x.get("curveness"),A=y.node1.getLayout(),M=y.node1.getModel(),D=M.get("localX"),L=M.get("localY"),R=y.node2.getLayout(),E=y.node2.getModel(),O=E.get("localX"),P=E.get("localY"),k=y.getLayout(),V,H,U,z,Y,j,$,tt;m.shape.extent=Math.max(1,k.dy),m.shape.orient=p,p==="vertical"?(V=(D!=null?D*u:A.x)+k.sy,H=(L!=null?L*c:A.y)+A.dy,U=(O!=null?O*u:R.x)+k.ty,z=P!=null?P*c:R.y,Y=V,j=H*(1-w)+z*w,$=U,tt=H*w+z*(1-w)):(V=(D!=null?D*u:A.x)+A.dx,H=(L!=null?L*c:A.y)+k.sy,U=O!=null?O*u:R.x,z=(P!=null?P*c:R.y)+k.ty,Y=V*(1-w)+U*w,j=H,$=V*w+U*(1-w),tt=z),m.setShape({x1:V,y1:H,x2:U,y2:z,cpx1:Y,cpy1:j,cpx2:$,cpy2:tt}),m.useStyle(x.getItemStyle()),uO(m.style,p,y);var F=""+b.get("value"),W=nr(b,"edgeLabel");xr(m,W,{labelFetcher:{getFormattedLabel:function(ct,bt,Pt,wt,pt,Ot){return t.getFormattedLabel(ct,bt,"edge",wt,pn(pt,W.normal&&W.normal.get("formatter"),F),Ot)}},labelDataIndex:y.dataIndex,defaultText:F}),m.setTextConfig({position:"inside"});var at=b.getModel("emphasis");br(m,b,"lineStyle",function(ct){var bt=ct.getItemStyle();return uO(bt,p,y),bt}),l.add(m),d.setItemGraphicEl(y.dataIndex,m);var lt=at.get("focus");Ee(m,lt==="adjacency"?y.getAdjacentDataIndices():lt==="trajectory"?y.getTrajectoryDataIndices():lt,at.get("blurScope"),at.get("disabled"))}),o.eachNode(function(y){var m=y.getLayout(),_=y.getModel(),b=_.get("localX"),x=_.get("localY"),w=_.getModel("emphasis"),A=_.get(["itemStyle","borderRadius"])||0,M=new Wt({shape:{x:b!=null?b*u:m.x,y:x!=null?x*c:m.y,width:m.dx,height:m.dy,r:A},style:_.getModel("itemStyle").getItemStyle(),z2:10});xr(M,nr(_),{labelFetcher:{getFormattedLabel:function(L,R){return t.getFormattedLabel(L,R,"node")}},labelDataIndex:y.dataIndex,defaultText:y.id}),M.disableLabelAnimation=!0,M.setStyle("fill",y.getVisual("color")),M.setStyle("decal",y.getVisual("style").decal),br(M,_),l.add(M),h.setItemGraphicEl(y.dataIndex,M),Mt(M).dataType="node";var D=w.get("focus");Ee(M,D==="adjacency"?y.getAdjacentDataIndices():D==="trajectory"?y.getTrajectoryDataIndices():D,w.get("blurScope"),w.get("disabled"))}),h.eachItemGraphicEl(function(y,m){var _=h.getItemModel(m);_.get("draggable")&&(y.drift=function(b,x){i._focusAdjacencyDisabled=!0,this.shape.x+=b,this.shape.y+=x,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(m),localX:this.shape.x/u,localY:this.shape.y/c})},y.ondragend=function(){i._focusAdjacencyDisabled=!1},y.draggable=!0,y.cursor="move")}),!this._data&&t.isAnimationEnabled()&&l.setClipPath(yJ(l.getBoundingRect(),t,function(){l.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e})(fe);function uO(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");vt(a)&&vt(n)&&(r.fill=new gf(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function yJ(r,e,t){var a=new Wt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return De(a,{shape:{width:r.width+20}},e,t),a}var mJ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var l=this.levelModels,s=0;s<o.length;s++)o[s].depth!=null&&o[s].depth>=0&&(l[o[s].depth]=new ee(o[s],this,a));var u=i4(i,n,this,!0,c);return u.data;function c(h,d){h.wrapMethod("getItemModel",function(p,y){var m=p.parentModel,_=m.getData().getItemLayout(y);if(_){var b=_.depth,x=m.levelModels[b];x&&(p.parentModel=x)}return p}),d.wrapMethod("getItemModel",function(p,y){var m=p.parentModel,_=m.getGraph().getEdgeByIndex(y),b=_.node1.getLayout();if(b){var x=b.depth,w=m.levelModels[x];w&&(p.parentModel=w)}return p})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(p){return isNaN(p)||p==null}if(n==="edge"){var o=this.getDataParams(t,n),l=o.data,s=o.value,u=l.source+" -- "+l.target;return ir("nameValue",{name:u,value:s,noValue:i(s)})}else{var c=this.getGraph().getNodeByIndex(t),h=c.getLayout().value,d=this.getDataParams(t,n).data.name;return ir("nameValue",{name:d!=null?d+"":null,value:h,noValue:i(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},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})(pe);function _J(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=SJ(t,e);t.layoutInfo=i;var o=i.width,l=i.height,s=t.getGraph(),u=s.nodes,c=s.edges;xJ(u);var h=te(u,function(m){return m.getLayout().value===0}),d=h.length!==0?0:t.get("layoutIterations"),p=t.get("orient"),y=t.get("nodeAlign");bJ(u,c,a,n,o,l,d,p,y)})}function SJ(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function bJ(r,e,t,a,n,i,o,l,s){wJ(r,e,t,n,i,l,s),DJ(r,e,i,n,a,o,l),zJ(r,l)}function xJ(r){N(r,function(e){var t=zo(e.outEdges,sy),a=zo(e.inEdges,sy),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function wJ(r,e,t,a,n,i,o){for(var l=[],s=[],u=[],c=[],h=0,d=0;d<e.length;d++)l[d]=1;for(var d=0;d<r.length;d++)s[d]=r[d].inEdges.length,s[d]===0&&u.push(r[d]);for(var p=-1;u.length;){for(var y=0;y<u.length;y++){var m=u[y],_=m.hostGraph.data.getRawDataItem(m.dataIndex),b=_.depth!=null&&_.depth>=0;b&&_.depth>p&&(p=_.depth),m.setLayout({depth:b?_.depth:h},!0),i==="vertical"?m.setLayout({dy:t},!0):m.setLayout({dx:t},!0);for(var x=0;x<m.outEdges.length;x++){var w=m.outEdges[x],A=e.indexOf(w);l[A]=0;var M=w.node2,D=r.indexOf(M);--s[D]===0&&c.indexOf(M)<0&&c.push(M)}}++h,u=c,c=[]}for(var d=0;d<l.length;d++)if(l[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var L=p>h-1?p:h-1;o&&o!=="left"&&TJ(r,o,i,L);var R=i==="vertical"?(n-t)/L:(a-t)/L;CJ(r,R,i)}function T4(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function TJ(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var l=0;l<i.length;l++){var s=i[l];s.setLayout({skNodeHeight:o},!0);for(var u=0;u<s.inEdges.length;u++){var c=s.inEdges[u];n.indexOf(c.node1)<0&&n.push(c.node1)}}i=n,n=[],++o}N(r,function(h){T4(h)||h.setLayout({depth:Math.max(0,a-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&AJ(r,a)}function AJ(r,e){N(r,function(t){!T4(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function CJ(r,e,t){N(r,function(a){var n=a.getLayout().depth*e;t==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function DJ(r,e,t,a,n,i,o){var l=MJ(r,o);LJ(l,e,t,a,n,o),bS(l,n,t,a,o);for(var s=1;i>0;i--)s*=.99,RJ(l,s,o),bS(l,n,t,a,o),PJ(l,s,o),bS(l,n,t,a,o)}function MJ(r,e){var t=[],a=e==="vertical"?"y":"x",n=Mb(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),N(n.keys,function(i){t.push(n.buckets.get(i))}),t}function LJ(r,e,t,a,n,i){var o=1/0;N(r,function(l){var s=l.length,u=0;N(l,function(h){u+=h.getLayout().value});var c=i==="vertical"?(a-(s-1)*n)/u:(t-(s-1)*n)/u;c<o&&(o=c)}),N(r,function(l){N(l,function(s,u){var c=s.getLayout().value*o;i==="vertical"?(s.setLayout({x:u},!0),s.setLayout({dx:c},!0)):(s.setLayout({y:u},!0),s.setLayout({dy:c},!0))})}),N(e,function(l){var s=+l.getValue()*o;l.setLayout({dy:s},!0)})}function bS(r,e,t,a,n){var i=n==="vertical"?"x":"y";N(r,function(o){o.sort(function(m,_){return m.getLayout()[i]-_.getLayout()[i]});for(var l,s,u,c=0,h=o.length,d=n==="vertical"?"dx":"dy",p=0;p<h;p++)s=o[p],u=c-s.getLayout()[i],u>0&&(l=s.getLayout()[i]+u,n==="vertical"?s.setLayout({x:l},!0):s.setLayout({y:l},!0)),c=s.getLayout()[i]+s.getLayout()[d]+e;var y=n==="vertical"?a:t;if(u=c-e-y,u>0){l=s.getLayout()[i]-u,n==="vertical"?s.setLayout({x:l},!0):s.setLayout({y:l},!0),c=l;for(var p=h-2;p>=0;--p)s=o[p],u=s.getLayout()[i]+s.getLayout()[d]+e-c,u>0&&(l=s.getLayout()[i]-u,n==="vertical"?s.setLayout({x:l},!0):s.setLayout({y:l},!0)),c=s.getLayout()[i]}})}function RJ(r,e,t){N(r.slice().reverse(),function(a){N(a,function(n){if(n.outEdges.length){var i=zo(n.outEdges,EJ,t)/zo(n.outEdges,sy);if(isNaN(i)){var o=n.outEdges.length;i=o?zo(n.outEdges,IJ,t)/o:0}if(t==="vertical"){var l=n.getLayout().x+(i-Ho(n,t))*e;n.setLayout({x:l},!0)}else{var s=n.getLayout().y+(i-Ho(n,t))*e;n.setLayout({y:s},!0)}}})})}function EJ(r,e){return Ho(r.node2,e)*r.getValue()}function IJ(r,e){return Ho(r.node2,e)}function OJ(r,e){return Ho(r.node1,e)*r.getValue()}function NJ(r,e){return Ho(r.node1,e)}function Ho(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function sy(r){return r.getValue()}function zo(r,e,t){for(var a=0,n=r.length,i=-1;++i<n;){var o=+e(r[i],t);isNaN(o)||(a+=o)}return a}function PJ(r,e,t){N(r,function(a){N(a,function(n){if(n.inEdges.length){var i=zo(n.inEdges,OJ,t)/zo(n.inEdges,sy);if(isNaN(i)){var o=n.inEdges.length;i=o?zo(n.inEdges,NJ,t)/o:0}if(t==="vertical"){var l=n.getLayout().x+(i-Ho(n,t))*e;n.setLayout({x:l},!0)}else{var s=n.getLayout().y+(i-Ho(n,t))*e;n.setLayout({y:s},!0)}}})})}function zJ(r,e){var t=e==="vertical"?"x":"y";N(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),N(r,function(a){var n=0,i=0;N(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),N(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function kJ(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),a=t.nodes,n=t.edges;if(a.length){var i=1/0,o=-1/0;N(a,function(l){var s=l.getLayout().value;s<i&&(i=s),s>o&&(o=s)}),N(a,function(l){var s=new ar({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=s.mapValueToVisual(l.getLayout().value),c=l.getModel().get(["itemStyle","color"]);c!=null?(l.setVisual("color",c),l.setVisual("style",{fill:c})):(l.setVisual("color",u),l.setVisual("style",{fill:u}))})}n.length&&N(n,function(l){var s=l.getModel().get("lineStyle");l.setVisual("style",s)})})}function BJ(r){r.registerChartView(gJ),r.registerSeriesModel(mJ),r.registerLayout(_J),r.registerVisual(kJ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var A4=(function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),l=i.get("type"),s;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),s=!this._hasEncodeRule("x")):l==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),s=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[c],d=u[1-c],p=[n,i],y=p[c].get("type"),m=p[1-c].get("type"),_=e.data;if(_&&s){var b=[];N(_,function(A,M){var D;it(A)?(D=A.slice(),A.unshift(M)):it(A.value)?(D=rt({},A),D.value=D.value.slice(),A.value.unshift(M)):D=A,b.push(D)}),e.data=b}var x=this.defaultValueDimensions,w=[{name:h,type:Kg(y),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Kg(m),dimsDef:x.slice()}];return Rf(this,{coordDimensions:w,dimensionsCount:x.length+1,encodeDefaulter:Et(Jz,w,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r})(),C4=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return 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})(pe);ze(C4,A4,!0);var VJ=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,l=this._data;this._data||o.removeAll();var s=t.get("layout")==="horizontal"?1:0;i.diff(l).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),h=fO(c,i,u,s,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,c){var h=l.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(h);return}var d=i.getItemLayout(u);h?(xn(h),D4(d,h,i,u)):h=fO(d,i,u,s),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var c=l.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e})(fe),GJ=(function(){function r(){}return r})(),HJ=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new GJ},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e})(Ut);function fO(r,e,t,a,n){var i=r.ends,o=new HJ({shape:{points:n?FJ(i,a,r):i}});return D4(r,o,e,t,n),o}function D4(r,e,t,a,n){var i=t.hostModel,o=Ss[n?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,a),e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.z2=100;var l=t.getItemModel(a),s=l.getModel("emphasis");br(e,l),Ee(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function FJ(r,e,t){return ot(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}var Ih=N;function UJ(r){var e=YJ(r);Ih(e,function(t){var a=t.seriesModels;a.length&&(jJ(t),Ih(a,function(n,i){XJ(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}function YJ(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=Bt(t,n);i<0&&(i=t.length,t[i]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(a)}),e}function jJ(r){var e=r.axis,t=r.seriesModels,a=t.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],l;if(e.type==="category")l=e.getBandWidth();else{var s=0;Ih(t,function(y){s=Math.max(s,y.getData().count())});var u=e.getExtent();l=Math.abs(u[1]-u[0])/s}Ih(t,function(y){var m=y.get("boxWidth");it(m)||(m=[m,m]),o.push([ht(m[0],l)||0,ht(m[1],l)||0])});var c=l*.8-2,h=c/a*.3,d=(c-h*(a-1))/a,p=d/2-c/2;Ih(t,function(y,m){i.push(p),p+=h+d,n.push(Math.min(Math.max(d,o[m][0]),o[m][1]))})}function XJ(r,e,t){var a=r.coordinateSystem,n=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,l=1-o,s=["x","y"],u=n.mapDimension(s[o]),c=n.mapDimensionsAll(s[l]);if(u==null||c.length<5)return;for(var h=0;h<n.count();h++){var d=n.get(u,h),p=w(d,c[2],h),y=w(d,c[0],h),m=w(d,c[1],h),_=w(d,c[3],h),b=w(d,c[4],h),x=[];A(x,m,!1),A(x,_,!0),x.push(y,m,b,_),M(x,y),M(x,b),M(x,p),n.setItemLayout(h,{initBaseline:p[l],ends:x})}function w(D,L,R){var E=n.get(L,R),O=[];O[o]=D,O[l]=E;var P;return isNaN(D)||isNaN(E)?P=[NaN,NaN]:(P=a.dataToPoint(O),P[o]+=e),P}function A(D,L,R){var E=L.slice(),O=L.slice();E[o]+=i,O[o]-=i,R?D.push(E,O):D.push(O,E)}function M(D,L){var R=L.slice(),E=L.slice();R[o]-=i,E[o]+=i,D.push(R,E)}}function WJ(r,e){e=e||{};for(var t=[],a=[],n=e.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var l=ma(r[o].slice()),s=lg(l,.25),u=lg(l,.5),c=lg(l,.75),h=l[0],d=l[l.length-1],p=(n??1.5)*(c-s),y=i?h:Math.max(h,s-p),m=i?d:Math.min(d,c+p),_=e.itemNameFormatter,b=_t(_)?_({value:o}):vt(_)?_.replace("{value}",o+""):o+"";t.push([b,y,s,u,c,m]);for(var x=0;x<l.length;x++){var w=l[x];if(w<y||w>m){var A=[b,w];a.push(A)}}}return{boxData:t,outliers:a}}var ZJ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Pr){var a="";le(a)}var n=WJ(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function qJ(r){r.registerSeriesModel(C4),r.registerChartView(VJ),r.registerLayout(UJ),r.registerTransform(ZJ)}var $J=["itemStyle","borderColor"],KJ=["itemStyle","borderColor0"],QJ=["itemStyle","borderColorDoji"],JJ=["itemStyle","color"],ttt=["itemStyle","color0"];function YT(r,e){return e.get(r>0?JJ:ttt)}function jT(r,e){return e.get(r===0?QJ:r>0?$J:KJ)}var ett={seriesType:"candlestick",plan:Tf(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),l=n.getItemLayout(i).sign,s=o.getItemStyle();s.fill=YT(l,o),s.stroke=jT(l,o)||s.fill;var u=n.ensureUniqueItemVisual(i,"style");rt(u,s)}}}}}},rtt=["color","borderColor"],att=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){jo(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),l=t.get("clip",!0),s=t.coordinateSystem,u=s.getArea&&s.getArea();this._data||i.removeAll(),a.diff(n).add(function(c){if(a.hasValue(c)){var h=a.getItemLayout(c);if(l&&cO(u,h))return;var d=xS(h,c,!0);De(d,{shape:{points:h.ends}},t,c),wS(d,a,c,o),i.add(d),a.setItemGraphicEl(c,d)}}).update(function(c,h){var d=n.getItemGraphicEl(h);if(!a.hasValue(c)){i.remove(d);return}var p=a.getItemLayout(c);if(l&&cO(u,p)){i.remove(d);return}d?(Jt(d,{shape:{points:p.ends}},t,c),xn(d)):d=xS(p),wS(d,a,c,o),i.add(d),a.setItemGraphicEl(c,d)}).remove(function(c){var h=n.getItemGraphicEl(c);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),hO(t,this.group);var a=t.get("clip",!0)?Cv(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var l=n.getItemLayout(o),s=xS(l);wS(s,n,o,i),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},e.prototype._incrementalRenderLarge=function(t,a){hO(a,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})(fe),ntt=(function(){function r(){}return r})(),itt=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new ntt},e.prototype.buildPath=function(t,a){var n=a.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})(Ut);function xS(r,e,t){var a=r.ends;return new itt({shape:{points:t?ott(a,r):a},z2:100})}function cO(r,e){for(var t=!0,a=0;a<e.ends.length;a++)if(r.contain(e.ends[a][0],e.ends[a][1])){t=!1;break}return t}function wS(r,e,t,a){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,br(r,n);var i=e.getItemLayout(t).sign;N(r.states,function(l,s){var u=n.getModel(s),c=YT(i,u),h=jT(i,u)||c,d=l.style||(l.style={});c&&(d.fill=c),h&&(d.stroke=h)});var o=n.getModel("emphasis");Ee(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function ott(r,e){return ot(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var ltt=(function(){function r(){}return r})(),TS=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new ltt},e.prototype.buildPath=function(t,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e})(Ut);function hO(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new TS({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var l=new TS({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(l);var s=new TS({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(s),AS(1,o,r),AS(-1,l,r),AS(0,s,r),a&&(o.incremental=!0,l.incremental=!0),t&&t.push(o,l)}function AS(r,e,t,a){var n=jT(r,t)||YT(r,t),i=t.getModel("itemStyle").getItemStyle(rtt);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var M4=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.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:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(pe);ze(M4,A4,!0);function stt(r){!r||!it(r.series)||N(r.series,function(e){xt(e)&&e.type==="k"&&(e.type="candlestick")})}var utt={seriesType:"candlestick",plan:Tf(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=ftt(r,t),n=0,i=1,o=["x","y"],l=t.getDimensionIndex(t.mapDimension(o[n])),s=ot(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=s[0],c=s[1],h=s[2],d=s[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),l<0||s.length<4)return;return{progress:r.pipelineContext.large?y:p};function p(m,_){for(var b,x=_.getStore();(b=m.next())!=null;){var w=x.get(l,b),A=x.get(u,b),M=x.get(c,b),D=x.get(h,b),L=x.get(d,b),R=Math.min(A,M),E=Math.max(A,M),O=Y(R,w),P=Y(E,w),k=Y(D,w),V=Y(L,w),H=[];j(H,P,0),j(H,O,1),H.push(tt(V),tt(P),tt(k),tt(O));var U=_.getItemModel(b),z=!!U.get(["itemStyle","borderColorDoji"]);_.setItemLayout(b,{sign:vO(x,b,A,M,c,z),initBaseline:A>M?P[i]:O[i],ends:H,brushRect:$(D,L,w)})}function Y(F,W){var at=[];return at[n]=W,at[i]=F,isNaN(W)||isNaN(F)?[NaN,NaN]:e.dataToPoint(at)}function j(F,W,at){var lt=W.slice(),ct=W.slice();lt[n]=fg(lt[n]+a/2,1,!1),ct[n]=fg(ct[n]-a/2,1,!0),at?F.push(lt,ct):F.push(ct,lt)}function $(F,W,at){var lt=Y(F,at),ct=Y(W,at);return lt[n]-=a/2,ct[n]-=a/2,{x:lt[0],y:lt[1],width:a,height:ct[1]-lt[1]}}function tt(F){return F[n]=fg(F[n],1),F}}function y(m,_){for(var b=Vn(m.count*4),x=0,w,A=[],M=[],D,L=_.getStore(),R=!!r.get(["itemStyle","borderColorDoji"]);(D=m.next())!=null;){var E=L.get(l,D),O=L.get(u,D),P=L.get(c,D),k=L.get(h,D),V=L.get(d,D);if(isNaN(E)||isNaN(k)||isNaN(V)){b[x++]=NaN,x+=3;continue}b[x++]=vO(L,D,O,P,c,R),A[n]=E,A[i]=k,w=e.dataToPoint(A,null,M),b[x++]=w?w[0]:NaN,b[x++]=w?w[1]:NaN,A[i]=V,w=e.dataToPoint(A,null,M),b[x++]=w?w[1]:NaN}_.setLayout("largePoints",b)}}};function vO(r,e,t,a,n,i){var o;return t>a?o=-1:t<a?o=1:o=i?0:e>0?r.get(n,e-1)<=a?1:-1:1,o}function ftt(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=ht(Rt(r.get("barMaxWidth"),n),n),o=ht(Rt(r.get("barMinWidth"),1),n),l=r.get("barWidth");return l!=null?ht(l,n):Math.max(Math.min(n/2,i),o)}function ctt(r){r.registerChartView(att),r.registerSeriesModel(M4),r.registerPreprocessor(stt),r.registerVisual(ett),r.registerLayout(utt)}function dO(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var htt=(function(r){Z(e,r);function e(t,a){var n=r.call(this)||this,i=new Tv(t,a),o=new Ct;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),l=0;l<i;l++){var s=Ge(a,-1,-1,2,2,n);s.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-l/i*t.period+t.effectOffset;s.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),s.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(s)}dO(o,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var l=i[o];if(a[l]!==t[l]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}dO(n,t)},e.prototype.highlight=function(){Ei(this)},e.prototype.downplay=function(){Ii(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,a){var n=this,i=t.hostModel;this.childAt(0).updateData(t,a);var o=this.childAt(1),l=t.getItemModel(a),s=t.getItemVisual(a,"symbol"),u=Cf(t.getItemVisual(a,"symbolSize")),c=t.getItemVisual(a,"style"),h=c&&c.fill,d=l.getModel("emphasis");o.setScale(u),o.traverse(function(_){_.setStyle("fill",h)});var p=xs(t.getItemVisual(a,"symbolOffset"),u);p&&(o.x=p[0],o.y=p[1]);var y=t.getItemVisual(a,"symbolRotate");o.rotation=(y||0)*Math.PI/180||0;var m={};m.showEffectOn=i.get("showEffectOn"),m.rippleScale=l.get(["rippleEffect","scale"]),m.brushType=l.get(["rippleEffect","brushType"]),m.period=l.get(["rippleEffect","period"])*1e3,m.effectOffset=a/t.count(),m.z=i.getShallow("z")||0,m.zlevel=i.getShallow("zlevel")||0,m.symbolType=s,m.color=h,m.rippleEffectColor=l.get(["rippleEffect","color"]),m.rippleNumber=l.get(["rippleEffect","number"]),m.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(m):this.startEffectAnimation(m),this._effectCfg=m):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(_){_==="emphasis"?m.showEffectOn!=="render"&&n.startEffectAnimation(m):_==="normal"&&m.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=m,Ee(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(Ct),vtt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Av(htt)},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,a,n){var i=t.getData();this.group.dirty();var o=Dv("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var a=t.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=cP(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(fe),dtt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return qn(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,a,n){return n.point(a.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})(pe);function ptt(r){r.registerChartView(vtt),r.registerSeriesModel(dtt),r.registerLayout(Dv("effectScatter"))}var L4=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this)||this;return i.add(i.createLine(t,a,n)),i._updateEffectSymbol(t,a),i}return e.prototype.createLine=function(t,a,n){return new PT(t,a,n)},e.prototype._updateEffectSymbol=function(t,a){var n=t.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),l=i.get("symbol");it(o)||(o=[o,o]);var s=t.getItemVisual(a,"style"),u=i.get("color")||s&&s.stroke,c=this.childAt(1);this._symbolType!==l&&(this.remove(c),c=Ge(l,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=l,this._symbolScale=o,this._updateEffectAnimation(t,i,a))},e.prototype._updateEffectAnimation=function(t,a,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),l=a.get("period")*1e3,s=a.get("loop"),u=a.get("roundTrip"),c=a.get("constantSpeed"),h=er(a.get("delay"),function(p){return p/t.count()*l/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(l=this._getLineLength(i)/c*1e3),l!==this._period||s!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;_t(h)?d=h(n):d=h,i.__t>0&&(d=-l*i.__t),this._animateSymbol(i,l,d,s,u)}this._period=l,this._loop=s,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var l=this,s=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){l._updateSymbolPosition(t)});i||s.done(function(){l.remove(t)}),s.start()}},e.prototype._getLineLength=function(t){return wi(t.__p1,t.__cp1)+wi(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,l=[t.x,t.y],s=l.slice(),u=cr,c=hb;l[0]=u(a[0],i[0],n[0],o),l[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?c(a[0],i[0],n[0],o):c(n[0],i[0],a[0],1-o),d=t.__t<1?c(a[1],i[1],n[1],o):c(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(d,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=wi(s,l)*1.05,o===1&&(l[0]=s[0]+(l[0]-s[0])/2,l[1]=s[1]+(l[1]-s[1])/2)):t.__lastT===1?t.scaleY=2*wi(a,l):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=l[0],t.y=l[1]},e.prototype.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var n=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,n,a)},e})(Ct),R4=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createPolyline(t,a,n),i}return e.prototype._createPolyline=function(t,a,n){var i=t.getItemLayout(a),o=new zr({shape:{points:i}});this.add(o),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childAt(0),l={shape:{points:t.getItemLayout(a)}};Jt(o,l,i,a),this._updateCommonStl(t,a,n)},e.prototype._updateCommonStl=function(t,a,n){var i=this.childAt(0),o=t.getItemModel(a),l=n&&n.emphasisLineStyle,s=n&&n.focus,u=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var h=o.getModel("emphasis");l=h.getModel("lineStyle").getLineStyle(),c=h.get("disabled"),s=h.get("focus"),u=h.get("blurScope")}i.useStyle(t.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=l,Ee(this,s,u,c)},e.prototype.updateLayout=function(t,a){var n=this.childAt(0);n.setShape("points",t.getItemLayout(a))},e})(Ct),gtt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,a,n){return new R4(t,a,n)},e.prototype._updateAnimationPoints=function(t,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var l=a[o-1],s=a[o];i+=wi(l,s),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var a=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var l=this._lastFrame,s;if(a<this._lastFramePercent){var u=Math.min(l+1,o-1);for(s=u;s>=0&&!(i[s]<=a);s--);s=Math.min(s,o-2)}else{for(s=l;s<o&&!(i[s]>a);s++);s=Math.min(s-1,o-2)}var c=(a-i[s])/(i[s+1]-i[s]),h=n[s],d=n[s+1];t.x=h[0]*(1-c)+c*d[0],t.y=h[1]*(1-c)+c*d[1];var p=t.__t<1?d[0]-h[0]:h[0]-d[0],y=t.__t<1?d[1]-h[1]:h[1]-d[1];t.rotation=-Math.atan2(y,p)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=a,t.ignore=!1}},e})(L4),ytt=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),mtt=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return 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 ytt},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var l=n[o++];if(l>0){t.moveTo(n[o++],n[o++]);for(var s=1;s<l;s++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],c=n[o++],h=n[o++],d=n[o++];if(t.moveTo(u,c),i>0){var p=(u+h)/2-(c-d)*i,y=(c+d)/2-(h-u)*i;t.quadraticCurveTo(p,y,h,d)}else t.lineTo(h,d)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,l=this.style.lineWidth;if(n.polyline)for(var s=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var h=i[u++],d=i[u++],p=1;p<c;p++){var y=i[u++],m=i[u++];if(bo(h,d,y,m,l,t,a))return s}s++}else for(var s=0,u=0;u<i.length;){var h=i[u++],d=i[u++],y=i[u++],m=i[u++];if(o>0){var _=(h+y)/2-(d-m)*o,b=(d+m)/2-(y-h)*o;if(rz(h,d,_,b,y,m,l,t,a))return s}else if(bo(h,d,y,m,l,t,a))return s;s++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,l=-1/0,s=-1/0,u=0;u<n.length;){var c=n[u++],h=n[u++];i=Math.min(c,i),l=Math.max(c,l),o=Math.min(h,o),s=Math.max(h,s)}t=this._rect=new kt(i,o,l,s)}return t},e})(Ut),_tt=(function(){function r(){this.group=new Ct}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var a=this._newAdded[0],n=t.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,l=new Float32Array(o+n.length);l.set(i),l.set(n,o),a.setShape({segs:l})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:n}),this._setCommon(s,t),s.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new mtt({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Mt(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(l){o.dataIndex=null;var s=e.hoverDataIdx;s>0&&(o.dataIndex=s+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),E4={seriesType:"lines",plan:Tf(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var l=void 0,s=n.end-n.start;if(t){for(var u=0,c=n.start;c<n.end;c++)u+=r.getLineCoordsCount(c);l=new Float32Array(s+u*2)}else l=new Float32Array(s*4);for(var h=0,d=[],c=n.start;c<n.end;c++){var p=r.getLineCoords(c,o);t&&(l[h++]=p);for(var y=0;y<p;y++)d=e.dataToPoint(o[y],!1,d),l[h++]=d[0],l[h++]=d[1]}i.setLayout("linesPoints",l)}else for(var c=n.start;c<n.end;c++){var m=i.getItemModel(c),p=r.getLineCoords(c,o),_=[];if(t)for(var b=0;b<p;b++)_.push(e.dataToPoint(o[b]));else{_[0]=e.dataToPoint(o[0]),_[1]=e.dataToPoint(o[1]);var x=m.get(["lineStyle","curveness"]);+x&&(_[2]=[(_[0][0]+_[1][0])/2-(_[0][1]-_[1][1])*x,(_[0][1]+_[1][1])/2-(_[1][0]-_[0][0])*x])}i.setItemLayout(c,_)}}}}}},Stt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t),l=t.get("zlevel"),s=t.get(["effect","trailLength"]),u=n.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(l).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&s>0&&(c||u.configLayer(l,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&Cv(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=l,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var l=E4.reset(t,a,n);l.progress&&l.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),l=a.pipelineContext,s=l.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||s!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=s?new _tt:new zT(o?i?gtt:R4:i?L4:PT),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=s),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e})(fe),btt=typeof Uint32Array>"u"?Array:Uint32Array,xtt=typeof Float64Array>"u"?Array:Float64Array;function pO(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=ot(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Ty([n,t[0],t[1]])}))}var wtt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],pO(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(pO(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Ju(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Ju(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var l=this._getCoordsFromItemModel(t),o=0;o<l.length;o++)a[o]=a[o]||[],a[o][0]=l[o][0],a[o][1]=l[o][1];return l.length}},e.prototype._processFlatCoordsArray=function(t){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Qt(t[0])){for(var n=t.length,i=new btt(n),o=new xtt(n),l=0,s=0,u=0,c=0;c<n;){u++;var h=t[c++];i[s++]=l+a,i[s++]=h;for(var d=0;d<h;d++){var p=t[c++],y=t[c++];o[l++]=p,o[l++]=y}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,s),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){var n=new Er(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(i,o,l,s){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[s]:u}),n},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getItemModel(t),l=o.get("name");if(l)return l;var s=o.get("fromName"),u=o.get("toName"),c=[];return s!=null&&c.push(s),u!=null&&c.push(u),ir("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},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})(pe);function Yp(r){return r instanceof Array||(r=[r,r]),r}var Ttt={seriesType:"lines",reset:function(r){var e=Yp(r.get("symbol")),t=Yp(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var l=i.getItemModel(o),s=Yp(l.getShallow("symbol",!0)),u=Yp(l.getShallow("symbolSize",!0));s[0]&&i.setItemVisual(o,"fromSymbol",s[0]),s[1]&&i.setItemVisual(o,"toSymbol",s[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};function Att(r){r.registerChartView(Stt),r.registerSeriesModel(wtt),r.registerLayout(E4),r.registerVisual(Ttt)}var Ctt=256,Dtt=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=_n.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var l=this._getBrush(),s=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,d=h.getContext("2d"),p=e.length;h.width=t,h.height=a;for(var y=0;y<p;++y){var m=e[y],_=m[0],b=m[1],x=m[2],w=n(x);d.globalAlpha=w,d.drawImage(l,_-c,b-c)}if(!h.width||!h.height)return h;for(var A=d.getImageData(0,0,h.width,h.height),M=A.data,D=0,L=M.length,R=this.minOpacity,E=this.maxOpacity,O=E-R;D<L;){var w=M[D+3]/256,P=Math.floor(w*(Ctt-1))*4;if(w>0){var k=o(w)?s:u;w>0&&(w=w*O+R),M[D++]=k[P],M[D++]=k[P+1],M[D++]=k[P+2],M[D++]=k[P+3]*w*256}else D+=4}return d.putImageData(A,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=_n.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,l=0;l<256;l++)e[t](l/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function Mtt(r,e,t){var a=r[1]-r[0];e=ot(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var l;for(l=i;l<n;l++){var s=e[l].interval;if(s[0]<=o&&o<=s[1]){i=l;break}}if(l===n)for(l=i-1;l>=0;l--){var s=e[l].interval;if(s[0]<=o&&o<=s[1]){i=l;break}}return l>=0&&l<n&&t[l]}}function Ltt(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}function gO(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Rtt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(l){l.eachTargetSeries(function(s){s===t&&(i=l)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):gO(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(gO(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){jo(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var l=t.coordinateSystem,s=ws(l,"cartesian2d"),u,c,h,d;if(s){var p=l.getAxis("x"),y=l.getAxis("y");u=p.getBandWidth()+.5,c=y.getBandWidth()+.5,h=p.scale.getExtent(),d=y.scale.getExtent()}for(var m=this.group,_=t.getData(),b=t.getModel(["emphasis","itemStyle"]).getItemStyle(),x=t.getModel(["blur","itemStyle"]).getItemStyle(),w=t.getModel(["select","itemStyle"]).getItemStyle(),A=t.get(["itemStyle","borderRadius"]),M=nr(t),D=t.getModel("emphasis"),L=D.get("focus"),R=D.get("blurScope"),E=D.get("disabled"),O=s?[_.mapDimension("x"),_.mapDimension("y"),_.mapDimension("value")]:[_.mapDimension("time"),_.mapDimension("value")],P=n;P<i;P++){var k=void 0,V=_.getItemVisual(P,"style");if(s){var H=_.get(O[0],P),U=_.get(O[1],P);if(isNaN(_.get(O[2],P))||isNaN(H)||isNaN(U)||H<h[0]||H>h[1]||U<d[0]||U>d[1])continue;var z=l.dataToPoint([H,U]);k=new Wt({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:V})}else{if(isNaN(_.get(O[1],P)))continue;k=new Wt({z2:1,shape:l.dataToRect([_.get(O[0],P)]).contentShape,style:V})}if(_.hasItemOption){var Y=_.getItemModel(P),j=Y.getModel("emphasis");b=j.getModel("itemStyle").getItemStyle(),x=Y.getModel(["blur","itemStyle"]).getItemStyle(),w=Y.getModel(["select","itemStyle"]).getItemStyle(),A=Y.get(["itemStyle","borderRadius"]),L=j.get("focus"),R=j.get("blurScope"),E=j.get("disabled"),M=nr(Y)}k.shape.r=A;var $=t.getRawValue(P),tt="-";$&&$[2]!=null&&(tt=$[2]+""),xr(k,M,{labelFetcher:t,labelDataIndex:P,defaultOpacity:V.opacity,defaultText:tt}),k.ensureState("emphasis").style=b,k.ensureState("blur").style=x,k.ensureState("select").style=w,Ee(k,L,R,E),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),m.add(k),_.setItemGraphicEl(P,k),this._progressiveEls&&this._progressiveEls.push(k)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,l=n.targetVisuals.outOfRange,s=a.getData(),u=this._hmLayer||this._hmLayer||new Dtt;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var c=t.getViewRect().clone(),h=t.getRoamTransform();c.applyTransform(h);var d=Math.max(c.x,0),p=Math.max(c.y,0),y=Math.min(c.width+c.x,i.getWidth()),m=Math.min(c.height+c.y,i.getHeight()),_=y-d,b=m-p,x=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],w=s.mapArray(x,function(L,R,E){var O=t.dataToPoint([L,R]);return O[0]-=d,O[1]-=p,O.push(E),O}),A=n.getExtent(),M=n.type==="visualMap.continuous"?Ltt(A,n.option.range):Mtt(A,n.getPieceList(),n.option.selected);u.update(w,_,b,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:l.color.getColorMapper()},M);var D=new or({style:{width:_,height:b,x:d,y:p,image:u.canvas},silent:!0});this.group.add(D)},e.type="heatmap",e})(fe),Ett=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return qn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=wf.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},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})(pe);function Itt(r){r.registerChartView(Rtt),r.registerSeriesModel(Ett)}var Ott=["itemStyle","borderWidth"],yO=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],CS=new Wn,Ntt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),l=this._data,s=t.coordinateSystem,u=s.getBaseAxis(),c=u.isHorizontal(),h=s.master.getRect(),d={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:yO[+c],categoryDim:yO[1-+c]};o.diff(l).add(function(y){if(o.hasValue(y)){var m=_O(o,y),_=mO(o,y,m,d),b=SO(o,d,_);o.setItemGraphicEl(y,b),i.add(b),xO(b,d,_)}}).update(function(y,m){var _=l.getItemGraphicEl(m);if(!o.hasValue(y)){i.remove(_);return}var b=_O(o,y),x=mO(o,y,b,d),w=k4(o,x);_&&w!==_.__pictorialShapeStr&&(i.remove(_),o.setItemGraphicEl(y,null),_=null),_?Htt(_,d,x):_=SO(o,d,x,!0),o.setItemGraphicEl(y,_),_.__pictorialSymbolMeta=x,i.add(_),xO(_,d,x)}).remove(function(y){var m=l.getItemGraphicEl(y);m&&bO(l,y,m.__pictorialSymbolMeta.animationModel,m)}).execute();var p=t.get("clip",!0)?Cv(t.coordinateSystem,!1,t):null;return p?i.setClipPath(p):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){bO(i,Mt(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e})(fe);function mO(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),l=t.get("symbolPosition")||"start",s=t.get("symbolRotate"),u=(s||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),d={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Ptt(t,i,n,a,d),ztt(r,e,n,i,o,d.boundingLength,d.pxSign,c,a,d),ktt(t,d.symbolScale,u,a,d);var p=d.symbolSize,y=xs(t.get("symbolOffset"),p);return Btt(t,p,n,i,o,y,l,d.valueLineWidth,d.boundingLength,d.repeatCutLength,a,d),d}function Ptt(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),l=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),s=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(it(o)){var h=[DS(l,o[0])-s,DS(l,o[1])-s];h[1]<h[0]&&h.reverse(),c=h[u]}else o!=null?c=DS(l,o)-s:e?c=a.coordSysExtent[i.index][u]-s:c=t[i.wh];n.boundingLength=c,e&&(n.repeatCutLength=t[i.wh]);var d=i.xy==="x",p=l.inverse;n.pxSign=d&&!p||!d&&p?c>=0?1:-1:c>0?1:-1}function DS(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function ztt(r,e,t,a,n,i,o,l,s,u){var c=s.valueDim,h=s.categoryDim,d=Math.abs(t[h.wh]),p=r.getItemVisual(e,"symbolSize"),y;it(p)?y=p.slice():p==null?y=["100%","100%"]:y=[p,p],y[h.index]=ht(y[h.index],d),y[c.index]=ht(y[c.index],a?d:Math.abs(i)),u.symbolSize=y;var m=u.symbolScale=[y[0]/l,y[1]/l];m[c.index]*=(s.isHorizontal?-1:1)*o}function ktt(r,e,t,a,n){var i=r.get(Ott)||0;i&&(CS.attr({scaleX:e[0],scaleY:e[1],rotation:t}),CS.updateTransform(),i/=CS.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function Btt(r,e,t,a,n,i,o,l,s,u,c,h){var d=c.categoryDim,p=c.valueDim,y=h.pxSign,m=Math.max(e[p.index]+l,0),_=m;if(a){var b=Math.abs(s),x=er(r.get("symbolMargin"),"15%")+"",w=!1;x.lastIndexOf("!")===x.length-1&&(w=!0,x=x.slice(0,x.length-1));var A=ht(x,e[p.index]),M=Math.max(m+A*2,0),D=w?0:A*2,L=vw(a),R=L?a:wO((b+D)/M),E=b-R*m;A=E/2/(w?R:Math.max(R-1,1)),M=m+A*2,D=w?0:A*2,!L&&a!=="fixed"&&(R=u?wO((Math.abs(u)+D)/M):0),_=R*M-D,h.repeatTimes=R,h.symbolMargin=A}var O=y*(_/2),P=h.pathPosition=[];P[d.index]=t[d.wh]/2,P[p.index]=o==="start"?O:o==="end"?s-O:s/2,i&&(P[0]+=i[0],P[1]+=i[1]);var k=h.bundlePosition=[];k[d.index]=t[d.xy],k[p.index]=t[p.xy];var V=h.barRectShape=rt({},t);V[p.wh]=y*Math.max(Math.abs(t[p.wh]),Math.abs(P[p.index]+O)),V[d.wh]=t[d.wh];var H=h.clipShape={};H[d.xy]=-t[d.xy],H[d.wh]=c.ecSize[d.wh],H[p.xy]=0,H[p.wh]=t[p.wh]}function I4(r){var e=r.symbolPatternSize,t=Ge(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function O4(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,l=t.pathPosition,s=e.valueDim,u=t.repeatTimes||0,c=0,h=i[e.valueDim.index]+o+t.symbolMargin*2;for(XT(r,function(m){m.__pictorialAnimationIndex=c,m.__pictorialRepeatTimes=u,c<u?Ku(m,null,y(c),t,a):Ku(m,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(m)}),c++});c<u;c++){var d=I4(t);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,n.add(d);var p=y(c);Ku(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},t,a)}function y(m){var _=l.slice(),b=t.pxSign,x=m;return(t.symbolRepeatDirection==="start"?b>0:b<0)&&(x=u-1-m),_[s.index]=h*(x-u/2+.5)+l[s.index],{x:_[0],y:_[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function N4(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Ku(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=I4(t),n.add(i),Ku(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function P4(r,e,t){var a=rt({},e.barRectShape),n=r.__pictorialBarRect;n?Ku(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new Wt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function z4(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=rt({},t.clipShape),o=e.valueDim,l=t.animationModel,s=t.dataIndex;if(n)Jt(n,{shape:i},l,s);else{i[o.wh]=0,n=new Wt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],Ss[a?"updateProps":"initProps"](n,{shape:u},l,s)}}}function _O(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=Vtt,t.isAnimationEnabled=Gtt,t}function Vtt(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Gtt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function SO(r,e,t,a){var n=new Ct,i=new Ct;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?O4(n,e,t):N4(n,e,t),P4(n,t,a),z4(n,e,t,a),n.__pictorialShapeStr=k4(r,t),n.__pictorialSymbolMeta=t,n}function Htt(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Jt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?O4(r,e,t,!0):N4(r,e,t,!0),P4(r,t,!0),z4(r,e,t,!0)}function bO(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];XT(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),N(i,function(o){Vo(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function k4(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function XT(r,e,t){N(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Ku(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&Ss[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function xO(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),l=n.getModel(["blur","itemStyle"]).getItemStyle(),s=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=i.get("focus"),h=i.get("blurScope"),d=i.get("scale");XT(r,function(m){if(m instanceof or){var _=m.style;m.useStyle(rt({image:_.image,x:_.x,y:_.y,width:_.width,height:_.height},t.style))}else m.useStyle(t.style);var b=m.ensureState("emphasis");b.style=o,d&&(b.scaleX=m.scaleX*1.1,b.scaleY=m.scaleY*1.1),m.ensureState("blur").style=l,m.ensureState("select").style=s,u&&(m.cursor=u),m.z2=t.z2});var p=e.valueDim.posDesc[+(t.boundingLength>0)],y=r.__pictorialBarRect;y.ignoreClip=!0,xr(y,nr(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:of(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:p}),Ee(r,c,h,i.get("disabled"))}function wO(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var Ftt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Xo(tv.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})(tv);function Utt(r){r.registerChartView(Ntt),r.registerSeriesModel(Ftt),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Et(Sk,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bk("pictorialBar"))}var Ytt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,l=this.group,s=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;l.x=0,l.y=c.y+h[0];function d(_){return _.name}var p=new Oi(this._layersSeries||[],s,d,d),y=[];p.add(dt(m,this,"add")).update(dt(m,this,"update")).remove(dt(m,this,"remove")).execute();function m(_,b,x){var w=o._layers;if(_==="remove"){l.remove(w[b]);return}for(var A=[],M=[],D,L=s[b].indices,R=0;R<L.length;R++){var E=i.getItemLayout(L[R]),O=E.x,P=E.y0,k=E.y;A.push(O,P),M.push(O,P+k),D=i.getItemVisual(L[R],"style")}var V,H=i.getItemLayout(L[0]),U=t.getModel("label"),z=U.get("margin"),Y=t.getModel("emphasis");if(_==="add"){var j=y[b]=new Ct;V=new uB({shape:{points:A,stackedOnPoints:M,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),j.add(V),l.add(j),t.isAnimationEnabled()&&V.setClipPath(jtt(V.getBoundingRect(),t,function(){V.removeClipPath()}))}else{var j=w[x];V=j.childAt(0),l.add(j),y[b]=j,Jt(V,{shape:{points:A,stackedOnPoints:M}},t),xn(V)}xr(V,nr(t),{labelDataIndex:L[R-1],defaultText:i.getName(L[R-1]),inheritColor:D.fill},{normal:{verticalAlign:"middle"}}),V.setTextConfig({position:null,local:!0});var $=V.getTextContent();$&&($.x=H.x-z,$.y=H.y0+H.y/2),V.useStyle(D),i.setItemGraphicEl(b,V),br(V,t),Ee(V,Y.get("focus"),Y.get("blurScope"),Y.get("disabled"))}this._layersSeries=s,this._layers=y},e.type="themeRiver",e})(fe);function jtt(r,e,t){var a=new Wt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return De(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}var MS=2,Xtt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Lv(dt(this.getData,this),dt(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=Mb(t,function(d){return n.hasOwnProperty(d[0]+"")||(n[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,p){o.push({name:p,dataList:d})});for(var l=o.length,s=0;s<l;++s){for(var u=o[s].name,c=0;c<o[s].dataList.length;++c){var h=o[s].dataList[c][0]+"";n[h]=s}for(var h in n)n.hasOwnProperty(h)&&n[h]!==s&&(n[h]=s,t[a]=[h,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var n=this.getReferringComponents("singleAxis",je).models[0],i=n.get("type"),o=te(t.data,function(y){return y[2]!==void 0}),l=this.fixData(o||[]),s=[],u=this.nameMap=mt(),c=0,h=0;h<l.length;++h)s.push(l[h][MS]),u.get(l[h][MS])||(u.set(l[h][MS],c),c++);var d=Df(l,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Kg(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new Er(d,this);return p.initData(l),p},e.prototype.getLayerSeries=function(){for(var t=this.getData(),a=t.count(),n=[],i=0;i<a;++i)n[i]=i;var o=t.mapDimension("single"),l=Mb(n,function(u){return t.get("name",u)}),s=[];return l.buckets.each(function(u,c){u.sort(function(h,d){return t.get(o,h)-t.get(o,d)}),s.push({name:c,indices:u})}),s},e.prototype.getAxisTooltipData=function(t,a,n){it(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),l=[],s=o.length,u,c=0;c<s;++c){for(var h=Number.MAX_VALUE,d=-1,p=o[c].indices.length,y=0;y<p;++y){var m=i.get(t[0],o[c].indices[y]),_=Math.abs(m-a);_<=h&&(u=m,h=_,d=o[c].indices[y])}l.push(d)}return{dataIndices:l,nestestValue:u}},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getName(t),l=i.get(i.mapDimension("value"),t);return ir("nameValue",{name:o,value:l})},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})(pe);function Wtt(r,e){r.eachSeriesByType("themeRiver",function(t){var a=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var l=t.get("boundaryGap"),s=n.getAxis();if(i.boundaryGap=l,s.orient==="horizontal"){l[0]=ht(l[0],o.height),l[1]=ht(l[1],o.height);var u=o.height-l[0]-l[1];TO(a,t,u)}else{l[0]=ht(l[0],o.width),l[1]=ht(l[1],o.width);var c=o.width-l[0]-l[1];TO(a,t,c)}a.setLayout("layoutInfo",i)})}function TO(r,e,t){if(r.count())for(var a=e.coordinateSystem,n=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),l=ot(n,function(_){return ot(_.indices,function(b){var x=a.dataToPoint(r.get(i,b));return x[1]=r.get(o,b),x})}),s=Ztt(l),u=s.y0,c=t/s.max,h=n.length,d=n[0].indices.length,p,y=0;y<d;++y){p=u[y]*c,r.setItemLayout(n[0].indices[y],{layerIndex:0,x:l[0][y][0],y0:p,y:l[0][y][1]*c});for(var m=1;m<h;++m)p+=l[m-1][y][1]*c,r.setItemLayout(n[m].indices[y],{layerIndex:m,x:l[m][y][0],y0:p,y:l[m][y][1]*c})}}function Ztt(r){for(var e=r.length,t=r[0].length,a=[],n=[],i=0,o=0;o<t;++o){for(var l=0,s=0;s<e;++s)l+=r[s][o][1];l>i&&(i=l),a.push(l)}for(var u=0;u<t;++u)n[u]=(i-a[u])/2;i=0;for(var c=0;c<t;++c){var h=a[c]+n[c];h>i&&(i=h)}return{y0:n,max:i}}function qtt(r){r.registerChartView(Ytt),r.registerSeriesModel(Xtt),r.registerLayout(Wtt),r.registerProcessor(Mv("themeRiver"))}var $tt=2,Ktt=4,AO=(function(r){Z(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=$tt,o.textConfig={inside:!0},Mt(o).seriesIndex=a.seriesIndex;var l=new Xt({z2:Ktt,silent:t.getModel().get(["label","silent"])});return o.setTextContent(l),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var l=this;Mt(l).dataIndex=a.dataIndex;var s=a.getModel(),u=s.getModel("emphasis"),c=a.getLayout(),h=rt({},c);h.label=null;var d=a.getVisual("style");d.lineJoin="bevel";var p=a.getVisual("decal");p&&(d.decal=nf(p,o));var y=ts(s.getModel("itemStyle"),h,!0);rt(h,y),N(jr,function(x){var w=l.ensureState(x),A=s.getModel([x,"itemStyle"]);w.style=A.getItemStyle();var M=ts(A,h);M&&(w.shape=M)}),t?(l.setShape(h),l.shape.r=c.r0,De(l,{shape:{r:c.r}},n,a.dataIndex)):(Jt(l,{shape:h},n),xn(l)),l.useStyle(d),this._updateLabel(n);var m=s.getShallow("cursor");m&&l.attr("cursor",m),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var _=u.get("focus"),b=_==="relative"?Ju(a.getAncestorsIndices(),a.getDescendantIndices()):_==="ancestor"?a.getAncestorsIndices():_==="descendant"?a.getDescendantIndices():_;Ee(this,b,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),l=o.endAngle-o.startAngle,s=(o.startAngle+o.endAngle)/2,u=Math.cos(s),c=Math.sin(s),h=this,d=h.getTextContent(),p=this.node.dataIndex,y=i.get("minAngle")/180*Math.PI,m=i.get("show")&&!(y!=null&&Math.abs(l)<y);d.ignore=!m,N(Fh,function(b){var x=b==="normal"?n.getModel("label"):n.getModel([b,"label"]),w=b==="normal",A=w?d:d.ensureState(b),M=t.getFormattedLabel(p,b);w&&(M=M||a.node.name),A.style=_e(x,{},null,b!=="normal",!0),M&&(A.style.text=M);var D=x.get("show");D!=null&&!w&&(A.ignore=!D);var L=_(x,"position"),R=w?h:h.states[b],E=R.style.fill;R.textConfig={outsideFill:x.get("color")==="inherit"?E:null,inside:L!=="outside"};var O,P=_(x,"distance")||0,k=_(x,"align"),V=_(x,"rotate"),H=Math.PI*.5,U=Math.PI*1.5,z=_a(V==="tangential"?Math.PI/2-s:s),Y=z>H&&!tf(z-H)&&z<U;L==="outside"?(O=o.r+P,k=Y?"right":"left"):!k||k==="center"?(l===2*Math.PI&&o.r0===0?O=0:O=(o.r+o.r0)/2,k="center"):k==="left"?(O=o.r0+P,k=Y?"right":"left"):k==="right"&&(O=o.r-P,k=Y?"left":"right"),A.style.align=k,A.style.verticalAlign=_(x,"verticalAlign")||"middle",A.x=O*u+o.cx,A.y=O*c+o.cy;var j=0;V==="radial"?j=_a(-s)+(Y?Math.PI:0):V==="tangential"?j=_a(Math.PI/2-s)+(Y?Math.PI:0):Qt(V)&&(j=V*Math.PI/180),A.rotation=_a(j)});function _(b,x){var w=b.get(x);return w??i.get(x)}d.dirtyStyle()},e})(Or),Rx="sunburstRootToNode",CO="sunburstHighlight",Qtt="sunburstUnhighlight";function Jtt(r){r.registerAction({type:Rx,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=rv(e,[Rx],n);if(o){var l=n.getViewRoot();l&&(e.direction=RT(l,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:CO,update:"none"},function(e,t,a){e=rt({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=rv(e,[CO],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(rt(e,{type:"highlight"}))}),r.registerAction({type:Qtt,update:"updateView"},function(e,t,a){e=rt({},e),a.dispatchAction(rt(e,{type:"downplay"}))})}var tet=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var l=t.getData(),s=l.tree.root,u=t.getViewRoot(),c=this.group,h=t.get("renderLabelForZeroData"),d=[];u.eachNode(function(x){d.push(x)});var p=this._oldChildren||[];y(d,p),b(s,u),this._initEvents(),this._oldChildren=d;function y(x,w){if(x.length===0&&w.length===0)return;new Oi(w,x,A,A).add(M).update(M).remove(Et(M,null)).execute();function A(D){return D.getId()}function M(D,L){var R=D==null?null:x[D],E=L==null?null:w[L];m(R,E)}}function m(x,w){if(!h&&x&&!x.getValue()&&(x=null),x!==s&&w!==s){if(w&&w.piece)x?(w.piece.updateData(!1,x,t,a,n),l.setItemGraphicEl(x.dataIndex,w.piece)):_(w);else if(x){var A=new AO(x,t,a,n);c.add(A),l.setItemGraphicEl(x.dataIndex,A)}}}function _(x){x&&x.piece&&(c.remove(x.piece),x.piece=null)}function b(x,w){w.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,x,t,a,n):(o.virtualPiece=new AO(x,t,a,n),c.add(o.virtualPiece)),w.piece.off("click"),o.virtualPiece.on("click",function(A){o._rootToNode(w.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var l=o.getModel().get("nodeClick");if(l==="rootToNode")t._rootToNode(o);else if(l==="link"){var s=o.getModel(),u=s.get("link");if(u){var c=s.get("target",!0)||"_blank";Hg(u,c)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Rx,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,l=t[1]-i.cy,s=Math.sqrt(o*o+l*l);return s<=i.r&&s>=i.r0}},e.type="sunburst",e})(fe),eet=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};B4(n);var i=this._levelModels=ot(t.levels||[],function(s){return new ee(s,this,a)},this),o=LT.createTree(n,this,l);function l(s){s.wrapMethod("getItemModel",function(u,c){var h=o.getNodeByDataIndex(c),d=i[h.depth];return d&&(u.parentModel=d),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=lm(n,this),a},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 a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){UB(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})(pe);function B4(r){var e=0;N(r.children,function(a){B4(a);var n=a.value;it(n)&&(n=n[0]),e+=n});var t=r.value;it(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),it(r.value)?r.value[0]=t:r.value=t}var DO=Math.PI/180;function ret(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");it(i)||(i=[0,i]),it(n)||(n=[n,n]);var o=t.getWidth(),l=t.getHeight(),s=Math.min(o,l),u=ht(n[0],o),c=ht(n[1],l),h=ht(i[0],s/2),d=ht(i[1],s/2),p=-a.get("startAngle")*DO,y=a.get("minAngle")*DO,m=a.getData().tree.root,_=a.getViewRoot(),b=_.depth,x=a.get("sort");x!=null&&V4(_,x);var w=0;N(_.children,function(z){!isNaN(z.getValue())&&w++});var A=_.getValue(),M=Math.PI/(A||w)*2,D=_.depth>0,L=_.height-(D?-1:1),R=(d-h)/(L||1),E=a.get("clockwise"),O=a.get("stillShowZeroSum"),P=E?1:-1,k=function(z,Y){if(z){var j=Y;if(z!==m){var $=z.getValue(),tt=A===0&&O?M:$*M;tt<y&&(tt=y),j=Y+P*tt;var F=z.depth-b-(D?-1:1),W=h+R*F,at=h+R*(F+1),lt=a.getLevelModel(z);if(lt){var ct=lt.get("r0",!0),bt=lt.get("r",!0),Pt=lt.get("radius",!0);Pt!=null&&(ct=Pt[0],bt=Pt[1]),ct!=null&&(W=ht(ct,s/2)),bt!=null&&(at=ht(bt,s/2))}z.setLayout({angle:tt,startAngle:Y,endAngle:j,clockwise:E,cx:u,cy:c,r0:W,r:at})}if(z.children&&z.children.length){var wt=0;N(z.children,function(pt){wt+=k(pt,Y+wt)})}return j-Y}};if(D){var V=h,H=h+R,U=Math.PI*2;m.setLayout({angle:U,startAngle:p,endAngle:p+U,clockwise:E,cx:u,cy:c,r0:V,r:H})}k(_,p)})}function V4(r,e){var t=r.children||[];r.children=aet(t,e),t.length&&N(r.children,function(a){V4(a,e)})}function aet(r,e){if(_t(e)){var t=ot(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),ot(t,function(n){return r[n.index]})}else{var a=e==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function net(r){var e={};function t(a,n,i){for(var o=a;o&&o.depth>1;)o=o.parentNode;var l=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&vt(l)&&(l=Lg(l,(a.depth-1)/(i-1)*.5)),l}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var l=o.getModel(),s=l.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");rt(u,s)})})}function iet(r){r.registerChartView(tet),r.registerSeriesModel(eet),r.registerLayout(Et(ret,"sunburst")),r.registerProcessor(Et(Mv,"sunburst")),r.registerVisual(net),Jtt(r)}var MO={color:"fill",borderColor:"stroke"},oet={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Mi=$t(),set=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return qn(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Mi(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(pe);function uet(r,e){return e=e||[0,0],ot(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function fet(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:dt(uet,r)}}}function cet(r,e){return e=e||[0,0],ot([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function het(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:dt(cet,r)}}}function vet(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function det(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:dt(vet,r)}}}function pet(r,e){return e=e||[0,0],ot(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],l=r[a]/2,s=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-l)-i.dataToCoord(o+l));return t==="Angle"&&(s=s*Math.PI/180),s},this)}function get(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),l=r.coordToPoint([i,o]);return l.push(i,o*Math.PI/180),l},size:dt(pet,r)}}}function yet(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function G4(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||gt(r,"text")))}function H4(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},gt(a,"text")&&(o.text=a.text),gt(a,"rich")&&(o.rich=a.rich),gt(a,"textFill")&&(o.fill=a.textFill),gt(a,"textStroke")&&(o.stroke=a.textStroke),gt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),gt(a,"fontSize")&&(o.fontSize=a.fontSize),gt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),gt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var l=gt(a,"textPosition");t?n.position=l?a.textPosition:"inside":l&&(n.position=a.textPosition),gt(a,"textPosition")&&(n.position=a.textPosition),gt(a,"textOffset")&&(n.offset=a.textOffset),gt(a,"textRotation")&&(n.rotation=a.textRotation),gt(a,"textDistance")&&(n.distance=a.textDistance)}return LO(o,r),N(o.rich,function(s){LO(s,s)}),{textConfig:n,textContent:i}}function LO(r,e){e&&(e.font=e.textFont||e.font,gt(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),gt(e,"textAlign")&&(r.align=e.textAlign),gt(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),gt(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),gt(e,"textWidth")&&(r.width=e.textWidth),gt(e,"textHeight")&&(r.height=e.textHeight),gt(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),gt(e,"textPadding")&&(r.padding=e.textPadding),gt(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),gt(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),gt(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),gt(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),gt(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),gt(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),gt(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function RO(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";EO(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,N(e.rich,function(l){EO(l,l)}),a}function EO(r,e){e&&(gt(e,"fill")&&(r.textFill=e.fill),gt(e,"stroke")&&(r.textStroke=e.fill),gt(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),gt(e,"font")&&(r.font=e.font),gt(e,"fontStyle")&&(r.fontStyle=e.fontStyle),gt(e,"fontWeight")&&(r.fontWeight=e.fontWeight),gt(e,"fontSize")&&(r.fontSize=e.fontSize),gt(e,"fontFamily")&&(r.fontFamily=e.fontFamily),gt(e,"align")&&(r.textAlign=e.align),gt(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),gt(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),gt(e,"width")&&(r.textWidth=e.width),gt(e,"height")&&(r.textHeight=e.height),gt(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),gt(e,"padding")&&(r.textPadding=e.padding),gt(e,"borderColor")&&(r.textBorderColor=e.borderColor),gt(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),gt(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),gt(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),gt(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),gt(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),gt(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),gt(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),gt(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),gt(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),gt(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var F4={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},IO=Yt(F4);qa(Yn,function(r,e){return r[e]=1,r},{});Yn.join(", ");var uy=["","style","shape","extra"],uf=$t();function WT(r,e,t,a,n){var i=r+"Animation",o=yf(r,a,n)||{},l=uf(e).userDuring;return o.duration>0&&(o.during=l?dt(wet,{el:e,userDuring:l}):null,o.setToFinal=!0,o.scope=r),rt(o,t[i]),o}function gg(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,l=t.isAnimationEnabled(),s=uf(r),u=e.style;s.userDuring=e.during;var c={},h={};if(Aet(r,e,h),NO("shape",e,h),NO("extra",e,h),!i&&l&&(Tet(r,e,c),OO("shape",r,e,c),OO("extra",r,e,c),Cet(r,e,u,c)),h.style=u,met(r,h,o),bet(r,e),l)if(i){var d={};N(uy,function(y){var m=y?e[y]:e;m&&m.enterFrom&&(y&&(d[y]=d[y]||{}),rt(y?d[y]:d,m.enterFrom))});var p=WT("enter",r,e,t,n);p.duration>0&&r.animateFrom(d,p)}else _et(r,e,n||0,t,c);U4(r,e),u?r.dirty():r.markRedraw()}function U4(r,e){for(var t=uf(r).leaveToProps,a=0;a<uy.length;a++){var n=uy[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=uf(r).leaveToProps={}),n&&(t[n]=t[n]||{}),rt(n?t[n]:t,i.leaveTo))}}function fm(r,e,t,a){if(r){var n=r.parent,i=uf(r).leaveToProps;if(i){var o=WT("update",r,e,t,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function ls(r){return r==="all"}function met(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function _et(r,e,t,a,n){if(n){var i=WT("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function bet(r,e){gt(e,"silent")&&(r.silent=e.silent),gt(e,"ignore")&&(r.ignore=e.ignore),r instanceof $a&&gt(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ut&&gt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var On={},xet={setTransform:function(r,e){return On.el[r]=e,this},getTransform:function(r){return On.el[r]},setShape:function(r,e){var t=On.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=On.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=On.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=On.el.style;if(e)return e[r]},setExtra:function(r,e){var t=On.el.extra||(On.el.extra={});return t[r]=e,this},getExtra:function(r){var e=On.el.extra;if(e)return e[r]}};function wet(){var r=this,e=r.el;if(e){var t=uf(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}On.el=e,a(xet)}}function OO(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var l=t.transition,s=n.transition;if(s)if(!o&&(o=a[r]={}),ls(s))rt(o,i);else for(var u=de(s),c=0;c<u.length;c++){var h=u[c],d=i[h];o[h]=d}else if(ls(l)||Bt(l,r)>=0){!o&&(o=a[r]={});for(var p=Yt(i),c=0;c<p.length;c++){var h=p[c],d=i[h];Det(n[h],d)&&(o[h]=d)}}}}}function NO(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=Yt(a),o=0;o<i.length;o++){var l=i[o];n[l]=xh(a[l])}}function Tet(r,e,t){for(var a=e.transition,n=ls(a)?Yn:de(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var l=r[o];t[o]=l}}}function Aet(r,e,t){for(var a=0;a<IO.length;a++){var n=IO[a],i=F4[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<Yn.length;a++){var l=Yn[a];e[l]!=null&&(t[l]=e[l])}}function Cet(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,l=e.transition;if(o&&!ls(o)){var s=de(o);!i&&(i=a.style={});for(var u=0;u<s.length;u++){var c=s[u],h=n[c];i[c]=h}}else if(r.getAnimationStyleProps&&(ls(l)||ls(o)||Bt(l,"style")>=0)){var d=r.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=a.style={});for(var y=Yt(t),u=0;u<y.length;u++){var c=y[u];if(p[c]){var h=n[c];i[c]=h}}}}}}}function Det(r,e){return Sr(r)?r!==e:r!=null&&isFinite(r)}var Y4=$t(),Met=["percent","easing","shape","style","extra"];function j4(r){r.stopAnimation("keyframe"),r.attr(Y4(r))}function fy(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(it(e)){N(e,function(l){fy(r,l,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=yf("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=Y4(r);N(uy,function(l){if(!(l&&!r[l])){var s;a.sort(function(u,c){return u.percent-c.percent}),N(a,function(u){var c=r.animators,h=l?u[l]:u;if(h){var d=Yt(h);if(l||(d=te(d,function(m){return Bt(Met,m)<0})),!!d.length){s||(s=r.animate(l,e.loop,!0),s.scope="keyframe");for(var p=0;p<c.length;p++)c[p]!==s&&c[p].targetName===s.targetName&&c[p].stopTracks(d);l&&(o[l]=o[l]||{});var y=l?o[l]:o;N(d,function(m){y[m]=((l?r[l]:r)||{})[m]}),s.whenWithKeys(n*u.percent,h,d,u.easing)}}}),s&&s.delay(e.delay||0).duration(n).start(e.easing)}})}}}var Li="emphasis",Mo="normal",ZT="blur",qT="select",Fo=[Mo,Li,ZT,qT],LS={normal:["itemStyle"],emphasis:[Li,"itemStyle"],blur:[ZT,"itemStyle"],select:[qT,"itemStyle"]},RS={normal:["label"],emphasis:[Li,"label"],blur:[ZT,"label"],select:[qT,"label"]},Let=["x","y"],Ret="e\0\0",Ba={normal:{},emphasis:{},blur:{},select:{}},Eet={cartesian2d:fet,geo:het,single:det,polar:get,calendar:yet};function Ex(r){return r instanceof Ut}function Ix(r){return r instanceof $a}function Iet(r,e){e.copyTransform(r),Ix(e)&&Ix(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,Ex(e)&&Ex(r)&&e.setShape(r.shape))}var Oet=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,l=t.getData(),s=this.group,u=PO(t,l,a,n);o||s.removeAll(),l.diff(o).add(function(h){ES(n,null,h,u(h,i),t,s,l)}).remove(function(h){var d=o.getItemGraphicEl(h);d&&fm(d,Mi(d).option,t)}).update(function(h,d){var p=o.getItemGraphicEl(d);ES(n,p,h,u(h,i),t,s,l)}).execute();var c=t.get("clip",!0)?Cv(t.coordinateSystem,!1,t):null;c?s.setClipPath(c):s.removeClipPath(),this._data=l},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var l=a.getData(),s=PO(a,l,n,i),u=this._progressiveEls=[];function c(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var d=ES(null,null,h,s(h,o),a,this.group,l);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(t){jo(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e})(fe);function $T(r){var e=r.type,t;if(e==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=Z4(a);t=_v(i,null,n,a.layout||"center"),Mi(t).customPathData=i}else if(e==="image")t=new or({}),Mi(t).customImagePath=r.style.image;else if(e==="text")t=new Xt({});else if(e==="group")t=new Ct;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Gy(e);if(!o){var l="";le(l)}t=new o}return Mi(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function KT(r,e,t,a,n,i,o){j4(e);var l=n&&n.normal.cfg;l&&e.setTextConfig(l),a&&a.transition==null&&(a.transition=Let);var s=a&&a.style;if(s){if(e.type==="text"){var u=s;gt(u,"textFill")&&(u.fill=u.textFill),gt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=Ex(e)?s.decal:null;r&&h&&(h.dirty=!0,c=nf(h,r)),s.__decalPattern=c}if(Ix(e)&&s){var c=s.__decalPattern;c&&(s.decal=c)}gg(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),fy(e,a.keyframeAnimation,i)}function X4(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var l=i.ensureState(r);if(a===!1){var s=i.getState(r);s&&(s.style=null)}else l.style=a||null;o&&(l.textConfig=o),hs(i)}}function Net(r,e,t){if(!r.isGroup){var a=r,n=t.currentZ,i=t.currentZLevel;a.z=n,a.zlevel=i;var o=e.z2;o!=null&&(a.z2=o||0);for(var l=0;l<Fo.length;l++)Pet(a,e,Fo[l])}}function Pet(r,e,t){var a=t===Mo,n=a?e:cy(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function PO(r,e,t,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):Eet[i.type](i));for(var l=St({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:A,style:D,ordinalRawValue:M,styleEmphasis:L,visual:O,barLayout:P,currentSeriesIndices:k,font:V},o.api||{}),s={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:zet(r.getData())},u,c,h={},d={},p={},y={},m=0;m<Fo.length;m++){var _=Fo[m];p[_]=r.getModel(LS[_]),y[_]=r.getModel(RS[_])}function b(H){return H===u?c||(c=e.getItemModel(H)):e.getItemModel(H)}function x(H,U){return e.hasItemOption?H===u?h[U]||(h[U]=b(H).getModel(LS[U])):b(H).getModel(LS[U]):p[U]}function w(H,U){return e.hasItemOption?H===u?d[U]||(d[U]=b(H).getModel(RS[U])):b(H).getModel(RS[U]):y[U]}return function(H,U){return u=H,c=null,h={},d={},n&&n(St({dataIndexInside:H,dataIndex:e.getRawIndex(H),actionType:U?U.type:null},s),l)};function A(H,U){return U==null&&(U=u),e.getStore().get(e.getDimensionIndex(H||0),U)}function M(H,U){U==null&&(U=u),H=H||0;var z=e.getDimensionInfo(H);if(!z){var Y=e.getDimensionIndex(H);return Y>=0?e.getStore().get(Y,U):void 0}var j=e.get(z.name,U),$=z&&z.ordinalMeta;return $?$.categories[j]:j}function D(H,U){U==null&&(U=u);var z=e.getItemVisual(U,"style"),Y=z&&z.fill,j=z&&z.opacity,$=x(U,Mo).getItemStyle();Y!=null&&($.fill=Y),j!=null&&($.opacity=j);var tt={inheritColor:vt(Y)?Y:"#000"},F=w(U,Mo),W=_e(F,null,tt,!1,!0);W.text=F.getShallow("show")?Rt(r.getFormattedLabel(U,Mo),of(e,U)):null;var at=Vg(F,tt,!1);return E(H,$),$=RO($,W,at),H&&R($,H),$.legacy=!0,$}function L(H,U){U==null&&(U=u);var z=x(U,Li).getItemStyle(),Y=w(U,Li),j=_e(Y,null,null,!0,!0);j.text=Y.getShallow("show")?pn(r.getFormattedLabel(U,Li),r.getFormattedLabel(U,Mo),of(e,U)):null;var $=Vg(Y,null,!0);return E(H,z),z=RO(z,j,$),H&&R(z,H),z.legacy=!0,z}function R(H,U){for(var z in U)gt(U,z)&&(H[z]=U[z])}function E(H,U){H&&(H.textFill&&(U.textFill=H.textFill),H.textPosition&&(U.textPosition=H.textPosition))}function O(H,U){if(U==null&&(U=u),gt(MO,H)){var z=e.getItemVisual(U,"style");return z?z[MO[H]]:null}if(gt(oet,H))return e.getItemVisual(U,H)}function P(H){if(i.type==="cartesian2d"){var U=i.getBaseAxis();return uX(St({axis:U},H))}}function k(){return t.getCurrentSeriesIndices()}function V(H){return Rw(H,t)}}function zet(r){var e={};return N(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function ES(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var l=QT(r,e,t,a,n,i);return l&&o.setItemGraphicEl(t,l),l&&Ee(l,a.focus,a.blurScope,a.emphasisDisabled),l}function QT(r,e,t,a,n,i){var o=-1,l=e;e&&W4(e,a,n)&&(o=Bt(i.childrenRef(),e),e=null);var s=!e,u=e;u?u.clearStates():(u=$T(a),l&&Iet(l,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ba.normal.cfg=Ba.normal.conOpt=Ba.emphasis.cfg=Ba.emphasis.conOpt=Ba.blur.cfg=Ba.blur.conOpt=Ba.select.cfg=Ba.select.conOpt=null,Ba.isLegacy=!1,Bet(u,t,a,n,s,Ba),ket(u,t,a,n,s),KT(r,u,t,a,Ba,n,s),gt(a,"info")&&(Mi(u).info=a.info);for(var c=0;c<Fo.length;c++){var h=Fo[c];if(h!==Mo){var d=cy(a,h),p=JT(a,d,h);X4(h,u,d,p,Ba)}}return Net(u,a,n),a.type==="group"&&Vet(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function W4(r,e,t){var a=Mi(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&Uet(i)&&Z4(i)!==a.customPathData||n==="image"&&gt(o,"image")&&o.image!==a.customImagePath}function ket(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&W4(o,i,a)&&(o=null),o||(o=$T(i),r.setClipPath(o)),KT(null,o,e,i,null,a,n)}}function Bet(r,e,t,a,n,i){if(!r.isGroup){zO(t,null,i),zO(t,Li,i);var o=i.normal.conOpt,l=i.emphasis.conOpt,s=i.blur.conOpt,u=i.select.conOpt;if(o!=null||l!=null||u!=null||s!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=$T(o),r.setTextContent(c)),KT(null,c,e,o,null,a,n);for(var h=o&&o.style,d=0;d<Fo.length;d++){var p=Fo[d];if(p!==Mo){var y=i[p].conOpt;X4(p,c,y,JT(o,y,p),null)}}h?c.dirty():c.markRedraw()}}}}function zO(r,e,t){var a=e?cy(r,e):r,n=e?JT(r,a,Li):r.style,i=r.type,o=a?a.textConfig:null,l=r.textContent,s=l?e?cy(l,e):l:null;if(n&&(t.isLegacy||G4(n,i,!!o,!!s))){t.isLegacy=!0;var u=H4(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!s&&u.textContent&&(s=u.textContent)}if(!e&&s){var c=s;!c.type&&(c.type="text")}var h=e?t[e]:t.normal;h.cfg=o,h.conOpt=s}function cy(r,e){return e?r?r[e]:null:r}function JT(r,e,t){var a=e&&e.style;return a==null&&t===Li&&r&&(a=r.styleEmphasis),a}function Vet(r,e,t,a,n){var i=a.children,o=i?i.length:0,l=a.$mergeChildren,s=l==="byName"||a.diffChildrenByName,u=l===!1;if(!(!o&&!s&&!u)){if(s){Het({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var h=i[c],d=e.childAt(c);h?(h.ignore==null&&(h.ignore=!1),QT(r,d,t,h,n,e)):d.ignore=!0}for(var p=e.childCount()-1;p>=c;p--){var y=e.childAt(p);Get(e,y,n)}}}function Get(r,e,t){e&&fm(e,Mi(r).option,t)}function Het(r){new Oi(r.oldChildren,r.newChildren,kO,kO,r).add(BO).update(BO).remove(Fet).execute()}function kO(r,e){var t=r&&r.name;return t??Ret+e}function BO(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;QT(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function Fet(r){var e=this.context,t=e.oldChildren[r];t&&fm(t,Mi(t).option,e.seriesModel)}function Z4(r){return r&&(r.pathData||r.d)}function Uet(r){return r&&(gt(r,"pathData")||gt(r,"d"))}function Yet(r){r.registerChartView(Oet),r.registerSeriesModel(set)}var jl=$t(),VO=Tt,IS=dt,t2=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var l=this._group,s=this._handle;if(!o||o==="hide"){l&&l.hide(),s&&s.hide();return}l&&l.show(),s&&s.show();var u={};this.makeElOption(u,i,e,t,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(e,t);if(!l)l=this._group=new Ct,this.createPointerEl(l,u,e,t),this.createLabelEl(l,u,e,t),a.getZr().add(l);else{var d=Et(GO,t,h);this.updatePointerEl(l,u,d),this.updateLabelEl(l,u,d,t)}FO(l,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var l=this.animationThreshold;if(i&&n.getBandWidth()>l)return!0;if(o){var s=xT(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/s>l}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=jl(e).pointerEl=new Ss[i.type](VO(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=jl(e).labelEl=new Xt(VO(t.label));e.add(i),HO(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=jl(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=jl(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),HO(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var l;this._handle||(l=!0,n=this._handle=mf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ri(u.event)},onmousedown:IS(this._onHandleDragMove,this,0,0),drift:IS(this._onHandleDragMove,this),ondragend:IS(this._onHandleDragEnd,this)}),a.add(n)),FO(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");it(s)||(s=[s,s]),n.scaleX=s[0]/2,n.scaleY=s[1]/2,Af(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,l)}},r.prototype._moveHandleToValue=function(e,t){GO(this._axisPointerModel,!t&&this._moveAnimation,this._handle,OS(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(OS(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(OS(n)),jl(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Zh(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r})();function GO(r,e,t,a){q4(jl(t).lastProp,a)||(jl(t).lastProp=a,e?Jt(t,a,r):(t.stopAnimation(),t.attr(a)))}function q4(r,e){if(xt(r)&&xt(e)){var t=!0;return N(e,function(a,n){t=t&&q4(r[n],a)}),!!t}else return r===e}function HO(r,e){r[e.get(["label","show"])?"show":"hide"]()}function OS(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function FO(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}function e2(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function $4(r,e,t,a,n){var i=t.get("value"),o=K4(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),l=t.getModel("label"),s=bs(l.get("padding")||0),u=l.getFont(),c=dv(o,u),h=n.position,d=c.width+s[1]+s[3],p=c.height+s[0]+s[2],y=n.align;y==="right"&&(h[0]-=d),y==="center"&&(h[0]-=d/2);var m=n.verticalAlign;m==="bottom"&&(h[1]-=p),m==="middle"&&(h[1]-=p/2),jet(h,d,p,a);var _=l.get("backgroundColor");(!_||_==="auto")&&(_=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:_e(l,{text:o,font:u,fill:l.getTextColor(),padding:s,backgroundColor:_}),z2:10}}function jet(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function K4(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var l={value:cT(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};N(a,function(s){var u=t.getSeriesByIndex(s.seriesIndex),c=s.dataIndexInside,h=u&&u.getDataParams(c);h&&l.seriesData.push(h)}),vt(o)?i=o.replace("{value}",i):_t(o)&&(i=o(l))}return i}function r2(r,e,t){var a=na();return Yo(a,a,t.rotation),Sn(a,a,t.position),mn([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function Q4(r,e,t,a,n,i){var o=Ur.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),$4(e,a,n,i,{position:r2(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function a2(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function J4(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function UO(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var Xet=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var l=n.axis,s=l.grid,u=i.get("type"),c=YO(s,l).getOtherAxis(l).getGlobalExtent(),h=l.toGlobalCoord(l.dataToCoord(a,!0));if(u&&u!=="none"){var d=e2(i),p=Wet[u](l,h,c);p.style=d,t.graphicKey=p.type,t.pointer=p}var y=cx(s.model,n);Q4(a,t,y,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=cx(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=r2(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,l=o.grid,s=o.getGlobalExtent(!0),u=YO(l,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,h=[t.x,t.y];h[c]+=a[c],h[c]=Math.min(s[1],h[c]),h[c]=Math.max(s[0],h[c]);var d=(u[1]+u[0])/2,p=[d,d];p[c]=h[c];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:p,tooltipOption:y[c]}},e})(t2);function YO(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var Wet={line:function(r,e,t){var a=a2([e,t[0]],[e,t[1]],jO(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:J4([e-a/2,t[0]],[a,n],jO(r))}}};function jO(r){return r.dim==="x"?0:1}var Zet=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return 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})(Ht),Di=$t(),qet=N;function tV(r,e,t){if(!Ft.node){var a=e.getZr();Di(a).records||(Di(a).records={}),$et(a,e);var n=Di(a).records[r]||(Di(a).records[r]={});n.handler=t}}function $et(r,e){if(Di(r).initialized)return;Di(r).initialized=!0,t("click",Et(XO,"click")),t("mousemove",Et(XO,"mousemove")),t("globalout",Qet);function t(a,n){r.on(a,function(i){var o=Jet(e);qet(Di(r).records,function(l){l&&n(l,i,o.dispatchAction)}),Ket(o.pendings,e)})}}function Ket(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function Qet(r,e,t){r.handler("leave",null,t)}function XO(r,e,t,a){e.handler(r,t,a)}function Jet(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function Ox(r,e){if(!Ft.node){var t=e.getZr(),a=(Di(t).records||{})[r];a&&(Di(t).records[r]=null)}}var trt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";tV("axisPointer",n,function(l,s,u){o!=="none"&&(l==="leave"||o.indexOf(l)>=0)&&u({type:"updateAxisPointer",currTrigger:l,x:s&&s.offsetX,y:s&&s.offsetY})})},e.prototype.remove=function(t,a){Ox("axisPointer",a)},e.prototype.dispose=function(t,a){Ox("axisPointer",a)},e.type="axisPointer",e})(we);function eV(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=fs(i,r);if(o==null||o<0||it(o))return{point:[]};var l=i.getItemGraphicEl(o),s=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(s&&s.dataToPoint)if(r.isStacked){var u=s.getBaseAxis(),c=s.getOtherAxis(u),h=c.dim,d=u.dim,p=h==="x"||h==="radius"?1:0,y=i.mapDimension(d),m=[];m[p]=i.get(y,o),m[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=s.dataToPoint(m)||[]}else t=s.dataToPoint(i.getValues(ot(s.dimensions,function(b){return i.mapDimension(b)}),o))||[];else if(l){var _=l.getBoundingRect().clone();_.applyTransform(l.transform),t=[_.x+_.width/2,_.y+_.height/2]}return{point:t,el:l}}var WO=$t();function ert(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||dt(t.dispatchAction,t),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){yg(n)&&(n=eV({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var s=yg(n),u=i.axesInfo,c=l.axesInfo,h=a==="leave"||yg(n),d={},p={},y={list:[],map:{}},m={showPointer:Et(art,p),showTooltip:Et(nrt,y)};N(l.coordSysMap,function(b,x){var w=s||b.containPoint(n);N(l.coordSysAxesInfo[x],function(A,M){var D=A.axis,L=srt(u,A);if(!h&&w&&(!u||L)){var R=L&&L.value;R==null&&!s&&(R=D.pointToData(n)),R!=null&&ZO(A,R,m,!1,d)}})});var _={};return N(c,function(b,x){var w=b.linkGroup;w&&!p[x]&&N(w.axesInfo,function(A,M){var D=p[M];if(A!==b&&D){var L=D.value;w.mapper&&(L=b.axis.scale.parse(w.mapper(L,qO(A),qO(b)))),_[b.key]=L}})}),N(_,function(b,x){ZO(c[x],b,m,!0,d)}),irt(p,c,d),ort(y,n,r,o),lrt(c,o,t),d}}function ZO(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=rrt(e,r),l=o.payloadBatch,s=o.snapToValue;l[0]&&n.seriesIndex==null&&rt(n,l[0]),!a&&r.snap&&i.containData(s)&&s!=null&&(e=s),t.showPointer(r,e,l),t.showTooltip(r,o,s)}}function rrt(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,l=-1;return N(e.seriesModels,function(s,u){var c=s.getData().mapDimensionsAll(a),h,d;if(s.getAxisTooltipData){var p=s.getAxisTooltipData(c,r,t);d=p.dataIndices,h=p.nestestValue}else{if(d=s.getData().indicesOfNearest(c[0],r,t.type==="category"?.5:null),!d.length)return;h=s.getData().get(c[0],d[0])}if(!(h==null||!isFinite(h))){var y=r-h,m=Math.abs(y);m<=o&&((m<o||y>=0&&l<0)&&(o=m,l=y,n=h,i.length=0),N(d,function(_){i.push({seriesIndex:s.seriesIndex,dataIndexInside:_,dataIndex:s.getData().getRawIndex(_)})}))}}),{payloadBatch:i,snapToValue:n}}function art(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function nrt(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,l=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var s=e.coordSys.model,u=ev(s),c=r.map[u];c||(c=r.map[u]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function irt(r,e,t){var a=t.axesInfo=[];N(e,function(n,i){var o=n.axisPointerModel.option,l=r[i];l?(!n.useHandle&&(o.status="show"),o.value=l.value,o.seriesDataIndices=(l.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function ort(r,e,t,a){if(yg(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function lrt(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=WO(a)[n]||{},o=WO(a)[n]={};N(r,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&N(h.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;o[p]=d})});var l=[],s=[];N(i,function(u,c){!o[c]&&s.push(u)}),N(o,function(u,c){!i[c]&&l.push(u)}),s.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),l.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function srt(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function qO(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function yg(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Iv(r){Ts.registerAxisPointerClass("CartesianAxisPointer",Xet),r.registerComponentModel(Zet),r.registerComponentView(trt),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!it(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=gq(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ert)}function urt(r){Gt(LB),Gt(Iv)}var frt=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var l=n.axis;l.dim==="angle"&&(this.animationThreshold=Math.PI/18);var s=l.polar,u=s.getOtherAxis(l),c=u.getExtent(),h=l.dataToCoord(a),d=i.get("type");if(d&&d!=="none"){var p=e2(i),y=hrt[d](l,s,h,c);y.style=p,t.graphicKey=y.type,t.pointer=y}var m=i.get(["label","margin"]),_=crt(a,n,i,s,m);$4(t,n,i,o,_)},e})(t2);function crt(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),l=a.getAngleAxis().getExtent()[0];l=l/180*Math.PI;var s=a.getRadiusAxis().getExtent(),u,c,h;if(i.dim==="radius"){var d=na();Yo(d,d,l),Sn(d,d,[a.cx,a.cy]),u=mn([o,-n],d);var p=e.getModel("axisLabel").get("rotate")||0,y=Ur.innerTextLayout(l,p*Math.PI/180,-1);c=y.textAlign,h=y.textVerticalAlign}else{var m=s[1];u=a.coordToPoint([m+n,o]);var _=a.cx,b=a.cy;c=Math.abs(u[0]-_)/m<.3?"center":u[0]>_?"left":"right",h=Math.abs(u[1]-b)/m<.3?"middle":u[1]>b?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var hrt={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:a2(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:UO(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:UO(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},vrt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(Ht),n2=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",je).models[0]},e.type="polarAxis",e})(Ht);ze(n2,Lf);var drt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(n2),prt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(n2),i2=(function(r){Z(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e})(en);i2.prototype.dataToRadius=en.prototype.dataToCoord;i2.prototype.radiusToData=en.prototype.coordToData;var grt=$t(),o2=(function(r){Z(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var l=i[0],s=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(s),c=dv(l==null?"":l+"",a.getFont(),"center","top"),h=Math.max(c.height,7),d=h/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),y=grt(t.model),m=y.lastAutoInterval,_=y.lastTickCount;return m!=null&&_!=null&&Math.abs(m-p)<=1&&Math.abs(_-o)<=1&&m>p?p=m:(y.lastTickCount=o,y.lastAutoInterval=p),p},e})(en);o2.prototype.dataToAngle=en.prototype.dataToCoord;o2.prototype.angleToData=en.prototype.coordToData;var rV=["radius","angle"],yrt=(function(){function r(e){this.dimensions=rV,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new i2,this._angleAxis=new o2,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]);n.inverse?o=l-360:l=o+360;var s=Math.sqrt(t*t+a*a);t/=s,a/=s;for(var u=Math.atan2(-a,t)/Math.PI*180,c=u<o?1:-1;u<o||u>l;)u+=c*360;return[s,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,n=Math.cos(a)*t+this.cx,i=-Math.sin(a)*t+this.cy;return[n,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(l,s){var u=l-this.cx,c=s-this.cy,h=u*u+c*c,d=this.r,p=this.r0;return d!==p&&h-o<=d*d&&h+o>=p*p}}},r.prototype.convertToPixel=function(e,t,a){var n=$O(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=$O(t);return n===this?this.pointToData(a):null},r})();function $O(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function mrt(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=ht(a[0],n),r.cy=ht(a[1],i);var o=r.getRadiusAxis(),l=Math.min(n,i)/2,s=e.get("radius");s==null?s=[0,"100%"]:it(s)||(s=[0,s]);var u=[ht(s[0],l),ht(s[1],l)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function _rt(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(l){if(l.coordinateSystem===t){var s=l.getData();N(Qg(s,"radius"),function(u){n.scale.unionExtentFromData(s,u)}),N(Qg(s,"angle"),function(u){a.scale.unionExtentFromData(s,u)})}}),ds(a.scale,a.model),ds(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function Srt(r){return r.mainType==="angleAxis"}function KO(r,e){var t;if(r.type=e.get("type"),r.scale=wv(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),Srt(e)){r.inverse=r.inverse!==e.get("clockwise");var a=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:a+(r.inverse?-360:360);r.setExtent(a,n)}e.axis=r,r.model=e}var brt={dimensions:rV,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new yrt(n+"");i.update=_rt;var o=i.getRadiusAxis(),l=i.getAngleAxis(),s=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");KO(o,s),KO(l,u),mrt(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",je).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},xrt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function jp(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Xp(r){var e=r.getRadiusAxis();return e.inverse?0:1}function QO(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var wrt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),l=n.getTicksCoords(),s=n.getMinorTicksCoords(),u=ot(n.getViewLabels(),function(c){c=Tt(c);var h=n.scale,d=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=n.dataToCoord(d),c});QO(u),QO(l),N(xrt,function(c){t.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&Trt[c](this.group,t,i,l,s,o,u)},this)}},e.type="angleAxis",e})(Ts),Trt={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),l=t.getAngleAxis(),s=Math.PI/180,u=l.getExtent(),c=Xp(t),h=c?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?d=new Ss[p]({shape:{cx:t.cx,cy:t.cy,r:i[c],startAngle:-u[0]*s,endAngle:-u[1]*s,clockwise:l.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new df({shape:{cx:t.cx,cy:t.cy,r:i[c],r0:i[h]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,r.add(d)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),l=(o.get("inside")?-1:1)*o.get("length"),s=i[Xp(t)],u=ot(a,function(c){return new Qe({shape:jp(t,[s,s+l],c.coord)})});r.add(ya(u,{style:St(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),l=e.getModel("minorTick"),s=(o.get("inside")?-1:1)*l.get("length"),u=i[Xp(t)],c=[],h=0;h<n.length;h++)for(var d=0;d<n[h].length;d++)c.push(new Qe({shape:jp(t,[u,u+s],n[h][d].coord)}));r.add(ya(c,{style:St(l.getModel("lineStyle").getLineStyle(),St(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,a,n,i,o){var l=e.getCategories(!0),s=e.getModel("axisLabel"),u=s.get("margin"),c=e.get("triggerEvent");N(o,function(h,d){var p=s,y=h.tickValue,m=i[Xp(t)],_=t.coordToPoint([m+u,h.coord]),b=t.cx,x=t.cy,w=Math.abs(_[0]-b)/m<.3?"center":_[0]>b?"left":"right",A=Math.abs(_[1]-x)/m<.3?"middle":_[1]>x?"top":"bottom";if(l&&l[y]){var M=l[y];xt(M)&&M.textStyle&&(p=new ee(M.textStyle,s,s.ecModel))}var D=new Xt({silent:Ur.isLabelSilent(e),style:_e(p,{x:_[0],y:_[1],fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:w,verticalAlign:A})});if(r.add(D),c){var L=Ur.makeAxisEventDataBase(e);L.targetType="axisLabel",L.value=h.rawLabel,Mt(D).eventData=L}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),l=o.getModel("lineStyle"),s=l.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],h=0;h<a.length;h++){var d=u++%s.length;c[d]=c[d]||[],c[d].push(new Qe({shape:jp(t,i,a[h].coord)}))}for(var h=0;h<c.length;h++)r.add(ya(c[h],{style:St({stroke:s[h%s.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("minorSplitLine"),l=o.getModel("lineStyle"),s=[],u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)s.push(new Qe({shape:jp(t,i,n[u][c].coord)}));r.add(ya(s,{style:l.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,a,n,i){if(a.length){var o=e.getModel("splitArea"),l=o.getModel("areaStyle"),s=l.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],h=Math.PI/180,d=-a[0].coord*h,p=Math.min(i[0],i[1]),y=Math.max(i[0],i[1]),m=e.get("clockwise"),_=1,b=a.length;_<=b;_++){var x=_===b?a[0].coord:a[_].coord,w=u++%s.length;c[w]=c[w]||[],c[w].push(new Or({shape:{cx:t.cx,cy:t.cy,r0:p,r:y,startAngle:d,endAngle:-x*h,clockwise:m},silent:!0})),d=-x*h}for(var _=0;_<c.length;_++)r.add(ya(c[_],{style:St({fill:s[_%s.length]},l.getAreaStyle()),silent:!0}))}}},Art=["axisLine","axisTickLabel","axisName"],Crt=["splitLine","splitArea","minorSplitLine"],Drt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=this._axisGroup,i=this._axisGroup=new Ct;this.group.add(i);var o=t.axis,l=o.polar,s=l.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),h=s.getExtent()[0],d=o.getExtent(),p=Lrt(l,t,h),y=new Ur(t,p);N(Art,y.add,y),i.add(y.getGroup()),Sv(n,i,t),N(Crt,function(m){t.get([m,"show"])&&!o.scale.isBlank()&&Mrt[m](this.group,t,l,h,d,u,c)},this)}},e.type="radiusAxis",e})(Ts),Mrt={splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),l=o.getModel("lineStyle"),s=l.get("color"),u=0,c=t.getAngleAxis(),h=Math.PI/180,d=c.getExtent(),p=Math.abs(d[1]-d[0])===360?"Circle":"Arc";s=s instanceof Array?s:[s];for(var y=[],m=0;m<i.length;m++){var _=u++%s.length;y[_]=y[_]||[],y[_].push(new Ss[p]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[m].coord,0),startAngle:-d[0]*h,endAngle:-d[1]*h,clockwise:c.inverse}}))}for(var m=0;m<y.length;m++)r.add(ya(y[m],{style:St({stroke:s[m%s.length],fill:null},l.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,a,n,i,o){if(o.length){for(var l=e.getModel("minorSplitLine"),s=l.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var h=0;h<o[c].length;h++)u.push(new Wn({shape:{cx:t.cx,cy:t.cy,r:o[c][h].coord}}));r.add(ya(u,{style:St({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,a,n,i){if(i.length){var o=e.getModel("splitArea"),l=o.getModel("areaStyle"),s=l.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],h=i[0].coord,d=1;d<i.length;d++){var p=u++%s.length;c[p]=c[p]||[],c[p].push(new Or({shape:{cx:t.cx,cy:t.cy,r0:h,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=i[d].coord}for(var d=0;d<c.length;d++)r.add(ya(c[d],{style:St({fill:s[d%s.length]},l.getAreaStyle()),silent:!0}))}}};function Lrt(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function aV(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function nV(r,e){return e.dim+r.model.componentIndex}function Rrt(r,e,t){var a={},n=Ert(te(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),l=i.coordinateSystem,s=l.getBaseAxis(),u=nV(l,s),c=aV(i),h=n[u][c],d=h.offset,p=h.width,y=l.getOtherAxis(s),m=i.coordinateSystem.cx,_=i.coordinateSystem.cy,b=i.get("barMinHeight")||0,x=i.get("barMinAngle")||0;a[c]=a[c]||[];for(var w=o.mapDimension(y.dim),A=o.mapDimension(s.dim),M=Ni(o,w),D=s.dim!=="radius"||!i.get("roundCap",!0),L=y.model,R=L.get("startValue"),E=y.dataToCoord(R||0),O=0,P=o.count();O<P;O++){var k=o.get(w,O),V=o.get(A,O),H=k>=0?"p":"n",U=E;M&&(a[c][V]||(a[c][V]={p:E,n:E}),U=a[c][V][H]);var z=void 0,Y=void 0,j=void 0,$=void 0;if(y.dim==="radius"){var tt=y.dataToCoord(k)-E,F=s.dataToCoord(V);Math.abs(tt)<b&&(tt=(tt<0?-1:1)*b),z=U,Y=U+tt,j=F-d,$=j-p,M&&(a[c][V][H]=Y)}else{var W=y.dataToCoord(k,D)-E,at=s.dataToCoord(V);Math.abs(W)<x&&(W=(W<0?-1:1)*x),z=at+d,Y=z+p,j=U,$=U+W,M&&(a[c][V][H]=$)}o.setItemLayout(O,{cx:m,cy:_,r0:z,r:Y,startAngle:-j*Math.PI/180,endAngle:-$*Math.PI/180,clockwise:j>=$})}}})}function Ert(r){var e={};N(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,l=o.getBaseAxis(),s=nV(o,l),u=l.getExtent(),c=l.type==="category"?l.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[s]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;e[s]=h;var p=aV(a);d[p]||h.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var y=ht(a.get("barWidth"),c),m=ht(a.get("barMaxWidth"),c),_=a.get("barGap"),b=a.get("barCategoryGap");y&&!d[p].width&&(y=Math.min(h.remainedWidth,y),d[p].width=y,h.remainedWidth-=y),m&&(d[p].maxWidth=m),_!=null&&(h.gap=_),b!=null&&(h.categoryGap=b)});var t={};return N(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,l=ht(a.categoryGap,o),s=ht(a.gap,1),u=a.remainedWidth,c=a.autoWidthCount,h=(u-l)/(c+(c-1)*s);h=Math.max(h,0),N(i,function(m,_){var b=m.maxWidth;b&&b<h&&(b=Math.min(b,u),m.width&&(b=Math.min(b,m.width)),u-=b,m.width=b,c--)}),h=(u-l)/(c+(c-1)*s),h=Math.max(h,0);var d=0,p;N(i,function(m,_){m.width||(m.width=h),p=m,d+=m.width*(1+s)}),p&&(d-=p.width*s);var y=-d/2;N(i,function(m,_){t[n][_]=t[n][_]||{offset:y,width:m.width},y+=m.width*(1+s)})}),t}var Irt={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Ort={splitNumber:5},Nrt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(we);function Prt(r){Gt(Iv),Ts.registerAxisPointerClass("PolarAxisPointer",frt),r.registerCoordinateSystem("polar",brt),r.registerComponentModel(vrt),r.registerComponentView(Nrt),lf(r,"angle",drt,Irt),lf(r,"radius",prt,Ort),r.registerComponentView(wrt),r.registerComponentView(Drt),r.registerLayout(Et(Rrt,"bar"))}function Nx(r,e){e=e||{};var t=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,l=t.getRect(),s=[l.x,l.x+l.width,l.y,l.y+l.height],u={horizontal:{top:s[2],bottom:s[3]},vertical:{left:s[0],right:s[1]}};n.position=[o==="vertical"?u.vertical[i]:s[0],o==="horizontal"?u.horizontal[i]:s[3]];var c={horizontal:0,vertical:1};n.rotation=Math.PI/2*c[o];var h={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=h[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),er(e.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.rotate;return d==null&&(d=r.get(["axisLabel","rotate"])),n.labelRotation=i==="top"?-d:d,n.z2=1,n}var zrt=["axisLine","axisTickLabel","axisName"],krt=["splitArea","splitLine"],Brt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,a,n,i){var o=this.group;o.removeAll();var l=this._axisGroup;this._axisGroup=new Ct;var s=Nx(t),u=new Ur(t,s);N(zrt,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),N(krt,function(c){t.get([c,"show"])&&Vrt[c](this,this.group,this._axisGroup,t)},this),Sv(l,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){CB(this)},e.type="singleAxis",e})(Ts),Vrt={splitLine:function(r,e,t,a){var n=a.axis;if(!n.scale.isBlank()){var i=a.getModel("splitLine"),o=i.getModel("lineStyle"),l=o.get("color");l=l instanceof Array?l:[l];for(var s=o.get("width"),u=a.coordinateSystem.getRect(),c=n.isHorizontal(),h=[],d=0,p=n.getTicksCoords({tickModel:i}),y=[],m=[],_=0;_<p.length;++_){var b=n.toGlobalCoord(p[_].coord);c?(y[0]=b,y[1]=u.y,m[0]=b,m[1]=u.y+u.height):(y[0]=u.x,y[1]=b,m[0]=u.x+u.width,m[1]=b);var x=new Qe({shape:{x1:y[0],y1:y[1],x2:m[0],y2:m[1]},silent:!0});rf(x.shape,s);var w=d++%l.length;h[w]=h[w]||[],h[w].push(x)}for(var A=o.getLineStyle(["color"]),_=0;_<h.length;++_)e.add(ya(h[_],{style:St({stroke:l[_%l.length]},A),silent:!0}))}},splitArea:function(r,e,t,a){AB(r,t,a,a)}},mg=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return 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})(Ht);ze(mg,Lf.prototype);var Grt=(function(r){Z(e,r);function e(t,a,n,i,o){var l=r.call(this,t,a,n)||this;return l.type=i||"value",l.position=o||"bottom",l}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,a){return this.coordinateSystem.pointToData(t)[0]},e})(en),iV=["single"],Hrt=(function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=iV,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=this.dimension,i=new Grt(n,wv(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();N(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),ds(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=Xe({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,a=t.isHorizontal(),n=a?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,a?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var a=e.getExtent(),n=a[0]+a[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){var n=JO(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=JO(t);return n===this?this.pointToData(a):null},r})();function JO(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Frt(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new Hrt(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",je).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var Urt={create:Frt,dimensions:iV},tN=["x","y"],Yrt=["width","height"],jrt=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var l=n.axis,s=l.coordinateSystem,u=NS(s,1-hy(l)),c=s.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var d=e2(i),p=Xrt[h](l,c,u);p.style=d,t.graphicKey=p.type,t.pointer=p}var y=Nx(n);Q4(a,t,y,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Nx(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=r2(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,l=o.coordinateSystem,s=hy(o),u=NS(l,s),c=[t.x,t.y];c[s]+=a[s],c[s]=Math.min(u[1],c[s]),c[s]=Math.max(u[0],c[s]);var h=NS(l,1-s),d=(h[1]+h[0])/2,p=[d,d];return p[s]=c[s],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},e})(t2),Xrt={line:function(r,e,t){var a=a2([e,t[0]],[e,t[1]],hy(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:J4([e-a/2,t[0]],[a,n],hy(r))}}};function hy(r){return r.isHorizontal()?0:1}function NS(r,e){var t=r.getRect();return[t[tN[e]],t[tN[e]]+t[Yrt[e]]]}var Wrt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(we);function Zrt(r){Gt(Iv),Ts.registerAxisPointerClass("SingleAxisPointer",jrt),r.registerComponentView(Wrt),r.registerComponentView(Brt),r.registerComponentModel(mg),lf(r,"single",mg,mg.defaultOption),r.registerCoordinateSystem("single",Urt)}var qrt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=bf(t);r.prototype.init.apply(this,arguments),eN(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),eN(this.option,t)},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})(Ht);function eN(r,e){var t=r.cellSize,a;it(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=ot([0,1],function(i){return KU(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Go(r,e,{type:"box",ignoreSize:n})}var $rt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,l=o.getRangeInfo(),s=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,l,i),this._renderLines(t,l,s,i),this._renderYearText(t,l,s,i),this._renderMonthText(t,u,s,i),this._renderWeekText(t,u,l,s,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),l=i.getCellWidth(),s=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,h=new Wt({shape:{x:c[0],y:c[1],width:l,height:s},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,l=t.coordinateSystem,s=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,d=0;h.time<=a.end.time;d++){y(h.formatedDate),d===0&&(h=l.getDateInfo(a.start.y+"-"+a.start.m));var p=h.date;p.setMonth(p.getMonth()+1),h=l.getDateInfo(p)}y(l.getNextNDay(a.end.time,1).formatedDate);function y(m){o._firstDayOfMonth.push(l.getDateInfo(m)),o._firstDayPoints.push(l.dataToRect([m],!1).tl);var _=o._getLinePointsOfOneWeek(t,m,n);o._tlpoints.push(_[0]),o._blpoints.push(_[_.length-1]),u&&o._drawSplitline(_,s,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),s,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),s,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new zr({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),l=[],s=0;s<7;s++){var u=i.getNextNDay(o.time,s),c=i.dataToRect([u.time],!1);l[2*u.day]=c.tl,l[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return l},e.prototype._formatterLabel=function(t,a){return vt(t)&&t?WU(t,a):_t(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var l=a[0],s=a[1],u=["center","bottom"];i==="bottom"?(s+=o,u=["center","top"]):i==="left"?l-=o:i==="right"?(l+=o,u=["center","top"]):s-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:l,y:s,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var l=o.get("margin"),s=o.get("position");s||(s=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,d=n==="horizontal"?0:1,p={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],h],right:[u[d][0],h]},y=a.start.y;+a.end.y>+a.start.y&&(y=y+"-"+a.end.y);var m=o.get("formatter"),_={start:a.start.y,end:a.end.y,nameMap:y},b=this._formatterLabel(m,_),x=new Xt({z2:30,style:_e(o,{text:b}),silent:o.get("silent")});x.attr(this._yearTextPositionControl(x,p[s],n,s,l)),i.add(x)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var l="left",s="top",u=t[0],c=t[1];return n==="horizontal"?(c=c+o,a&&(l="center"),i==="start"&&(s="bottom")):(u=u+o,a&&(s="middle"),i==="start"&&(l="right")),{x:u,y:c,align:l,verticalAlign:s}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var l=o.get("nameMap"),s=o.get("margin"),u=o.get("position"),c=o.get("align"),h=[this._tlpoints,this._blpoints];(!l||vt(l))&&(l&&(a=Gb(l)||a),l=a.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=n==="horizontal"?0:1;s=u==="start"?-s:s;for(var y=c==="center",m=o.get("silent"),_=0;_<h[d].length-1;_++){var b=h[d][_].slice(),x=this._firstDayOfMonth[_];if(y){var w=this._firstDayPoints[_];b[p]=(w[p]+h[0][_+1][p])/2}var A=o.get("formatter"),M=l[+x.m-1],D={yyyy:x.y,yy:(x.y+"").slice(2),MM:x.m,M:+x.m,nameMap:M},L=this._formatterLabel(A,D),R=new Xt({z2:30,style:rt(_e(o,{text:L}),this._monthTextPositionControl(b,y,n,u,s)),silent:m});i.add(R)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var l="center",s="middle",u=t[0],c=t[1],h=n==="start";return a==="horizontal"?(u=u+i+(h?1:-1)*o[0]/2,l=h?"right":"left"):(c=c+i+(h?1:-1)*o[1]/2,s=h?"bottom":"top"),{x:u,y:c,align:l,verticalAlign:s}},e.prototype._renderWeekText=function(t,a,n,i,o){var l=t.getModel("dayLabel");if(l.get("show")){var s=t.coordinateSystem,u=l.get("position"),c=l.get("nameMap"),h=l.get("margin"),d=s.getFirstDayOfWeek();if(!c||vt(c)){c&&(a=Gb(c)||a);var p=a.get(["time","dayOfWeekShort"]);c=p||ot(a.get(["time","dayOfWeekAbbr"]),function(D){return D[0]})}var y=s.getNextNDay(n.end.time,7-n.lweek).time,m=[s.getCellWidth(),s.getCellHeight()];h=ht(h,Math.min(m[1],m[0])),u==="start"&&(y=s.getNextNDay(n.start.time,-(7+n.fweek)).time,h=-h);for(var _=l.get("silent"),b=0;b<7;b++){var x=s.getNextNDay(y,b),w=s.dataToRect([x.time],!1).center,A=b;A=Math.abs((b+d)%7);var M=new Xt({z2:30,style:rt(_e(l,{text:c[A]}),this._weekTextPositionControl(w,i,u,h,m)),silent:_});o.add(M)}}},e.type="calendar",e})(we),PS=864e5,Krt=(function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=ba(e);var t=e.getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,l=e.getDay();return l=Math.abs((l+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:l,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),l=this._orient==="horizontal"?[a,7]:[7,a];N([0,1],function(h){c(i,h)&&(o[n[h]]=i[h]*l[h])});var s={width:t.getWidth(),height:t.getHeight()},u=this._rect=Xe(o,s);N([0,1],function(h){c(i,h)||(i[h]=u[n[h]]/l[h])});function c(h,d){return h[d]!=null&&h[d]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){it(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),n=this._rangeInfo,i=a.formatedDate;if(t&&!(a.time>=n.start.time&&a.time<n.end.time+PS))return[NaN,NaN];var o=a.day,l=this._getRangeInfo([n.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var a=this.dataToPoint(e,t);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=rN(t);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=rN(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(it(e)&&e.length===1&&(e=e[0]),it(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var l=this._getRangeInfo(t);return l.start.time>l.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/PS)-Math.floor(t[0].time/PS)+1,i=new Date(t[0].time),o=i.getDate(),l=t[1].date.getDate();i.setDate(o+n-1);var s=i.getDate();if(s!==l)for(var u=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==l&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(s-u);var c=Math.floor((n+t[0].day+6)/7),h=a?-c+1:c-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:c,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r})();function rN(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function Qrt(r){r.registerComponentModel(qrt),r.registerComponentView($rt),r.registerCoordinateSystem("calendar",Krt)}function Jrt(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function aN(r,e){var t;return N(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function tat(r,e,t){var a=rt({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(It(n,a,!0),Go(n,a,{ignoreSize:!0}),Zz(t,n),Wp(t,n),Wp(t,n,"shape"),Wp(t,n,"style"),Wp(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var oV=["transition","enterFrom","leaveTo"],eat=oV.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Wp(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?oV:eat,n=0;n<a.length;n++){var i=a[n];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function rat(r,e){if(r&&(r.hv=e.hv=[aN(e,["left","right"]),aN(e,["top","bottom"])],r.type==="group")){var t=r,a=e;t.width==null&&(t.width=a.width=0),t.height==null&&(t.height=a.height=0)}}var aat=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=n},e.prototype.optionUpdated=function(t,a){var n=this.option,i=(a?n:t).elements,o=n.elements=a?[]:n.elements,l=[];this._flatten(i,l,null);var s=XP(o,l,"normalMerge"),u=this._elOptionsToUpdate=[];N(s,function(c,h){var d=c.newOption;d&&(u.push(d),Jrt(c,d),tat(o,h,d),rat(o[h],d))},this),n.elements=te(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,a,n){N(t,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(Ht),nN={path:null,compoundPath:null,group:Ct,image:or,text:Xt},Ua=$t(),nat=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=mt()},e.prototype.render=function(t,a,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=t.get("z"),l=t.get("zlevel");N(a,function(s){var u=Ke(s.id,null),c=u!=null?n.get(u):null,h=Ke(s.parentId,null),d=h!=null?n.get(h):i,p=s.type,y=s.style;p==="text"&&y&&s.hv&&s.hv[1]&&(y.textVerticalAlign=y.textBaseline=y.verticalAlign=y.align=null);var m=s.textContent,_=s.textConfig;if(y&&G4(y,p,!!_,!!m)){var b=H4(y,p,!0);!_&&b.textConfig&&(_=s.textConfig=b.textConfig),!m&&b.textContent&&(m=b.textContent)}var x=iat(s),w=s.$action||"merge",A=w==="merge",M=w==="replace";if(A){var D=!c,L=c;D?L=iN(u,d,s.type,n):(L&&(Ua(L).isNew=!1),j4(L)),L&&(gg(L,x,t,{isInit:D}),oN(L,s,o,l))}else if(M){_g(c,s,n,t);var R=iN(u,d,s.type,n);R&&(gg(R,x,t,{isInit:!0}),oN(R,s,o,l))}else w==="remove"&&(U4(c,s),_g(c,s,n,t));var E=n.get(u);if(E&&m)if(A){var O=E.getTextContent();O?O.attr(m):E.setTextContent(new Xt(m))}else M&&E.setTextContent(new Xt(m));if(E){var P=s.clipPath;if(P){var k=P.type,V=void 0,D=!1;if(A){var H=E.getClipPath();D=!H||Ua(H).type!==k,V=D?Px(k):H}else M&&(D=!0,V=Px(k));E.setClipPath(V),gg(V,P,t,{isInit:D}),fy(V,P.keyframeAnimation,t)}var U=Ua(E);E.setTextConfig(_),U.option=s,oat(E,t,s),_s({el:E,componentModel:t,itemName:E.name,itemTooltipOption:s.tooltip}),fy(E,s.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,a){for(var n=t.option.elements,i=this.group,o=this._elMap,l=a.getWidth(),s=a.getHeight(),u=["x","y"],c=0;c<n.length;c++){var h=n[c],d=Ke(h.id,null),p=d!=null?o.get(d):null;if(!(!p||!p.isGroup)){var y=p.parent,m=y===i,_=Ua(p),b=Ua(y);_.width=ht(_.option.width,m?l:b.width)||0,_.height=ht(_.option.height,m?s:b.height)||0}}for(var c=n.length-1;c>=0;c--){var h=n[c],d=Ke(h.id,null),p=d!=null?o.get(d):null;if(p){var y=p.parent,b=Ua(y),x=y===i?{width:l,height:s}:{width:b.width,height:b.height},w={},A=Wy(p,h,x,null,{hv:h.hv,boundingMode:h.bounding},w);if(!Ua(p).isNew&&A){for(var M=h.transition,D={},L=0;L<u.length;L++){var R=u[L],E=w[R];M&&(ls(M)||Bt(M,R)>=0)?D[R]=E:p[R]=E}Jt(p,D,t,0)}else p.attr(w)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){_g(n,Ua(n).option,a,t._lastGraphicModel)}),this._elMap=mt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(we);function Px(r){var e=gt(nN,r)?nN[r]:Gy(r),t=new e({});return Ua(t).type=r,t}function iN(r,e,t,a){var n=Px(t);return e.add(n),a.set(r,n),Ua(n).id=r,Ua(n).isNew=!0,n}function _g(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){_g(i,e,t,a)}),fm(r,e,a),t.removeKey(Ua(r).id))}function oN(r,e,t,a){r.isGroup||N([["cursor",$a.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];gt(e,i)?r[i]=Rt(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),N(Yt(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=_t(i)?i:null}}),gt(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function iat(r){return r=rt({},r),N(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Wz),function(e){delete r[e]}),r}function oat(r,e,t){var a=Mt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=Mt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function lat(r){r.registerComponentModel(aat),r.registerComponentView(nat),r.registerPreprocessor(function(e){var t=e.graphic;it(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var lN=["x","y","radius","angle","single"],sat=["cartesian2d","polar","singleAxis"];function uat(r){var e=r.get("coordinateSystem");return Bt(sat,e)>=0}function Lo(r){return r+"Axis"}function fat(r,e){var t=mt(),a=[],n=mt();r.eachComponent({mainType:"dataZoom",query:e},function(c){n.get(c.uid)||l(c)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(c){!n.get(c.uid)&&s(c)&&(l(c),i=!0)}function l(c){n.set(c.uid,!0),a.push(c),u(c)}function s(c){var h=!1;return c.eachTargetAxis(function(d,p){var y=t.get(d);y&&y[p]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,d){(t.get(h)||t.set(h,[]))[d]=!0})}return a}function lV(r){var e=r.ecModel,t={infoList:[],infoMap:mt()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(Lo(a),n);if(i){var o=i.getCoordSysModel();if(o){var l=o.uid,s=t.infoMap.get(l);s||(s={model:o,axisModels:[]},t.infoList.push(s),t.infoMap.set(l,s)),s.axisModels.push(i)}}}),t}var zS=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),lv=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,n){var i=sN(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=sN(t);It(this.option,t,!0),It(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;N([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=mt(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return N(lN,function(n){var i=this.getReferringComponents(Lo(n),V7);if(i.specified){a=!0;var o=new zS;N(i.models,function(l){o.add(l.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",l=n.findComponents({mainType:o+"Axis"});s(l,o)}if(i){var l=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===a}});s(l,"single")}function s(u,c){var h=u[0];if(h){var d=new zS;if(d.add(h.componentIndex),t.set(c,d),i=!1,c==="x"||c==="y"){var p=h.getReferringComponents("grid",je).models[0];p&&N(u,function(y){h.componentIndex!==y.componentIndex&&p===y.getReferringComponents("grid",je).models[0]&&d.add(y.componentIndex)})}}}i&&N(lN,function(u){if(i){var c=n.findComponents({mainType:Lo(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var h=new zS;h.add(c[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");N([["start","startValue"],["end","endValue"]],function(i,o){var l=t[i[0]]!=null,s=t[i[1]]!=null;l&&!s?a[o]="percent":!l&&s?a[o]="value":n?a[o]=n[o]:l&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(Lo(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){N(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(Lo(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;N([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;N(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],l=this._targetAxisInfoMap.get(o),s=0;s<l.indexList.length;s++){var u=this.getAxisProxy(o,l.indexList[s]);if(u.hostedBy(this))return u;a||(a=u)}return a},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return 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})(Ht);function sN(r){var e={};return N(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var cat=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(lv),l2=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.dataZoomModel=t,this.ecModel=a,this.api=n},e.type="dataZoom",e})(we),hat=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(l2),ku=N,uN=ma,vat=(function(){function r(e,t,a,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(uat(t)){var a=Lo(this._dimName),n=t.getReferringComponents(a,je).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Tt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],l=[],s=[],u;ku(["start","end"],function(d,p){var y=e[d],m=e[d+"Value"];i[p]==="percent"?(y==null&&(y=o[p]),m=n.parse(oe(y,o,t))):(u=!0,m=m==null?t[p]:n.parse(m),y=oe(m,t,o)),s[p]=m==null||isNaN(m)?t[p]:m,l[p]=y==null||isNaN(y)?o[p]:y}),uN(s),uN(l);var c=this._minMaxSpan;u?h(s,l,t,o,!1):h(l,s,o,t,!0);function h(d,p,y,m,_){var b=_?"Span":"ValueSpan";As(0,d,y,"all",c["min"+b],c["max"+b]);for(var x=0;x<2;x++)p[x]=oe(d[x],y,m,!0),_&&(p[x]=n.parse(p[x]))}return{valueWindow:s,percentWindow:l}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=dat(this,this._dimName,t),this._updateMinMaxSpan();var a=this.calculateDataWindow(e.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;ku(n,function(s){var u=s.getData(),c=u.mapDimensionsAll(a);if(c.length){if(i==="weakFilter"){var h=u.getStore(),d=ot(c,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var y,m,_,b=0;b<c.length;b++){var x=h.get(d[b],p),w=!isNaN(x),A=x<o[0],M=x>o[1];if(w&&!A&&!M)return!0;w&&(_=!0),A&&(y=!0),M&&(m=!0)}return _&&y&&m})}else ku(c,function(p){if(i==="empty")s.setData(u=u.map(p,function(m){return l(m)?m:NaN}));else{var y={};y[p]=o,u.selectRange(y)}});ku(c,function(p){u.setApproximateExtent(o,p)})}});function l(s){return s>=o[0]&&s<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;ku(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=oe(a[0]+o,a,[0,100],!0):i!=null&&(o=oe(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=fw(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r})();function dat(r,e,t){var a=[1/0,-1/0];ku(t,function(o){EX(a,o.getData(),e)});var n=r.getAxisModel(),i=Ak(n.axis.scale,n,a).calculate();return[i.min,i.max]}var pat={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,l){var s=r.getComponent(Lo(o),l);n(o,l,s,i)})})}e(function(n,i,o,l){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,l){o.__dzAxisProxy||(o.__dzAxisProxy=new vat(n,i,l,r),t.push(o.__dzAxisProxy))});var a=mt();return N(t,function(n){N(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function gat(r){r.registerAction("dataZoom",function(e,t){var a=fat(t,e);N(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var fN=!1;function s2(r){fN||(fN=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,pat),gat(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function yat(r){r.registerComponentModel(cat),r.registerComponentView(hat),s2(r)}var ja=(function(){function r(){}return r})(),sV={};function Bu(r,e){sV[r]=e}function uV(r){return sV[r]}var mat=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;N(this.option.feature,function(a,n){var i=uV(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),It(a,i.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})(Ht);function _at(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=Xe(a,i,n);ns(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Wy(r,a,i,n)}function fV(r,e){var t=bs(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new Wt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var Sat=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var l=+t.get("itemSize"),s=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),h=[];N(u,function(y,m){h.push(m)}),new Oi(this._featureNames||[],h).add(d).update(d).remove(Et(d,null)).execute(),this._featureNames=h;function d(y,m){var _=h[y],b=h[m],x=u[_],w=new ee(x,t,t.ecModel),A;if(i&&i.newTitle!=null&&i.featureName===_&&(x.title=i.newTitle),_&&!b){if(bat(_))A={onclick:w.option.onclick,featureName:_};else{var M=uV(_);if(!M)return;A=new M}c[_]=A}else if(A=c[b],!A)return;A.uid=Sf("toolbox-feature"),A.model=w,A.ecModel=a,A.api=n;var D=A instanceof ja;if(!_&&b){D&&A.dispose&&A.dispose(a,n);return}if(!w.get("show")||D&&A.unusable){D&&A.remove&&A.remove(a,n);return}p(w,A,_),w.setIconStatus=function(L,R){var E=this.option,O=this.iconPaths;E.iconStatus=E.iconStatus||{},E.iconStatus[L]=R,O[L]&&(R==="emphasis"?Ei:Ii)(O[L])},A instanceof ja&&A.render&&A.render(w,a,n,i)}function p(y,m,_){var b=y.getModel("iconStyle"),x=y.getModel(["emphasis","iconStyle"]),w=m instanceof ja&&m.getIcons?m.getIcons():y.get("icon"),A=y.get("title")||{},M,D;vt(w)?(M={},M[_]=w):M=w,vt(A)?(D={},D[_]=A):D=A;var L=y.iconPaths={};N(M,function(R,E){var O=mf(R,{},{x:-l/2,y:-l/2,width:l,height:l});O.setStyle(b.getItemStyle());var P=O.ensureState("emphasis");P.style=x.getItemStyle();var k=new Xt({style:{text:D[E],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:Rw({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},a)},ignore:!0});O.setTextContent(k),_s({el:O,componentModel:t,itemName:E,formatterParamsExtra:{title:D[E]}}),O.__title=D[E],O.on("mouseover",function(){var V=x.getItemStyle(),H=s?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:x.get("textFill")||V.fill||V.stroke||"#000",backgroundColor:x.get("textBackgroundColor")}),O.setTextConfig({position:x.get("textPosition")||H}),k.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",E])!=="emphasis"&&n.leaveEmphasis(this),k.hide()}),(y.get(["iconStatus",E])==="emphasis"?Ei:Ii)(O),o.add(O),O.on("click",dt(m.onclick,m,a,n,E)),L[E]=O})}_at(o,t,n),o.add(fV(o.getBoundingRect(),t)),s||o.eachChild(function(y){var m=y.__title,_=y.ensureState("emphasis"),b=_.textConfig||(_.textConfig={}),x=y.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!_t(w)&&m){var A=w.style||(w.style={}),M=dv(m,Xt.makeFont(A)),D=y.x+o.x,L=y.y+o.y+l,R=!1;L+M.height>n.getHeight()&&(b.position="top",R=!0);var E=R?-5-M.height:l+10;D+M.width/2>n.getWidth()?(b.position=["100%",E],A.align="right"):D-M.width/2<0&&(b.position=[0,E],A.align="left")}})},e.prototype.updateView=function(t,a,n,i){N(this._features,function(o){o instanceof ja&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){N(this._features,function(n){n instanceof ja&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){N(this._features,function(n){n instanceof ja&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e})(we);function bat(r){return r.indexOf("my")===0}var xat=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",l=o?"svg":n.get("type",!0)||"png",s=a.getConnectedDataURL({type:l,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Ft.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+l,c.target="_blank",c.href=s;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var d=s.split(","),p=d[0].indexOf("base64")>-1,y=o?decodeURIComponent(d[1]):d[1];p&&(y=window.atob(y));var m=i+"."+l;if(window.navigator.msSaveOrOpenBlob){for(var _=y.length,b=new Uint8Array(_);_--;)b[_]=y.charCodeAt(_);var x=new Blob([b]);window.navigator.msSaveOrOpenBlob(x,m)}else{var w=document.createElement("iframe");document.body.appendChild(w);var A=w.contentWindow,M=A.document;M.open("image/svg+xml","replace"),M.write(y),M.close(),A.focus(),M.execCommand("SaveAs",!0,m),document.body.removeChild(w)}}else{var D=n.get("lang"),L='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(D&&D[0]||"")+'" /></body>',R=window.open();R.document.write(L),R.document.title=i}},e.getDefaultOption=function(t){var a={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"])};return a},e})(ja),cN="__ec_magicType_stack__",wat=[["line","bar"],["stack"]],Tat=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return N(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={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:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(hN[n]){var l={series:[]},s=function(h){var d=h.subType,p=h.id,y=hN[n](d,p,h,i);y&&(St(y,h.option),l.series.push(y));var m=h.coordinateSystem;if(m&&m.type==="cartesian2d"&&(n==="line"||n==="bar")){var _=m.getAxesByScale("ordinal")[0];if(_){var b=_.dim,x=b+"Axis",w=h.getReferringComponents(x,je).models[0],A=w.componentIndex;l[x]=l[x]||[];for(var M=0;M<=A;M++)l[x][A]=l[x][A]||{};l[x][A].boundaryGap=n==="bar"}}};N(wat,function(h){Bt(h,n)>=0&&N(h,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},s);var u,c=n;n==="stack"&&(u=It({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(c="tiled")),a.dispatchAction({type:"changeMagicType",currentType:c,newOption:l,newTitle:u,featureName:"magicType"})}},e})(ja),hN={line:function(r,e,t,a){if(r==="bar")return It({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return It({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===cN;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),It({id:e,stack:n?"":cN},a.get(["option","stack"])||{},!0)}};wn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var cm=new Array(60).join("-"),ff=" ";function Aat(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var l=o.dim+"_"+o.index;e[l]||(e[l]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[l].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function Cat(r){var e=[];return N(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,l=[" "].concat(ot(t.series,function(p){return p.name})),s=[n.model.getCategories()];N(t.series,function(p){var y=p.getRawData();s.push(p.getRawData().mapArray(y.mapDimension(o),function(m){return m}))});for(var u=[l.join(ff)],c=0;c<s[0].length;c++){for(var h=[],d=0;d<s.length;d++)h.push(s[d][c]);u.push(h.join(ff))}e.push(u.join(`
89
- `))}),e.join(`
90
-
91
- `+cm+`
92
-
93
- `)}function Dat(r){return ot(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],l=t.getName(o),s=0;s<i-1;s++)n[s]=arguments[s];a.push((l?l+ff:"")+n.join(ff))}),a.join(`
94
- `)}).join(`
95
-
96
- `+cm+`
97
-
98
- `)}function Mat(r){var e=Aat(r);return{value:te([Cat(e.seriesGroupByCategoryAxis),Dat(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
99
-
100
- `+cm+`
101
-
102
- `),meta:e.meta}}function vy(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Lat(r){var e=r.slice(0,r.indexOf(`
103
- `));if(e.indexOf(ff)>=0)return!0}var zx=new RegExp("["+ff+"]+","g");function Rat(r){for(var e=r.split(/\n+/g),t=vy(e.shift()).split(zx),a=[],n=ot(t,function(s){return{name:s,data:[]}}),i=0;i<e.length;i++){var o=vy(e[i]).split(zx);a.push(o.shift());for(var l=0;l<o.length;l++)n[l]&&(n[l].data[i]=o[l])}return{series:n,categories:a}}function Eat(r){for(var e=r.split(/\n+/g),t=vy(e.shift()),a=[],n=0;n<e.length;n++){var i=vy(e[n]);if(i){var o=i.split(zx),l="",s=void 0,u=!1;isNaN(o[0])?(u=!0,l=o[0],o=o.slice(1),a[n]={name:l,value:[]},s=a[n].value):s=a[n]=[];for(var c=0;c<o.length;c++)s.push(+o[c]);s.length===1&&(u?a[n].value=s[0]:a[n]=s[0])}}return{name:t,data:a}}function Iat(r,e){var t=r.split(new RegExp(`
104
- *`+cm+`
105
- *`,"g")),a={series:[]};return N(t,function(n,i){if(Lat(n)){var o=Rat(n),l=e[i],s=l.axisDim+"Axis";l&&(a[s]=a[s]||[],a[s][l.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=Eat(n);a.series.push(o)}}),a}var Oat=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var l=document.createElement("h4"),s=i.get("lang")||[];l.innerHTML=s[0]||i.get("title"),l.style.cssText="margin:10px 20px",l.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),d=i.get("contentToOption"),p=Mat(t);if(_t(h)){var y=h(a.getOption());vt(y)?u.innerHTML=y:ss(y)&&u.appendChild(y)}else{c.readOnly=i.get("readOnly");var m=c.style;m.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",m.color=i.get("textColor"),m.borderColor=i.get("textareaBorderColor"),m.backgroundColor=i.get("textareaColor"),c.value=p.value,u.appendChild(c)}var _=p.meta,b=document.createElement("div");b.style.cssText="position:absolute;bottom:5px;left:0;right:0";var x="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",w=document.createElement("div"),A=document.createElement("div");x+=";background-color:"+i.get("buttonColor"),x+=";color:"+i.get("buttonTextColor");var M=this;function D(){n.removeChild(o),M._dom=null}cb(w,"click",D),cb(A,"click",function(){if(d==null&&h!=null||d!=null&&h==null){D();return}var L;try{_t(d)?L=d(u,a.getOption()):L=Iat(c.value,_)}catch(R){throw D(),new Error("Data view format error "+R)}L&&a.dispatchAction({type:"changeDataView",newOption:L}),D()}),w.innerHTML=s[1],A.innerHTML=s[2],A.style.cssText=w.style.cssText=x,!i.get("readOnly")&&b.appendChild(A),b.appendChild(w),o.appendChild(l),o.appendChild(u),o.appendChild(b),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={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"};return a},e})(ja);function Nat(r,e){return ot(r,function(t,a){var n=e&&e[a];if(xt(n)&&!it(n)){var i=xt(t)&&!it(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=St(t,n),o&&delete t.name,t}else return t})}wn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];N(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(rt({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:Nat(a.data,i)})}}),e.mergeOption(St({series:t},r.newOption))});var cV=N,hV=$t();function Pat(r,e){var t=u2(r);cV(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var l=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(l){var s=l.getPercentRange();t[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}}),t.push(e)}function zat(r){var e=u2(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return cV(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function kat(r){hV(r).snapshots=null}function Bat(r){return u2(r).length}function u2(r){var e=hV(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Vat=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){kat(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={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"])};return a},e})(ja);wn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Gat=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],f2=(function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=vN(t,e);N(Hat,function(o,l){(!a||!a.include||Bt(a.include,l)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=kS[a.brushType](0,i,n);a.__rangeOffset={offset:yN[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){N(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&N(i.coordSyses,function(o){var l=kS[n.brushType](1,o,n.range,!0);a(n,l.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){N(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=kS[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?yN[a.brushType](i.values,o.offset,Fat(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return ot(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:S4(n),isTargetByCursor:x4(n,e,a.coordSysModel),getLinearBrushOtherExtent:b4(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&Bt(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=vN(t,e),i=0;i<a.length;i++){var o=a[i],l=e.panelId;if(l){if(o.panelId===l)return o}else for(var s=0;s<dN.length;s++)if(dN[s](n,o))return o}return!0},r})();function kx(r){return r[0]>r[1]&&r.reverse(),r}function vN(r,e){return Th(r,e,{includeMainTypes:Gat})}var Hat={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=mt(),o={},l={};!t&&!a&&!n||(N(t,function(s){var u=s.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),N(a,function(s){var u=s.axis.grid.model;i.set(u.id,u),l[u.id]=!0}),N(n,function(s){i.set(s.id,s),o[s.id]=!0,l[s.id]=!0}),i.each(function(s){var u=s.coordinateSystem,c=[];N(u.getCartesians(),function(h,d){(Bt(t,h.getAxis("x").model)>=0||Bt(a,h.getAxis("y").model)>=0)&&c.push(h)}),e.push({panelId:"grid--"+s.id,gridModel:s,coordSysModel:s,coordSys:c[0],coordSyses:c,getPanelRect:pN.grid,xAxisDeclared:o[s.id],yAxisDeclared:l[s.id]})}))},geo:function(r,e){N(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:pN.geo})})}},dN=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],pN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Oo(r)),e}},kS={lineX:Et(gN,0),lineY:Et(gN,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[kx([n[0],i[0]]),kx([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=ot(t,function(o){var l=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],l[0]),n[1][0]=Math.min(n[1][0],l[1]),n[0][1]=Math.max(n[0][1],l[0]),n[1][1]=Math.max(n[1][1],l[1]),l});return{values:i,xyMinMax:n}}};function gN(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=kx(ot([0,1],function(l){return e?n.coordToData(n.toLocalCoord(a[l]),!0):n.toGlobalCoord(n.dataToCoord(a[l]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var yN={lineX:Et(mN,0),lineY:Et(mN,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return ot(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function mN(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function Fat(r,e){var t=_N(r),a=_N(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function _N(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Bx=N,Uat=N7("toolbox-dataZoom_"),Yat=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new kT(n.getZr()),this._brushController.on("brush",dt(this._onBrush,this)).mount()),Wat(t,a,this,i,n),Xat(t,a)},e.prototype.onclick=function(t,a,n){jat[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new f2(c2(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,c,h){if(h.type==="cartesian2d"){var d=u.brushType;d==="rect"?(l("x",h,c[0]),l("y",h,c[1])):l({lineX:"x",lineY:"y"}[d],h,c)}}),Pat(i,n),this._dispatchZoomAction(n);function l(u,c,h){var d=c.getAxis(u),p=d.model,y=s(u,p,i),m=y.findRepresentativeAxisProxy(p).getMinMaxSpan();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(h=As(0,h.slice(),d.scale.getExtent(),0,m.minValueSpan,m.maxValueSpan)),y&&(n[y.id]={dataZoomId:y.id,startValue:h[0],endValue:h[1]})}function s(u,c,h){var d;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var y=p.getAxisModel(u,c.componentIndex);y&&(d=p)}),d}},e.prototype._dispatchZoomAction=function(t){var a=[];Bx(t,function(n,i){a.push(Tt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={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)"}};return a},e})(ja),jat={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(zat(this.ecModel))}};function c2(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Xat(r,e){r.setIconStatus("back",Bat(e)>1?"emphasis":"normal")}function Wat(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new f2(c2(r),e,{include:["grid"]}),l=o.makePanelOpts(n,function(s){return s.xAxisDeclared&&!s.yAxisDeclared?"lineX":!s.xAxisDeclared&&s.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(l).enableBrush(i&&l.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}a9("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=c2(a),o=Th(r,i);Bx(o.xAxisModels,function(s){return l(s,"xAxis","xAxisIndex")}),Bx(o.yAxisModels,function(s){return l(s,"yAxis","yAxisIndex")});function l(s,u,c){var h=s.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:Uat+u+h};d[c]=h,n.push(d)}return n});function Zat(r){r.registerComponentModel(mat),r.registerComponentView(Sat),Bu("saveAsImage",xat),Bu("magicType",Tat),Bu("dataView",Oat),Bu("dataZoom",Yat),Bu("restore",Vat),Gt(yat)}var qat=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return 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})(Ht);function vV(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function dV(r){if(Ft.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var pV=dV(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$at=dV(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function gV(r,e){if(!r)return e;e=Bw(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function Kat(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var Qat=gV($at,"transition"),h2=gV(pV,"transform"),Jat="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ft.transform3dSupported?"will-change:transform;":"");function tnt(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function ent(r,e,t){if(!vt(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=vs(e);var i=tnt(t),o=Math.max(Math.round(n)*1.5,6),l="",s=h2+":",u;Bt(["left","right"],i)>-1?(l+="top:50%",s+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(l+="left:50%",s+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=o+n,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(((d-Math.SQRT2*n)/2+Math.SQRT2*n-(d-h)/2)*100)/100;l+=";"+i+":-"+p+"px";var y=e+" solid "+n+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",l+";"+s+";","border-bottom:"+y,"border-right:"+y,"background-color:"+a+";"];return'<div style="'+m.join("")+'"></div>'}function rnt(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=Ft.transformSupported?","+h2+a:",left"+a+",top"+a),Qat+":"+n}function SN(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!Ft.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ft.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+h2+":"+o+";":[["top",0],["left",0],[pV,o]]}function ant(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=Rt(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,l=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+l+"px "+s+"px "+o+"px "+i),N(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function nnt(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),l=r.get("shadowColor"),s=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=A5(r,"html"),d=s+"px "+u+"px "+o+"px "+l;return a.push("box-shadow:"+d),e&&n&&a.push(rnt(n,t)),i&&a.push("background-color:"+i),N(["width","color","radius"],function(p){var y="border-"+p,m=Bw(y),_=r.get(m);_!=null&&a.push(y+":"+_+(p==="color"?"":"px"))}),a.push(ant(c)),h!=null&&a.push("padding:"+bs(h).join("px ")+"px"),a.join(";")+";"}function bN(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&sH(r,o,t,a,n)}else{r[0]=a,r[1]=n;var l=i&&i.getViewportRootOffset();l&&(r[0]+=l.offsetLeft,r[1]+=l.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var int=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ft.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(vt(i)?document.querySelector(i):ss(i)?i:_t(i)&&i(e.getDom()));bN(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var l=this;a.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},a.onmousemove=function(s){if(s=s||window.event,!l._enterable){var u=n.handler,c=n.painter.getViewportRoot();Ga(c,s,!0),u.dispatch("mousemove",s)}},a.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),a=Kat(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=Jat+nnt(e,!this._firstShow,this._longHide)+SN(i[0],i[1],!0)+("border-color:"+vs(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var l="";if(vt(i)&&a.get("trigger")==="item"&&!vV(a)&&(l=ent(a,n,i)),vt(e))o.innerHTML=e+l;else if(e){o.innerHTML="",it(e)||(e=[e]);for(var s=0;s<e.length;s++)ss(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(l&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=l,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var a=this._styleCoord;if(bN(a,this._zr,this._container,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=SN(a[0],a[1]);N(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",Ft.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r})(),ont=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),wN(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;xt(e)&&le(""),this.el&&this._zr.remove(this.el);var l=a.getModel("textStyle");this.el=new Xt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:l.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:A5(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),N(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),N(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=l.get(u)||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})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=xN(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;wN(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=So(i.borderWidth||0),l=xN(i);a.x=e+o+l.left,a.y=t+o+l.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(dt(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function So(r){return Math.max(0,r)}function xN(r){var e=So(r.shadowBlur||0),t=So(r.shadowOffsetX||0),a=So(r.shadowOffsetY||0);return{left:So(e-t),right:So(e+t),top:So(e-a),bottom:So(e+a)}}function wN(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var lnt=new Wt({shape:{x:-1,y:-1,width:2,height:2}}),snt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){if(!(Ft.node||!a.getDom())){var n=t.getComponent("tooltip"),i=this._renderMode=H7(n.get("renderMode"));this._tooltipContent=i==="richText"?new ont(a):new int(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,a,n){if(!(Ft.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Af(this,"_updatePosition",50,"fixRate"):Zh(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");tV("itemTooltip",this._api,dt(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||Ft.node||!n.getDom())){var o=TN(i,n);this._ticket="";var l=i.dataByCoordSys,s=hnt(i,a,n);if(s){var u=s.el.getBoundingRect().clone();u.applyTransform(s.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:s.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=lnt;c.x=i.x,c.y=i.y,c.update(),Mt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(l)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:l,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=eV(i,a),d=h.point[0],p=h.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(TN(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,l=i.dataIndex,s=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||l==null||s==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),h=$c([c.getItemModel(l),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:l,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var l=Mt(n);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var s,u;Kl(n,function(c){if(Mt(c).dataIndex!=null)return s=c,!0;if(Mt(c).tooltipConfig!=null)return u=c,!0},!0),s?this._showSeriesItemTooltip(t,s,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=dt(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],l=$c([a.tooltipOption],i),s=this._renderMode,u=[],c=ir("section",{blocks:[],noHeader:!0}),h=[],d=new x_;N(t,function(x){N(x.dataByAxis,function(w){var A=n.getComponent(w.axisDim+"Axis",w.axisIndex),M=w.value;if(!(!A||M==null)){var D=K4(M,A.axis,n,w.seriesDataIndices,w.valueLabelOpt),L=ir("section",{header:D,noHeader:!Wa(D),sortBlocks:!0,blocks:[]});c.blocks.push(L),N(w.seriesDataIndices,function(R){var E=n.getSeriesByIndex(R.seriesIndex),O=R.dataIndexInside,P=E.getDataParams(O);if(!(P.dataIndex<0)){P.axisDim=w.axisDim,P.axisIndex=w.axisIndex,P.axisType=w.axisType,P.axisId=w.axisId,P.axisValue=cT(A.axis,{value:M}),P.axisValueLabel=D,P.marker=d.makeTooltipMarker("item",vs(P.color),s);var k=cR(E.formatTooltip(O,!0,null)),V=k.frag;if(V){var H=$c([E],i).get("valueFormatter");L.blocks.push(H?rt({valueFormatter:H},V):V)}k.text&&h.push(k.text),u.push(P)}})}})}),c.blocks.reverse(),h.reverse();var p=a.position,y=l.get("order"),m=yR(c,d,s,y,n.get("useUTC"),l.get("textStyle"));m&&h.unshift(m);var _=s==="richText"?`
106
-
107
- `:"<br/>",b=h.join(_);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(l,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(l,b,u,Math.random()+"",o[0],o[1],p,null,d)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=Mt(a),l=o.seriesIndex,s=i.getSeriesByIndex(l),u=o.dataModel||s,c=o.dataIndex,h=o.dataType,d=u.getData(h),p=this._renderMode,y=t.positionDefault,m=$c([d.getItemModel(c),u,s&&(s.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),_=m.get("trigger");if(!(_!=null&&_!=="item")){var b=u.getDataParams(c,h),x=new x_;b.marker=x.makeTooltipMarker("item",vs(b.color),p);var w=cR(u.formatTooltip(c,!1,h)),A=m.get("order"),M=m.get("valueFormatter"),D=w.frag,L=D?yR(M?rt({valueFormatter:M},D):D,x,p,A,i.get("useUTC"),m.get("textStyle")):w.text,R="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,L,b,R,t.offsetX,t.offsetY,t.position,t.target,x)}),n({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:l,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=Mt(a),l=o.tooltipConfig,s=l.option||{},u=s.encodeHTMLContent;if(vt(s)){var c=s;s={content:c,formatter:c},u=!0}u&&i&&s.content&&(s=Tt(s),s.content=Rr(s.content));var h=[s],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&h.push(d),h.push({formatter:s.content});var p=t.positionDefault,y=$c(h,this._tooltipModel,p?{position:p}:null),m=y.get("content"),_=Math.random()+"",b=new x_;this._showOrMove(y,function(){var x=Tt(y.get("formatterParams")||{});this._showTooltipContent(y,m,x,_,t.offsetX,t.offsetY,t.position,a,b)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,l,s,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var d=t.get("formatter");s=s||t.get("position");var p=a,y=this._getNearestPoint([o,l],n,t.get("trigger"),t.get("borderColor")),m=y.color;if(d)if(vt(d)){var _=t.ecModel.get("useUTC"),b=it(n)?n[0]:n,x=b&&b.axisType&&b.axisType.indexOf("time")>=0;p=d,x&&(p=bv(b.axisValue,p,_)),p=Vw(p,n,!0)}else if(_t(d)){var w=dt(function(A,M){A===this._ticket&&(h.setContent(M,c,t,m,s),this._updatePosition(t,s,o,l,h,n,u))},this);this._ticket=i,p=d(n,i,w)}else p=d;h.setContent(p,c,t,m,s),h.show(t,m),this._updatePosition(t,s,o,l,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||it(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!it(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,l,s){var u=this._api.getWidth(),c=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),d=t.get("align"),p=t.get("verticalAlign"),y=s&&s.getBoundingRect().clone();if(s&&y.applyTransform(s.transform),_t(a)&&(a=a([n,i],l,o.el,y,{viewSize:[u,c],contentSize:h.slice()})),it(a))n=ht(a[0],u),i=ht(a[1],c);else if(xt(a)){var m=a;m.width=h[0],m.height=h[1];var _=Xe(m,{width:u,height:c});n=_.x,i=_.y,d=null,p=null}else if(vt(a)&&s){var b=cnt(a,y,h,t.get("borderWidth"));n=b[0],i=b[1]}else{var b=unt(n,i,o,u,c,d?null:20,p?null:20);n=b[0],i=b[1]}if(d&&(n-=AN(d)?h[0]/2:d==="right"?h[0]:0),p&&(i-=AN(p)?h[1]/2:p==="bottom"?h[1]:0),vV(t)){var b=fnt(n,i,o,u,c);n=b[0],i=b[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&N(n,function(l,s){var u=l.dataByAxis||[],c=t[s]||{},h=c.dataByAxis||[];o=o&&u.length===h.length,o&&N(u,function(d,p){var y=h[p]||{},m=d.seriesDataIndices||[],_=y.seriesDataIndices||[];o=o&&d.value===y.value&&d.axisType===y.axisType&&d.axisId===y.axisId&&m.length===_.length,o&&N(m,function(b,x){var w=_[x];o=o&&b.seriesIndex===w.seriesIndex&&b.dataIndex===w.dataIndex}),i&&N(d.seriesDataIndices,function(b){var x=b.seriesIndex,w=a[x],A=i[x];w&&A&&A.data!==w.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){Ft.node||!a.getDom()||(Zh(this,"_updatePosition"),this._tooltipContent.dispose(),Ox("itemTooltip",a))},e.type="tooltip",e})(we);function $c(r,e,t){var a=e.ecModel,n;t?(n=new ee(t,a,a),n=new ee(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ee&&(o=o.get("tooltip",!0)),vt(o)&&(o={formatter:o}),o&&(n=new ee(o,n,a)))}return n}function TN(r,e){return r.dispatchAction||dt(e.dispatchAction,e)}function unt(r,e,t,a,n,i,o){var l=t.getSize(),s=l[0],u=l[1];return i!=null&&(r+s+i+2>a?r-=s+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function fnt(r,e,t,a,n){var i=t.getSize(),o=i[0],l=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+l,n)-l,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function cnt(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,l=0,s=0,u=e.width,c=e.height;switch(r){case"inside":l=e.x+u/2-n/2,s=e.y+c/2-i/2;break;case"top":l=e.x+u/2-n/2,s=e.y-i-o;break;case"bottom":l=e.x+u/2-n/2,s=e.y+c+o;break;case"left":l=e.x-n-o,s=e.y+c/2-i/2;break;case"right":l=e.x+u+o,s=e.y+c/2-i/2}return[l,s]}function AN(r){return r==="center"||r==="middle"}function hnt(r,e,t){var a=pw(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=pv(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var l=t.getViewOfComponentModel(o),s;if(l.group.traverse(function(u){var c=Mt(u).tooltipConfig;if(c&&c.name===r.name)return s=u,!0}),s)return{componentMainType:n,componentIndex:o.componentIndex,el:s}}}}function vnt(r){Gt(Iv),r.registerComponentModel(qat),r.registerComponentView(snt),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Pe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Pe)}var dnt=["rect","polygon","keep","clear"];function pnt(r,e){var t=de(r?r.brush:[]);if(t.length){var a=[];N(t,function(s){var u=s.hasOwnProperty("toolbox")?s.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;it(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),l=o.type||(o.type=[]);l.push.apply(l,a),gnt(l),e&&!l.length&&l.push.apply(l,dnt)}}function gnt(r){var e={};N(r,function(t){e[t]=1}),r.length=0,N(e,function(t,a){r.push(a)})}var CN=N;function DN(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Vx(r,e,t){var a={};return CN(e,function(i){var o=a[i]=n();CN(r[i],function(l,s){if(ar.isValidType(s)){var u={type:s,visual:l};t&&t(u,i),o[s]=new ar(u),s==="opacity"&&(u=Tt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ar(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function yV(r,e,t){var a;N(t,function(n){e.hasOwnProperty(n)&&DN(e[n])&&(a=!0)}),a&&N(t,function(n){e.hasOwnProperty(n)&&DN(e[n])?r[n]=Tt(e[n]):delete r[n]})}function ynt(r,e,t,a,n,i){var o={};N(r,function(h){var d=ar.prepareVisualTypes(e[h]);o[h]=d});var l;function s(h){return qw(t,l,h)}function u(h,d){P5(t,l,h,d)}t.each(c);function c(h,d){l=h;var p=t.getRawDataItem(l);if(!(p&&p.visualMap===!1))for(var y=a.call(n,h),m=e[y],_=o[y],b=0,x=_.length;b<x;b++){var w=_[b];m[w]&&m[w].applyVisual(h,s,u)}}}function mnt(r,e,t,a){var n={};return N(r,function(i){var o=ar.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,l){var s;a!=null&&(s=l.getDimensionIndex(a));function u(M){return qw(l,h,M)}function c(M,D){P5(l,h,M,D)}for(var h,d=l.getStore();(h=o.next())!=null;){var p=l.getRawDataItem(h);if(!(p&&p.visualMap===!1))for(var y=a!=null?d.get(s,h):h,m=t(y),_=e[m],b=n[m],x=0,w=b.length;x<w;x++){var A=b[x];_[A]&&_[A].applyVisual(y,u,c)}}}}}function _nt(r){var e=r.brushType,t={point:function(a){return MN[e].point(a,t,r)},rect:function(a){return MN[e].rect(a,t,r)}};return t}var MN={lineX:LN(0),lineY:LN(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Ul(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,l=r.height,s=a[0];if(Ul(a,n,i)||Ul(a,n+o,i)||Ul(a,n,i+l)||Ul(a,n+o,i+l)||kt.create(r).contain(s[0],s[1])||sh(n,i,n+o,i,a)||sh(n,i,n,i+l,a)||sh(n+o,i,n+o,i+l,a)||sh(n,i+l,n+o,i+l,a))return!0}}};function LN(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,l=a[r];return Kc(l,o)}},rect:function(a,n,i){if(a){var o=i.range,l=[a[e[r]],a[e[r]]+a[t[r]]];return l[1]<l[0]&&l.reverse(),Kc(l[0],o)||Kc(l[1],o)||Kc(o[0],l)||Kc(o[1],l)}}}}function Kc(r,e){return e[0]<=r&&r<=e[1]}var RN=["inBrush","outOfBrush"],BS="__ecBrushSelect",Gx="__ecInBrushSelectEvent";function mV(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new f2(e.option,r);t.setInputRanges(e.areas,r)})}function Snt(r,e,t){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),mV(r),r.eachComponent({mainType:"brush"},function(o,l){var s={brushId:o.id,brushIndex:l,brushName:o.name,areas:Tt(o.areas),selected:[]};a.push(s);var u=o.option,c=u.brushLink,h=[],d=[],p=[],y=!1;l||(n=u.throttleType,i=u.throttleDelay);var m=ot(o.areas,function(M){var D=Tnt[M.brushType],L=St({boundingRect:D?D(M):void 0},M);return L.selectors=_nt(L),L}),_=Vx(o.option,RN,function(M){M.mappingMethod="fixed"});it(c)&&N(c,function(M){h[M]=1});function b(M){return c==="all"||!!h[M]}function x(M){return!!M.length}r.eachSeries(function(M,D){var L=p[D]=[];M.subType==="parallel"?w(M,D):A(M,D,L)});function w(M,D){var L=M.coordinateSystem;y=y||L.hasAxisBrushed(),b(D)&&L.eachActiveState(M.getData(),function(R,E){R==="active"&&(d[E]=1)})}function A(M,D,L){if(!(!M.brushSelector||wnt(o,D))&&(N(m,function(E){o.brushTargetManager.controlSeries(E,M,r)&&L.push(E),y=y||x(L)}),b(D)&&x(L))){var R=M.getData();R.each(function(E){EN(M,L,R,E)&&(d[E]=1)})}}r.eachSeries(function(M,D){var L={seriesId:M.id,seriesIndex:D,seriesName:M.name,dataIndex:[]};s.selected.push(L);var R=p[D],E=M.getData(),O=b(D)?function(P){return d[P]?(L.dataIndex.push(E.getRawIndex(P)),"inBrush"):"outOfBrush"}:function(P){return EN(M,R,E,P)?(L.dataIndex.push(E.getRawIndex(P)),"inBrush"):"outOfBrush"};(b(D)?y:x(R))&&ynt(RN,_,E,O)})}),bnt(e,n,i,a,t)}function bnt(r,e,t,a,n){if(n){var i=r.getZr();if(!i[Gx]){i[BS]||(i[BS]=xnt);var o=Af(i,BS,t,e);o(r,a)}}}function xnt(r,e){if(!r.isDisposed()){var t=r.getZr();t[Gx]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[Gx]=!1}}function EN(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}function wnt(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(it(t)?Bt(t,e)<0:e!==t)}var Tnt={rect:function(r){return IN(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[a];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&IN(e)}};function IN(r){return new kt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Ant=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new kT(a.getZr())).on("brush",dt(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){mV(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$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 a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:Tt(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:Tt(n),$from:a})},e.type="brush",e})(we),Cnt="#ddd",Dnt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&yV(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:Cnt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=ot(t,function(a){return ON(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=ON(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})(Ht);function ON(r,e){return It({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new ee(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var Mnt=["rect","polygon","lineX","lineY","keep","clear"],Lnt=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,l;a.eachComponent({mainType:"brush"},function(s){i=s.brushType,o=s.brushOption.brushMode||"single",l=l||!!s.areas.length}),this._brushType=i,this._brushMode=o,N(t.get("type",!0),function(s){t.setIconStatus(s,(s==="keep"?o==="multiple":s==="clear"?l:s===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return N(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:Mnt.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"])};return a},e})(ja);function Rnt(r){r.registerComponentView(Ant),r.registerComponentModel(Dnt),r.registerPreprocessor(pnt),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Snt),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Pe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Pe),Bu("brush",Lnt)}var Ent=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return 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})(Ht),Int=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),l=t.getModel("subtextStyle"),s=t.get("textAlign"),u=Rt(t.get("textBaseline"),t.get("textVerticalAlign")),c=new Xt({style:_e(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),d=t.get("subtext"),p=new Xt({style:_e(l,{text:d,fill:l.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=t.get("link"),m=t.get("sublink"),_=t.get("triggerEvent",!0);c.silent=!y&&!_,p.silent=!m&&!_,y&&c.on("click",function(){Hg(y,"_"+t.get("target"))}),m&&p.on("click",function(){Hg(m,"_"+t.get("subtarget"))}),Mt(c).eventData=Mt(p).eventData=_?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),d&&i.add(p);var b=i.getBoundingRect(),x=t.getBoxLayoutParams();x.width=b.width,x.height=b.height;var w=Xe(x,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));s||(s=t.get("left")||t.get("right"),s==="middle"&&(s="center"),s==="right"?w.x+=w.width:s==="center"&&(w.x+=w.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),i.x=w.x,i.y=w.y,i.markRedraw();var A={align:s,verticalAlign:u};c.setStyle(A),p.setStyle(A),b=i.getBoundingRect();var M=w.margin,D=t.getItemStyle(["color","opacity"]);D.fill=t.get("backgroundColor");var L=new Wt({shape:{x:b.x-M[3],y:b.y-M[0],width:b.width+M[1]+M[3],height:b.height+M[0]+M[2],r:t.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});i.add(L)}},e.type="title",e})(we);function Ont(r){r.registerComponentModel(Ent),r.registerComponentView(Int)}var NN=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-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=this.option,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],N(a,function(u,c){var h=Ke(hf(u),""),d;xt(u)?(d=Tt(u),d.value=c):d=c,o.push(d),i.push(h)})):o=a;var l={category:"ordinal",time:"time",value:"number"}[n]||"number",s=this._data=new Er([{name:"value",type:l}],this);s.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")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})(Ht),_V=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Xo(NN.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})(NN);ze(_V,qy.prototype);var Nnt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(we),Pnt=(function(r){Z(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(en),VS=Math.PI,PN=$t(),znt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),l=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=s.scale.getLabel({value:u});return ir("nameValue",{noName:!0,value:c})},N(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,s,t)},this),this._renderAxisLabel(i,l,s,t),this._position(i,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,a){var n=t.get(["label","position"]),i=t.get("orient"),o=Bnt(t,a),l;n==null||n==="auto"?l=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":vt(n)?l={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:l=n;var s={horizontal:"center",vertical:l>=0||l==="+"?"left":"right"},u={horizontal:l>=0||l==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:VS/2},h=i==="vertical"?o.height:o.width,d=t.getModel("controlStyle"),p=d.get("show",!0),y=p?d.get("itemSize"):0,m=p?d.get("itemGap"):0,_=y+m,b=t.get(["label","rotate"])||0;b=b*VS/180;var x,w,A,M=d.get("position",!0),D=p&&d.get("showPlayBtn",!0),L=p&&d.get("showPrevBtn",!0),R=p&&d.get("showNextBtn",!0),E=0,O=h;M==="left"||M==="bottom"?(D&&(x=[0,0],E+=_),L&&(w=[E,0],E+=_),R&&(A=[O-y,0],O-=_)):(D&&(x=[O-y,0],O-=_),L&&(w=[0,0],E+=_),R&&(A=[O-y,0],O-=_));var P=[E,O];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:c[i],labelRotation:b,labelPosOpt:l,labelAlign:t.get(["label","align"])||s[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:x,prevBtnPosition:w,nextBtnPosition:A,axisExtent:P,controlSize:y,controlGap:m}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var l=na(),s=o.x,u=o.y+o.height;Sn(l,l,[-s,-u]),Yo(l,l,-VS/2),Sn(l,l,[s,u]),o=o.clone(),o.applyTransform(l)}var c=x(o),h=x(n.getBoundingRect()),d=x(i.getBoundingRect()),p=[n.x,n.y],y=[i.x,i.y];y[0]=p[0]=c[0][0];var m=t.labelPosOpt;if(m==null||vt(m)){var _=m==="+"?0:1;w(p,h,c,1,_),w(y,d,c,1,1-_)}else{var _=m>=0?0:1;w(p,h,c,1,_),y[1]=p[1]+m}n.setPosition(p),i.setPosition(y),n.rotation=i.rotation=t.rotation,b(n),b(i);function b(A){A.originX=c[0][0]-A.x,A.originY=c[1][0]-A.y}function x(A){return[[A.x,A.x+A.width],[A.y,A.y+A.height]]}function w(A,M,D,L,R){A[L]+=D[L][R]-M[L][R]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=knt(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var l=n.getDataExtent("value");o.setExtent(l[0],l[1]),o.calcNiceTicks();var s=new Pnt("value",o,t.axisExtent,i);return s.model=a,s},e.prototype._createGroup=function(t){var a=this[t]=new Ct;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var l=new Qe({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:rt({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(l);var s=this._progressLine=new Qe({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:St({lineCap:"round",lineWidth:l.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(s)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,l=i.getData(),s=n.scale.getTicks();this._tickSymbols=[],N(s,function(u){var c=n.dataToCoord(u.value),h=l.getItemModel(u.value),d=h.getModel("itemStyle"),p=h.getModel(["emphasis","itemStyle"]),y=h.getModel(["progress","itemStyle"]),m={x:c,y:0,onclick:dt(o._changeTimeline,o,u.value)},_=zN(h,d,a,m);_.ensureState("emphasis").style=p.getItemStyle(),_.ensureState("progress").style=y.getItemStyle(),Io(_);var b=Mt(_);h.get("tooltip")?(b.dataIndex=u.value,b.dataModel=i):b.dataIndex=b.dataModel=null,o._tickSymbols.push(_)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,l=n.getLabelModel();if(l.get("show")){var s=i.getData(),u=n.getViewLabels();this._tickLabels=[],N(u,function(c){var h=c.tickValue,d=s.getItemModel(h),p=d.getModel("label"),y=d.getModel(["emphasis","label"]),m=d.getModel(["progress","label"]),_=n.dataToCoord(c.tickValue),b=new Xt({x:_,y:0,rotation:t.labelRotation-t.rotation,onclick:dt(o._changeTimeline,o,h),silent:!1,style:_e(p,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});b.ensureState("emphasis").style=_e(y),b.ensureState("progress").style=_e(m),a.add(b),Io(b),PN(b).dataIndex=h,o._tickLabels.push(b)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,l=t.rotation,s=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),h=i.get("inverse",!0);d(t.nextBtnPosition,"next",dt(this._changeTimeline,this,h?"-":"+")),d(t.prevBtnPosition,"prev",dt(this._changeTimeline,this,h?"+":"-")),d(t.playPosition,c?"stop":"play",dt(this._handlePlayClick,this,!c),!0);function d(p,y,m,_){if(p){var b=bn(Rt(i.get(["controlStyle",y+"BtnSize"]),o),o),x=[0,-b/2,b,b],w=Vnt(i,y+"Icon",x,{x:p[0],y:p[1],originX:o/2,originY:0,rotation:_?-l:0,rectHover:!0,style:s,onclick:m});w.ensureState("emphasis").style=u,a.add(w),Io(w)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),l=i.getCurrentIndex(),s=o.getItemModel(l).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=dt(u._handlePointerDrag,u),h.ondragend=dt(u._handlePointerDragend,u),kN(h,u._progressLine,l,n,i,!0)},onUpdate:function(h){kN(h,u._progressLine,l,n,i)}};this._currentPointer=zN(s,s,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,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,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=ma(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var l=this._progressLine;l&&(l.shape.x2=n,l.dirty());var s=this._findNearestTick(n),u=this.model;(a||s!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(s)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var a=this._mainGroup.getLocalTransform();return mn(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(l,s){var u=o.dataToCoord(l),c=Math.abs(u-t);c<n&&(n=c,i=s)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();t==="+"?t=a+1:t==="-"&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",PN(n[i]).dataIndex<=t)},e.type="timeline.slider",e})(Nnt);function knt(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new am({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new uT({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Pi}}function Bnt(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function Vnt(r,e,t,a){var n=a.style,i=mf(r.get(["controlStyle",e]),a||{},new kt(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function zN(r,e,t,a,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var l=r.get("symbol");n=Ge(l,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n)}var s=e.getItemStyle(["color"]);n.setStyle(s),a=It({rectHover:!0,z2:100},a,!0);var u=Cf(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=xs(r.get("symbolOffset"),u);c&&(a.x=(a.x||0)+c[0],a.y=(a.y||0)+c[1]);var h=r.get("symbolRotate");return a.rotation=(h||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function kN(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),l=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:l,y:0}),e&&e.attr({shape:{x2:l}});else{var s={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:l,y:0},s),e&&e.animateTo({shape:{x2:l}},s)}}}function Gnt(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),St({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&e.playState!=null&&a.setPlayState(e.playState)})}function Hnt(r){var e=r&&r.timeline;it(e)||(e=e?[e]:[]),N(e,function(t){t&&Fnt(t)})}function Fnt(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),BN(r),Xl(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Xl(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Xl(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}N(r.data||[],function(n){xt(n)&&!it(n)&&(!Xl(n,"value")&&Xl(n,"name")&&(n.value=n.name),BN(n))})}function BN(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};N(a,function(o,l){!i[l]&&!Xl(n,l)&&(n[l]=o)}),t.label&&!Xl(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function Xl(r,e){return r.hasOwnProperty(e)}function Unt(r){r.registerComponentModel(_V),r.registerComponentView(znt),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Gnt(r),r.registerPreprocessor(Hnt)}function v2(r,e){if(!r)return!1;for(var t=it(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function Zp(r){us(r,"label",["show"])}var qp=$t(),ki=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ft.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(l){var s=l.get(this.mainType,!0),u=qp(l)[o];if(!s||!s.data){qp(l)[o]=null;return}u?u._mergeOption(s,a,!0):(i&&Zp(s),N(s.data,function(c){c instanceof Array?(Zp(c[0]),Zp(c[1])):Zp(c)}),u=this.createMarkerModelFromSeries(s,this,a),rt(u,{mainType:this.mainType,seriesIndex:l.seriesIndex,name:l.name,createdBySelf:!0}),u.__hostSeries=l),qp(l)[o]=u},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),l=i.getName(t);return ir("section",{header:this.name,blocks:[ir("nameValue",{name:l,value:o,noName:!l,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,a){var n=qy.prototype.getDataParams.call(this,t,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,a){return qp(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Ht);ze(ki,qy.prototype);var Ynt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},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})(ki);function Hx(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function jnt(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function $p(r,e,t,a,n,i){var o=[],l=Ni(e,a),s=l?e.getCalculationInfo("stackResultDimension"):a,u=d2(e,s,r),c=e.indicesOfNearest(s,u)[0];o[n]=e.get(t,c),o[i]=e.get(s,c);var h=e.get(a,c),d=vn(e.get(a,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,h]}var GS={min:Et($p,"min"),max:Et($p,"max"),average:Et($p,"average"),median:Et($p,"median")};function sv(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!jnt(e)&&!it(e.coord)&&it(n)){var i=SV(e,t,a,r);if(e=Tt(e),e.type&&GS[e.type]&&i.baseAxis&&i.valueAxis){var o=Bt(n,i.baseAxis.dim),l=Bt(n,i.valueAxis.dim),s=GS[e.type](t,i.baseDataDim,i.valueDataDim,o,l);e.coord=s[0],e.value=s[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!it(n))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)GS[u[c]]&&(u[c]=d2(t,t.mapDimension(n[c]),u[c]));return e}}function SV(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(Xnt(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function Xnt(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function uv(r,e){return r&&r.containData&&e.coord&&!Hx(e)?r.containData(e.coord):!0}function Wnt(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!Hx(e)&&!Hx(t)?r.containZone(e.coord,t.coord):!0}function bV(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Po(o,e[i])}:function(t,a,n,i){return Po(t.value,e[i])}}function d2(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var HS=$t(),p2=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=mt()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(l){HS(l).keep=!1}),a.eachSeries(function(l){var s=ki.getMarkerModelFromSeries(l,i.type);s&&i.renderSeries(l,s,a,n)}),o.each(function(l){!HS(l).keep&&i.group.remove(l.group)})},e.prototype.markKeep=function(t){HS(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;N(t,function(i){var o=ki.getMarkerModelFromSeries(i,n.type);if(o){var l=o.getData();l.eachItemGraphicEl(function(s){s&&(a?hz(s):xw(s))})}})},e.type="marker",e})(we);function VN(r,e,t){var a=e.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,l=ht(i.get("x"),t.getWidth()),s=ht(i.get("y"),t.getHeight());if(!isNaN(l)&&!isNaN(s))o=[l,s];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),c=r.get(a.dimensions[1],n);o=a.dataToPoint([u,c])}isNaN(l)||(o[0]=l),isNaN(s)||(o[1]=s),r.setItemLayout(n,o)})}var Znt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ki.getMarkerModelFromSeries(i,"markPoint");o&&(VN(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,l=t.id,s=t.getData(),u=this.markerGroupMap,c=u.get(l)||u.set(l,new Av),h=qnt(o,t,a);a.setData(h),VN(a.getData(),t,i),h.each(function(d){var p=h.getItemModel(d),y=p.getShallow("symbol"),m=p.getShallow("symbolSize"),_=p.getShallow("symbolRotate"),b=p.getShallow("symbolOffset"),x=p.getShallow("symbolKeepAspect");if(_t(y)||_t(m)||_t(_)||_t(b)){var w=a.getRawValue(d),A=a.getDataParams(d);_t(y)&&(y=y(w,A)),_t(m)&&(m=m(w,A)),_t(_)&&(_=_(w,A)),_t(b)&&(b=b(w,A))}var M=p.getModel("itemStyle").getItemStyle(),D=xv(s,"color");M.fill||(M.fill=D),h.setItemVisual(d,{symbol:y,symbolSize:m,symbolRotate:_,symbolOffset:b,symbolKeepAspect:x,style:M})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(d){d.traverse(function(p){Mt(p).dataModel=a})}),this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e})(p2);function qnt(r,e,t){var a;r?a=ot(r&&r.dimensions,function(l){var s=e.getData().getDimensionInfo(e.getData().mapDimension(l))||{};return rt(rt({},s),{name:l,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Er(a,t),i=ot(t.get("data"),Et(sv,e));r&&(i=te(i,Et(uv,r)));var o=bV(!!r,a);return n.initData(i,null,o),n}function $nt(r){r.registerComponentModel(Ynt),r.registerComponentView(Znt),r.registerPreprocessor(function(e){v2(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var Knt=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},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})(ki),Kp=$t(),Qnt=function(r,e,t,a){var n=r.getData(),i;if(it(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var l=void 0,s=void 0;if(a.yAxis!=null||a.xAxis!=null)l=e.getAxis(a.yAxis!=null?"y":"x"),s=er(a.yAxis,a.xAxis);else{var u=SV(a,n,e,r);l=u.valueAxis;var c=lT(n,u.valueDataDim);s=d2(n,c,o)}var h=l.dim==="x"?0:1,d=1-h,p=Tt(a),y={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,y.coord[d]=1/0;var m=t.get("precision");m>=0&&Qt(s)&&(s=+s.toFixed(Math.min(m,20))),p.coord[h]=y.coord[h]=s,i=[p,y,{type:o,valueIndex:a.valueIndex,value:s}]}else i=[]}var _=[sv(r,i[0]),sv(r,i[1]),rt({},i[2])];return _[2].type=_[2].type||null,It(_[2],_[0]),It(_[2],_[1]),_};function dy(r){return!isNaN(r)&&!isFinite(r)}function GN(r,e,t,a){var n=1-r,i=a.dimensions[r];return dy(e[n])&&dy(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function Jnt(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(GN(1,t,a,r)||GN(0,t,a,r)))return!0}return uv(r,e[0])&&uv(r,e[1])}function FS(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),l,s=ht(o.get("x"),n.getWidth()),u=ht(o.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(u))l=[s,u];else{if(a.getMarkerPosition)l=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var c=i.dimensions,h=r.get(c[0],e),d=r.get(c[1],e);l=i.dataToPoint([h,d])}if(ws(i,"cartesian2d")){var p=i.getAxis("x"),y=i.getAxis("y"),c=i.dimensions;dy(r.get(c[0],e))?l[0]=p.toGlobalCoord(p.getExtent()[t?0:1]):dy(r.get(c[1],e))&&(l[1]=y.toGlobalCoord(y.getExtent()[t?0:1]))}isNaN(s)||(l[0]=s),isNaN(u)||(l[1]=u)}r.setItemLayout(e,l)}var tit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ki.getMarkerModelFromSeries(i,"markLine");if(o){var l=o.getData(),s=Kp(o).from,u=Kp(o).to;s.each(function(c){FS(s,c,!0,i,n),FS(u,c,!1,i,n)}),l.each(function(c){l.setItemLayout(c,[s.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,l=t.id,s=t.getData(),u=this.markerGroupMap,c=u.get(l)||u.set(l,new zT);this.group.add(c.group);var h=eit(o,t,a),d=h.from,p=h.to,y=h.line;Kp(a).from=d,Kp(a).to=p,a.setData(y);var m=a.get("symbol"),_=a.get("symbolSize"),b=a.get("symbolRotate"),x=a.get("symbolOffset");it(m)||(m=[m,m]),it(_)||(_=[_,_]),it(b)||(b=[b,b]),it(x)||(x=[x,x]),h.from.each(function(A){w(d,A,!0),w(p,A,!1)}),y.each(function(A){var M=y.getItemModel(A).getModel("lineStyle").getLineStyle();y.setItemLayout(A,[d.getItemLayout(A),p.getItemLayout(A)]),M.stroke==null&&(M.stroke=d.getItemVisual(A,"style").fill),y.setItemVisual(A,{fromSymbolKeepAspect:d.getItemVisual(A,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(A,"symbolOffset"),fromSymbolRotate:d.getItemVisual(A,"symbolRotate"),fromSymbolSize:d.getItemVisual(A,"symbolSize"),fromSymbol:d.getItemVisual(A,"symbol"),toSymbolKeepAspect:p.getItemVisual(A,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(A,"symbolOffset"),toSymbolRotate:p.getItemVisual(A,"symbolRotate"),toSymbolSize:p.getItemVisual(A,"symbolSize"),toSymbol:p.getItemVisual(A,"symbol"),style:M})}),c.updateData(y),h.line.eachItemGraphicEl(function(A){Mt(A).dataModel=a,A.traverse(function(M){Mt(M).dataModel=a})});function w(A,M,D){var L=A.getItemModel(M);FS(A,M,D,t,i);var R=L.getModel("itemStyle").getItemStyle();R.fill==null&&(R.fill=xv(s,"color")),A.setItemVisual(M,{symbolKeepAspect:L.get("symbolKeepAspect"),symbolOffset:Rt(L.get("symbolOffset",!0),x[D?0:1]),symbolRotate:Rt(L.get("symbolRotate",!0),b[D?0:1]),symbolSize:Rt(L.get("symbolSize"),_[D?0:1]),symbol:Rt(L.get("symbol",!0),m[D?0:1]),style:R})}this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e})(p2);function eit(r,e,t){var a;r?a=ot(r&&r.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return rt(rt({},c),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Er(a,t),i=new Er(a,t),o=new Er([],t),l=ot(t.get("data"),Et(Qnt,e,r,t));r&&(l=te(l,Et(Jnt,r)));var s=bV(!!r,a);return n.initData(ot(l,function(u){return u[0]}),null,s),i.initData(ot(l,function(u){return u[1]}),null,s),o.initData(ot(l,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}function rit(r){r.registerComponentModel(Knt),r.registerComponentView(tit),r.registerPreprocessor(function(e){v2(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var ait=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},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})(ki),Qp=$t(),nit=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=sv(r,n),l=sv(r,i),s=o.coord,u=l.coord;s[0]=er(s[0],-1/0),s[1]=er(s[1],-1/0),u[0]=er(u[0],1/0),u[1]=er(u[1],1/0);var c=Ty([{},o,l]);return c.coord=[o.coord,l.coord],c.x0=o.x,c.y0=o.y,c.x1=l.x,c.y1=l.y,c}};function py(r){return!isNaN(r)&&!isFinite(r)}function HN(r,e,t,a){var n=1-r;return py(e[n])&&py(t[n])}function iit(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return ws(r,"cartesian2d")?t&&a&&(HN(1,t,a)||HN(0,t,a))?!0:Wnt(r,n,i):uv(r,n)||uv(r,i)}function FN(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),l,s=ht(o.get(t[0]),n.getWidth()),u=ht(o.get(t[1]),n.getHeight());if(!isNaN(s)&&!isNaN(u))l=[s,u];else{if(a.getMarkerPosition){var c=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),d=i.clampData(c),p=i.clampData(h),y=[];t[0]==="x0"?y[0]=d[0]>p[0]?h[0]:c[0]:y[0]=d[0]>p[0]?c[0]:h[0],t[1]==="y0"?y[1]=d[1]>p[1]?h[1]:c[1]:y[1]=d[1]>p[1]?c[1]:h[1],l=a.getMarkerPosition(y,t,!0)}else{var m=r.get(t[0],e),_=r.get(t[1],e),b=[m,_];i.clampData&&i.clampData(b,b),l=i.dataToPoint(b,!0)}if(ws(i,"cartesian2d")){var x=i.getAxis("x"),w=i.getAxis("y"),m=r.get(t[0],e),_=r.get(t[1],e);py(m)?l[0]=x.toGlobalCoord(x.getExtent()[t[0]==="x0"?0:1]):py(_)&&(l[1]=w.toGlobalCoord(w.getExtent()[t[1]==="y0"?0:1]))}isNaN(s)||(l[0]=s),isNaN(u)||(l[1]=u)}return l}var UN=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],oit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ki.getMarkerModelFromSeries(i,"markArea");if(o){var l=o.getData();l.each(function(s){var u=ot(UN,function(h){return FN(l,s,h,i,n)});l.setItemLayout(s,u);var c=l.getItemGraphicEl(s);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,l=t.id,s=t.getData(),u=this.markerGroupMap,c=u.get(l)||u.set(l,{group:new Ct});this.group.add(c.group),this.markKeep(c);var h=lit(o,t,a);a.setData(h),h.each(function(d){var p=ot(UN,function(R){return FN(h,d,R,t,i)}),y=o.getAxis("x").scale,m=o.getAxis("y").scale,_=y.getExtent(),b=m.getExtent(),x=[y.parse(h.get("x0",d)),y.parse(h.get("x1",d))],w=[m.parse(h.get("y0",d)),m.parse(h.get("y1",d))];ma(x),ma(w);var A=!(_[0]>x[1]||_[1]<x[0]||b[0]>w[1]||b[1]<w[0]),M=!A;h.setItemLayout(d,{points:p,allClipped:M});var D=h.getItemModel(d).getModel("itemStyle").getItemStyle(),L=xv(s,"color");D.fill||(D.fill=L,vt(D.fill)&&(D.fill=Bh(D.fill,.4))),D.stroke||(D.stroke=L),h.setItemVisual(d,"style",D)}),h.diff(Qp(c).data).add(function(d){var p=h.getItemLayout(d);if(!p.allClipped){var y=new Nr({shape:{points:p.points}});h.setItemGraphicEl(d,y),c.group.add(y)}}).update(function(d,p){var y=Qp(c).data.getItemGraphicEl(p),m=h.getItemLayout(d);m.allClipped?y&&c.group.remove(y):(y?Jt(y,{shape:{points:m.points}},a,d):y=new Nr({shape:{points:m.points}}),h.setItemGraphicEl(d,y),c.group.add(y))}).remove(function(d){var p=Qp(c).data.getItemGraphicEl(d);c.group.remove(p)}).execute(),h.eachItemGraphicEl(function(d,p){var y=h.getItemModel(p),m=h.getItemVisual(p,"style");d.useStyle(h.getItemVisual(p,"style")),xr(d,nr(y),{labelFetcher:a,labelDataIndex:p,defaultText:h.getName(p)||"",inheritColor:vt(m.fill)?Bh(m.fill,1):"#000"}),br(d,y),Ee(d,null,null,y.get(["emphasis","disabled"])),Mt(d).dataModel=a}),Qp(c).data=h,c.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e})(p2);function lit(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=ot(r&&r.dimensions,function(u){var c=e.getData(),h=c.getDimensionInfo(c.mapDimension(u))||{};return rt(rt({},h),{name:u,ordinalMeta:null})});n=ot(i,function(u,c){return{name:u,type:o[c%2].type}}),a=new Er(n,t)}else n=[{name:"value",type:"float"}],a=new Er(n,t);var l=ot(t.get("data"),Et(nit,e,r,t));r&&(l=te(l,Et(iit,r)));var s=r?function(u,c,h,d){var p=u.coord[Math.floor(d/2)][d%2];return Po(p,n[d])}:function(u,c,h,d){return Po(u.value,n[d])};return a.initData(l,null,s),a.hasItemOption=!0,a}function sit(r){r.registerComponentModel(ait),r.registerComponentView(oit),r.registerPreprocessor(function(e){v2(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var uit=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Fx=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),it(a)&&N(a,function(i,o){vt(i)&&(i={type:i}),a[o]=It(i,uit(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(s){var u=s.name;n.push(u);var c;if(s.legendVisualProvider){var h=s.legendVisualProvider,d=h.getAllNames();t.isSeriesFiltered(s)||(n=n.concat(d)),d.length?a=a.concat(d):c=!0}else c=!0;c&&dw(s)&&a.push(s.name)}),this._availableNames=n;var i=this.get("data")||a,o=mt(),l=ot(i,function(s){return(vt(s)||Qt(s))&&(s={name:s}),o.get(s.name)?null:(o.set(s.name,!0),new ee(s,this,this.ecModel))},this);this._data=te(l,function(s){return!!s})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;N(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;N(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;N(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&Bt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{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})(Ht),Mu=Et,Ux=N,Jp=Ct,xV=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Jp),this.group.add(this._selectorGroup=new Jp),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),l=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&l==="vertical"?"right":"left");var s=t.get("selector",!0),u=t.get("selectorPosition",!0);s&&(!u||u==="auto")&&(u=l==="horizontal"?"end":"start"),this.renderInner(o,t,a,n,s,l,u);var c=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},d=t.get("padding"),p=Xe(c,h,d),y=this.layoutInner(t,o,p,i,s,u),m=Xe(St({width:y.width,height:y.height},c),h,d);this.group.x=m.x-y.x,this.group.y=m.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=fV(y,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,l,s){var u=this.getContentGroup(),c=mt(),h=a.get("selectedMode"),d=[];n.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),Ux(a.getData(),function(p,y){var m=p.get("name");if(!this.newlineDisabled&&(m===""||m===`
108
- `)){var _=new Jp;_.newline=!0,u.add(_);return}var b=n.getSeriesByName(m)[0];if(!c.get(m))if(b){var x=b.getData(),w=x.getVisual("legendLineStyle")||{},A=x.getVisual("legendIcon"),M=x.getVisual("style"),D=this._createItem(b,m,y,p,a,t,w,M,A,h,i);D.on("click",Mu(YN,m,null,i,d)).on("mouseover",Mu(Yx,b.name,null,i,d)).on("mouseout",Mu(jx,b.name,null,i,d)),n.ssr&&D.eachChild(function(L){var R=Mt(L);R.seriesIndex=b.seriesIndex,R.dataIndex=y,R.ssrType="legend"}),c.set(m,!0)}else n.eachRawSeries(function(L){if(!c.get(m)&&L.legendVisualProvider){var R=L.legendVisualProvider;if(!R.containName(m))return;var E=R.indexOfName(m),O=R.getItemVisual(E,"style"),P=R.getItemVisual(E,"legendIcon"),k=Fr(O.fill);k&&k[3]===0&&(k[3]=.2,O=rt(rt({},O),{fill:yn(k,"rgba")}));var V=this._createItem(L,m,y,p,a,t,{},O,P,h,i);V.on("click",Mu(YN,null,m,i,d)).on("mouseover",Mu(Yx,null,m,i,d)).on("mouseout",Mu(jx,null,m,i,d)),n.ssr&&V.eachChild(function(H){var U=Mt(H);U.seriesIndex=L.seriesIndex,U.dataIndex=y,U.ssrType="legend"}),c.set(m,!0)}},this)},this),o&&this._createSelector(o,a,i,l,s)},e.prototype._createSelector=function(t,a,n,i,o){var l=this.getSelectorGroup();Ux(t,function(u){var c=u.type,h=new Xt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});l.add(h);var d=a.getModel("selectorLabel"),p=a.getModel(["emphasis","selectorLabel"]);xr(h,{normal:d,emphasis:p},{defaultText:u.title}),Io(h)})},e.prototype._createItem=function(t,a,n,i,o,l,s,u,c,h,d){var p=t.visualDrawType,y=o.get("itemWidth"),m=o.get("itemHeight"),_=o.isSelected(a),b=i.get("symbolRotate"),x=i.get("symbolKeepAspect"),w=i.get("icon");c=w||c||"roundRect";var A=fit(c,i,s,u,p,_,d),M=new Jp,D=i.getModel("textStyle");if(_t(t.getLegendIcon)&&(!w||w==="inherit"))M.add(t.getLegendIcon({itemWidth:y,itemHeight:m,icon:c,iconRotate:b,itemStyle:A.itemStyle,lineStyle:A.lineStyle,symbolKeepAspect:x}));else{var L=w==="inherit"&&t.getData().getVisual("symbol")?b==="inherit"?t.getData().getVisual("symbolRotate"):b:0;M.add(cit({itemWidth:y,itemHeight:m,icon:c,iconRotate:L,itemStyle:A.itemStyle,symbolKeepAspect:x}))}var R=l==="left"?y+5:-5,E=l,O=o.get("formatter"),P=a;vt(O)&&O?P=O.replace("{name}",a??""):_t(O)&&(P=O(a));var k=_?D.getTextColor():i.get("inactiveColor");M.add(new Xt({style:_e(D,{text:P,x:R,y:m/2,fill:k,align:E,verticalAlign:"middle"},{inheritColor:k})}));var V=new Wt({shape:M.getBoundingRect(),style:{fill:"transparent"}}),H=i.getModel("tooltip");return H.get("show")&&_s({el:V,componentModel:o,itemName:a,itemTooltipOption:H.option}),M.add(V),M.eachChild(function(U){U.silent=!0}),V.silent=!h,this.getContentGroup().add(M),Io(M),M.__legendDataIndex=n,M},e.prototype.layoutInner=function(t,a,n,i,o,l){var s=this.getContentGroup(),u=this.getSelectorGroup();ns(t.get("orient"),s,t.get("itemGap"),n.width,n.height);var c=s.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),s.markRedraw(),o){ns("horizontal",u,t.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],y=t.get("selectorButtonGap",!0),m=t.getOrient().index,_=m===0?"width":"height",b=m===0?"height":"width",x=m===0?"y":"x";l==="end"?p[m]+=c[_]+y:h[m]+=d[_]+y,p[1-m]+=c[b]/2-d[b]/2,u.x=p[0],u.y=p[1],s.x=h[0],s.y=h[1];var w={x:0,y:0};return w[_]=c[_]+y+d[_],w[b]=Math.max(c[b],d[b]),w[x]=Math.min(0,d[x]+p[1-m]),w}else return s.x=h[0],s.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(we);function fit(r,e,t,a,n,i,o){function l(_,b){_.lineWidth==="auto"&&(_.lineWidth=b.lineWidth>0?2:0),Ux(_,function(x,w){_[w]==="inherit"&&(_[w]=b[w])})}var s=e.getModel("itemStyle"),u=s.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=s.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:nf(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),l(u,a);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(l(p,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),p.stroke==="auto"&&(p.stroke=a.fill),!i){var y=e.get("inactiveBorderWidth"),m=u[c];u.lineWidth=y==="auto"?a.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function cit(r){var e=r.icon||"roundRect",t=Ge(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function YN(r,e,t,a){jx(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Yx(r,e,t,a)}function wV(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function Yx(r,e,t,a){wV(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function jx(r,e,t,a){wV(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function hit(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function Qc(r,e,t){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];t.eachComponent({mainType:"legend",query:e},function(l){a?l[r]():l[r](e.name),jN(l,n),i.push(l.componentIndex)});var o={};return t.eachComponent("legend",function(l){N(n,function(s,u){l[s?"select":"unSelect"](u)}),jN(l,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function jN(r,e){var t=e||{};return N(r.getData(),function(a){var n=a.get("name");if(!(n===`
109
- `||n==="")){var i=r.isSelected(n);gt(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function vit(r){r.registerAction("legendToggleSelect","legendselectchanged",Et(Qc,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Et(Qc,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Et(Qc,"inverseSelect")),r.registerAction("legendSelect","legendselected",Et(Qc,"select")),r.registerAction("legendUnSelect","legendunselected",Et(Qc,"unSelect"))}function TV(r){r.registerComponentModel(Fx),r.registerComponentView(xV),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,hit),r.registerSubTypeDefaulter("legend",function(){return"plain"}),vit(r)}var dit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=bf(t);r.prototype.init.call(this,t,a,n),XN(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),XN(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Xo(Fx.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})(Fx);function XN(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,Go(e,t,{type:"box",ignoreSize:!!n})}var WN=Ct,US=["width","height"],YS=["x","y"],pit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new WN),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new WN)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,l,s){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,l,s);var c=this._controllerGroup,h=a.get("pageIconSize",!0),d=it(h)?h:[h,h];y("pagePrev",0);var p=a.getModel("pageTextStyle");c.add(new Xt({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1);function y(m,_){var b=m+"DataIndex",x=mf(a.get("pageIcons",!0)[a.getOrient().name][_],{onclick:dt(u._pageGo,u,b,a,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});x.name=m,c.add(x)}},e.prototype.layoutInner=function(t,a,n,i,o,l){var s=this.getSelectorGroup(),u=t.getOrient().index,c=US[u],h=YS[u],d=US[1-u],p=YS[1-u];o&&ns("horizontal",s,t.get("selectorItemGap",!0));var y=t.get("selectorButtonGap",!0),m=s.getBoundingRect(),_=[-m.x,-m.y],b=Tt(n);o&&(b[c]=n[c]-m[c]-y);var x=this._layoutContentAndController(t,i,b,u,c,d,p,h);if(o){if(l==="end")_[u]+=x[c]+y;else{var w=m[c]+y;_[u]-=w,x[h]-=w}x[c]+=m[c]+y,_[1-u]+=x[p]+x[d]/2-m[d]/2,x[d]=Math.max(x[d],m[d]),x[p]=Math.min(x[p],m[p]+_[1-u]),s.x=_[0],s.y=_[1],s.markRedraw()}return x},e.prototype._layoutContentAndController=function(t,a,n,i,o,l,s,u){var c=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;ns(t.get("orient"),c,t.get("itemGap"),i?n.width:null,i?null:n.height),ns("horizontal",d,t.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),y=d.getBoundingRect(),m=this._showController=p[o]>n[o],_=[-p.x,-p.y];a||(_[i]=c[u]);var b=[0,0],x=[-y.x,-y.y],w=Rt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(m){var A=t.get("pageButtonPosition",!0);A==="end"?x[i]+=n[o]-y[o]:b[i]+=y[o]+w}x[1-i]+=p[l]/2-y[l]/2,c.setPosition(_),h.setPosition(b),d.setPosition(x);var M={x:0,y:0};if(M[o]=m?n[o]:p[o],M[l]=Math.max(p[l],y[l]),M[s]=Math.min(0,y[s]+x[1-i]),h.__rectSize=n[o],m){var D={x:0,y:0};D[o]=Math.max(n[o]-y[o]-w,0),D[l]=M[l],h.setClipPath(new Wt({shape:D})),h.__rectSize=D[o]}else d.eachChild(function(R){R.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(t);return L.pageIndex!=null&&Jt(c,{x:L.contentPosition[0],y:L.contentPosition[1]},m?t:null),this._updatePageInfoView(t,L),M},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;N(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",d=a[h]!=null,p=n.childOfName(c);p&&(p.setStyle("fill",d?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),l=a.pageIndex,s=l!=null?l+1:0,u=a.pageCount;i&&o&&i.setStyle("text",vt(o)?o.replace("{current}",s==null?"":s+"").replace("{total}",u==null?"":u+""):o({current:s,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,l=US[o],s=YS[o],u=this._findTargetItemIndex(a),c=n.children(),h=c[u],d=c.length,p=d?1:0,y={contentPosition:[n.x,n.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return y;var m=A(h);y.contentPosition[o]=-m.s;for(var _=u+1,b=m,x=m,w=null;_<=d;++_)w=A(c[_]),(!w&&x.e>b.s+i||w&&!M(w,b.s))&&(x.i>b.i?b=x:b=w,b&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=b.i),++y.pageCount)),x=w;for(var _=u-1,b=m,x=m,w=null;_>=-1;--_)w=A(c[_]),(!w||!M(x,w.s))&&b.i<x.i&&(x=b,y.pagePrevDataIndex==null&&(y.pagePrevDataIndex=b.i),++y.pageCount,++y.pageIndex),b=w;return y;function A(D){if(D){var L=D.getBoundingRect(),R=L[s]+D[s];return{s:R,e:R+L[l],i:D.__legendDataIndex}}}function M(D,L){return D.e>=L&&D.s<=L+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,l){var s=o.__legendDataIndex;i==null&&s!=null&&(i=l),s===t&&(a=l)}),a??i},e.type="legend.scroll",e})(xV);function git(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function yit(r){Gt(TV),r.registerComponentModel(dit),r.registerComponentView(pit),git(r)}function mit(r){Gt(TV),Gt(yit)}var _it=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Xo(lv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(lv),g2=$t();function Sit(r,e,t){g2(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function bit(r,e){for(var t=g2(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),l=o.dataZoomInfoMap;if(l){var s=e.uid,u=l.get(s);u&&(l.removeKey(s),l.keys().length||AV(t,o))}}}function AV(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function xit(r,e){var t={model:e,containsPoint:Et(Tit,e),dispatchAction:Et(wit,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Rv(r.getZr());return N(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(l){if(i.isAvailableBehavior(l.model.option)){var s=(l.getRange||{})[n],u=s&&s(l.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!l.model.get("disabled",!0)&&u&&o.push({dataZoomId:l.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function wit(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Tit(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function Ait(r){var e,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,l=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;a[t+l]>a[t+e]&&(e=l),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function Cit(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=g2(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=mt());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=lV(i);N(o.infoList,function(l){var s=l.model.uid,u=n.get(s)||n.set(s,xit(t,l.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=mt());c.set(i.uid,{dzReferCoordSysInfo:l,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,l,s=i.dataZoomInfoMap;if(s){var u=s.keys()[0];u!=null&&(l=s.get(u))}if(!l){AV(n,i);return}var c=Ait(s);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Af(i,"dispatchAction",l.model.get("throttle",!0),"fixRate")})})}var Dit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Sit(n,t,{pan:dt(jS.pan,this),zoom:dt(jS.zoom,this),scrollMove:dt(jS.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){bit(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(l2),jS={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var l=XS[e](null,[a.originX,a.originY],o,t,r),s=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-s)*u+s,i[1]=(i[1]-s)*u+s;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(As(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:ZN(function(r,e,t,a,n,i){var o=XS[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:ZN(function(r,e,t,a,n,i){var o=XS[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function ZN(r){return function(e,t,a,n){var i=this.range,o=i.slice(),l=e.axisModels[0];if(l){var s=r(o,l,e,t,a,n);if(As(s,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var XS={grid:function(r,e,t,a,n){var i=t.axis,o={},l=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=l.width,o.pixelStart=l.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=l.height,o.pixelStart=l.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},l=n.model.coordinateSystem,s=l.getRadiusAxis().getExtent(),u=l.getAngleAxis().getExtent();return r=r?l.pointToCoord(r):[0,0],e=l.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=s[1]-s[0],o.pixelStart=s[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),l={};return r=r||[0,0],i.orient==="horizontal"?(l.pixel=e[0]-r[0],l.pixelLength=o.width,l.pixelStart=o.x,l.signal=i.inverse?1:-1):(l.pixel=e[1]-r[1],l.pixelLength=o.height,l.pixelStart=o.y,l.signal=i.inverse?-1:1),l}};function CV(r){s2(r),r.registerComponentModel(_it),r.registerComponentView(Dit),Cit(r)}var Mit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Xo(lv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e})(lv),Jc=Wt,qN=7,Lit=1,WS=30,Rit=7,th="horizontal",$N="vertical",Eit=5,Iit=["line","bar","candlestick","scatter"],Oit={easing:"cubicOut",duration:100,delay:0},Nit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=dt(this._onBrush,this),this._onBrushEnd=dt(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Af(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Zh(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 a=this._displayables.sliderGroup=new Ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?Rit:0,o=this._findCoordRect(),l={width:a.getWidth(),height:a.getHeight()},s=this._orient===th?{right:l.width-o.x-o.width,top:l.height-WS-qN-i,width:o.width,height:WS}:{right:qN,top:o.y,width:WS,height:o.height},u=bf(t.option);N(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=s[h])});var c=Xe(u,l);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===$N&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),l=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;l.attr(n===th&&!o?{scaleY:s?1:-1,scaleX:1}:n===th&&o?{scaleY:s?1:-1,scaleX:-1}:n===$N&&!o?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([l]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Jc({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Jc({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:dt(this._onClickPanel,this)}),l=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",l.on("mousemove",this._onBrush),l.on("mouseup",this._onBrushEnd)):(l.off("mousemove",this._onBrush),l.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),l=i.getShadowDim&&i.getShadowDim(),s=l&&o.getDimensionInfo(l)?i.getShadowDim():t.otherDim;if(s==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(s),d=(h[1]-h[0])*.3;h=[h[0]-d,h[1]+d];var p=[0,a[1]],y=[0,a[0]],m=[[a[0],0],[0,0]],_=[],b=y[1]/(o.count()-1),x=0,w=Math.round(o.count()/a[0]),A;o.each([s],function(E,O){if(w>0&&O%w){x+=b;return}var P=E==null||isNaN(E)||E==="",k=P?0:oe(E,h,p,!0);P&&!A&&O?(m.push([m[m.length-1][0],0]),_.push([_[_.length-1][0],0])):!P&&A&&(m.push([x,0]),_.push([x,0])),m.push([x,k]),_.push([x,k]),x+=b,A=P}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=_}this._shadowData=o,this._shadowDim=s,this._shadowSize=[a[0],a[1]];var M=this.dataZoomModel;function D(E){var O=M.getModel(E?"selectedDataBackground":"dataBackground"),P=new Ct,k=new Nr({shape:{points:u},segmentIgnoreThreshold:1,style:O.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),V=new zr({shape:{points:c},segmentIgnoreThreshold:1,style:O.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(k),P.add(V),P}for(var L=0;L<3;L++){var R=D(L===1);this._displayables.sliderGroup.add(R),this._displayables.dataShadowSegs.push(R)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,l){var s=t.getAxisProxy(o,l).getTargetSeriesModels();N(s,function(u){if(!n&&!(a!==!0&&Bt(Iit,u.get("type"))<0)){var c=i.getComponent(Lo(o),l).axis,h=Pit(o),d,p=u.coordinateSystem;h!=null&&p.getOtherAxis&&(d=p.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),n={thisAxis:c,series:u,thisDim:o,otherDim:h,otherAxisInverse:d}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,l=this._size,s=this.dataZoomModel,u=this.api,c=s.get("borderRadius")||0,h=s.get("brushSelect"),d=a.filler=new Jc({silent:h,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Jc({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:l[0],height:l[1],r:c},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:Lit,fill:"rgba(0,0,0,0)"}})),N([0,1],function(w){var A=s.get("handleIcon");!Yg[A]&&A.indexOf("path://")<0&&A.indexOf("image://")<0&&(A="path://"+A);var M=Ge(A,-1,0,2,2,null,!0);M.attr({cursor:KN(this._orient),draggable:!0,drift:dt(this._onDragMove,this,w),ondragend:dt(this._onDragEnd,this),onmouseover:dt(this._showDataInfo,this,!0),onmouseout:dt(this._showDataInfo,this,!1),z2:5});var D=M.getBoundingRect(),L=s.get("handleSize");this._handleHeight=ht(L,this._size[1]),this._handleWidth=D.width/D.height*this._handleHeight,M.setStyle(s.getModel("handleStyle").getItemStyle()),M.style.strokeNoScale=!0,M.rectHover=!0,M.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),Io(M);var R=s.get("handleColor");R!=null&&(M.style.fill=R),o.add(n[w]=M);var E=s.getModel("textStyle"),O=s.get("handleLabel")||{},P=O.show||!1;t.add(i[w]=new Xt({silent:!0,invisible:!P,style:_e(E,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:E.getTextColor(),font:E.getFont()}),z2:10}))},this);var p=d;if(h){var y=ht(s.get("moveHandleSize"),l[1]),m=a.moveHandle=new Wt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:l[1]-.5,height:y}}),_=y*.8,b=a.moveHandleIcon=Ge(s.get("moveHandleIcon"),-_/2,-_/2,_,_,"#fff",!0);b.silent=!0,b.y=l[1]+y/2-.5,m.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var x=Math.min(l[1]/2,Math.max(y,10));p=a.moveZone=new Wt({invisible:!0,shape:{y:l[1]-x,height:y+x}}),p.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),o.add(m),o.add(b),o.add(p)}p.attr({draggable:!0,cursor:KN(this._orient),drift:dt(this._onDragMove,this,"all"),ondragstart:dt(this._showDataInfo,this,!0),ondragend:dt(this._onDragEnd,this),onmouseover:dt(this._showDataInfo,this,!0),onmouseout:dt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[oe(t[0],[0,100],a,!0),oe(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),l=n.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];As(a,i,o,n.get("zoomLock")?"all":t,l.minSpan!=null?oe(l.minSpan,s,o,!0):null,l.maxSpan!=null?oe(l.maxSpan,s,o,!0):null);var u=this._range,c=this._range=ma([oe(i[0],o,s,!0),oe(i[1],o,s,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=ma(n.slice()),o=this._size;N([0,1],function(p){var y=a.handles[p],m=this._handleHeight;y.attr({scaleX:m/2,scaleY:m/2,x:n[p]+(p?-1:1),y:o[1]/2-m/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var l={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(l),a.moveZone.setShape(l),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",l.x+l.width/2));for(var s=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<s.length;c++){var h=s[c],d=h.getClipPath();d||(d=new Wt,h.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,l=["",""];if(a.get("showDetail")){var s=a.findRepresentativeAxisProxy();if(s){var u=s.getAxisModel().axis,c=this._range,h=t?s.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:s.getDataValueWindow();l=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var d=ma(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(y){var m=Oo(n.handles[y].parent,this.group),_=Hy(y===0?"right":"left",m),b=this._handleWidth/2+Eit,x=mn([d[y]+(y===0?-b:b),this._size[1]/2],m);i[y].setStyle({x:x[0],y:x[1],verticalAlign:o===th?"middle":_,align:o===th?_:"center",text:l[y]})}},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var l=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return _t(i)?i(t,l):vt(i)?i.replace("{value}",l):l},e.prototype._showDataInfo=function(t){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,l=t||this._dragging?o:n,s=this._displayables,u=s.handleLabels;u[0].attr("invisible",!l),u[1].attr("invisible",!l),s.moveHandle&&this.api[l?"enterEmphasis":"leaveEmphasis"](s.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,Ri(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),l=mn([a,n],o,!0),s=this._updateInterval(t,l[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),s&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,l=this._updateInterval("all",n[0]-o);this._updateView(),l&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new zt(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),l=[0,100];this._range=ma([oe(n.x,o,l,!0),oe(n.x+n.width,o,l,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ri(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Jc({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var l=this._brushStart,s=this._displayables.sliderGroup,u=s.transformCoordToLocal(t,a),c=s.transformCoordToLocal(l.x,l.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Oit:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=lV(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(l2);function Pit(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function KN(r){return r==="vertical"?"ns-resize":"ew-resize"}function DV(r){r.registerComponentModel(Mit),r.registerComponentView(Nit),s2(r)}function zit(r){Gt(CV),Gt(DV)}var MV={get:function(r,e,t){var a=Tt((kit[r]||{})[e]);return t&&it(a)?a[a.length-1]:a}},kit={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]}},QN=ar.mapVisual,Bit=ar.eachVisual,Vit=it,JN=N,Git=ma,Hit=oe,gy=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&yV(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=dt(t,this),this.controllerVisuals=Vx(this.option.controller,a,t),this.targetVisuals=Vx(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=de(t),a},e.prototype.eachTargetSeries=function(t,a){N(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,l=this.dataBound,s=i.formatter,u;n=n||["<",">"],it(t)&&(t=t.slice(),u=!0);var c=a?t:u?[h(t[0]),h(t[1])]:h(t);if(vt(s))return s.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(_t(s))return u?s(t[0],t[1]):s(t);if(u)return t[0]===l[0]?n[0]+" "+c[1]:t[1]===l[1]?n[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(d){return d===l[0]?"min":d===l[1]?"max":(+d).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=Git([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],l=t.getDimensionInfo(o);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});It(i,n),It(o,n);var l=this.isCategory();s.call(this,i),s.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function s(h){Vit(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,d,p){var y=h[d],m=h[p];y&&!m&&(m=h[p]={},JN(y,function(_,b){if(ar.isValidType(b)){var x=MV.get(b,"inactive",l);x!=null&&(m[b]=x,b==="color"&&!m.hasOwnProperty("opacity")&&!m.hasOwnProperty("colorAlpha")&&(m.opacity=[0,0]))}}))}function c(h){var d=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,p=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,y=this.get("inactiveColor"),m=this.getItemSymbol(),_=m||"roundRect";JN(this.stateList,function(b){var x=this.itemSize,w=h[b];w||(w=h[b]={color:l?y:[y]}),w.symbol==null&&(w.symbol=d&&Tt(d)||(l?_:[_])),w.symbolSize==null&&(w.symbolSize=p&&Tt(p)||(l?x[0]:[x[0],x[0]])),w.symbol=QN(w.symbol,function(D){return D==="none"?_:D});var A=w.symbolSize;if(A!=null){var M=-1/0;Bit(A,function(D){D>M&&(M=D)}),w.symbolSize=QN(A,function(D){return Hit(D,[0,M],[0,x[0]],!0)})}},this)}},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})(Ht),t3=[20,140],Fit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=t3[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=t3[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):it(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),N(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=ma((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=t)&&(a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(l,s){t[0]<=l&&l<=t[1]&&i.push(s)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=e3(this,"outOfRange",this.getExtent()),n=e3(this,"inRange",this.option.range.slice()),i=[];function o(p,y){i.push({value:p,color:t(p,y)})}for(var l=0,s=0,u=n.length,c=a.length;s<c&&(!n.length||a[s]<=n[0]);s++)a[s]<n[l]&&o(a[s],"outOfRange");for(var h=1;l<u;l++,h=0)h&&i.length&&o(n[l],"outOfRange"),o(n[l],"inRange");for(var h=1;s<c;s++)(!n.length||n[n.length-1]<a[s])&&(h&&(i.length&&o(i[i.length-1].value,"outOfRange"),h=0),o(a[s],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Xo(gy.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})(gy);function e3(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],l=0;l<=a&&i<t[1];l++)o.push(i),i+=n;return o.push(t[1]),o}var LV=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=bs(a.get("padding")||0),i=t.getBoundingRect();t.add(new Wt({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,l={};if(a==="color"){var s=o.get("contentColor");l.color=s}function u(p){return l[p]}function c(p,y){l[p]=y}var h=o.controllerVisuals[i||o.getValueState(t)],d=ar.prepareVisualTypes(h);return N(d,function(p){var y=h[p];n.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",y=h.__alphaForOpacity),ar.dependsOn(p,a)&&y&&y.applyVisual(t,u,c)}),l[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api;Wy(t,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(we),r3=[["left","right","width"],["top","bottom","height"]];function RV(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,l=r3[o],s=[0,null,10],u={},c=0;c<3;c++)u[r3[1-o][c]]=s[c],u[l[c]]=c===2?t[0]:a[l[c]];var h=[["x","width",3],["y","height",0]][o],d=Xe(u,i,a.padding);return l[(d.margin[h[2]]||0)+d[h[0]]+d[h[1]]*.5<i[h[1]]*.5?0:1]}function Sg(r,e){return N(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Nn=oe,Uit=N,a3=Math.min,ZS=Math.max,Yit=12,jit=6,Xit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=dt(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=dt(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,l=o.get("textGap"),s=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([s[0]/2,n===0?-l:s[1]+l],u),h=this._applyTransform(n===0?"bottom":"top",u),d=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new Xt({style:_e(p,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":h,align:d==="horizontal"?h:"center",text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,l=this._useHandle,s=RV(a,this.api,i),u=n.mainGroup=this._createBarGroup(s),c=new Ct;u.add(c),c.add(n.outOfRange=n3()),c.add(n.inRange=n3(null,l?o3(this._orient):null,dt(this._dragHandle,this,"all",!1),dt(this._dragHandle,this,"all",!0))),c.setClipPath(new Wt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var h=a.textStyleModel.getTextRect("国"),d=ZS(h.width,h.height);l&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,d,o),this._createHandle(a,u,1,i,d,o)),this._createIndicator(a,u,i,d,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,l){var s=dt(this._dragHandle,this,n,!1),u=dt(this._dragHandle,this,n,!0),c=bn(t.get("handleSize"),i[0]),h=Ge(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=o3(this._orient);h.attr({cursor:d,draggable:!0,drift:s,ondragend:u,onmousemove:function(b){Ri(b.event)}}),h.x=i[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ql(h,!0),a.add(h);var p=this.visualMapModel.textStyleModel,y=new Xt({cursor:d,draggable:!0,drift:s,onmousemove:function(b){Ri(b.event)},ondragend:u,style:_e(p,{x:0,y:0,text:""})});y.ensureState("blur").style={opacity:.1},y.stateTransition={duration:200},this.group.add(y);var m=[c,0],_=this._shapes;_.handleThumbs[n]=h,_.handleLabelPoints[n]=m,_.handleLabels[n]=y},e.prototype._createIndicator=function(t,a,n,i,o){var l=bn(t.get("indicatorSize"),n[0]),s=Ge(t.get("indicatorIcon"),-l/2,-l/2,l,l,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(s instanceof or){var c=s.style;s.useStyle(rt({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else s.useStyle(u);a.add(s);var h=this.visualMapModel.textStyleModel,d=new Xt({silent:!0,invisible:!0,style:_e(h,{x:0,y:0,text:""})});this.group.add(d);var p=[(o==="horizontal"?i/2:jit)+n[0]/2,0],y=this._shapes;y.indicator=s,y.indicatorLabel=d,y.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():i3(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Nn(a[0],n,i,!0),Nn(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];As(a,i,o,t,0);var l=n.getExtent();this._dataInterval=[Nn(i[0],o,l,!0),Nn(i[1],o,l,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],l=t?o:this._handleEnds,s=this._createBarVisual(this._dataInterval,n,l,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(l,s)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},l=this._makeColorGradient(t,o),s=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,s);return{barColor:new gf(0,0,0,1,l),barPoints:u,handlesColor:[l[0].color,l[l.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var l=1;l<n;l++){var s=t[0]+o*l;if(s>t[1])break;i.push({color:this.getControllerVisual(s,"color",a),offset:l/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new Ct(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,l=n.handleLabels,s=i.itemSize,u=i.getExtent(),c=this._applyTransform("left",n.mainGroup);Uit([0,1],function(h){var d=o[h];d.setStyle("fill",a.handlesColor[h]),d.y=t[h];var p=Nn(t[h],[0,s[1]],u,!0),y=this.getControllerVisual(p,"symbolSize");d.scaleX=d.scaleY=y/s[0],d.x=s[0]-y/2;var m=mn(n.handleLabelPoints[h],Oo(d,this.group));if(this._orient==="horizontal"){var _=c==="left"||c==="top"?(s[0]-y)/2:(s[0]-y)/-2;m[1]+=_}l[h].setStyle({x:m[0],y:m[1],text:i.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,l=o.getExtent(),s=o.itemSize,u=[0,s[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",d),y=this.getControllerVisual(t,"symbolSize"),m=Nn(t,l,u,!0),_=s[0]-y/2,b={x:h.x,y:h.y};h.y=m,h.x=_;var x=mn(c.indicatorLabelPoint,Oo(h,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var A=this._applyTransform("left",c.mainGroup),M=this._orient,D=M==="horizontal";w.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:D?A:"middle",align:D?"center":A});var L={x:_,y:m,style:{fill:p}},R={style:{x:x[0],y:x[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var E={duration:100,easing:"cubicInOut",additive:!0};h.x=b.x,h.y=b.y,h.animateTo(L,E),w.animateTo(R,E)}else h.attr(L),w.attr(R);this._firstShowIndicator=!1;var O=this._shapes.handleLabels;if(O)for(var P=0;P<O.length;P++)this.api.enterBlur(O[P])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=a3(ZS(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[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,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],l=n.getExtent();t=a3(ZS(o[0],t),o[1]);var s=Wit(n,l,o),u=[t-s,t+s],c=Nn(t,o,l,!0),h=[Nn(u[0],o,l,!0),Nn(u[1],o,l,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",s):h[1]===1/0?this._showIndicator(c,h[0],"> ",s):this._showIndicator(c,c,"≈ ",s));var d=this._hoverLinkDataIndices,p=[];(a||i3(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var y=k7(d,p);this._dispatchHighDown("downplay",Sg(y[0],n)),this._dispatchHighDown("highlight",Sg(y[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(Kl(t.target,function(s){var u=Mt(s);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),l=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Sg(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,a,n,i){var o=Oo(a,i?null:this.group);return it(t)?mn(t,o,n):Hy(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(LV);function n3(r,e,t,a){return new Nr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){Ri(n.event)},ondragend:a})}function Wit(r,e,t){var a=Yit/2,n=r.get("hoverLinkDataSize");return n&&(a=Nn(n,e,t,!0)/2),a}function i3(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function o3(r){return r==="vertical"?"ns-resize":"ew-resize"}var Zit={type:"selectDataRange",event:"dataRangeSelected",update:"update"},qit=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},$it=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(mnt(a.stateList,a.targetVisuals,dt(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(dt(Kit,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function Kit(r,e,t,a){for(var n=e.targetVisuals[a],i=ar.prepareVisualTypes(n),o={color:xv(r.getData(),"color")},l=0,s=i.length;l<s;l++){var u=i[l],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,h,d)}return o.color;function h(p){return o[p]}function d(p,y){o[p]=y}}var l3=N;function Qit(r){var e=r&&r.visualMap;it(e)||(e=e?[e]:[]),l3(e,function(t){if(t){Lu(t,"splitList")&&!Lu(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&it(a)&&l3(a,function(n){xt(n)&&(Lu(n,"start")&&!Lu(n,"min")&&(n.min=n.start),Lu(n,"end")&&!Lu(n,"max")&&(n.max=n.end))})}})}function Lu(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var s3=!1;function EV(r){s3||(s3=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Zit,qit),N($it,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Qit))}function IV(r){r.registerComponentModel(Fit),r.registerComponentView(Xit),EV(r)}var Jit=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],tot[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,l){n==="categories"?(o.mappingMethod="category",o.categories=Tt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ot(this._pieceList,function(s){return s=Tt(s),l!=="inRange"&&(s.visual=null),s}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=ar.listVisualTypes(),i=this.isCategory();N(t.pieces,function(l){N(n,function(s){l.hasOwnProperty(s)&&(a[s]=1)})}),N(a,function(l,s){var u=!1;N(this.stateList,function(c){u=u||o(t,c,s)||o(t.target,c,s)},this),!u&&N(this.stateList,function(c){(t[c]||(t[c]={}))[s]=MV.get(s,c==="inRange"?"active":"inactive",i)})},this);function o(l,s,u){return l&&l[s]&&l[s].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,N(i,function(s,u){var c=this.getSelectedMapKey(s);o.hasOwnProperty(c)||(o[c]=!0)},this),n.selectedMode==="single"){var l=!1;N(i,function(s,u){var c=this.getSelectedMapKey(s);o[c]&&(l?o[c]=!1:l=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?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=Tt(t)},e.prototype.getValueState=function(t){var a=ar.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],l=i.getData();l.each(this.getDataDimensionIndex(l),function(s,u){var c=ar.findPieceIndex(s,n);c===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(c,h){var d=i.getRepresentValue({interval:c});h||(h=i.getValueState(d));var p=t(d,h);c[0]===-1/0?n[0]=p:c[1]===1/0?n[1]=p:a.push({value:c[0],color:p},{value:c[1],color:p})}var l=this._pieceList.slice();if(!l.length)l.push({interval:[-1/0,1/0]});else{var s=l[0].interval[0];s!==-1/0&&l.unshift({interval:[-1/0,s]}),s=l[l.length-1].interval[1],s!==1/0&&l.push({interval:[s,1/0]})}var u=-1/0;return N(l,function(c){var h=c.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=Xo(gy.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})(gy),tot={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,l=a[0];o<n;l+=i,o++){var s=o===n-1?a[1]:l+i;r.push({interval:[l,s],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),Db(r),N(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;N(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),u3(e,r)},pieces:function(r){var e=this.option;N(e.pieces,function(t,a){xt(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],l=n.close=[0,0],s=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var d=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&o[h]==null;p++)o[h]=t[d[p]],l[h]=s[p],c[h]=p===2;o[h]==null&&(o[h]=u[h])}c[0]&&o[1]===1/0&&(l[0]=0),c[1]&&o[0]===-1/0&&(l[1]=0),o[0]===o[1]&&l[0]&&l[1]&&(n.value=o[0])}n.visual=ar.retrieveVisuals(t),r.push(n)},this),u3(e,r),Db(r),N(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function u3(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var eot=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),l=i.getTextColor(),s=this._getItemAlign(),u=a.itemSize,c=this._getViewData(),h=c.endsText,d=er(a.get("showLabel",!0),!h),p=!a.get("selectedMode");h&&this._renderEndsText(t,h[0],u,d,s),N(c.viewPieceList,function(y){var m=y.piece,_=new Ct;_.onclick=dt(this._onItemClick,this,m),this._enableHoverLink(_,y.indexInModelPieceList);var b=a.getRepresentValue(m);if(this._createItemSymbol(_,b,[0,0,u[0],u[1]],p),d){var x=this.visualMapModel.getValueState(b);_.add(new Xt({style:{x:s==="right"?-n:u[0]+n,y:u[1]/2,text:m.text,verticalAlign:"middle",align:s,font:o,fill:l,opacity:x==="outOfRange"?.5:1},silent:p}))}t.add(_)},this),h&&this._renderEndsText(t,h[1],u,d,s),ns(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var l=n.visualMapModel;l.option.hoverLink&&n.api.dispatchAction({type:o,batch:Sg(l.findTargetDataIndices(a),l)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return RV(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var l=new Ct,s=this.visualMapModel.textStyleModel;l.add(new Xt({style:_e(s,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(l)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=ot(t.getPieceList(),function(l,s){return{piece:l,indexInModelPieceList:s}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=Ge(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=Tt(n.selected),l=a.getSelectedMapKey(t);i==="single"||i===!0?(o[l]=!0,N(o,function(s,u){o[u]=u===l})):o[l]=!o[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(LV);function OV(r){r.registerComponentModel(Jit),r.registerComponentView(eot),EV(r)}function rot(r){Gt(IV),Gt(OV)}var aot={label:{enabled:!0},decal:{show:!1}},f3=$t(),not={};function iot(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=Tt(aot);It(a.label,r.getLocaleModel().get("aria"),!1),It(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=mt();r.eachSeries(function(d){if(!d.isColorBySeries()){var p=h.get(d.type);p||(p={},h.set(d.type,p)),f3(d).scope=p}}),r.eachRawSeries(function(d){if(r.isSeriesFiltered(d))return;if(_t(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var x=Ub(d.ecModel,d.name,not,r.getSeriesCount()),w=p.getVisual("decal");p.setVisual("decal",A(w,x))}else{var y=d.getRawData(),m={},_=f3(d).scope;p.each(function(M){var D=p.getRawIndex(M);m[D]=M});var b=y.count();y.each(function(M){var D=m[M],L=y.getName(M)||M+"",R=Ub(d.ecModel,L,_,b),E=p.getItemVisual(D,"decal");p.setItemVisual(D,"decal",A(E,R))})}function A(M,D){var L=M?rt(rt({},D),M):D;return L.dirty=!0,L}})}}function i(){var u=e.getZr().dom;if(u){var c=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=St(h.option,c),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var d=r.getSeriesCount(),p=h.get(["data","maxCount"])||10,y=h.get(["series","maxCount"])||10,m=Math.min(d,y),_;if(!(d<1)){var b=l();if(b){var x=h.get(["general","withTitle"]);_=o(x,{title:b})}else _=h.get(["general","withoutTitle"]);var w=[],A=d>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);_+=o(A,{seriesCount:d}),r.eachSeries(function(R,E){if(E<m){var O=void 0,P=R.get("name"),k=P?"withName":"withoutName";O=d>1?h.get(["series","multiple",k]):h.get(["series","single",k]),O=o(O,{seriesId:R.seriesIndex,seriesName:R.get("name"),seriesType:s(R.subType)});var V=R.getData();if(V.count()>p){var H=h.get(["data","partialData"]);O+=o(H,{displayCnt:p})}else O+=h.get(["data","allData"]);for(var U=h.get(["data","separator","middle"]),z=h.get(["data","separator","end"]),Y=h.get(["data","excludeDimensionId"]),j=[],$=0;$<V.count();$++)if($<p){var tt=V.getName($),F=Y?te(V.getValues($),function(at,lt){return Bt(Y,lt)===-1}):V.getValues($),W=h.get(["data",tt?"withName":"withoutName"]);j.push(o(W,{name:tt,value:F.join(U)}))}O+=j.join(U)+z,w.push(O)}});var M=h.getModel(["series","multiple","separator"]),D=M.get("middle"),L=M.get("end");_+=w.join(D)+L,u.setAttribute("aria-label",_)}}}}function o(u,c){if(!vt(u))return u;var h=u;return N(c,function(d,p){h=h.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),d)}),h}function l(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function s(u){var c=r.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function oot(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},N(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function lot(r){r.registerPreprocessor(oot),r.registerVisual(r.PRIORITY.VISUAL.ARIA,iot)}var c3={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},sot=(function(){function r(e){var t=this._condVal=vt(e)?new RegExp(e):nP(e)?e:null;if(t==null){var a="";le(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return vt(t)?this._condVal.test(e):Qt(t)?this._condVal.test(e+""):!1},r})(),uot=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),fot=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),cot=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),hot=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),vot=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r})();function y2(r,e){if(r===!0||r===!1){var t=new uot;return t.value=r,t}var a="";return NV(r)||le(a),r.and?h3("and",r,e):r.or?h3("or",r,e):r.not?dot(r,e):pot(r,e)}function h3(r,e,t){var a=e[r],n="";it(a)||le(n),a.length||le(n);var i=r==="and"?new fot:new cot;return i.children=ot(a,function(o){return y2(o,t)}),i.children.length||le(n),i}function dot(r,e){var t=r.not,a="";NV(t)||le(a);var n=new hot;return n.child=y2(t,e),n.child||le(a),n}function pot(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=Yt(r),o=r.parser,l=o?h5(o):null,s=0;s<i.length;s++){var u=i[s];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=gt(c3,u)?c3[u]:u,h=r[u],d=l?l(h):h,p=B9(c,d)||c==="reg"&&new sot(d);p||le(t),n.push(p)}}n.length||le(t);var y=new vot;return y.valueGetterParam=a,y.valueParser=l,y.getValue=e.getValue,y.subCondList=n,y}function NV(r){return xt(r)&&!Sr(r)}var got=(function(){function r(e,t){this._cond=y2(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function yot(r,e){return new got(r,e)}var mot={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=yot(r.config,{valueGetterAttrMap:mt({dimension:!0}),prepareGetValue:function(l){var s="",u=l.dimension;gt(l,"dimension")||le(s);var c=e.getDimensionInfo(u);return c||le(s),{dimIdx:c.index}},getValue:function(l){return e.retrieveValueFromItem(t,l.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},_ot={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=de(t);n.length||le(a);var i=[];N(n,function(c){var h=c.dimension,d=c.order,p=c.parser,y=c.incomparable;if(h==null&&le(a),d!=="asc"&&d!=="desc"&&le(a),y&&y!=="min"&&y!=="max"){var m="";le(m)}if(d!=="asc"&&d!=="desc"){var _="";le(_)}var b=e.getDimensionInfo(h);b||le(a);var x=p?h5(p):null;p&&!x&&le(a),i.push({dimIdx:b.index,parser:x,comparator:new d5(d,y)})});var o=e.sourceFormat;o!==Pr&&o!==tn&&le(a);for(var l=[],s=0,u=e.count();s<u;s++)l.push(e.getRawDataItem(s));return l.sort(function(c,h){for(var d=0;d<i.length;d++){var p=i[d],y=e.retrieveValueFromItem(c,p.dimIdx),m=e.retrieveValueFromItem(h,p.dimIdx);p.parser&&(y=p.parser(y),m=p.parser(m));var _=p.comparator.evaluate(y,m);if(_!==0)return _}return 0}),{data:l}}};function Sot(r){r.registerTransform(mot),r.registerTransform(_ot)}var bot=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new m5(this),pR(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),pR(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Un},e})(Ht),xot=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(we);function wot(r){r.registerComponentModel(bot),r.registerComponentView(xot)}var In=Xn.CMD;function Uu(r,e){return Math.abs(r-e)<1e-5}function Xx(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,l=0,s=0;function u(V,H){n&&n.length>2&&a.push(n),n=[V,H]}function c(V,H,U,z){Uu(V,U)&&Uu(H,z)||n.push(V,H,U,z,U,z)}function h(V,H,U,z,Y,j){var $=Math.abs(H-V),tt=Math.tan($/4)*4/3,F=H<V?-1:1,W=Math.cos(V),at=Math.sin(V),lt=Math.cos(H),ct=Math.sin(H),bt=W*Y+U,Pt=at*j+z,wt=lt*Y+U,pt=ct*j+z,Ot=Y*tt*F,yt=j*tt*F;n.push(bt-Ot*at,Pt+yt*W,wt+Ot*ct,pt-yt*lt,wt,pt)}for(var d,p,y,m,_=0;_<t;){var b=e[_++],x=_===1;switch(x&&(i=e[_],o=e[_+1],l=i,s=o,(b===In.L||b===In.C||b===In.Q)&&(n=[l,s])),b){case In.M:i=l=e[_++],o=s=e[_++],u(l,s);break;case In.L:d=e[_++],p=e[_++],c(i,o,d,p),i=d,o=p;break;case In.C:n.push(e[_++],e[_++],e[_++],e[_++],i=e[_++],o=e[_++]);break;case In.Q:d=e[_++],p=e[_++],y=e[_++],m=e[_++],n.push(i+2/3*(d-i),o+2/3*(p-o),y+2/3*(d-y),m+2/3*(p-m),y,m),i=y,o=m;break;case In.A:var w=e[_++],A=e[_++],M=e[_++],D=e[_++],L=e[_++],R=e[_++]+L;_+=1;var E=!e[_++];d=Math.cos(L)*M+w,p=Math.sin(L)*D+A,x?(l=d,s=p,u(l,s)):c(i,o,d,p),i=Math.cos(R)*M+w,o=Math.sin(R)*D+A;for(var O=(E?-1:1)*Math.PI/2,P=L;E?P>R:P<R;P+=O){var k=E?Math.max(P+O,R):Math.min(P+O,R);h(P,k,w,A,M,D)}break;case In.R:l=i=e[_++],s=o=e[_++],d=l+e[_++],p=s+e[_++],u(d,s),c(d,s,d,p),c(d,p,l,p),c(l,p,l,s),c(l,s,d,s);break;case In.Z:n&&c(i,o,l,s),i=l,o=s;break}}return n&&n.length>2&&a.push(n),a}function Wx(r,e,t,a,n,i,o,l,s,u){if(Uu(r,t)&&Uu(e,a)&&Uu(n,o)&&Uu(i,l)){s.push(o,l);return}var c=2/u,h=c*c,d=o-r,p=l-e,y=Math.sqrt(d*d+p*p);d/=y,p/=y;var m=t-r,_=a-e,b=n-o,x=i-l,w=m*m+_*_,A=b*b+x*x;if(w<h&&A<h){s.push(o,l);return}var M=d*m+p*_,D=-d*b-p*x,L=w-M*M,R=A-D*D;if(L<h&&M>=0&&R<h&&D>=0){s.push(o,l);return}var E=[],O=[];Bo(r,t,n,o,.5,E),Bo(e,a,i,l,.5,O),Wx(E[0],O[0],E[1],O[1],E[2],O[2],E[3],O[3],s,u),Wx(E[4],O[4],E[5],O[5],E[6],O[6],E[7],O[7],s,u)}function Tot(r,e){var t=Xx(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],l=i[0],s=i[1];o.push(l,s);for(var u=2;u<i.length;){var c=i[u++],h=i[u++],d=i[u++],p=i[u++],y=i[u++],m=i[u++];Wx(l,s,c,h,d,p,y,m,o,e),l=y,s=m}a.push(o)}return a}function PV(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),l=Math.floor(t/o);l===0&&(l=1,o=t);for(var s=[],u=0;u<o;u++)s.push(l);var c=o*l,h=t-c;if(h>0)for(var u=0;u<h;u++)s[u%o]+=1;return s}function v3(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,l=Math.abs(o-i),s=l*n,u=n-a,c=s>Math.abs(u),h=PV([s,u],c?0:1,e),d=(c?l:u)/h.length,p=0;p<h.length;p++)for(var y=(c?u:l)/h[p],m=0;m<h[p];m++){var _={};c?(_.startAngle=i+d*p,_.endAngle=i+d*(p+1),_.r0=a+y*m,_.r=a+y*(m+1)):(_.startAngle=i+y*m,_.endAngle=i+y*(m+1),_.r0=a+d*p,_.r=a+d*(p+1)),_.clockwise=r.clockwise,_.cx=r.cx,_.cy=r.cy,t.push(_)}}function Aot(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=PV([a,n],i?0:1,e),l=i?"width":"height",s=i?"height":"width",u=i?"x":"y",c=i?"y":"x",h=r[l]/o.length,d=0;d<o.length;d++)for(var p=r[s]/o[d],y=0;y<o[d];y++){var m={};m[u]=d*h,m[c]=y*p,m[l]=h,m[s]=p,m.x+=r.x,m.y+=r.y,t.push(m)}}function d3(r,e,t,a){return r*a-t*e}function Cot(r,e,t,a,n,i,o,l){var s=t-r,u=a-e,c=o-n,h=l-i,d=d3(c,h,s,u);if(Math.abs(d)<1e-6)return null;var p=r-n,y=e-i,m=d3(p,y,c,h)/d;return m<0||m>1?null:new zt(m*s+r,m*u+e)}function Dot(r,e,t){var a=new zt;zt.sub(a,t,e),a.normalize();var n=new zt;zt.sub(n,r,e);var i=n.dot(a);return i}function Ru(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function Mot(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],l=r[(i+1)%a],s=Cot(o[0],o[1],l[0],l[1],e.x,e.y,t.x,t.y);s&&n.push({projPt:Dot(s,e,t),pt:s,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(_,b){return _.projPt-b.projPt});var u=n[0],c=n[n.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}for(var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],y=[d],m=[p],i=u.idx+1;i<=c.idx;i++)Ru(y,r[i].slice());Ru(y,p),Ru(y,d);for(var i=c.idx+1;i<=u.idx+a;i++)Ru(m,r[i%a].slice());return Ru(m,d),Ru(m,p),[{points:y},{points:m}]}function p3(r){var e=r.points,t=[],a=[];zy(e,t,a);var n=new kt(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,l=n.x,s=n.y,u=new zt,c=new zt;return i>o?(u.x=c.x=l+i/2,u.y=s,c.y=s+o):(u.y=c.y=s+o/2,u.x=l,c.x=l+i),Mot(e,u,c)}function yy(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);yy(r,i[0],n,a),yy(r,i[1],t-n,a)}return a}function Lot(r,e){for(var t=[],a=0;a<e;a++)t.push(Tw(r));return t}function Rot(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function Eot(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function Iot(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":Aot(a,e,t),n=Wt;break;case"sector":v3(a,e,t),n=Or;break;case"circle":v3({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=Or;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,l=ot(Tot(r.getUpdatedPathProxy(),o),function(b){return Eot(b)}),s=l.length;if(s===0)yy(p3,{points:l[0]},e,t);else if(s===e)for(var u=0;u<s;u++)t.push({points:l[u]});else{var c=0,h=ot(l,function(b){var x=[],w=[];zy(b,x,w);var A=(w[1]-x[1])*(w[0]-x[0]);return c+=A,{poly:b,area:A}});h.sort(function(b,x){return x.area-b.area});for(var d=e,u=0;u<s;u++){var p=h[u];if(d<=0)break;var y=u===s-1?d:Math.ceil(p.area/c*e);y<0||(yy(p3,{points:p.poly},y,t),d-=y)}}n=Nr;break}if(!n)return Lot(r,e);for(var m=[],u=0;u<t.length;u++){var _=new n;_.setShape(t[u]),Rot(r,_),m.push(_)}return m}function Oot(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,l=Math.min(t,a),s=Math.abs(a-t)/6,u=(l-2)/6,c=Math.ceil(s/u)+1,h=[o[0],o[1]],d=s,p=2;p<l;){var y=o[p-2],m=o[p-1],_=o[p++],b=o[p++],x=o[p++],w=o[p++],A=o[p++],M=o[p++];if(d<=0){h.push(_,b,x,w,A,M);continue}for(var D=Math.min(d,c-1)+1,L=1;L<=D;L++){var R=L/D;Bo(y,_,x,A,R,n),Bo(m,b,w,M,R,i),y=n[3],m=i[3],h.push(n[1],i[1],n[2],i[2],y,m),_=n[5],b=i[5],x=n[6],w=i[6]}d-=D-1}return o===r?[h,e]:[r,h]}function g3(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function Not(r,e){for(var t,a,n,i=[],o=[],l=0;l<Math.max(r.length,e.length);l++){var s=r[l],u=e[l],c=void 0,h=void 0;s?u?(t=Oot(s,u),c=t[0],h=t[1],a=c,n=h):(h=g3(n||s,s),c=s):(c=g3(a||u,u),h=u),i.push(c),o.push(h)}return[i,o]}function y3(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var l=r[o],s=r[o+1],u=r[i],c=r[i+1],h=l*c-u*s;e+=h,t+=(l+u)*h,a+=(s+c)*h}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function Pot(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,l=r.length,s=l-2,u=0;u<n;u++){for(var c=u*6,h=0,d=0;d<l;d+=2){var p=d===0?c:(c+d-2)%s+2,y=r[p]-t[0],m=r[p+1]-t[1],_=e[d]-a[0],b=e[d+1]-a[1],x=_-y,w=b-m;h+=x*x+w*w}h<i&&(i=h,o=u)}return o}function zot(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function kot(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var l=r[o],s=e[o],u=y3(l),c=y3(s);i==null&&(i=u[2]<0!=c[2]<0);var h=[],d=[],p=0,y=1/0,m=[],_=l.length;i&&(l=zot(l));for(var b=Pot(l,s,u,c)*6,x=_-2,w=0;w<x;w+=2){var A=(b+w)%x+2;h[w+2]=l[A]-u[0],h[w+3]=l[A+1]-u[1]}h[0]=l[b]-u[0],h[1]=l[b+1]-u[1];for(var M=a/t,D=-a/2;D<=a/2;D+=M){for(var L=Math.sin(D),R=Math.cos(D),E=0,w=0;w<l.length;w+=2){var O=h[w],P=h[w+1],k=s[w]-c[0],V=s[w+1]-c[1],H=k*R-V*L,U=k*L+V*R;m[w]=H,m[w+1]=U;var z=H-O,Y=U-P;E+=z*z+Y*Y}if(E<y){y=E,p=D;for(var j=0;j<m.length;j++)d[j]=m[j]}}n.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return n}function my(r){return r.__isCombineMorphing}var zV="__mOriginal_";function _y(r,e,t){var a=zV+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,l=t.before;r[e]=function(){var s=arguments,u;return l&&l.apply(this,s),i?u=i.apply(this,s):u=n.apply(this,s),o&&o.apply(this,s),u}}function Oh(r,e){var t=zV+e;r[t]&&(r[e]=r[t],r[t]=null)}function m3(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function kV(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=Not(Xx(t),Xx(a)),i=n[0],o=n[1],l=r.getComputedTransform(),s=e.getComputedTransform();function u(){this.transform=null}l&&m3(i,l),s&&m3(o,s),_y(e,"updateTransform",{replace:u}),e.transform=null;var c=kot(i,o,10,Math.PI),h=[];_y(e,"buildPath",{replace:function(d){for(var p=e.__morphT,y=1-p,m=[],_=0;_<c.length;_++){var b=c[_],x=b.from,w=b.to,A=b.rotation*p,M=b.fromCp,D=b.toCp,L=Math.sin(A),R=Math.cos(A);_h(m,M,D,p);for(var E=0;E<x.length;E+=2){var O=x[E],P=x[E+1],k=w[E],V=w[E+1],H=O*y+k*p,U=P*y+V*p;h[E]=H*R-U*L+m[0],h[E+1]=H*L+U*R+m[1]}var z=h[0],Y=h[1];d.moveTo(z,Y);for(var E=2;E<x.length;){var k=h[E++],V=h[E++],j=h[E++],$=h[E++],tt=h[E++],F=h[E++];z===k&&Y===V&&j===tt&&$===F?d.lineTo(tt,F):d.bezierCurveTo(k,V,j,$,tt,F),z=tt,Y=F}}}})}function m2(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;kV(r,e),e.__morphT=0;function i(){Oh(e,"buildPath"),Oh(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},St({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function Bot(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var l=0,s,u=(1<<o)/2;u>0;u/=2){var c=0,h=0;(r&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),h===0&&(c===1&&(r=u-1-r,e=u-1-e),s=r,r=e,e=s)}return l}function Sy(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=ot(r,function(l){var s=l.getBoundingRect(),u=l.getComputedTransform(),c=s.x+s.width/2+(u?u[4]:0),h=s.y+s.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(h,t),a=Math.max(c,a),n=Math.max(h,n),[c,h]}),o=ot(i,function(l,s){return{cp:l,z:Bot(l[0],l[1],e,t,a,n),path:r[s]}});return o.sort(function(l,s){return l.z-s.z}).map(function(l){return l.path})}function BV(r){return Iot(r.path,r.count)}function Zx(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Vot(r,e,t){var a=[];function n(M){for(var D=0;D<M.length;D++){var L=M[D];my(L)?n(L.childrenRef()):L instanceof Ut&&a.push(L)}}n(r);var i=a.length;if(!i)return Zx();var o=t.dividePath||BV,l=o({path:e,count:i});if(l.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Zx();a=Sy(a),l=Sy(l);for(var s=t.done,u=t.during,c=t.individualDelay,h=new Ci,d=0;d<i;d++){var p=a[d],y=l[d];y.parent=e,y.copyTransform(h),c||kV(p,y)}e.__isCombineMorphing=!0,e.childrenRef=function(){return l};function m(M){for(var D=0;D<l.length;D++)l[D].addSelfToZr(M)}_y(e,"addSelfToZr",{after:function(M){m(M)}}),_y(e,"removeSelfFromZr",{after:function(M){for(var D=0;D<l.length;D++)l[D].removeSelfFromZr(M)}});function _(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Oh(e,"addSelfToZr"),Oh(e,"removeSelfFromZr")}var b=l.length;if(c)for(var x=b,w=function(){x--,x===0&&(_(),s&&s())},d=0;d<b;d++){var A=c?St({delay:(t.delay||0)+c(d,b,a[d],l[d]),done:w},t):t;m2(a[d],l[d],A)}else e.__morphT=0,e.animateTo({__morphT:1},St({during:function(M){for(var D=0;D<b;D++){var L=l[D];L.__morphT=e.__morphT,L.dirtyShape()}u&&u(M)},done:function(){_();for(var M=0;M<r.length;M++)Oh(r[M],"updateTransform");s&&s()}},t));return e.__zr&&m(e.__zr),{fromIndividuals:a,toIndividuals:l,count:b}}function Got(r,e,t){var a=e.length,n=[],i=t.dividePath||BV;function o(p){for(var y=0;y<p.length;y++){var m=p[y];my(m)?o(m.childrenRef()):m instanceof Ut&&n.push(m)}}if(my(r)){o(r.childrenRef());var l=n.length;if(l<a)for(var s=0,u=l;u<a;u++)n.push(Tw(n[s++%l]));n.length=a}else{n=i({path:r,count:a});for(var c=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(c);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),Zx()}n=Sy(n),e=Sy(e);for(var h=t.individualDelay,u=0;u<a;u++){var d=h?St({delay:(t.delay||0)+h(u,a,n[u],e[u])},t):t;m2(n[u],e[u],d)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function _3(r){return it(r[0])}function S3(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var l=0,n=a-1;n>=0;n--)if(!t[n].many.length){var s=t[l].many;if(s.length<=1)if(l)l=0;else return t;var i=s.length,u=Math.ceil(i/2);t[n].many=s.slice(u,i),t[l].many=s.slice(0,u),l++}return t}var Hot={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=Tw(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function qS(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=yf("update",a,n);if(!(o&&o.duration>0))return;var l=a.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},o),u,c;_3(r)&&(u=r,c=e),_3(e)&&(u=e,c=r);function h(b,x,w,A,M){var D=b.many,L=b.one;if(D.length===1&&!M){var R=x?D[0]:L,E=x?L:D[0];if(my(R))h({many:[R],one:E},!0,w,A,!0);else{var O=l?St({delay:l(w,A)},s):s;m2(R,E,O),i(R,E,R,E,O)}}else for(var P=St({dividePath:Hot[t],individualDelay:l&&function(Y,j,$,tt){return l(Y+w,A)}},s),k=x?Vot(D,L,P):Got(L,D,P),V=k.fromIndividuals,H=k.toIndividuals,U=V.length,z=0;z<U;z++){var O=l?St({delay:l(z,U)},s):s;i(V[z],H[z],x?D[z]:b.one,x?b.one:D[z],O)}}for(var d=u?u===r:r.length>e.length,p=u?S3(c,u):S3(d?e:r,[d?r:e]),y=0,m=0;m<p.length;m++)y+=p[m].many.length;for(var _=0,m=0;m<p.length;m++)h(p[m],d,_,y),_+=p[m].many.length}function Fl(r){if(!r)return[];if(it(r)){for(var e=[],t=0;t<r.length;t++)e.push(Fl(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof Ut&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var VV=1e4,Fot=0,b3=1,x3=2,Uot=$t();function Yot(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&n.otherDims[e]===0)return t[a]}}function jot(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}function w3(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=Yot(r,n);if(i){var o=jot(r,e,i);return o}var l=r.getRawDataItem(e),s=a?"childGroupId":"groupId";if(l&&l[s])return l[s]+"";if(!a)return t||r.getId(e)}function T3(r){var e=[];return N(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>VV))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:w3(a,o,n,!1),childGroupId:w3(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function $S(r,e,t){r.traverse(function(a){a instanceof Ut&&De(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function KS(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function Eu(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function Xot(r,e,t){var a=yf("update",t,e);a&&r.traverse(function(n){if(n instanceof $a){var i=xU(n);i&&n.animateFrom({style:i},a)}})}function Wot(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function GV(r,e,t){var a=T3(r),n=T3(e);function i(w,A,M,D,L){(M||w)&&A.animateFrom({style:M&&M!==w?rt(rt({},M.style),w.style):w.style},L)}var o=!1,l=Fot,s=mt(),u=mt();a.forEach(function(w){w.groupId&&s.set(w.groupId,!0),w.childGroupId&&u.set(w.childGroupId,!0)});for(var c=0;c<n.length;c++){var h=n[c].groupId;if(u.get(h)){l=b3;break}var d=n[c].childGroupId;if(d&&s.get(d)){l=x3;break}}function p(w,A){return function(M){var D=M.data,L=M.dataIndex;return A?D.getId(L):w?l===b3?M.childGroupId:M.groupId:l===x3?M.childGroupId:M.groupId}}var y=Wot(a,n),m={};if(!y)for(var c=0;c<n.length;c++){var _=n[c],b=_.data.getItemGraphicEl(_.dataIndex);b&&(m[b.id]=!0)}function x(w,A){var M=a[A],D=n[w],L=D.data.hostModel,R=M.data.getItemGraphicEl(M.dataIndex),E=D.data.getItemGraphicEl(D.dataIndex);if(R===E){E&&Xot(E,D.dataIndex,L);return}R&&m[R.id]||E&&(Eu(E),R?(Eu(R),KS(R),o=!0,qS(Fl(R),Fl(E),D.divide,L,w,i)):$S(E,L,w))}new Oi(a,n,p(!0,y),p(!1,y),null,"multiple").update(x).updateManyToOne(function(w,A){var M=n[w],D=M.data,L=D.hostModel,R=D.getItemGraphicEl(M.dataIndex),E=te(ot(A,function(O){return a[O].data.getItemGraphicEl(a[O].dataIndex)}),function(O){return O&&O!==R&&!m[O.id]});R&&(Eu(R),E.length?(N(E,function(O){Eu(O),KS(O)}),o=!0,qS(Fl(E),Fl(R),M.divide,L,w,i)):$S(R,L,M.dataIndex))}).updateOneToMany(function(w,A){var M=a[A],D=M.data.getItemGraphicEl(M.dataIndex);if(!(D&&m[D.id])){var L=te(ot(w,function(E){return n[E].data.getItemGraphicEl(n[E].dataIndex)}),function(E){return E&&E!==D}),R=n[w[0]].data.hostModel;L.length&&(N(L,function(E){return Eu(E)}),D?(Eu(D),KS(D),o=!0,qS(Fl(D),Fl(L),M.divide,R,w[0],i)):N(L,function(E){return $S(E,R,w[0])}))}}).updateManyToMany(function(w,A){new Oi(A,w,function(M){return a[M].data.getId(a[M].dataIndex)},function(M){return n[M].data.getId(n[M].dataIndex)}).update(function(M,D){x(w[M],A[D])}).execute()}).execute(),o&&N(e,function(w){var A=w.data,M=A.hostModel,D=M&&t.getViewOfSeriesModel(M),L=yf("update",M,0);D&&M.isAnimationEnabled()&&L&&L.duration>0&&D.group.traverse(function(R){R instanceof Ut&&!R.animators.length&&R.animateFrom({style:{opacity:0}},L)})})}function A3(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function C3(r){return it(r)?r.sort().join(","):r}function xo(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Zot(r,e){var t=mt(),a=mt(),n=mt();return N(r.oldSeries,function(i,o){var l=r.oldDataGroupIds[o],s=r.oldData[o],u=A3(i),c=C3(u);a.set(c,{dataGroupId:l,data:s}),it(u)&&N(u,function(h){n.set(h,{key:c,dataGroupId:l,data:s})})}),N(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),l=i.getData(),s=A3(i),u=C3(s),c=a.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:xo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:xo(l),data:l}]});else if(it(s)){var h=[];N(s,function(y){var m=a.get(y);m.data&&h.push({dataGroupId:m.dataGroupId,divide:xo(m.data),data:m.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:l,divide:xo(l)}]})}else{var d=n.get(s);if(d){var p=t.get(d.key);p||(p={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:xo(d.data)}],newSeries:[]},t.set(d.key,p)),p.newSeries.push({dataGroupId:o,data:l,divide:xo(l)})}}}}),t}function D3(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function qot(r,e,t,a){var n=[],i=[];N(de(r.from),function(o){var l=D3(e.oldSeries,o);l>=0&&n.push({dataGroupId:e.oldDataGroupIds[l],data:e.oldData[l],divide:xo(e.oldData[l]),groupIdDim:o.dimension})}),N(de(r.to),function(o){var l=D3(t.updatedSeries,o);if(l>=0){var s=t.updatedSeries[l].getData();i.push({dataGroupId:e.oldDataGroupIds[l],data:s,divide:xo(s),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&GV(n,i,a)}function $ot(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){N(de(a.seriesTransition),function(n){N(de(n.to),function(i){for(var o=a.updatedSeries,l=0;l<o.length;l++)(i.seriesIndex!=null&&i.seriesIndex===o[l].seriesIndex||i.seriesId!=null&&i.seriesId===o[l].id)&&(o[l][vg]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=Uot(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)N(de(i),function(p){qot(p,n,a,t)});else{var o=Zot(n,a);N(o.keys(),function(p){var y=o.get(p);GV(y.oldSeries,y.newSeries,t)})}N(a.updatedSeries,function(p){p[vg]&&(p[vg]=!1)})}for(var l=e.getSeries(),s=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[],h=0;h<l.length;h++){var d=l[h].getData();d.count()<VV&&(s.push(l[h]),u.push(l[h].get("dataGroupId")),c.push(d))}})}Gt([nZ]);Gt([JW]);Gt([TZ,VZ,qZ,Mq,Vq,A$,J$,zK,nQ,fQ,_Q,vJ,BJ,qJ,ctt,ptt,Att,Itt,Utt,qtt,iet,Yet]);Gt(urt);Gt(Prt);Gt(BB);Gt(Zrt);Gt(w4);Gt(Qrt);Gt(lat);Gt(Zat);Gt(vnt);Gt(Iv);Gt(Rnt);Gt(Ont);Gt(Unt);Gt($nt);Gt(rit);Gt(sit);Gt(mit);Gt(zit);Gt(CV);Gt(DV);Gt(rot);Gt(IV);Gt(OV);Gt(lot);Gt(Sot);Gt(wot);Gt($ot);Gt(_W);const Kot=Object.freeze(Object.defineProperty({__proto__:null,Axis:en,ChartView:fe,ComponentModel:Ht,ComponentView:we,List:Er,Model:ee,PRIORITY:W5,SeriesModel:pe,color:HH,connect:Mj,dataTool:Pj,dependencies:fj,disConnect:Lj,disconnect:ek,dispose:Rj,env:Ft,extendChartView:oW,extendComponentModel:aW,extendComponentView:nW,extendSeriesModel:iW,format:XX,getCoordinateSystemDimensions:Ij,getInstanceByDom:eT,getInstanceById:Ej,getMap:Nj,graphic:jX,helper:kX,init:Dj,innerDrawElementOnCanvas:Kw,matrix:_H,number:UX,parseGeoJSON:nx,parseGeoJson:nx,registerAction:wn,registerCoordinateSystem:nk,registerLayout:ik,registerLoading:oT,registerLocale:Ow,registerMap:ok,registerPostInit:rk,registerPostUpdate:ak,registerPreprocessor:aT,registerProcessor:nT,registerTheme:rT,registerTransform:lk,registerUpdateLifecycle:Jy,registerVisual:Wo,setCanvasCreator:Oj,setPlatformAPI:J3,throttle:Ky,time:YX,use:Gt,util:WX,vector:iH,version:uj,zrUtil:Q8,zrender:x7},Symbol.toStringTag,{value:"Module"}));var mi={},_i={},QS={},M3;function Qot(){return M3||(M3=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=1;r.default=function(){return"".concat(e++)}})(QS)),QS}var eh={},rh={},JS={},L3;function HV(){return L3||(L3=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,n=null;return function(){for(var i=this,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];clearTimeout(n),n=setTimeout(function(){t.apply(i,l)},a)}}})(JS)),JS}var Si={},R3;function _2(){return R3||(R3=1,Object.defineProperty(Si,"__esModule",{value:!0}),Si.SizeSensorId=Si.SensorTabIndex=Si.SensorClassName=void 0,Si.SizeSensorId="size-sensor-id",Si.SensorClassName="size-sensor-object",Si.SensorTabIndex="-1"),Si}var E3;function Jot(){if(E3)return rh;E3=1,Object.defineProperty(rh,"__esModule",{value:!0}),rh.createSensor=void 0;var r=t(HV()),e=_2();function t(a){return a&&a.__esModule?a:{default:a}}return rh.createSensor=function(n,i){var o=void 0,l=[],s=function(){getComputedStyle(n).position==="static"&&(n.style.position="relative");var y=document.createElement("object");return y.onload=function(){y.contentDocument.defaultView.addEventListener("resize",u),u()},y.style.display="block",y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.height="100%",y.style.width="100%",y.style.overflow="hidden",y.style.pointerEvents="none",y.style.zIndex="-1",y.style.opacity="0",y.setAttribute("class",e.SensorClassName),y.setAttribute("tabindex",e.SensorTabIndex),y.type="text/html",n.appendChild(y),y.data="about:blank",y},u=(0,r.default)(function(){l.forEach(function(p){p(n)})}),c=function(y){o||(o=s()),l.indexOf(y)===-1&&l.push(y)},h=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",u),o.parentNode.removeChild(o),n.removeAttribute(e.SizeSensorId),o=void 0,l=[],i&&i())},d=function(y){var m=l.indexOf(y);m!==-1&&l.splice(m,1),l.length===0&&o&&h()};return{element:n,bind:c,destroy:h,unbind:d}},rh}var ah={},I3;function tlt(){if(I3)return ah;I3=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.createSensor=void 0;var r=_2(),e=t(HV());function t(a){return a&&a.__esModule?a:{default:a}}return ah.createSensor=function(n,i){var o=void 0,l=[],s=(0,e.default)(function(){l.forEach(function(p){p(n)})}),u=function(){var y=new ResizeObserver(s);return y.observe(n),s(),y},c=function(y){o||(o=u()),l.indexOf(y)===-1&&l.push(y)},h=function(){o&&o.disconnect(),l=[],o=void 0,n.removeAttribute(r.SizeSensorId),i&&i()},d=function(y){var m=l.indexOf(y);m!==-1&&l.splice(m,1),l.length===0&&o&&h()};return{element:n,bind:c,destroy:h,unbind:d}},ah}var O3;function elt(){if(O3)return eh;O3=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.createSensor=void 0;var r=Jot(),e=tlt();return eh.createSensor=typeof ResizeObserver<"u"?e.createSensor:r.createSensor,eh}var N3;function rlt(){if(N3)return _i;N3=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.removeSensor=_i.getSensor=_i.Sensors=void 0;var r=a(Qot()),e=elt(),t=_2();function a(o){return o&&o.__esModule?o:{default:o}}var n=_i.Sensors={};function i(o){o&&n[o]&&delete n[o]}return _i.getSensor=function(l){var s=l.getAttribute(t.SizeSensorId);if(s&&n[s])return n[s];var u=(0,r.default)();l.setAttribute(t.SizeSensorId,u);var c=(0,e.createSensor)(l,function(){return i(u)});return n[u]=c,c},_i.removeSensor=function(l){var s=l.element.getAttribute(t.SizeSensorId);l.destroy(),i(s)},_i}var P3;function alt(){if(P3)return mi;P3=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.ver=mi.clear=mi.bind=void 0;var r=rlt();return mi.bind=function(t,a){var n=(0,r.getSensor)(t);return n.bind(a),function(){n.unbind(a)}},mi.clear=function(t){var a=(0,r.getSensor)(t);(0,r.removeSensor)(a)},mi.ver="1.0.3",mi}var z3=alt();function k3(r,e){var t={};return e.forEach(function(a){t[a]=r[a]}),t}function tb(r){return typeof r=="function"}function nlt(r){return typeof r=="string"}var eb,B3;function ilt(){return B3||(B3=1,eb=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var a,n,i;if(Array.isArray(e)){if(a=e.length,a!=t.length)return!1;for(n=a;n--!==0;)if(!r(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),a=i.length,a!==Object.keys(t).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=a;n--!==0;){var o=i[n];if(!r(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}),eb}var olt=ilt();const Iu=W3(olt);var llt=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.echarts=t.echarts,a.ele=null,a.isInitialResize=!0,a.eventHandlerRefs={},a}return e.prototype.componentDidMount=function(){this.renderNewEcharts()},e.prototype.componentDidUpdate=function(t){var a=this.props.shouldSetOption;if(!(tb(a)&&!a(t,this.props))){if(!Iu(t.theme,this.props.theme)||!Iu(t.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();Iu(t.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];Iu(k3(this.props,i),k3(t,i))||this.updateEChartsOption(),(!Iu(t.style,this.props.style)||!Iu(t.className,this.props.className))&&this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.initEchartsInstance=function(){return LM(this,void 0,void 0,function(){var t=this;return RM(this,function(a){return[2,new Promise(function(n){t.echarts.init(t.ele,t.props.theme,t.props.opts);var i=t.getEchartsInstance();i.on("finished",function(){var o=t.ele.clientWidth,l=t.ele.clientHeight;t.echarts.dispose(t.ele);var s=gh({width:o,height:l},t.props.opts);n(t.echarts.init(t.ele,t.props.theme,s))})})]})})},e.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},e.prototype.dispose=function(){if(this.ele){try{z3.clear(this.ele)}catch(t){console.warn(t)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){return LM(this,void 0,void 0,function(){var t,a,n,i,o,l,s=this;return RM(this,function(u){switch(u.label){case 0:return t=this.props,a=t.onEvents,n=t.onChartReady,i=t.autoResize,o=i===void 0?!0:i,[4,this.initEchartsInstance()];case 1:return u.sent(),l=this.updateEChartsOption(),this.bindEvents(l,a||{}),tb(n)&&n(l),this.ele&&o&&z3.bind(this.ele,function(){s.resize()}),[2]}})})},e.prototype.bindEvents=function(t,a){var n=this,i=function(l,s){if(nlt(l)&&tb(s)){var u=function(c){s(c,t)};t.on(l,u),n.eventHandlerRefs[l]=u}};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&i(o,a[o])},e.prototype.unbindEvents=function(t){for(var a=0,n=Object.entries(this.eventHandlerRefs);a<n.length;a++){var i=n[a],o=i[0],l=i[1];t.off(o,l)}this.eventHandlerRefs={}},e.prototype.updateEChartsOption=function(){var t=this.props,a=t.option,n=t.notMerge,i=n===void 0?!1:n,o=t.replaceMerge,l=o===void 0?null:o,s=t.lazyUpdate,u=s===void 0?!1:s,c=t.showLoading,h=t.loadingOption,d=h===void 0?null:h,p=this.getEchartsInstance();return p.setOption(a,{notMerge:i,replaceMerge:l,lazyUpdate:u}),c?p.showLoading(d):p.hideLoading(),p},e.prototype.resize=function(){var t=this.getEchartsInstance();if(!this.isInitialResize)try{t.resize({width:"auto",height:"auto"})}catch(a){console.warn(a)}this.isInitialResize=!1},e.prototype.render=function(){var t=this,a=this.props,n=a.style,i=a.className,o=i===void 0?"":i;a.echarts,a.option,a.theme,a.notMerge,a.replaceMerge,a.lazyUpdate,a.showLoading,a.loadingOption,a.opts,a.onChartReady,a.onEvents,a.shouldSetOption,a.autoResize;var l=P8(a,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),s=gh({height:300},n);return c8.createElement("div",gh({ref:function(u){t.ele=u},style:s,className:"echarts-for-react ".concat(o)},l))},e})(Oe.PureComponent),xa=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.echarts=Kot,a}return e})(llt);const wa={backgroundColor:"transparent",textStyle:{color:"#94a3b8"},legend:{textStyle:{color:"#94a3b8"}},title:{textStyle:{color:"#e0e6ed"}}},tg=[["#1d4ed8","#60a5fa"],["#7c3aed","#c084fc"],["#16a34a","#4ade80"],["#b45309","#fbbf24"],["#dc2626","#f87171"]];function V3(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function slt({tasks:r,prdPhases:e}){const{t}=vr(),a=[],n={};for(const p of r){const y=p.stageName||t.stageUncategorized;n[y]||(a.push(y),n[y]={count:0,prd:p.prdPhase||"",seconds:0}),n[y].count++,p.startedAt&&p.completedAt&&(n[y].seconds+=(new Date(p.completedAt).getTime()-new Date(p.startedAt).getTime())/1e3)}const i={},o=e||[...new Set(r.map(p=>p.prdPhase).filter(Boolean))];o.forEach((p,y)=>{i[p]=tg[y%tg.length]});const l=a.map(p=>Kx(p,t)),s=a.map(p=>n[p].count),u=[...l].reverse(),c={...wa,tooltip:{trigger:"axis",formatter:p=>{const y=Array.isArray(p)?p[0]:p,m=a.length-1-u.indexOf(y.name),_=a[m],b=n[_];let x=`<b>${y.name}</b><br/>${t.tipTaskCount}: ${b.count}`;return b.seconds>0&&(x+=`<br/>${t.tipDuration}: ${V3(b.seconds)}`),x}},grid:{left:10,right:80,top:5,bottom:5,containLabel:!0},yAxis:{type:"category",data:u,axisLabel:{color:"#6b7b8d",fontSize:10},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:[...s].reverse().map((p,y)=>{const m=a.length-1-y,_=n[a[m]].prd,[b,x]=i[_]||tg[0];return{value:p,itemStyle:{borderRadius:[0,4,4,0],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:b},{offset:1,color:x}]}}}}),label:{show:!0,position:"right",color:"#94a3b8",fontSize:10,formatter:p=>{const y=a.length-1-p.dataIndex,m=a[y],_=n[m];let b=`${p.value}`;return _.seconds>0&&(b+=` · ${V3(_.seconds)}`),b}},barWidth:"55%"}]},h=Math.max(300,l.length*40),d=h>480;return G.jsxs("div",{children:[G.jsx("div",{style:d?{maxHeight:480,overflowY:"auto"}:void 0,children:G.jsx(xa,{option:c,style:{height:h}})}),o.length>0&&G.jsx("div",{className:"flex gap-4 justify-center mt-3",children:o.map(p=>{const[y,m]=i[p]||tg[0];return G.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-[#6b7b8d]",children:[G.jsx("span",{className:"w-2.5 h-2.5 rounded-sm inline-block",style:{background:`linear-gradient(180deg, ${m}, ${y})`}}),p]},p)})})]})}const G3=["#ef4444","#f59e0b","#06b6d4","#a855f7","#3b82f6","#22c55e","#f97316","#ec4899"];function ult({deviations:r}){const{t:e}=vr(),t={};for(const o of r){const l=K3(o.rootCauseCategory,e);t[l]=(t[l]||0)+1}let a=0;const n=Object.entries(t).sort((o,l)=>l[1]-o[1]).map(([o,l])=>({value:l,name:o,itemStyle:{color:G3[a++%G3.length]}}));if(n.length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoDeviation});const i={...wa,tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},series:[{type:"pie",radius:["42%","70%"],center:["50%","52%"],label:{color:"#94a3b8",fontSize:12},data:n,emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,0.3)"}}}]};return G.jsx(xa,{option:i,style:{height:320}})}const flt={"ui-spacing":"#f59e0b",layout:"#3b82f6","component-usage":"#a855f7",i18n:"#06b6d4",logic:"#ef4444",process:"#22c55e",other:"#94a3b8"};function clt({deviations:r}){const{t:e}=vr(),t={},a={};for(const s of r){const u=Vu(s.deviationCategory,e);t[u]=(t[u]||0)+1,a[u]=s.deviationCategory}if(Object.keys(t).length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoDeviation});const n=Object.entries(t).sort((s,u)=>s[1]-u[1]),i=n.map(([s])=>s),o=n.map(([s,u])=>({value:u,itemStyle:{color:flt[a[s]]||"#94a3b8"}})),l={...wa,tooltip:{trigger:"axis"},grid:{left:20,right:20,top:10,bottom:5,containLabel:!0},yAxis:{type:"category",data:i,axisLabel:{color:"#6b7b8d",fontSize:11},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:o,label:{show:!0,position:"right",color:"#94a3b8",fontSize:12},barWidth:"45%",itemStyle:{borderRadius:[0,4,4,0]}}]};return G.jsx(xa,{option:l,style:{height:320}})}const hlt=/\.(md|mdx|txt|docx|doc|pdf|png|jpg|jpeg|svg|ico)$/i;function H3(r){return!!r&&!hlt.test(r)}function vlt({deviations:r,bugs:e}){const{t}=vr(),a={};for(const s of r)if(s.files)for(const u of s.files)H3(u)&&(a[u]=(a[u]||0)+1);for(const s of e)if(s.files)for(const u of s.files)H3(u)&&(a[u]=(a[u]||0)+1);const n=Object.entries(a).sort((s,u)=>s[1]-u[1]),i=n.map(([s])=>s),o=n.map(([,s])=>s);if(i.length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:t.chartNoFileHotspot});const l={...wa,tooltip:{trigger:"axis"},grid:{left:20,right:30,top:10,bottom:5,containLabel:!0},yAxis:{type:"category",data:i,axisLabel:{color:"#6b7b8d",fontSize:10},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:o.map(s=>({value:s,itemStyle:{borderRadius:[0,4,4,0],color:s>=10?"#ef4444":s>=5?"#f59e0b":s>=3?"#3b82f6":"#22c55e"}})),label:{show:!0,position:"right",color:"#94a3b8",fontSize:11},barWidth:"50%"}]};return G.jsx(xa,{option:l,style:{height:Math.max(200,i.length*30)}})}function dlt({deviations:r,rules:e}){var u,c;const{t}=vr();if(r.length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:t.chartNoTrend});const a=4,n=[],i=[],o=[];for(let h=0;h<r.length;h+=a){const d=r.slice(h,h+a),p=((u=d[0])==null?void 0:u.deviationId)||"",y=((c=d[d.length-1])==null?void 0:c.deviationId)||"";n.push(p===y?p:`${p}
110
- ~${y}`),i.push(d.length)}const l=r.map(h=>h.deviationId);for(let h=0;h<n.length;h++){const d=Math.min((h+1)*a,r.length),p=new Set(l.slice(0,d)),y=e.filter(m=>m.status!=="pending"&&m.sourceDeviation&&p.has(m.sourceDeviation)).length;o.push(y)}const s={...wa,tooltip:{trigger:"axis"},grid:{left:20,right:20,top:30,bottom:30,containLabel:!0},legend:{data:[t.chartDeviationCount,t.chartAccumRules],textStyle:{color:"#6b7b8d"},top:0},xAxis:{type:"category",data:n,axisLabel:{color:"#6b7b8d",fontSize:10},axisLine:{lineStyle:{color:"#1e2d3d"}}},yAxis:[{type:"value",name:t.chartQuantity,axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}},nameTextStyle:{color:"#6b7b8d"}},{type:"value",name:t.chartRules,axisLabel:{color:"#6b7b8d"},splitLine:{show:!1},nameTextStyle:{color:"#6b7b8d"}}],series:[{name:t.chartDeviationCount,type:"bar",data:i,itemStyle:{color:"#f59e0b",borderRadius:[4,4,0,0]},barWidth:"40%"},{name:t.chartAccumRules,type:"line",yAxisIndex:1,data:o,lineStyle:{color:"#22c55e",width:2},itemStyle:{color:"#22c55e"},symbol:"circle",symbolSize:8}]};return G.jsx(xa,{option:s,style:{height:320}})}const F3=["#3b82f6","#ef4444","#f59e0b","#a855f7","#06b6d4","#22c55e","#ec4899","#f97316"];function rb(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function plt({metrics:r}){const{t:e}=vr(),t=r.nodeTimeBreakdown;if(!t||Object.keys(t).length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoNodeTime});const a=Object.entries(t).sort((l,s)=>l[1]-s[1]),n=a.map(([l])=>Kx(l,e)),i=a.map(([,l])=>l),o={...wa,tooltip:{trigger:"axis",formatter:l=>{var c;const u=(c=(Array.isArray(l)?l:[l])[0])==null?void 0:c.dataIndex;return u==null?"":`<b>${n[u]}</b><br/>${e.tipDuration}: ${rb(i[u])}`}},grid:{left:20,right:60,top:10,bottom:5,containLabel:!0},yAxis:{type:"category",data:n,axisLabel:{color:"#6b7b8d",fontSize:11},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d",formatter:l=>rb(l)},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:i.map((l,s)=>({value:l,itemStyle:{borderRadius:[0,4,4,0],color:F3[s%F3.length]}})),label:{show:!0,position:"right",color:"#94a3b8",fontSize:10,formatter:l=>rb(l.value)},barWidth:"50%"}]};return G.jsx(xa,{option:o,style:{height:Math.max(200,n.length*45)}})}function ab(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function glt({tasks:r}){const{t:e}=vr(),t=r.filter(l=>l.startedAt&&l.completedAt).map(l=>({id:l.taskId,title:l.title,startedAt:l.startedAt,seconds:(new Date(l.completedAt).getTime()-new Date(l.startedAt).getTime())/1e3})).filter(l=>l.seconds>0).sort((l,s)=>new Date(s.startedAt).getTime()-new Date(l.startedAt).getTime()).slice(0,15);if(t.length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoTaskTime});const a=[...t].reverse(),n=a.map(l=>`${l.id} ${l.title.length>12?l.title.slice(0,12)+"...":l.title}`),i=a.map(l=>l.seconds),o={...wa,tooltip:{trigger:"axis",formatter:l=>{const s=Array.isArray(l)?l[0]:l,u=a.find(c=>s.name.startsWith(c.id));return`${(u==null?void 0:u.title)||s.name}: ${ab(s.value)}`}},grid:{left:20,right:40,top:10,bottom:5,containLabel:!0},yAxis:{type:"category",data:n,axisLabel:{color:"#6b7b8d",fontSize:10},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d",formatter:l=>ab(l)},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:i.map(l=>({value:l,itemStyle:{borderRadius:[0,4,4,0],color:l>=3600?"#ef4444":l>=1800?"#f59e0b":l>=600?"#3b82f6":"#22c55e"}})),label:{show:!0,position:"right",color:"#94a3b8",fontSize:11,formatter:l=>ab(l.value)},barWidth:"50%"}]};return G.jsx(xa,{option:o,style:{height:Math.max(250,t.length*35)}})}const U3=["#3b82f6","#22c55e","#f59e0b","#a855f7","#06b6d4","#ef4444","#ec4899","#f97316"];function ylt(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function mlt({workflow:r}){const{t:e}=vr(),t={};for(const o of r)if(o.startTime&&o.endTime){const l=(new Date(o.endTime).getTime()-new Date(o.startTime).getTime())/1e3;l>0&&(t[o.stage]=(t[o.stage]||0)+l)}const a=Object.entries(t).filter(([,o])=>o>0);if(a.length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoStageTime});const n=a.map(([o,l],s)=>({name:Kx(o,e),value:Math.round(l),itemStyle:{color:U3[s%U3.length]}})),i={...wa,tooltip:{trigger:"item",formatter:o=>`${o.name}: ${ylt(o.value)} (${o.percent.toFixed(1)}%)`},series:[{type:"pie",radius:["42%","70%"],center:["50%","52%"],label:{color:"#94a3b8",fontSize:11,formatter:o=>`${o.name}
111
- ${o.percent.toFixed(1)}%`},data:n,emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,0.3)"}}}]};return G.jsx(xa,{option:i,style:{height:320}})}function _lt({reviews:r}){var o,l;const{t:e}=vr();if(r.length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoReviewData});const t=3,a=[],n=[];for(let s=0;s<r.length;s+=t){const u=r.slice(s,s+t),c=((o=u[0])==null?void 0:o.reviewId)||"",h=((l=u[u.length-1])==null?void 0:l.reviewId)||"";a.push(c===h?c:`${c}~${h}`);const d=u.filter(p=>p.result==="pass").length;n.push(Math.round(d/u.length*100))}const i={...wa,tooltip:{trigger:"axis",formatter:s=>{const u=Array.isArray(s)?s[0]:s;return`${u.name}: ${u.value}%`}},grid:{left:20,right:20,top:30,bottom:30,containLabel:!0},xAxis:{type:"category",data:a,axisLabel:{color:"#6b7b8d",fontSize:10},axisLine:{lineStyle:{color:"#1e2d3d"}}},yAxis:{type:"value",min:0,max:100,axisLabel:{color:"#6b7b8d",formatter:"{value}%"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"line",data:n,smooth:!0,lineStyle:{color:"#22c55e",width:2},itemStyle:{color:"#22c55e"},symbol:"circle",symbolSize:8,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(34,197,94,0.25)"},{offset:1,color:"rgba(34,197,94,0.02)"}]}},markLine:{silent:!0,data:[{yAxis:80,label:{formatter:"80%",color:"#6b7b8d",fontSize:10},lineStyle:{color:"#f59e0b",type:"dashed"}}]}}]};return G.jsx(xa,{option:i,style:{height:320}})}const Y3=["#ef4444","#f59e0b","#3b82f6","#a855f7","#06b6d4","#22c55e","#ec4899","#f97316"];function Slt({reviews:r}){const{t:e}=vr(),t={};for(const s of r)if(s.issues)for(const u of s.issues){const c=u.length>30?u.slice(0,30)+"...":u;t[c]=(t[c]||0)+1}const a=Object.entries(t).sort((s,u)=>s[1]-u[1]);if(a.length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoReviewIssue});const n=a.slice(-10),i=n.map(([s])=>s),o=n.map(([,s])=>s),l={...wa,tooltip:{trigger:"axis"},grid:{left:20,right:30,top:10,bottom:5,containLabel:!0},yAxis:{type:"category",data:i,axisLabel:{color:"#6b7b8d",fontSize:10},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:o.map((s,u)=>({value:s,itemStyle:{borderRadius:[0,4,4,0],color:Y3[u%Y3.length]}})),label:{show:!0,position:"right",color:"#94a3b8",fontSize:11},barWidth:"50%"}]};return G.jsx(xa,{option:l,style:{height:Math.max(250,n.length*35)}})}const blt={critical:"#dc2626",high:"#ef4444",medium:"#f59e0b",low:"#3b82f6"};function xlt({bugs:r}){const{t:e}=vr(),t={critical:e.bugCritical,high:e.bugHigh,medium:e.bugMedium,low:e.bugLow},a={};for(const s of r)a[s.severity]=(a[s.severity]||0)+1;if(Object.entries(a).length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoBug});const o=["critical","high","medium","low"].filter(s=>a[s]).map(s=>({name:t[s]||s,value:a[s],itemStyle:{color:blt[s]||"#94a3b8"}})),l={...wa,tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},series:[{type:"pie",radius:["42%","70%"],center:["50%","52%"],label:{color:"#94a3b8",fontSize:12},data:o,emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,0.3)"}}}]};return G.jsx(xa,{option:l,style:{height:320}})}const eg={},j3=[{bg:"#1e3a5f",text:"#60a5fa"},{bg:"#3b1f5e",text:"#c084fc"},{bg:"#14532d",text:"#4ade80"},{bg:"#422006",text:"#fbbf24"}];function nb(r){if(!eg[r]){const e=Object.keys(eg).length;eg[r]=j3[e%j3.length]}return eg[r]}function wlt({items:r,prdPhases:e}){const{t}=vr();return e&&e.forEach(a=>nb(a)),r.length===0?G.jsx("div",{className:"text-[#6b7b8d] text-sm py-8 text-center",children:t.chartNoTimeline}):G.jsx("div",{className:"px-5 max-h-[420px] overflow-y-auto",children:r.map((a,n)=>G.jsxs("div",{className:"flex items-start gap-4 py-2 border-l-2 border-[#1e2d3d] ml-2 pl-4 relative before:content-[''] before:w-2.5 before:h-2.5 before:rounded-full before:bg-green-500 before:absolute before:left-[-6px] before:top-3",children:[G.jsx("div",{className:"text-[11px] text-[#6b7b8d] min-w-[80px] shrink-0",children:q3(a.timestamp)}),G.jsxs("div",{className:"text-xs",children:[a.title,a.prdPhase&&G.jsx("span",{className:"inline-block px-2 py-0.5 rounded ml-1.5 text-[11px]",style:{backgroundColor:nb(a.prdPhase).bg,color:nb(a.prdPhase).text},children:a.prdPhase})]})]},n))})}function Tlt({rules:r,deviations:e}){const{t}=vr(),a=r.filter(i=>i.status!=="pending"),n=r.filter(i=>i.status==="pending");return r.length===0?G.jsx("div",{className:"text-[#6b7b8d] text-sm py-4 text-center",children:t.rulesNoData}):G.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[G.jsx("thead",{children:G.jsxs("tr",{children:[G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:t.rulesSource}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:t.rulesCategory}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[200px]",children:t.rulesRule}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:t.rulesTargetFile})]})}),G.jsxs("tbody",{children:[a.map(i=>{const o=e.find(s=>s.deviationId===i.sourceDeviation),l=i.category?Vu(i.category,t):o?Vu(o.deviationCategory,t):"";return G.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:i.sourceDeviation||"-"}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:l&&G.jsx("span",{className:"inline-block px-2 py-0.5 rounded text-[11px] font-medium bg-[#1e3a5f] text-[#60a5fa]",children:l})}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[200px]",children:i.content}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d] min-w-[150px]",children:i.file})]},i.ruleId)}),n.map(i=>{const o=e.find(s=>s.deviationId===i.sourceDeviation),l=i.category?Vu(i.category,t):o?Vu(o.deviationCategory,t):"";return G.jsxs("tr",{className:"hover:bg-[#1a2e40] opacity-60",children:[G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:i.sourceDeviation||"-"}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:G.jsx("span",{className:"inline-block px-2 py-0.5 rounded text-[11px] font-medium bg-[#1e2d3d] text-[#94a3b8]",children:l})}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[200px]",children:i.content}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d] italic min-w-[150px]",children:t.rulesPending})]},i.ruleId)})]})]})}const X3=["#3b82f6","#22c55e","#f59e0b","#a855f7","#06b6d4","#ef4444","#ec4899","#f97316"];function Alt({developers:r}){const{t:e}=vr();if(r.length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoTeam});const t=r.slice(0,10),a=t.map(i=>i.name),n={...wa,tooltip:{trigger:"axis"},legend:{data:[e.chartCompletedTasks,e.chartDeviations,e.chartBugs],textStyle:{color:"#6b7b8d"},top:0},grid:{left:20,right:20,top:40,bottom:5,containLabel:!0},xAxis:{type:"category",data:a,axisLabel:{color:"#6b7b8d",fontSize:11},axisLine:{lineStyle:{color:"#1e2d3d"}}},yAxis:{type:"value",axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{name:e.chartCompletedTasks,type:"bar",data:t.map((i,o)=>({value:i.completedTasks,itemStyle:{color:X3[o%X3.length]}})),barWidth:"20%",itemStyle:{borderRadius:[4,4,0,0]}},{name:e.chartDeviations,type:"bar",data:t.map(i=>({value:i.deviations,itemStyle:{color:"#f59e0b"}})),barWidth:"20%",itemStyle:{borderRadius:[4,4,0,0]}},{name:e.chartBugs,type:"bar",data:t.map(i=>({value:i.bugs,itemStyle:{color:"#ef4444"}})),barWidth:"20%",itemStyle:{borderRadius:[4,4,0,0]}}]};return G.jsx(xa,{option:n,style:{height:320}})}const Clt={completed:"#22c55e","in-progress":"#f59e0b",pending:"#6b7b8d",failed:"#ef4444"};function Dlt({runs:r}){const{t:e}=vr(),t={completed:e.reqCompleted,"in-progress":e.reqInProgress,in_progress:e.reqInProgress,pending:e.reqPending,failed:e.reqFailed},a={};for(const l of r){const s=l.status||"pending";a[s]=(a[s]||0)+1}const n=Object.entries(a);if(n.length===0)return G.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:e.chartNoReqData});const i=n.map(([l,s])=>({name:t[l]||l,value:s,itemStyle:{color:Clt[l]||"#94a3b8"}})),o={...wa,tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},series:[{type:"pie",radius:["42%","70%"],center:["50%","52%"],label:{color:"#94a3b8",fontSize:12},data:i,emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,0.3)"}}}]};return G.jsx(xa,{option:o,style:{height:320}})}function Mlt(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function Llt(r){const e={};for(const t of r)for(const a of t.developers||[]){const n=a.modules||[];if(!e[a.name])e[a.name]={...a,modules:[...n]};else{const i=e[a.name];i.tasks+=a.tasks,i.completedTasks+=a.completedTasks,i.bugs+=a.bugs,i.deviations+=a.deviations,i.linesAdded+=a.linesAdded,i.linesRemoved+=a.linesRemoved,i.actualWorkSeconds+=a.actualWorkSeconds,i.totalTokens+=a.totalTokens;for(const o of n)i.modules.includes(o)||i.modules.push(o)}}for(const t of Object.values(e))t.firstPassRate=t.tasks>0?t.completedTasks/t.tasks:0;return Object.values(e).sort((t,a)=>a.completedTasks-t.completedTasks)}function Rlt({data:r,onSelectBranch:e}){const{t}=vr(),a=r.runs,n=Llt(a),i=a.reduce((y,m)=>y+m.totals.tasks,0),o=a.reduce((y,m)=>y+m.totals.completedTasks,0),l=a.reduce((y,m)=>y+m.totals.bugs,0),s=a.reduce((y,m)=>y+m.totals.deviations,0),u=a.reduce((y,m)=>y+m.totals.linesAdded,0),c=a.filter(y=>y.status!=="completed").length,h=a.filter(y=>y.status==="completed").length,d=[{label:t.ovTotalReqs,value:`${a.length}`,color:"text-blue-500"},{label:t.ovInProgress,value:`${c}`,color:"text-amber-500"},{label:t.ovCompleted,value:`${h}`,color:"text-green-500"},{label:t.ovTaskCompletion,value:`${o}/${i}`,color:"text-cyan-500"},{label:t.ovTotalDeviations,value:`${s}`,color:"text-amber-500"},{label:t.ovTotalBugs,value:`${l}`,color:"text-red-500"},{label:t.ovCodeLines,value:u>1e3?`${(u/1e3).toFixed(1)}k`:`${u}`,color:"text-purple-500"}],p=a.flatMap(y=>y.highlights.map(m=>({...m,branch:y.branch}))).sort((y,m)=>new Date(m.createdAt).getTime()-new Date(y.createdAt).getTime()).slice(0,10);return G.jsxs("div",{children:[G.jsx("div",{className:"grid grid-cols-4 gap-4 px-8 py-5 max-lg:grid-cols-2 max-sm:grid-cols-2",children:d.map(y=>G.jsxs("div",{className:"bg-[#162231] border border-[#1e2d3d] rounded-[10px] px-5 py-[18px] text-center",children:[G.jsx("div",{className:`text-[28px] font-bold mb-1 ${y.color}`,children:y.value}),G.jsx("div",{className:"text-xs text-[#6b7b8d] uppercase tracking-wide",children:y.label})]},y.label))}),G.jsxs("div",{className:"grid grid-cols-2 gap-4 px-8 pb-5 max-md:grid-cols-1",children:[G.jsx(fr,{title:t.ovReqStatus,children:G.jsx(Dlt,{runs:a})}),G.jsx(fr,{title:t.ovTeamEfficiency,children:G.jsx(Alt,{developers:n})}),G.jsx(fr,{title:t.ovReqList,full:!0,children:G.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[G.jsx("thead",{children:G.jsxs("tr",{children:[G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovBranch}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovTitle}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovStatus}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovTasks}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovDeviations}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"Bug"}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovDeveloper}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovStartTime})]})}),G.jsx("tbody",{children:a.map(y=>G.jsxs("tr",{className:"hover:bg-[#1a2e40] cursor-pointer",onClick:()=>e(y.branch),children:[G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-blue-400 hover:underline",children:y.branch}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:y.title||"-"}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:G.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-[11px] ${y.status==="completed"?"bg-green-900/30 text-green-400":y.status==="in-progress"?"bg-amber-900/30 text-amber-400":"bg-[#1e2d3d] text-[#6b7b8d]"}`,children:y.status})}),G.jsxs("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:[y.totals.completedTasks,"/",y.totals.tasks]}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-amber-500",children:y.totals.deviations}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-red-500",children:y.totals.bugs}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d]",children:y.developers.map(m=>m.name).join(", ")}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d]",children:xg(y.startTime)})]},y.branch))})]})}),G.jsx(fr,{title:t.ovTeamSummary,full:!0,children:G.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[G.jsx("thead",{children:G.jsxs("tr",{children:[G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovDeveloper}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovTasks}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovDeviations}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"Bug"}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovLinesAdded}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovAiHours}),G.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:t.ovModule})]})}),G.jsx("tbody",{children:n.map(y=>G.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] font-medium text-[#e0e6ed]",children:y.name}),G.jsxs("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:[G.jsx("span",{className:"text-green-500",children:y.completedTasks}),"/",y.tasks]}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-amber-500",children:y.deviations}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-red-500",children:y.bugs}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:y.linesAdded.toLocaleString()}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-teal-500",children:Mlt(y.actualWorkSeconds)}),G.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d]",children:y.modules.join(", ")||"-"})]},y.name))})]})}),p.length>0&&G.jsx(fr,{title:t.ovHighlights,full:!0,children:G.jsx("div",{className:"space-y-3",children:p.map((y,m)=>G.jsxs("div",{className:"flex items-start gap-3 py-2 border-b border-[#1e2d3d] last:border-b-0",children:[G.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-[11px] shrink-0 mt-0.5 ${y.source==="auto"?"bg-blue-900/30 text-blue-400":"bg-purple-900/30 text-purple-400"}`,children:y.source==="auto"?t.ovAi:t.ovManual}),G.jsx("div",{className:"flex-1 text-[13px] text-[#e0e6ed]",children:y.content}),G.jsxs("div",{className:"text-[11px] text-[#6b7b8d] shrink-0",children:[G.jsx("span",{className:"text-blue-400",children:y.branch})," ",xg(y.createdAt)]})]},m))})})]})]})}function Elt(){const[r,e]=Oe.useState(L8),t=M8(r),a=y=>{e(y),R8(y)},{runs:n,currentRunId:i,setCurrentRunId:o,runData:l,loading:s,connected:u}=w8(),{data:c,loading:h}=T8(),d=i===bg;if(s&&!l&&!d&&n.length!==0)return G.jsx(Ou.Provider,{value:{locale:r,setLocale:a,t},children:G.jsx("div",{className:"min-h-screen flex items-center justify-center text-[#6b7b8d]",children:t.loading})});if(d&&h&&!c)return G.jsx(Ou.Provider,{value:{locale:r,setLocale:a,t},children:G.jsx("div",{className:"min-h-screen flex items-center justify-center text-[#6b7b8d]",children:t.loading})});const p=y=>{const m=n.find(_=>_.branch===y);m&&o(m.runId)};return!d&&!l?G.jsx(Ou.Provider,{value:{locale:r,setLocale:a,t},children:G.jsxs("div",{children:[G.jsx(R1,{runs:n,currentRunId:i,onSelectRun:o,meta:null,connected:u}),G.jsxs("div",{className:"text-center py-20 text-[#6b7b8d]",children:[G.jsx("h2",{className:"text-lg mb-2 text-[#e0e6ed]",children:t.noRunData}),G.jsx("p",{dangerouslySetInnerHTML:{__html:t.noRunDataHint},className:"[&_code]:bg-[#162231] [&_code]:px-2 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-[13px]"})]})]})}):d?G.jsx(Ou.Provider,{value:{locale:r,setLocale:a,t},children:G.jsxs("div",{children:[G.jsx(R1,{runs:n,currentRunId:i,onSelectRun:o,meta:null,connected:u}),c?G.jsx(Rlt,{data:c,onSelectBranch:p}):G.jsxs("div",{className:"text-center py-20 text-[#6b7b8d]",children:[G.jsx("h2",{className:"text-lg mb-2 text-[#e0e6ed]",children:t.noOverviewData}),G.jsx("p",{dangerouslySetInnerHTML:{__html:t.noOverviewDataHint},className:"[&_code]:bg-[#162231] [&_code]:px-2 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-[13px]"})]}),G.jsx("div",{className:"text-center py-6 text-[#3d4f5f] text-xs border-t border-[#1e2d3d] mt-5",children:t.footerOverview})]})}):G.jsx(Ou.Provider,{value:{locale:r,setLocale:a,t},children:G.jsxs("div",{children:[G.jsx(R1,{runs:n,currentRunId:i,onSelectRun:o,meta:l.meta,connected:u}),G.jsx(N8,{data:l}),G.jsxs("div",{className:"grid grid-cols-2 gap-4 px-8 pb-5 max-md:grid-cols-1",children:[Object.keys(l.metrics.nodeTimeBreakdown||{}).length>0&&G.jsx(fr,{title:t.chartNodeTime,children:G.jsx(plt,{metrics:l.metrics})}),l.tasks.length>0&&G.jsx(fr,{title:t.chartTaskRanking,children:G.jsx(glt,{tasks:l.tasks})}),l.workflow.length>0&&G.jsx(fr,{title:t.chartStageTime,children:G.jsx(mlt,{workflow:l.workflow})}),G.jsx(fr,{title:t.chartTimeline,children:G.jsx(wlt,{items:l.timeline,prdPhases:l.meta.prdPhases})}),l.tasks.length>0&&G.jsx(fr,{title:t.chartTaskCompletion,children:G.jsx(slt,{tasks:l.tasks,prdPhases:l.meta.prdPhases})}),l.reviews.length>0&&G.jsx(fr,{title:t.chartFirstPassRate,children:G.jsx(_lt,{reviews:l.reviews})}),l.deviations.length>0&&G.jsx(fr,{title:t.chartDeviationPie,children:G.jsx(ult,{deviations:l.deviations})}),l.deviations.length>0&&G.jsx(fr,{title:t.chartDeviationBar,children:G.jsx(clt,{deviations:l.deviations})}),l.bugs.length>0&&G.jsx(fr,{title:t.chartBugSeverity,children:G.jsx(xlt,{bugs:l.bugs})}),l.reviews.length>0&&G.jsx(fr,{title:t.chartReviewIssues,children:G.jsx(Slt,{reviews:l.reviews})}),(l.deviations.length>0||l.bugs.length>0)&&G.jsx(fr,{title:t.chartFileHotspot,children:G.jsx(vlt,{deviations:l.deviations,bugs:l.bugs})}),l.deviations.length>0&&G.jsx(fr,{title:t.chartDeviationTrend,children:G.jsx(dlt,{deviations:l.deviations,rules:l.rules})}),l.rules.length>0&&G.jsx(fr,{title:t.chartRulesTable,full:!0,children:G.jsx(Tlt,{rules:l.rules,deviations:l.deviations})})]}),G.jsx("div",{className:"text-center py-6 text-[#3d4f5f] text-xs border-t border-[#1e2d3d] mt-5",children:t.footerDashboard})]})})}m8.createRoot(document.getElementById("root")).render(G.jsx(Oe.StrictMode,{children:G.jsx(Elt,{})}));