aidevo 1.0.0-beta.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 (110) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +431 -0
  3. package/dist/cli/commands/dashboard.d.ts +2 -0
  4. package/dist/cli/commands/dashboard.d.ts.map +1 -0
  5. package/dist/cli/commands/dashboard.js +70 -0
  6. package/dist/cli/commands/dashboard.js.map +1 -0
  7. package/dist/cli/commands/init.d.ts +2 -0
  8. package/dist/cli/commands/init.d.ts.map +1 -0
  9. package/dist/cli/commands/init.js +362 -0
  10. package/dist/cli/commands/init.js.map +1 -0
  11. package/dist/cli/commands/log.d.ts +2 -0
  12. package/dist/cli/commands/log.d.ts.map +1 -0
  13. package/dist/cli/commands/log.js +438 -0
  14. package/dist/cli/commands/log.js.map +1 -0
  15. package/dist/cli/commands/migrate.d.ts +2 -0
  16. package/dist/cli/commands/migrate.d.ts.map +1 -0
  17. package/dist/cli/commands/migrate.js +183 -0
  18. package/dist/cli/commands/migrate.js.map +1 -0
  19. package/dist/cli/commands/reindex.d.ts +10 -0
  20. package/dist/cli/commands/reindex.d.ts.map +1 -0
  21. package/dist/cli/commands/reindex.js +94 -0
  22. package/dist/cli/commands/reindex.js.map +1 -0
  23. package/dist/cli/commands/report.d.ts +2 -0
  24. package/dist/cli/commands/report.d.ts.map +1 -0
  25. package/dist/cli/commands/report.js +219 -0
  26. package/dist/cli/commands/report.js.map +1 -0
  27. package/dist/cli/commands/rules.d.ts +2 -0
  28. package/dist/cli/commands/rules.d.ts.map +1 -0
  29. package/dist/cli/commands/rules.js +143 -0
  30. package/dist/cli/commands/rules.js.map +1 -0
  31. package/dist/cli/commands/start.d.ts +2 -0
  32. package/dist/cli/commands/start.d.ts.map +1 -0
  33. package/dist/cli/commands/start.js +173 -0
  34. package/dist/cli/commands/start.js.map +1 -0
  35. package/dist/cli/commands/status.d.ts +2 -0
  36. package/dist/cli/commands/status.d.ts.map +1 -0
  37. package/dist/cli/commands/status.js +74 -0
  38. package/dist/cli/commands/status.js.map +1 -0
  39. package/dist/cli/commands/update.d.ts +2 -0
  40. package/dist/cli/commands/update.d.ts.map +1 -0
  41. package/dist/cli/commands/update.js +146 -0
  42. package/dist/cli/commands/update.js.map +1 -0
  43. package/dist/cli/index.d.ts +3 -0
  44. package/dist/cli/index.d.ts.map +1 -0
  45. package/dist/cli/index.js +85 -0
  46. package/dist/cli/index.js.map +1 -0
  47. package/dist/mcp/server.d.ts +10 -0
  48. package/dist/mcp/server.d.ts.map +1 -0
  49. package/dist/mcp/server.js +632 -0
  50. package/dist/mcp/server.js.map +1 -0
  51. package/dist/schemas/run-json.d.ts +252 -0
  52. package/dist/schemas/run-json.d.ts.map +1 -0
  53. package/dist/schemas/run-json.js +22 -0
  54. package/dist/schemas/run-json.js.map +1 -0
  55. package/dist/server/api.d.ts +24 -0
  56. package/dist/server/api.d.ts.map +1 -0
  57. package/dist/server/api.js +196 -0
  58. package/dist/server/api.js.map +1 -0
  59. package/dist/server/index.d.ts +2 -0
  60. package/dist/server/index.d.ts.map +1 -0
  61. package/dist/server/index.js +166 -0
  62. package/dist/server/index.js.map +1 -0
  63. package/dist/utils/display.d.ts +12 -0
  64. package/dist/utils/display.d.ts.map +1 -0
  65. package/dist/utils/display.js +52 -0
  66. package/dist/utils/display.js.map +1 -0
  67. package/dist/utils/fs.d.ts +9 -0
  68. package/dist/utils/fs.d.ts.map +1 -0
  69. package/dist/utils/fs.js +43 -0
  70. package/dist/utils/fs.js.map +1 -0
  71. package/dist/utils/git.d.ts +4 -0
  72. package/dist/utils/git.d.ts.map +1 -0
  73. package/dist/utils/git.js +18 -0
  74. package/dist/utils/git.js.map +1 -0
  75. package/dist/utils/paths.d.ts +25 -0
  76. package/dist/utils/paths.d.ts.map +1 -0
  77. package/dist/utils/paths.js +45 -0
  78. package/dist/utils/paths.js.map +1 -0
  79. package/dist/utils/rules.d.ts +44 -0
  80. package/dist/utils/rules.d.ts.map +1 -0
  81. package/dist/utils/rules.js +208 -0
  82. package/dist/utils/rules.js.map +1 -0
  83. package/dist/utils/run-data.d.ts +37 -0
  84. package/dist/utils/run-data.d.ts.map +1 -0
  85. package/dist/utils/run-data.js +353 -0
  86. package/dist/utils/run-data.js.map +1 -0
  87. package/dist/utils/tokens.d.ts +26 -0
  88. package/dist/utils/tokens.d.ts.map +1 -0
  89. package/dist/utils/tokens.js +173 -0
  90. package/dist/utils/tokens.js.map +1 -0
  91. package/package.json +48 -0
  92. package/src/assets/skills/audit.md +98 -0
  93. package/src/assets/skills/bug-fixer.md +48 -0
  94. package/src/assets/skills/code-generator.md +82 -0
  95. package/src/assets/skills/commit-code.md +67 -0
  96. package/src/assets/skills/dashboard-generator.md +65 -0
  97. package/src/assets/skills/dev-flower.md +85 -0
  98. package/src/assets/skills/deviation-recorder.md +89 -0
  99. package/src/assets/skills/docx-to-markdown.md +69 -0
  100. package/src/assets/skills/mcp-reviewer.md +43 -0
  101. package/src/assets/skills/requirement-analyzer.md +103 -0
  102. package/src/assets/skills/rules-evolver.md +48 -0
  103. package/src/assets/skills/self-reviewer.md +53 -0
  104. package/src/assets/skills/task-splitter.md +58 -0
  105. package/src/assets/skills/workflow-orchestrator.md +204 -0
  106. package/src/assets/templates/demo-run.json +910 -0
  107. package/src/assets/templates/run.json +63 -0
  108. package/src/dashboard/assets/index-BMygHuaU.js +111 -0
  109. package/src/dashboard/assets/index-BW0UZ6Es.css +1 -0
  110. package/src/dashboard/index.html +13 -0
@@ -0,0 +1,111 @@
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 F3(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var b1={exports:{}},bc={};/**
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 gM;function a8(){if(gM)return bc;gM=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 bc.Fragment=e,bc.jsx=t,bc.jsxs=t,bc}var yM;function n8(){return yM||(yM=1,b1.exports=a8()),b1.exports}var z=n8(),S1={exports:{}},Yt={};/**
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 mM;function i8(){if(mM)return Yt;mM=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(U){return U===null||typeof U!="object"?null:(U=d&&U[d]||U["@@iterator"],typeof U=="function"?U:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function b(U,W,at){this.props=U,this.context=W,this.refs=_,this.updater=at||y}b.prototype.isReactComponent={},b.prototype.setState=function(U,W){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,W,"setState")},b.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function S(){}S.prototype=b.prototype;function w(U,W,at){this.props=U,this.context=W,this.refs=_,this.updater=at||y}var A=w.prototype=new S;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},E=Object.prototype.hasOwnProperty;function R(U,W,at){var lt=at.ref;return{$$typeof:r,type:U,key:W,ref:lt!==void 0?lt:null,props:at}}function O(U,W){return R(U.type,W,U.props)}function P(U){return typeof U=="object"&&U!==null&&U.$$typeof===r}function B(U){var W={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(at){return W[at]})}var G=/\/+/g;function H(U,W){return typeof U=="object"&&U!==null&&U.key!=null?B(""+U.key):W.toString(36)}function F(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(D,D):(U.status="pending",U.then(function(W){U.status==="pending"&&(U.status="fulfilled",U.value=W)},function(W){U.status==="pending"&&(U.status="rejected",U.reason=W)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function k(U,W,at,lt,ct){var bt=typeof U;(bt==="undefined"||bt==="boolean")&&(U=null);var Pt=!1;if(U===null)Pt=!0;else switch(bt){case"bigint":case"string":case"number":Pt=!0;break;case"object":switch(U.$$typeof){case r:case e:Pt=!0;break;case c:return Pt=U._init,k(Pt(U._payload),W,at,lt,ct)}}if(Pt)return ct=ct(U),Pt=lt===""?"."+H(U,0):lt,M(ct)?(at="",Pt!=null&&(at=Pt.replace(G,"$&/")+"/"),k(ct,W,at,"",function(Ot){return Ot})):ct!=null&&(P(ct)&&(ct=O(ct,at+(ct.key==null||U&&U.key===ct.key?"":(""+ct.key).replace(G,"$&/")+"/")+Pt)),W.push(ct)),1;Pt=0;var wt=lt===""?".":lt+":";if(M(U))for(var pt=0;pt<U.length;pt++)lt=U[pt],bt=wt+H(lt,pt),Pt+=k(lt,W,at,bt,ct);else if(pt=p(U),typeof pt=="function")for(U=pt.call(U),pt=0;!(lt=U.next()).done;)lt=lt.value,bt=wt+H(lt,pt++),Pt+=k(lt,W,at,bt,ct);else if(bt==="object"){if(typeof U.then=="function")return k(F(U),W,at,lt,ct);throw W=String(U),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return Pt}function j(U,W,at){if(U==null)return U;var lt=[],ct=0;return k(U,lt,"","",function(bt){return W.call(at,bt,ct++)}),lt}function Y(U){if(U._status===-1){var W=U._result;W=W(),W.then(function(at){(U._status===0||U._status===-1)&&(U._status=1,U._result=at)},function(at){(U._status===0||U._status===-1)&&(U._status=2,U._result=at)}),U._status===-1&&(U._status=0,U._result=W)}if(U._status===1)return U._result.default;throw U._result}var $=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},tt={map:j,forEach:function(U,W,at){j(U,function(){W.apply(this,arguments)},at)},count:function(U){var W=0;return j(U,function(){W++}),W},toArray:function(U){return j(U,function(W){return W})||[]},only:function(U){if(!P(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return Yt.Activity=h,Yt.Children=tt,Yt.Component=b,Yt.Fragment=t,Yt.Profiler=n,Yt.PureComponent=w,Yt.StrictMode=a,Yt.Suspense=s,Yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Yt.__COMPILER_RUNTIME={__proto__:null,c:function(U){return L.H.useMemoCache(U)}},Yt.cache=function(U){return function(){return U.apply(null,arguments)}},Yt.cacheSignal=function(){return null},Yt.cloneElement=function(U,W,at){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var lt=m({},U.props),ct=U.key;if(W!=null)for(bt in W.key!==void 0&&(ct=""+W.key),W)!E.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 R(U.type,ct,lt)},Yt.createContext=function(U){return U={$$typeof:o,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:i,_context:U},U},Yt.createElement=function(U,W,at){var lt,ct={},bt=null;if(W!=null)for(lt in W.key!==void 0&&(bt=""+W.key),W)E.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(U&&U.defaultProps)for(lt in Pt=U.defaultProps,Pt)ct[lt]===void 0&&(ct[lt]=Pt[lt]);return R(U,bt,ct)},Yt.createRef=function(){return{current:null}},Yt.forwardRef=function(U){return{$$typeof:l,render:U}},Yt.isValidElement=P,Yt.lazy=function(U){return{$$typeof:c,_payload:{_status:-1,_result:U},_init:Y}},Yt.memo=function(U,W){return{$$typeof:u,type:U,compare:W===void 0?null:W}},Yt.startTransition=function(U){var W=L.T,at={};L.T=at;try{var lt=U(),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}},Yt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Yt.use=function(U){return L.H.use(U)},Yt.useActionState=function(U,W,at){return L.H.useActionState(U,W,at)},Yt.useCallback=function(U,W){return L.H.useCallback(U,W)},Yt.useContext=function(U){return L.H.useContext(U)},Yt.useDebugValue=function(){},Yt.useDeferredValue=function(U,W){return L.H.useDeferredValue(U,W)},Yt.useEffect=function(U,W){return L.H.useEffect(U,W)},Yt.useEffectEvent=function(U){return L.H.useEffectEvent(U)},Yt.useId=function(){return L.H.useId()},Yt.useImperativeHandle=function(U,W,at){return L.H.useImperativeHandle(U,W,at)},Yt.useInsertionEffect=function(U,W){return L.H.useInsertionEffect(U,W)},Yt.useLayoutEffect=function(U,W){return L.H.useLayoutEffect(U,W)},Yt.useMemo=function(U,W){return L.H.useMemo(U,W)},Yt.useOptimistic=function(U,W){return L.H.useOptimistic(U,W)},Yt.useReducer=function(U,W,at){return L.H.useReducer(U,W,at)},Yt.useRef=function(U){return L.H.useRef(U)},Yt.useState=function(U){return L.H.useState(U)},Yt.useSyncExternalStore=function(U,W,at){return L.H.useSyncExternalStore(U,W,at)},Yt.useTransition=function(){return L.H.useTransition()},Yt.version="19.2.4",Yt}var _M;function WS(){return _M||(_M=1,S1.exports=i8()),S1.exports}var Fe=WS();const o8=F3(Fe);var w1={exports:{}},Sc={},T1={exports:{}},A1={};/**
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 xM;function l8(){return xM||(xM=1,(function(r){function e(k,j){var Y=k.length;k.push(j);t:for(;0<Y;){var $=Y-1>>>1,tt=k[$];if(0<n(tt,j))k[$]=j,k[Y]=tt,Y=$;else break t}}function t(k){return k.length===0?null:k[0]}function a(k){if(k.length===0)return null;var j=k[0],Y=k.pop();if(Y!==j){k[0]=Y;t:for(var $=0,tt=k.length,U=tt>>>1;$<U;){var W=2*($+1)-1,at=k[W],lt=W+1,ct=k[lt];if(0>n(at,Y))lt<tt&&0>n(ct,at)?(k[$]=ct,k[lt]=Y,$=lt):(k[$]=at,k[W]=Y,$=W);else if(lt<tt&&0>n(ct,Y))k[$]=ct,k[lt]=Y,$=lt;else break t}}return j}function n(k,j){var Y=k.sortIndex-j.sortIndex;return Y!==0?Y:k.id-j.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,S=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function A(k){for(var j=t(u);j!==null;){if(j.callback===null)a(u);else if(j.startTime<=k)a(u),j.sortIndex=j.expirationTime,e(s,j);else break;j=t(u)}}function M(k){if(m=!1,A(k),!y)if(t(s)!==null)y=!0,D||(D=!0,B());else{var j=t(u);j!==null&&F(M,j.startTime-k)}}var D=!1,L=-1,E=5,R=-1;function O(){return _?!0:!(r.unstable_now()-R<E)}function P(){if(_=!1,D){var k=r.unstable_now();R=k;var j=!0;try{t:{y=!1,m&&(m=!1,S(L),L=-1),p=!0;var Y=d;try{e:{for(A(k),h=t(s);h!==null&&!(h.expirationTime>k&&O());){var $=h.callback;if(typeof $=="function"){h.callback=null,d=h.priorityLevel;var tt=$(h.expirationTime<=k);if(k=r.unstable_now(),typeof tt=="function"){h.callback=tt,A(k),j=!0;break e}h===t(s)&&a(s),A(k)}else a(s);h=t(s)}if(h!==null)j=!0;else{var U=t(u);U!==null&&F(M,U.startTime-k),j=!1}}break t}finally{h=null,d=Y,p=!1}j=void 0}}finally{j?B():D=!1}}}var B;if(typeof w=="function")B=function(){w(P)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,H=G.port2;G.port1.onmessage=P,B=function(){H.postMessage(null)}}else B=function(){b(P,0)};function F(k,j){L=b(function(){k(r.unstable_now())},j)}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(k){k.callback=null},r.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<k?Math.floor(1e3/k):5},r.unstable_getCurrentPriorityLevel=function(){return d},r.unstable_next=function(k){switch(d){case 1:case 2:case 3:var j=3;break;default:j=d}var Y=d;d=j;try{return k()}finally{d=Y}},r.unstable_requestPaint=function(){_=!0},r.unstable_runWithPriority=function(k,j){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var Y=d;d=k;try{return j()}finally{d=Y}},r.unstable_scheduleCallback=function(k,j,Y){var $=r.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?$+Y:$):Y=$,k){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=Y+tt,k={id:c++,callback:j,priorityLevel:k,startTime:Y,expirationTime:tt,sortIndex:-1},Y>$?(k.sortIndex=Y,e(u,k),t(s)===null&&k===t(u)&&(m?(S(L),L=-1):m=!0,F(M,Y-$))):(k.sortIndex=tt,e(s,k),y||p||(y=!0,D||(D=!0,B()))),k},r.unstable_shouldYield=O,r.unstable_wrapCallback=function(k){var j=d;return function(){var Y=d;d=j;try{return k.apply(this,arguments)}finally{d=Y}}}})(A1)),A1}var bM;function s8(){return bM||(bM=1,T1.exports=l8()),T1.exports}var C1={exports:{}},wr={};/**
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 SM;function u8(){if(SM)return wr;SM=1;var r=WS();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 wr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,wr.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)},wr.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()}},wr.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))},wr.prefetchDNS=function(s){typeof s=="string"&&a.d.D(s)},wr.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})}},wr.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)},wr.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})}},wr.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)},wr.requestFormReset=function(s){a.d.r(s)},wr.unstable_batchedUpdates=function(s,u){return s(u)},wr.useFormState=function(s,u,c){return o.H.useFormState(s,u,c)},wr.useFormStatus=function(){return o.H.useHostTransitionStatus()},wr.version="19.2.4",wr}var wM;function f8(){if(wM)return C1.exports;wM=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=u8(),C1.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 TM;function c8(){if(TM)return Sc;TM=1;var r=s8(),e=WS(),t=f8();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,x=v;;){var T=g.return;if(T===null)break;var C=T.alternate;if(C===null){if(x=T.return,x!==null){g=x;continue}break}if(T.child===C.child){for(C=T.child;C;){if(C===g)return s(T),f;if(C===x)return s(T),v;C=C.sibling}throw Error(a(188))}if(g.return!==x.return)g=T,x=C;else{for(var I=!1,V=T.child;V;){if(V===g){I=!0,g=T,x=C;break}if(V===x){I=!0,x=T,g=C;break}V=V.sibling}if(!I){for(V=C.child;V;){if(V===g){I=!0,g=C,x=T;break}if(V===x){I=!0,x=C,g=T;break}V=V.sibling}if(!I)throw Error(a(189))}}if(g.alternate!==x)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"),S=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"),E=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function B(f){return f===null||typeof f!="object"?null:(f=P&&f[P]||f["@@iterator"],typeof f=="function"?f:null)}var G=Symbol.for("react.client.reference");function H(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===G?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 R:return"Activity"}if(typeof f=="object")switch(f.$$typeof){case y:return"Portal";case w:return f.displayName||"Context";case S: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 E:v=f._payload,f=f._init;try{return H(f(v))}catch{}}return null}var F=Array.isArray,k=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},$=[],tt=-1;function U(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=U(null),ct=U(null),bt=U(null),Pt=U(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)?VD(f):0;break;default:if(f=v.tagName,v=v.namespaceURI)v=VD(v),f=GD(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=GD(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),yc._currentValue=Y)}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 x={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]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=x.DetermineComponentFrameRoot(),I=C[0],V=C[1];if(I&&V){var X=I.split(`
44
+ `),J=V.split(`
45
+ `);for(T=x=0;x<X.length&&!X[x].includes("DetermineComponentFrameRoot");)x++;for(;T<J.length&&!J[T].includes("DetermineComponentFrameRoot");)T++;if(x===X.length||T===J.length)for(x=X.length-1,T=J.length-1;1<=x&&0<=T&&X[x]!==J[T];)T--;for(;1<=x&&0<=T;x--,T--)if(X[x]!==J[T]){if(x!==1||T!==1)do if(x--,T--,0>T||X[x]!==J[T]){var st=`
46
+ `+X[x].replace(" at new "," at ");return f.displayName&&st.includes("<anonymous>")&&(st=st.replace("<anonymous>",f.displayName)),st}while(1<=x&&0<=T);break}}}finally{ue=!1,Error.prepareStackTrace=g}return(g=f?f.displayName||f.name:"")?Zt(g):""}function Ge(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 Sr(f){try{var v="",g=null;do v+=Ge(f,g),g=f,f=f.return;while(f);return v}catch(x){return`
47
+ Error generating stack: `+x.message+`
48
+ `+x.stack}}var sr=Object.prototype.hasOwnProperty,en=r.unstable_scheduleCallback,wa=r.unstable_cancelCallback,Ev=r.unstable_shouldYield,Mf=r.unstable_requestPaint,na=r.unstable_now,kV=r.unstable_getCurrentPriorityLevel,y2=r.unstable_ImmediatePriority,m2=r.unstable_UserBlockingPriority,Rv=r.unstable_NormalPriority,BV=r.unstable_LowPriority,_2=r.unstable_IdlePriority,VV=r.log,GV=r.unstable_setDisableYieldValue,Lf=null,ia=null;function Vi(f){if(typeof VV=="function"&&GV(f),ia&&typeof ia.setStrictMode=="function")try{ia.setStrictMode(Lf,f)}catch{}}var oa=Math.clz32?Math.clz32:FV,HV=Math.log,UV=Math.LN2;function FV(f){return f>>>=0,f===0?32:31-(HV(f)/UV|0)|0}var Iv=256,Ov=262144,Nv=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 Pv(f,v,g){var x=f.pendingLanes;if(x===0)return 0;var T=0,C=f.suspendedLanes,I=f.pingedLanes;f=f.warmLanes;var V=x&134217727;return V!==0?(x=V&~C,x!==0?T=Zo(x):(I&=V,I!==0?T=Zo(I):g||(g=V&~f,g!==0&&(T=Zo(g))))):(V=x&~C,V!==0?T=Zo(V):I!==0?T=Zo(I):g||(g=x&~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 Ef(f,v){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&v)===0}function jV(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 x2(){var f=Nv;return Nv<<=1,(Nv&62914560)===0&&(Nv=4194304),f}function um(f){for(var v=[],g=0;31>g;g++)v.push(f);return v}function Rf(f,v){f.pendingLanes|=v,v!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function YV(f,v,g,x,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 V=f.entanglements,X=f.expirationTimes,J=f.hiddenUpdates;for(g=I&~g;0<g;){var st=31-oa(g),ft=1<<st;V[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}x!==0&&b2(f,x,0),C!==0&&T===0&&f.tag!==0&&(f.suspendedLanes|=C&~(I&~v))}function b2(f,v,g){f.pendingLanes|=v,f.suspendedLanes&=~v;var x=31-oa(v);f.entangledLanes|=v,f.entanglements[x]=f.entanglements[x]|1073741824|g&261930}function S2(f,v){var g=f.entangledLanes|=v;for(f=f.entanglements;g;){var x=31-oa(g),T=1<<x;T&v|f[x]&v&&(f[x]|=v),g&=~T}}function w2(f,v){var g=v&-v;return g=(g&42)!==0?1:fm(g),(g&(f.suspendedLanes|v))!==0?0:g}function fm(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 cm(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function T2(){var f=j.p;return f!==0?f:(f=window.event,f===void 0?32:uM(f.type))}function A2(f,v){var g=j.p;try{return j.p=f,v()}finally{j.p=g}}var Gi=Math.random().toString(36).slice(2),vr="__reactFiber$"+Gi,Yr="__reactProps$"+Gi,As="__reactContainer$"+Gi,hm="__reactEvents$"+Gi,XV="__reactListeners$"+Gi,WV="__reactHandles$"+Gi,C2="__reactResources$"+Gi,If="__reactMarker$"+Gi;function vm(f){delete f[vr],delete f[Yr],delete f[hm],delete f[XV],delete f[WV]}function Cs(f){var v=f[vr];if(v)return v;for(var g=f.parentNode;g;){if(v=g[As]||g[vr]){if(g=v.alternate,v.child!==null||g!==null&&g.child!==null)for(f=WD(f);f!==null;){if(g=f[vr])return g;f=WD(f)}return v}f=g,g=f.parentNode}return null}function Ds(f){if(f=f[vr]||f[As]){var v=f.tag;if(v===5||v===6||v===13||v===31||v===26||v===27||v===3)return f}return null}function Of(f){var v=f.tag;if(v===5||v===26||v===27||v===6)return f.stateNode;throw Error(a(33))}function Ms(f){var v=f[C2];return v||(v=f[C2]={hoistableStyles:new Map,hoistableScripts:new Map}),v}function ur(f){f[If]=!0}var D2=new Set,M2={};function qo(f,v){Ls(f,v),Ls(f+"Capture",v)}function Ls(f,v){for(M2[f]=v,f=0;f<v.length;f++)D2.add(v[f])}var ZV=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]*$"),L2={},E2={};function qV(f){return sr.call(E2,f)?!0:sr.call(L2,f)?!1:ZV.test(f)?E2[f]=!0:(L2[f]=!0,!1)}function zv(f,v,g){if(qV(v))if(g===null)f.removeAttribute(v);else{switch(typeof g){case"undefined":case"function":case"symbol":f.removeAttribute(v);return;case"boolean":var x=v.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){f.removeAttribute(v);return}}f.setAttribute(v,""+g)}}function kv(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 $n(f,v,g,x){if(x===null)f.removeAttribute(g);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(g);return}f.setAttributeNS(v,g,""+x)}}function Ta(f){switch(typeof f){case"bigint":case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function R2(f){var v=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(v==="checkbox"||v==="radio")}function $V(f,v,g){var x=Object.getOwnPropertyDescriptor(f.constructor.prototype,v);if(!f.hasOwnProperty(v)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var T=x.get,C=x.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:x.enumerable}),{getValue:function(){return g},setValue:function(I){g=""+I},stopTracking:function(){f._valueTracker=null,delete f[v]}}}}function dm(f){if(!f._valueTracker){var v=R2(f)?"checked":"value";f._valueTracker=$V(f,v,""+f[v])}}function I2(f){if(!f)return!1;var v=f._valueTracker;if(!v)return!0;var g=v.getValue(),x="";return f&&(x=R2(f)?f.checked?"true":"false":f.value),f=x,f!==g?(v.setValue(f),!0):!1}function Bv(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 KV=/[\n"\\]/g;function Aa(f){return f.replace(KV,function(v){return"\\"+v.charCodeAt(0).toString(16)+" "})}function pm(f,v,g,x,T,C,I,V){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=""+Ta(v)):f.value!==""+Ta(v)&&(f.value=""+Ta(v)):I!=="submit"&&I!=="reset"||f.removeAttribute("value"),v!=null?gm(f,I,Ta(v)):g!=null?gm(f,I,Ta(g)):x!=null&&f.removeAttribute("value"),T==null&&C!=null&&(f.defaultChecked=!!C),T!=null&&(f.checked=T&&typeof T!="function"&&typeof T!="symbol"),V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?f.name=""+Ta(V):f.removeAttribute("name")}function O2(f,v,g,x,T,C,I,V){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)){dm(f);return}g=g!=null?""+Ta(g):"",v=v!=null?""+Ta(v):g,V||v===f.value||(f.value=v),f.defaultValue=v}x=x??T,x=typeof x!="function"&&typeof x!="symbol"&&!!x,f.checked=V?f.checked:!!x,f.defaultChecked=!!x,I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(f.name=I),dm(f)}function gm(f,v,g){v==="number"&&Bv(f.ownerDocument)===f||f.defaultValue===""+g||(f.defaultValue=""+g)}function Es(f,v,g,x){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&&x&&(f[g].defaultSelected=!0)}else{for(g=""+Ta(g),v=null,T=0;T<f.length;T++){if(f[T].value===g){f[T].selected=!0,x&&(f[T].defaultSelected=!0);return}v!==null||f[T].disabled||(v=f[T])}v!==null&&(v.selected=!0)}}function N2(f,v,g){if(v!=null&&(v=""+Ta(v),v!==f.value&&(f.value=v),g==null)){f.defaultValue!==v&&(f.defaultValue=v);return}f.defaultValue=g!=null?""+Ta(g):""}function P2(f,v,g,x){if(v==null){if(x!=null){if(g!=null)throw Error(a(92));if(F(x)){if(1<x.length)throw Error(a(93));x=x[0]}g=x}g==null&&(g=""),v=g}g=Ta(v),f.defaultValue=g,x=f.textContent,x===g&&x!==""&&x!==null&&(f.value=x),dm(f)}function Rs(f,v){if(v){var g=f.firstChild;if(g&&g===f.lastChild&&g.nodeType===3){g.nodeValue=v;return}}f.textContent=v}var QV=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 z2(f,v,g){var x=v.indexOf("--")===0;g==null||typeof g=="boolean"||g===""?x?f.setProperty(v,""):v==="float"?f.cssFloat="":f[v]="":x?f.setProperty(v,g):typeof g!="number"||g===0||QV.has(v)?v==="float"?f.cssFloat=g:f[v]=(""+g).trim():f[v]=g+"px"}function k2(f,v,g){if(v!=null&&typeof v!="object")throw Error(a(62));if(f=f.style,g!=null){for(var x in g)!g.hasOwnProperty(x)||v!=null&&v.hasOwnProperty(x)||(x.indexOf("--")===0?f.setProperty(x,""):x==="float"?f.cssFloat="":f[x]="");for(var T in v)x=v[T],v.hasOwnProperty(T)&&g[T]!==x&&z2(f,T,x)}else for(var C in v)v.hasOwnProperty(C)&&z2(f,C,v[C])}function ym(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 JV=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"]]),tG=/^[\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 Vv(f){return tG.test(""+f)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":f}function Kn(){}var mm=null;function _m(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var Is=null,Os=null;function B2(f){var v=Ds(f);if(v&&(f=v.stateNode)){var g=f[Yr]||null;t:switch(f=v.stateNode,v.type){case"input":if(pm(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="'+Aa(""+v)+'"][type="radio"]'),v=0;v<g.length;v++){var x=g[v];if(x!==f&&x.form===f.form){var T=x[Yr]||null;if(!T)throw Error(a(90));pm(x,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(v=0;v<g.length;v++)x=g[v],x.form===f.form&&I2(x)}break t;case"textarea":N2(f,g.value,g.defaultValue);break t;case"select":v=g.value,v!=null&&Es(f,!!g.multiple,v,!1)}}}var xm=!1;function V2(f,v,g){if(xm)return f(v,g);xm=!0;try{var x=f(v);return x}finally{if(xm=!1,(Is!==null||Os!==null)&&(Cd(),Is&&(v=Is,f=Os,Os=Is=null,B2(v),f)))for(v=0;v<f.length;v++)B2(f[v])}}function Nf(f,v){var g=f.stateNode;if(g===null)return null;var x=g[Yr]||null;if(x===null)return null;g=x[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":(x=!x.disabled)||(f=f.type,x=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!x;break t;default:f=!1}if(f)return null;if(g&&typeof g!="function")throw Error(a(231,v,typeof g));return g}var Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bm=!1;if(Qn)try{var Pf={};Object.defineProperty(Pf,"passive",{get:function(){bm=!0}}),window.addEventListener("test",Pf,Pf),window.removeEventListener("test",Pf,Pf)}catch{bm=!1}var Hi=null,Sm=null,Gv=null;function G2(){if(Gv)return Gv;var f,v=Sm,g=v.length,x,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(x=1;x<=I&&v[g-x]===T[C-x];x++);return Gv=T.slice(f,1<x?1-x:void 0)}function Hv(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 Uv(){return!0}function H2(){return!1}function Xr(f){function v(g,x,T,C,I){this._reactName=g,this._targetInst=T,this.type=x,this.nativeEvent=C,this.target=I,this.currentTarget=null;for(var V in f)f.hasOwnProperty(V)&&(g=f[V],this[V]=g?g(C):C[V]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Uv:H2,this.isPropagationStopped=H2,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=Uv)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=Uv)},persist:function(){},isPersistent:Uv}),v}var $o={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fv=Xr($o),zf=h({},$o,{view:0,detail:0}),eG=Xr(zf),wm,Tm,kf,jv=h({},zf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cm,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!==kf&&(kf&&f.type==="mousemove"?(wm=f.screenX-kf.screenX,Tm=f.screenY-kf.screenY):Tm=wm=0,kf=f),wm)},movementY:function(f){return"movementY"in f?f.movementY:Tm}}),U2=Xr(jv),rG=h({},jv,{dataTransfer:0}),aG=Xr(rG),nG=h({},zf,{relatedTarget:0}),Am=Xr(nG),iG=h({},$o,{animationName:0,elapsedTime:0,pseudoElement:0}),oG=Xr(iG),lG=h({},$o,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),sG=Xr(lG),uG=h({},$o,{data:0}),F2=Xr(uG),fG={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cG={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"},hG={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vG(f){var v=this.nativeEvent;return v.getModifierState?v.getModifierState(f):(f=hG[f])?!!v[f]:!1}function Cm(){return vG}var dG=h({},zf,{key:function(f){if(f.key){var v=fG[f.key]||f.key;if(v!=="Unidentified")return v}return f.type==="keypress"?(f=Hv(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?cG[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cm,charCode:function(f){return f.type==="keypress"?Hv(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?Hv(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),pG=Xr(dG),gG=h({},jv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j2=Xr(gG),yG=h({},zf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cm}),mG=Xr(yG),_G=h({},$o,{propertyName:0,elapsedTime:0,pseudoElement:0}),xG=Xr(_G),bG=h({},jv,{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}),SG=Xr(bG),wG=h({},$o,{newState:0,oldState:0}),TG=Xr(wG),AG=[9,13,27,32],Dm=Qn&&"CompositionEvent"in window,Bf=null;Qn&&"documentMode"in document&&(Bf=document.documentMode);var CG=Qn&&"TextEvent"in window&&!Bf,Y2=Qn&&(!Dm||Bf&&8<Bf&&11>=Bf),X2=" ",W2=!1;function Z2(f,v){switch(f){case"keyup":return AG.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 Ns=!1;function DG(f,v){switch(f){case"compositionend":return q2(v);case"keypress":return v.which!==32?null:(W2=!0,X2);case"textInput":return f=v.data,f===X2&&W2?null:f;default:return null}}function MG(f,v){if(Ns)return f==="compositionend"||!Dm&&Z2(f,v)?(f=G2(),Gv=Sm=Hi=null,Ns=!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 Y2&&v.locale!=="ko"?null:v.data;default:return null}}var LG={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 $2(f){var v=f&&f.nodeName&&f.nodeName.toLowerCase();return v==="input"?!!LG[f.type]:v==="textarea"}function K2(f,v,g,x){Is?Os?Os.push(x):Os=[x]:Is=x,v=Od(v,"onChange"),0<v.length&&(g=new Fv("onChange","change",null,g,x),f.push({event:g,listeners:v}))}var Vf=null,Gf=null;function EG(f){OD(f,0)}function Yv(f){var v=Of(f);if(I2(v))return f}function Q2(f,v){if(f==="change")return v}var J2=!1;if(Qn){var Mm;if(Qn){var Lm="oninput"in document;if(!Lm){var tA=document.createElement("div");tA.setAttribute("oninput","return;"),Lm=typeof tA.oninput=="function"}Mm=Lm}else Mm=!1;J2=Mm&&(!document.documentMode||9<document.documentMode)}function eA(){Vf&&(Vf.detachEvent("onpropertychange",rA),Gf=Vf=null)}function rA(f){if(f.propertyName==="value"&&Yv(Gf)){var v=[];K2(v,Gf,f,_m(f)),V2(EG,v)}}function RG(f,v,g){f==="focusin"?(eA(),Vf=v,Gf=g,Vf.attachEvent("onpropertychange",rA)):f==="focusout"&&eA()}function IG(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return Yv(Gf)}function OG(f,v){if(f==="click")return Yv(v)}function NG(f,v){if(f==="input"||f==="change")return Yv(v)}function PG(f,v){return f===v&&(f!==0||1/f===1/v)||f!==f&&v!==v}var la=typeof Object.is=="function"?Object.is:PG;function Hf(f,v){if(la(f,v))return!0;if(typeof f!="object"||f===null||typeof v!="object"||v===null)return!1;var g=Object.keys(f),x=Object.keys(v);if(g.length!==x.length)return!1;for(x=0;x<g.length;x++){var T=g[x];if(!sr.call(v,T)||!la(f[T],v[T]))return!1}return!0}function aA(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function nA(f,v){var g=aA(f);f=0;for(var x;g;){if(g.nodeType===3){if(x=f+g.textContent.length,f<=v&&x>=v)return{node:g,offset:v-f};f=x}t:{for(;g;){if(g.nextSibling){g=g.nextSibling;break t}g=g.parentNode}g=void 0}g=aA(g)}}function iA(f,v){return f&&v?f===v?!0:f&&f.nodeType===3?!1:v&&v.nodeType===3?iA(f,v.parentNode):"contains"in f?f.contains(v):f.compareDocumentPosition?!!(f.compareDocumentPosition(v)&16):!1:!1}function oA(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var v=Bv(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=Bv(f.document)}return v}function Em(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 zG=Qn&&"documentMode"in document&&11>=document.documentMode,Ps=null,Rm=null,Uf=null,Im=!1;function lA(f,v,g){var x=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;Im||Ps==null||Ps!==Bv(x)||(x=Ps,"selectionStart"in x&&Em(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),Uf&&Hf(Uf,x)||(Uf=x,x=Od(Rm,"onSelect"),0<x.length&&(v=new Fv("onSelect","select",null,v,g),f.push({event:v,listeners:x}),v.target=Ps)))}function Ko(f,v){var g={};return g[f.toLowerCase()]=v.toLowerCase(),g["Webkit"+f]="webkit"+v,g["Moz"+f]="moz"+v,g}var zs={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")},Om={},sA={};Qn&&(sA=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function Qo(f){if(Om[f])return Om[f];if(!zs[f])return f;var v=zs[f],g;for(g in v)if(v.hasOwnProperty(g)&&g in sA)return Om[f]=v[g];return f}var uA=Qo("animationend"),fA=Qo("animationiteration"),cA=Qo("animationstart"),kG=Qo("transitionrun"),BG=Qo("transitionstart"),VG=Qo("transitioncancel"),hA=Qo("transitionend"),vA=new Map,Nm="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(" ");Nm.push("scrollEnd");function rn(f,v){vA.set(f,v),qo(v,[f])}var Xv=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)},Ca=[],ks=0,Pm=0;function Wv(){for(var f=ks,v=Pm=ks=0;v<f;){var g=Ca[v];Ca[v++]=null;var x=Ca[v];Ca[v++]=null;var T=Ca[v];Ca[v++]=null;var C=Ca[v];if(Ca[v++]=null,x!==null&&T!==null){var I=x.pending;I===null?T.next=T:(T.next=I.next,I.next=T),x.pending=T}C!==0&&dA(g,T,C)}}function Zv(f,v,g,x){Ca[ks++]=f,Ca[ks++]=v,Ca[ks++]=g,Ca[ks++]=x,Pm|=x,f.lanes|=x,f=f.alternate,f!==null&&(f.lanes|=x)}function zm(f,v,g,x){return Zv(f,v,g,x),qv(f)}function Jo(f,v){return Zv(f,null,null,v),qv(f)}function dA(f,v,g){f.lanes|=g;var x=f.alternate;x!==null&&(x.lanes|=g);for(var T=!1,C=f.return;C!==null;)C.childLanes|=g,x=C.alternate,x!==null&&(x.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-oa(g),f=C.hiddenUpdates,x=f[T],x===null?f[T]=[v]:x.push(v),v.lane=g|536870912),C):null}function qv(f){if(50<fc)throw fc=0,Y0=null,Error(a(185));for(var v=f.return;v!==null;)f=v,v=f.return;return f.tag===3?f.stateNode:null}var Bs={};function GG(f,v,g,x){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=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sa(f,v,g,x){return new GG(f,v,g,x)}function km(f){return f=f.prototype,!(!f||!f.isReactComponent)}function Jn(f,v){var g=f.alternate;return g===null?(g=sa(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 pA(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 $v(f,v,g,x,T,C){var I=0;if(x=f,typeof f=="function")km(f)&&(I=1);else if(typeof f=="string")I=Y6(f,g,lt.current)?26:f==="html"||f==="head"||f==="body"?27:5;else t:switch(f){case R:return f=sa(31,g,v,T),f.elementType=R,f.lanes=C,f;case m:return tl(g.children,T,C,v);case _:I=8,T|=24;break;case b:return f=sa(12,g,v,T|2),f.elementType=b,f.lanes=C,f;case M:return f=sa(13,g,v,T),f.elementType=M,f.lanes=C,f;case D:return f=sa(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 S:I=9;break t;case A:I=11;break t;case L:I=14;break t;case E:I=16,x=null;break t}I=29,g=Error(a(130,f===null?"null":typeof f,"")),x=null}return v=sa(I,g,v,T),v.elementType=f,v.type=x,v.lanes=C,v}function tl(f,v,g,x){return f=sa(7,f,x,v),f.lanes=g,f}function Bm(f,v,g){return f=sa(6,f,null,v),f.lanes=g,f}function gA(f){var v=sa(18,null,null,0);return v.stateNode=f,v}function Vm(f,v,g){return v=sa(4,f.children!==null?f.children:[],f.key,v),v.lanes=g,v.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},v}var yA=new WeakMap;function Da(f,v){if(typeof f=="object"&&f!==null){var g=yA.get(f);return g!==void 0?g:(v={value:f,source:v,stack:Sr(v)},yA.set(f,v),v)}return{value:f,source:v,stack:Sr(v)}}var Vs=[],Gs=0,Kv=null,Ff=0,Ma=[],La=0,Ui=null,wn=1,Tn="";function ti(f,v){Vs[Gs++]=Ff,Vs[Gs++]=Kv,Kv=f,Ff=v}function mA(f,v,g){Ma[La++]=wn,Ma[La++]=Tn,Ma[La++]=Ui,Ui=f;var x=wn;f=Tn;var T=32-oa(x)-1;x&=~(1<<T),g+=1;var C=32-oa(v)+T;if(30<C){var I=T-T%5;C=(x&(1<<I)-1).toString(32),x>>=I,T-=I,wn=1<<32-oa(v)+T|g<<T|x,Tn=C+f}else wn=1<<C|g<<T|x,Tn=f}function Gm(f){f.return!==null&&(ti(f,1),mA(f,1,0))}function Hm(f){for(;f===Kv;)Kv=Vs[--Gs],Vs[Gs]=null,Ff=Vs[--Gs],Vs[Gs]=null;for(;f===Ui;)Ui=Ma[--La],Ma[La]=null,Tn=Ma[--La],Ma[La]=null,wn=Ma[--La],Ma[La]=null}function _A(f,v){Ma[La++]=wn,Ma[La++]=Tn,Ma[La++]=Ui,wn=v.id,Tn=v.overflow,Ui=f}var dr=null,Le=null,se=!1,Fi=null,Ea=!1,Um=Error(a(519));function ji(f){var v=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw jf(Da(v,f)),Um}function xA(f){var v=f.stateNode,g=f.type,x=f.memoizedProps;switch(v[vr]=f,v[Yr]=x,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<hc.length;g++)ae(hc[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),O2(v,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0);break;case"select":ae("invalid",v);break;case"textarea":ae("invalid",v),P2(v,x.value,x.defaultValue,x.children)}g=x.children,typeof g!="string"&&typeof g!="number"&&typeof g!="bigint"||v.textContent===""+g||x.suppressHydrationWarning===!0||kD(v.textContent,g)?(x.popover!=null&&(ae("beforetoggle",v),ae("toggle",v)),x.onScroll!=null&&ae("scroll",v),x.onScrollEnd!=null&&ae("scrollend",v),x.onClick!=null&&(v.onclick=Kn),v=!0):v=!1,v||ji(f,!0)}function bA(f){for(dr=f.return;dr;)switch(dr.tag){case 5:case 31:case 13:Ea=!1;return;case 27:case 3:Ea=!0;return;default:dr=dr.return}}function Hs(f){if(f!==dr)return!1;if(!se)return bA(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")||o1(f.type,f.memoizedProps)),g=!g),g&&Le&&ji(f),bA(f),v===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));Le=XD(f)}else if(v===31){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));Le=XD(f)}else v===27?(v=Le,no(f.type)?(f=c1,c1=null,Le=f):Le=v):Le=dr?Ia(f.stateNode.nextSibling):null;return!0}function el(){Le=dr=null,se=!1}function Fm(){var f=Fi;return f!==null&&($r===null?$r=f:$r.push.apply($r,f),Fi=null),f}function jf(f){Fi===null?Fi=[f]:Fi.push(f)}var jm=U(null),rl=null,ei=null;function Yi(f,v,g){at(jm,v._currentValue),v._currentValue=g}function ri(f){f._currentValue=jm.current,W(jm)}function Ym(f,v,g){for(;f!==null;){var x=f.alternate;if((f.childLanes&v)!==v?(f.childLanes|=v,x!==null&&(x.childLanes|=v)):x!==null&&(x.childLanes&v)!==v&&(x.childLanes|=v),f===g)break;f=f.return}}function Xm(f,v,g,x){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 V=C;C=T;for(var X=0;X<v.length;X++)if(V.context===v[X]){C.lanes|=g,V=C.alternate,V!==null&&(V.lanes|=g),Ym(C.return,g,f),x||(I=null);break t}C=V.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),Ym(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,x){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 V=T.type;la(T.pendingProps.value,I.value)||(f!==null?f.push(V):f=[V])}}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(yc):f=[yc])}T=T.return}f!==null&&Xm(v,f,g,x),v.flags|=262144}function Qv(f){for(f=f.firstContext;f!==null;){if(!la(f.context._currentValue,f.memoizedValue))return!0;f=f.next}return!1}function al(f){rl=f,ei=null,f=f.dependencies,f!==null&&(f.firstContext=null)}function pr(f){return SA(rl,f)}function Jv(f,v){return rl===null&&al(f),SA(f,v)}function SA(f,v){var g=v._currentValue;if(v={context:v,memoizedValue:g,next:null},ei===null){if(f===null)throw Error(a(308));ei=v,f.dependencies={lanes:0,firstContext:v},f.flags|=524288}else ei=ei.next=v;return g}var HG=typeof AbortController<"u"?AbortController:function(){var f=[],v=this.signal={aborted:!1,addEventListener:function(g,x){f.push(x)}};this.abort=function(){v.aborted=!0,f.forEach(function(g){return g()})}},UG=r.unstable_scheduleCallback,FG=r.unstable_NormalPriority,We={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wm(){return{controller:new HG,data:new Map,refCount:0}}function Yf(f){f.refCount--,f.refCount===0&&UG(FG,function(){f.controller.abort()})}var Xf=null,Zm=0,Fs=0,js=null;function jG(f,v){if(Xf===null){var g=Xf=[];Zm=0,Fs=K0(),js={status:"pending",value:void 0,then:function(x){g.push(x)}}}return Zm++,v.then(wA,wA),v}function wA(){if(--Zm===0&&Xf!==null){js!==null&&(js.status="fulfilled");var f=Xf;Xf=null,Fs=0,js=null;for(var v=0;v<f.length;v++)(0,f[v])()}}function YG(f,v){var g=[],x={status:"pending",value:null,reason:null,then:function(T){g.push(T)}};return f.then(function(){x.status="fulfilled",x.value=v;for(var T=0;T<g.length;T++)(0,g[T])(v)},function(T){for(x.status="rejected",x.reason=T,T=0;T<g.length;T++)(0,g[T])(void 0)}),x}var TA=k.S;k.S=function(f,v){lD=na(),typeof v=="object"&&v!==null&&typeof v.then=="function"&&jG(f,v),TA!==null&&TA(f,v)};var nl=U(null);function qm(){var f=nl.current;return f!==null?f:Me.pooledCache}function td(f,v){v===null?at(nl,nl.current):at(nl,v.pool)}function AA(){var f=qm();return f===null?null:{parent:We._currentValue,pool:f}}var Ys=Error(a(460)),$m=Error(a(474)),ed=Error(a(542)),rd={then:function(){}};function CA(f){return f=f.status,f==="fulfilled"||f==="rejected"}function DA(f,v,g){switch(g=f[g],g===void 0?f.push(v):g!==v&&(v.then(Kn,Kn),v=g),v.status){case"fulfilled":return v.value;case"rejected":throw f=v.reason,LA(f),f;default:if(typeof v.status=="string")v.then(Kn,Kn);else{if(f=Me,f!==null&&100<f.shellSuspendCounter)throw Error(a(482));f=v,f.status="pending",f.then(function(x){if(v.status==="pending"){var T=v;T.status="fulfilled",T.value=x}},function(x){if(v.status==="pending"){var T=v;T.status="rejected",T.reason=x}})}switch(v.status){case"fulfilled":return v.value;case"rejected":throw f=v.reason,LA(f),f}throw ol=v,Ys}}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,Ys):g}}var ol=null;function MA(){if(ol===null)throw Error(a(459));var f=ol;return ol=null,f}function LA(f){if(f===Ys||f===ed)throw Error(a(483))}var Xs=null,Wf=0;function ad(f){var v=Wf;return Wf+=1,Xs===null&&(Xs=[]),DA(Xs,f,v)}function Zf(f,v){v=v.props.ref,f.ref=v!==void 0?v:null}function nd(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 EA(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 x(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=Jn(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 V(K,q,Q,ut){return q===null||q.tag!==6?(q=Bm(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===E&&il(Nt)===q.type)?(q=T(q,Q.props),Zf(q,Q),q.return=K,q):(q=$v(Q.type,Q.key,Q.props,null,K.mode,ut),Zf(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=Vm(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=Bm(""+q,K.mode,Q),q.return=K,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case p:return Q=$v(q.type,q.key,q.props,null,K.mode,Q),Zf(Q,q),Q.return=K,Q;case y:return q=Vm(q,K.mode,Q),q.return=K,q;case E:return q=il(q),ft(K,q,Q)}if(F(q)||B(q))return q=tl(q,K.mode,Q,null),q.return=K,q;if(typeof q.then=="function")return ft(K,ad(q),Q);if(q.$$typeof===w)return ft(K,Jv(K,q),Q);nd(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:V(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 E:return Q=il(Q),et(K,q,Q,ut)}if(F(Q)||B(Q))return Nt!==null?null:st(K,q,Q,ut,null);if(typeof Q.then=="function")return et(K,q,ad(Q),ut);if(Q.$$typeof===w)return et(K,q,Jv(K,Q),ut);nd(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,V(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 E:return ut=il(ut),nt(K,q,Q,ut,Nt)}if(F(ut)||B(ut))return K=K.get(Q)||null,st(q,K,ut,Nt,null);if(typeof ut.then=="function")return nt(K,q,Q,ad(ut),Nt);if(ut.$$typeof===w)return nt(K,q,Q,Jv(q,ut),Nt);nd(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&&ti(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&&ti(K,Kt),Nt}for(Lt=x(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&&ti(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&&ti(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&&ti(K,Kt),Nt}for(Lt=x(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(r8){return v(K,r8)}),se&&ti(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===E&&il(Nt)===q.type){g(K,q.sibling),ut=T(q,Q.props),Zf(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=$v(Q.type,Q.key,Q.props,null,K.mode,ut),Zf(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=Vm(Q,K.mode,ut),ut.return=K,K=ut}return I(K);case E:return Q=il(Q),Ce(K,q,Q,ut)}if(F(Q))return At(K,q,Q,ut);if(B(Q)){if(Nt=B(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,ad(Q),ut);if(Q.$$typeof===w)return Ce(K,q,Jv(K,Q),ut);nd(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=Bm(Q,K.mode,ut),ut.return=K,K=ut),I(K)):g(K,q)}return function(K,q,Q,ut){try{Wf=0;var Nt=Ce(K,q,Q,ut);return Xs=null,Nt}catch(Lt){if(Lt===Ys||Lt===ed)throw Lt;var he=sa(29,Lt,null,K.mode);return he.lanes=ut,he.return=K,he}finally{}}}var ll=EA(!0),RA=EA(!1),Xi=!1;function Km(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qm(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 x=f.updateQueue;if(x===null)return null;if(x=x.shared,(ge&2)!==0){var T=x.pending;return T===null?v.next=v:(v.next=T.next,T.next=v),x.pending=v,v=qv(f),dA(f,null,g),v}return Zv(f,x,v,g),qv(f)}function qf(f,v,g){if(v=v.updateQueue,v!==null&&(v=v.shared,(g&4194048)!==0)){var x=v.lanes;x&=f.pendingLanes,g|=x,v.lanes=g,S2(f,g)}}function Jm(f,v){var g=f.updateQueue,x=f.alternate;if(x!==null&&(x=x.updateQueue,g===x)){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:x.baseState,firstBaseUpdate:T,lastBaseUpdate:C,shared:x.shared,callbacks:x.callbacks},f.updateQueue=g;return}f=g.lastBaseUpdate,f===null?g.firstBaseUpdate=v:f.next=v,g.lastBaseUpdate=v}var t0=!1;function $f(){if(t0){var f=js;if(f!==null)throw f}}function Kf(f,v,g,x){t0=!1;var T=f.updateQueue;Xi=!1;var C=T.firstBaseUpdate,I=T.lastBaseUpdate,V=T.shared.pending;if(V!==null){T.shared.pending=null;var X=V,J=X.next;X.next=null,I===null?C=J:I.next=J,I=X;var st=f.alternate;st!==null&&(st=st.updateQueue,V=st.lastBaseUpdate,V!==I&&(V===null?st.firstBaseUpdate=J:V.next=J,st.lastBaseUpdate=X))}if(C!==null){var ft=T.baseState;I=0,st=J=X=null,V=C;do{var et=V.lane&-536870913,nt=et!==V.lane;if(nt?(ne&et)===et:(x&et)===et){et!==0&&et===Fs&&(t0=!0),st!==null&&(st=st.next={lane:0,tag:V.tag,payload:V.payload,callback:null,next:null});t:{var At=f,Vt=V;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=V.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:V.tag,payload:V.payload,callback:V.callback,next:null},st===null?(J=st=nt,X=ft):st=st.next=nt,I|=et;if(V=V.next,V===null){if(V=T.shared.pending,V===null)break;nt=V,V=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 IA(f,v){if(typeof f!="function")throw Error(a(191,f));f.call(v)}function OA(f,v){var g=f.callbacks;if(g!==null)for(f.callbacks=null,f=0;f<g.length;f++)IA(g[f],v)}var Ws=U(null),id=U(0);function NA(f,v){f=ci,at(id,f),at(Ws,v),ci=f|v.baseLanes}function e0(){at(id,ci),at(Ws,Ws.current)}function r0(){ci=id.current,W(Ws),W(id)}var ua=U(null),Ra=null;function qi(f){var v=f.alternate;at(He,He.current&1),at(ua,f),Ra===null&&(v===null||Ws.current!==null||v.memoizedState!==null)&&(Ra=f)}function a0(f){at(He,He.current),at(ua,f),Ra===null&&(Ra=f)}function PA(f){f.tag===22?(at(He,He.current),at(ua,f),Ra===null&&(Ra=f)):$i()}function $i(){at(He,He.current),at(ua,ua.current)}function fa(f){W(ua),Ra===f&&(Ra=null),W(He)}var He=U(0);function od(f){for(var v=f;v!==null;){if(v.tag===13){var g=v.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||u1(g)||f1(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 ai=0,qt=null,Te=null,Ze=null,ld=!1,Zs=!1,sl=!1,sd=0,Qf=0,qs=null,XG=0;function ze(){throw Error(a(321))}function n0(f,v){if(v===null)return!1;for(var g=0;g<v.length&&g<f.length;g++)if(!la(f[g],v[g]))return!1;return!0}function i0(f,v,g,x,T,C){return ai=C,qt=v,v.memoizedState=null,v.updateQueue=null,v.lanes=0,k.H=f===null||f.memoizedState===null?mC:x0,sl=!1,C=g(x,T),sl=!1,Zs&&(C=kA(v,g,x,T)),zA(f),C}function zA(f){k.H=ec;var v=Te!==null&&Te.next!==null;if(ai=0,Ze=Te=qt=null,ld=!1,Qf=0,qs=null,v)throw Error(a(300));f===null||qe||(f=f.dependencies,f!==null&&Qv(f)&&(qe=!0))}function kA(f,v,g,x){qt=f;var T=0;do{if(Zs&&(qs=null),Qf=0,Zs=!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)}k.H=_C,C=v(g,x)}while(Zs);return C}function WG(){var f=k.H,v=f.useState()[0];return v=typeof v.then=="function"?Jf(v):v,f=f.useState()[0],(Te!==null?Te.memoizedState:null)!==f&&(qt.flags|=1024),v}function o0(){var f=sd!==0;return sd=0,f}function l0(f,v,g){v.updateQueue=f.updateQueue,v.flags&=-2053,f.lanes&=~g}function s0(f){if(ld){for(f=f.memoizedState;f!==null;){var v=f.queue;v!==null&&(v.pending=null),f=f.next}ld=!1}ai=0,Ze=Te=qt=null,Zs=!1,Qf=sd=0,qs=null}function zr(){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 ud(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jf(f){var v=Qf;return Qf+=1,qs===null&&(qs=[]),f=DA(qs,f,v),v=qt,(Ze===null?v.memoizedState:Ze.next)===null&&(v=v.alternate,k.H=v===null||v.memoizedState===null?mC:x0),f}function fd(f){if(f!==null&&typeof f=="object"){if(typeof f.then=="function")return Jf(f);if(f.$$typeof===w)return pr(f)}throw Error(a(438,String(f)))}function u0(f){var v=null,g=qt.updateQueue;if(g!==null&&(v=g.memoCache),v==null){var x=qt.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(v={data:x.data.map(function(T){return T.slice()}),index:0})))}if(v==null&&(v={data:[],index:0}),g===null&&(g=ud(),qt.updateQueue=g),g.memoCache=v,g=v.data[v.index],g===void 0)for(g=v.data[v.index]=Array(f),x=0;x<f;x++)g[x]=O;return v.index++,g}function ni(f,v){return typeof v=="function"?v(f):v}function cd(f){var v=Ue();return f0(v,Te,f)}function f0(f,v,g){var x=f.queue;if(x===null)throw Error(a(311));x.lastRenderedReducer=g;var T=f.baseQueue,C=x.pending;if(C!==null){if(T!==null){var I=T.next;T.next=C.next,C.next=I}v.baseQueue=T=C,x.pending=null}if(C=f.baseState,T===null)f.memoizedState=C;else{v=T.next;var V=I=null,X=null,J=v,st=!1;do{var ft=J.lane&-536870913;if(ft!==J.lane?(ne&ft)===ft:(ai&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===Fs&&(st=!0);else if((ai&et)===et){J=J.next,et===Fs&&(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?(V=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?(V=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=V,!la(C,f.memoizedState)&&(qe=!0,st&&(g=js,g!==null)))throw g;f.memoizedState=C,f.baseState=I,f.baseQueue=X,x.lastRenderedState=C}return T===null&&(x.lanes=0),[f.memoizedState,x.dispatch]}function c0(f){var v=Ue(),g=v.queue;if(g===null)throw Error(a(311));g.lastRenderedReducer=f;var x=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);la(C,v.memoizedState)||(qe=!0),v.memoizedState=C,v.baseQueue===null&&(v.baseState=C),g.lastRenderedState=C}return[C,x]}function BA(f,v,g){var x=qt,T=Ue(),C=se;if(C){if(g===void 0)throw Error(a(407));g=g()}else g=v();var I=!la((Te||T).memoizedState,g);if(I&&(T.memoizedState=g,qe=!0),T=T.queue,d0(HA.bind(null,x,T,f),[f]),T.getSnapshot!==v||I||Ze!==null&&Ze.memoizedState.tag&1){if(x.flags|=2048,$s(9,{destroy:void 0},GA.bind(null,x,T,g,v),null),Me===null)throw Error(a(349));C||(ai&127)!==0||VA(x,v,g)}return g}function VA(f,v,g){f.flags|=16384,f={getSnapshot:v,value:g},v=qt.updateQueue,v===null?(v=ud(),qt.updateQueue=v,v.stores=[f]):(g=v.stores,g===null?v.stores=[f]:g.push(f))}function GA(f,v,g,x){v.value=g,v.getSnapshot=x,UA(v)&&FA(f)}function HA(f,v,g){return g(function(){UA(v)&&FA(f)})}function UA(f){var v=f.getSnapshot;f=f.value;try{var g=v();return!la(f,g)}catch{return!0}}function FA(f){var v=Jo(f,2);v!==null&&Kr(v,f,2)}function h0(f){var v=zr();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:ni,lastRenderedState:f},v}function jA(f,v,g,x){return f.baseState=g,f0(f,Te,typeof x=="function"?x:ni)}function ZG(f,v,g,x,T){if(dd(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)}};k.T!==null?g(!0):C.isTransition=!1,x(C),g=v.pending,g===null?(C.next=v.pending=C,YA(v,C)):(C.next=g.next,v.pending=g.next=C)}}function YA(f,v){var g=v.action,x=v.payload,T=f.state;if(v.isTransition){var C=k.T,I={};k.T=I;try{var V=g(T,x),X=k.S;X!==null&&X(I,V),XA(f,v,V)}catch(J){v0(f,v,J)}finally{C!==null&&I.types!==null&&(C.types=I.types),k.T=C}}else try{C=g(T,x),XA(f,v,C)}catch(J){v0(f,v,J)}}function XA(f,v,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?g.then(function(x){WA(f,v,x)},function(x){return v0(f,v,x)}):WA(f,v,g)}function WA(f,v,g){v.status="fulfilled",v.value=g,ZA(v),f.state=g,v=f.pending,v!==null&&(g=v.next,g===v?f.pending=null:(g=g.next,v.next=g,YA(f,g)))}function v0(f,v,g){var x=f.pending;if(f.pending=null,x!==null){x=x.next;do v.status="rejected",v.reason=g,ZA(v),v=v.next;while(v!==x)}f.action=null}function ZA(f){f=f.listeners;for(var v=0;v<f.length;v++)(0,f[v])()}function qA(f,v){return v}function $A(f,v){if(se){var g=Me.formState;if(g!==null){t:{var x=qt;if(se){if(Le){e:{for(var T=Le,C=Ea;T.nodeType!==8;){if(!C){T=null;break e}if(T=Ia(T.nextSibling),T===null){T=null;break e}}C=T.data,T=C==="F!"||C==="F"?T:null}if(T){Le=Ia(T.nextSibling),x=T.data==="F!";break t}}ji(x)}x=!1}x&&(v=g[0])}}return g=zr(),g.memoizedState=g.baseState=v,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qA,lastRenderedState:v},g.queue=x,g=pC.bind(null,qt,x),x.dispatch=g,x=h0(!1),C=_0.bind(null,qt,!1,x.queue),x=zr(),T={state:v,dispatch:null,action:f,pending:null},x.queue=T,g=ZG.bind(null,qt,T,C,g),T.dispatch=g,x.memoizedState=f,[v,g,!1]}function KA(f){var v=Ue();return QA(v,Te,f)}function QA(f,v,g){if(v=f0(f,v,qA)[0],f=cd(ni)[0],typeof v=="object"&&v!==null&&typeof v.then=="function")try{var x=Jf(v)}catch(I){throw I===Ys?ed:I}else x=v;v=Ue();var T=v.queue,C=T.dispatch;return g!==v.memoizedState&&(qt.flags|=2048,$s(9,{destroy:void 0},qG.bind(null,T,g),null)),[x,C,f]}function qG(f,v){f.action=v}function JA(f){var v=Ue(),g=Te;if(g!==null)return QA(v,g,f);Ue(),v=v.memoizedState,g=Ue();var x=g.queue.dispatch;return g.memoizedState=f,[v,x,!1]}function $s(f,v,g,x){return f={tag:f,create:g,deps:x,inst:v,next:null},v=qt.updateQueue,v===null&&(v=ud(),qt.updateQueue=v),g=v.lastEffect,g===null?v.lastEffect=f.next=f:(x=g.next,g.next=f,f.next=x,v.lastEffect=f),f}function tC(){return Ue().memoizedState}function hd(f,v,g,x){var T=zr();qt.flags|=f,T.memoizedState=$s(1|v,{destroy:void 0},g,x===void 0?null:x)}function vd(f,v,g,x){var T=Ue();x=x===void 0?null:x;var C=T.memoizedState.inst;Te!==null&&x!==null&&n0(x,Te.memoizedState.deps)?T.memoizedState=$s(v,C,g,x):(qt.flags|=f,T.memoizedState=$s(1|v,C,g,x))}function eC(f,v){hd(8390656,8,f,v)}function d0(f,v){vd(2048,8,f,v)}function $G(f){qt.flags|=4;var v=qt.updateQueue;if(v===null)v=ud(),qt.updateQueue=v,v.events=[f];else{var g=v.events;g===null?v.events=[f]:g.push(f)}}function rC(f){var v=Ue().memoizedState;return $G({ref:v,nextImpl:f}),function(){if((ge&2)!==0)throw Error(a(440));return v.impl.apply(void 0,arguments)}}function aC(f,v){return vd(4,2,f,v)}function nC(f,v){return vd(4,4,f,v)}function iC(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 oC(f,v,g){g=g!=null?g.concat([f]):null,vd(4,4,iC.bind(null,v,f),g)}function p0(){}function lC(f,v){var g=Ue();v=v===void 0?null:v;var x=g.memoizedState;return v!==null&&n0(v,x[1])?x[0]:(g.memoizedState=[f,v],f)}function sC(f,v){var g=Ue();v=v===void 0?null:v;var x=g.memoizedState;if(v!==null&&n0(v,x[1]))return x[0];if(x=f(),sl){Vi(!0);try{f()}finally{Vi(!1)}}return g.memoizedState=[x,v],x}function g0(f,v,g){return g===void 0||(ai&1073741824)!==0&&(ne&261930)===0?f.memoizedState=v:(f.memoizedState=g,f=uD(),qt.lanes|=f,Ji|=f,g)}function uC(f,v,g,x){return la(g,v)?g:Ws.current!==null?(f=g0(f,g,x),la(f,v)||(qe=!0),f):(ai&42)===0||(ai&1073741824)!==0&&(ne&261930)===0?(qe=!0,f.memoizedState=g):(f=uD(),qt.lanes|=f,Ji|=f,v)}function fC(f,v,g,x,T){var C=j.p;j.p=C!==0&&8>C?C:8;var I=k.T,V={};k.T=V,_0(f,!1,v,g);try{var X=T(),J=k.S;if(J!==null&&J(V,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var st=YG(X,x);tc(f,v,st,va(f))}else tc(f,v,x,va(f))}catch(ft){tc(f,v,{then:function(){},status:"rejected",reason:ft},va())}finally{j.p=C,I!==null&&V.types!==null&&(I.types=V.types),k.T=I}}function KG(){}function y0(f,v,g,x){if(f.tag!==5)throw Error(a(476));var T=cC(f).queue;fC(f,T,v,Y,g===null?KG:function(){return hC(f),g(x)})}function cC(f){var v=f.memoizedState;if(v!==null)return v;v={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:Y},next:null};var g={};return v.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ni,lastRenderedState:g},next:null},f.memoizedState=v,f=f.alternate,f!==null&&(f.memoizedState=v),v}function hC(f){var v=cC(f);v.next===null&&(v=f.alternate.memoizedState),tc(f,v.next.queue,{},va())}function m0(){return pr(yc)}function vC(){return Ue().memoizedState}function dC(){return Ue().memoizedState}function QG(f){for(var v=f.return;v!==null;){switch(v.tag){case 24:case 3:var g=va();f=Wi(g);var x=Zi(v,f,g);x!==null&&(Kr(x,v,g),qf(x,v,g)),v={cache:Wm()},f.payload=v;return}v=v.return}}function JG(f,v,g){var x=va();g={lane:x,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},dd(f)?gC(v,g):(g=zm(f,v,g,x),g!==null&&(Kr(g,f,x),yC(g,v,x)))}function pC(f,v,g){var x=va();tc(f,v,g,x)}function tc(f,v,g,x){var T={lane:x,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};if(dd(f))gC(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,V=C(I,g);if(T.hasEagerState=!0,T.eagerState=V,la(V,I))return Zv(f,v,T,0),Me===null&&Wv(),!1}catch{}finally{}if(g=zm(f,v,T,x),g!==null)return Kr(g,f,x),yC(g,v,x),!0}return!1}function _0(f,v,g,x){if(x={lane:2,revertLane:K0(),gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},dd(f)){if(v)throw Error(a(479))}else v=zm(f,g,x,2),v!==null&&Kr(v,f,2)}function dd(f){var v=f.alternate;return f===qt||v!==null&&v===qt}function gC(f,v){Zs=ld=!0;var g=f.pending;g===null?v.next=v:(v.next=g.next,g.next=v),f.pending=v}function yC(f,v,g){if((g&4194048)!==0){var x=v.lanes;x&=f.pendingLanes,g|=x,v.lanes=g,S2(f,g)}}var ec={readContext:pr,use:fd,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useLayoutEffect:ze,useInsertionEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useSyncExternalStore:ze,useId:ze,useHostTransitionStatus:ze,useFormState:ze,useActionState:ze,useOptimistic:ze,useMemoCache:ze,useCacheRefresh:ze};ec.useEffectEvent=ze;var mC={readContext:pr,use:fd,useCallback:function(f,v){return zr().memoizedState=[f,v===void 0?null:v],f},useContext:pr,useEffect:eC,useImperativeHandle:function(f,v,g){g=g!=null?g.concat([f]):null,hd(4194308,4,iC.bind(null,v,f),g)},useLayoutEffect:function(f,v){return hd(4194308,4,f,v)},useInsertionEffect:function(f,v){hd(4,2,f,v)},useMemo:function(f,v){var g=zr();v=v===void 0?null:v;var x=f();if(sl){Vi(!0);try{f()}finally{Vi(!1)}}return g.memoizedState=[x,v],x},useReducer:function(f,v,g){var x=zr();if(g!==void 0){var T=g(v);if(sl){Vi(!0);try{g(v)}finally{Vi(!1)}}}else T=v;return x.memoizedState=x.baseState=T,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:T},x.queue=f,f=f.dispatch=JG.bind(null,qt,f),[x.memoizedState,f]},useRef:function(f){var v=zr();return f={current:f},v.memoizedState=f},useState:function(f){f=h0(f);var v=f.queue,g=pC.bind(null,qt,v);return v.dispatch=g,[f.memoizedState,g]},useDebugValue:p0,useDeferredValue:function(f,v){var g=zr();return g0(g,f,v)},useTransition:function(){var f=h0(!1);return f=fC.bind(null,qt,f.queue,!0,!1),zr().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,v,g){var x=qt,T=zr();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||VA(x,v,g)}T.memoizedState=g;var C={value:g,getSnapshot:v};return T.queue=C,eC(HA.bind(null,x,C,f),[f]),x.flags|=2048,$s(9,{destroy:void 0},GA.bind(null,x,C,g,v),null),g},useId:function(){var f=zr(),v=Me.identifierPrefix;if(se){var g=Tn,x=wn;g=(x&~(1<<32-oa(x)-1)).toString(32)+g,v="_"+v+"R_"+g,g=sd++,0<g&&(v+="H"+g.toString(32)),v+="_"}else g=XG++,v="_"+v+"r_"+g.toString(32)+"_";return f.memoizedState=v},useHostTransitionStatus:m0,useFormState:$A,useActionState:$A,useOptimistic:function(f){var v=zr();v.memoizedState=v.baseState=f;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return v.queue=g,v=_0.bind(null,qt,!0,g),g.dispatch=v,[f,v]},useMemoCache:u0,useCacheRefresh:function(){return zr().memoizedState=QG.bind(null,qt)},useEffectEvent:function(f){var v=zr(),g={impl:f};return v.memoizedState=g,function(){if((ge&2)!==0)throw Error(a(440));return g.impl.apply(void 0,arguments)}}},x0={readContext:pr,use:fd,useCallback:lC,useContext:pr,useEffect:d0,useImperativeHandle:oC,useInsertionEffect:aC,useLayoutEffect:nC,useMemo:sC,useReducer:cd,useRef:tC,useState:function(){return cd(ni)},useDebugValue:p0,useDeferredValue:function(f,v){var g=Ue();return uC(g,Te.memoizedState,f,v)},useTransition:function(){var f=cd(ni)[0],v=Ue().memoizedState;return[typeof f=="boolean"?f:Jf(f),v]},useSyncExternalStore:BA,useId:vC,useHostTransitionStatus:m0,useFormState:KA,useActionState:KA,useOptimistic:function(f,v){var g=Ue();return jA(g,Te,f,v)},useMemoCache:u0,useCacheRefresh:dC};x0.useEffectEvent=rC;var _C={readContext:pr,use:fd,useCallback:lC,useContext:pr,useEffect:d0,useImperativeHandle:oC,useInsertionEffect:aC,useLayoutEffect:nC,useMemo:sC,useReducer:c0,useRef:tC,useState:function(){return c0(ni)},useDebugValue:p0,useDeferredValue:function(f,v){var g=Ue();return Te===null?g0(g,f,v):uC(g,Te.memoizedState,f,v)},useTransition:function(){var f=c0(ni)[0],v=Ue().memoizedState;return[typeof f=="boolean"?f:Jf(f),v]},useSyncExternalStore:BA,useId:vC,useHostTransitionStatus:m0,useFormState:JA,useActionState:JA,useOptimistic:function(f,v){var g=Ue();return Te!==null?jA(g,Te,f,v):(g.baseState=f,[f,g.queue.dispatch])},useMemoCache:u0,useCacheRefresh:dC};_C.useEffectEvent=rC;function b0(f,v,g,x){v=f.memoizedState,g=g(x,v),g=g==null?v:h({},v,g),f.memoizedState=g,f.lanes===0&&(f.updateQueue.baseState=g)}var S0={enqueueSetState:function(f,v,g){f=f._reactInternals;var x=va(),T=Wi(x);T.payload=v,g!=null&&(T.callback=g),v=Zi(f,T,x),v!==null&&(Kr(v,f,x),qf(v,f,x))},enqueueReplaceState:function(f,v,g){f=f._reactInternals;var x=va(),T=Wi(x);T.tag=1,T.payload=v,g!=null&&(T.callback=g),v=Zi(f,T,x),v!==null&&(Kr(v,f,x),qf(v,f,x))},enqueueForceUpdate:function(f,v){f=f._reactInternals;var g=va(),x=Wi(g);x.tag=2,v!=null&&(x.callback=v),v=Zi(f,x,g),v!==null&&(Kr(v,f,g),qf(v,f,g))}};function xC(f,v,g,x,T,C,I){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(x,C,I):v.prototype&&v.prototype.isPureReactComponent?!Hf(g,x)||!Hf(T,C):!0}function bC(f,v,g,x){f=v.state,typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps(g,x),typeof v.UNSAFE_componentWillReceiveProps=="function"&&v.UNSAFE_componentWillReceiveProps(g,x),v.state!==f&&S0.enqueueReplaceState(v,v.state,null)}function ul(f,v){var g=v;if("ref"in v){g={};for(var x in v)x!=="ref"&&(g[x]=v[x])}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 SC(f){Xv(f)}function wC(f){console.error(f)}function TC(f){Xv(f)}function pd(f,v){try{var g=f.onUncaughtError;g(v.value,{componentStack:v.stack})}catch(x){setTimeout(function(){throw x})}}function AC(f,v,g){try{var x=f.onCaughtError;x(g.value,{componentStack:g.stack,errorBoundary:v.tag===1?v.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function w0(f,v,g){return g=Wi(g),g.tag=3,g.payload={element:null},g.callback=function(){pd(f,v)},g}function CC(f){return f=Wi(f),f.tag=3,f}function DC(f,v,g,x){var T=g.type.getDerivedStateFromError;if(typeof T=="function"){var C=x.value;f.payload=function(){return T(C)},f.callback=function(){AC(v,g,x)}}var I=g.stateNode;I!==null&&typeof I.componentDidCatch=="function"&&(f.callback=function(){AC(v,g,x),typeof T!="function"&&(to===null?to=new Set([this]):to.add(this));var V=x.stack;this.componentDidCatch(x.value,{componentStack:V!==null?V:""})})}function t6(f,v,g,x,T){if(g.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(v=g.alternate,v!==null&&Us(v,g,T,!0),g=ua.current,g!==null){switch(g.tag){case 31:case 13:return Ra===null?Dd():g.alternate===null&&ke===0&&(ke=3),g.flags&=-257,g.flags|=65536,g.lanes=T,x===rd?g.flags|=16384:(v=g.updateQueue,v===null?g.updateQueue=new Set([x]):v.add(x),Z0(f,x,T)),!1;case 22:return g.flags|=65536,x===rd?g.flags|=16384:(v=g.updateQueue,v===null?(v={transitions:null,markerInstances:null,retryQueue:new Set([x])},g.updateQueue=v):(g=v.retryQueue,g===null?v.retryQueue=new Set([x]):g.add(x)),Z0(f,x,T)),!1}throw Error(a(435,g.tag))}return Z0(f,x,T),Dd(),!1}if(se)return v=ua.current,v!==null?((v.flags&65536)===0&&(v.flags|=256),v.flags|=65536,v.lanes=T,x!==Um&&(f=Error(a(422),{cause:x}),jf(Da(f,g)))):(x!==Um&&(v=Error(a(423),{cause:x}),jf(Da(v,g))),f=f.current.alternate,f.flags|=65536,T&=-T,f.lanes|=T,x=Da(x,g),T=w0(f.stateNode,x,T),Jm(f,T),ke!==4&&(ke=2)),!1;var C=Error(a(520),{cause:x});if(C=Da(C,g),uc===null?uc=[C]:uc.push(C),ke!==4&&(ke=2),v===null)return!0;x=Da(x,g),g=v;do{switch(g.tag){case 3:return g.flags|=65536,f=T&-T,g.lanes|=f,f=w0(g.stateNode,x,f),Jm(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=CC(T),DC(T,f,g,x),Jm(g,T),!1}g=g.return}while(g!==null);return!1}var T0=Error(a(461)),qe=!1;function gr(f,v,g,x){v.child=f===null?RA(v,null,g,x):ll(v,f.child,g,x)}function MC(f,v,g,x,T){g=g.render;var C=v.ref;if("ref"in x){var I={};for(var V in x)V!=="ref"&&(I[V]=x[V])}else I=x;return al(v),x=i0(f,v,g,I,C,T),V=o0(),f!==null&&!qe?(l0(f,v,T),ii(f,v,T)):(se&&V&&Gm(v),v.flags|=1,gr(f,v,x,T),v.child)}function LC(f,v,g,x,T){if(f===null){var C=g.type;return typeof C=="function"&&!km(C)&&C.defaultProps===void 0&&g.compare===null?(v.tag=15,v.type=C,EC(f,v,C,x,T)):(f=$v(g.type,null,x,v,v.mode,T),f.ref=v.ref,f.return=v,v.child=f)}if(C=f.child,!I0(f,T)){var I=C.memoizedProps;if(g=g.compare,g=g!==null?g:Hf,g(I,x)&&f.ref===v.ref)return ii(f,v,T)}return v.flags|=1,f=Jn(C,x),f.ref=v.ref,f.return=v,v.child=f}function EC(f,v,g,x,T){if(f!==null){var C=f.memoizedProps;if(Hf(C,x)&&f.ref===v.ref)if(qe=!1,v.pendingProps=x=C,I0(f,T))(f.flags&131072)!==0&&(qe=!0);else return v.lanes=f.lanes,ii(f,v,T)}return A0(f,v,g,x,T)}function RC(f,v,g,x){var T=x.children,C=f!==null?f.memoizedState:null;if(f===null&&v.stateNode===null&&(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.mode==="hidden"){if((v.flags&128)!==0){if(C=C!==null?C.baseLanes|g:g,f!==null){for(x=v.child=f.child,T=0;x!==null;)T=T|x.lanes|x.childLanes,x=x.sibling;x=T&~C}else x=0,v.child=null;return IC(f,v,C,g,x)}if((g&536870912)!==0)v.memoizedState={baseLanes:0,cachePool:null},f!==null&&td(v,C!==null?C.cachePool:null),C!==null?NA(v,C):e0(),PA(v);else return x=v.lanes=536870912,IC(f,v,C!==null?C.baseLanes|g:g,g,x)}else C!==null?(td(v,C.cachePool),NA(v,C),$i(),v.memoizedState=null):(f!==null&&td(v,null),e0(),$i());return gr(f,v,T,g),v.child}function rc(f,v){return f!==null&&f.tag===22||v.stateNode!==null||(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.sibling}function IC(f,v,g,x,T){var C=qm();return C=C===null?null:{parent:We._currentValue,pool:C},v.memoizedState={baseLanes:g,cachePool:C},f!==null&&td(v,null),e0(),PA(v),f!==null&&Us(f,v,x,!0),v.childLanes=T,null}function gd(f,v){return v=md({mode:v.mode,children:v.children},f.mode),v.ref=f.ref,f.child=v,v.return=f,v}function OC(f,v,g){return ll(v,f.child,null,g),f=gd(v,v.pendingProps),f.flags|=2,fa(v),v.memoizedState=null,f}function e6(f,v,g){var x=v.pendingProps,T=(v.flags&128)!==0;if(v.flags&=-129,f===null){if(se){if(x.mode==="hidden")return f=gd(v,x),v.lanes=536870912,rc(null,f);if(a0(v),(f=Le)?(f=YD(f,Ea),f=f!==null&&f.data==="&"?f:null,f!==null&&(v.memoizedState={dehydrated:f,treeContext:Ui!==null?{id:wn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},g=gA(f),g.return=v,v.child=g,dr=v,Le=null)):f=null,f===null)throw ji(v);return v.lanes=536870912,null}return gd(v,x)}var C=f.memoizedState;if(C!==null){var I=C.dehydrated;if(a0(v),T)if(v.flags&256)v.flags&=-257,v=OC(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(x=Me,x!==null&&(I=w2(x,g),I!==0&&I!==C.retryLane))throw C.retryLane=I,Jo(f,I),Kr(x,f,I),T0;Dd(),v=OC(f,v,g)}else f=C.treeContext,Le=Ia(I.nextSibling),dr=v,se=!0,Fi=null,Ea=!1,f!==null&&_A(v,f),v=gd(v,x),v.flags|=4096;return v}return f=Jn(f.child,{mode:x.mode,children:x.children}),f.ref=v.ref,v.child=f,f.return=v,f}function yd(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 A0(f,v,g,x,T){return al(v),g=i0(f,v,g,x,void 0,T),x=o0(),f!==null&&!qe?(l0(f,v,T),ii(f,v,T)):(se&&x&&Gm(v),v.flags|=1,gr(f,v,g,T),v.child)}function NC(f,v,g,x,T,C){return al(v),v.updateQueue=null,g=kA(v,x,g,T),zA(f),x=o0(),f!==null&&!qe?(l0(f,v,C),ii(f,v,C)):(se&&x&&Gm(v),v.flags|=1,gr(f,v,g,C),v.child)}function PC(f,v,g,x,T){if(al(v),v.stateNode===null){var C=Bs,I=g.contextType;typeof I=="object"&&I!==null&&(C=pr(I)),C=new g(x,C),v.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=S0,v.stateNode=C,C._reactInternals=v,C=v.stateNode,C.props=x,C.state=v.memoizedState,C.refs={},Km(v),I=g.contextType,C.context=typeof I=="object"&&I!==null?pr(I):Bs,C.state=v.memoizedState,I=g.getDerivedStateFromProps,typeof I=="function"&&(b0(v,g,I,x),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&&S0.enqueueReplaceState(C,C.state,null),Kf(v,x,C,T),$f(),C.state=v.memoizedState),typeof C.componentDidMount=="function"&&(v.flags|=4194308),x=!0}else if(f===null){C=v.stateNode;var V=v.memoizedProps,X=ul(g,V);C.props=X;var J=C.context,st=g.contextType;I=Bs,typeof st=="object"&&st!==null&&(I=pr(st));var ft=g.getDerivedStateFromProps;st=typeof ft=="function"||typeof C.getSnapshotBeforeUpdate=="function",V=v.pendingProps!==V,st||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(V||J!==I)&&bC(v,C,x,I),Xi=!1;var et=v.memoizedState;C.state=et,Kf(v,x,C,T),$f(),J=v.memoizedState,V||et!==J||Xi?(typeof ft=="function"&&(b0(v,g,ft,x),J=v.memoizedState),(X=Xi||xC(v,g,X,x,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=x,v.memoizedState=J),C.props=x,C.state=J,C.context=I,x=X):(typeof C.componentDidMount=="function"&&(v.flags|=4194308),x=!1)}else{C=v.stateNode,Qm(f,v),I=v.memoizedProps,st=ul(g,I),C.props=st,ft=v.pendingProps,et=C.context,J=g.contextType,X=Bs,typeof J=="object"&&J!==null&&(X=pr(J)),V=g.getDerivedStateFromProps,(J=typeof V=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I!==ft||et!==X)&&bC(v,C,x,X),Xi=!1,et=v.memoizedState,C.state=et,Kf(v,x,C,T),$f();var nt=v.memoizedState;I!==ft||et!==nt||Xi||f!==null&&f.dependencies!==null&&Qv(f.dependencies)?(typeof V=="function"&&(b0(v,g,V,x),nt=v.memoizedState),(st=Xi||xC(v,g,st,x,et,nt,X)||f!==null&&f.dependencies!==null&&Qv(f.dependencies))?(J||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(x,nt,X),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(x,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=x,v.memoizedState=nt),C.props=x,C.state=nt,C.context=X,x=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),x=!1)}return C=x,yd(f,v),x=(v.flags&128)!==0,C||x?(C=v.stateNode,g=x&&typeof g.getDerivedStateFromError!="function"?null:C.render(),v.flags|=1,f!==null&&x?(v.child=ll(v,f.child,null,T),v.child=ll(v,null,g,T)):gr(f,v,g,T),v.memoizedState=C.state,f=v.child):f=ii(f,v,T),f}function zC(f,v,g,x){return el(),v.flags|=256,gr(f,v,g,x),v.child}var C0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function D0(f){return{baseLanes:f,cachePool:AA()}}function M0(f,v,g){return f=f!==null?f.childLanes&~g:0,v&&(f|=ha),f}function kC(f,v,g){var x=v.pendingProps,T=!1,C=(v.flags&128)!==0,I;if((I=C)||(I=f!==null&&f.memoizedState===null?!1:(He.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=YD(f,Ea),f=f!==null&&f.data!=="&"?f:null,f!==null&&(v.memoizedState={dehydrated:f,treeContext:Ui!==null?{id:wn,overflow:Tn}:null,retryLane:536870912,hydrationErrors:null},g=gA(f),g.return=v,v.child=g,dr=v,Le=null)):f=null,f===null)throw ji(v);return f1(f)?v.lanes=32:v.lanes=536870912,null}var V=x.children;return x=x.fallback,T?($i(),T=v.mode,V=md({mode:"hidden",children:V},T),x=tl(x,T,g,null),V.return=v,x.return=v,V.sibling=x,v.child=V,x=v.child,x.memoizedState=D0(g),x.childLanes=M0(f,I,g),v.memoizedState=C0,rc(null,x)):(qi(v),L0(v,V))}var X=f.memoizedState;if(X!==null&&(V=X.dehydrated,V!==null)){if(C)v.flags&256?(qi(v),v.flags&=-257,v=E0(f,v,g)):v.memoizedState!==null?($i(),v.child=f.child,v.flags|=128,v=null):($i(),V=x.fallback,T=v.mode,x=md({mode:"visible",children:x.children},T),V=tl(V,T,g,null),V.flags|=2,x.return=v,V.return=v,x.sibling=V,v.child=x,ll(v,f.child,null,g),x=v.child,x.memoizedState=D0(g),x.childLanes=M0(f,I,g),v.memoizedState=C0,v=rc(null,x));else if(qi(v),f1(V)){if(I=V.nextSibling&&V.nextSibling.dataset,I)var J=I.dgst;I=J,x=Error(a(419)),x.stack="",x.digest=I,jf({value:x,source:null,stack:null}),v=E0(f,v,g)}else if(qe||Us(f,v,g,!1),I=(g&f.childLanes)!==0,qe||I){if(I=Me,I!==null&&(x=w2(I,g),x!==0&&x!==X.retryLane))throw X.retryLane=x,Jo(f,x),Kr(I,f,x),T0;u1(V)||Dd(),v=E0(f,v,g)}else u1(V)?(v.flags|=192,v.child=f.child,v=null):(f=X.treeContext,Le=Ia(V.nextSibling),dr=v,se=!0,Fi=null,Ea=!1,f!==null&&_A(v,f),v=L0(v,x.children),v.flags|=4096);return v}return T?($i(),V=x.fallback,T=v.mode,X=f.child,J=X.sibling,x=Jn(X,{mode:"hidden",children:x.children}),x.subtreeFlags=X.subtreeFlags&65011712,J!==null?V=Jn(J,V):(V=tl(V,T,g,null),V.flags|=2),V.return=v,x.return=v,x.sibling=V,v.child=x,rc(null,x),x=v.child,V=f.child.memoizedState,V===null?V=D0(g):(T=V.cachePool,T!==null?(X=We._currentValue,T=T.parent!==X?{parent:X,pool:X}:T):T=AA(),V={baseLanes:V.baseLanes|g,cachePool:T}),x.memoizedState=V,x.childLanes=M0(f,I,g),v.memoizedState=C0,rc(f.child,x)):(qi(v),g=f.child,f=g.sibling,g=Jn(g,{mode:"visible",children:x.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 L0(f,v){return v=md({mode:"visible",children:v},f.mode),v.return=f,f.child=v}function md(f,v){return f=sa(22,f,null,v),f.lanes=0,f}function E0(f,v,g){return ll(v,f.child,null,g),f=L0(v,v.pendingProps.children),f.flags|=2,v.memoizedState=null,f}function BC(f,v,g){f.lanes|=v;var x=f.alternate;x!==null&&(x.lanes|=v),Ym(f.return,v,g)}function R0(f,v,g,x,T,C){var I=f.memoizedState;I===null?f.memoizedState={isBackwards:v,rendering:null,renderingStartTime:0,last:x,tail:g,tailMode:T,treeForkCount:C}:(I.isBackwards=v,I.rendering=null,I.renderingStartTime=0,I.last=x,I.tail=g,I.tailMode=T,I.treeForkCount=C)}function VC(f,v,g){var x=v.pendingProps,T=x.revealOrder,C=x.tail;x=x.children;var I=He.current,V=(I&2)!==0;if(V?(I=I&1|2,v.flags|=128):I&=1,at(He,I),gr(f,v,x,g),x=se?Ff:0,!V&&f!==null&&(f.flags&128)!==0)t:for(f=v.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&BC(f,g,v);else if(f.tag===19)BC(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&&od(f)===null&&(T=g),g=g.sibling;g=T,g===null?(T=v.child,v.child=null):(T=g.sibling,g.sibling=null),R0(v,!1,T,g,C,x);break;case"backwards":case"unstable_legacy-backwards":for(g=null,T=v.child,v.child=null;T!==null;){if(f=T.alternate,f!==null&&od(f)===null){v.child=T;break}f=T.sibling,T.sibling=g,g=T,T=f}R0(v,!0,g,null,C,x);break;case"together":R0(v,!1,null,null,void 0,x);break;default:v.memoizedState=null}return v.child}function ii(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=Jn(f,f.pendingProps),v.child=g,g.return=v;f.sibling!==null;)f=f.sibling,g=g.sibling=Jn(f,f.pendingProps),g.return=v;g.sibling=null}return v.child}function I0(f,v){return(f.lanes&v)!==0?!0:(f=f.dependencies,!!(f!==null&&Qv(f)))}function r6(f,v,g){switch(v.tag){case 3:wt(v,v.stateNode.containerInfo),Yi(v,We,f.memoizedState.cache),el();break;case 27:case 5:Ot(v);break;case 4:wt(v,v.stateNode.containerInfo);break;case 10:Yi(v,v.type,v.memoizedProps.value);break;case 31:if(v.memoizedState!==null)return v.flags|=128,a0(v),null;break;case 13:var x=v.memoizedState;if(x!==null)return x.dehydrated!==null?(qi(v),v.flags|=128,null):(g&v.child.childLanes)!==0?kC(f,v,g):(qi(v),f=ii(f,v,g),f!==null?f.sibling:null);qi(v);break;case 19:var T=(f.flags&128)!==0;if(x=(g&v.childLanes)!==0,x||(Us(f,v,g,!1),x=(g&v.childLanes)!==0),T){if(x)return VC(f,v,g);v.flags|=128}if(T=v.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),at(He,He.current),x)break;return null;case 22:return v.lanes=0,RC(f,v,g,v.pendingProps);case 24:Yi(v,We,f.memoizedState.cache)}return ii(f,v,g)}function GC(f,v,g){if(f!==null)if(f.memoizedProps!==v.pendingProps)qe=!0;else{if(!I0(f,g)&&(v.flags&128)===0)return qe=!1,r6(f,v,g);qe=(f.flags&131072)!==0}else qe=!1,se&&(v.flags&1048576)!==0&&mA(v,Ff,v.index);switch(v.lanes=0,v.tag){case 16:t:{var x=v.pendingProps;if(f=il(v.elementType),v.type=f,typeof f=="function")km(f)?(x=ul(f,x),v.tag=1,v=PC(null,v,f,x,g)):(v.tag=0,v=A0(null,v,f,x,g));else{if(f!=null){var T=f.$$typeof;if(T===A){v.tag=11,v=MC(null,v,f,x,g);break t}else if(T===L){v.tag=14,v=LC(null,v,f,x,g);break t}}throw v=H(f)||f,Error(a(306,v,""))}}return v;case 0:return A0(f,v,v.type,v.pendingProps,g);case 1:return x=v.type,T=ul(x,v.pendingProps),PC(f,v,x,T,g);case 3:t:{if(wt(v,v.stateNode.containerInfo),f===null)throw Error(a(387));x=v.pendingProps;var C=v.memoizedState;T=C.element,Qm(f,v),Kf(v,x,null,g);var I=v.memoizedState;if(x=I.cache,Yi(v,We,x),x!==C.cache&&Xm(v,[We],g,!0),$f(),x=I.element,C.isDehydrated)if(C={element:x,isDehydrated:!1,cache:I.cache},v.updateQueue.baseState=C,v.memoizedState=C,v.flags&256){v=zC(f,v,x,g);break t}else if(x!==T){T=Da(Error(a(424)),v),jf(T),v=zC(f,v,x,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=Ia(f.firstChild),dr=v,se=!0,Fi=null,Ea=!0,g=RA(v,null,x,g),v.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling}else{if(el(),x===T){v=ii(f,v,g);break t}gr(f,v,x,g)}v=v.child}return v;case 26:return yd(f,v),f===null?(g=KD(v.type,null,v.pendingProps,null))?v.memoizedState=g:se||(g=v.type,f=v.pendingProps,x=Nd(bt.current).createElement(g),x[vr]=v,x[Yr]=f,yr(x,g,f),ur(x),v.stateNode=x):v.memoizedState=KD(v.type,f.memoizedProps,v.pendingProps,f.memoizedState),null;case 27:return Ot(v),f===null&&se&&(x=v.stateNode=ZD(v.type,v.pendingProps,bt.current),dr=v,Ea=!0,T=Le,no(v.type)?(c1=T,Le=Ia(x.firstChild)):Le=T),gr(f,v,v.pendingProps.children,g),yd(f,v),f===null&&(v.flags|=4194304),v.child;case 5:return f===null&&se&&((T=x=Le)&&(x=I6(x,v.type,v.pendingProps,Ea),x!==null?(v.stateNode=x,dr=v,Le=Ia(x.firstChild),Ea=!1,T=!0):T=!1),T||ji(v)),Ot(v),T=v.type,C=v.pendingProps,I=f!==null?f.memoizedProps:null,x=C.children,o1(T,C)?x=null:I!==null&&o1(T,I)&&(v.flags|=32),v.memoizedState!==null&&(T=i0(f,v,WG,null,null,g),yc._currentValue=T),yd(f,v),gr(f,v,x,g),v.child;case 6:return f===null&&se&&((f=g=Le)&&(g=O6(g,v.pendingProps,Ea),g!==null?(v.stateNode=g,dr=v,Le=null,f=!0):f=!1),f||ji(v)),null;case 13:return kC(f,v,g);case 4:return wt(v,v.stateNode.containerInfo),x=v.pendingProps,f===null?v.child=ll(v,null,x,g):gr(f,v,x,g),v.child;case 11:return MC(f,v,v.type,v.pendingProps,g);case 7:return gr(f,v,v.pendingProps,g),v.child;case 8:return gr(f,v,v.pendingProps.children,g),v.child;case 12:return gr(f,v,v.pendingProps.children,g),v.child;case 10:return x=v.pendingProps,Yi(v,v.type,x.value),gr(f,v,x.children,g),v.child;case 9:return T=v.type._context,x=v.pendingProps.children,al(v),T=pr(T),x=x(T),v.flags|=1,gr(f,v,x,g),v.child;case 14:return LC(f,v,v.type,v.pendingProps,g);case 15:return EC(f,v,v.type,v.pendingProps,g);case 19:return VC(f,v,g);case 31:return e6(f,v,g);case 22:return RC(f,v,g,v.pendingProps);case 24:return al(v),x=pr(We),f===null?(T=qm(),T===null&&(T=Me,C=Wm(),T.pooledCache=C,C.refCount++,C!==null&&(T.pooledCacheLanes|=g),T=C),v.memoizedState={parent:x,cache:T},Km(v),Yi(v,We,T)):((f.lanes&g)!==0&&(Qm(f,v),Kf(v,null,null,g),$f()),T=f.memoizedState,C=v.memoizedState,T.parent!==x?(T={parent:x,cache:x},v.memoizedState=T,v.lanes===0&&(v.memoizedState=v.updateQueue.baseState=T),Yi(v,We,x)):(x=C.cache,Yi(v,We,x),x!==T.cache&&Xm(v,[We],g,!0))),gr(f,v,v.pendingProps.children,g),v.child;case 29:throw v.pendingProps}throw Error(a(156,v.tag))}function oi(f){f.flags|=4}function O0(f,v,g,x,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(vD())f.flags|=8192;else throw ol=rd,$m}else f.flags&=-16777217}function HC(f,v){if(v.type!=="stylesheet"||(v.state.loading&4)!==0)f.flags&=-16777217;else if(f.flags|=16777216,!rM(v))if(vD())f.flags|=8192;else throw ol=rd,$m}function _d(f,v){v!==null&&(f.flags|=4),f.flags&16384&&(v=f.tag!==22?x2():536870912,f.lanes|=v,tu|=v)}function ac(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 x=null;g!==null;)g.alternate!==null&&(x=g),g=g.sibling;x===null?v||f.tail===null?f.tail=null:f.tail.sibling=null:x.sibling=null}}function Ee(f){var v=f.alternate!==null&&f.alternate.child===f.child,g=0,x=0;if(v)for(var T=f.child;T!==null;)g|=T.lanes|T.childLanes,x|=T.subtreeFlags&65011712,x|=T.flags&65011712,T.return=f,T=T.sibling;else for(T=f.child;T!==null;)g|=T.lanes|T.childLanes,x|=T.subtreeFlags,x|=T.flags,T.return=f,T=T.sibling;return f.subtreeFlags|=x,f.childLanes=g,v}function a6(f,v,g){var x=v.pendingProps;switch(Hm(v),v.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ee(v),null;case 1:return Ee(v),null;case 3:return g=v.stateNode,x=null,f!==null&&(x=f.memoizedState.cache),v.memoizedState.cache!==x&&(v.flags|=2048),ri(We),pt(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(f===null||f.child===null)&&(Hs(v)?oi(v):f===null||f.memoizedState.isDehydrated&&(v.flags&256)===0||(v.flags|=1024,Fm())),Ee(v),null;case 26:var T=v.type,C=v.memoizedState;return f===null?(oi(v),C!==null?(Ee(v),HC(v,C)):(Ee(v),O0(v,T,null,x,g))):C?C!==f.memoizedState?(oi(v),Ee(v),HC(v,C)):(Ee(v),v.flags&=-16777217):(f=f.memoizedProps,f!==x&&oi(v),Ee(v),O0(v,T,f,x,g)),null;case 27:if(yt(v),g=bt.current,T=v.type,f!==null&&v.stateNode!=null)f.memoizedProps!==x&&oi(v);else{if(!x){if(v.stateNode===null)throw Error(a(166));return Ee(v),null}f=lt.current,Hs(v)?xA(v):(f=ZD(T,x,g),v.stateNode=f,oi(v))}return Ee(v),null;case 5:if(yt(v),T=v.type,f!==null&&v.stateNode!=null)f.memoizedProps!==x&&oi(v);else{if(!x){if(v.stateNode===null)throw Error(a(166));return Ee(v),null}if(C=lt.current,Hs(v))xA(v);else{var I=Nd(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 x.is=="string"?I.createElement("select",{is:x.is}):I.createElement("select"),x.multiple?C.multiple=!0:x.size&&(C.size=x.size);break;default:C=typeof x.is=="string"?I.createElement(T,{is:x.is}):I.createElement(T)}}C[vr]=v,C[Yr]=x;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(yr(C,T,x),T){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break t;case"img":x=!0;break t;default:x=!1}x&&oi(v)}}return Ee(v),O0(v,v.type,f===null?null:f.memoizedProps,v.pendingProps,g),null;case 6:if(f&&v.stateNode!=null)f.memoizedProps!==x&&oi(v);else{if(typeof x!="string"&&v.stateNode===null)throw Error(a(166));if(f=bt.current,Hs(v)){if(f=v.stateNode,g=v.memoizedProps,x=null,T=dr,T!==null)switch(T.tag){case 27:case 5:x=T.memoizedProps}f[vr]=v,f=!!(f.nodeValue===g||x!==null&&x.suppressHydrationWarning===!0||kD(f.nodeValue,g)),f||ji(v,!0)}else f=Nd(f).createTextNode(x),f[vr]=v,v.stateNode=f}return Ee(v),null;case 31:if(g=v.memoizedState,f===null||f.memoizedState!==null){if(x=Hs(v),g!==null){if(f===null){if(!x)throw Error(a(318));if(f=v.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(557));f[vr]=v}else el(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;Ee(v),f=!1}else g=Fm(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=g),f=!0;if(!f)return v.flags&256?(fa(v),v):(fa(v),null);if((v.flags&128)!==0)throw Error(a(558))}return Ee(v),null;case 13:if(x=v.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(T=Hs(v),x!==null&&x.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[vr]=v}else el(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;Ee(v),T=!1}else T=Fm(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=T),T=!0;if(!T)return v.flags&256?(fa(v),v):(fa(v),null)}return fa(v),(v.flags&128)!==0?(v.lanes=g,v):(g=x!==null,f=f!==null&&f.memoizedState!==null,g&&(x=v.child,T=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(T=x.alternate.memoizedState.cachePool.pool),C=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(C=x.memoizedState.cachePool.pool),C!==T&&(x.flags|=2048)),g!==f&&g&&(v.child.flags|=8192),_d(v,v.updateQueue),Ee(v),null);case 4:return pt(),f===null&&e1(v.stateNode.containerInfo),Ee(v),null;case 10:return ri(v.type),Ee(v),null;case 19:if(W(He),x=v.memoizedState,x===null)return Ee(v),null;if(T=(v.flags&128)!==0,C=x.rendering,C===null)if(T)ac(x,!1);else{if(ke!==0||f!==null&&(f.flags&128)!==0)for(f=v.child;f!==null;){if(C=od(f),C!==null){for(v.flags|=128,ac(x,!1),f=C.updateQueue,v.updateQueue=f,_d(v,f),v.subtreeFlags=0,f=g,g=v.child;g!==null;)pA(g,f),g=g.sibling;return at(He,He.current&1|2),se&&ti(v,x.treeForkCount),v.child}f=f.sibling}x.tail!==null&&na()>Td&&(v.flags|=128,T=!0,ac(x,!1),v.lanes=4194304)}else{if(!T)if(f=od(C),f!==null){if(v.flags|=128,T=!0,f=f.updateQueue,v.updateQueue=f,_d(v,f),ac(x,!0),x.tail===null&&x.tailMode==="hidden"&&!C.alternate&&!se)return Ee(v),null}else 2*na()-x.renderingStartTime>Td&&g!==536870912&&(v.flags|=128,T=!0,ac(x,!1),v.lanes=4194304);x.isBackwards?(C.sibling=v.child,v.child=C):(f=x.last,f!==null?f.sibling=C:v.child=C,x.last=C)}return x.tail!==null?(f=x.tail,x.rendering=f,x.tail=f.sibling,x.renderingStartTime=na(),f.sibling=null,g=He.current,at(He,T?g&1|2:g&1),se&&ti(v,x.treeForkCount),f):(Ee(v),null);case 22:case 23:return fa(v),r0(),x=v.memoizedState!==null,f!==null?f.memoizedState!==null!==x&&(v.flags|=8192):x&&(v.flags|=8192),x?(g&536870912)!==0&&(v.flags&128)===0&&(Ee(v),v.subtreeFlags&6&&(v.flags|=8192)):Ee(v),g=v.updateQueue,g!==null&&_d(v,g.retryQueue),g=null,f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(g=f.memoizedState.cachePool.pool),x=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(x=v.memoizedState.cachePool.pool),x!==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),ri(We),Ee(v),null;case 25:return null;case 30:return null}throw Error(a(156,v.tag))}function n6(f,v){switch(Hm(v),v.tag){case 1:return f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 3:return ri(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(fa(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(fa(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(He),null;case 4:return pt(),null;case 10:return ri(v.type),null;case 22:case 23:return fa(v),r0(),f!==null&&W(nl),f=v.flags,f&65536?(v.flags=f&-65537|128,v):null;case 24:return ri(We),null;case 25:return null;default:return null}}function UC(f,v){switch(Hm(v),v.tag){case 3:ri(We),pt();break;case 26:case 27:case 5:yt(v);break;case 4:pt();break;case 31:v.memoizedState!==null&&fa(v);break;case 13:fa(v);break;case 19:W(He);break;case 10:ri(v.type);break;case 22:case 23:fa(v),r0(),f!==null&&W(nl);break;case 24:ri(We)}}function nc(f,v){try{var g=v.updateQueue,x=g!==null?g.lastEffect:null;if(x!==null){var T=x.next;g=T;do{if((g.tag&f)===f){x=void 0;var C=g.create,I=g.inst;x=C(),I.destroy=x}g=g.next}while(g!==T)}}catch(V){be(v,v.return,V)}}function Ki(f,v,g){try{var x=v.updateQueue,T=x!==null?x.lastEffect:null;if(T!==null){var C=T.next;x=C;do{if((x.tag&f)===f){var I=x.inst,V=I.destroy;if(V!==void 0){I.destroy=void 0,T=v;var X=g,J=V;try{J()}catch(st){be(T,X,st)}}}x=x.next}while(x!==C)}}catch(st){be(v,v.return,st)}}function FC(f){var v=f.updateQueue;if(v!==null){var g=f.stateNode;try{OA(v,g)}catch(x){be(f,f.return,x)}}}function jC(f,v,g){g.props=ul(f.type,f.memoizedProps),g.state=f.memoizedState;try{g.componentWillUnmount()}catch(x){be(f,v,x)}}function ic(f,v){try{var g=f.ref;if(g!==null){switch(f.tag){case 26:case 27:case 5:var x=f.stateNode;break;case 30:x=f.stateNode;break;default:x=f.stateNode}typeof g=="function"?f.refCleanup=g(x):g.current=x}}catch(T){be(f,v,T)}}function An(f,v){var g=f.ref,x=f.refCleanup;if(g!==null)if(typeof x=="function")try{x()}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 YC(f){var v=f.type,g=f.memoizedProps,x=f.stateNode;try{t:switch(v){case"button":case"input":case"select":case"textarea":g.autoFocus&&x.focus();break t;case"img":g.src?x.src=g.src:g.srcSet&&(x.srcset=g.srcSet)}}catch(T){be(f,f.return,T)}}function N0(f,v,g){try{var x=f.stateNode;C6(x,f.type,g,v),x[Yr]=v}catch(T){be(f,f.return,T)}}function XC(f){return f.tag===5||f.tag===3||f.tag===26||f.tag===27&&no(f.type)||f.tag===4}function P0(f){t:for(;;){for(;f.sibling===null;){if(f.return===null||XC(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 z0(f,v,g){var x=f.tag;if(x===5||x===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=Kn));else if(x!==4&&(x===27&&no(f.type)&&(g=f.stateNode,v=null),f=f.child,f!==null))for(z0(f,v,g),f=f.sibling;f!==null;)z0(f,v,g),f=f.sibling}function xd(f,v,g){var x=f.tag;if(x===5||x===6)f=f.stateNode,v?g.insertBefore(f,v):g.appendChild(f);else if(x!==4&&(x===27&&no(f.type)&&(g=f.stateNode),f=f.child,f!==null))for(xd(f,v,g),f=f.sibling;f!==null;)xd(f,v,g),f=f.sibling}function WC(f){var v=f.stateNode,g=f.memoizedProps;try{for(var x=f.type,T=v.attributes;T.length;)v.removeAttributeNode(T[0]);yr(v,x,g),v[vr]=f,v[Yr]=g}catch(C){be(f,f.return,C)}}var li=!1,$e=!1,k0=!1,ZC=typeof WeakSet=="function"?WeakSet:Set,fr=null;function i6(f,v){if(f=f.containerInfo,n1=Hd,f=oA(f),Em(f)){if("selectionStart"in f)var g={start:f.selectionStart,end:f.selectionEnd};else t:{g=(g=f.ownerDocument)&&g.defaultView||window;var x=g.getSelection&&g.getSelection();if(x&&x.rangeCount!==0){g=x.anchorNode;var T=x.anchorOffset,C=x.focusNode;x=x.focusOffset;try{g.nodeType,C.nodeType}catch{g=null;break t}var I=0,V=-1,X=-1,J=0,st=0,ft=f,et=null;e:for(;;){for(var nt;ft!==g||T!==0&&ft.nodeType!==3||(V=I+T),ft!==C||x!==0&&ft.nodeType!==3||(X=I+x),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&&(V=I),et===C&&++st===x&&(X=I),(nt=ft.nextSibling)!==null)break;ft=et,et=ft.parentNode}ft=nt}g=V===-1||X===-1?null:{start:V,end:X}}else g=null}g=g||{start:0,end:0}}else g=null;for(i1={focusedElem:f,selectionRange:g},Hd=!1,fr=v;fr!==null;)if(v=fr,f=v.child,(v.subtreeFlags&1028)!==0&&f!==null)f.return=v,fr=f;else for(;fr!==null;){switch(v=fr,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,x=g.stateNode;try{var At=ul(g.type,T);f=x.getSnapshotBeforeUpdate(At,C),x.__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)s1(f);else if(g===1)switch(f.nodeName){case"HEAD":case"HTML":case"BODY":s1(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,fr=f;break}fr=v.return}}function qC(f,v,g){var x=g.flags;switch(g.tag){case 0:case 11:case 15:ui(f,g),x&4&&nc(5,g);break;case 1:if(ui(f,g),x&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)}}x&64&&FC(g),x&512&&ic(g,g.return);break;case 3:if(ui(f,g),x&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{OA(f,v)}catch(I){be(g,g.return,I)}}break;case 27:v===null&&x&4&&WC(g);case 26:case 5:ui(f,g),v===null&&x&4&&YC(g),x&512&&ic(g,g.return);break;case 12:ui(f,g);break;case 31:ui(f,g),x&4&&QC(f,g);break;case 13:ui(f,g),x&4&&JC(f,g),x&64&&(f=g.memoizedState,f!==null&&(f=f.dehydrated,f!==null&&(g=d6.bind(null,g),N6(f,g))));break;case 22:if(x=g.memoizedState!==null||li,!x){v=v!==null&&v.memoizedState!==null||$e,T=li;var C=$e;li=x,($e=v)&&!C?fi(f,g,(g.subtreeFlags&8772)!==0):ui(f,g),li=T,$e=C}break;case 30:break;default:ui(f,g)}}function $C(f){var v=f.alternate;v!==null&&(f.alternate=null,$C(v)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(v=f.stateNode,v!==null&&vm(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,Wr=!1;function si(f,v,g){for(g=g.child;g!==null;)KC(f,v,g),g=g.sibling}function KC(f,v,g){if(ia&&typeof ia.onCommitFiberUnmount=="function")try{ia.onCommitFiberUnmount(Lf,g)}catch{}switch(g.tag){case 26:$e||An(g,v),si(f,v,g),g.memoizedState?g.memoizedState.count--:g.stateNode&&(g=g.stateNode,g.parentNode.removeChild(g));break;case 27:$e||An(g,v);var x=Ie,T=Wr;no(g.type)&&(Ie=g.stateNode,Wr=!1),si(f,v,g),dc(g.stateNode),Ie=x,Wr=T;break;case 5:$e||An(g,v);case 6:if(x=Ie,T=Wr,Ie=null,si(f,v,g),Ie=x,Wr=T,Ie!==null)if(Wr)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&&(Wr?(f=Ie,FD(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,g.stateNode),su(f)):FD(Ie,g.stateNode));break;case 4:x=Ie,T=Wr,Ie=g.stateNode.containerInfo,Wr=!0,si(f,v,g),Ie=x,Wr=T;break;case 0:case 11:case 14:case 15:Ki(2,g,v),$e||Ki(4,g,v),si(f,v,g);break;case 1:$e||(An(g,v),x=g.stateNode,typeof x.componentWillUnmount=="function"&&jC(g,v,x)),si(f,v,g);break;case 21:si(f,v,g);break;case 22:$e=(x=$e)||g.memoizedState!==null,si(f,v,g),$e=x;break;default:si(f,v,g)}}function QC(f,v){if(v.memoizedState===null&&(f=v.alternate,f!==null&&(f=f.memoizedState,f!==null))){f=f.dehydrated;try{su(f)}catch(g){be(v,v.return,g)}}}function JC(f,v){if(v.memoizedState===null&&(f=v.alternate,f!==null&&(f=f.memoizedState,f!==null&&(f=f.dehydrated,f!==null))))try{su(f)}catch(g){be(v,v.return,g)}}function o6(f){switch(f.tag){case 31:case 13:case 19:var v=f.stateNode;return v===null&&(v=f.stateNode=new ZC),v;case 22:return f=f.stateNode,v=f._retryCache,v===null&&(v=f._retryCache=new ZC),v;default:throw Error(a(435,f.tag))}}function bd(f,v){var g=o6(f);v.forEach(function(x){if(!g.has(x)){g.add(x);var T=p6.bind(null,f,x);x.then(T,T)}})}function Zr(f,v){var g=v.deletions;if(g!==null)for(var x=0;x<g.length;x++){var T=g[x],C=f,I=v,V=I;t:for(;V!==null;){switch(V.tag){case 27:if(no(V.type)){Ie=V.stateNode,Wr=!1;break t}break;case 5:Ie=V.stateNode,Wr=!1;break t;case 3:case 4:Ie=V.stateNode.containerInfo,Wr=!0;break t}V=V.return}if(Ie===null)throw Error(a(160));KC(C,I,T),Ie=null,Wr=!1,C=T.alternate,C!==null&&(C.return=null),T.return=null}if(v.subtreeFlags&13886)for(v=v.child;v!==null;)tD(v,f),v=v.sibling}var an=null;function tD(f,v){var g=f.alternate,x=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:Zr(v,f),qr(f),x&4&&(Ki(3,f,f.return),nc(3,f),Ki(5,f,f.return));break;case 1:Zr(v,f),qr(f),x&512&&($e||g===null||An(g,g.return)),x&64&&li&&(f=f.updateQueue,f!==null&&(x=f.callbacks,x!==null&&(g=f.shared.hiddenCallbacks,f.shared.hiddenCallbacks=g===null?x:g.concat(x))));break;case 26:var T=an;if(Zr(v,f),qr(f),x&512&&($e||g===null||An(g,g.return)),x&4){var C=g!==null?g.memoizedState:null;if(x=f.memoizedState,g===null)if(x===null)if(f.stateNode===null){t:{x=f.type,g=f.memoizedProps,T=T.ownerDocument||T;e:switch(x){case"title":C=T.getElementsByTagName("title")[0],(!C||C[If]||C[vr]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=T.createElement(x),T.head.insertBefore(C,T.querySelector("head > title"))),yr(C,x,g),C[vr]=f,ur(C),x=C;break t;case"link":var I=tM("link","href",T).get(x+(g.href||""));if(I){for(var V=0;V<I.length;V++)if(C=I[V],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(V,1);break e}}C=T.createElement(x),yr(C,x,g),T.head.appendChild(C);break;case"meta":if(I=tM("meta","content",T).get(x+(g.content||""))){for(V=0;V<I.length;V++)if(C=I[V],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(V,1);break e}}C=T.createElement(x),yr(C,x,g),T.head.appendChild(C);break;default:throw Error(a(468,x))}C[vr]=f,ur(C),x=C}f.stateNode=x}else eM(T,f.type,f.stateNode);else f.stateNode=JD(T,x,f.memoizedProps);else C!==x?(C===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):C.count--,x===null?eM(T,f.type,f.stateNode):JD(T,x,f.memoizedProps)):x===null&&f.stateNode!==null&&N0(f,f.memoizedProps,g.memoizedProps)}break;case 27:Zr(v,f),qr(f),x&512&&($e||g===null||An(g,g.return)),g!==null&&x&4&&N0(f,f.memoizedProps,g.memoizedProps);break;case 5:if(Zr(v,f),qr(f),x&512&&($e||g===null||An(g,g.return)),f.flags&32){T=f.stateNode;try{Rs(T,"")}catch(At){be(f,f.return,At)}}x&4&&f.stateNode!=null&&(T=f.memoizedProps,N0(f,T,g!==null?g.memoizedProps:T)),x&1024&&(k0=!0);break;case 6:if(Zr(v,f),qr(f),x&4){if(f.stateNode===null)throw Error(a(162));x=f.memoizedProps,g=f.stateNode;try{g.nodeValue=x}catch(At){be(f,f.return,At)}}break;case 3:if(kd=null,T=an,an=Pd(v.containerInfo),Zr(v,f),an=T,qr(f),x&4&&g!==null&&g.memoizedState.isDehydrated)try{su(v.containerInfo)}catch(At){be(f,f.return,At)}k0&&(k0=!1,eD(f));break;case 4:x=an,an=Pd(f.stateNode.containerInfo),Zr(v,f),qr(f),an=x;break;case 12:Zr(v,f),qr(f);break;case 31:Zr(v,f),qr(f),x&4&&(x=f.updateQueue,x!==null&&(f.updateQueue=null,bd(f,x)));break;case 13:Zr(v,f),qr(f),f.child.flags&8192&&f.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(wd=na()),x&4&&(x=f.updateQueue,x!==null&&(f.updateQueue=null,bd(f,x)));break;case 22:T=f.memoizedState!==null;var X=g!==null&&g.memoizedState!==null,J=li,st=$e;if(li=J||T,$e=st||X,Zr(v,f),$e=st,li=J,qr(f),x&8192)t:for(v=f.stateNode,v._visibility=T?v._visibility&-2:v._visibility|1,T&&(g===null||X||li||$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{V=X.stateNode;var ft=X.memoizedProps.style,et=ft!=null&&ft.hasOwnProperty("display")?ft.display:null;V.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?jD(nt,!0):jD(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}x&4&&(x=f.updateQueue,x!==null&&(g=x.retryQueue,g!==null&&(x.retryQueue=null,bd(f,g))));break;case 19:Zr(v,f),qr(f),x&4&&(x=f.updateQueue,x!==null&&(f.updateQueue=null,bd(f,x)));break;case 30:break;case 21:break;default:Zr(v,f),qr(f)}}function qr(f){var v=f.flags;if(v&2){try{for(var g,x=f.return;x!==null;){if(XC(x)){g=x;break}x=x.return}if(g==null)throw Error(a(160));switch(g.tag){case 27:var T=g.stateNode,C=P0(f);xd(f,C,T);break;case 5:var I=g.stateNode;g.flags&32&&(Rs(I,""),g.flags&=-33);var V=P0(f);xd(f,V,I);break;case 3:case 4:var X=g.stateNode.containerInfo,J=P0(f);z0(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 eD(f){if(f.subtreeFlags&1024)for(f=f.child;f!==null;){var v=f;eD(v),v.tag===5&&v.flags&1024&&v.stateNode.reset(),f=f.sibling}}function ui(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:An(v,v.return);var g=v.stateNode;typeof g.componentWillUnmount=="function"&&jC(v,v.return,g),fl(v);break;case 27:dc(v.stateNode);case 26:case 5:An(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 fi(f,v,g){for(g=g&&(v.subtreeFlags&8772)!==0,v=v.child;v!==null;){var x=v.alternate,T=f,C=v,I=C.flags;switch(C.tag){case 0:case 11:case 15:fi(T,C,g),nc(4,C);break;case 1:if(fi(T,C,g),x=C,T=x.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(J){be(x,x.return,J)}if(x=C,T=x.updateQueue,T!==null){var V=x.stateNode;try{var X=T.shared.hiddenCallbacks;if(X!==null)for(T.shared.hiddenCallbacks=null,T=0;T<X.length;T++)IA(X[T],V)}catch(J){be(x,x.return,J)}}g&&I&64&&FC(C),ic(C,C.return);break;case 27:WC(C);case 26:case 5:fi(T,C,g),g&&x===null&&I&4&&YC(C),ic(C,C.return);break;case 12:fi(T,C,g);break;case 31:fi(T,C,g),g&&I&4&&QC(T,C);break;case 13:fi(T,C,g),g&&I&4&&JC(T,C);break;case 22:C.memoizedState===null&&fi(T,C,g),ic(C,C.return);break;case 30:break;default:fi(T,C,g)}v=v.sibling}}function B0(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&&Yf(g))}function V0(f,v){f=null,v.alternate!==null&&(f=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==f&&(v.refCount++,f!=null&&Yf(f))}function nn(f,v,g,x){if(v.subtreeFlags&10256)for(v=v.child;v!==null;)rD(f,v,g,x),v=v.sibling}function rD(f,v,g,x){var T=v.flags;switch(v.tag){case 0:case 11:case 15:nn(f,v,g,x),T&2048&&nc(9,v);break;case 1:nn(f,v,g,x);break;case 3:nn(f,v,g,x),T&2048&&(f=null,v.alternate!==null&&(f=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==f&&(v.refCount++,f!=null&&Yf(f)));break;case 12:if(T&2048){nn(f,v,g,x),f=v.stateNode;try{var C=v.memoizedProps,I=C.id,V=C.onPostCommit;typeof V=="function"&&V(I,v.alternate===null?"mount":"update",f.passiveEffectDuration,-0)}catch(X){be(v,v.return,X)}}else nn(f,v,g,x);break;case 31:nn(f,v,g,x);break;case 13:nn(f,v,g,x);break;case 23:break;case 22:C=v.stateNode,I=v.alternate,v.memoizedState!==null?C._visibility&2?nn(f,v,g,x):oc(f,v):C._visibility&2?nn(f,v,g,x):(C._visibility|=2,Ks(f,v,g,x,(v.subtreeFlags&10256)!==0||!1)),T&2048&&B0(I,v);break;case 24:nn(f,v,g,x),T&2048&&V0(v.alternate,v);break;default:nn(f,v,g,x)}}function Ks(f,v,g,x,T){for(T=T&&((v.subtreeFlags&10256)!==0||!1),v=v.child;v!==null;){var C=f,I=v,V=g,X=x,J=I.flags;switch(I.tag){case 0:case 11:case 15:Ks(C,I,V,X,T),nc(8,I);break;case 23:break;case 22:var st=I.stateNode;I.memoizedState!==null?st._visibility&2?Ks(C,I,V,X,T):oc(C,I):(st._visibility|=2,Ks(C,I,V,X,T)),T&&J&2048&&B0(I.alternate,I);break;case 24:Ks(C,I,V,X,T),T&&J&2048&&V0(I.alternate,I);break;default:Ks(C,I,V,X,T)}v=v.sibling}}function oc(f,v){if(v.subtreeFlags&10256)for(v=v.child;v!==null;){var g=f,x=v,T=x.flags;switch(x.tag){case 22:oc(g,x),T&2048&&B0(x.alternate,x);break;case 24:oc(g,x),T&2048&&V0(x.alternate,x);break;default:oc(g,x)}v=v.sibling}}var lc=8192;function Qs(f,v,g){if(f.subtreeFlags&lc)for(f=f.child;f!==null;)aD(f,v,g),f=f.sibling}function aD(f,v,g){switch(f.tag){case 26:Qs(f,v,g),f.flags&lc&&f.memoizedState!==null&&X6(g,an,f.memoizedState,f.memoizedProps);break;case 5:Qs(f,v,g);break;case 3:case 4:var x=an;an=Pd(f.stateNode.containerInfo),Qs(f,v,g),an=x;break;case 22:f.memoizedState===null&&(x=f.alternate,x!==null&&x.memoizedState!==null?(x=lc,lc=16777216,Qs(f,v,g),lc=x):Qs(f,v,g));break;default:Qs(f,v,g)}}function nD(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 sc(f){var v=f.deletions;if((f.flags&16)!==0){if(v!==null)for(var g=0;g<v.length;g++){var x=v[g];fr=x,oD(x,f)}nD(f)}if(f.subtreeFlags&10256)for(f=f.child;f!==null;)iD(f),f=f.sibling}function iD(f){switch(f.tag){case 0:case 11:case 15:sc(f),f.flags&2048&&Ki(9,f,f.return);break;case 3:sc(f);break;case 12:sc(f);break;case 22:var v=f.stateNode;f.memoizedState!==null&&v._visibility&2&&(f.return===null||f.return.tag!==13)?(v._visibility&=-3,Sd(f)):sc(f);break;default:sc(f)}}function Sd(f){var v=f.deletions;if((f.flags&16)!==0){if(v!==null)for(var g=0;g<v.length;g++){var x=v[g];fr=x,oD(x,f)}nD(f)}for(f=f.child;f!==null;){switch(v=f,v.tag){case 0:case 11:case 15:Ki(8,v,v.return),Sd(v);break;case 22:g=v.stateNode,g._visibility&2&&(g._visibility&=-3,Sd(v));break;default:Sd(v)}f=f.sibling}}function oD(f,v){for(;fr!==null;){var g=fr;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 x=g.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:Yf(g.memoizedState.cache)}if(x=g.child,x!==null)x.return=g,fr=x;else t:for(g=f;fr!==null;){x=fr;var T=x.sibling,C=x.return;if($C(x),x===g){fr=null;break t}if(T!==null){T.return=C,fr=T;break t}fr=C}}}var l6={getCacheForType:function(f){var v=pr(We),g=v.data.get(f);return g===void 0&&(g=f(),v.data.set(f,g)),g},cacheSignal:function(){return pr(We).controller.signal}},s6=typeof WeakMap=="function"?WeakMap:Map,ge=0,Me=null,re=null,ne=0,xe=0,ca=null,Qi=!1,Js=!1,G0=!1,ci=0,ke=0,Ji=0,cl=0,H0=0,ha=0,tu=0,uc=null,$r=null,U0=!1,wd=0,lD=0,Td=1/0,Ad=null,to=null,Je=0,eo=null,eu=null,hi=0,F0=0,j0=null,sD=null,fc=0,Y0=null;function va(){return(ge&2)!==0&&ne!==0?ne&-ne:k.T!==null?K0():T2()}function uD(){if(ha===0)if((ne&536870912)===0||se){var f=Ov;Ov<<=1,(Ov&3932160)===0&&(Ov=262144),ha=f}else ha=536870912;return f=ua.current,f!==null&&(f.flags|=32),ha}function Kr(f,v,g){(f===Me&&(xe===2||xe===9)||f.cancelPendingCommit!==null)&&(ru(f,0),ro(f,ne,ha,!1)),Rf(f,g),((ge&2)===0||f!==Me)&&(f===Me&&((ge&2)===0&&(cl|=g),ke===4&&ro(f,ne,ha,!1)),Cn(f))}function fD(f,v,g){if((ge&6)!==0)throw Error(a(327));var x=!g&&(v&127)===0&&(v&f.expiredLanes)===0||Ef(f,v),T=x?c6(f,v):W0(f,v,!0),C=x;do{if(T===0){Js&&!x&&ro(f,v,0,!1);break}else{if(g=f.current.alternate,C&&!u6(g)){T=W0(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 V=f;T=uc;var X=V.current.memoizedState.isDehydrated;if(X&&(ru(V,I).flags|=256),I=W0(V,I,!1),I!==2){if(G0&&!X){V.errorRecoveryDisabledLanes|=C,cl|=C,T=4;break t}C=$r,$r=T,C!==null&&($r===null?$r=C:$r.push.apply($r,C))}T=I}if(C=!1,T!==2)continue}}if(T===1){ru(f,0),ro(f,v,0,!0);break}t:{switch(x=f,C=T,C){case 0:case 1:throw Error(a(345));case 4:if((v&4194048)!==v)break;case 6:ro(x,v,ha,!Qi);break t;case 2:$r=null;break;case 3:case 5:break;default:throw Error(a(329))}if((v&62914560)===v&&(T=wd+300-na(),10<T)){if(ro(x,v,ha,!Qi),Pv(x,0,!0)!==0)break t;hi=v,x.timeoutHandle=HD(cD.bind(null,x,g,$r,Ad,U0,v,ha,cl,tu,Qi,C,"Throttled",-0,0),T);break t}cD(x,g,$r,Ad,U0,v,ha,cl,tu,Qi,C,null,-0,0)}}break}while(!0);Cn(f)}function cD(f,v,g,x,T,C,I,V,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:Kn},aD(v,C,ft);var At=(C&62914560)===C?wd-na():(C&4194048)===C?lD-na():0;if(At=W6(ft,At),At!==null){hi=C,f.cancelPendingCommit=At(_D.bind(null,f,v,C,g,x,T,I,V,X,st,ft,null,et,nt)),ro(f,C,I,!J);return}}_D(f,v,C,g,x,T,I,V,X)}function u6(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 x=0;x<g.length;x++){var T=g[x],C=T.getSnapshot;T=T.value;try{if(!la(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,x){v&=~H0,v&=~cl,f.suspendedLanes|=v,f.pingedLanes&=~v,x&&(f.warmLanes|=v),x=f.expirationTimes;for(var T=v;0<T;){var C=31-oa(T),I=1<<C;x[C]=-1,T&=~I}g!==0&&b2(f,g,v)}function Cd(){return(ge&6)===0?(cc(0),!1):!0}function X0(){if(re!==null){if(xe===0)var f=re.return;else f=re,ei=rl=null,s0(f),Xs=null,Wf=0,f=re;for(;f!==null;)UC(f.alternate,f),f=f.return;re=null}}function ru(f,v){var g=f.timeoutHandle;g!==-1&&(f.timeoutHandle=-1,L6(g)),g=f.cancelPendingCommit,g!==null&&(f.cancelPendingCommit=null,g()),hi=0,X0(),Me=f,re=g=Jn(f.current,null),ne=v,xe=0,ca=null,Qi=!1,Js=Ef(f,v),G0=!1,tu=ha=H0=cl=Ji=ke=0,$r=uc=null,U0=!1,(v&8)!==0&&(v|=v&32);var x=f.entangledLanes;if(x!==0)for(f=f.entanglements,x&=v;0<x;){var T=31-oa(x),C=1<<T;v|=f[T],x&=~C}return ci=v,Wv(),g}function hD(f,v){qt=null,k.H=ec,v===Ys||v===ed?(v=MA(),xe=3):v===$m?(v=MA(),xe=4):xe=v===T0?8:v!==null&&typeof v=="object"&&typeof v.then=="function"?6:1,ca=v,re===null&&(ke=1,pd(f,Da(v,f.current)))}function vD(){var f=ua.current;return f===null?!0:(ne&4194048)===ne?Ra===null:(ne&62914560)===ne||(ne&536870912)!==0?f===Ra:!1}function dD(){var f=k.H;return k.H=ec,f===null?ec:f}function pD(){var f=k.A;return k.A=l6,f}function Dd(){ke=4,Qi||(ne&4194048)!==ne&&ua.current!==null||(Js=!0),(Ji&134217727)===0&&(cl&134217727)===0||Me===null||ro(Me,ne,ha,!1)}function W0(f,v,g){var x=ge;ge|=2;var T=dD(),C=pD();(Me!==f||ne!==v)&&(Ad=null,ru(f,v)),v=!1;var I=ke;t:do try{if(xe!==0&&re!==null){var V=re,X=ca;switch(xe){case 8:X0(),I=6;break t;case 3:case 2:case 9:case 6:ua.current===null&&(v=!0);var J=xe;if(xe=0,ca=null,au(f,V,X,J),g&&Js){I=0;break t}break;default:J=xe,xe=0,ca=null,au(f,V,X,J)}}f6(),I=ke;break}catch(st){hD(f,st)}while(!0);return v&&f.shellSuspendCounter++,ei=rl=null,ge=x,k.H=T,k.A=C,re===null&&(Me=null,ne=0,Wv()),I}function f6(){for(;re!==null;)gD(re)}function c6(f,v){var g=ge;ge|=2;var x=dD(),T=pD();Me!==f||ne!==v?(Ad=null,Td=na()+500,ru(f,v)):Js=Ef(f,v);t:do try{if(xe!==0&&re!==null){v=re;var C=ca;e:switch(xe){case 1:xe=0,ca=null,au(f,v,C,1);break;case 2:case 9:if(CA(C)){xe=0,ca=null,yD(v);break}v=function(){xe!==2&&xe!==9||Me!==f||(xe=7),Cn(f)},C.then(v,v);break t;case 3:xe=7;break t;case 4:xe=5;break t;case 7:CA(C)?(xe=0,ca=null,yD(v)):(xe=0,ca=null,au(f,v,C,7));break;case 5:var I=null;switch(re.tag){case 26:I=re.memoizedState;case 5:case 27:var V=re;if(I?rM(I):V.stateNode.complete){xe=0,ca=null;var X=V.sibling;if(X!==null)re=X;else{var J=V.return;J!==null?(re=J,Md(J)):re=null}break e}}xe=0,ca=null,au(f,v,C,5);break;case 6:xe=0,ca=null,au(f,v,C,6);break;case 8:X0(),ke=6;break t;default:throw Error(a(462))}}h6();break}catch(st){hD(f,st)}while(!0);return ei=rl=null,k.H=x,k.A=T,ge=g,re!==null?0:(Me=null,ne=0,Wv(),ke)}function h6(){for(;re!==null&&!Ev();)gD(re)}function gD(f){var v=GC(f.alternate,f,ci);f.memoizedProps=f.pendingProps,v===null?Md(f):re=v}function yD(f){var v=f,g=v.alternate;switch(v.tag){case 15:case 0:v=NC(g,v,v.pendingProps,v.type,void 0,ne);break;case 11:v=NC(g,v,v.pendingProps,v.type.render,v.ref,ne);break;case 5:s0(v);default:UC(g,v),v=re=pA(v,ci),v=GC(g,v,ci)}f.memoizedProps=f.pendingProps,v===null?Md(f):re=v}function au(f,v,g,x){ei=rl=null,s0(v),Xs=null,Wf=0;var T=v.return;try{if(t6(f,T,v,g,ne)){ke=1,pd(f,Da(g,f.current)),re=null;return}}catch(C){if(T!==null)throw re=T,C;ke=1,pd(f,Da(g,f.current)),re=null;return}v.flags&32768?(se||x===1?f=!0:Js||(ne&536870912)!==0?f=!1:(Qi=f=!0,(x===2||x===9||x===3||x===6)&&(x=ua.current,x!==null&&x.tag===13&&(x.flags|=16384))),mD(v,f)):Md(v)}function Md(f){var v=f;do{if((v.flags&32768)!==0){mD(v,Qi);return}f=v.return;var g=a6(v.alternate,v,ci);if(g!==null){re=g;return}if(v=v.sibling,v!==null){re=v;return}re=v=f}while(v!==null);ke===0&&(ke=5)}function mD(f,v){do{var g=n6(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);ke=6,re=null}function _D(f,v,g,x,T,C,I,V,X){f.cancelPendingCommit=null;do Ld();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|=Pm,YV(f,g,C,I,V,X),f===Me&&(re=Me=null,ne=0),eu=v,eo=f,hi=g,F0=C,j0=T,sD=x,(v.subtreeFlags&10256)!==0||(v.flags&10256)!==0?(f.callbackNode=null,f.callbackPriority=0,g6(Rv,function(){return TD(),null})):(f.callbackNode=null,f.callbackPriority=0),x=(v.flags&13878)!==0,(v.subtreeFlags&13878)!==0||x){x=k.T,k.T=null,T=j.p,j.p=2,I=ge,ge|=4;try{i6(f,v,g)}finally{ge=I,j.p=T,k.T=x}}Je=1,xD(),bD(),SD()}}function xD(){if(Je===1){Je=0;var f=eo,v=eu,g=(v.flags&13878)!==0;if((v.subtreeFlags&13878)!==0||g){g=k.T,k.T=null;var x=j.p;j.p=2;var T=ge;ge|=4;try{tD(v,f);var C=i1,I=oA(f.containerInfo),V=C.focusedElem,X=C.selectionRange;if(I!==V&&V&&V.ownerDocument&&iA(V.ownerDocument.documentElement,V)){if(X!==null&&Em(V)){var J=X.start,st=X.end;if(st===void 0&&(st=J),"selectionStart"in V)V.selectionStart=J,V.selectionEnd=Math.min(st,V.value.length);else{var ft=V.ownerDocument||document,et=ft&&ft.defaultView||window;if(et.getSelection){var nt=et.getSelection(),At=V.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=nA(V,Vt),q=nA(V,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=V;nt=nt.parentNode;)nt.nodeType===1&&ft.push({element:nt,left:nt.scrollLeft,top:nt.scrollTop});for(typeof V.focus=="function"&&V.focus(),V=0;V<ft.length;V++){var ut=ft[V];ut.element.scrollLeft=ut.left,ut.element.scrollTop=ut.top}}Hd=!!n1,i1=n1=null}finally{ge=T,j.p=x,k.T=g}}f.current=v,Je=2}}function bD(){if(Je===2){Je=0;var f=eo,v=eu,g=(v.flags&8772)!==0;if((v.subtreeFlags&8772)!==0||g){g=k.T,k.T=null;var x=j.p;j.p=2;var T=ge;ge|=4;try{qC(f,v.alternate,v)}finally{ge=T,j.p=x,k.T=g}}Je=3}}function SD(){if(Je===4||Je===3){Je=0,Mf();var f=eo,v=eu,g=hi,x=sD;(v.subtreeFlags&10256)!==0||(v.flags&10256)!==0?Je=5:(Je=0,eu=eo=null,wD(f,f.pendingLanes));var T=f.pendingLanes;if(T===0&&(to=null),cm(g),v=v.stateNode,ia&&typeof ia.onCommitFiberRoot=="function")try{ia.onCommitFiberRoot(Lf,v,void 0,(v.current.flags&128)===128)}catch{}if(x!==null){v=k.T,T=j.p,j.p=2,k.T=null;try{for(var C=f.onRecoverableError,I=0;I<x.length;I++){var V=x[I];C(V.value,{componentStack:V.stack})}}finally{k.T=v,j.p=T}}(hi&3)!==0&&Ld(),Cn(f),T=f.pendingLanes,(g&261930)!==0&&(T&42)!==0?f===Y0?fc++:(fc=0,Y0=f):fc=0,cc(0)}}function wD(f,v){(f.pooledCacheLanes&=v)===0&&(v=f.pooledCache,v!=null&&(f.pooledCache=null,Yf(v)))}function Ld(){return xD(),bD(),SD(),TD()}function TD(){if(Je!==5)return!1;var f=eo,v=F0;F0=0;var g=cm(hi),x=k.T,T=j.p;try{j.p=32>g?32:g,k.T=null,g=j0,j0=null;var C=eo,I=hi;if(Je=0,eu=eo=null,hi=0,(ge&6)!==0)throw Error(a(331));var V=ge;if(ge|=4,iD(C.current),rD(C,C.current,I,g),ge=V,cc(0,!1),ia&&typeof ia.onPostCommitFiberRoot=="function")try{ia.onPostCommitFiberRoot(Lf,C)}catch{}return!0}finally{j.p=T,k.T=x,wD(f,v)}}function AD(f,v,g){v=Da(g,v),v=w0(f.stateNode,v,2),f=Zi(f,v,2),f!==null&&(Rf(f,2),Cn(f))}function be(f,v,g){if(f.tag===3)AD(f,f,g);else for(;v!==null;){if(v.tag===3){AD(v,f,g);break}else if(v.tag===1){var x=v.stateNode;if(typeof v.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(to===null||!to.has(x))){f=Da(g,f),g=CC(2),x=Zi(v,g,2),x!==null&&(DC(g,x,v,f),Rf(x,2),Cn(x));break}}v=v.return}}function Z0(f,v,g){var x=f.pingCache;if(x===null){x=f.pingCache=new s6;var T=new Set;x.set(v,T)}else T=x.get(v),T===void 0&&(T=new Set,x.set(v,T));T.has(g)||(G0=!0,T.add(g),f=v6.bind(null,f,v,g),v.then(f,f))}function v6(f,v,g){var x=f.pingCache;x!==null&&x.delete(v),f.pingedLanes|=f.suspendedLanes&g,f.warmLanes&=~g,Me===f&&(ne&g)===g&&(ke===4||ke===3&&(ne&62914560)===ne&&300>na()-wd?(ge&2)===0&&ru(f,0):H0|=g,tu===ne&&(tu=0)),Cn(f)}function CD(f,v){v===0&&(v=x2()),f=Jo(f,v),f!==null&&(Rf(f,v),Cn(f))}function d6(f){var v=f.memoizedState,g=0;v!==null&&(g=v.retryLane),CD(f,g)}function p6(f,v){var g=0;switch(f.tag){case 31:case 13:var x=f.stateNode,T=f.memoizedState;T!==null&&(g=T.retryLane);break;case 19:x=f.stateNode;break;case 22:x=f.stateNode._retryCache;break;default:throw Error(a(314))}x!==null&&x.delete(v),CD(f,g)}function g6(f,v){return en(f,v)}var Ed=null,nu=null,q0=!1,Rd=!1,$0=!1,ao=0;function Cn(f){f!==nu&&f.next===null&&(nu===null?Ed=nu=f:nu=nu.next=f),Rd=!0,q0||(q0=!0,m6())}function cc(f,v){if(!$0&&Rd){$0=!0;do for(var g=!1,x=Ed;x!==null;){if(f!==0){var T=x.pendingLanes;if(T===0)var C=0;else{var I=x.suspendedLanes,V=x.pingedLanes;C=(1<<31-oa(42|f)+1)-1,C&=T&~(I&~V),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(g=!0,ED(x,C))}else C=ne,C=Pv(x,x===Me?C:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(C&3)===0||Ef(x,C)||(g=!0,ED(x,C));x=x.next}while(g);$0=!1}}function y6(){DD()}function DD(){Rd=q0=!1;var f=0;ao!==0&&M6()&&(f=ao);for(var v=na(),g=null,x=Ed;x!==null;){var T=x.next,C=MD(x,v);C===0?(x.next=null,g===null?Ed=T:g.next=T,T===null&&(nu=g)):(g=x,(f!==0||(C&3)!==0)&&(Rd=!0)),x=T}Je!==0&&Je!==5||cc(f),ao!==0&&(ao=0)}function MD(f,v){for(var g=f.suspendedLanes,x=f.pingedLanes,T=f.expirationTimes,C=f.pendingLanes&-62914561;0<C;){var I=31-oa(C),V=1<<I,X=T[I];X===-1?((V&g)===0||(V&x)!==0)&&(T[I]=jV(V,v)):X<=v&&(f.expiredLanes|=V),C&=~V}if(v=Me,g=ne,g=Pv(f,f===v?g:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),x=f.callbackNode,g===0||f===v&&(xe===2||xe===9)||f.cancelPendingCommit!==null)return x!==null&&x!==null&&wa(x),f.callbackNode=null,f.callbackPriority=0;if((g&3)===0||Ef(f,g)){if(v=g&-g,v===f.callbackPriority)return v;switch(x!==null&&wa(x),cm(g)){case 2:case 8:g=m2;break;case 32:g=Rv;break;case 268435456:g=_2;break;default:g=Rv}return x=LD.bind(null,f),g=en(g,x),f.callbackPriority=v,f.callbackNode=g,v}return x!==null&&x!==null&&wa(x),f.callbackPriority=2,f.callbackNode=null,2}function LD(f,v){if(Je!==0&&Je!==5)return f.callbackNode=null,f.callbackPriority=0,null;var g=f.callbackNode;if(Ld()&&f.callbackNode!==g)return null;var x=ne;return x=Pv(f,f===Me?x:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),x===0?null:(fD(f,x,v),MD(f,na()),f.callbackNode!=null&&f.callbackNode===g?LD.bind(null,f):null)}function ED(f,v){if(Ld())return null;fD(f,v,!0)}function m6(){E6(function(){(ge&6)!==0?en(y2,y6):DD()})}function K0(){if(ao===0){var f=Fs;f===0&&(f=Iv,Iv<<=1,(Iv&261888)===0&&(Iv=256)),ao=f}return ao}function RD(f){return f==null||typeof f=="symbol"||typeof f=="boolean"?null:typeof f=="function"?f:Vv(""+f)}function ID(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 _6(f,v,g,x,T){if(v==="submit"&&g&&g.stateNode===T){var C=RD((T[Yr]||null).action),I=x.submitter;I&&(v=(v=I[Yr]||null)?RD(v.formAction):I.getAttribute("formAction"),v!==null&&(C=v,I=null));var V=new Fv("action","action",null,x,T);f.push({event:V,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(ao!==0){var X=I?ID(T,I):new FormData(T);y0(g,{pending:!0,data:X,method:T.method,action:C},null,X)}}else typeof C=="function"&&(V.preventDefault(),X=I?ID(T,I):new FormData(T),y0(g,{pending:!0,data:X,method:T.method,action:C},C,X))},currentTarget:T}]})}}for(var Q0=0;Q0<Nm.length;Q0++){var J0=Nm[Q0],x6=J0.toLowerCase(),b6=J0[0].toUpperCase()+J0.slice(1);rn(x6,"on"+b6)}rn(uA,"onAnimationEnd"),rn(fA,"onAnimationIteration"),rn(cA,"onAnimationStart"),rn("dblclick","onDoubleClick"),rn("focusin","onFocus"),rn("focusout","onBlur"),rn(kG,"onTransitionRun"),rn(BG,"onTransitionStart"),rn(VG,"onTransitionCancel"),rn(hA,"onTransitionEnd"),Ls("onMouseEnter",["mouseout","mouseover"]),Ls("onMouseLeave",["mouseout","mouseover"]),Ls("onPointerEnter",["pointerout","pointerover"]),Ls("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 hc="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(" "),S6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hc));function OD(f,v){v=(v&4)!==0;for(var g=0;g<f.length;g++){var x=f[g],T=x.event;x=x.listeners;t:{var C=void 0;if(v)for(var I=x.length-1;0<=I;I--){var V=x[I],X=V.instance,J=V.currentTarget;if(V=V.listener,X!==C&&T.isPropagationStopped())break t;C=V,T.currentTarget=J;try{C(T)}catch(st){Xv(st)}T.currentTarget=null,C=X}else for(I=0;I<x.length;I++){if(V=x[I],X=V.instance,J=V.currentTarget,V=V.listener,X!==C&&T.isPropagationStopped())break t;C=V,T.currentTarget=J;try{C(T)}catch(st){Xv(st)}T.currentTarget=null,C=X}}}}function ae(f,v){var g=v[hm];g===void 0&&(g=v[hm]=new Set);var x=f+"__bubble";g.has(x)||(ND(v,f,2,!1),g.add(x))}function t1(f,v,g){var x=0;v&&(x|=4),ND(g,f,x,v)}var Id="_reactListening"+Math.random().toString(36).slice(2);function e1(f){if(!f[Id]){f[Id]=!0,D2.forEach(function(g){g!=="selectionchange"&&(S6.has(g)||t1(g,!1,f),t1(g,!0,f))});var v=f.nodeType===9?f:f.ownerDocument;v===null||v[Id]||(v[Id]=!0,t1("selectionchange",!1,v))}}function ND(f,v,g,x){switch(uM(v)){case 2:var T=$6;break;case 8:T=K6;break;default:T=g1}g=T.bind(null,v,g,f),T=void 0,!bm||v!=="touchstart"&&v!=="touchmove"&&v!=="wheel"||(T=!0),x?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 r1(f,v,g,x,T){var C=x;if((v&1)===0&&(v&2)===0&&x!==null)t:for(;;){if(x===null)return;var I=x.tag;if(I===3||I===4){var V=x.stateNode.containerInfo;if(V===T)break;if(I===4)for(I=x.return;I!==null;){var X=I.tag;if((X===3||X===4)&&I.stateNode.containerInfo===T)return;I=I.return}for(;V!==null;){if(I=Cs(V),I===null)return;if(X=I.tag,X===5||X===6||X===26||X===27){x=C=I;continue t}V=V.parentNode}}x=x.return}V2(function(){var J=C,st=_m(g),ft=[];t:{var et=vA.get(f);if(et!==void 0){var nt=Fv,At=f;switch(f){case"keypress":if(Hv(g)===0)break t;case"keydown":case"keyup":nt=pG;break;case"focusin":At="focus",nt=Am;break;case"focusout":At="blur",nt=Am;break;case"beforeblur":case"afterblur":nt=Am;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=U2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":nt=aG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":nt=mG;break;case uA:case fA:case cA:nt=oG;break;case hA:nt=xG;break;case"scroll":case"scrollend":nt=eG;break;case"wheel":nt=SG;break;case"copy":case"cut":case"paste":nt=sG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":nt=j2;break;case"toggle":case"beforetoggle":nt=TG}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=Nf(q,K),ut!=null&&Vt.push(vc(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!==mm&&(At=g.relatedTarget||g.fromElement)&&(Cs(At)||At[As]))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?Cs(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=U2,ut="onMouseLeave",K="onMouseEnter",q="mouse",(f==="pointerout"||f==="pointerover")&&(Vt=j2,ut="onPointerLeave",K="onPointerEnter",q="pointer"),Ce=nt==null?et:Of(nt),Q=At==null?et:Of(At),et=new Vt(ut,q+"leave",nt,g,st),et.target=Ce,et.relatedTarget=Q,ut=null,Cs(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=w6,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&&PD(ft,et,nt,Vt,!1),At!==null&&Ce!==null&&PD(ft,Ce,At,Vt,!0)}}t:{if(et=J?Of(J):window,nt=et.nodeName&&et.nodeName.toLowerCase(),nt==="select"||nt==="input"&&et.type==="file")var he=Q2;else if($2(et))if(J2)he=NG;else{he=IG;var Lt=RG}else nt=et.nodeName,!nt||nt.toLowerCase()!=="input"||et.type!=="checkbox"&&et.type!=="radio"?J&&ym(J.elementType)&&(he=Q2):he=OG;if(he&&(he=he(f,J))){K2(ft,he,g,st);break t}Lt&&Lt(f,et,J),f==="focusout"&&J&&et.type==="number"&&J.memoizedProps.value!=null&&gm(et,"number",et.value)}switch(Lt=J?Of(J):window,f){case"focusin":($2(Lt)||Lt.contentEditable==="true")&&(Ps=Lt,Rm=J,Uf=null);break;case"focusout":Uf=Rm=Ps=null;break;case"mousedown":Im=!0;break;case"contextmenu":case"mouseup":case"dragend":Im=!1,lA(ft,g,st);break;case"selectionchange":if(zG)break;case"keydown":case"keyup":lA(ft,g,st)}var Kt;if(Dm)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 Ns?Z2(f,g)&&(ie="onCompositionEnd"):f==="keydown"&&g.keyCode===229&&(ie="onCompositionStart");ie&&(Y2&&g.locale!=="ko"&&(Ns||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&Ns&&(Kt=G2()):(Hi=st,Sm="value"in Hi?Hi.value:Hi.textContent,Ns=!0)),Lt=Od(J,ie),0<Lt.length&&(ie=new F2(ie,f,null,g,st),ft.push({event:ie,listeners:Lt}),Kt?ie.data=Kt:(Kt=q2(g),Kt!==null&&(ie.data=Kt)))),(Kt=CG?DG(f,g):MG(f,g))&&(ie=Od(J,"onBeforeInput"),0<ie.length&&(Lt=new F2("onBeforeInput","beforeinput",null,g,st),ft.push({event:Lt,listeners:ie}),Lt.data=Kt)),_6(ft,f,J,g,st)}OD(ft,v)})}function vc(f,v,g){return{instance:f,listener:v,currentTarget:g}}function Od(f,v){for(var g=v+"Capture",x=[];f!==null;){var T=f,C=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||C===null||(T=Nf(f,g),T!=null&&x.unshift(vc(f,T,C)),T=Nf(f,v),T!=null&&x.push(vc(f,T,C))),f.tag===3)return x;f=f.return}return[]}function w6(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5&&f.tag!==27);return f||null}function PD(f,v,g,x,T){for(var C=v._reactName,I=[];g!==null&&g!==x;){var V=g,X=V.alternate,J=V.stateNode;if(V=V.tag,X!==null&&X===x)break;V!==5&&V!==26&&V!==27||J===null||(X=J,T?(J=Nf(g,C),J!=null&&I.unshift(vc(g,J,X))):T||(J=Nf(g,C),J!=null&&I.push(vc(g,J,X)))),g=g.return}I.length!==0&&f.push({event:v,listeners:I})}var T6=/\r\n?/g,A6=/\u0000|\uFFFD/g;function zD(f){return(typeof f=="string"?f:""+f).replace(T6,`
49
+ `).replace(A6,"")}function kD(f,v){return v=zD(v),zD(f)===v}function Ae(f,v,g,x,T,C){switch(g){case"children":typeof x=="string"?v==="body"||v==="textarea"&&x===""||Rs(f,x):(typeof x=="number"||typeof x=="bigint")&&v!=="body"&&Rs(f,""+x);break;case"className":kv(f,"class",x);break;case"tabIndex":kv(f,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":kv(f,g,x);break;case"style":k2(f,x,C);break;case"data":if(v!=="object"){kv(f,"data",x);break}case"src":case"href":if(x===""&&(v!=="a"||g!=="href")){f.removeAttribute(g);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){f.removeAttribute(g);break}x=Vv(""+x),f.setAttribute(g,x);break;case"action":case"formAction":if(typeof x=="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(x==null||typeof x=="symbol"||typeof x=="boolean"){f.removeAttribute(g);break}x=Vv(""+x),f.setAttribute(g,x);break;case"onClick":x!=null&&(f.onclick=Kn);break;case"onScroll":x!=null&&ae("scroll",f);break;case"onScrollEnd":x!=null&&ae("scrollend",f);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(a(61));if(g=x.__html,g!=null){if(T.children!=null)throw Error(a(60));f.innerHTML=g}}break;case"multiple":f.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":f.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){f.removeAttribute("xlink:href");break}g=Vv(""+x),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":x!=null&&typeof x!="function"&&typeof x!="symbol"?f.setAttribute(g,""+x):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":x&&typeof x!="function"&&typeof x!="symbol"?f.setAttribute(g,""):f.removeAttribute(g);break;case"capture":case"download":x===!0?f.setAttribute(g,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?f.setAttribute(g,x):f.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?f.setAttribute(g,x):f.removeAttribute(g);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?f.removeAttribute(g):f.setAttribute(g,x);break;case"popover":ae("beforetoggle",f),ae("toggle",f),zv(f,"popover",x);break;case"xlinkActuate":$n(f,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":$n(f,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":$n(f,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":$n(f,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":$n(f,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":$n(f,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":$n(f,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":$n(f,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":$n(f,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":zv(f,"is",x);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=JV.get(g)||g,zv(f,g,x))}}function a1(f,v,g,x,T,C){switch(g){case"style":k2(f,x,C);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(a(61));if(g=x.__html,g!=null){if(T.children!=null)throw Error(a(60));f.innerHTML=g}}break;case"children":typeof x=="string"?Rs(f,x):(typeof x=="number"||typeof x=="bigint")&&Rs(f,""+x);break;case"onScroll":x!=null&&ae("scroll",f);break;case"onScrollEnd":x!=null&&ae("scrollend",f);break;case"onClick":x!=null&&(f.onclick=Kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!M2.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[Yr]||null,C=C!=null?C[g]:null,typeof C=="function"&&f.removeEventListener(v,C,T),typeof x=="function")){typeof C!="function"&&C!==null&&(g in f?f[g]=null:f.hasAttribute(g)&&f.removeAttribute(g)),f.addEventListener(v,x,T);break t}g in f?f[g]=x:x===!0?f.setAttribute(g,""):zv(f,g,x)}}}function yr(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 x=!1,T=!1,C;for(C in g)if(g.hasOwnProperty(C)){var I=g[C];if(I!=null)switch(C){case"src":x=!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),x&&Ae(f,v,"src",g.src,g,null);return;case"input":ae("invalid",f);var V=C=I=T=null,X=null,J=null;for(x in g)if(g.hasOwnProperty(x)){var st=g[x];if(st!=null)switch(x){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":V=st;break;case"children":case"dangerouslySetInnerHTML":if(st!=null)throw Error(a(137,v));break;default:Ae(f,v,x,st,g,null)}}O2(f,C,V,X,J,I,T,!1);return;case"select":ae("invalid",f),x=I=C=null;for(T in g)if(g.hasOwnProperty(T)&&(V=g[T],V!=null))switch(T){case"value":C=V;break;case"defaultValue":I=V;break;case"multiple":x=V;default:Ae(f,v,T,V,g,null)}v=C,g=I,f.multiple=!!x,v!=null?Es(f,!!x,v,!1):g!=null&&Es(f,!!x,g,!0);return;case"textarea":ae("invalid",f),C=T=x=null;for(I in g)if(g.hasOwnProperty(I)&&(V=g[I],V!=null))switch(I){case"value":x=V;break;case"defaultValue":T=V;break;case"children":C=V;break;case"dangerouslySetInnerHTML":if(V!=null)throw Error(a(91));break;default:Ae(f,v,I,V,g,null)}P2(f,x,T,C);return;case"option":for(X in g)if(g.hasOwnProperty(X)&&(x=g[X],x!=null))switch(X){case"selected":f.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:Ae(f,v,X,x,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(x=0;x<hc.length;x++)ae(hc[x],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)&&(x=g[J],x!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,v));default:Ae(f,v,J,x,g,null)}return;default:if(ym(v)){for(st in g)g.hasOwnProperty(st)&&(x=g[st],x!==void 0&&a1(f,v,st,x,g,void 0));return}}for(V in g)g.hasOwnProperty(V)&&(x=g[V],x!=null&&Ae(f,v,V,x,g,null))}function C6(f,v,g,x){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,V=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:x.hasOwnProperty(nt)||Ae(f,v,nt,null,x,ft)}}for(var et in x){var nt=x[et];if(ft=g[et],x.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":V=nt;break;case"children":case"dangerouslySetInnerHTML":if(nt!=null)throw Error(a(137,v));break;default:nt!==ft&&Ae(f,v,et,nt,x,ft)}}pm(f,I,V,X,J,st,C,T);return;case"select":nt=I=V=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:x.hasOwnProperty(C)||Ae(f,v,C,null,x,X)}for(T in x)if(C=x[T],X=g[T],x.hasOwnProperty(T)&&(C!=null||X!=null))switch(T){case"value":et=C;break;case"defaultValue":V=C;break;case"multiple":I=C;default:C!==X&&Ae(f,v,T,C,x,X)}v=V,g=I,x=nt,et!=null?Es(f,!!g,et,!1):!!x!=!!g&&(v!=null?Es(f,!!g,v,!0):Es(f,!!g,g?[]:"",!1));return;case"textarea":nt=et=null;for(V in g)if(T=g[V],g.hasOwnProperty(V)&&T!=null&&!x.hasOwnProperty(V))switch(V){case"value":break;case"children":break;default:Ae(f,v,V,null,x,T)}for(I in x)if(T=x[I],C=g[I],x.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,x,C)}N2(f,et,nt);return;case"option":for(var At in g)if(et=g[At],g.hasOwnProperty(At)&&et!=null&&!x.hasOwnProperty(At))switch(At){case"selected":f.selected=!1;break;default:Ae(f,v,At,null,x,et)}for(X in x)if(et=x[X],nt=g[X],x.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,x,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&&!x.hasOwnProperty(Vt)&&Ae(f,v,Vt,null,x,et);for(J in x)if(et=x[J],nt=g[J],x.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,x,nt)}return;default:if(ym(v)){for(var Ce in g)et=g[Ce],g.hasOwnProperty(Ce)&&et!==void 0&&!x.hasOwnProperty(Ce)&&a1(f,v,Ce,void 0,x,et);for(st in x)et=x[st],nt=g[st],!x.hasOwnProperty(st)||et===nt||et===void 0&&nt===void 0||a1(f,v,st,et,x,nt);return}}for(var K in g)et=g[K],g.hasOwnProperty(K)&&et!=null&&!x.hasOwnProperty(K)&&Ae(f,v,K,null,x,et);for(ft in x)et=x[ft],nt=g[ft],!x.hasOwnProperty(ft)||et===nt||et==null&&nt==null||Ae(f,v,ft,et,x,nt)}function BD(f){switch(f){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function D6(){if(typeof performance.getEntriesByType=="function"){for(var f=0,v=0,g=performance.getEntriesByType("resource"),x=0;x<g.length;x++){var T=g[x],C=T.transferSize,I=T.initiatorType,V=T.duration;if(C&&V&&BD(I)){for(I=0,V=T.responseEnd,x+=1;x<g.length;x++){var X=g[x],J=X.startTime;if(J>V)break;var st=X.transferSize,ft=X.initiatorType;st&&BD(ft)&&(X=X.responseEnd,I+=st*(X<V?1:(V-J)/(X-J)))}if(--x,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 n1=null,i1=null;function Nd(f){return f.nodeType===9?f:f.ownerDocument}function VD(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 GD(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 o1(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 l1=null;function M6(){var f=window.event;return f&&f.type==="popstate"?f===l1?!1:(l1=f,!0):(l1=null,!1)}var HD=typeof setTimeout=="function"?setTimeout:void 0,L6=typeof clearTimeout=="function"?clearTimeout:void 0,UD=typeof Promise=="function"?Promise:void 0,E6=typeof queueMicrotask=="function"?queueMicrotask:typeof UD<"u"?function(f){return UD.resolve(null).then(f).catch(R6)}:HD;function R6(f){setTimeout(function(){throw f})}function no(f){return f==="head"}function FD(f,v){var g=v,x=0;do{var T=g.nextSibling;if(f.removeChild(g),T&&T.nodeType===8)if(g=T.data,g==="/$"||g==="/&"){if(x===0){f.removeChild(T),su(v);return}x--}else if(g==="$"||g==="$?"||g==="$~"||g==="$!"||g==="&")x++;else if(g==="html")dc(f.ownerDocument.documentElement);else if(g==="head"){g=f.ownerDocument.head,dc(g);for(var C=g.firstChild;C;){var I=C.nextSibling,V=C.nodeName;C[If]||V==="SCRIPT"||V==="STYLE"||V==="LINK"&&C.rel.toLowerCase()==="stylesheet"||g.removeChild(C),C=I}}else g==="body"&&dc(f.ownerDocument.body);g=T}while(g);su(v)}function jD(f,v){var g=f;f=0;do{var x=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||""),x&&x.nodeType===8)if(g=x.data,g==="/$"){if(f===0)break;f--}else g!=="$"&&g!=="$?"&&g!=="$~"&&g!=="$!"||f++;g=x}while(g)}function s1(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":s1(g),vm(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}f.removeChild(g)}}function I6(f,v,g,x){for(;f.nodeType===1;){var T=g;if(f.nodeName.toLowerCase()!==v.toLowerCase()){if(!x&&(f.nodeName!=="INPUT"||f.type!=="hidden"))break}else if(x){if(!f[If])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=Ia(f.nextSibling),f===null)break}return null}function O6(f,v,g){if(v==="")return null;for(;f.nodeType!==3;)if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!g||(f=Ia(f.nextSibling),f===null))return null;return f}function YD(f,v){for(;f.nodeType!==8;)if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!v||(f=Ia(f.nextSibling),f===null))return null;return f}function u1(f){return f.data==="$?"||f.data==="$~"}function f1(f){return f.data==="$!"||f.data==="$?"&&f.ownerDocument.readyState!=="loading"}function N6(f,v){var g=f.ownerDocument;if(f.data==="$~")f._reactRetry=v;else if(f.data!=="$?"||g.readyState!=="loading")v();else{var x=function(){v(),g.removeEventListener("DOMContentLoaded",x)};g.addEventListener("DOMContentLoaded",x),f._reactRetry=x}}function Ia(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 c1=null;function XD(f){f=f.nextSibling;for(var v=0;f;){if(f.nodeType===8){var g=f.data;if(g==="/$"||g==="/&"){if(v===0)return Ia(f.nextSibling);v--}else g!=="$"&&g!=="$!"&&g!=="$?"&&g!=="$~"&&g!=="&"||v++}f=f.nextSibling}return null}function WD(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 ZD(f,v,g){switch(v=Nd(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 dc(f){for(var v=f.attributes;v.length;)f.removeAttributeNode(v[0]);vm(f)}var Oa=new Map,qD=new Set;function Pd(f){return typeof f.getRootNode=="function"?f.getRootNode():f.nodeType===9?f:f.ownerDocument}var vi=j.d;j.d={f:P6,r:z6,D:k6,C:B6,L:V6,m:G6,X:U6,S:H6,M:F6};function P6(){var f=vi.f(),v=Cd();return f||v}function z6(f){var v=Ds(f);v!==null&&v.tag===5&&v.type==="form"?hC(v):vi.r(f)}var iu=typeof document>"u"?null:document;function $D(f,v,g){var x=iu;if(x&&typeof v=="string"&&v){var T=Aa(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},x.querySelector(T)===null&&(v=x.createElement("link"),yr(v,"link",f),ur(v),x.head.appendChild(v)))}}function k6(f){vi.D(f),$D("dns-prefetch",f,null)}function B6(f,v){vi.C(f,v),$D("preconnect",f,v)}function V6(f,v,g){vi.L(f,v,g);var x=iu;if(x&&f&&v){var T='link[rel="preload"][as="'+Aa(v)+'"]';v==="image"&&g&&g.imageSrcSet?(T+='[imagesrcset="'+Aa(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(T+='[imagesizes="'+Aa(g.imageSizes)+'"]')):T+='[href="'+Aa(f)+'"]';var C=T;switch(v){case"style":C=ou(f);break;case"script":C=lu(f)}Oa.has(C)||(f=h({rel:"preload",href:v==="image"&&g&&g.imageSrcSet?void 0:f,as:v},g),Oa.set(C,f),x.querySelector(T)!==null||v==="style"&&x.querySelector(pc(C))||v==="script"&&x.querySelector(gc(C))||(v=x.createElement("link"),yr(v,"link",f),ur(v),x.head.appendChild(v)))}}function G6(f,v){vi.m(f,v);var g=iu;if(g&&f){var x=v&&typeof v.as=="string"?v.as:"script",T='link[rel="modulepreload"][as="'+Aa(x)+'"][href="'+Aa(f)+'"]',C=T;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=lu(f)}if(!Oa.has(C)&&(f=h({rel:"modulepreload",href:f},v),Oa.set(C,f),g.querySelector(T)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(gc(C)))return}x=g.createElement("link"),yr(x,"link",f),ur(x),g.head.appendChild(x)}}}function H6(f,v,g){vi.S(f,v,g);var x=iu;if(x&&f){var T=Ms(x).hoistableStyles,C=ou(f);v=v||"default";var I=T.get(C);if(!I){var V={loading:0,preload:null};if(I=x.querySelector(pc(C)))V.loading=5;else{f=h({rel:"stylesheet",href:f,"data-precedence":v},g),(g=Oa.get(C))&&h1(f,g);var X=I=x.createElement("link");ur(X),yr(X,"link",f),X._p=new Promise(function(J,st){X.onload=J,X.onerror=st}),X.addEventListener("load",function(){V.loading|=1}),X.addEventListener("error",function(){V.loading|=2}),V.loading|=4,zd(I,v,x)}I={type:"stylesheet",instance:I,count:1,state:V},T.set(C,I)}}}function U6(f,v){vi.X(f,v);var g=iu;if(g&&f){var x=Ms(g).hoistableScripts,T=lu(f),C=x.get(T);C||(C=g.querySelector(gc(T)),C||(f=h({src:f,async:!0},v),(v=Oa.get(T))&&v1(f,v),C=g.createElement("script"),ur(C),yr(C,"link",f),g.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},x.set(T,C))}}function F6(f,v){vi.M(f,v);var g=iu;if(g&&f){var x=Ms(g).hoistableScripts,T=lu(f),C=x.get(T);C||(C=g.querySelector(gc(T)),C||(f=h({src:f,async:!0,type:"module"},v),(v=Oa.get(T))&&v1(f,v),C=g.createElement("script"),ur(C),yr(C,"link",f),g.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},x.set(T,C))}}function KD(f,v,g,x){var T=(T=bt.current)?Pd(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=ou(g.href),g=Ms(T).hoistableStyles,x=g.get(v),x||(x={type:"style",instance:null,count:0,state:null},g.set(v,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){f=ou(g.href);var C=Ms(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(pc(f)))&&!C._p&&(I.instance=C,I.state.loading=5),Oa.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},Oa.set(f,g),C||j6(T,f,g,I.state))),v&&x===null)throw Error(a(528,""));return I}if(v&&x!==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=lu(g),g=Ms(T).hoistableScripts,x=g.get(v),x||(x={type:"script",instance:null,count:0,state:null},g.set(v,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,f))}}function ou(f){return'href="'+Aa(f)+'"'}function pc(f){return'link[rel="stylesheet"]['+f+"]"}function QD(f){return h({},f,{"data-precedence":f.precedence,precedence:null})}function j6(f,v,g,x){f.querySelector('link[rel="preload"][as="style"]['+v+"]")?x.loading=1:(v=f.createElement("link"),x.preload=v,v.addEventListener("load",function(){return x.loading|=1}),v.addEventListener("error",function(){return x.loading|=2}),yr(v,"link",g),ur(v),f.head.appendChild(v))}function lu(f){return'[src="'+Aa(f)+'"]'}function gc(f){return"script[async]"+f}function JD(f,v,g){if(v.count++,v.instance===null)switch(v.type){case"style":var x=f.querySelector('style[data-href~="'+Aa(g.href)+'"]');if(x)return v.instance=x,ur(x),x;var T=h({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return x=(f.ownerDocument||f).createElement("style"),ur(x),yr(x,"style",T),zd(x,g.precedence,f),v.instance=x;case"stylesheet":T=ou(g.href);var C=f.querySelector(pc(T));if(C)return v.state.loading|=4,v.instance=C,ur(C),C;x=QD(g),(T=Oa.get(T))&&h1(x,T),C=(f.ownerDocument||f).createElement("link"),ur(C);var I=C;return I._p=new Promise(function(V,X){I.onload=V,I.onerror=X}),yr(C,"link",x),v.state.loading|=4,zd(C,g.precedence,f),v.instance=C;case"script":return C=lu(g.src),(T=f.querySelector(gc(C)))?(v.instance=T,ur(T),T):(x=g,(T=Oa.get(C))&&(x=h({},g),v1(x,T)),f=f.ownerDocument||f,T=f.createElement("script"),ur(T),yr(T,"link",x),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&&(x=v.instance,v.state.loading|=4,zd(x,g.precedence,f));return v.instance}function zd(f,v,g){for(var x=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=x.length?x[x.length-1]:null,C=T,I=0;I<x.length;I++){var V=x[I];if(V.dataset.precedence===v)C=V;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 h1(f,v){f.crossOrigin==null&&(f.crossOrigin=v.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=v.referrerPolicy),f.title==null&&(f.title=v.title)}function v1(f,v){f.crossOrigin==null&&(f.crossOrigin=v.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=v.referrerPolicy),f.integrity==null&&(f.integrity=v.integrity)}var kd=null;function tM(f,v,g){if(kd===null){var x=new Map,T=kd=new Map;T.set(g,x)}else T=kd,x=T.get(g),x||(x=new Map,T.set(g,x));if(x.has(f))return x;for(x.set(f,null),g=g.getElementsByTagName(f),T=0;T<g.length;T++){var C=g[T];if(!(C[If]||C[vr]||f==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var I=C.getAttribute(v)||"";I=f+I;var V=x.get(I);V?V.push(C):x.set(I,[C])}}return x}function eM(f,v,g){f=f.ownerDocument||f,f.head.insertBefore(g,v==="title"?f.querySelector("head > title"):null)}function Y6(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 rM(f){return!(f.type==="stylesheet"&&(f.state.loading&3)===0)}function X6(f,v,g,x){if(g.type==="stylesheet"&&(typeof x.media!="string"||matchMedia(x.media).matches!==!1)&&(g.state.loading&4)===0){if(g.instance===null){var T=ou(x.href),C=v.querySelector(pc(T));if(C){v=C._p,v!==null&&typeof v=="object"&&typeof v.then=="function"&&(f.count++,f=Bd.bind(f),v.then(f,f)),g.state.loading|=4,g.instance=C,ur(C);return}C=v.ownerDocument||v,x=QD(x),(T=Oa.get(T))&&h1(x,T),C=C.createElement("link"),ur(C);var I=C;I._p=new Promise(function(V,X){I.onload=V,I.onerror=X}),yr(C,"link",x),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=Bd.bind(f),v.addEventListener("load",g),v.addEventListener("error",g))}}var d1=0;function W6(f,v){return f.stylesheets&&f.count===0&&Gd(f,f.stylesheets),0<f.count||0<f.imgCount?function(g){var x=setTimeout(function(){if(f.stylesheets&&Gd(f,f.stylesheets),f.unsuspend){var C=f.unsuspend;f.unsuspend=null,C()}},6e4+v);0<f.imgBytes&&d1===0&&(d1=62500*D6());var T=setTimeout(function(){if(f.waitingForImages=!1,f.count===0&&(f.stylesheets&&Gd(f,f.stylesheets),f.unsuspend)){var C=f.unsuspend;f.unsuspend=null,C()}},(f.imgBytes>d1?50:800)+v);return f.unsuspend=g,function(){f.unsuspend=null,clearTimeout(x),clearTimeout(T)}}:null}function Bd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gd(this,this.stylesheets);else if(this.unsuspend){var f=this.unsuspend;this.unsuspend=null,f()}}}var Vd=null;function Gd(f,v){f.stylesheets=null,f.unsuspend!==null&&(f.count++,Vd=new Map,v.forEach(Z6,f),Vd=null,Bd.call(f))}function Z6(f,v){if(!(v.state.loading&4)){var g=Vd.get(f);if(g)var x=g.get(null);else{g=new Map,Vd.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),x=I)}x&&g.set(null,x)}T=v.instance,I=T.getAttribute("data-precedence"),C=g.get(I)||x,C===x&&g.set(null,T),g.set(I,T),this.count++,x=Bd.bind(this),T.addEventListener("load",x),T.addEventListener("error",x),C?C.parentNode.insertBefore(T,C.nextSibling):(f=f.nodeType===9?f.head:f,f.insertBefore(T,f.firstChild)),v.state.loading|=4}}var yc={$$typeof:w,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function q6(f,v,g,x,T,C,I,V,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=um(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=um(0),this.hiddenUpdates=um(null),this.identifierPrefix=x,this.onUncaughtError=T,this.onCaughtError=C,this.onRecoverableError=I,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function aM(f,v,g,x,T,C,I,V,X,J,st,ft){return f=new q6(f,v,g,I,X,J,st,ft,V),v=1,C===!0&&(v|=24),C=sa(3,null,null,v),f.current=C,C.stateNode=f,v=Wm(),v.refCount++,f.pooledCache=v,v.refCount++,C.memoizedState={element:x,isDehydrated:g,cache:v},Km(C),f}function nM(f){return f?(f=Bs,f):Bs}function iM(f,v,g,x,T,C){T=nM(T),x.context===null?x.context=T:x.pendingContext=T,x=Wi(v),x.payload={element:g},C=C===void 0?null:C,C!==null&&(x.callback=C),g=Zi(f,x,v),g!==null&&(Kr(g,f,v),qf(g,f,v))}function oM(f,v){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var g=f.retryLane;f.retryLane=g!==0&&g<v?g:v}}function p1(f,v){oM(f,v),(f=f.alternate)&&oM(f,v)}function lM(f){if(f.tag===13||f.tag===31){var v=Jo(f,67108864);v!==null&&Kr(v,f,67108864),p1(f,67108864)}}function sM(f){if(f.tag===13||f.tag===31){var v=va();v=fm(v);var g=Jo(f,v);g!==null&&Kr(g,f,v),p1(f,v)}}var Hd=!0;function $6(f,v,g,x){var T=k.T;k.T=null;var C=j.p;try{j.p=2,g1(f,v,g,x)}finally{j.p=C,k.T=T}}function K6(f,v,g,x){var T=k.T;k.T=null;var C=j.p;try{j.p=8,g1(f,v,g,x)}finally{j.p=C,k.T=T}}function g1(f,v,g,x){if(Hd){var T=y1(x);if(T===null)r1(f,v,x,Ud,g),fM(f,x);else if(J6(T,f,v,g,x))x.stopPropagation();else if(fM(f,x),v&4&&-1<Q6.indexOf(f)){for(;T!==null;){var C=Ds(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 V=C;for(V.pendingLanes|=2,V.entangledLanes|=2;I;){var X=1<<31-oa(I);V.entanglements[1]|=X,I&=~X}Cn(C),(ge&6)===0&&(Td=na()+500,cc(0))}}break;case 31:case 13:V=Jo(C,2),V!==null&&Kr(V,C,2),Cd(),p1(C,2)}if(C=y1(x),C===null&&r1(f,v,x,Ud,g),C===T)break;T=C}T!==null&&x.stopPropagation()}else r1(f,v,x,null,g)}}function y1(f){return f=_m(f),m1(f)}var Ud=null;function m1(f){if(Ud=null,f=Cs(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 Ud=f,null}function uM(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(kV()){case y2:return 2;case m2:return 8;case Rv:case BV:return 32;case _2:return 268435456;default:return 32}default:return 32}}var _1=!1,io=null,oo=null,lo=null,mc=new Map,_c=new Map,so=[],Q6="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 fM(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":mc.delete(v.pointerId);break;case"gotpointercapture":case"lostpointercapture":_c.delete(v.pointerId)}}function xc(f,v,g,x,T,C){return f===null||f.nativeEvent!==C?(f={blockedOn:v,domEventName:g,eventSystemFlags:x,nativeEvent:C,targetContainers:[T]},v!==null&&(v=Ds(v),v!==null&&lM(v)),f):(f.eventSystemFlags|=x,v=f.targetContainers,T!==null&&v.indexOf(T)===-1&&v.push(T),f)}function J6(f,v,g,x,T){switch(v){case"focusin":return io=xc(io,f,v,g,x,T),!0;case"dragenter":return oo=xc(oo,f,v,g,x,T),!0;case"mouseover":return lo=xc(lo,f,v,g,x,T),!0;case"pointerover":var C=T.pointerId;return mc.set(C,xc(mc.get(C)||null,f,v,g,x,T)),!0;case"gotpointercapture":return C=T.pointerId,_c.set(C,xc(_c.get(C)||null,f,v,g,x,T)),!0}return!1}function cM(f){var v=Cs(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,A2(f.priority,function(){sM(g)});return}}else if(v===31){if(v=l(g),v!==null){f.blockedOn=v,A2(f.priority,function(){sM(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 Fd(f){if(f.blockedOn!==null)return!1;for(var v=f.targetContainers;0<v.length;){var g=y1(f.nativeEvent);if(g===null){g=f.nativeEvent;var x=new g.constructor(g.type,g);mm=x,g.target.dispatchEvent(x),mm=null}else return v=Ds(g),v!==null&&lM(v),f.blockedOn=g,!1;v.shift()}return!0}function hM(f,v,g){Fd(f)&&g.delete(v)}function t8(){_1=!1,io!==null&&Fd(io)&&(io=null),oo!==null&&Fd(oo)&&(oo=null),lo!==null&&Fd(lo)&&(lo=null),mc.forEach(hM),_c.forEach(hM)}function jd(f,v){f.blockedOn===v&&(f.blockedOn=null,_1||(_1=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,t8)))}var Yd=null;function vM(f){Yd!==f&&(Yd=f,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Yd===f&&(Yd=null);for(var v=0;v<f.length;v+=3){var g=f[v],x=f[v+1],T=f[v+2];if(typeof x!="function"){if(m1(x||g)===null)continue;break}var C=Ds(g);C!==null&&(f.splice(v,3),v-=3,y0(C,{pending:!0,data:T,method:g.method,action:x},x,T))}}))}function su(f){function v(X){return jd(X,f)}io!==null&&jd(io,f),oo!==null&&jd(oo,f),lo!==null&&jd(lo,f),mc.forEach(v),_c.forEach(v);for(var g=0;g<so.length;g++){var x=so[g];x.blockedOn===f&&(x.blockedOn=null)}for(;0<so.length&&(g=so[0],g.blockedOn===null);)cM(g),g.blockedOn===null&&so.shift();if(g=(f.ownerDocument||f).$$reactFormReplay,g!=null)for(x=0;x<g.length;x+=3){var T=g[x],C=g[x+1],I=T[Yr]||null;if(typeof C=="function")I||vM(g);else if(I){var V=null;if(C&&C.hasAttribute("formAction")){if(T=C,I=C[Yr]||null)V=I.formAction;else if(m1(T)!==null)continue}else V=I.action;typeof V=="function"?g[x+1]=V:(g.splice(x,3),x-=3),vM(g)}}}function dM(){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),x||setTimeout(g,20)}function g(){if(!x&&!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 x=!1,T=null;return navigation.addEventListener("navigate",f),navigation.addEventListener("navigatesuccess",v),navigation.addEventListener("navigateerror",v),setTimeout(g,100),function(){x=!0,navigation.removeEventListener("navigate",f),navigation.removeEventListener("navigatesuccess",v),navigation.removeEventListener("navigateerror",v),T!==null&&(T(),T=null)}}}function x1(f){this._internalRoot=f}Xd.prototype.render=x1.prototype.render=function(f){var v=this._internalRoot;if(v===null)throw Error(a(409));var g=v.current,x=va();iM(g,x,f,v,null,null)},Xd.prototype.unmount=x1.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var v=f.containerInfo;iM(f.current,2,null,f,null,null),Cd(),v[As]=null}};function Xd(f){this._internalRoot=f}Xd.prototype.unstable_scheduleHydration=function(f){if(f){var v=T2();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&&cM(f)}};var pM=e.version;if(pM!=="19.2.4")throw Error(a(527,pM,"19.2.4"));j.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 e8={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wd.isDisabled&&Wd.supportsFiber)try{Lf=Wd.inject(e8),ia=Wd}catch{}}return Sc.createRoot=function(f,v){if(!n(f))throw Error(a(299));var g=!1,x="",T=SC,C=wC,I=TC;return v!=null&&(v.unstable_strictMode===!0&&(g=!0),v.identifierPrefix!==void 0&&(x=v.identifierPrefix),v.onUncaughtError!==void 0&&(T=v.onUncaughtError),v.onCaughtError!==void 0&&(C=v.onCaughtError),v.onRecoverableError!==void 0&&(I=v.onRecoverableError)),v=aM(f,1,!1,null,null,g,x,null,T,C,I,dM),f[As]=v.current,e1(f),new x1(v)},Sc.hydrateRoot=function(f,v,g){if(!n(f))throw Error(a(299));var x=!1,T="",C=SC,I=wC,V=TC,X=null;return g!=null&&(g.unstable_strictMode===!0&&(x=!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&&(V=g.onRecoverableError),g.formState!==void 0&&(X=g.formState)),v=aM(f,1,!0,v,g??null,x,T,X,C,I,V,dM),v.context=nM(null),g=v.current,x=va(),x=fm(x),T=Wi(x),T.callback=null,Zi(g,T,x),g=x,v.current.lanes=g,Rf(v,g),Cn(v),f[As]=v.current,e1(f),new Xd(v)},Sc.version="19.2.4",Sc}var AM;function h8(){if(AM)return w1.exports;AM=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(),w1.exports=c8(),w1.exports}var v8=h8();const my="";async function d8(){const r=await fetch(`${my}/api/runs`);return r.ok?r.json():[]}async function p8(r){const e=await fetch(`${my}/api/runs/${r}`);return e.ok?e.json():null}async function g8(){const r=await fetch(`${my}/api/aggregate`);return r.ok?r.json():null}async function y8(){const r=await fetch(`${my}/api/overview`);return r.ok?r.json():null}const yg="__all__";function m8(){const[r,e]=Fe.useState([]),[t,a]=Fe.useState(""),[n,i]=Fe.useState(null),[o,l]=Fe.useState(!0),[s,u]=Fe.useState(!1),c=Fe.useRef(null),h=Fe.useRef(null),d=Fe.useCallback(async()=>{const y=await d8();e(y),y.length>0&&!t&&a(y[0].runId)},[t]),p=Fe.useCallback(async y=>{if(!y)return;l(!0);const m=y===yg?await g8():await p8(y);i(m),l(!1)},[]);return Fe.useEffect(()=>{d()},[d]),Fe.useEffect(()=>{t&&p(t)},[t,p]),Fe.useEffect(()=>{function y(){c.current&&c.current.close();const m=new EventSource("/api/events");c.current=m,m.onmessage=_=>{try{const b=JSON.parse(_.data);b.type==="connected"?u(!0):b.type==="run_updated"&&(d(),t&&p(t))}catch{}},m.onerror=()=>{u(!1),m.close(),c.current=null,h.current&&clearTimeout(h.current),h.current=setTimeout(y,3e3)}}return y(),()=>{c.current&&c.current.close(),h.current&&clearTimeout(h.current)}},[t,d,p]),{runs:r,currentRunId:t,setCurrentRunId:a,runData:n,loading:o,connected:s}}function _8(){const[r,e]=Fe.useState(null),[t,a]=Fe.useState(!0),n=Fe.useCallback(async()=>{a(!0);const i=await y8();e(i),a(!1)},[]);return Fe.useEffect(()=>{n()},[n]),{data:r,loading:t,reload:n}}function ZS(r){return r instanceof Date&&!isNaN(r.getTime())}function j3(r){if(!r)return"";try{const e=new Date(r);return ZS(e)?`${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:""}catch{return""}}function mg(r){if(!r)return"";try{const e=new Date(r);return ZS(e)?`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:""}catch{return""}}function Y3(r){if(!r)return"";try{const e=new Date(r);return ZS(e)?e.toLocaleDateString():""}catch{return""}}function x8(r){const e=[`分支: ${r.branch}`,`开发者: ${r.developer}`];if(r.aiModel&&e.push(`AI: ${r.aiModel}`),r.startTime){const t=mg(r.startTime),a=r.endTime?mg(r.endTime):"",n=a?`${t} ~ ${a}`:`${t} ~`;t&&e.push(`周期: ${n}`)}return e.join(" | ")}function D1({runs:r,currentRunId:e,onSelectRun:t,meta:a,connected:n}){const i=e===yg;return z.jsxs("div",{className:"flex items-center justify-between px-8 py-6 border-b border-[#1e2d3d]",children:[z.jsxs("div",{className:"flex items-center gap-4",children:[z.jsx("h1",{className:"text-[22px] font-semibold text-white",children:i?z.jsxs(z.Fragment,{children:[z.jsx("span",{className:"text-blue-500",children:"AIDevOS"})," 项目总览"]}):a?z.jsxs(z.Fragment,{children:[z.jsx("span",{className:"text-blue-500",children:a.branch})," AI 开发看板"]}):z.jsxs(z.Fragment,{children:[z.jsx("span",{className:"text-blue-500",children:"AIDevOS"})," AI 开发看板"]})}),z.jsxs("select",{value:e,onChange:o=>t(o.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&&z.jsx("option",{value:"",children:"加载中..."}),z.jsx("option",{value:yg,children:"项目总览(负责人视角)"}),r.map(o=>z.jsxs("option",{value:o.runId,children:[o.branch," / ",o.developer]},o.runId))]}),z.jsx("div",{className:`w-2 h-2 rounded-full transition-colors ${n?"bg-green-500 shadow-[0_0_8px_#22c55e]":"bg-[#4a5a6a]"}`,title:n?"SSE 已连接":"SSE 未连接"})]}),a&&!i&&z.jsx("div",{className:"text-[13px] text-[#6b7b8d]",children:x8(a)})]})}function xi({title:r,open:e,onClose:t,children:a}){return e?z.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:t,children:z.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:[z.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[#1e2d3d]",children:[z.jsx("h2",{className:"text-base font-semibold text-white",children:r}),z.jsx("button",{onClick:t,className:"text-[#6b7b8d] hover:text-white text-xl leading-none cursor-pointer",children:"×"})]}),z.jsx("div",{className:"p-6 overflow-y-auto",children:a})]})}):null}const b8={"rule-missing":"规则缺失","context-insufficient":"上下文不足",hallucination:"盲目照搬/臆想",misunderstanding:"需求理解偏差","reference-copy":"参考照搬","process-omission":"流程遗漏","multi-round":"多轮未收敛","context-lost":"上下文丢失",other:"其他原因"},S8={"ui-spacing":"UI/间距",layout:"布局/结构","component-usage":"组件使用",i18n:"i18n/国际化",api:"API 接口",logic:"逻辑错误",architecture:"架构设计",style:"样式问题",process:"流程/缓存",other:"其他"};function X3(r){return b8[r]||r}function _g(r){return S8[r]||r}function M1(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function w8({data:r}){const[e,t]=Fe.useState(null),a=r.summary,n=r.metrics,i=[{key:"prd",label:"PRD 进度",color:"text-blue-500",value:a.prdPhaseCount?`${a.prdPhaseCount}`:"-"},{key:"tasks",label:"任务完成",color:"text-green-500",value:`${a.completedTasks}/${a.totalTasks}`},{key:"deviation",label:"偏差发现",color:"text-amber-500",value:`${a.deviationCount}`},{key:"bug",label:"缺陷修复",color:"text-red-500",value:`${a.bugCount}`}],o=[{key:"review",label:"自检通过率",color:"text-purple-500",value:n.reviewPassRate!=null?`${Math.round(n.reviewPassRate*100)}%`:"-"},{key:"files",label:"文件变更",color:"text-cyan-500",value:`${a.filesChanged}`},{key:"time",label:"实际工时",color:"text-teal-500",value:n.actualWorkSeconds?M1(n.actualWorkSeconds):"-"},{key:"roi",label:"ROI",color:"text-emerald-500",value:n.roi!=null?`${Math.round(n.roi)}%`:"-"}],l=s=>z.jsx("div",{className:"grid grid-cols-4 gap-4 max-lg:grid-cols-2 max-sm:grid-cols-2",children:s.map(u=>z.jsxs("div",{onClick:()=>t(u.key),className:"bg-[#162231] border border-[#1e2d3d] rounded-[10px] px-5 py-[18px] text-center cursor-pointer hover:border-[#2a4a6b] transition-colors",children:[z.jsx("div",{className:`text-[32px] font-bold mb-1 ${u.color}`,children:u.value}),z.jsx("div",{className:"text-xs text-[#6b7b8d] uppercase tracking-wide",children:u.label})]},u.key))});return z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"px-8 py-5 space-y-4",children:[l(i),l(o)]}),z.jsx(xi,{title:"任务详情",open:e==="tasks",onClose:()=>t(null),children:z.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"ID"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[200px]",children:"标题"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"阶段"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"PRD"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"状态"})]})}),z.jsx("tbody",{children:r.tasks.map(s=>z.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:s.taskId}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[200px]",children:s.title}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:s.stageName}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:z.jsx("span",{className:"inline-block px-2 py-0.5 rounded text-[11px] bg-[#1e3a5f] text-[#60a5fa]",children:s.prdPhase})}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:z.jsx("span",{className:s.status==="done"?"text-green-500":"text-amber-500",children:s.status})})]},s.taskId))})]})}),z.jsx(xi,{title:"偏差详情",open:e==="deviation",onClose:()=>t(null),children:z.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"ID"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:"标题"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"根因"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"类别"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:"涉及文件"})]})}),z.jsx("tbody",{children:r.deviations.map(s=>z.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:s.deviationId}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[150px]",children:s.title}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:X3(s.rootCauseCategory)}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:_g(s.deviationCategory)}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d] min-w-[150px]",children:s.files.join(", ")})]},s.deviationId))})]})}),z.jsx(xi,{title:"缺陷详情",open:e==="bug",onClose:()=>t(null),children:z.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"ID"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:"标题"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"严重程度"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"状态"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:"修复"})]})}),z.jsx("tbody",{children:r.bugs.map(s=>z.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:s.bugId}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[150px]",children:s.title}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:s.severity}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:z.jsx("span",{className:s.status==="fixed"?"text-green-500":"text-red-500",children:s.status})}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d] min-w-[150px]",children:s.fix})]},s.bugId))})]})}),z.jsx(xi,{title:"PRD 阶段",open:e==="prd",onClose:()=>t(null),children:z.jsx("div",{className:"space-y-3",children:(r.meta.prdPhases||[]).map(s=>{const u=r.tasks.filter(h=>h.prdPhase===s),c=u.filter(h=>h.status==="done").length;return z.jsxs("div",{className:"bg-[#0f1923] rounded-lg p-4",children:[z.jsxs("div",{className:"flex items-center justify-between mb-2",children:[z.jsx("span",{className:"text-sm font-medium text-white",children:s}),z.jsxs("span",{className:"text-xs text-[#6b7b8d]",children:[c,"/",u.length," 任务完成"]})]}),z.jsx("div",{className:"w-full bg-[#1e2d3d] rounded-full h-2",children:z.jsx("div",{className:"bg-blue-500 h-2 rounded-full transition-all",style:{width:`${u.length?c/u.length*100:0}%`}})})]},s)})})}),z.jsx(xi,{title:"自检报告",open:e==="review",onClose:()=>t(null),children:z.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"编号"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"日期"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[200px]",children:"范围"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"问题数"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"结果"})]})}),z.jsx("tbody",{children:r.reviews.map(s=>z.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:s.reviewId}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:Y3(s.reviewedAt)}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[200px]",children:s.scope}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:s.issueCount}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:z.jsx("span",{className:s.result==="pass"?"text-green-500":"text-red-500",children:s.result})})]},s.reviewId))})]})}),z.jsx(xi,{title:"变更文件",open:e==="files",onClose:()=>t(null),children:r.files.length>0?z.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[250px]",children:"文件路径"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"操作"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"+/-"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"修改次数"})]})}),z.jsx("tbody",{children:r.files.map(s=>z.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[250px]",children:s.path}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:z.jsx("span",{className:s.changeType==="created"?"text-green-500":s.changeType==="deleted"?"text-red-500":"text-blue-500",children:s.changeType})}),z.jsxs("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:[z.jsxs("span",{className:"text-green-500",children:["+",s.linesAdded]})," ",z.jsxs("span",{className:"text-red-500",children:["-",s.linesRemoved]})]}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:s.changeCount})]},s.path))})]}):z.jsx("div",{className:"text-[#6b7b8d] text-sm text-center py-4",children:"暂无数据"})}),z.jsx(xi,{title:"工时详情",open:e==="time",onClose:()=>t(null),children:z.jsxs("div",{className:"space-y-3 text-[13px]",children:[z.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"实际 AI 工时"}),z.jsx("span",{className:"text-teal-500 font-medium",children:n.actualWorkSeconds?M1(n.actualWorkSeconds):"-"})]}),z.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"预估人工工时"}),z.jsx("span",{className:"text-[#e0e6ed]",children:r.cost.estimatedManualHours?`${r.cost.estimatedManualHours}h`:"-"})]}),z.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"效率倍数"}),z.jsx("span",{className:"text-emerald-500 font-medium",children:n.efficiencyMultiplier?`${n.efficiencyMultiplier.toFixed(1)}x`:"-"})]}),n.nodeTimeBreakdown&&Object.keys(n.nodeTimeBreakdown).length>0&&z.jsxs("div",{className:"pt-3 border-t border-[#1e2d3d]",children:[z.jsx("div",{className:"text-[#6b7b8d] text-xs mb-2",children:"节点耗时明细"}),Object.entries(n.nodeTimeBreakdown).map(([s,u])=>z.jsxs("div",{className:"flex justify-between py-1 text-xs",children:[z.jsx("span",{className:"text-[#94a3b8]",children:s}),z.jsx("span",{className:"text-[#e0e6ed]",children:M1(u)})]},s))]})]})}),z.jsx(xi,{title:"ROI 详情",open:e==="roi",onClose:()=>t(null),children:z.jsxs("div",{className:"space-y-3 text-[13px]",children:[z.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"Token 成本"}),z.jsx("span",{className:"text-red-400",children:n.tokenCost!=null?`$${n.tokenCost.toFixed(2)}`:"-"})]}),z.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"节省工时"}),z.jsx("span",{className:"text-[#e0e6ed]",children:n.hoursSaved!=null?`${n.hoursSaved.toFixed(1)}h`:"-"})]}),z.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"节省费用"}),z.jsx("span",{className:"text-emerald-500",children:n.moneySaved!=null?`$${n.moneySaved.toFixed(0)}`:"-"})]}),z.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"ROI"}),z.jsx("span",{className:"text-emerald-500 font-bold text-lg",children:n.roi!=null?`${Math.round(n.roi)}%`:"-"})]}),z.jsxs("div",{className:"flex justify-between py-2 border-b border-[#1e2d3d]",children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"Total Tokens"}),z.jsx("span",{className:"text-[#e0e6ed]",children:r.cost.totalTokens?r.cost.totalTokens.toLocaleString():"-"})]})]})})]})}function tr({title:r,full:e,children:t}){return z.jsxs("div",{className:`bg-[#162231] border border-[#1e2d3d] rounded-[10px] p-5 ${e?"col-span-full":""}`,children:[z.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 nb=function(r,e){return nb=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])},nb(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");nb(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var vh=function(){return vh=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},vh.apply(this,arguments)};function T8(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 CM(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 DM(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 A8=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),C8=(function(){function r(){this.browser=new A8,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})(),Ut=new C8;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ut.wxa=!0,Ut.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ut.worker=!0:!Ut.hasGlobalWindow||"Deno"in window?(Ut.node=!0,Ut.svgSupported=!0):D8(navigator.userAgent,Ut);function D8(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 qS=12,W3="sans-serif",ko=qS+"px "+W3,M8=20,L8=100,E8="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function R8(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)-M8)/L8;e[a]=n}return e}var I8=R8(E8),mn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,a){if(!r){var n=mn.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]||qS,l=0;if(a.indexOf("mono")>=0)l=o*t.length;else for(var s=0;s<t.length;s++){var u=I8[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 Z3(r){for(var e in mn)r[e]&&(mn[e]=r[e])}var q3=Za(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),$3=Za(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),sf=Object.prototype.toString,_y=Array.prototype,O8=_y.forEach,N8=_y.filter,$S=_y.slice,P8=_y.map,MM=(function(){}).constructor,Zd=MM?MM.prototype:null,KS="__proto__",z8=2311;function QS(){return z8++}function xy(){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=sf.call(r);if(t==="[object Array]"){if(!Hu(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=Tt(r[a])}}else if($3[t]){if(!Hu(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(!q3[t]&&!Hu(r)&&!ls(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==KS&&(e[o]=Tt(r[o]))}return e}function It(r,e,t){if(!St(e)||!St(r))return t?Tt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==KS){var n=r[a],i=e[a];St(i)&&St(n)&&!it(i)&&!it(n)&&!ls(i)&&!ls(n)&&!ib(i)&&!ib(n)&&!Hu(i)&&!Hu(n)?It(n,i,t):(t||!(a in r))&&(r[a]=Tt(e[a]))}return r}function by(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!==KS&&(r[t]=e[t]);return r}function xt(r,e,t){for(var a=jt(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 k8=mn.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 JS(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 Pe(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 xt(r,e,t)}function _r(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function N(r,e,t){if(r&&e)if(r.forEach&&r.forEach===O8)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 Sy(r);if(r.map&&r.map===P8)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 Za(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 Sy(r);if(r.filter&&r.filter===N8)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 K3(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 jt(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 B8(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat($S.call(arguments)))}}var dt=Zd&&_t(Zd.bind)?Zd.call.bind(Zd.bind):B8;function Rt(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat($S.call(arguments)))}}function it(r){return Array.isArray?Array.isArray(r):sf.call(r)==="[object Array]"}function _t(r){return typeof r=="function"}function vt(r){return typeof r=="string"}function xg(r){return sf.call(r)==="[object String]"}function Qt(r){return typeof r=="number"}function St(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function ib(r){return!!q3[sf.call(r)]}function Fr(r){return!!$3[sf.call(r)]}function ls(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function lv(r){return r.colorStops!=null}function Q3(r){return r.image!=null}function J3(r){return sf.call(r)==="[object RegExp]"}function qu(r){return r!==r}function rr(){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 Et(r,e){return r??e}function dn(r,e,t){return r??e??t}function Sy(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return $S.apply(r,e)}function wy(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 Rr(r,e){if(!r)throw new Error(e)}function Xa(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tP="__ec_primitive__";function Rh(r){r[tP]=!0}function Hu(r){return r[tP]}var V8=(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 jt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r})(),eP=typeof Map=="function";function G8(){return eP?new Map:new V8}var rP=(function(){function r(e){var t=it(e);this.data=G8();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 eP?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function mt(r){return new rP(r)}function $u(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 sv(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 tw(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 Ne(){}var dh=180/Math.PI;const H8=Object.freeze(Object.defineProperty({__proto__:null,HashMap:rP,RADIAN_TO_DEGREE:dh,assert:Rr,bind:dt,clone:Tt,concatArray:$u,createCanvas:k8,createHashMap:mt,createObject:sv,curry:Rt,defaults:xt,disableUserSelect:tw,each:N,eqNaN:qu,extend:rt,filter:te,find:K3,guid:QS,hasOwn:gt,indexOf:Bt,inherits:JS,isArray:it,isArrayLike:_r,isBuiltInObject:ib,isDom:ls,isFunction:_t,isGradientObject:lv,isImagePatternObject:Q3,isNumber:Qt,isObject:St,isPrimitive:Hu,isRegExp:J3,isString:vt,isStringSafe:xg,isTypedArray:Fr,keys:jt,logError:xy,map:ot,merge:It,mergeAll:by,mixin:Pe,noop:Ne,normalizeCssArray:wy,reduce:Za,retrieve:rr,retrieve2:Et,retrieve3:dn,setAsPrimitive:Rh,slice:Sy,trim:Xa},Symbol.toStringTag,{value:"Module"}));function Fo(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Dr(r,e){return r[0]=e[0],r[1]=e[1],r}function Gn(r){return[r[0],r[1]]}function aP(r,e,t){return r[0]=e,r[1]=t,r}function ob(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function bg(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 Ih(r){return Math.sqrt(ew(r))}var U8=Ih;function ew(r){return r[0]*r[0]+r[1]*r[1]}var F8=ew;function j8(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function Y8(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function X8(r,e){return r[0]*e[0]+r[1]*e[1]}function ph(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function gs(r,e){var t=Ih(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Sg(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var wi=Sg;function nP(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Eo=nP;function W8(r,e){return r[0]=-e[0],r[1]=-e[1],r}function gh(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 Z8=Object.freeze(Object.defineProperty({__proto__:null,add:ob,applyTransform:hr,clone:Gn,copy:Dr,create:Fo,dist:wi,distSquare:Eo,distance:Sg,distanceSquare:nP,div:Y8,dot:X8,len:Ih,lenSquare:ew,length:U8,lengthSquare:F8,lerp:gh,max:Ai,min:Ti,mul:j8,negate:W8,normalize:gs,scale:ph,scaleAndAdd:bg,set:aP,sub:wo},Symbol.toStringTag,{value:"Module"}));var uu=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),q8=(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 uu(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 uu(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 uu(s,e),"dragleave",e.event),l&&l!==s&&this.handler.dispatchToElement(new uu(l,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new uu(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new uu(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),$a=(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})(),$8=Math.log(2);function lb(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)/$8);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]*lb(r,e-1,c,u,n|y,i),p++)}return i[o]=h,h}function LM(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=lb(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)*lb(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 EM="___zrEVENTSAVED",L1=[];function K8(r,e,t,a,n){return sb(L1,e,a,n,!0)&&sb(r,t,L1[0],L1[1])}function sb(r,e,t,a,n){if(e.getBoundingClientRect&&Ut.domSupported&&!iP(e)){var i=e[EM]||(e[EM]={}),o=Q8(e,i),l=J8(o,i,n);if(l)return l(r,t,a),!0}return!1}function Q8(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 J8(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?LM(l,o):LM(o,l))}function iP(r){return r.nodeName.toUpperCase()==="CANVAS"}var tH=/([&<>"'])/g,eH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Lr(r){return r==null?"":(r+"").replace(tH,function(e,t){return eH[t]})}var rH=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,E1=[],aH=Ut.browser.firefox&&+Ut.browser.version.split(".")[0]<39;function ub(r,e,t,a){return t=t||{},a?RM(r,e,t):aH&&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):RM(r,e,t),t}function RM(r,e,t){if(Ut.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(iP(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(sb(E1,r,a,n)){t.zrX=E1[0],t.zrY=E1[1];return}}t.zrX=t.zrY=0}function rw(r){return r||window.event}function Va(r,e,t){if(e=rw(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&&ub(r,o,e,t)}else{ub(r,e,e,t);var i=nH(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var l=e.button;return e.which==null&&l!==void 0&&rH.test(e.type)&&(e.which=l&1?1:l&2?3:l&4?2:0),e}function nH(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 fb(r,e,t,a){r.addEventListener(e,t,a)}function iH(r,e,t,a){r.removeEventListener(e,t,a)}var Ei=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function IM(r){return r.which===2||r.which===3}var oH=(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=ub(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 R1)if(R1.hasOwnProperty(t)){var a=R1[t](this._track,e);if(a)return a}},r})();function OM(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function lH(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var R1={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=OM(a)/OM(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=lH(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function aa(){return[1,0,0,1,0,0]}function uv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Ty(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 Hn(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 _n(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 jo(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 Ay(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 ys(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 oP(r){var e=aa();return Ty(e,r),e}const sH=Object.freeze(Object.defineProperty({__proto__:null,clone:oP,copy:Ty,create:aa,identity:uv,invert:ys,mul:Hn,rotate:jo,scale:Ay,translate:_n},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})(),qd=Math.min,$d=Math.max,hl=new zt,vl=new zt,dl=new zt,pl=new zt,wc=new zt,Tc=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=qd(e.x,this.x),a=qd(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=$d(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=$d(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=aa();return _n(i,i,[-t.x,-t.y]),Ay(i,i,[a,n]),_n(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),S=Math.abs(h-o),w=Math.min(m,_),A=Math.min(b,S);i<s||u<n?w>y&&(y=w,m<_?zt.set(Tc,-m,0):zt.set(Tc,_,0)):w<p&&(p=w,m<_?zt.set(wc,m,0):zt.set(wc,-_,0)),l<c||h<o?A>y&&(y=A,b<S?zt.set(Tc,0,-b):zt.set(Tc,0,S)):w<p&&(p=w,b<S?zt.set(wc,0,b):zt.set(wc,0,-S))}return t&&zt.copy(t,d?wc:Tc),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}hl.x=dl.x=t.x,hl.y=pl.y=t.y,vl.x=pl.x=t.x+t.width,vl.y=dl.y=t.y+t.height,hl.transform(a),pl.transform(a),vl.transform(a),dl.transform(a),e.x=qd(hl.x,vl.x,dl.x,pl.x),e.y=qd(hl.y,vl.y,dl.y,pl.y);var s=$d(hl.x,vl.x,dl.x,pl.x),u=$d(hl.y,vl.y,dl.y,pl.y);e.width=s-e.x,e.height=u-e.y},r})(),lP="silent";function uH(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:fH}}function fH(){Ei(this.event)}var cH=(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})($a),Ac=(function(){function r(e,t){this.x=e,this.y=t}return r})(),hH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],I1=new kt(0,0,0,0),sP=(function(r){Z(e,r);function e(t,a,n,i,o){var l=r.call(this)||this;return l._hovered=new Ac(0,0),l.storage=t,l.painter=a,l.painterRoot=i,l._pointerSize=o,n=n||new cH,l.proxy=null,l.setHandlerProxy(n),l._draggingMgr=new q8(l),l}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(N(hH,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=uP(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 Ac(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 Ac(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=uH(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 Ac(t,a);if(NM(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)&&(I1.copy(d.getBoundingRect()),d.transform&&I1.applyTransform(d.transform),I1.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 S=t+_*Math.cos(b),w=a+_*Math.sin(b);if(NM(l,o,S,w,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new oH);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 Ac;l.target=i.target,this.dispatchToElement(l,o,i.event)}},e})($a);N(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){sP.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=uP(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 vH(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?lP:!0}return!1}function NM(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=vH(o,t,a))&&(!e.topTarget&&(e.topTarget=o),l!==lP)){e.target=o;break}}}function uP(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var fP=32,Cc=7;function dH(r){for(var e=0;r>=fP;)e|=r&1,r>>=1;return r+e}function PM(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++;pH(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function pH(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function zM(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 O1(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 N1(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 gH(r,e){var t=Cc,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 S=N1(r[_],r,y,m,0,e);y+=S,m-=S,m!==0&&(b=O1(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 S=0,w=m,A=p;if(r[A++]=r[w++],--_===0){for(b=0;b<y;b++)r[A+b]=o[S+b];return}if(y===1){for(b=0;b<_;b++)r[A+b]=r[w+b];r[A+_]=o[S];return}for(var M=t,D,L,E;;){D=0,L=0,E=!1;do if(e(r[w],o[S])<0){if(r[A++]=r[w++],L++,D=0,--_===0){E=!0;break}}else if(r[A++]=o[S++],D++,L=0,--y===1){E=!0;break}while((D|L)<M);if(E)break;do{if(D=N1(r[w],o,S,y,0,e),D!==0){for(b=0;b<D;b++)r[A+b]=o[S+b];if(A+=D,S+=D,y-=D,y<=1){E=!0;break}}if(r[A++]=r[w++],--_===0){E=!0;break}if(L=O1(o[S],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){E=!0;break}}if(r[A++]=o[S++],--y===1){E=!0;break}M--}while(D>=Cc||L>=Cc);if(E)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[S]}else{if(y===0)throw new Error;for(b=0;b<y;b++)r[A+b]=o[S+b]}}function d(p,y,m,_){var b=0;for(b=0;b<_;b++)o[b]=r[m+b];var S=p+y-1,w=_-1,A=m+_-1,M=0,D=0;if(r[A--]=r[S--],--y===0){for(M=A-(_-1),b=0;b<_;b++)r[M+b]=o[b];return}if(_===1){for(A-=y,S-=y,D=A+1,M=S+1,b=y-1;b>=0;b--)r[D+b]=r[M+b];r[A]=o[w];return}for(var L=t;;){var E=0,R=0,O=!1;do if(e(o[w],r[S])<0){if(r[A--]=r[S--],E++,R=0,--y===0){O=!0;break}}else if(r[A--]=o[w--],R++,E=0,--_===1){O=!0;break}while((E|R)<L);if(O)break;do{if(E=y-N1(o[w],r,p,y,y-1,e),E!==0){for(A-=E,S-=E,y-=E,D=A+1,M=S+1,b=E-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(R=_-O1(r[S],o,0,_,_-1,e),R!==0){for(A-=R,w-=R,_-=R,D=A+1,M=w+1,b=0;b<R;b++)r[D+b]=o[M+b];if(_<=1){O=!0;break}}if(r[A--]=r[S--],--y===0){O=!0;break}L--}while(E>=Cc||R>=Cc);if(O)break;L<0&&(L=0),L+=2}if(t=L,t<1&&(t=1),_===1){for(A-=y,S-=y,D=A+1,M=S+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 Qp(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<fP){i=PM(r,t,a,e),zM(r,t,a,t+i,e);return}var o=gH(r,e),l=dH(n);do{if(i=PM(r,t,a,e),i<l){var s=n;s>l&&(s=l),zM(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 pa=1,eh=2,Iu=4,kM=!1;function P1(){kM||(kM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function BM(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var yH=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=BM}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,Qp(a,BM)},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|=pa),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)&&(P1(),c.z=0),isNaN(c.z2)&&(P1(),c.z2=0),isNaN(c.zlevel)&&(P1(),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})(),wg;wg=Ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var yh={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-yh.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?yh.bounceIn(r*2)*.5:yh.bounceOut(r*2-1)*.5+.5}},Kd=Math.pow,Ro=Math.sqrt,Tg=1e-8,cP=1e-4,VM=Ro(3),Qd=1/3,Pn=Fo(),Fa=Fo(),Uu=Fo();function To(r){return r>-Tg&&r<Tg}function hP(r){return r>Tg||r<-Tg}function er(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 GM(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Ag(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 S=Ro(m),w=c*l+1.5*o*(-h+S),A=c*l+1.5*o*(-h-S);w<0?w=-Kd(-w,Qd):w=Kd(w,Qd),A<0?A=-Kd(-A,Qd):A=Kd(A,Qd);var y=(-l-(w+A))/(3*o);y>=0&&y<=1&&(i[p++]=y)}else{var M=(2*c*l-3*o*h)/(2*Ro(c*c*c)),D=Math.acos(M)/3,L=Ro(c),E=Math.cos(D),y=(-l-2*L*E)/(3*o),b=(-l+L*(E+VM*Math.sin(D)))/(3*o),R=(-l+L*(E-VM*Math.sin(D)))/(3*o);y>=0&&y<=1&&(i[p++]=y),b>=0&&b<=1&&(i[p++]=b),R>=0&&R<=1&&(i[p++]=R)}}return p}function vP(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(hP(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=Ro(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 dP(r,e,t,a,n,i,o,l,s,u,c){var h,d=.005,p=1/0,y,m,_,b;Pn[0]=s,Pn[1]=u;for(var S=0;S<1;S+=.05)Fa[0]=er(r,t,n,o,S),Fa[1]=er(e,a,i,l,S),_=Eo(Pn,Fa),_<p&&(h=S,p=_);p=1/0;for(var w=0;w<32&&!(d<cP);w++)y=h-d,m=h+d,Fa[0]=er(r,t,n,o,y),Fa[1]=er(e,a,i,l,y),_=Eo(Fa,Pn),y>=0&&_<p?(h=y,p=_):(Uu[0]=er(r,t,n,o,m),Uu[1]=er(e,a,i,l,m),b=Eo(Uu,Pn),m<=1&&b<p?(h=m,p=b):d*=.5);return c&&(c[0]=er(r,t,n,o,h),c[1]=er(e,a,i,l,h)),Ro(p)}function mH(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=er(r,t,n,o,y),_=er(e,a,i,l,y),b=m-u,S=_-c;h+=Math.sqrt(b*b+S*S),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 cb(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function _H(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),l=r-a,s=0;if(To(i)){if(hP(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=Ro(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 pP(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Oh(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 gP(r,e,t,a,n,i,o,l,s){var u,c=.005,h=1/0;Pn[0]=o,Pn[1]=l;for(var d=0;d<1;d+=.05){Fa[0]=cr(r,t,n,d),Fa[1]=cr(e,a,i,d);var p=Eo(Pn,Fa);p<h&&(u=d,h=p)}h=1/0;for(var y=0;y<32&&!(c<cP);y++){var m=u-c,_=u+c;Fa[0]=cr(r,t,n,m),Fa[1]=cr(e,a,i,m);var p=Eo(Fa,Pn);if(m>=0&&p<h)u=m,h=p;else{Uu[0]=cr(r,t,n,_),Uu[1]=cr(e,a,i,_);var b=Eo(Uu,Pn);_<=1&&b<h?(u=_,h=b):c*=.5}}return s&&(s[0]=cr(r,t,n,u),s[1]=cr(e,a,i,u)),Ro(h)}function xH(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 bH=/cubic-bezier\(([0-9,\.e ]+)\)/;function aw(r){var e=r&&bH.exec(r);if(e){var t=e[1].split(","),a=+Xa(t[0]),n=+Xa(t[1]),i=+Xa(t[2]),o=+Xa(t[3]);if(isNaN(a+n+i+o))return;var l=[];return function(s){return s<=0?0:s>=1?1:Ag(0,a,i,1,s,l)&&er(0,n,o,1,l[0])}}}var SH=(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||Ne,this.ondestroy=e.ondestroy||Ne,this.onrestart=e.onrestart||Ne,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:yh[e]||aw(e)},r})(),yP=(function(){function r(e){this.value=e}return r})(),wH=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new yP(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})(),fv=(function(){function r(e){this._list=new wH,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 yP(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})(),HM={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 pn(r){return r=Math.round(r),r<0?0:r>255?255:r}function TH(r){return r=Math.round(r),r<0?0:r>360?360:r}function Nh(r){return r<0?0:r>1?1:r}function z1(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?pn(parseFloat(e)/100*255):pn(parseInt(e,10))}function ts(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Nh(parseFloat(e)/100):Nh(parseFloat(e))}function k1(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 Ba(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function hb(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var mP=new fv(20),Jd=null;function fu(r,e){Jd&&hb(Jd,e),Jd=mP.put(r,Jd||e.slice())}function Hr(r,e){if(r){e=e||[];var t=mP.get(r);if(t)return hb(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in HM)return hb(e,HM[a]),fu(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)){Ba(e,0,0,0,1);return}return Ba(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),fu(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Ba(e,0,0,0,1);return}return Ba(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),fu(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?Ba(e,+u[0],+u[1],+u[2],1):Ba(e,0,0,0,1);c=ts(u.pop());case"rgb":if(u.length>=3)return Ba(e,z1(u[0]),z1(u[1]),z1(u[2]),u.length===3?c:ts(u[3])),fu(r,e),e;Ba(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ba(e,0,0,0,1);return}return u[3]=ts(u[3]),vb(u,e),fu(r,e),e;case"hsl":if(u.length!==3){Ba(e,0,0,0,1);return}return vb(u,e),fu(r,e),e;default:return}}Ba(e,0,0,0,1)}}function vb(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ts(r[1]),n=ts(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Ba(e,pn(k1(o,i,t+1/3)*255),pn(k1(o,i,t)*255),pn(k1(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function AH(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 Cg(r,e){var t=Hr(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 gn(t,t.length===4?"rgba":"rgb")}}function CH(r){var e=Hr(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function mh(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]=pn(Ao(o[0],l[0],s)),t[1]=pn(Ao(o[1],l[1],s)),t[2]=pn(Ao(o[2],l[2],s)),t[3]=Nh(Ao(o[3],l[3],s)),t}}var DH=mh;function nw(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=Hr(e[n]),l=Hr(e[i]),s=a-n,u=gn([pn(Ao(o[0],l[0],s)),pn(Ao(o[1],l[1],s)),pn(Ao(o[2],l[2],s)),Nh(Ao(o[3],l[3],s))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var MH=nw;function Fu(r,e,t,a){var n=Hr(r);if(r)return n=AH(n),e!=null&&(n[0]=TH(e)),t!=null&&(n[1]=ts(t)),a!=null&&(n[2]=ts(a)),gn(vb(n),"rgba")}function Ph(r,e){var t=Hr(r);if(t&&e!=null)return t[3]=Nh(e),gn(t,"rgba")}function gn(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 zh(r,e){var t=Hr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function LH(){return gn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var UM=new fv(100);function Dg(r){if(vt(r)){var e=UM.get(r);return e||(e=Cg(r,-.1),UM.put(r,e)),e}else if(lv(r)){var t=rt({},r);return t.colorStops=ot(r.colorStops,function(a){return{offset:a.offset,color:Cg(a.color,-.1)}}),t}return r}const EH=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:mh,fastMapToColor:DH,lerp:nw,lift:Cg,liftColor:Dg,lum:zh,mapToColor:MH,modifyAlpha:Ph,modifyHSL:Fu,parse:Hr,random:LH,stringify:gn,toHex:CH},Symbol.toStringTag,{value:"Module"}));var Mg=Math.round;function kh(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Hr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var FM=1e-4;function Co(r){return r<FM&&r>-FM}function tp(r){return Mg(r*1e3)/1e3}function db(r){return Mg(r*1e4)/1e4}function RH(r){return"matrix("+tp(r[0])+","+tp(r[1])+","+tp(r[2])+","+tp(r[3])+","+db(r[4])+","+db(r[5])+")"}var IH={left:"start",right:"end",center:"middle",middle:"middle"};function OH(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function NH(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function PH(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 _P(r){return r&&!!r.image}function zH(r){return r&&!!r.svgElement}function iw(r){return _P(r)||zH(r)}function xP(r){return r.type==="linear"}function bP(r){return r.type==="radial"}function SP(r){return r&&(r.type==="linear"||r.type==="radial")}function Cy(r){return"url(#"+r+")"}function wP(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 TP(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*dh,n=Et(r.scaleX,1),i=Et(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("+Mg(o*dh)+"deg, "+Mg(l*dh)+"deg)"),s.join(" ")}var kH=(function(){return Ut.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}})(),pb=Array.prototype.slice;function bi(r,e,t){return(e-r)*t+r}function B1(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 BH(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 ep(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function jM(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 VH(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 GH(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]:pb.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 _h(r){if(_r(r)){var e=r.length;if(_r(r[0])){for(var t=[],a=0;a<e;a++)t.push(pb.call(r[a]));return t}return pb.call(r)}return r}function Jp(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 HH(r){return _r(r&&r[0])?2:1}var rp=0,tg=1,AP=2,rh=3,gb=4,yb=5,YM=6;function XM(r){return r===gb||r===yb}function ap(r){return r===tg||r===AP}var Dc=[0,0,0,0],UH=(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=YM,s=t;if(_r(t)){var u=HH(t);l=u,(u===1&&!Qt(t[0])||u===2&&!Qt(t[0][0]))&&(o=!0)}else if(Qt(t)&&!qu(t))l=rp;else if(vt(t))if(!isNaN(+t))l=rp;else{var c=Hr(t);c&&(s=c,l=rh)}else if(lv(t)){var h=rt({},s);h.colorStops=ot(t.colorStops,function(p){return{offset:p.offset,color:Hr(p.color)}}),xP(t)?l=gb:bP(t)&&(l=yb),s=h}i===0?this.valType=l:(l!==this.valType||l===YM)&&(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:yh[a]||aw(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=ap(n),u=XM(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?GH(d,p,n):u&&VH(d.colorStops,p.colorStops))}if(!l&&n!==yb&&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===rp?a[c].additiveValue=a[c].value-y:n===rh?a[c].additiveValue=ep([],a[c].value,y,-1):ap(n)&&(a[c].additiveValue=n===tg?ep([],a[c].value,y,-1):jM([],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===rh,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 S=a?this._additiveValue:u?Dc:e[s];if((ap(i)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)e[s]=b<1?p.rawValue:y.rawValue;else if(ap(i))i===tg?B1(S,p[n],y[n],b):BH(S,p[n],y[n],b);else if(XM(i)){var w=p[n],A=y[n],M=i===gb;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,E){var R=A.colorStops[E];return{offset:bi(L.offset,R.offset,b),color:Jp(B1([],L.color,R.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)B1(S,p[n],y[n],b),a||(e[s]=Jp(S));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===rp?e[a]=e[a]+n:t===rh?(Hr(e[a],Dc),ep(Dc,Dc,n,1),e[a]=Jp(Dc)):t===tg?ep(e[a],e[a],n,1):t===AP&&jM(e[a],e[a],n,1)},r})(),ow=(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){xy("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,jt(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 UH(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===rh&&u&&(u=Jp(u))}else u=this._target[l];if(u==null)continue;e>0&&s.addKeyframe(0,_h(u),n),this._trackKeys.push(l)}s.addKeyframe(e,_h(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 SH({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]=_h(s.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||jt(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 ku(){return new Date().getTime()}var FH=(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=ku()-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&&(wg(a),!t._paused&&t.update())}wg(a)},e.prototype.start=function(){this._running||(this._time=ku(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=ku(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=ku()-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 ow(t,a.loop);return this.addAnimator(n),n},e})($a),jH=300,V1=Ut.domSupported,G1=(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}})(),WM={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ZM=!1;function mb(r){var e=r.pointerType;return e==="pen"||e==="touch"}function YH(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 H1(r){r&&(r.zrByTouch=!0)}function XH(r,e){return Va(r.dom,new WH(r,e),!0)}function CP(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 WH=(function(){function r(e,t){this.stopPropagation=Ne,this.stopImmediatePropagation=Ne,this.preventDefault=Ne,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),un={mousedown:function(r){r=Va(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Va(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=Va(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Va(this.dom,r);var e=r.toElement||r.relatedTarget;CP(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){ZM=!0,r=Va(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){ZM||(r=Va(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Va(this.dom,r),H1(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),un.mousemove.call(this,r),un.mousedown.call(this,r)},touchmove:function(r){r=Va(this.dom,r),H1(r),this.handler.processGesture(r,"change"),un.mousemove.call(this,r)},touchend:function(r){r=Va(this.dom,r),H1(r),this.handler.processGesture(r,"end"),un.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<jH&&un.click.call(this,r)},pointerdown:function(r){un.mousedown.call(this,r)},pointermove:function(r){mb(r)||un.mousemove.call(this,r)},pointerup:function(r){un.mouseup.call(this,r)},pointerout:function(r){mb(r)||un.mouseout.call(this,r)}};N(["click","dblclick","contextmenu"],function(r){un[r]=function(e){e=Va(this.dom,e),this.trigger(r,e)}});var _b={pointermove:function(r){mb(r)||_b.mousemove.call(this,r)},pointerup:function(r){_b.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 ZH(r,e){var t=e.domHandlers;Ut.pointerEventsSupported?N(G1.pointer,function(a){eg(e,a,function(n){t[a].call(r,n)})}):(Ut.touchEventsSupported&&N(G1.touch,function(a){eg(e,a,function(n){t[a].call(r,n),YH(e)})}),N(G1.mouse,function(a){eg(e,a,function(n){n=rw(n),e.touching||t[a].call(r,n)})}))}function qH(r,e){Ut.pointerEventsSupported?N(WM.pointer,t):Ut.touchEventsSupported||N(WM.mouse,t);function t(a){function n(i){i=rw(i),CP(r,i.target)||(i=XH(r,i),e.domHandlers[a].call(r,i))}eg(e,a,n,{capture:!0})}}function eg(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,fb(r.domTarget,e,t,a)}function U1(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&iH(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})(),$H=(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,un),V1&&(n._globalHandlerScope=new qM(document,_b)),ZH(n,n._localHandlerScope),n}return e.prototype.dispose=function(){U1(this._localHandlerScope),V1&&U1(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,V1&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?qH(this,a):U1(a)}},e})($a),DP=1;Ut.hasGlobalWindow&&(DP=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Lg=DP,xb=.4,bb="#333",Sb="#ccc",KH="#eee",$M=uv,KM=5e-5;function gl(r){return r>KM||r<-KM}var yl=[],cu=[],F1=aa(),j1=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 gl(this.rotation)||gl(this.x)||gl(this.y)||gl(this.scaleX-1)||gl(this.scaleY-1)||gl(this.skewX)||gl(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&($M(a),this.invTransform=null);return}a=a||aa(),t?this.getLocalTransform(a):$M(a),e&&(t?Hn(a,e,a):Ty(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(yl);var a=yl[0]<0?-1:1,n=yl[1]<0?-1:1,i=((yl[0]-a)*t+a)/yl[0]||0,o=((yl[1]-n)*t+n)/yl[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||aa(),ys(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||aa(),Hn(cu,e.invTransform,t),t=cu);var a=this.originX,n=this.originY;(a||n)&&(F1[4]=a,F1[5]=n,Hn(cu,t,F1),cu[4]-=a,cu[5]-=n,t=cu),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&&j1(e[0]-1)>1e-10&&j1(e[3]-1)>1e-10?Math.sqrt(j1(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){MP(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&&jo(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})(),Fn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function MP(r,e){for(var t=0;t<Fn.length;t++){var a=Fn[t];r[a]=e[a]}}var QM={};function _a(r,e){e=e||ko;var t=QM[e];t||(t=QM[e]=new fv(500));var a=t.get(r);return a==null&&(a=mn.measureText(r,e).width,t.put(r,a)),a}function JM(r,e,t,a){var n=_a(r,e),i=Dy(e),o=ah(0,n,t),l=Ou(0,i,a),s=new kt(o,l,n,i);return s}function cv(r,e,t,a){var n=((r||"")+"").split(`
63
+ `),i=n.length;if(i===1)return JM(n[0],e,t,a);for(var o=new kt(0,0,0,0),l=0;l<n.length;l++){var s=JM(n[l],e,t,a);l===0?o.copy(s):o.union(s)}return o}function ah(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Ou(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Dy(r){return _a("国",r)}function xn(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Eg(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+=xn(a[0],t.width),u+=xn(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 Y1="__zr_normal__",X1=Fn.concat(["ignore"]),QH=Za(Fn,function(r,e){return r[e]=!0,r},{ignore:!1}),hu={},JH=new kt(0,0,0,0),My=(function(){function r(e){this.id=QS(),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=JH;a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(hu,a,c):Eg(hu,a,c),i.x=hu.x,i.y=hu.y,o=hu.align,l=hu.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=xn(h[0],c.width),p=xn(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,S=void 0,w=void 0;m&&this.canBeInsideText()?(b=a.insideFill,S=a.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(b),w=!0)):(b=a.outsideFill,S=a.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(b),w=!0)),b=b||"#000",(b!==_.fill||S!==_.stroke||w!==_.autoStroke||o!==_.align||l!==_.verticalAlign)&&(s=!0,_.fill=b,_.stroke=S,_.autoStroke=w,_.align=o,_.verticalAlign=l,t.setDefaultTextStyle(_)),t.__dirty|=pa,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()?Sb:bb},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Hr(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,gn(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(St(e))for(var a=e,n=jt(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!==Y1)){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,X1)},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(Y1,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Y1,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){xy("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&=~pa),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&=~pa)}},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<X1.length;c++){var h=X1[c],d=i&&QH[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|=pa;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 ow(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){W1(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){W1(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=W1(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=pa;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})();Pe(My,$a);Pe(My,Ci);function W1(r,e,t,a,n){t=t||{};var i=[];LP(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 Z1(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function t7(r){return _r(r[0])}function e7(r,e,t){if(_r(e[t]))if(_r(r[t])||(r[t]=[]),Fr(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Z1(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(t7(n))for(var l=n[0].length,s=0;s<o;s++)i[s]?Z1(i[s],n[s],l):i[s]=Array.prototype.slice.call(n[s]);else Z1(i,n,o);i.length=n.length}else r[t]=e[t]}function r7(r,e){return r===e||_r(r)&&_r(e)&&a7(r,e)}function a7(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 LP(r,e,t,a,n,i,o,l){for(var s=jt(a),u=n.duration,c=n.delay,h=n.additive,d=n.setToFinal,p=!St(i),y=r.animators,m=[],_=0;_<s.length;_++){var b=s[_],S=a[b];if(S!=null&&t[b]!=null&&(p||i[b]))if(St(S)&&!_r(S)&&!lv(S)){if(e){l||(t[b]=S,r.updateDuringAnimation(e));continue}LP(r,b,t[b],S,n,i&&i[b],o,l)}else m.push(b);else l||(t[b]=S,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!r7(a[P],t[P])}),w=m.length),w>0||n.force&&!o.length){var E=void 0,R=void 0,O=void 0;if(l){R={},d&&(E={});for(var A=0;A<w;A++){var b=m[A];R[b]=t[b],d?E[b]=a[b]:t[b]=a[b]}}else if(d){O={};for(var A=0;A<w;A++){var b=m[A];O[b]=_h(t[b]),e7(t,a,b)}}var M=new ow(t,!1,!1,h?te(y,function(B){return B.targetName===e}):null);M.targetName=e,n.scope&&(M.scope=n.scope),d&&E&&M.whenWithKeys(0,E,m),O&&M.whenWithKeys(0,O,m),M.whenWithKeys(u??500,l?R: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})(My);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 rg={},Xl={};function n7(r){delete Xl[r]}function i7(r){if(!r)return!1;if(typeof r=="string")return zh(r,1)<xb;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=zh(e[n].color,1);return t/=a,t<xb}return!1}var o7=(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 yH,o=a.renderer||"canvas";rg[o]||(o=jt(rg)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var l=new rg[o](t,i,a,e),s=a.ssr||l.ssrOnly;this.storage=i,this.painter=l;var u=!Ut.node&&!Ut.worker&&!s?new $H(l.getViewportRoot(),l.root):null,c=a.useCoarsePointer,h=c==null||c==="auto"?Ut.touchEventsSupported:!!c,d=44,p;h&&(p=Et(a.pointerSize,d)),this.handler=new sP(i,l,u,l.root,p),this.animation=new FH({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=i7(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=ku();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=ku();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,n7(this.id))},r})();function wb(r,e){var t=new o7(QS(),r,e);return Xl[t.id]=t,t}function l7(r){r.dispose()}function s7(){for(var r in Xl)Xl.hasOwnProperty(r)&&Xl[r].dispose();Xl={}}function u7(r){return Xl[r]}function EP(r,e){rg[r]=e}var Tb;function RP(r){if(typeof Tb=="function")return Tb(r)}function IP(r){Tb=r}var f7="5.6.1";const c7=Object.freeze(Object.defineProperty({__proto__:null,dispose:l7,disposeAll:s7,getElementSSRData:RP,getInstance:u7,init:wb,registerPainter:EP,registerSSRDataGetter:IP,version:f7},Symbol.toStringTag,{value:"Module"}));var tL=1e-4,OP=20;function h7(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)?h7(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Oe(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),OP),r=(+r).toFixed(e),t?r:+r}function ya(r){return r.sort(function(e,t){return e-t}),r}function hn(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 NP(r)}function NP(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 lw(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 v7(r,e,t){if(!r[e])return 0;var a=PP(r,t);return a[e]||0}function PP(r,e){var t=Za(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=Za(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 d7(r,e){var t=Math.max(hn(r),hn(e)),a=r+e;return t>OP?a:Oe(a,t)}var Ab=9007199254740991;function sw(r){var e=Math.PI*2;return(r%e+e)%e}function Ku(r){return r>-tL&&r<tL}var p7=/^(?:(\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 xa(r){if(r instanceof Date)return r;if(vt(r)){var e=p7.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 zP(r){return Math.pow(10,Ly(r))}function Ly(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 uw(r,e){var t=Ly(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 ag(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 Cb(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 fw(r){return!isNaN(jn(r))}function kP(){return Math.round(Math.random()*9)}function BP(r,e){return e===0?r:BP(e,r%e)}function eL(r,e){return r==null?e:e==null?r:r*e/BP(r,e)}function le(r){throw new Error(r)}function rL(r,e,t){return(e-r)*t+r}var VP="series\0",GP="\0_ec_\0";function de(r){return r instanceof Array?r:r==null?[]:[r]}function ss(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 aL=["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 uf(r){return St(r)&&!it(r)&&!(r instanceof Date)?r.value:r}function g7(r){return St(r)&&!(r instanceof Array)}function HP(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(!St(s)){e[u]=null;return}});var l=y7(r,o,t);return(a||n)&&m7(l,r,o,e),a&&_7(l,e),a||n?x7(l,e,n):i&&b7(l,e),S7(l),l}function y7(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"||Bh(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function m7(r,e,t,a){N(a,function(n,i){if(!(!n||n.id==null)){var o=xh(n.id),l=t.get(o);if(l!=null){var s=r[l];Rr(!s.newOption,'Duplicated option on id "'+o+'".'),s.newOption=n,s.existing=e[l],a[i]=null}}})}function _7(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)&&!Bh(t)&&!Bh(i)&&UP("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function x7(r,e,t){N(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||Bh(n.existing)||n.existing&&a.id!=null&&!UP("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function b7(r,e){N(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function S7(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;Rr(!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(St(i)){if(o.name=i.name!=null?xh(i.name):n?n.name:VP+a,n)o.id=xh(n.id);else if(i.id!=null)o.id=xh(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 UP(r,e,t){var a=Ke(e[r],null),n=Ke(t[r],null);return a!=null&&n!=null&&a===n}function xh(r){return Ke(r,"")}function Ke(r,e){return r==null?e:vt(r)?r:Qt(r)||xg(r)?r+"":e}function cw(r){var e=r.name;return!!(e&&e.indexOf(VP))}function Bh(r){return r&&r.id!=null&&xh(r.id).indexOf(GP)===0}function w7(r){return GP+r}function T7(r,e,t){N(r,function(a){var n=a.newOption;St(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=A7(e,n,a.existing,t))})}function A7(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function C7(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 us(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_"+D7++;return function(e){return e[r]||(e[r]={})}}var D7=kP();function bh(r,e,t){var a=hw(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=hv(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 hw(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 Ye={useDefault:!0,enableAll:!1,enableNone:!1},M7={useDefault:!1,enableAll:!0,enableNone:!0};function hv(r,e,t,a){a=a||Ye;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?(Rr(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):(n==="all"&&(Rr(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 FP(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function L7(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function E7(r){return r==="auto"?Ut.domSupported?"html":"richText":r||"html"}function Db(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 jP(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Qt(a)){var o=rL(t||0,a,n);return Oe(o,i?Math.max(hn(t||0),hn(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=rL(p,y,n);l[h]=Oe(o,i?Math.max(hn(p),hn(y)):e)}}return l}}var R7=".",ml="___EC__COMPONENT__CONTAINER___",YP="___EC__EXTENDED_CLASS___";function kn(r){var e={main:"",sub:""};if(r){var t=r.split(R7);e.main=t[0]||"",e.sub=t[1]||""}return e}function I7(r){Rr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function O7(r){return!!(r&&r[YP])}function vw(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return N7(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)},JS(n,this)),rt(n.prototype,t),n[YP]=!0,n.extend=this.extend,n.superCall=k7,n.superApply=B7,n.superClass=a,n}}function N7(r){return _t(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function XP(r,e){r.extend=e.extend}var P7=Math.round(Math.random()*10);function z7(r){var e=["__\0is_clz",P7++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function k7(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 B7(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Ey(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){I7(n),a.prototype.type=n;var i=kn(n);if(!i.sub)e[i.main]=a;else if(i.sub!==ml){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[ml]&&(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=kn(a),i=[],o=e[n.main];return o&&o[ml]?N(o,function(l,s){s!==ml&&i.push(l)}):i.push(o),i},r.hasClass=function(a){var n=kn(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=kn(a),i=e[n.main];return i&&i[ml]};function t(a){var n=e[a.main];return(!n||!n[ml])&&(n=e[a.main]={},n[ml]=!0),n}}function fs(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 V7=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],G7=fs(V7),H7=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return G7(this,e,t)},r})(),Mb=new fv(50);function U7(r){if(typeof r=="string"){var e=Mb.get(r);return e&&e.image}else return r}function dw(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=Mb.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!Ry(e)&&i.pending.push(o)):(e=mn.loadImage(r,nL,nL),e.__zrImageSrc=r,Mb.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function nL(){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 Ry(r){return r&&r.width&&r.height}var q1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function F7(r,e,t,a,n){var i={};return WP(i,r,e,t,a,n),i.text}function WP(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
72
+ `);i=ZP(t,a,n,i);for(var l=!1,s={},u=0,c=o.length;u<c;u++)qP(s,o[u],i),o[u]=s.textLine,l=l||s.isTruncated;r.text=o.join(`
73
+ `),r.isTruncated=l}function ZP(r,e,t,a){a=a||{};var n=rt({},a);n.font=e,t=Et(t,"..."),n.maxIterations=Et(a.maxIterations,2);var i=n.minChar=Et(a.minChar,0);n.cnCharWidth=_a("国",e);var o=n.ascCharWidth=_a("a",e);n.placeholder=Et(a.placeholder,"");for(var l=r=Math.max(0,r-1),s=0;s<i&&l>=o;s++)l-=o;var u=_a(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 qP(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=_a(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?j7(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=_a(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function j7(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 Y7(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=Dy(n),l=Et(e.lineHeight,o),s=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=!1,h=e.width,d;h!=null&&(t==="break"||t==="breakAll")?d=r?$P(r,e.font,h,t==="breakAll",0).lines:[]:d=r?r.split(`
74
+ `):[];var p=d.length*l,y=Et(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 _=ZP(h,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},S=0;S<d.length;S++)qP(b,d[S],_),d[S]=b.textLine,c=c||b.isTruncated;for(var w=y,A=0,S=0;S<d.length;S++)A=Math.max(_a(d[S],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 X7=(function(){function r(){}return r})(),iL=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),W7=(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 Z7(r,e){var t=new W7;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=q1.lastIndex=0,s;(s=q1.exec(r))!=null;){var u=s.index;u>l&&$1(t,r.substring(l,u),e,o),$1(t,s[2],e,o,s[1]),l=q1.lastIndex}l<r.length&&$1(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,U,W){tt.width=U,tt.lineHeight=W,h+=W,d=Math.max(d,U)}t:for(var S=0;S<t.lines.length;S++){for(var w=t.lines[S],A=0,M=0,D=0;D<w.tokens.length;D++){var L=w.tokens[D],E=L.styleName&&e.rich[L.styleName]||{},R=L.textPadding=E.padding,O=R?R[1]+R[3]:0,P=L.font=E.font||e.font;L.contentHeight=Dy(P);var B=Et(E.height,L.contentHeight);if(L.innerHeight=B,R&&(B+=R[0]+R[2]),L.height=B,L.lineHeight=dn(E.lineHeight,e.lineHeight,B),L.align=E&&E.align||e.align,L.verticalAlign=E&&E.verticalAlign||"middle",m&&n!=null&&h+L.lineHeight>n){var G=t.lines.length;D>0?(w.tokens=w.tokens.slice(0,D),b(w,M,A),t.lines=t.lines.slice(0,S+1)):t.lines=t.lines.slice(0,S),t.isTruncated=t.isTruncated||t.lines.length<G;break t}var H=E.width,F=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")L.percentWidth=H,c.push(L),L.contentWidth=_a(L.text,P);else{if(F){var k=E.backgroundColor,j=k&&k.image;j&&(j=U7(j),Ry(j)&&(L.width=Math.max(L.width,j.width*B/j.height)))}var Y=y&&a!=null?a-M:null;Y!=null&&Y<L.width?!F||Y<O?(L.text="",L.width=L.contentWidth=0):(WP(_,L.text,Y-O,P,e.ellipsis,{minChar:e.truncateMinChar}),L.text=_.text,t.isTruncated=t.isTruncated||_.isTruncated,L.width=L.contentWidth=_a(L.text,P)):L.contentWidth=_a(L.text,P)}L.width+=O,M+=L.width,E&&(A=Math.max(A,L.lineHeight))}b(w,M,A)}t.outerWidth=t.width=Et(a,d),t.outerHeight=t.height=Et(n,h),t.contentHeight=h,t.contentWidth=d,p&&(t.outerWidth+=p[1]+p[3],t.outerHeight+=p[0]+p[2]);for(var S=0;S<c.length;S++){var L=c[S],$=L.percentWidth;L.width=parseInt($,10)/100*t.width}return t}function $1(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=xn(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=$P(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[_],S=new X7;if(S.styleName=n,S.text=b,S.isLineHolder=!b&&!i,typeof o.width=="number"?S.width=o.width:S.width=h?h[_]:_a(b,s),!_&&!u){var w=(l[l.length-1]||(l[0]=new iL)).tokens,A=w.length;A===1&&w[0].isLineHolder?w[0]=S:(b||!A||i)&&w.push(S)}else l.push(new iL([S]))}}function q7(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var $7=Za(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function K7(r){return q7(r)?!!$7[r]:!0}function $P(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=_a(d,e),y=a?!1:!K7(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 Lb="__zr_style_"+Math.round(Math.random()*10),es={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Iy={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};es[Lb]=!0;var oL=["z","z2","invisible"],Q7=["invisible"],qa=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=jt(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&&J7(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|=eh,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&eh)},e.prototype.styleUpdated=function(){this.__dirty&=~eh},e.prototype.createStyle=function(t){return sv(es,t)},e.prototype.useStyle=function(t){t[Lb]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Lb]},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,oL)},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=jt(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=jt(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?Q7:oL,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 Iy},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=pa|eh})(),e})(My),K1=new kt(0,0,0,0),Q1=new kt(0,0,0,0);function J7(r,e,t){return K1.copy(r.getBoundingRect()),r.transform&&K1.applyTransform(r.transform),Q1.width=e,Q1.height=t,!K1.intersect(Q1)}var ta=Math.min,ea=Math.max,J1=Math.sin,t_=Math.cos,_l=Math.PI*2,np=Fo(),ip=Fo(),op=Fo();function Oy(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=ta(n,a[0]),i=ea(i,a[0]),o=ta(o,a[1]),l=ea(l,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=l}}function lL(r,e,t,a,n,i){n[0]=ta(r,t),n[1]=ta(e,a),i[0]=ea(r,t),i[1]=ea(e,a)}var sL=[],uL=[];function tU(r,e,t,a,n,i,o,l,s,u){var c=vP,h=er,d=c(r,t,n,o,sL);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,sL[p]);s[0]=ta(y,s[0]),u[0]=ea(y,u[0])}d=c(e,a,i,l,uL);for(var p=0;p<d;p++){var m=h(e,a,i,l,uL[p]);s[1]=ta(m,s[1]),u[1]=ea(m,u[1])}s[0]=ta(r,s[0]),u[0]=ea(r,u[0]),s[0]=ta(o,s[0]),u[0]=ea(o,u[0]),s[1]=ta(e,s[1]),u[1]=ea(e,u[1]),s[1]=ta(l,s[1]),u[1]=ea(l,u[1])}function eU(r,e,t,a,n,i,o,l){var s=pP,u=cr,c=ea(ta(s(r,t,n),1),0),h=ea(ta(s(e,a,i),1),0),d=u(r,t,n,c),p=u(e,a,i,h);o[0]=ta(r,n,d),o[1]=ta(e,i,p),l[0]=ea(r,n,d),l[1]=ea(e,i,p)}function rU(r,e,t,a,n,i,o,l,s){var u=Ti,c=Ai,h=Math.abs(n-i);if(h%_l<1e-4&&h>1e-4){l[0]=r-t,l[1]=e-a,s[0]=r+t,s[1]=e+a;return}if(np[0]=t_(n)*t+r,np[1]=J1(n)*a+e,ip[0]=t_(i)*t+r,ip[1]=J1(i)*a+e,u(l,np,ip),c(s,np,ip),n=n%_l,n<0&&(n=n+_l),i=i%_l,i<0&&(i=i+_l),n>i&&!o?i+=_l:n<i&&o&&(n+=_l),o){var d=i;i=n,n=d}for(var p=0;p<i;p+=Math.PI/2)p>n&&(op[0]=t_(p)*t+r,op[1]=J1(p)*a+e,u(l,op,l),c(s,op,s))}var me={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},xl=[],bl=[],Dn=[],fo=[],Mn=[],Ln=[],e_=Math.min,r_=Math.max,Sl=Math.cos,wl=Math.sin,di=Math.abs,Eb=Math.PI,_o=Eb*2,a_=typeof Float32Array<"u",Mc=[];function n_(r){var e=Math.round(r/Eb*1e8)/1e8;return e%2*Eb}function pw(r,e){var t=n_(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-n_(t-n)):e&&t<n&&(n=t-(_o-n_(n-t))),r[0]=t,r[1]=n}var Yn=(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=di(a/Lg/e)||0,this._uy=di(a/Lg/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=di(e-this._xi),n=di(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(),Mc[0]=n,Mc[1]=i,pw(Mc,o),n=Mc[0],i=Mc[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=Sl(i)*a+e,this._yi=wl(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)&&a_&&(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();a_&&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,a_&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Dn[0]=Dn[1]=Mn[0]=Mn[1]=Number.MAX_VALUE,fo[0]=fo[1]=Ln[0]=Ln[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++],Mn[0]=n,Mn[1]=i,Ln[0]=n,Ln[1]=i;break;case me.L:lL(t,a,e[o],e[o+1],Mn,Ln),t=e[o++],a=e[o++];break;case me.C:tU(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Mn,Ln),t=e[o++],a=e[o++];break;case me.Q:eU(t,a,e[o++],e[o++],e[o],e[o+1],Mn,Ln),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=Sl(p)*h+u,i=wl(p)*d+c),rU(u,c,h,d,p,y,m,Mn,Ln),t=Sl(y)*h+u,a=wl(y)*d+c;break;case me.R:n=t=e[o++],i=a=e[o++];var _=e[o++],b=e[o++];lL(n,i,n+_,i+b,Mn,Ln);break;case me.Z:t=n,a=i;break}Ti(Dn,Dn,Mn),Ai(fo,fo,Ln)}return o===0&&(Dn[0]=Dn[1]=fo[0]=fo[1]=0),new kt(Dn[0],Dn[1],fo[0]-Dn[0],fo[1]-Dn[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++],S=_-i,w=b-o;(di(S)>a||di(w)>n||d===t-1)&&(m=Math.sqrt(S*S+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=mH(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=xH(i,o,A,M,_,b,10),i=_,o=b;break}case me.A:var E=e[d++],R=e[d++],O=e[d++],P=e[d++],B=e[d++],G=e[d++],H=G+B;d+=1,y&&(l=Sl(B)*O+E,s=wl(B)*P+R),m=r_(O,P)*e_(_o,Math.abs(G)),i=Sl(H)*O+E,o=wl(H)*P+R;break;case me.R:{l=i=e[d++],s=o=e[d++];var F=e[d++],k=e[d++];m=F*2+k*2;break}case me.Z:{var S=l-i,w=s-o;m=Math.sqrt(S*S+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,S,w=0,A,M;if(!(p&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,m=this._pathLen,S=t*m,!S)))t:for(var D=0;D<o;){var L=a[D++],E=D===1;switch(E&&(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 R=di(h-u),O=di(d-c);if(R>n||O>i){if(p){var P=y[b++];if(_+P>S){var B=(S-_)/P;e.lineTo(u*(1-B)+h*B,c*(1-B)+d*B);break t}_+=P}e.lineTo(h,d),u=h,c=d,w=0}else{var G=R*R+O*O;G>w&&(A=h,M=d,w=G)}break}case me.C:{var H=a[D++],F=a[D++],k=a[D++],j=a[D++],Y=a[D++],$=a[D++];if(p){var P=y[b++];if(_+P>S){var B=(S-_)/P;Bo(u,H,k,Y,B,xl),Bo(c,F,j,$,B,bl),e.bezierCurveTo(xl[1],bl[1],xl[2],bl[2],xl[3],bl[3]);break t}_+=P}e.bezierCurveTo(H,F,k,j,Y,$),u=Y,c=$;break}case me.Q:{var H=a[D++],F=a[D++],k=a[D++],j=a[D++];if(p){var P=y[b++];if(_+P>S){var B=(S-_)/P;Oh(u,H,k,B,xl),Oh(c,F,j,B,bl),e.quadraticCurveTo(xl[1],bl[1],xl[2],bl[2]);break t}_+=P}e.quadraticCurveTo(H,F,k,j),u=k,c=j;break}case me.A:var tt=a[D++],U=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=di(W-at)>.001,Ot=lt+ct,yt=!1;if(p){var P=y[b++];_+P>S&&(Ot=lt+ct*(S-_)/P,yt=!0),_+=P}if(pt&&e.ellipse?e.ellipse(tt,U,W,at,bt,lt,Ot,Pt):e.arc(tt,U,wt,lt,Ot,Pt),yt)break t;E&&(l=Sl(lt)*W+tt,s=wl(lt)*at+U),u=Sl(Ot)*W+tt,c=wl(Ot)*at+U;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>S){var Zt=S-_;e.moveTo(h,d),e.lineTo(h+e_(Zt,Dt),d),Zt-=Dt,Zt>0&&e.lineTo(h+Dt,d+e_(Zt,ce)),Zt-=ce,Zt>0&&e.lineTo(h+r_(Dt-Zt,0),d+ce),Zt-=Dt,Zt>0&&e.lineTo(h,d+r_(ce-Zt,0));break t}_+=P}e.rect(h,d,Dt,ce);break;case me.Z:if(p){var P=y[b++];if(_+P>S){var B=(S-_)/P;e.lineTo(u*(1-B)+l*B,c*(1-B)+s*B);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 aU(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=dP(r,e,t,a,n,i,o,l,u,c,null);return d<=h/2}function KP(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=gP(r,e,t,a,n,i,l,s,null);return c<=u/2}var fL=Math.PI*2;function ma(r){return r%=fL,r<0&&(r+=fL),r}var Lc=Math.PI*2;function nU(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)%Lc<1e-4)return!0;if(i){var h=a;a=ma(n),n=ma(h)}else a=ma(a),n=ma(n);a>n&&(n+=Lc);var d=Math.atan2(s,l);return d<0&&(d+=Lc),d>=a&&d<=n||d+Lc>=a&&d+Lc<=n}function Si(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=Yn.CMD,Tl=Math.PI*2,iU=1e-4;function oU(r,e){return Math.abs(r-e)<iU}var Br=[-1,-1,-1],Ha=[-1,-1];function lU(){var r=Ha[0];Ha[0]=Ha[1],Ha[1]=r}function sU(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=Ag(e,a,i,l,u,Br);if(c===0)return 0;for(var h=0,d=-1,p=void 0,y=void 0,m=0;m<c;m++){var _=Br[m],b=_===0||_===1?.5:1,S=er(r,t,n,o,_);S<s||(d<0&&(d=vP(e,a,i,l,Ha),Ha[1]<Ha[0]&&d>1&&lU(),p=er(e,a,i,l,Ha[0]),d>1&&(y=er(e,a,i,l,Ha[1]))),d===2?_<Ha[0]?h+=p<e?b:-b:_<Ha[1]?h+=y<p?b:-b:h+=l<y?b:-b:_<Ha[0]?h+=p<e?b:-b:h+=l<p?b:-b)}return h}function uU(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=_H(e,a,i,l,Br);if(s===0)return 0;var u=pP(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=Br[d]===0||Br[d]===1?.5:1,y=cr(r,t,n,Br[d]);y<o||(Br[d]<u?c+=h<e?p:-p:c+=i<h?p:-p)}return c}else{var p=Br[0]===0||Br[0]===1?.5:1,y=cr(r,t,n,Br[0]);return y<o?0:i<e?p:-p}}function fU(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);Br[0]=-s,Br[1]=s;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Tl-1e-4){a=0,n=Tl;var c=i?1:-1;return o>=Br[0]+r&&o<=Br[1]+r?c:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=Tl,n+=Tl);for(var d=0,p=0;p<2;p++){var y=Br[p];if(y+r>o){var m=Math.atan2(l,y),c=i?1:-1;m<0&&(m=Tl+m),(m>=a&&m<=n||m+Tl>=a&&m+Tl<=n)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function QP(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+=Si(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+=Si(s,u,i[y],i[y+1],a,n)||0;s=i[y++],u=i[y++];break;case co.C:if(t){if(aU(s,u,i[y++],i[y++],i[y++],i[y++],i[y],i[y+1],e,a,n))return!0}else l+=sU(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(KP(s,u,i[y++],i[y++],i[y],i[y+1],e,a,n))return!0}else l+=uU(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++],S=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+S,_?(c=d,h=p):l+=Si(s,u,d,p,a,n);var E=(a-b)*A/w+b;if(t){if(nU(b,S,A,M,M+D,L,e,E,n))return!0}else l+=fU(b,S,A,M,M+D,L,E,n);s=Math.cos(M+D)*w+b,u=Math.sin(M+D)*A+S;break;case co.R:c=s=i[y++],h=u=i[y++];var R=i[y++],O=i[y++];if(d=c+R,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+=Si(d,h,d,p,a,n),l+=Si(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+=Si(s,u,c,h,a,n);s=c,u=h;break}}return!t&&!oU(u,h)&&(l+=Si(s,u,c,h,a,n)||0),l!==0}function cU(r,e,t){return QP(r,0,!1,e,t)}function hU(r,e,t,a){return QP(r,e,!0,t,a)}var Rg=xt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},es),vU={style:xt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Iy.style)},i_=Fn.concat(["invisible","culling","z","z2","zlevel","parent"]),Ft=(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<i_.length;++l)n[i_[l]]=this[i_[l]];n.__dirty|=pa}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=jt(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=zh(t,0);return a>.5?bb:a>.2?KH:Sb}else if(t)return Sb}return bb},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(vt(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=zh(t,0)<xb;if(i===o)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Iu},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 Yn(!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&Iu)&&(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)),hU(l,s/u,t,a)))return!0}if(this.hasFill())return cU(l,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Iu,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&Iu)},e.prototype.createStyle=function(t){return sv(Rg,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=jt(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 vU},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=pa|eh|Iu})(),e})(qa),dU=xt({strokeFirst:!0,font:ko,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Rg),Qu=(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 sv(dU,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=cv(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})(qa);Qu.prototype.type="tspan";var pU=xt({x:0,y:0},es),gU={style:xt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Iy.style)};function yU(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var lr=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return sv(pU,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=yU(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 gU},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})(qa);lr.prototype.type="image";function mU(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 Bu=Math.round;function JP(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&&(Bu(a*2)===Bu(n*2)&&(r.x1=r.x2=Wl(a,l,!0)),Bu(i*2)===Bu(o*2)&&(r.y1=r.y2=Wl(i,l,!0))),r}}function t5(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=Wl(a,l,!0),r.y=Wl(n,l,!0),r.width=Math.max(Wl(a+i,l,!1)-r.x,i===0?0:1),r.height=Math.max(Wl(n+o,l,!1)-r.y,o===0?0:1)),r}}function Wl(r,e,t){if(!e)return r;var a=Bu(r*2);return(a+Bu(e))%2===0?a/2:(a+(t?1:-1))/2}var _U=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),xU={},Wt=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new _U},e.prototype.buildPath=function(t,a){var n,i,o,l;if(this.subPixelOptimize){var s=t5(xU,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?mU(t,a):t.rect(n,i,o,l)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ft);Wt.prototype.type="rect";var cL={fill:"#000"},hL=2,bU={style:xt({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},Iy.style)},Xt=(function(r){Z(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=cL,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,TU(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||cL},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=jt(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 bU},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=_L(t),o=Y7(i,t),l=o_(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",S=t.verticalAlign||y.verticalAlign||"top",w=m,A=Ou(_,o.contentHeight,S);if(l||n){var M=ah(m,c,b),D=Ou(_,u,S);l&&this._renderBackground(t,t,M,D,c,u)}A+=p/2,n&&(w=mL(m,b,n),S==="top"?A+=n[0]:S==="bottom"&&(A-=n[2]));for(var L=0,E=!1,R=yL("fill"in t?t.fill:(E=!0,y.fill)),O=gL("stroke"in t?t.stroke:!s&&(!y.autoStroke||E)?(L=hL,y.stroke):null),P=t.textShadowBlur>0,B=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),G=o.calculatedLineHeight,H=0;H<d.length;H++){var F=this._getOrCreateChild(Qu),k=F.createStyle();F.useStyle(k),k.text=d[H],k.x=w,k.y=A,k.textAlign=b,k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,P&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),k.stroke=O,k.fill=R,O&&(k.lineWidth=t.lineWidth||L,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),k.font=a,dL(k,t),A+=p,B&&F.setBoundingRect(new kt(ah(k.x,h,k.textAlign),Ou(k.y,G,k.textBaseline),h,G))}},e.prototype._updateRichTexts=function(){var t=this.style,a=_L(t),n=Z7(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=ah(u,o,d),m=Ou(c,l,p),_=y,b=m;s&&(_+=s[3],b+=s[0]);var S=_+i;o_(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,E=M.lineHeight,R=M.width,O=0,P=_,B=S,G=L-1,H=void 0;O<L&&(H=D[O],!H.align||H.align==="left");)this._placeToken(H,t,E,b,P,"left",w),R-=H.width,P+=H.width,O++;for(;G>=0&&(H=D[G],H.align==="right");)this._placeToken(H,t,E,b,B,"right",w),R-=H.width,B-=H.width,G--;for(P+=(i-(P-_)-(S-B)-R)/2;O<=G;)H=D[O],this._placeToken(H,t,E,b,P+H.width/2,"center",w),P+=H.width,O++;b+=E}},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&&o_(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=mL(o,l,y),h-=t.height/2-y[0]-t.innerHeight/2);var m=this._getOrCreateChild(Qu),_=m.createStyle();m.useStyle(_);var b=this._defaultStyle,S=!1,w=0,A=yL("fill"in u?u.fill:"fill"in a?a.fill:(S=!0,b.fill)),M=gL("stroke"in u?u.stroke:"stroke"in a?a.stroke:!p&&!s&&(!b.autoStroke||S)?(w=hL,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=dn(u.opacity,a.opacity,1),dL(_,u),M&&(_.lineWidth=dn(u.lineWidth,a.lineWidth,w),_.lineDash=Et(u.lineDash,a.lineDash),_.lineDashOffset=a.lineDashOffset||0,_.stroke=M),A&&(_.fill=A);var L=t.contentWidth,E=t.contentHeight;m.setBoundingRect(new kt(ah(_.x,L,_.textAlign),Ou(_.y,E,_.textBaseline),L,E))},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 S=m.style;S.fill=s||null,S.fillOpacity=Et(t.fillOpacity,1)}else if(h){_=this._getOrCreateChild(lr),_.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 S=m.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=Et(t.strokeOpacity,1),S.lineDash=t.borderDash,S.lineDashOffset=t.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(S.strokeFirst=!0,S.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=dn(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return r5(t)&&(a=[t.fontStyle,t.fontWeight,e5(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Xa(a)||t.textFont||t.font},e})(qa),SU={left:!0,right:1,center:1},wU={top:1,bottom:1,middle:1},vL=["fontStyle","fontWeight","fontSize","fontFamily"];function e5(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?qS+"px":r+"px"}function dL(r,e){for(var t=0;t<vL.length;t++){var a=vL[t],n=e[a];n!=null&&(r[a]=n)}}function r5(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function TU(r){return pL(r),N(r.rich,pL),r}function pL(r){if(r){r.font=Xt.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||SU[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||wU[t]?t:"top";var a=r.padding;a&&(r.padding=wy(r.padding))}}function gL(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function yL(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function mL(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function _L(r){var e=r.text;return e!=null&&(e+=""),e}function o_(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Mt=$t(),Rb=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"})}},xL=1,bL={},a5=$t(),gw=$t(),yw=0,vv=1,Ny=2,jr=["emphasis","blur","select"],Vh=["normal","emphasis","blur","select"],ff=10,AU=9,rs="highlight",ng="downplay",Sh="select",ig="unselect",wh="toggleSelect";function vu(r){return r!=null&&r!=="none"}function Py(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function n5(r){Py(r,"emphasis",Ny)}function i5(r){r.hoverState===Ny&&Py(r,"normal",yw)}function mw(r){Py(r,"blur",vv)}function o5(r){r.hoverState===vv&&Py(r,"normal",yw)}function CU(r){r.selected=!0}function DU(r){r.selected=!1}function SL(r,e,t){e(r,t)}function Bi(r,e,t){SL(r,e,t),r.isGroup&&r.traverse(function(a){SL(a,e,t)})}function Ig(r,e){switch(e){case"emphasis":r.hoverState=Ny;break;case"normal":r.hoverState=yw;break;case"blur":r.hoverState=vv;break;case"select":r.selected=!0}}function MU(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 LU(r,e,t,a){var n=t&&Bt(t,"select")>=0,i=!1;if(r instanceof Ft){var o=a5(r),l=n&&o.selectFill||o.normalFill,s=n&&o.selectStroke||o.normalStroke;if(vu(l)||vu(s)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=rt({},a),u=rt({},u),u.fill=l):!vu(u.fill)&&vu(l)?(i=!0,a=rt({},a),u=rt({},u),u.fill=Dg(l)):!vu(u.stroke)&&vu(s)&&(i||(a=rt({},a),u=rt({},u)),u.stroke=Dg(s)),a.style=u}}if(a&&a.z2==null){i||(a=rt({},a));var c=r.z2EmphasisLift;a.z2=r.z2+(c??ff)}return a}function EU(r,e,t){if(t&&t.z2==null){t=rt({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??AU)}return t}function RU(r,e,t){var a=Bt(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:MU(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 l_(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return LU(this,r,e,t);if(r==="blur")return RU(this,r,t);if(r==="select")return EU(this,r,t)}return t}function cs(r){r.stateProxy=l_;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=l_),t&&(t.stateProxy=l_)}function wL(r,e){!f5(r,e)&&!r.__highByOuter&&Bi(r,n5)}function TL(r,e){!f5(r,e)&&!r.__highByOuter&&Bi(r,i5)}function Ri(r,e){r.__highByOuter|=1<<(e||0),Bi(r,n5)}function Ii(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Bi(r,i5)}function l5(r){Bi(r,mw)}function _w(r){Bi(r,o5)}function s5(r){Bi(r,CU)}function u5(r){Bi(r,DU)}function f5(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function c5(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=gw(i),l=n==="series",s=l?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!l&&a.push(s),o.isBlured&&(s.group.traverse(function(u){o5(u)}),l&&t.push(i)),o.isBlured=!1}),N(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Ib(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&&_w(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"||mw(_)}),_r(e))i(u.getData(),e);else if(St(e))for(var y=jt(e),m=0;m<y.length;m++)i(u.getData(y[m]),e[y[m]]);s.push(u),gw(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 Ob(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){gw(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){mw(i)})}}}function IU(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=us(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);Ib(a,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);c!=null&&Ib(a,c,h,t)}}}function xw(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 OU(r,e,t){var a=Mt(r),n=xw(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&Ob(a.componentMainType,a.componentIndex,t),N(i,function(l){return wL(l,e)})):(Ib(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&Ob(a.componentMainType,a.componentIndex,t),wL(r,e))}function NU(r,e,t){c5(t);var a=Mt(r),n=xw(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?N(n,function(i){return TL(i,e)}):TL(r,e)}function PU(r,e,t){if(Pb(e)){var a=e.dataType,n=r.getData(a),i=us(n,e);it(i)||(i=[i]),r[e.type===wh?"toggleSelect":e.type===Sh?"select":"unselect"](i,a)}}function AL(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)?s5(i):u5(i)})})}function zU(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){Zl(r,!0),Bi(r,cs),Nb(r,e,t)}function kU(r){Zl(r,!1)}function Re(r,e,t,a){a?kU(r):Io(r,e,t)}function Nb(r,e,t){var a=Mt(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var CL=["emphasis","blur","select"],BU={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function xr(r,e,t,a){t=t||"itemStyle";for(var n=0;n<CL.length;n++){var i=CL[n],o=e.getModel([i,t]),l=r.ensureState(i);l.style=a?a(o):o[BU[t]]()}}function Zl(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 Gh(r){return!!(r&&r.__highDownDispatcher)}function VU(r,e,t){var a=Mt(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function GU(r){var e=bL[r];return e==null&&xL<=32&&(e=bL[r]=xL++),e}function Pb(r){var e=r.type;return e===Sh||e===ig||e===wh}function DL(r){var e=r.type;return e===rs||e===ng}function HU(r){var e=a5(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 du=Yn.CMD,UU=[[],[],[]],ML=Math.sqrt,FU=Math.atan2;function h5(r,e){if(e){var t=r.data,a=r.len(),n,i,o,l,s,u,c=du.M,h=du.C,d=du.L,p=du.R,y=du.A,m=du.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],S=ML(e[0]*e[0]+e[1]*e[1]),w=ML(e[2]*e[2]+e[3]*e[3]),A=FU(-e[1]/w,e[0]/S);t[o]*=S,t[o++]+=_,t[o]*=w,t[o++]+=b,t[o++]*=S,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=UU[s];M[0]=t[o++],M[1]=t[o++],hr(M,M,e),t[l++]=M[0],t[l++]=M[1]}}r.increaseVersion()}}var s_=Math.sqrt,lp=Math.sin,sp=Math.cos,Ec=Math.PI;function LL(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function zb(r,e){return(r[0]*e[0]+r[1]*e[1])/(LL(r)*LL(e))}function EL(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(zb(r,e))}function RL(r,e,t,a,n,i,o,l,s,u,c){var h=s*(Ec/180),d=sp(h)*(r-t)/2+lp(h)*(e-a)/2,p=-1*lp(h)*(r-t)/2+sp(h)*(e-a)/2,y=d*d/(o*o)+p*p/(l*l);y>1&&(o*=s_(y),l*=s_(y));var m=(n===i?-1:1)*s_((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,S=(r+t)/2+sp(h)*_-lp(h)*b,w=(e+a)/2+lp(h)*_+sp(h)*b,A=EL([1,0],[(d-_)/o,(p-b)/l]),M=[(d-_)/o,(p-b)/l],D=[(-1*d-_)/o,(-1*p-b)/l],L=EL(M,D);if(zb(M,D)<=-1&&(L=Ec),zb(M,D)>=1&&(L=0),L<0){var E=Math.round(L/Ec*1e6)/1e6;L=Ec*2+E%2*Ec}c.addData(u,S,w,o,l,A,L,h,i)}var jU=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,YU=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function XU(r){var e=new Yn;if(!r)return e;var t=0,a=0,n=t,i=a,o,l=Yn.CMD,s=r.match(jU);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(YU)||[],y=p.length,m=0;m<y;m++)p[m]=parseFloat(p[m]);for(var _=0;_<y;){var b=void 0,S=void 0,w=void 0,A=void 0,M=void 0,D=void 0,L=void 0,E=t,R=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,S=a,O=e.len(),P=e.data,o===l.C&&(b+=t-P[O-4],S+=a-P[O-3]),d=l.C,E=p[_++],R=p[_++],t=p[_++],a=p[_++],e.addData(d,b,S,E,R,t,a);break;case"s":b=t,S=a,O=e.len(),P=e.data,o===l.C&&(b+=t-P[O-4],S+=a-P[O-3]),d=l.C,E=t+p[_++],R=a+p[_++],t+=p[_++],a+=p[_++],e.addData(d,b,S,E,R,t,a);break;case"Q":E=p[_++],R=p[_++],t=p[_++],a=p[_++],d=l.Q,e.addData(d,E,R,t,a);break;case"q":E=p[_++]+t,R=p[_++]+a,t+=p[_++],a+=p[_++],d=l.Q,e.addData(d,E,R,t,a);break;case"T":b=t,S=a,O=e.len(),P=e.data,o===l.Q&&(b+=t-P[O-4],S+=a-P[O-3]),t=p[_++],a=p[_++],d=l.Q,e.addData(d,b,S,t,a);break;case"t":b=t,S=a,O=e.len(),P=e.data,o===l.Q&&(b+=t-P[O-4],S+=a-P[O-3]),t+=p[_++],a+=p[_++],d=l.Q,e.addData(d,b,S,t,a);break;case"A":w=p[_++],A=p[_++],M=p[_++],D=p[_++],L=p[_++],E=t,R=a,t=p[_++],a=p[_++],d=l.A,RL(E,R,t,a,D,L,w,A,M,d,e);break;case"a":w=p[_++],A=p[_++],M=p[_++],D=p[_++],L=p[_++],E=t,R=a,t+=p[_++],a+=p[_++],d=l.A,RL(E,R,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 v5=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(Ft);function d5(r){return r.setData!=null}function p5(r,e){var t=XU(r),a=rt({},e);return a.buildPath=function(n){if(d5(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){h5(t,n),this.dirtyShape()},a}function g5(r,e){return new v5(p5(r,e))}function WU(r,e){var t=p5(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})(v5);return a}function ZU(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 Ft(e);return o.createPathProxy(),o.buildPath=function(l){if(d5(l)){l.appendPath(t);var s=l.getContext();s&&l.rebuildPath(s,1)}},o}function bw(r,e){e=e||{};var t=new Ft;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?h5(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 qU=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Xn=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new qU},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})(Ft);Xn.prototype.type="circle";var $U=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),dv=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $U},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})(Ft);dv.prototype.type="ellipse";var y5=Math.PI,u_=y5*2,Al=Math.sin,pu=Math.cos,KU=Math.acos,Tr=Math.atan2,IL=Math.abs,Th=Math.sqrt,nh=Math.max,En=Math.min,sn=1e-4;function QU(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<sn))return d=(c*(e-i)-h*(r-n))/d,[r+d*s,e+d*u]}function up(r,e,t,a,n,i,o){var l=r-t,s=e-a,u=(o?i:-i)/Th(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,S=y-d,w=m-p,A=S*S+w*w,M=n-i,D=d*m-y*p,L=(w<0?-1:1)*Th(nh(0,M*M*A-D*D)),E=(D*w-S*L)/A,R=(-D*S-w*L)/A,O=(D*w+S*L)/A,P=(-D*S+w*L)/A,B=E-_,G=R-b,H=O-_,F=P-b;return B*B+G*G>H*H+F*F&&(E=O,R=P),{cx:E,cy:R,x0:-c,y0:-h,x1:E*(n/M-1),y1:R*(n/M-1)}}function JU(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 t9(r,e){var t,a=nh(e.r,0),n=nh(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=IL(u-s),y=p>u_&&p%u_;if(y>sn&&(p=y),!(a>sn))r.moveTo(c,h);else if(p>u_-sn)r.moveTo(c+a*pu(s),h+a*Al(s)),r.arc(c,h,a,s,u,!d),n>sn&&(r.moveTo(c+n*pu(u),h+n*Al(u)),r.arc(c,h,n,u,s,d));else{var m=void 0,_=void 0,b=void 0,S=void 0,w=void 0,A=void 0,M=void 0,D=void 0,L=void 0,E=void 0,R=void 0,O=void 0,P=void 0,B=void 0,G=void 0,H=void 0,F=a*pu(s),k=a*Al(s),j=n*pu(u),Y=n*Al(u),$=p>sn;if($){var tt=e.cornerRadius;tt&&(t=JU(tt),m=t[0],_=t[1],b=t[2],S=t[3]);var U=IL(a-n)/2;if(w=En(U,b),A=En(U,S),M=En(U,m),D=En(U,_),R=L=nh(w,A),O=E=nh(M,D),(L>sn||E>sn)&&(P=a*pu(u),B=a*Al(u),G=n*pu(s),H=n*Al(s),p<y5)){var W=QU(F,k,G,H,P,B,j,Y);if(W){var at=F-W[0],lt=k-W[1],ct=P-W[0],bt=B-W[1],Pt=1/Al(KU((at*ct+lt*bt)/(Th(at*at+lt*lt)*Th(ct*ct+bt*bt)))/2),wt=Th(W[0]*W[0]+W[1]*W[1]);R=En(L,(a-wt)/(Pt+1)),O=En(E,(n-wt)/(Pt-1))}}}if(!$)r.moveTo(c+F,h+k);else if(R>sn){var pt=En(b,R),Ot=En(S,R),yt=up(G,H,F,k,a,pt,d),Dt=up(P,B,j,Y,a,Ot,d);r.moveTo(c+yt.cx+yt.x0,h+yt.cy+yt.y0),R<L&&pt===Ot?r.arc(c+yt.cx,h+yt.cy,R,Tr(yt.y0,yt.x0),Tr(Dt.y0,Dt.x0),!d):(pt>0&&r.arc(c+yt.cx,h+yt.cy,pt,Tr(yt.y0,yt.x0),Tr(yt.y1,yt.x1),!d),r.arc(c,h,a,Tr(yt.cy+yt.y1,yt.cx+yt.x1),Tr(Dt.cy+Dt.y1,Dt.cx+Dt.x1),!d),Ot>0&&r.arc(c+Dt.cx,h+Dt.cy,Ot,Tr(Dt.y1,Dt.x1),Tr(Dt.y0,Dt.x0),!d))}else r.moveTo(c+F,h+k),r.arc(c,h,a,s,u,!d);if(!(n>sn)||!$)r.lineTo(c+j,h+Y);else if(O>sn){var pt=En(m,O),Ot=En(_,O),yt=up(j,Y,P,B,n,-Ot,d),Dt=up(F,k,G,H,n,-pt,d);r.lineTo(c+yt.cx+yt.x0,h+yt.cy+yt.y0),O<E&&pt===Ot?r.arc(c+yt.cx,h+yt.cy,O,Tr(yt.y0,yt.x0),Tr(Dt.y0,Dt.x0),!d):(Ot>0&&r.arc(c+yt.cx,h+yt.cy,Ot,Tr(yt.y0,yt.x0),Tr(yt.y1,yt.x1),!d),r.arc(c,h,n,Tr(yt.cy+yt.y1,yt.cx+yt.x1),Tr(Dt.cy+Dt.y1,Dt.cx+Dt.x1),d),pt>0&&r.arc(c+Dt.cx,h+Dt.cy,pt,Tr(Dt.y1,Dt.x1),Tr(Dt.y0,Dt.x0),!d))}else r.lineTo(c+j,h+Y),r.arc(c,h,n,u,s,d)}r.closePath()}}}var e9=(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})(),Ir=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new e9},e.prototype.buildPath=function(t,a){t9(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ft);Ir.prototype.type="sector";var r9=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),cf=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new r9},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})(Ft);cf.prototype.type="ring";function a9(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(Gn(r[d]));continue}else s=r[d-1],u=r[d+1];wo(i,u,s),ph(i,i,e);var m=Sg(y,s),_=Sg(y,u),b=m+_;b!==0&&(m/=b,_/=b),ph(o,i,-m),ph(l,i,_);var S=ob([],y,o),w=ob([],y,l);a&&(Ai(S,S,c),Ti(S,S,h),Ai(w,w,c),Ti(w,w,h)),n.push(S),n.push(w)}return t&&n.push(n.shift()),n}function m5(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=a9(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 n9=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Or=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new n9},e.prototype.buildPath=function(t,a){m5(t,a,!0)},e})(Ft);Or.prototype.type="polygon";var i9=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),Pr=(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 i9},e.prototype.buildPath=function(t,a){m5(t,a,!1)},e})(Ft);Pr.prototype.type="polyline";var o9={},l9=(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 l9},e.prototype.buildPath=function(t,a){var n,i,o,l;if(this.subPixelOptimize){var s=JP(o9,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})(Ft);Qe.prototype.type="line";var Qr=[],s9=(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 OL(r,e,t){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(t?GM:er)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?GM:er)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?cb:cr)(r.x1,r.cpx1,r.x2,e),(t?cb:cr)(r.y1,r.cpy1,r.y2,e)]}var hf=(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 s9},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&&(Oh(n,s,o,d,Qr),s=Qr[1],o=Qr[2],Oh(i,u,l,d,Qr),u=Qr[1],l=Qr[2]),t.quadraticCurveTo(s,u,o,l)):(d<1&&(Bo(n,s,c,o,d,Qr),s=Qr[1],c=Qr[2],o=Qr[3],Bo(i,u,h,l,d,Qr),u=Qr[1],h=Qr[2],l=Qr[3]),t.bezierCurveTo(s,u,c,h,o,l)))},e.prototype.pointAt=function(t){return OL(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=OL(this.shape,t,!0);return gs(a,a)},e})(Ft);hf.prototype.type="bezier-curve";var u9=(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})(),pv=(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 u9},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})(Ft);pv.prototype.type="arc";var zy=(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),Ft.prototype.getBoundingRect.call(this)},e})(Ft),_5=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),vf=(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})(_5),Sw=(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})(_5),Cl=[0,0],Dl=[0,0],fp=new zt,cp=new zt,Og=(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 fp.set(1/0,1/0),cp.set(0,0),!this._intersectCheckOneSide(this,e,fp,cp,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,fp,cp,n,-1)&&(a=!1,n)||n||zt.copy(t,a?fp:cp),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,Cl),this._getProjMinMaxOnAxis(s,t._corners,Dl),Cl[1]<Dl[0]||Cl[0]>Dl[1]){if(l=!1,i)return l;var c=Math.abs(Dl[0]-Cl[1]),h=Math.abs(Cl[0]-Dl[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(Dl[0]-Cl[1]),h=Math.abs(Cl[0]-Dl[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})(),f9=[],x5=(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(f9)),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})(qa),b5=$t();function df(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=Et(a.duration,200),c=Et(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 ww(r,e,t,a,n,i,o){var l=!1,s;_t(n)?(o=i,i=n,n=null):St(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=df(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){ww("update",r,e,t,a,n,i)}function De(r,e,t,a,n,i){ww("enter",r,e,t,a,n,i)}function ju(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){ju(r)||ww("leave",r,e,t,a,n,i)}function NL(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),Vo(r,{style:{opacity:0}},e,t,a)}function Hh(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||NL(n,e,t,a)}):NL(r,e,t,a)}function bn(r){b5(r).oldStyle=r.style}function c9(r){return b5(r).oldStyle}var Ng=Math.max,Pg=Math.min,kb={};function S5(r){return Ft.extend(r)}var h9=WU;function w5(r,e){return h9(r,e)}function Ka(r,e){kb[r]=e}function ky(r){if(kb.hasOwnProperty(r))return kb[r]}function gv(r,e,t,a){var n=g5(r,e);return t&&(a==="center"&&(t=T5(t,n.getBoundingRect())),Aw(n,t)),n}function Tw(r,e,t){var a=new lr({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(T5(e,i))}}});return a}function T5(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 ga=ZU;function Aw(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function Ju(r,e){return JP(r,r,{lineWidth:e}),r}function v9(r){return t5(r.shape,r.shape,r.style),r}var og=Wl;function Oo(r,e){for(var t=uv([]);r&&r!==e;)Hn(t,r.getLocalTransform(),t),r=r.parent;return t}function yn(r,e,t){return e&&!_r(e)&&(e=Ci.getLocalTransform(e)),t&&(e=ys([],e)),hr([],r,e)}function By(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=yn(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function PL(r){return!r.isGroup}function d9(r){return r.shape!=null}function yv(r,e,t){if(!r||!e)return;function a(o){var l={};return o.traverse(function(s){PL(s)&&s.anid&&(l[s.anid]=s)}),l}function n(o){var l={x:o.x,y:o.y,rotation:o.rotation};return d9(o)&&(l.shape=rt({},o.shape)),l}var i=a(r);e.traverse(function(o){if(PL(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 Cw(r,e){return ot(r,function(t){var a=t[0];a=Ng(a,e.x),a=Pg(a,e.x+e.width);var n=t[1];return n=Ng(n,e.y),n=Pg(n,e.y+e.height),[a,n]})}function A5(r,e){var t=Ng(r.x,e.x),a=Pg(r.x+r.width,e.x+e.width),n=Ng(r.y,e.y),i=Pg(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 pf(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),xt(n,t),new lr(a)):gv(r.replace("path://",""),a,t,"center")}function ih(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var l=n[i];if(C5(r,e,t,a,l[0],l[1],o[0],o[1]))return!0;o=l}}function C5(r,e,t,a,n,i,o,l){var s=t-r,u=a-e,c=o-n,h=l-i,d=f_(c,h,s,u);if(p9(d))return!1;var p=r-n,y=e-i,m=f_(p,y,s,u)/d;if(m<0||m>1)return!1;var _=f_(p,y,c,h)/d;return!(_<0||_>1)}function f_(r,e,t,a){return r*a-t*e}function p9(r){return r<=1e-6&&r>=-1e-6}function ms(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(jt(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:xt({content:a,encodeHTMLContent:!0,formatterParams:l},n)}}function zL(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Yo(r,e){if(r)if(it(r))for(var t=0;t<r.length;t++)zL(r[t],e);else zL(r,e)}Ka("circle",Xn);Ka("ellipse",dv);Ka("sector",Ir);Ka("ring",cf);Ka("polygon",Or);Ka("polyline",Pr);Ka("rect",Wt);Ka("line",Qe);Ka("bezierCurve",hf);Ka("arc",pv);const _s=Object.freeze(Object.defineProperty({__proto__:null,Arc:pv,BezierCurve:hf,BoundingRect:kt,Circle:Xn,CompoundPath:zy,Ellipse:dv,Group:Ct,Image:lr,IncrementalDisplayable:x5,Line:Qe,LinearGradient:vf,OrientedBoundingRect:Og,Path:Ft,Point:zt,Polygon:Or,Polyline:Pr,RadialGradient:Sw,Rect:Wt,Ring:cf,Sector:Ir,Text:Xt,applyTransform:yn,clipPointsByRect:Cw,clipRectByRect:A5,createIcon:pf,extendPath:w5,extendShape:S5,getShapeClass:ky,getTransform:Oo,groupTransition:yv,initProps:De,isElementRemoved:ju,lineLineIntersect:C5,linePolygonIntersect:ih,makeImage:Tw,makePath:gv,mergePath:ga,registerShape:Ka,removeElement:Vo,removeElementWithFadeOut:Hh,resizePath:Aw,setTooltipConfig:ms,subPixelOptimize:og,subPixelOptimizeLine:Ju,subPixelOptimizeRect:v9,transformDirection:By,traverseElements:Yo,updateProps:Jt},Symbol.toStringTag,{value:"Module"}));var Vy={};function D5(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 Bb(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]=Et(a?a.getFormattedLabel(n,c,null,i,h&&h.get("formatter")):null,l)}return s}function br(r,e,t,a){t=t||Vy;for(var n=r instanceof Xt,i=!1,o=0;o<Vh.length;o++){var l=e[Vh[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=Bb(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(zg(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=!!Et(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=zg(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&&(gf(s).setLabelText=function(b){var S=Bb(t,e,b);D5(s,S)})}else s&&(s.ignore=!0);r.dirty()}function ir(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 g9(i,r,t,a,n),e&&rt(i,e),i}function zg(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=Et(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 g9(r,e,t,a,n){t=t||Vy;var i=e.ecModel,o=i&&i.option.textStyle,l=y9(e),s;if(l){s={};for(var u in l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);GL(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),GL(r,e,o,t,a,n,!0,!1)}function y9(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Vy).rich;if(t){e=e||{};for(var a=jt(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var kL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],BL=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],VL=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function GL(r,e,t,a,n,i,o,l){t=!n&&t||Vy;var s=a&&a.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Et(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=Et(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=Et(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var y=Et(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<kL.length;m++){var _=kL[m],b=Et(e.getShallow(_),t[_]);b!=null&&(r[_]=b)}for(var m=0;m<BL.length;m++){var _=BL[m],b=e.getShallow(_);b!=null&&(r[_]=b)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!o||!a.disableBox){for(var m=0;m<VL.length;m++){var _=VL[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 Dw(r,e){var t=e&&e.getModel("textStyle");return Xa([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 gf=$t();function M5(r,e,t,a){if(r){var n=gf(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 L5(r,e,t,a,n){var i=gf(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,l=Et(i.interpolatedValue,i.prevValue),s=i.value;function u(c){var h=jP(t,i.precision,l,s,c);i.interpolatedValue=c===1?null:h;var d=Bb({labelDataIndex:e,labelFetcher:n,defaultText:o?o(h):h+""},i.statesModels,h);D5(r,d)}r.percent=0,(i.prevValue==null?De:Jt)(r,{percent:1},a,e,null,u)}var m9=["textStyle","color"],c_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],h_=new Xt,_9=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(m9):null)},r.prototype.getFont=function(){return Dw({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<c_.length;a++)t[c_[a]]=this.getShallow(c_[a]);return h_.useStyle(t),h_.update(),h_.getBoundingRect()},r})(),E5=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],x9=fs(E5),b9=(function(){function r(){}return r.prototype.getLineStyle=function(e){return x9(this,e)},r})(),R5=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],S9=fs(R5),w9=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return S9(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(!Ut.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})();vw(ee);z7(ee);Pe(ee,b9);Pe(ee,w9);Pe(ee,H7);Pe(ee,_9);var T9=Math.round(Math.random()*10);function yf(r){return[r||"",T9++].join("_")}function A9(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=kn(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=kn(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function C9(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(S){d[S]=!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 S="";throw new Error(S)});function _(S){c[S].entryCount--,c[S].entryCount===0&&h.push(S)}function b(S){d[S]=!0,_(S)}};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 D9={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:". "}}}},M9={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 kg="ZH",Mw="EN",Yu=Mw,lg={},Lw={},I5=Ut.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Yu).toUpperCase();return r.indexOf(kg)>-1?kg:Yu})():Yu;function Ew(r,e){r=r.toUpperCase(),Lw[r]=new ee(e),lg[r]=e}function L9(r){if(vt(r)){var e=lg[r.toUpperCase()]||{};return r===kg||r===Mw?Tt(e):It(Tt(e),Tt(lg[Yu]),!1)}else return It(Tt(r),Tt(lg[Yu]),!1)}function Vb(r){return Lw[r]}function E9(){return Lw[Yu]}Ew(Mw,D9);Ew(kg,M9);var Rw=1e3,Iw=Rw*60,Ah=Iw*60,Ya=Ah*24,HL=Ya*365,oh={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}"},hp="{yyyy}-{MM}-{dd}",UL={year:"{yyyy}",month:"{yyyy}-{MM}",day:hp,hour:hp+" "+oh.hour,minute:hp+" "+oh.minute,second:hp+" "+oh.second,millisecond:oh.none},v_=["year","month","day","hour","minute","second","millisecond"],O5=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vr(r,e){return r+="","0000".substr(0,e-r.length)+r}function Xu(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 R9(r){return r===Xu(r)}function I9(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function mv(r,e,t,a){var n=xa(r),i=n[Ow(t)](),o=n[Wu(t)]()+1,l=Math.floor((o-1)/3)+1,s=n[Gy(t)](),u=n["get"+(t?"UTC":"")+"Day"](),c=n[Uh(t)](),h=(c-1)%12+1,d=n[Hy(t)](),p=n[Uy(t)](),y=n[Fy(t)](),m=c>=12?"pm":"am",_=m.toUpperCase(),b=a instanceof ee?a:Vb(a||I5)||E9(),S=b.getModel("time"),w=S.get("month"),A=S.get("monthAbbr"),M=S.get("dayOfWeek"),D=S.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,m+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Vr(i%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,A[o-1]).replace(/{MM}/g,Vr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Vr(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,M[u]).replace(/{ee}/g,D[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Vr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Vr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Vr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Vr(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Vr(y,3)).replace(/{S}/g,y+"")}function O9(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({},oh);if(r.level>0)for(var l=0;l<v_.length;++l)o[v_[l]]="{primary|"+o[v_[l]]+"}";var s=t?t.inherit===!1?t:xt(t,o):o,u=N5(r.value,n);if(s[u])i=s[u];else if(s.inherit){for(var c=O5.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 mv(new Date(r.value),i,n,a)}function N5(r,e){var t=xa(r),a=t[Wu(e)]()+1,n=t[Gy(e)](),i=t[Uh(e)](),o=t[Hy(e)](),l=t[Uy(e)](),s=t[Fy(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 FL(r,e,t){var a=Qt(r)?xa(r):r;switch(e=e||N5(r,t),e){case"year":return a[Ow(t)]();case"half-year":return a[Wu(t)]()>=6?1:0;case"quarter":return Math.floor((a[Wu(t)]()+1)/4);case"month":return a[Wu(t)]();case"day":return a[Gy(t)]();case"half-day":return a[Uh(t)]()/24;case"hour":return a[Uh(t)]();case"minute":return a[Hy(t)]();case"second":return a[Uy(t)]();case"millisecond":return a[Fy(t)]()}}function Ow(r){return r?"getUTCFullYear":"getFullYear"}function Wu(r){return r?"getUTCMonth":"getMonth"}function Gy(r){return r?"getUTCDate":"getDate"}function Uh(r){return r?"getUTCHours":"getHours"}function Hy(r){return r?"getUTCMinutes":"getMinutes"}function Uy(r){return r?"getUTCSeconds":"getSeconds"}function Fy(r){return r?"getUTCMilliseconds":"getMilliseconds"}function N9(r){return r?"setUTCFullYear":"setFullYear"}function P5(r){return r?"setUTCMonth":"setMonth"}function z5(r){return r?"setUTCDate":"setDate"}function k5(r){return r?"setUTCHours":"setHours"}function B5(r){return r?"setUTCMinutes":"setMinutes"}function V5(r){return r?"setUTCSeconds":"setSeconds"}function G5(r){return r?"setUTCMilliseconds":"setMilliseconds"}function P9(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 Nw(r){if(!fw(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 Pw(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 xs=wy;function Gb(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Xa(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?xa(r):r;if(isNaN(+s)){if(l)return"-"}else return mv(s,a,t)}if(e==="ordinal")return xg(r)?n(r):Qt(r)&&i(r)?r+"":"-";var u=jn(r);return i(u)?Nw(u):xg(r)?n(r):typeof r=="boolean"?r+"":"-"}var jL=["a","b","c","d","e","f","g"],d_=function(r,e){return"{"+r+(e??"")+"}"};function zw(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=jL[i];r=r.replace(d_(o),d_(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(d_(jL[s],l),t?Lr(u):u)}return r}function z9(r,e,t){return N(e,function(a,n){r=r.replace("{"+n+"}",a)}),r}function H5(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:'+Lr(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Lr(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 k9(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
78
+ yyyy`);var a=xa(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",Vr(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Vr(i%100+"",2)).replace("dd",Vr(l,2)).replace("d",l).replace("hh",Vr(s,2)).replace("h",s).replace("mm",Vr(u,2)).replace("m",u).replace("ss",Vr(c,2)).replace("s",c).replace("SSS",Vr(h,3)),r}function B9(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function hs(r,e){return e=e||"transparent",vt(r)?r:St(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Bg(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var sg=N,U5=["left","right","top","bottom","width","height"],ql=[["width","left","right"],["height","top","bottom"]];function kw(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 as=kw;Rt(kw,"vertical");Rt(kw,"horizontal");function V9(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=xs(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=xs(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 jy(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(xt({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 G9(r,e){return r[ql[e][0]]!=null||r[ql[e][1]]!=null&&r[ql[e][2]]!=null}function Fh(r){var e=r.layoutMode||r.constructor.layoutMode;return St(e)?e:e?{type:e}:null}function Go(r,e,t){var a=t&&t.ignoreSize;!it(a)&&(a=[a,a]);var n=o(ql[0],0),i=o(ql[1],1);u(ql[0],r,n),u(ql[1],r,i);function o(c,h){var d={},p=0,y={},m=0,_=2;if(sg(c,function(w){y[w]=r[w]}),sg(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 S=c[b];if(!l(d,S)&&l(r,S)){d[S]=r[S];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){sg(c,function(p){h[p]=d[p]})}}function mf(r){return F5({},r)}function F5(r,e){return e&&r&&sg(U5,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var H9=$t(),Ht=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=yf("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Fh(this),i=n?mf(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=Fh(this);n&&Go(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!O7(t))return t.defaultOption;var a=H9(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 hv(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);XP(Ht,ee);Ey(Ht);A9(Ht);C9(Ht,U9);function U9(r){var e=[];return N(Ht.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=ot(e,function(t){return kn(t).main}),r!=="dataset"&&Bt(e,"dataset")<=0&&e.unshift("dataset"),e}var j5="";typeof navigator<"u"&&(j5=navigator.platform||"");var gu="rgba(0, 0, 0, 0.2)";const F9={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:gu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:gu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:gu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:gu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:gu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:gu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:j5.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 Y5=mt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Qa="original",Nr="arrayRows",Ja="objectRows",Wn="keyedColumns",No="typedArray",X5="unknown",Un="column",_f="row",mr={Must:1,Might:2,Not:3},W5=$t();function j9(r){W5(r).datasetMap=mt()}function Z5(r,e,t){var a={},n=Vw(e);if(!n||!r)return a;var i=[],o=[],l=e.ecModel,s=W5(l).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,c,h;r=r.slice(),N(r,function(m,_){var b=St(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,S=y(m);if(c==null){var w=d.valueWayDim;p(a[b],w,S),p(o,w,S),d.valueWayDim+=S}else if(c===_)p(a[b],0,S),p(i,0,S);else{var w=d.categoryWayDim;p(a[b],w,S),p(o,w,S),d.categoryWayDim+=S}});function p(m,_,b){for(var S=0;S<b;S++)m.push(_+S)}function y(m){var _=m.dimsDef;return _?_.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function Bw(r,e,t){var a={},n=Vw(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,l;(i===Ja||i===Wn)&&N(o,function(c,h){(St(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=$5(e.data,i,e.seriesLayoutBy,o,e.startIndex,p);d.push(m);var _=m===mr.Not;if(_&&c.v==null&&p!==l&&(c.v=p),(c.n==null||c.n===c.v||!_&&d[c.n]===mr.Not)&&(c.n=p),b(c)&&d[c.n]!==mr.Not)return c;_||(m===mr.Might&&h.v==null&&p!==l&&(h.v=p),(h.n==null||h.n===h.v)&&(h.n=p))}function b(S){return S.v!=null&&S.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 Vw(r){var e=r.get("data",!0);if(!e)return hv(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ye).models[0]}function Y9(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:hv(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ye).models}function q5(r,e){return $5(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function $5(r,e,t,a,n,i){var o,l=5;if(Fr(r))return mr.Not;var s,u;if(a){var c=a[i];St(c)?(s=c.name,u=c.type):vt(c)&&(s=c)}if(u!=null)return u==="ordinal"?mr.Must:mr.Not;if(e===Nr){var h=r;if(t===_f){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===Ja){var m=r;if(!s)return mr.Not;for(var p=0;p<m.length&&p<l;p++){var _=m[p];if(_&&(o=A(_[s]))!=null)return o}}else if(e===Wn){var b=r;if(!s)return mr.Not;var d=b[s];if(!d||Fr(d))return mr.Not;for(var p=0;p<d.length&&p<l;p++)if((o=A(d[p]))!=null)return o}else if(e===Qa)for(var S=r,p=0;p<S.length&&p<l;p++){var _=S[p],w=uf(_);if(!it(w))return mr.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?mr.Might:mr.Not;if(D&&M!=="-")return mr.Must}return mr.Not}var Hb=mt();function X9(r,e){Rr(Hb.get(r)==null&&e),Hb.set(r,e)}function W9(r,e,t){var a=Hb.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var YL=$t(),Z9=$t(),Gw=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=de(this.get("color",!0)),i=this.get("colorLayer",!0);return K5(this,YL,n,i,e,t,a)},r.prototype.clearColorPalette=function(){$9(this,YL)},r})();function Ub(r,e,t,a){var n=de(r.get(["aria","decal","decals"]));return K5(r,Z9,n,null,e,t,a)}function q9(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 K5(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:q9(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 $9(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var vp,Rc,XL,WL="\0_ec_inner",K9=1,Hw=(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=$L(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,$L(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"?XL(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;j9(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=W9(this,h,de(t[h])),p=i.get(h),y=p?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=HP(p,d,y);T7(m,h,Ht),n[h]=null,i.set(h,null),o.set(h,0);var _=[],b=[],S=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 E=h==="series",R=Ht.getClass(h,A.keyInfo.subType,!E);if(!R)return;if(h==="tooltip"){if(w)return;w=!0}if(D&&D.constructor===R)D.name=A.keyInfo.name,D.mergeOption(L,this),D.optionUpdated(L,!1);else{var O=rt({componentIndex:M},A.keyInfo);D=new R(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),S++):(_.push(void 0),b.push(void 0))},this),n[h]=_,i.set(h,b),o.set(h,S),h==="series"&&vp(this)}this._seriesIndices||vp(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]&&!Bh(i[s])?l=!0:(i[s]=null,!l&&o--);i.length=o,t[n]=i}}),delete t[WL],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=ZL("id",i,l):o!=null?s=ZL("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):St(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){Rc(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){Rc(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 Rc(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){Rc(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){vp(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"||!Q9(o,t))&&o.restoreData()})})},e.internalField=(function(){vp=function(t){var a=t._seriesIndices=[];N(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=mt(a)},Rc=function(t){},XL=function(t,a){t.option={},t.option[WL]=K9,t._componentsMap=mt({series:[]}),t._componentsCount=mt();var n=a.aria;St(n)&&n.enabled==null&&(n.enabled=!0),J9(a,t._theme.option),It(a,F9,!1),t._mergeOption(a,null)}})(),e})(ee);function Q9(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 J9(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 ZL(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 $L(r){var e=mt();return r&&N(de(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Pe(Hw,Gw);var tF=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Q5=(function(){function r(e){N(tF,function(t){this[t]=dt(e[t],e)},this)}return r})(),p_={},xf=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];N(p_,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){p_[e]=t},r.get=function(e){return p_[e]},r})(),eF=/^(min|max)?(.+)$/,rF=(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&&Fr(o.data)&&Rh(o.data)}),N(de(e.dataset),function(o){o&&o.source&&Fr(o.source)&&Rh(o.source)})),e=Tt(e);var n=this._optionBackup,i=aF(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++)nF(n[s].query,t,a)&&o.push(s);return!o.length&&i&&(o=[-1]),o.length&&!oF(o,this._currentMediaIndices)&&(l=ot(o,function(c){return Tt(c===-1?i.option:n[c].option)})),this._currentMediaIndices=o,l},r})();function aF(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 nF(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return N(r,function(i,o){var l=o.match(eF);if(!(!l||!l[1]||!l[2])){var s=l[1],u=l[2].toLowerCase();iF(a[u],i,s)||(n=!1)}}),n}function iF(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function oF(r,e){return r.join(",")===e.join(",")}var on=N,jh=St,KL=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function g_(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=KL.length;t<a;t++){var n=KL[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 Mr(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,xt(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 lh(r){Mr(r,"itemStyle"),Mr(r,"lineStyle"),Mr(r,"areaStyle"),Mr(r,"label"),Mr(r,"labelLine"),Mr(r,"upperLabel"),Mr(r,"edgeLabel")}function je(r,e){var t=jh(r)&&r[e],a=jh(t)&&t.textStyle;if(a)for(var n=0,i=aL.length;n<i;n++){var o=aL[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function Ga(r){r&&(lh(r),je(r,"label"),r.emphasis&&je(r.emphasis,"label"))}function lF(r){if(jh(r)){g_(r),lh(r),je(r,"label"),je(r,"upperLabel"),je(r,"edgeLabel"),r.emphasis&&(je(r.emphasis,"label"),je(r.emphasis,"upperLabel"),je(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(g_(e),Ga(e));var t=r.markLine;t&&(g_(t),Ga(t));var a=r.markArea;a&&Ga(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Fr(i))for(var o=0;o<i.length;o++)Ga(i[o]);N(r.categories,function(u){lh(u)})}if(n&&!Fr(n))for(var o=0;o<n.length;o++)Ga(n[o]);if(e=r.markPoint,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)Ga(l[o]);if(t=r.markLine,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)it(s[o])?(Ga(s[o][0]),Ga(s[o][1])):Ga(s[o]);r.type==="gauge"?(je(r,"axisLabel"),je(r,"title"),je(r,"detail")):r.type==="treemap"?(Mr(r.breadcrumb,"itemStyle"),N(r.levels,function(u){lh(u)})):r.type==="tree"&&lh(r.leaves)}}function pi(r){return it(r)?r:r?[r]:[]}function QL(r){return(it(r)?r[0]:r)||{}}function sF(r,e){on(pi(r.series),function(a){jh(a)&&lF(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),on(t,function(a){on(pi(r[a]),function(n){n&&(je(n,"axisLabel"),je(n.axisPointer,"label"))})}),on(pi(r.parallel),function(a){var n=a&&a.parallelAxisDefault;je(n,"axisLabel"),je(n&&n.axisPointer,"label")}),on(pi(r.calendar),function(a){Mr(a,"itemStyle"),je(a,"dayLabel"),je(a,"monthLabel"),je(a,"yearLabel")}),on(pi(r.radar),function(a){je(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)}),on(pi(r.geo),function(a){jh(a)&&(Ga(a),on(pi(a.regions),function(n){Ga(n)}))}),on(pi(r.timeline),function(a){Ga(a),Mr(a,"label"),Mr(a,"itemStyle"),Mr(a,"controlStyle",!0);var n=a.data;it(n)&&N(n,function(i){St(i)&&(Mr(i,"label"),Mr(i,"itemStyle"))})}),on(pi(r.toolbox),function(a){Mr(a,"iconStyle"),on(a.feature,function(n){Mr(n,"iconStyle")})}),je(QL(r.axisPointer),"label"),je(QL(r.tooltip).axisPointer,"label")}function uF(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 fF(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 JL(r){r&&N(cF,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var cF=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hF=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],y_=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ic(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<y_.length;t++){var a=y_[t][1],n=y_[t][0];e[a]!=null&&(e[n]=e[a])}}function tE(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function eE(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function vF(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function J5(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&J5(r[t].children,e)}function tz(r,e){sF(r,e),r.series=de(r.series),N(r.series,function(t){if(St(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),tE(t.label);var n=t.data;if(n&&!Fr(n))for(var i=0;i<n.length;i++)tE(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=uF(t,"pointer.color");o!=null&&fF(t,"itemStyle.color",o)}else if(a==="bar"){Ic(t),Ic(t.backgroundStyle),Ic(t.emphasis);var n=t.data;if(n&&!Fr(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Ic(n[i]),Ic(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)),eE(t),J5(t.data,eE)}else a==="graph"||a==="sankey"?vF(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&xt(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),JL(t)}}),r.dataRange&&(r.visualMap=r.dataRange),N(hF,function(t){var a=r[t];a&&(it(a)||(a=[a]),N(a,function(n){JL(n)}))})}function dF(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(pF)}function pF(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 S=b.data.getByRawIndex(b.stackResultDimension,y);if(s==="all"||s==="positive"&&S>0||s==="negative"&&S<0||s==="samesign"&&d>=0&&S>0||s==="samesign"&&d<=0&&S<0){d=d7(d,S),m=S;break}}}return a[0]=d,a[1]=m,a})})}var Yy=(function(){function r(e){this.data=e.data||(e.sourceFormat===Wn?{}:[]),this.sourceFormat=e.sourceFormat||X5,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&&q5(this,a)===mr.Must&&(n.type="ordinal")}}return r})();function Uw(r){return r instanceof Yy}function Fb(r,e,t){t=t||ez(r);var a=e.seriesLayoutBy,n=yF(r,t,a,e.sourceHeader,e.dimensions),i=new Yy({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:Tt(e)});return i}function Fw(r){return new Yy({data:r,sourceFormat:Fr(r)?No:Qa})}function gF(r){return new Yy({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Tt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function ez(r){var e=X5;if(Fr(r))e=No;else if(it(r)){r.length===0&&(e=Nr);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(it(n)||Fr(n)){e=Nr;break}else if(St(n)){e=Ja;break}}}}else if(St(r)){for(var i in r)if(gt(r,i)&&_r(r[i])){e=Wn;break}}return e}function yF(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:rE(n),startIndex:o,dimensionsDetectedCount:i};if(e===Nr){var l=r;a==="auto"||a==null?aE(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=[],aE(function(u,c){n[c]=u!=null?u+"":""},t,l,1/0)),i=n?n.length:t===_f?l.length:l[0]?l[0].length:null}else if(e===Ja)n||(n=mF(r));else if(e===Wn)n||(n=[],N(r,function(u,c){n.push(c)}));else if(e===Qa){var s=uf(r[0]);i=it(s)&&s.length||1}return{startIndex:o,dimensionsDefine:rE(n),dimensionsDetectedCount:i}}function mF(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return jt(t)}function rE(r){if(r){var e=mt();return ot(r,function(t,a){t=St(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 aE(r,e,t,a){if(e===_f)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 rz(r){var e=r.sourceFormat;return e===Ja||e===Wn}var Ml,Ll,El,nE,iE,az=(function(){function r(e,t){var a=Uw(e)?e:Fw(e);this._source=a;var n=this._data=a.data;a.sourceFormat===No&&(this._offset=0,this._dimSize=t,this._data=n),iE(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;iE=function(o,l,s){var u=s.sourceFormat,c=s.seriesLayoutBy,h=s.startIndex,d=s.dimensionsDefine,p=nE[jw(u,c)];if(rt(o,p),u===No)o.getItem=t,o.count=n,o.fillStorage=a;else{var y=nz(u,c);o.getItem=dt(y,null,l,h,d);var m=iz(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],S=0;S<_;S++){var w=c[S*h+d];b[o+S]=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};nE=(e={},e[Nr+"_"+Un]={pure:!0,appendData:i},e[Nr+"_"+_f]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ja]={pure:!0,appendData:i},e[Wn]={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[Qa]={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})(),oE=function(r,e,t,a){return r[a]},_F=(Ml={},Ml[Nr+"_"+Un]=function(r,e,t,a){return r[a+e]},Ml[Nr+"_"+_f]=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},Ml[Ja]=oE,Ml[Wn]=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},Ml[Qa]=oE,Ml);function nz(r,e){var t=_F[jw(r,e)];return t}var lE=function(r,e,t){return r.length},xF=(Ll={},Ll[Nr+"_"+Un]=function(r,e,t){return Math.max(0,r.length-e)},Ll[Nr+"_"+_f]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Ll[Ja]=lE,Ll[Wn]=function(r,e,t){var a=t[0].name,n=r[a];return n?n.length:0},Ll[Qa]=lE,Ll);function iz(r,e){var t=xF[jw(r,e)];return t}var m_=function(r,e,t){return r[e]},bF=(El={},El[Nr]=m_,El[Ja]=function(r,e,t){return r[t]},El[Wn]=m_,El[Qa]=function(r,e,t){var a=uf(r);return a instanceof Array?a[e]:a},El[No]=m_,El);function oz(r){var e=bF[r];return e}function jw(r,e){return r===Nr?r+"_"+e:r}function tf(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 oz(i)(a,o,l)}else{var s=a;return i===Qa&&(s=uf(a)),s}}}}var SF=/\{@(.+?)\}/g,Xy=(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=zw(i,s);return c.replace(SF,function(h,d){var p=d.length,y=d;y.charAt(0)==="["&&y.charAt(p-1)==="]"&&(y=+y.slice(1,p-1));var m=tf(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 tf(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r})();function sE(r){var e,t;return St(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Ch(r){return new wF(r)}var wF=(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(S){return!(S>=1)&&(S=1),S}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){uE.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:uE.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})(),uE=(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=+xa(r)),r==null||r===""?NaN:Number(r))}var TF=mt({number:function(r){return parseFloat(r)},time:function(r){return+xa(r)},trim:function(r){return vt(r)?Xa(r):r}});function lz(r){return TF.get(r)}var sz={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}},AF=(function(){function r(e,t){if(!Qt(t)){var a="";le(a)}this._opFn=sz[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})(),uz=(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})(),CF=(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 DF(r,e){return r==="eq"||r==="ne"?new CF(r==="eq",e):gt(sz,r)?new AF(r,e):null}var MF=(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 LF(r,e){var t=new MF,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,S={index:_,name:b,displayName:m.displayName};if(l.push(S),b!=null){var w="";gt(s,b)&&le(w),s[b]=S}});else for(var c=0;c<r.dimensionsDetectedCount;c++)l.push({index:c});var h=nz(n,Un);e.__isBuiltIn&&(t.getRawDataItem=function(m){return h(a,i,l,m)},t.getRawData=dt(EF,null,r)),t.cloneRawData=dt(RF,null,r);var d=iz(n,Un);t.count=dt(d,null,a,i,l);var p=oz(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(IF,null,l,s),t.cloneAllDimensionInfo=dt(OF,null,l),t}function EF(r){var e=r.sourceFormat;if(!Yw(e)){var t="";le(t)}return r.data}function RF(r){var e=r.sourceFormat,t=r.data;if(!Yw(e)){var a="";le(a)}if(e===Nr){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===Ja){for(var n=[],i=0,o=t.length;i<o;i++)n.push(rt({},t[i]));return n}}function IF(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 OF(r){return Tt(r)}var fz=mt();function NF(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,fz.set(e,r)}function PF(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=zF(s,e),o!==l-1&&(e.length=Math.max(e.length,1))}return e}function zF(r,e,t,a){var n="";e.length||le(n),St(r)||le(n);var i=r.type,o=fz.get(i);o||le(n);var l=ot(e,function(u){return LF(u,o)}),s=de(o.transform({upstream:l[0],upstreamList:l,config:Tt(r.config)}));return ot(s,function(u,c){var h="";St(u)||le(h),u.data||le(h);var d=ez(u.data);Yw(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 Fb(u.data,p,null)})}function Yw(r){return r===Nr||r===Ja}var Wy="undefined",kF=typeof Uint32Array===Wy?Array:Uint32Array,BF=typeof Uint16Array===Wy?Array:Uint16Array,cz=typeof Int32Array===Wy?Array:Int32Array,fE=typeof Float64Array===Wy?Array:Float64Array,hz={float:fE,int:cz,ordinal:Array,number:Array,time:fE},__;function yu(r){return r>65535?kF:BF}function mu(){return[1/0,-1/0]}function VF(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function cE(r,e,t,a,n){var i=hz[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=__[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],rz(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 hz[t||"float"](this._rawCount),this._rawExtent[i]=mu(),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]=mu());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];cE(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=__.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(S){return S.property}),c=0;c<l;c++){var h=o[c];s[c]||(s[c]=mu()),cE(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=yu(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=yu(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=jt(e),i=n.length;if(!i)return this;var o=t.count(),l=yu(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 S=_[b];(S>=h&&S<=d||isNaN(S))&&(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 S=_[b],D=w[b];(S>=h&&S<=d||isNaN(S))&&(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),S=p[n[0]][L];(S>=h&&S<=d||isNaN(S))&&(s[u++]=L)}else for(var b=0;b<o;b++){for(var E=!0,L=t.getRawIndex(b),R=0;R<i;R++){var O=n[R],S=p[O][L];(S<e[O][0]||S>e[O][1])&&(E=!1)}E&&(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]]=mu();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],S=n[m];S&&(S[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(yu(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,S=0,w=m;w<_;w++){var A=this.getRawIndex(w),M=i[A];isNaN(M)||(S+=M)}S/=_-m;var D=y,L=Math.min(y+s,o),E=y-1,R=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((E-b)*(M-R)-(E-w)*(S-R)),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(yu(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+_),S=o[b];S<d&&(d=S,h=c+_),S>y&&(y=S,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]=mu(),d=new(yu(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),S=this.getRawIndex(Math.min(y+n(l,b)||0,c-1));u[S]=b,b<h[0]&&(h[0]=b),b>h[1]&&(h[1]=b),d[p++]=S}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=mu();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&&Za(e,function(l,s){return l[s]=!0,l},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?VF(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])}__={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})(),vz=(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(dp(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=Fr(l)?No:Qa,i=[];var h=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=Et(h.seriesLayoutBy,d.seriesLayoutBy)||null,y=Et(h.sourceHeader,d.sourceHeader),m=Et(h.dimensions,d.dimensions),_=p!==d.seriesLayoutBy||!!y!=!!d.sourceHeader||m;n=_?[Fb(l,{seriesLayoutBy:p,sourceHeader:y,dimensions:m},s)]:[]}else{var b=e;if(a){var S=this._applyTransform(t);n=S.sourceList,i=S.upstreamSignList}else{var w=b.get("source",!0);n=[Fb(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&&vE(i)}var o,l=[],s=[];return N(e,function(u){u.prepareSource();var c=u.getSource(n||0),h="";n!=null&&!c&&vE(h),l.push(c),s.push(u._getVersionSign())}),a?o=PF(a,l,{datasetIndex:t.componentIndex}):n!=null&&(o=[gF(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];dp(this._sourceHost)&&s?l=s._innerGetDataStore(e,t,a):(l=new jb,l.initData(new az(t,e.length),e)),o[a]=l}return l},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(dp(e)){var t=Vw(e);return t?[t.getSourceManager()]:[]}else return ot(Y9(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(dp(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 hE(r){var e=r.option.transform;e&&Rh(r.option.transform)}function dp(r){return r.mainType==="series"}function vE(r){throw new Error(r)}var GF="line-height:1";function dz(r){var e=r.lineHeight;return e==null?GF:"line-height:"+Lr(e+"")+"px"}function pz(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:"+Lr(a+"")+"px;color:"+Lr(t)+";font-weight:"+Lr(n+""),valueStyle:"font-size:"+Lr(o+"")+"px;color:"+Lr(i)+";font-weight:"+Lr(l+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:l}}}var HF=[0,10,20,30],UF=["",`
79
+ `,`
80
+
81
+ `,`
82
+
83
+
84
+ `];function or(r,e){return e.type=r,e}function Yb(r){return r.type==="section"}function gz(r){return Yb(r)?FF:jF}function yz(r){if(Yb(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return N(r.blocks,function(n){var i=yz(n);i>=e&&(e=i+ +(a&&(!i||Yb(n)&&!n.noHeader)))}),e}return 0}function FF(r,e,t,a){var n=e.noHeader,i=YF(yz(e)),o=[],l=e.blocks||[];Rr(!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 uz(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,S=gz(m)(b?rt(rt({},r),{valueFormatter:b}):r,m,_>0?i.html:0,a);S!=null&&o.push(S)});var h=r.renderMode==="richText"?o.join(i.richText):Xb(a,o.join(""),n?t:i.html);if(n)return h;var d=Gb(e.header,"ordinal",r.useUTC),p=pz(a,r.renderMode).nameStyle,y=dz(a);return r.renderMode==="richText"?mz(r,d,p)+i.richText+h:Xb(a,'<div style="'+p+";"+y+';">'+Lr(d)+"</div>"+h,t)}function jF(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 Gb(M,it(p)?p[D]:p,u)})};if(!(i&&o)){var h=l?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),d=i?"":Gb(s,"ordinal",u),p=e.valueType,y=o?[]:c(e.value,e.dataIndex),m=!l||!i,_=!l&&i,b=pz(a,n),S=b.nameStyle,w=b.valueStyle;return n==="richText"?(l?"":h)+(i?"":mz(r,d,S))+(o?"":ZF(r,y,m,_,w)):Xb(a,(l?"":h)+(i?"":XF(d,!l,S))+(o?"":WF(y,m,_,w)),t)}}function dE(r,e,t,a,n,i){if(r){var o=gz(r),l={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(l,r,0,i)}}function YF(r){return{html:HF[r],richText:UF[r]}}function Xb(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=dz(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function XF(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Lr(r)+"</span>"}function WF(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 Lr(o)}).join("&nbsp;&nbsp;")+"</span>"}function mz(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function ZF(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 _z(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return hs(a)}function xz(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var x_=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=kP()}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=H5({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 bz(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=_z(e,t),c,h,d,p;if(o>1||s&&!o){var y=qF(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=tf(n,t,i[0]),h=m.type}else p=c=s?l[0]:l;var _=cw(e),b=_&&e.name||"",S=n.getName(t),w=a?b:S;return or("section",{header:b,noHeader:a||!_,sortParam:p,blocks:[or("nameValue",{markerType:"item",markerColor:u,name:w,noName:!Xa(w),value:c,valueType:h,dataIndex:t})].concat(d||[])})}function qF(r,e,t,a,n){var i=e.getData(),o=Za(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(tf(i,t,h),h)}):N(r,c);function c(h,d){var p=i.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(o?u.push(or("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 pp(r,e){return r.getName(e)||r.getId(e)}var ug="__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=Ch({count:KF,reset:QF}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=ho(this).sourceManager=new vz(this);i.prepareSource();var o=this.getInitialData(t,n);gE(o,this),this.dataTask.context.data=o,ho(this).dataBeforeProcessed=o,pE(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Fh(this),i=n?mf(t):{},o=this.subType;Ht.hasClass(o)&&(o+="Series"),It(t,a.getTheme().get(this.subType)),It(t,this.getDefaultOption()),ss(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=Fh(this);n&&Go(this.option,t,n);var i=ho(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);gE(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ho(this).dataBeforeProcessed=o,pE(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Fr(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ss(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=Wb(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=Wb(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 bz({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ut.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=Gw.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=pp(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=jt(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[pp(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[ug])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"){St(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<s;c++){var h=a[c],d=pp(t,h);u[d]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(h)}}else if(l==="single"||l===!0){var p=a[s-1],d=pp(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);Pe(pe,Xy);Pe(pe,Gw);XP(pe,Ht);function pE(r){var e=r.name;cw(r)||(r.name=$F(r)||e)}function $F(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 KF(r){return r.model.getRawData().count()}function QF(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),JF}function JF(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function gE(r,e){N($u(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Rt(tj,e))})}function tj(r,e){var t=Wb(r);return t&&t.setOutputEnd((e||this).count()),e}function Wb(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=yf("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})();vw(we);Ey(we);function bf(){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 Sz=$t(),ej=bf(),fe=(function(){function r(){this.group=new Ct,this.uid=yf("viewChart"),this.renderTask=Ch({plan:rj,reset:aj}),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&&mE(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&mE(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){Yo(this.group,e)},r.markUpdateMethod=function(e,t){Sz(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function yE(r,e,t){r&&Gh(r)&&(e==="emphasis"?Ri:Ii)(r,t)}function mE(r,e,t){var a=us(r,e),n=e&&e.highlightKey!=null?GU(e.highlightKey):null;a!=null?N(de(a),function(i){yE(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){yE(i,t,n)})}vw(fe);Ey(fe);function rj(r){return ej(r.model)}function aj(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,l=n&&Sz(n).updateMethod,s=i?"incrementalPrepareRender":l&&o[l]?l:"render";return s!=="render"&&o[s](e,t,a,n),nj[s]}var nj={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)}}},Vg="\0__throttleOriginMethod",_E="\0__throttleRate",xE="\0__throttleType";function Zy(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 Sf(r,e,t,a){var n=r[e];if(n){var i=n[Vg]||n,o=n[xE],l=n[_E];if(l!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=Zy(i,t,a==="debounce"),n[Vg]=i,n[xE]=a,n[_E]=t}return n}}function Yh(r,e){var t=r[e];t&&t[Vg]&&(t.clear&&t.clear(),r[e]=t[Vg])}var bE=$t(),SE={itemStyle:fs(R5,!0),lineStyle:fs(E5,!0)},ij={lineStyle:"stroke",itemStyle:"fill"};function wz(r,e){var t=r.visualStyleMapper||SE[e];return t||(console.warn("Unknown style type '"+e+"'."),SE.itemStyle)}function Tz(r,e){var t=r.visualDrawType||ij[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var oj={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=wz(r,a),o=i(n),l=n.getShallow("decal");l&&(t.setVisual("decal",l),l.dirty=!0);var s=Tz(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",_)}}}},Oc=new ee,lj={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=wz(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,l){var s=o.getRawDataItem(l);if(s&&s[a]){Oc.option=s[a];var u=n(Oc),c=o.ensureUniqueItemVisual(l,"style");rt(c,u),Oc.option.decal&&(o.setItemVisual(l,"decal",Oc.option.decal),Oc.option.decal.dirty=!0),i in u&&o.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},sj={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)),bE(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=bE(t).scope,l=t.visualStyleAccessPath||"itemStyle",s=Tz(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)}})}})}},gp=Math.PI;function uj(r,e){e=e||{},xt(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 pv({shape:{startAngle:-gp/2,endAngle:-gp/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:gp*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:gp*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 Az=(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="";Rr(!(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 S=o.getPerformArgs(_,n.block);S.skip=!s.performRawSeries&&t.isSeriesFiltered(_.context.model),o.updatePayload(_,a),_.perform(S)&&(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)||Ch({plan:dj,reset:pj,count:yj}));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||Ch({reset:fj});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="";Rr(!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,Ch({reset:cj,onDirty:vj})));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:mj(e)}),e.uid=yf("stageHandler"),t&&(e.visualType=t),e},r})();function fj(r){r.overallReset(r.ecModel,r.api,r.payload)}function cj(r){return r.overallProgress&&hj}function hj(){this.agent.dirty(),this.getDownstream().dirty()}function vj(){this.agent&&this.agent.dirty()}function dj(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function pj(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 Cz(a)}):gj}var gj=Cz(0);function Cz(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 yj(r){return r.data.count()}function mj(r){Gg=null;try{r(Xh,Dz)}catch{}return Gg}var Xh={},Dz={},Gg;Mz(Xh,Hw);Mz(Dz,Q5);Xh.eachSeriesByType=Xh.eachRawSeriesByType=function(r){Gg=r};Xh.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Gg=r.subType)};function Mz(r,e){for(var t in e.prototype)r[t]=Ne}var wE=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const _j={color:wE,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],wE]};var Cr="#B9B8CE",TE="#100C2A",yp=function(){return{axisLine:{lineStyle:{color:Cr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},AE=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Lz={darkMode:!0,color:AE,backgroundColor:TE,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Cr},pageTextStyle:{color:Cr}},textStyle:{color:Cr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Cr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Cr},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:Cr}},timeline:{lineStyle:{color:Cr},label:{color:Cr},controlStyle:{color:Cr,borderColor:Cr}},calendar:{itemStyle:{color:TE},dayLabel:{color:Cr},monthLabel:{color:Cr},yearLabel:{color:Cr}},timeAxis:yp(),logAxis:yp(),valueAxis:yp(),categoryAxis:yp(),line:{symbol:"circle"},graph:{color:AE},gauge:{title:{color:Cr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Cr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Lz.categoryAxis.splitLine.show=!1;var xj=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(vt(e)){var i=kn(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})(),Zb=["symbol","symbolSize","symbolRotate","symbolOffset"],CE=Zb.concat(["symbolKeepAspect"]),bj={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<Zb.length;o++){var l=Zb[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=jt(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}}},Sj={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<CE.length;l++){var s=CE[l],u=o.getShallow(s,!0);u!=null&&n.setItemVisual(i,s,u)}}return{dataEach:t.hasItemOption?a:null}}};function Xw(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 _v(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 Ez(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 Rz(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 _u(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=us(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 wj(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(_u("map","selectchanged",e,n,a),_u("pie","selectchanged",e,n,a)):a.fromAction==="select"?(_u("map","selected",e,n,a),_u("pie","selected",e,n,a)):a.fromAction==="unselect"&&(_u("map","unselected",e,n,a),_u("pie","unselected",e,n,a))})}function $l(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var Tj=Math.round(Math.random()*9),Aj=typeof Object.defineProperty=="function",Cj=(function(){function r(){this._id="__ec_inner_"+Tj++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return Aj?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})(),Dj=Ft.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()}}),Mj=Ft.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()}}),Lj=Ft.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()}}),Ej=Ft.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()}}),Rj={line:Qe,rect:Wt,roundRect:Wt,square:Wt,circle:Xn,diamond:Mj,pin:Lj,arrow:Ej,triangle:Dj},Ij={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}},Hg={};N(Rj,function(r,e){Hg[e]=new r});var Oj=Ft.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Eg(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=Hg[a];n||(a="rect",n=Hg[a]),Ij[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function Nj(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 Ve(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=Tw(r.slice(8),new kt(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?s=gv(r.slice(7),{},new kt(e,t,a,n),o?"center":"cover"):s=new Oj({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),s.__isEmptyBrush=l,s.setColor=Nj,i&&s.setColor(i),s}function wf(r){return it(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function bs(r,e){if(r!=null)return it(r)||(r=[r,r]),[ht(r[0],e[0])||0,ht(Et(r[1],r[0]),e[1])||0]}function Kl(r){return isFinite(r)}function Pj(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=Kl(a)?a:0,n=Kl(n)?n:1,i=Kl(i)?i:0,o=Kl(o)?o:0;var l=r.createLinearGradient(a,i,n,o);return l}function zj(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=Kl(o)?o:.5,l=Kl(l)?l:.5,s=s>=0&&Kl(s)?s:.5;var u=r.createRadialGradient(o,l,0,o,l,s);return u}function qb(r,e,t){for(var a=e.type==="radial"?zj(r,e,t):Pj(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function kj(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 mp(r){return parseInt(r,10)}function Vu(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]||mp(l[a])||mp(r.style[a]))-(mp(l[i])||0)-(mp(l[o])||0)|0}function Bj(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 Ww(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&Bj(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 Vj=new Yn(!0);function Ug(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function DE(r){return typeof r=="string"&&r!=="none"}function Fg(r){var e=r.fill;return e!=null&&e!=="none"}function ME(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 LE(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 $b(r,e,t){var a=dw(e.image,e.__image,t);if(Ry(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)*dh),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function Gj(r,e,t,a){var n,i=Ug(t),o=Fg(t),l=t.strokePercent,s=l<1,u=!e.path;(!e.silent||s)&&u&&e.createPathProxy();var c=e.path||Vj,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,S=void 0,w=void 0,A=void 0,M=void 0,D=void 0;(y||m)&&(D=e.getBoundingRect()),y&&(S=h?qb(r,d,D):e.__canvasFillGradient,e.__canvasFillGradient=S),m&&(w=h?qb(r,p,D):e.__canvasStrokeGradient,e.__canvasStrokeGradient=w),_&&(A=h||!e.__canvasFillPattern?$b(r,d,e):e.__canvasFillPattern,e.__canvasFillPattern=A),b&&(M=h||!e.__canvasStrokePattern?$b(r,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=A),y?r.fillStyle=S:_&&(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 E,R;r.setLineDash&&t.lineDash&&(n=Ww(e),E=n[0],R=n[1]);var O=!0;(u||h&Iu)&&(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),E&&(r.setLineDash(E),r.lineDashOffset=R),a||(t.strokeFirst?(i&&LE(r,t),o&&ME(r,t)):(o&&ME(r,t),i&&LE(r,t))),E&&r.setLineDash([])}function Hj(r,e,t){var a=e.__image=dw(t.image,e.__image,e,e.onload);if(!(!a||!Ry(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 Uj(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=Ww(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Ug(t)&&r.strokeText(n,t.x,t.y),Fg(t)&&r.fillText(n,t.x,t.y)):(Fg(t)&&r.fillText(n,t.x,t.y),Ug(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var EE=["shadowBlur","shadowOffsetX","shadowOffsetY"],RE=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Iz(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){ra(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?es.opacity:o}(a||e.blend!==t.blend)&&(i||(ra(r,n),i=!0),r.globalCompositeOperation=e.blend||es.blend);for(var l=0;l<EE.length;l++){var s=EE[l];(a||e[s]!==t[s])&&(i||(ra(r,n),i=!0),r[s]=r.dpr*(e[s]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(ra(r,n),i=!0),r.shadowColor=e.shadowColor||es.shadowColor),i}function IE(r,e,t,a,n){var i=Wh(e,n.inHover),o=a?null:t&&Wh(t,n.inHover)||{};if(i===o)return!1;var l=Iz(r,i,o,a,n);if((a||i.fill!==o.fill)&&(l||(ra(r,n),l=!0),DE(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(l||(ra(r,n),l=!0),DE(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(l||(ra(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||(ra(r,n),l=!0),r.lineWidth=u)}for(var c=0;c<RE.length;c++){var h=RE[c],d=h[0];(a||i[d]!==o[d])&&(l||(ra(r,n),l=!0),r[d]=i[d]||h[1])}return l}function Fj(r,e,t,a,n){return Iz(r,Wh(e,n.inHover),t&&Wh(t,n.inHover),a,n)}function Oz(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 jj(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),Oz(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}function Yj(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 OE=1,NE=2,PE=3,zE=4;function Xj(r){var e=Fg(r),t=Ug(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 ra(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function Wh(r,e){return e&&r.__hoverStyle||r.style}function Zw(r,e){Ql(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ql(r,e,t,a){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~pa,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,l=!1,s=!1;if((!o||kj(i,o))&&(o&&o.length&&(ra(r,t),r.restore(),s=l=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(ra(r,t),r.save(),jj(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 Ft&&e.autoBatch&&Xj(e.style);l||Yj(n,u.transform)?(ra(r,t),Oz(r,e)):c||ra(r,t);var h=Wh(e,t.inHover);e instanceof Ft?(t.lastDrawType!==OE&&(s=!0,t.lastDrawType=OE),IE(r,e,u,s,t),(!c||!t.batchFill&&!t.batchStroke)&&r.beginPath(),Gj(r,e,h,c),c&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof Qu?(t.lastDrawType!==PE&&(s=!0,t.lastDrawType=PE),IE(r,e,u,s,t),Uj(r,e,h)):e instanceof lr?(t.lastDrawType!==NE&&(s=!0,t.lastDrawType=NE),Fj(r,e,u,s,t),Hj(r,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==zE&&(s=!0,t.lastDrawType=zE),Wj(r,e,t)),c&&a&&ra(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Wj(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(),Ql(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(),Ql(r,s,i,u===c-1),s.innerAfterBrush(),s.afterBrush&&s.afterBrush(),i.prevEl=s}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var b_=new Cj,kE=new fv(100),BE=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ef(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&b_.delete(r);var i=b_.get(r);if(i)return i;var o=xt(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,b_.set(r,l),r.dirty=!1,l;function s(u){for(var c=[t],h=!0,d=0;d<BE.length;++d){var p=o[BE[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=kE.get(y);m&&(n?u.svgElement=m:u.image=m)}var _=Pz(o.dashArrayX),b=Zj(o.dashArrayY),S=Nz(o.symbol),w=qj(_),A=zz(b),M=!n&&mn.createCanvas(),D=n&&{tag:"g",attrs:{},key:"dcl",children:[]},L=R(),E;M&&(M.width=L.width*t,M.height=L.height*t,E=M.getContext("2d")),O(),h&&kE.put(y,M||D),u.image=M,u.svgElement=D,u.svgWidth=L.width,u.svgHeight=L.height;function R(){for(var P=1,B=0,G=w.length;B<G;++B)P=eL(P,w[B]);for(var H=1,B=0,G=S.length;B<G;++B)H=eL(H,S[B].length);P*=H;var F=A*w.length*S.length;return{width:Math.max(1,Math.min(P,o.maxTileWidth)),height:Math.max(1,Math.min(F,o.maxTileHeight))}}function O(){E&&(E.clearRect(0,0,M.width,M.height),o.backgroundColor&&(E.fillStyle=o.backgroundColor,E.fillRect(0,0,M.width,M.height)));for(var P=0,B=0;B<b.length;++B)P+=b[B];if(P<=0)return;for(var G=-A,H=0,F=0,k=0;G<L.height;){if(H%2===0){for(var j=F/2%S.length,Y=0,$=0,tt=0;Y<L.width*2;){for(var U=0,B=0;B<_[k].length;++B)U+=_[k][B];if(U<=0)break;if($%2===0){var W=(1-o.symbolSize)*.5,at=Y+_[k][$]*W,lt=G+b[H]*W,ct=_[k][$]*o.symbolSize,bt=b[H]*o.symbolSize,Pt=tt/2%S[j].length;wt(at,lt,ct,bt,S[j][Pt])}Y+=_[k][$],++tt,++$,$===_[k].length&&($=0)}++k,k===_.length&&(k=0)}G+=b[H],++F,++H,H===b.length&&(H=0)}function wt(pt,Ot,yt,Dt,ce){var Zt=n?1:t,ue=Ve(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 Zw(E,ue)}}}}function Nz(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 Nz([r]);for(var a=[],t=0;t<r.length;++t)vt(r[t])?a.push([r[t]]):a.push(r[t]);return a}function Pz(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 Pz([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 Zj(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 qj(r){return ot(r,function(e){return zz(e)})}function zz(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function $j(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=ef(l,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=ef(n,e)}}})}var fn=new $a,kz={};function Kj(r,e){kz[r]=e}function Bz(r){return kz[r]}var Qj="5.6.0",Jj={zrender:"5.6.1"},tY=1,eY=800,rY=900,aY=1e3,nY=2e3,iY=5e3,Vz=1e3,oY=1100,qw=2e3,Gz=3e3,lY=4e3,qy=4500,sY=4600,uY=5e3,fY=6e3,Hz=7e3,Uz={PROCESSOR:{FILTER:aY,SERIES_FILTER:eY,STATISTIC:iY},VISUAL:{LAYOUT:Vz,PROGRESSIVE_LAYOUT:oY,GLOBAL:qw,CHART:Gz,POST_CHART_LAYOUT:sY,COMPONENT:lY,BRUSH:uY,CHART_ITEM:qy,ARIA:fY,DECAL:Hz}},Ar="__flagInMainProcess",Jr="__pendingUpdate",S_="__needsUpdateStatus",VE=/^[a-zA-Z0-9_]+$/,w_="__connectUpdateStatus",GE=0,cY=1,hY=2;function Fz(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return Yz(this,r,e)}}function jz(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Yz(this,r,e)}}function Yz(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),$a.prototype[e].apply(r,t)}var Xz=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})($a),Wz=Xz.prototype;Wz.on=jz("on");Wz.off=jz("off");var xu,T_,_p,vo,A_,C_,D_,Nc,Pc,HE,UE,M_,FE,xp,jE,Zz,Na,YE,jg=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this,new xj)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},vt(a)&&(a=qz[a]),i._dom=t;var o="canvas",l="auto",s=!1;n.ssr&&IP(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=wb(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Et(n.useDirtyRect,s),useCoarsePointer:Et(n.useCoarsePointer,l),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Zy(dt(u.flush,u),17),a=Tt(a),a&&tz(a,!0),i._theme=a,i._locale=L9(n.locale||I5),i._coordSysMgr=new xf;var c=i._api=jE(i);function h(d,p){return d.__prio-p.__prio}return Qp(Xg,h),Qp(Kb,h),i._scheduler=new Az(i,c,Kb,Xg),i._messageCenter=new Xz,i._initEvents(),i.resize=dt(i.resize,i),u.animation.on("frame",i._onframe,i),HE(u,i),UE(u,i),Rh(i),i}return e.prototype._onframe=function(){if(!this._disposed){YE(this);var t=this._scheduler;if(this[Jr]){var a=this[Jr].silent;this[Ar]=!0;try{xu(this),vo.update.call(this,null,this[Jr].updateParams)}catch(s){throw this[Ar]=!1,this[Jr]=null,s}this._zr.flush(),this[Ar]=!1,this[Jr]=null,Nc.call(this,a),Pc.call(this,a)}else if(t.unfinished){var n=tY,i=this._model,o=this._api;t.unfinished=!1;do{var l=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),C_(this,i),t.performVisualTasks(i),xp(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[Ar]){if(this._disposed){this.id;return}var i,o,l;if(St(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,l=a.transition,a=a.notMerge),this[Ar]=!0,!this._model||a){var s=new rF(this._api),u=this._theme,c=this._model=new Hw;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,s)}this._model.setOption(t,{replaceMerge:o},Qb);var h={seriesTransition:l,optionChanged:!0};if(n)this[Jr]={silent:i,updateParams:h},this[Ar]=!1,this.getZr().wakeUp();else{try{xu(this),vo.update.call(this,null,h)}catch(d){throw this[Jr]=null,this[Ar]=!1,d}this._ssr||this._zr.flush(),this[Jr]=null,this[Ar]=!1,Nc.call(this,i),Pc.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||Ut.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(Ut.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(Wg[n]){var s=l,u=l,c=-l,h=-l,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();N(ns,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,_=mn.createCanvas(),b=wb(_,{renderer:a?"svg":"canvas"});if(b.resize({width:y,height:m}),a){var S="";return N(d,function(w){var A=w.left-s,M=w.top-u;S+='<g transform="translate('+A+","+M+')">'+w.dom+"</g>"}),b.painter.getSvgRoot().innerHTML=S,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 lr({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 A_(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return A_(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=bh(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=bh(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?Xw(l,s,a):_v(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(vY,function(a){var n=function(i){var o=t.getModel(),l=i.target,s,u=a==="globalout";if(u?s={}:l&&$l(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(Dh,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)}),wj(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&&FP(this.getDom(),Kw,"");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 ns[a.id]},e.prototype.resize=function(t){if(!this[Ar]){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[Jr]&&(i==null&&(i=this[Jr].silent),n=!0,this[Jr]=null),this[Ar]=!0;try{n&&xu(this),vo.update.call(this,{type:"resize",animation:rt({duration:0},t&&t.animation)})}catch(o){throw this[Ar]=!1,o}this[Ar]=!1,Nc.call(this,i),Pc.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(St(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Jb[t]){var n=Jb[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=Dh[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(St(a)||(a={silent:!!a}),!!Yg[t.type]&&this._model){if(this[Ar]){this._pendingActions.push(t);return}var n=a.silent;D_.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&Ut.browser.weChat&&this._throttledZrFlush(),Nc.call(this,n),Pc.call(this,n)}},e.prototype.updateLabelLayout=function(){fn.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(){xu=function(h){var d=h._scheduler;d.restorePipelines(h._model),d.prepareStageTasks(),T_(h,!0),T_(h,!1),d.plan()},T_=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,S=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 E="_ec_"+D.id+"_"+D.type,R=!L&&_[E];if(!R){var O=kn(D.type),P=d?we.getClass(O.main,O.sub):fe.getClass(O.sub);R=new P,R.init(p,S),_[E]=R,m.push(R),b.add(R.group)}D.__viewId=R.__id=E,R.__alive=!0,R.__model=D,R.group.__ecComponentInfo={mainType:D.mainType,index:D.componentIndex},!d&&y.prepareView(R,D,p,S)}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,S),m.splice(w,1),_[M.__id]===M&&delete _[M.__id],M.__id=M.group.__ecComponentInfo=null)}},_p=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 S={mainType:y,query:b};m&&(S.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(S,function(D){var L=A&&A.get(D.id)!=null;if(!L)if(DL(p))if(D instanceof pe)p.type===rs&&!p.notBlur&&!D.get(["emphasis","disabled"])&&IU(D,p,h._api);else{var E=xw(D.mainType,D.componentIndex,p.name,h._api),R=E.focusSelf,O=E.dispatchers;p.type===rs&&R&&!p.notBlur&&Ob(D.mainType,D.componentIndex,h._api),O&&N(O,function(P){p.type===rs?Ri(P):Ii(P)})}else Pb(p)&&D instanceof pe&&(PU(D,p,h._api),AL(D),Na(h))},h),_&&_.eachComponent(S,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){xu(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),C_(this,p),_.update(p,y),t(p),b.performVisualTasks(p,h),M_(this,p,y,h,d);var S=p.get("backgroundColor")||"transparent",w=p.get("darkMode");m.setBackgroundColor(S),w!=null&&w!=="auto"&&m.setDarkMode(w),fn.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,S){if(b!=="series"){var w=d.getViewOfComponentModel(S);if(w&&w.__alive)if(w.updateTransform){var A=w.updateTransform(S,p,y,h);A&&A.update&&m.push(w)}else m.push(w)}});var _=mt();p.eachSeries(function(b){var S=d._chartsMap[b.__viewId];if(S.updateTransform){var w=S.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:_}),xp(this,p,y,h,{},_),fn.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}),M_(this,d,this._api,h,{}),fn.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)}),fn.trigger("afterupdate",p,this._api))},updateLayout:function(h){vo.update.call(this,h)}},A_=function(h,d,p,y){if(h._disposed){h.id;return}for(var m=h._model,_=h._coordSysMgr.getCoordinateSystems(),b,S=bh(m,p),w=0;w<_.length;w++){var A=_[w];if(A[d]&&(b=A[d](m,S,y))!=null)return b}},C_=function(h,d){var p=h._chartsMap,y=h._scheduler;d.eachSeries(function(m){y.updateStreamModes(m,p[m.__viewId])})},D_=function(h,d){var p=this,y=this.getModel(),m=h.type,_=h.escapeConnect,b=Yg[m],S=b.actionInfo,w=(S.update||"update").split(":"),A=w.pop(),M=w[0]!=null&&kn(w[0]);this[Ar]=!0;var D=[h],L=!1;h.batch&&(L=!0,D=ot(h.batch,function(H){return H=xt(rt({},H),h),H.batch=null,H}));var E=[],R,O=Pb(h),P=DL(h);if(P&&c5(this._api),N(D,function(H){if(R=b.action(H,p._model,p._api),R=R||rt({},H),R.type=S.event||R.type,E.push(R),P){var F=hw(h),k=F.queryOptionMap,j=F.mainTypeSpecified,Y=j?k.keys()[0]:"series";_p(p,A,H,Y),Na(p)}else O?(_p(p,A,H,"series"),Na(p)):M&&_p(p,A,H,M.main,M.sub)}),A!=="none"&&!P&&!O&&!M)try{this[Jr]?(xu(this),vo.update.call(this,h),this[Jr]=null):vo[A].call(this,h)}catch(H){throw this[Ar]=!1,H}if(L?R={type:S.event||m,escapeConnect:_,batch:E}:R=E[0],this[Ar]=!1,!d){var B=this._messageCenter;if(B.trigger(R.type,R),O){var G={type:"selectchanged",escapeConnect:_,selected:zU(y),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};B.trigger(G.type,G)}}},Nc=function(h){for(var d=this._pendingActions;d.length;){var p=d.shift();D_.call(this,p,h)}},Pc=function(h){!h&&this.trigger("updated")},HE=function(h,d){h.on("rendered",function(p){d.trigger("rendered",p),h.animation.isFinished()&&!d[Jr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},UE=function(h,d){h.on("mouseover",function(p){var y=p.target,m=$l(y,Gh);m&&(OU(m,p,d._api),Na(d))}).on("mouseout",function(p){var y=p.target,m=$l(y,Gh);m&&(NU(m,p,d._api),Na(d))}).on("click",function(p){var y=p.target,m=$l(y,function(S){return Mt(S).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(S,w){var A=w.get("zlevel")||0,M=w.get("z")||0,D=w.getZLevelKey();y=y||!!D,(S==="series"?p:d).push({zlevel:A,z:M,idx:w.componentIndex,type:S,key:D})}),y){var m=d.concat(p),_,b;Qp(m,function(S,w){return S.zlevel===w.zlevel?S.z-w.z:S.zlevel-w.zlevel}),N(m,function(S){var w=h.getComponent(S.type,S.idx),A=S.zlevel,M=S.key;_!=null&&(A=Math.max(_,A)),M?(A===_&&M!==b&&A++,b=M):b&&(A===_&&A++,b=""),_=A,w.setZLevel(A)})}}M_=function(h,d,p,y,m){a(d),FE(h,d,p,y,m),N(h._chartsViews,function(_){_.__alive=!1}),xp(h,d,p,y,m),N(h._chartsViews,function(_){_.__alive||_.remove(d,p)})},FE=function(h,d,p,y,m,_){N(_||h._componentsViews,function(b){var S=b.__model;u(S,b),b.render(S,d,p,y),l(S,b),c(S,b)})},xp=function(h,d,p,y,m,_){var b=h._scheduler;m=rt(m||{},{updatedSeries:d.getSeries()}),fn.trigger("series:beforeupdate",d,p,m);var S=!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))&&(S=!0),A.group.silent=!!w.get("silent"),o(w,A),AL(w)}),b.unfinished=S||b.unfinished,fn.trigger("series:layoutlabels",d,p,m),fn.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),fn.trigger("series:afterupdate",d,p,m)},Na=function(h){h[S_]=!0,h.getZr().wakeUp()},YE=function(h){h[S_]&&(h.getZr().storage.traverse(function(d){ju(d)||n(d)}),h[S_]=!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===Ny&&h.states.emphasis?d.push("emphasis"):h.hoverState===vv&&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")&&!Ut.node&&!Ut.worker&&d.eachSeries(function(_){if(!_.preventUsingHoverLayer){var b=h._chartsMap[_.__viewId];b.__alive&&b.eachRendered(function(S){S.states.emphasis&&(S.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 S=h.childrenRef(),w=0;w<S.length;w++)y=Math.max(s(S[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(!ju(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(ju(b))return;if(b instanceof Ft&&HU(b),b.__dirty){var S=b.prevStates;S&&b.useStates(S)}if(y){b.stateTransition=_;var w=b.getTextContent(),A=b.getTextGuideLine();w&&(w.stateTransition=_),A&&(A.stateTransition=_)}b.__dirty&&n(b)}})}jE=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){Ri(y,m),Na(h)},p.prototype.leaveEmphasis=function(y,m){Ii(y,m),Na(h)},p.prototype.enterBlur=function(y){l5(y),Na(h)},p.prototype.leaveBlur=function(y){_w(y),Na(h)},p.prototype.enterSelect=function(y){s5(y),Na(h)},p.prototype.leaveSelect=function(y){u5(y),Na(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})(Q5))(h)},Zz=function(h){function d(p,y){for(var m=0;m<p.length;m++){var _=p[m];_[w_]=y}}N(Dh,function(p,y){h._messageCenter.on(y,function(m){if(Wg[h.group]&&h[w_]!==GE){if(m&&m.escapeConnect)return;var _=h.makeActionFromEvent(m),b=[];N(ns,function(S){S!==h&&S.group===h.group&&b.push(S)}),d(b,GE),N(b,function(S){S[w_]!==cY&&S.dispatchAction(_)}),d(b,hY)}})})}})(),e})($a),$w=jg.prototype;$w.on=Fz("on");$w.off=Fz("off");$w.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 vY=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Yg={},Dh={},Kb=[],Qb=[],Xg=[],qz={},Jb={},ns={},Wg={},dY=+new Date-0,pY=+new Date-0,Kw="_echarts_instance_";function gY(r,e,t){var a=!(t&&t.ssr);if(a){var n=Qw(r);if(n)return n}var i=new jg(r,e,t);return i.id="ec_"+dY++,ns[i.id]=i,a&&FP(r,Kw,i.id),Zz(i),fn.trigger("afterinit",i),i}function yY(r){if(it(r)){var e=r;r=null,N(e,function(t){t.group!=null&&(r=t.group)}),r=r||"g_"+pY++,N(e,function(t){t.group=r})}return Wg[r]=!0,r}function $z(r){Wg[r]=!1}var mY=$z;function _Y(r){vt(r)?r=ns[r]:r instanceof jg||(r=Qw(r)),r instanceof jg&&!r.isDisposed()&&r.dispose()}function Qw(r){return ns[L7(r,Kw)]}function xY(r){return ns[r]}function Jw(r,e){qz[r]=e}function tT(r){Bt(Qb,r)<0&&Qb.push(r)}function eT(r,e){rT(Kb,r,e,nY)}function Kz(r){$y("afterinit",r)}function Qz(r){$y("afterupdate",r)}function $y(r,e){fn.on(r,e)}function Sn(r,e,t){_t(e)&&(t=e,e="");var a=St(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),e=r.event,!Dh[e]&&(Rr(VE.test(a)&&VE.test(e)),Yg[a]||(Yg[a]={action:t,actionInfo:r}),Dh[e]=a)}function Jz(r,e){xf.register(r,e)}function bY(r){var e=xf.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function tk(r,e){rT(Xg,r,e,Vz,"layout")}function Wo(r,e){rT(Xg,r,e,Gz,"visual")}var XE=[];function rT(r,e,t,a,n){if((_t(e)||St(e))&&(t=e,e=a),!(Bt(XE,t)>=0)){XE.push(t);var i=Az.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function aT(r,e){Jb[r]=e}function SY(r){Z3({createCanvas:r})}function ek(r,e,t){var a=Bz("registerMap");a&&a(r,e,t)}function wY(r){var e=Bz("getMap");return e&&e(r)}var rk=NF;Wo(qw,oj);Wo(qy,lj);Wo(qy,sj);Wo(qw,bj);Wo(qy,Sj);Wo(Hz,$j);tT(tz);eT(rY,dF);aT("default",uj);Sn({type:rs,event:rs,update:rs},Ne);Sn({type:ng,event:ng,update:ng},Ne);Sn({type:Sh,event:Sh,update:Sh},Ne);Sn({type:ig,event:ig,update:ig},Ne);Sn({type:wh,event:wh,update:wh},Ne);Jw("light",_j);Jw("dark",Lz);var TY={},WE=[],AY={registerPreprocessor:tT,registerProcessor:eT,registerPostInit:Kz,registerPostUpdate:Qz,registerUpdateLifecycle:$y,registerAction:Sn,registerCoordinateSystem:Jz,registerLayout:tk,registerVisual:Wo,registerTransform:rk,registerLoading:aT,registerMap:ek,registerImpl:Kj,PRIORITY:Uz,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){EP(r,e)}};function Gt(r){if(it(r)){N(r,function(e){Gt(e)});return}Bt(WE,r)>=0||(WE.push(r),_t(r)&&(r={install:r}),r.install(AY))}function zc(r){return r==null?0:r.length||1}function ZE(r){return r}var Oi=(function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||ZE,this._newKeyGetter=n||ZE,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=zc(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=zc(u),d=zc(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=zc(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=zc(s);u===0?(t[l]=o,i&&a.push(l)):u===1?t[l]=[s,o]:s.push(o)}}},r})(),CY=(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 DY(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;L_(a,y)[m]=d,p.isExtraCoord||(n.set(y,1),MY(p.type)&&(i[0]=d),L_(l,y)[m]=r.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(d)}Y5.each(function(_,b){var S=L_(a,b),w=p.otherDims[b];w!=null&&w!==!1&&(S[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 CY(l,e),t}function L_(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Zg(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function MY(r){return!(r==="ordinal"||r==="time")}var fg=(function(){function r(e){this.otherDims={},e!=null&&rt(this,e)}return r})(),LY=$t(),EY={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ak=(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=ok(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Et(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=rz(this.source),a=!lk(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+=EY[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 nk(r){return r instanceof ak}function ik(r){for(var e=mt(),t=0;t<(r||[]).length;t++){var a=r[t],n=St(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function ok(r){var e=LY(r);return e.dimNameMap||(e.dimNameMap=ik(r.dimensionsDefine))}function lk(r){return r>30}var kc=St,po=ot,RY=typeof Int32Array>"u"?Array:Int32Array,IY="e\0\0",qE=-1,OY=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],NY=["_approximateExtent"],$E,bp,Bc,Vc,E_,Gc,R_,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;nk(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 fg({name:h}):h instanceof fg?h:new fg(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=Uw(e)||_r(e)?new az(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=DY(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&&R_(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===Qa;if(s&&!n.pure)for(var u=[],c=e;c<t;c++){var h=n.getItem(c,u);if(!this.hasItemOption&&g7(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++)R_(this,c);$E(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){kc(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=Bc(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 bp(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)?qE: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(Vc(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(Vc(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=jt(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(Vc(e),this._getStoreDimIndex,this),l=Gc(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(Vc(e),this._getStoreDimIndex,this);this._store.modify(o,i?dt(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=Gc(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=Gc(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=Gc(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 bp(e,a)},function(a){return bp(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||{},kc(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():kc(i)&&(i=rt({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,kc(t)?rt(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){kc(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;Rb(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)),E_(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(Sy(arguments)))})},r.internalField=(function(){$E=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 RY(o.categories.length);for(var s=0;s<a.length;s++)a[s]=qE;for(var s=0;s<l.count();s++)a[l.get(i.storeDimIndex,s)]=s}})},Bc=function(e,t,a){return Ke(e._getCategory(t,a),null)},bp=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=Bc(e,e._idDimIdx,t)),a==null&&(a=IY+t),a},Vc=function(e){return it(e)||(e=e!=null?[e]:[]),e},Gc=function(e){var t=new r(e._schema?e._schema:po(e.dimensions,e._getDimInfo,e),e.hostModel);return E_(t,e),t},E_=function(e,t){N(OY.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,N(NY,function(a){e[a]=Tt(t[a])}),e._calculationInfo=rt({},t._calculationInfo)},R_=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=Bc(e,i,t)),s==null&&o!=null&&(n[t]=s=Bc(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 PY(r,e){return Tf(r,e).dimensions}function Tf(r,e){Uw(r)||(r=Fw(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=mt(),i=[],o=kY(r,t,a,e.dimensionsCount),l=e.canOmitUnusedDimensions&&lk(o),s=a===r.dimensionsDefine,u=s?ok(r):ik(a),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(r,o));for(var h=mt(c),d=new cz(o),p=0;p<d.length;p++)d[p]=-1;function y(R){var O=d[R];if(O<0){var P=a[R],B=St(P)?P:{name:P},G=new fg,H=B.name;H!=null&&u.get(H)!=null&&(G.name=G.displayName=H),B.type!=null&&(G.type=B.type),B.displayName!=null&&(G.displayName=B.displayName);var F=i.length;return d[R]=F,G.storeDimIndex=R,i.push(G),G}return i[O]}if(!l)for(var p=0;p<o;p++)y(p);h.each(function(R,O){var P=de(R).slice();if(P.length===1&&!vt(P[0])&&P[0]<0){h.set(O,!1);return}var B=h.set(O,[]);N(P,function(G,H){var F=vt(G)?u.get(G):G;F!=null&&F<o&&(B[H]=F,_(y(F),O,H))})});var m=0;N(t,function(R){var O,P,B,G;if(vt(R))O=R,G={};else{G=R,O=G.name;var H=G.ordinalMeta;G.ordinalMeta=null,G=rt({},G),G.ordinalMeta=H,P=G.dimsDef,B=G.otherDims,G.name=G.coordDim=G.coordDimIndex=G.dimsDef=G.otherDims=null}var F=h.get(O);if(F!==!1){if(F=de(F),!F.length)for(var k=0;k<(P&&P.length||1);k++){for(;m<o&&y(m).coordDim!=null;)m++;m<o&&F.push(m++)}N(F,function(j,Y){var $=y(j);if(s&&G.type!=null&&($.type=G.type),_(xt($,G),O,Y),$.name==null&&P){var tt=P[Y];!St(tt)&&(tt={name:tt}),$.name=$.displayName=tt.name,$.defaultTooltip=tt.defaultTooltip}B&&xt($.otherDims,B)})}});function _(R,O,P){Y5.get(O)!=null?R.otherDims[O]=P:(R.coordDim=O,R.coordDimIndex=P,n.set(O,!0))}var b=e.generateCoord,S=e.generateCoordCount,w=S!=null;S=b?S||1:0;var A=b||"value";function M(R){R.name==null&&(R.name=R.coordDim)}if(l)N(i,function(R){M(R)}),i.sort(function(R,O){return R.storeDimIndex-O.storeDimIndex});else for(var D=0;D<o;D++){var L=y(D),E=L.coordDim;E==null&&(L.coordDim=BY(A,n,w),L.coordDimIndex=0,(!b||S<=0)&&(L.isExtraCoord=!0),S--),M(L),L.type==null&&(q5(r,D)===mr.Must||L.isExtraCoord&&(L.otherDims.itemName!=null||L.otherDims.seriesName!=null))&&(L.type="ordinal")}return zY(i),new ak({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:l})}function zY(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 kY(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return N(e,function(i){var o;St(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function BY(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 VY=(function(){function r(e){this.coordSysDims=[],this.axisMap=mt(),this.categoryAxisMap=mt(),this.coordSysName=e}return r})();function GY(r){var e=r.get("coordinateSystem"),t=new VY(e),a=HY[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var HY={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Ye).models[0],i=r.getReferringComponents("yAxis",Ye).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),bu(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),bu(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Ye).models[0];e.coordSysDims=["single"],t.set("single",n),bu(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Ye).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),bu(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),bu(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),bu(u)&&(a.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=s))})}};function bu(r){return r.get("type")==="category"}function sk(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,l;UY(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(S,w){vt(S)&&(i[w]=S={name:S}),s&&!S.isExtraCoord&&(!a&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!n||n===S.coordDim)&&(c=S))}),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(S){S.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 UY(r){return!nk(r.schema)}function Ni(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function nT(r,e){return Ni(r,e)?r.getCalculationInfo("stackResultDimension"):e}function FY(r,e){var t=r.get("coordinateSystem"),a=xf.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=Zg(s)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function jY(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 Zn(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=Fw(r)):(n=a.getSource(),i=n.sourceFormat===Qa);var o=GY(e),l=FY(e,o),s=t.useEncodeDefaulter,u=_t(s)?s:s?Rt(Z5,l,e):null,c={coordDimensions:l,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=Tf(n,c),d=jY(h.dimensions,t.createInvertedIndices,o),p=i?null:a.getSharedDataStore(h),y=sk(e,{schema:h,store:p}),m=new Er(h,e);m.setCalculationInfo(y);var _=d!=null&&YY(n)?function(b,S,w,A){return A===d?w:this.defaultDimValueGetter(b,S,w,A)}:null;return m.hasItemOption=!1,m.initData(i?n:p,null,_),m}function YY(r){if(r.sourceFormat===Qa){var e=XY(r.data||[]);return!it(uf(e))}}function XY(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var qn=(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})();Ey(qn);var WY=0,tS=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++WY}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&ot(a,ZY);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 ZY(r){return St(r)&&r.value!=null?r.value:r+""}function eS(r){return r.type==="interval"||r.type==="log"}function qY(r,e,t,a){var n={},i=r[1]-r[0],o=n.interval=uw(i/e,!0);t!=null&&o<t&&(o=n.interval=t),a!=null&&o>a&&(o=n.interval=a);var l=n.intervalPrecision=uk(o),s=n.niceTickExtent=[Oe(Math.ceil(r[0]/o)*o,l),Oe(Math.floor(r[1]/o)*o,l)];return $Y(s,r),n}function I_(r){var e=Math.pow(10,Ly(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Oe(t*e)}function uk(r){return hn(r)+2}function KE(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function $Y(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),KE(r,0,e),KE(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function Ky(r,e){return r>=e[0]&&r<=e[1]}function Qy(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Jy(r,e){return r*(e[1]-e[0])+e[0]}var tm=(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 tS({})),it(n)&&(n=new tS({categories:ot(n,function(i){return St(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),Ky(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Qy(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Jy(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})(qn);qn.registerClass(tm);var Rl=Oe,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 Ky(t,this._extent)},e.prototype.normalize=function(t){return Qy(t,this._extent)},e.prototype.scale=function(t){return Jy(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=uk(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:Rl(i[0]-a,o)}):l.push({value:n[0]}));for(var u=i[0];u<=i[1]&&(l.push({value:u}),u=Rl(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:Rl(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=Rl(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=hn(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Rl(t.value,n,!0);return Nw(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=qY(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]=Rl(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Rl(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e})(qn);qn.registerClass(Pi);var fk=typeof Float32Array<"u",KY=fk?Float32Array:Array;function Bn(r){return it(r)?fk?new Float32Array(r):r:new KY(r)}var rS="__ec_stack_";function ck(r){return r.get("stack")||rS+r.seriesIndex}function iT(r){return r.dim+r.index}function QY(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(xt({bandWidth:n,axisKey:a,stackId:rS+i},r));for(var o=dk(e),l=[],i=0;i<r.count;i++){var s=o[a][rS+i];s.offsetCenter=s.offset+s.width/2,l.push(s)}return l}}function hk(r,e){var t=[];return e.eachSeriesByType(r,function(a){yk(a)&&t.push(a)}),t}function JY(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 vk(r){var e=JY(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")||(mk(a)?.5:1),l),b=a.get("barGap"),S=a.get("barCategoryGap");t.push({bandWidth:l,barWidth:y,barMaxWidth:m,barMinWidth:_,barGap:b,barCategoryGap:S,axisKey:iT(i),stackId:ck(a)})}),dk(t)}function dk(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=jt(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 S=b.maxWidth,w=b.minWidth;if(b.width){var A=b.width;S&&(A=Math.min(A,S)),w&&(A=Math.max(A,w)),b.width=A,h-=A+c*A,d--}else{var A=p;S&&S<A&&(A=Math.min(S,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,S){b.width||(b.width=p),m=b,y+=b.width*(1+c)}),m&&(y-=m.width*c);var _=-y/2;N(i,function(b,S){t[n][S]=t[n][S]||{bandWidth:o,offset:_,width:b.width},_+=b.width*(1+c)})}),t}function tX(r,e,t){if(r&&e){var a=r[iT(e)];return a}}function pk(r,e){var t=hk(r,e),a=vk(t);N(t,function(n){var i=n.getData(),o=n.coordinateSystem,l=o.getBaseAxis(),s=ck(n),u=a[iT(l)][s],c=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function gk(r){return{seriesType:r,plan:bf(),reset:function(e){if(yk(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=eX(n,i),y=mk(e),m=e.get("barMinHeight")||0,_=c&&t.getDimensionIndex(c),b=t.getLayout("size"),S=t.getLayout("offset");return{progress:function(w,A){for(var M=w.count,D=y&&Bn(M*3),L=y&&s&&Bn(M*3),E=y&&Bn(M),R=a.master.getRect(),O=d?R.width:R.height,P,B=A.getStore(),G=0;(P=w.next())!=null;){var H=B.get(h?_:o,P),F=B.get(l,P),k=p,j=void 0;h&&(j=+H-B.get(o,P));var Y=void 0,$=void 0,tt=void 0,U=void 0;if(d){var W=a.dataToPoint([H,F]);if(h){var at=a.dataToPoint([j,F]);k=at[0]}Y=k,$=W[1]+S,tt=W[0]-k,U=b,Math.abs(tt)<m&&(tt=(tt<0?-1:1)*m)}else{var W=a.dataToPoint([F,H]);if(h){var at=a.dataToPoint([F,j]);k=at[1]}Y=W[0]+S,$=k,tt=b,U=W[1]-k,Math.abs(U)<m&&(U=(U<=0?-1:1)*m)}y?(D[G]=Y,D[G+1]=$,D[G+2]=d?tt:U,L&&(L[G]=d?R.x:Y,L[G+1]=d?$:R.y,L[G+2]=O),E[P]=P):A.setItemLayout(P,{x:Y,y:$,width:tt,height:U}),G+=3}y&&A.setLayout({largePoints:D,largeDataIndices:E,largeBackgroundPoints:L,valueAxisHorizontal:d})}}}}}}function yk(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function mk(r){return r.pipelineContext&&r.pipelineContext.large}function eX(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 rX=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},oT=(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 mv(t.value,UL[I9(Xu(this._minLevelUnit))]||UL.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return O9(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=uX(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]-=Ya,a[1]+=Ya),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]-Ya}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=Sp.length,s=Math.min(rX(Sp,this._approxInterval,0,l),l-1);this._interval=Sp[s][1],this._minLevelUnit=Sp[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return Qt(t)?t:+xa(t)},e.prototype.contain=function(t){return Ky(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Qy(this.parse(t),this._extent)},e.prototype.scale=function(t){return Jy(t,this._extent)},e.type="time",e})(Pi),Sp=[["second",Rw],["minute",Iw],["hour",Ah],["quarter-day",Ah*6],["half-day",Ah*12],["day",Ya*1.2],["half-week",Ya*3.5],["week",Ya*7],["month",Ya*31],["quarter",Ya*95],["half-year",HL/2],["year",HL]];function aX(r,e,t,a){var n=xa(e),i=xa(t),o=function(y){return FL(n,y,a)===FL(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 nX(r,e){return r/=Ya,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function iX(r){var e=30*Ya;return r/=e,r>6?6:r>3?3:r>2?2:1}function oX(r){return r/=Ah,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function QE(r,e){return r/=e?Iw:Rw,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function lX(r){return uw(r,!0)}function sX(r,e,t){var a=new Date(r);switch(Xu(e)){case"year":case"month":a[P5(t)](0);case"day":a[z5(t)](1);case"hour":a[k5(t)](0);case"minute":a[B5(t)](0);case"second":a[V5(t)](0),a[G5(t)](0)}return a.getTime()}function uX(r,e,t,a){var n=1e4,i=O5,o=0;function l(O,P,B,G,H,F,k){for(var j=new Date(P),Y=P,$=j[G]();Y<B&&Y<=a[1];)k.push({value:Y}),$+=O,j[H]($),Y=j.getTime();k.push({value:Y,notAdd:!0})}function s(O,P,B){var G=[],H=!P.length;if(!aX(Xu(O),a[0],a[1],t)){H&&(P=[{value:sX(new Date(a[0]),O,t)},{value:a[1]}]);for(var F=0;F<P.length-1;F++){var k=P[F].value,j=P[F+1].value;if(k!==j){var Y=void 0,$=void 0,tt=void 0,U=!1;switch(O){case"year":Y=Math.max(1,Math.round(e/Ya/365)),$=Ow(t),tt=N9(t);break;case"half-year":case"quarter":case"month":Y=iX(e),$=Wu(t),tt=P5(t);break;case"week":case"half-week":case"day":Y=nX(e),$=Gy(t),tt=z5(t),U=!0;break;case"half-day":case"quarter-day":case"hour":Y=oX(e),$=Uh(t),tt=k5(t);break;case"minute":Y=QE(e,!0),$=Hy(t),tt=B5(t);break;case"second":Y=QE(e,!1),$=Uy(t),tt=V5(t);break;case"millisecond":Y=lX(e),$=Fy(t),tt=G5(t);break}l(Y,k,j,$,tt,U,G),O==="year"&&B.length>1&&F===0&&B.unshift({value:B[0].value-Y})}}for(var F=0;F<G.length;F++)B.push(G[F]);return G}}for(var u=[],c=[],h=0,d=0,p=0;p<i.length&&o++<n;++p){var y=Xu(i[p]);if(R9(i[p])){s(i[p],u[u.length-1]||[],c);var m=i[p+1]?Xu(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 S=c[b].value;(b===0||c[b-1].value!==S)&&(_.push(c[b]),S>=a[0]&&S<=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],E=0;E<L.length;++E)M.push({value:L[E].value,level:D-p});M.sort(function(O,P){return O.value-P.value});for(var R=[],p=0;p<M.length;++p)(p===0||M[p].value!==M[p-1].value)&&R.push(M[p]);return R}qn.registerClass(oT);var JE=qn.prototype,Mh=Pi.prototype,fX=Oe,cX=Math.floor,hX=Math.ceil,wp=Math.pow,ln=Math.log,lT=(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=Mh.getTicks.call(this,t);return ot(o,function(l){var s=l.value,u=Oe(wp(this.base,s));return u=s===n[0]&&this._fixMin?Tp(u,i[0]):u,u=s===n[1]&&this._fixMax?Tp(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,a){var n=ln(this.base);t=ln(Math.max(0,t))/n,a=ln(Math.max(0,a))/n,Mh.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=JE.getExtent.call(this);a[0]=wp(t,a[0]),a[1]=wp(t,a[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(a[0]=Tp(a[0],i[0])),this._fixMax&&(a[1]=Tp(a[1],i[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=ln(t[0])/ln(a),t[1]=ln(t[1])/ln(a),JE.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=zP(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var l=[Oe(hX(a[0]/i)*i),Oe(cX(a[1]/i)*i)];this._interval=i,this._niceExtent=l}},e.prototype.calcNiceExtent=function(t){Mh.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=ln(t)/ln(this.base),Ky(t,this._extent)},e.prototype.normalize=function(t){return t=ln(t)/ln(this.base),Qy(t,this._extent)},e.prototype.scale=function(t){return t=Jy(t,this._extent),wp(this.base,t)},e.type="log",e})(qn),_k=lT.prototype;_k.getMinorTicks=Mh.getMinorTicks;_k.getLabel=Mh.getLabel;function Tp(r,e){return fX(r,hn(e))}qn.registerClass(lT);var vX=(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=Ap(e,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=Ap(e,o));var l=this._modelMaxRaw=t.get("max",!0);if(_t(l)?this._modelMaxNum=Ap(e,l({min:a[0],max:a[1]})):l!=="dataMax"&&(this._modelMaxNum=Ap(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=[xn(u[0],1),xn(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[pX[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=dX[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r})(),dX={min:"_determinedMin",max:"_determinedMax"},pX={min:"_dataMin",max:"_dataMax"};function xk(r,e,t){var a=r.rawExtentInfo;return a||(a=new vX(r,e,t),r.rawExtentInfo=a,a)}function Ap(r,e){return e==null?null:qu(e)?NaN:r.parse(e)}function bk(r,e){var t=r.type,a=xk(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=hk("bar",o),s=!1;if(N(l,function(h){s=s||h.getBaseAxis()===e.axis}),s){var u=vk(l),c=gX(n,i,e,u);n=c.min,i=c.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function gX(r,e,t,a){var n=t.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=tX(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 vs(r,e){var t=e,a=bk(r,t),n=a.extent,i=t.get("splitNumber");r instanceof lT&&(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 xv(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new tm({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new oT({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(qn.getClass(e)||Pi)}}function yX(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Af(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(sT(r,n),i,n.level!=null?{level:n.level}:null)}})(e):function(a){return r.scale.getLabel(a)}}function sT(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function mX(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,n,i=t.getExtent();t instanceof tm?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),l=Af(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=_X(p,o.get("rotate")||0);s?s.union(y):s=y}return s}}function _X(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 uT(r){var e=r.get("interval");return e??"auto"}function Sk(r){return r.type==="category"&&uT(r.getLabelModel())===0}function qg(r,e){var t={};return N(r.mapDimensionsAll(e),function(a){t[nT(r,a)]=!0}),jt(t)}function xX(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 Cf=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r})();function bX(r){return Zn(null,r)}var SX={isDimensionStacked:Ni,enableDataStack:sk,getStackedDimension:nT};function wX(r,e){var t=e;e instanceof ee||(t=new ee(e));var a=xv(t);return a.setExtent(r[0],r[1]),vs(a,t),a}function TX(r){Pe(r,Cf)}function AX(r,e){return e=e||{},_e(r,null,null,e.state!=="normal")}const CX=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:PY,createList:bX,createScale:wX,createSymbol:Ve,createTextStyle:AX,dataStack:SX,enableHoverEmphasis:Io,getECData:Mt,getLayoutRect:Xe,mixinAxisModelCommonMethods:TX},Symbol.toStringTag,{value:"Module"}));var DX=1e-8;function tR(r,e){return Math.abs(r-e)<DX}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+=Si(n[0],n[1],o[0],o[1],e,t),n=o}var l=r[0];return(!tR(n[0],l[0])||!tR(n[1],l[1]))&&(a+=Si(n[0],n[1],l[0],l[1],e,t)),a!==0}var MX=[];function O_(r,e){for(var t=0;t<r.length;t++)hr(r[t],r[t],e)}function eR(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 LX(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 wk=(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})(),rR=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),aR=(function(){function r(e){this.type="linestring",this.points=e}return r})(),Tk=(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 LX(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"?eR(l.exterior,n,i,t):N(l.points,function(s){eR(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"?(O_(d.exterior,u),N(d.interiors,function(p){O_(p,u)})):N(d.points,function(p){O_(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})(wk),EX=(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=uv(MX),o=t;o&&!o.isGeoSVGGraphicRoot;)Hn(i,o.getLocalTransform(),i),o=o.parent;return ys(i,i),hr(n,n,i),n},e})(wk);function RX(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=Ak(l,o,t);break;case"Polygon":N_(l,o,t);break;case"MultiLineString":N_(l,o,t);break;case"MultiPolygon":N(l,function(s,u){return N_(s,o[u],t)})}}),e.UTF8Encoding=!1,e}function N_(r,e,t){for(var a=0;a<r.length;a++)r[a]=Ak(r[a],e[a],t)}function Ak(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 aS(r,e){return r=RX(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 rR(o[0],o.slice(1)));break;case"MultiPolygon":N(n.coordinates,function(s){s[0]&&i.push(new rR(s[0],s.slice(1)))});break;case"LineString":i.push(new aR([n.coordinates]));break;case"MultiLineString":i.push(new aR(n.coordinates))}var l=new Tk(a[e||"name"],i,a.cp);return l.properties=a,l})}const IX=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Ab,asc:ya,getPercentWithPrecision:v7,getPixelPrecision:lw,getPrecision:hn,getPrecisionSafe:NP,isNumeric:fw,isRadianAroundZero:Ku,linearMap:oe,nice:uw,numericToNumber:jn,parseDate:xa,quantile:ag,quantity:zP,quantityExponent:Ly,reformIntervals:Cb,remRadian:sw,round:Oe},Symbol.toStringTag,{value:"Module"})),OX=Object.freeze(Object.defineProperty({__proto__:null,format:mv,parse:xa},Symbol.toStringTag,{value:"Module"})),NX=Object.freeze(Object.defineProperty({__proto__:null,Arc:pv,BezierCurve:hf,BoundingRect:kt,Circle:Xn,CompoundPath:zy,Ellipse:dv,Group:Ct,Image:lr,IncrementalDisplayable:x5,Line:Qe,LinearGradient:vf,Polygon:Or,Polyline:Pr,RadialGradient:Sw,Rect:Wt,Ring:cf,Sector:Ir,Text:Xt,clipPointsByRect:Cw,clipRectByRect:A5,createIcon:pf,extendPath:w5,extendShape:S5,getShapeClass:ky,getTransform:Oo,initProps:De,makeImage:Tw,makePath:gv,mergePath:ga,registerShape:Ka,resizePath:Aw,updateProps:Jt},Symbol.toStringTag,{value:"Module"})),PX=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Nw,capitalFirst:B9,encodeHTML:Lr,formatTime:k9,formatTpl:zw,getTextRect:P9,getTooltipMarker:H5,normalizeCssArray:xs,toCamelCase:Pw,truncateText:F7},Symbol.toStringTag,{value:"Module"})),zX=Object.freeze(Object.defineProperty({__proto__:null,bind:dt,clone:Tt,curry:Rt,defaults:xt,each:N,extend:rt,filter:te,indexOf:Bt,inherits:JS,isArray:it,isFunction:_t,isObject:St,isString:vt,map:ot,merge:It,reduce:Za},Symbol.toStringTag,{value:"Module"}));var Zh=$t();function Ck(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 kX(r){var e=r.getLabelModel().get("customValues");if(e){var t=Af(r),a=r.scale.getExtent(),n=Ck(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"?VX(r):HX(r)}function BX(r,e){var t=r.getTickModel().get("customValues");if(t){var a=r.scale.getExtent(),n=Ck(r,t);return{ticks:te(n,function(i){return i>=a[0]&&i<=a[1]})}}return r.type==="category"?GX(r,e):{ticks:ot(r.scale.getTicks(),function(i){return i.value})}}function VX(r){var e=r.getLabelModel(),t=Dk(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Dk(r,e){var t=Mk(r,"labels"),a=uT(e),n=Lk(t,a);if(n)return n;var i,o;return _t(a)?i=Ik(r,a):(o=a==="auto"?UX(r):a,i=Rk(r,o)),Ek(t,a,{labels:i,labelCategoryInterval:o})}function GX(r,e){var t=Mk(r,"ticks"),a=uT(e),n=Lk(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),_t(a))i=Ik(r,a,!0);else if(a==="auto"){var l=Dk(r,r.getLabelModel());o=l.labelCategoryInterval,i=ot(l.labels,function(s){return s.tickValue})}else o=a,i=Rk(r,o,!0);return Ek(t,a,{ticks:i,tickCategoryInterval:o})}function HX(r){var e=r.scale.getTicks(),t=Af(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 Mk(r,e){return Zh(r)[e]||(Zh(r)[e]=[])}function Lk(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function Ek(r,e,t){return r.push({key:e,value:t}),t}function UX(r){var e=Zh(r).autoInterval;return e??(Zh(r).autoInterval=r.calculateCategoryInterval())}function FX(r){var e=jX(r),t=Af(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,_=cv(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,S=p/h;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(b,S))),A=Zh(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 jX(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 Rk(r,e,t){var a=Af(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=Sk(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 Ik(r,e,t){var a=r.scale,n=Af(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 nR=[0,1],tn=(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 lw(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(),iR(a,n.count())),oe(e,nR,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),iR(a,n.count()));var i=oe(e,a,nR,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=BX(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 YX(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 kX(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 FX(this)},r})();function iR(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function YX(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=Oe(p),y=Oe(y),h?p>y:p<y}}function XX(r){var e=Ht.extend(r);return Ht.registerClass(e),e}function WX(r){var e=we.extend(r);return we.registerClass(e),e}function ZX(r){var e=pe.extend(r);return pe.registerClass(e),e}function qX(r){var e=fe.extend(r);return fe.registerClass(e),e}var Hc=Math.PI*2,Il=Yn.CMD,$X=["top","right","bottom","left"];function KX(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 QX(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)%Hc<1e-4)return s[0]=c,s[1]=h,u-t;if(i){var d=a;a=ma(n),n=ma(d)}else a=ma(a),n=ma(n);a>n&&(n+=Hc);var p=Math.atan2(l,o);if(p<0&&(p+=Hc),p>=a&&p<=n||p+Hc>=a&&p+Hc<=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,S=(y-o)*(y-o)+(m-l)*(m-l),w=(_-o)*(_-o)+(b-l)*(b-l);return S<w?(s[0]=y,s[1]=m,Math.sqrt(S)):(s[0]=_,s[1]=b,Math.sqrt(w))}function $g(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 Ok(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 cn=[];function JX(r,e,t){var a=Ok(e.x,e.y,e.width,e.height,r.x,r.y,cn);return t.set(cn[0],cn[1]),a}function tW(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 Il.M:i=c[p++],o=c[p++],a=i,n=o;break;case Il.L:m=$g(a,n,c[p],c[p+1],h,d,cn,!0),a=c[p++],n=c[p++];break;case Il.C:m=dP(a,n,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,cn),a=c[p++],n=c[p++];break;case Il.Q:m=gP(a,n,c[p++],c[p++],c[p],c[p+1],h,d,cn),a=c[p++],n=c[p++];break;case Il.A:var _=c[p++],b=c[p++],S=c[p++],w=c[p++],A=c[p++],M=c[p++];p+=1;var D=!!(1-c[p++]);l=Math.cos(A)*S+_,s=Math.sin(A)*w+b,p<=1&&(i=l,o=s);var L=(h-_)*w/S+_;m=QX(_,b,w,A,A+M,D,L,d,cn),a=Math.cos(A+M)*S+_,n=Math.sin(A+M)*w+b;break;case Il.R:i=a=c[p++],o=n=c[p++];var E=c[p++],R=c[p++];m=Ok(i,o,E,R,h,d,cn);break;case Il.Z:m=$g(a,n,i,o,h,d,cn,!0),a=i,n=o;break}m<u&&(u=m,t.set(cn[0],cn[1]))}return u}var vn=new zt,Se=new zt,Be=new zt,Vn=new zt,zn=new zt;function oR(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||$X,l=a.getBoundingRect().clone();l.applyTransform(a.getComputedTransform());var s=1/0,u=n.anchor,c=r.getComputedTransform(),h=c&&ys([],c),d=e.get("length2")||0;u&&Be.copy(u);for(var p=0;p<o.length;p++){var y=o[p];KX(y,0,l,vn,Vn),zt.scaleAndAdd(Se,vn,Vn,d),Se.transform(h);var m=r.getBoundingRect(),_=u?u.distance(Se):r instanceof Ft?tW(Se,r.path,Be):JX(Se,m,Be);_<s&&(s=_,Se.transform(c),Be.transform(c),Be.toArray(i[0]),Se.toArray(i[1]),vn.toArray(i[2]))}Nk(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Kg=[],Gr=new zt;function Nk(r,e){if(e<=180&&e>0){e=e/180*Math.PI,vn.fromArray(r[0]),Se.fromArray(r[1]),Be.fromArray(r[2]),zt.sub(Vn,vn,Se),zt.sub(zn,Be,Se);var t=Vn.len(),a=zn.len();if(!(t<.001||a<.001)){Vn.scale(1/t),zn.scale(1/a);var n=Vn.dot(zn),i=Math.cos(e);if(i<n){var o=$g(Se.x,Se.y,Be.x,Be.y,vn.x,vn.y,Kg,!1);Gr.fromArray(Kg),Gr.scaleAndAdd(zn,o/Math.tan(Math.PI-e));var l=Be.x!==Se.x?(Gr.x-Se.x)/(Be.x-Se.x):(Gr.y-Se.y)/(Be.y-Se.y);if(isNaN(l))return;l<0?zt.copy(Gr,Se):l>1&&zt.copy(Gr,Be),Gr.toArray(r[1])}}}}function eW(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,vn.fromArray(r[0]),Se.fromArray(r[1]),Be.fromArray(r[2]),zt.sub(Vn,Se,vn),zt.sub(zn,Be,Se);var a=Vn.len(),n=zn.len();if(!(a<.001||n<.001)){Vn.scale(1/a),zn.scale(1/n);var i=Vn.dot(e),o=Math.cos(t);if(i<o){var l=$g(Se.x,Se.y,Be.x,Be.y,vn.x,vn.y,Kg,!1);Gr.fromArray(Kg);var s=Math.PI/2,u=Math.acos(zn.dot(e)),c=s+u-t;if(c>=s)zt.copy(Gr,Be);else{Gr.scaleAndAdd(zn,l/Math.tan(Math.PI/2-c));var h=Be.x!==Se.x?(Gr.x-Se.x)/(Be.x-Se.x):(Gr.y-Se.y)/(Be.y-Se.y);if(isNaN(h))return;h<0?zt.copy(Gr,Se):h>1&&zt.copy(Gr,Be)}Gr.toArray(r[1])}}}}function P_(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 rW(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=gh([],a[1],a[0],o/n),s=gh([],a[1],a[2],o/i),u=gh([],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 fT(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<Vh.length;s++){var u=Vh[s],c=e[u],h=u==="normal";if(c){var d=c.get("show"),p=h?l:Et(n.states[u]&&n.states[u].ignore,l);if(p||!Et(d,o)){var y=h?a:a&&a.states[u];y&&(y.ignore=!0),a&&P_(a,!0,u,c);continue}a||(a=new Pr,r.setTextGuideLine(a),!h&&(l||!o)&&P_(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),P_(a,!1,u,c)}}if(a){xt(a.style,t),a.style.fill=null;var m=i.get("showAbove"),_=r.textGuideLineConfig=r.textGuideLineConfig||{};_.showAbove=m||!1,a.buildPath=rW}}function cT(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 Pk(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 Og(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 zk(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(),S(m,_,1),S(_,m,-1),b(),m<0&&M(-m),_<0&&M(_);function b(){m=p.rect[e]-a,_=n-y.rect[e]-y.rect[t]}function S(D,L,E){if(D<0){var R=Math.min(L,-D);if(R>0){w(R*E,0,o);var O=R+D;O<0&&A(-O*E,1)}else A(-D*E,1)}}function w(D,L,E){D!==0&&(u=!0);for(var R=L;R<E;R++){var O=r[R],P=O.rect;P[e]+=D,O.label[e]+=D}}function A(D,L){for(var E=[],R=0,O=1;O<o;O++){var P=r[O-1].rect,B=Math.max(r[O].rect[e]-P[e]-P[t],0);E.push(B),R+=B}if(R){var G=Math.min(Math.abs(D)/R,L);if(D>0)for(var O=0;O<o-1;O++){var H=E[O]*G;w(H,0,O+1)}else for(var O=o-1;O>0;O--){var H=E[O-1]*G;w(-H,O,o)}}}function M(D){var L=D<0?-1:1;D=Math.abs(D);for(var E=Math.ceil(D/(o-1)),R=0;R<o-1;R++)if(L>0?w(E,0,R+1):w(-E,o-R-1,o),D-=E,D<=0)return}return u}function aW(r,e,t,a){return zk(r,"x","width",e,t)}function kk(r,e,t,a){return zk(r,"y","height",e,t)}function Bk(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 Og(y.localRect,y.transform)),h||(h=new Og(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 nW(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function iW(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:nW(a&&a.shape.points)}}var lR=["align","verticalAlign","width","height","fontSize"],kr=new Ci,z_=$t(),oW=$t();function Cp(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var Dp=["x","y","rotation"],lW=(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?kr.setLocalTransform(u):(kr.x=kr.y=kr.rotation=kr.originX=kr.originY=0,kr.scaleX=kr.scaleY=1),kr.rotation=ma(kr.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:kr.x,y:kr.y,scaleX:kr.scaleX,scaleY:kr.scaleY,rotation:kr.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)||jt(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(){oR(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(iW(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=z_(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<lR.length;m++){var _=lR[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 S=o.seriesModel.getData(o.dataType);b=S.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=Pk(this._labelList),i=te(n,function(s){return s.layoutOption.moveOverlap==="shiftX"}),o=te(n,function(s){return s.layoutOption.moveOverlap==="shiftY"});aW(i,0,t),kk(o,0,a);var l=te(n,function(s){return s.layoutOption.hideOverlap});Bk(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=z_(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");fT(e,cT(l),s),oR(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&&!ju(e))){var i=z_(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),!gf(a).valueAnimation){var h=Et(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={};Cp(p,u,Dp),Cp(p,a.states.select,Dp)}if(a.states.emphasis){var y=i.oldLayoutEmphasis={};Cp(y,u,Dp),Cp(y,a.states.emphasis,Dp)}L5(a,s,c,t,t)}if(n&&!n.ignore&&!n.invisible){var i=oW(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})(),k_=$t();function sW(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=k_(t).labelManager;n||(n=k_(t).labelManager=new lW),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=k_(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var B_=Math.sin,V_=Math.cos,Vk=Math.PI,Ol=Math.PI*2,uW=180/Vk,Gk=(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-Ol)||(c?u>=Ol:-u>=Ol),p=u>0?u%Ol:u%Ol+Ol,y=!1;d?y=!0:Co(h)?y=!1:y=p>=Vk==!!c;var m=e+a*V_(o),_=t+n*B_(o);this._start&&this._add("M",m,_);var b=Math.round(i*uW);if(d){var S=1/this._p,w=(c?1:-1)*(Ol-S);this._add("A",a,n,b,1,+c,e+a*V_(o+w),t+n*B_(o+w)),S>.01&&this._add("A",a,n,b,0,+c,m,_)}else{var A=e+a*V_(l),M=t+n*B_(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})(),hT="none",fW=Math.round;function cW(r){var e=r.fill;return e!=null&&e!==hT}function hW(r){var e=r.stroke;return e!=null&&e!==hT}var nS=["lineCap","miterLimit","lineJoin"],vW=ot(nS,function(r){return"stroke-"+r.toLowerCase()});function dW(r,e,t,a){var n=e.opacity==null?1:e.opacity;if(t instanceof lr){r("opacity",n);return}if(cW(e)){var i=kh(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",hT);if(hW(e)){var l=kh(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=Ww(t),p=d[0],y=d[1];p&&(y=fW(y||0),r("stroke-dasharray",p.join(",")),(y||a)&&r("stroke-dashoffset",y))}for(var m=0;m<nS.length;m++){var _=nS[m];if(e[_]!==Rg[_]){var b=e[_]||Rg[_];b&&r(vW[m],b)}}}}var Hk="http://www.w3.org/2000/svg",Uk="http://www.w3.org/1999/xlink",pW="http://www.w3.org/2000/xmlns/",gW="http://www.w3.org/XML/1998/namespace",sR="ecmeta_";function Fk(r){return document.createElementNS(Hk,r)}function ar(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function yW(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 mW(r){return"</"+r+">"}function vT(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 yW(o,l)+(o!=="style"?Lr(s):s||"")+(i?""+t+ot(i,function(u){return a(u)}).join(t)+t:"")+mW(o)}return a(r)}function _W(r,e,t){t=t||{};var a=t.newline?`
86
+ `:"",n=" {"+a,i=a+"}",o=ot(jt(r),function(s){return s+n+ot(jt(r[s]),function(u){return u+":"+r[s][u]+";"}).join(a)+i}).join(a),l=ot(jt(e),function(s){return"@keyframes "+s+n+ot(jt(e[s]),function(u){return u+n+ot(jt(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 iS(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function uR(r,e,t,a){return ar("svg","root",{width:r,height:e,xmlns:Hk,"xmlns:xlink":Uk,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var xW=0;function jk(){return xW++}var fR={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"},zl="transform-origin";function bW(r,e,t){var a=rt({},r.shape);rt(a,e),r.buildPath(t,a);var n=new Gk;return n.reset(wP(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function SW(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[zl]=t+"px "+a+"px")}var wW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Yk(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function TW(r,e,t){var a=r.shape.paths,n={},i,o;if(N(a,function(s){var u=iS(t.zrId);u.animation=!0,em(s,{},u,!0);var c=u.cssAnims,h=u.cssNodes,d=jt(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 S=h[b].animation;S.indexOf(o)>=0&&(i=S)}}}),!!i){e.d=!1;var l=Yk(n,t);return i.replace(o,l)}}function cR(r){return vt(r)?fR[r]?"cubic-bezier("+fR[r]+")":aw(r)?r:"":""}function em(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof zy){var l=TW(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=cR(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(S){var w=S[1],A=w.length,M={},D={},L={},E="animation-timing-function";function R(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 Ge=0;Ge<ue.length;Ge++){var Sr=ue[Ge],sr=Math.round(Sr.time/Dt*100)+"%",en=cR(Sr.easing),wa=Sr.rawValue;(vt(wa)||Qt(wa))&&(pt[sr]=pt[sr]||{},pt[sr][ye]=Sr.rawValue,en&&(pt[sr][E]=en))}}}}for(var O=0;O<A;O++){var P=w[O],B=P.targetName;B?B==="shape"&&R(P,D):!a&&R(P,M)}for(var G in M){var H={};MP(H,r),rt(H,M[G]);var F=TP(H),k=M[G][E];L[G]=F?{transform:F}:{},SW(L[G],H),k&&(L[G][E]=k)}var j,Y=!0;for(var G in D){L[G]=L[G]||{};var $=!j,k=D[G][E];$&&(j=new Yn);var tt=j.len();j.reset(),L[G].d=bW(r,D[G],j);var U=j.len();if(!$&&tt!==U){Y=!1;break}k&&(L[G][E]=k)}if(!Y)for(var G in L)delete L[G].d;if(!a)for(var O=0;O<A;O++){var P=w[O],B=P.targetName;B==="style"&&R(P,L,function(yt){return wW[yt]})}for(var W=jt(L),at=!0,lt,O=1;O<W.length;O++){var ct=W[O-1],bt=W[O];if(L[ct][zl]!==L[bt][zl]){at=!1;break}lt=L[ct][zl]}if(at&&lt){for(var G in L)L[G][zl]&&delete L[G][zl];e[zl]=lt}if(te(W,function(wt){return jt(L[wt]).length>0}).length){var Pt=Yk(L,t);return Pt+" "+S[0]+" both"}}for(var _ in s){var l=m(s[_]);l&&o.push(l)}if(o.length){var b=t.zrId+"-cls-"+jk();t.cssNodes["."+b]={animation:o.join(",")},e.class=b}}function AW(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};hR(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=Dg(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),hR(a,e,t)}}function hR(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+jk(),t.cssStyleCache[n]=i,t.cssNodes["."+i+":hover"]=r),e.class=e.class?e.class+" "+i:i}var qh=Math.round;function Xk(r){return r&&vt(r.src)}function Wk(r){return r&&_t(r.toDataURL)}function dT(r,e,t,a){dW(function(n,i){var o=n==="fill"||n==="stroke";o&&SP(i)?qk(e,r,n,a):o&&iw(i)?$k(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),IW(t,r,a)}function pT(r,e){var t=RP(e);t&&(t.each(function(a,n){a!=null&&(r[(sR+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[sR+"silent"]="true"))}function vR(r){return Co(r[0]-1)&&Co(r[1])&&Co(r[2])&&Co(r[3]-1)}function CW(r){return Co(r[4])&&Co(r[5])}function gT(r,e,t){if(e&&!(CW(e)&&vR(e))){var a=1e4;r.transform=vR(e)?"translate("+qh(e[4]*a)/a+" "+qh(e[5]*a)/a+")":RH(e)}}function dR(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 pR(r){return!r.smooth}function DW(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 MW={circle:[DW(["cx","cy","r"])],polyline:[dR,pR],polygon:[dR,pR]};function LW(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function Zk(r,e){var t=r.style,a=r.shape,n=MW[r.type],i={},o=e.animation,l="path",s=r.style.strokePercent,u=e.compress&&wP(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&LW(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 Gk),m.reset(u),d.rebuildPath(m,s),m.generateStr(),y.__svgPathVersion=p,y.__svgPathStrokePercent=s),i.d=m.getStr()}return gT(i,r.transform),dT(i,t,r,e),pT(i,r),e.animation&&em(r,i,e),e.emphasis&&AW(r,i,e),ar(l,r.id+"",i)}function EW(r,e){var t=r.style,a=t.image;if(a&&!vt(a)&&(Xk(a)?a=a.src:Wk(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),gT(s,r.transform),dT(s,t,r,e),pT(s,r),e.animation&&em(r,s,e),ar("image",r.id+"",s)}}function RW(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=OH(t.y||0,Dy(n),t.textBaseline),l=IH[t.textAlign]||t.textAlign,s={"dominant-baseline":"central","text-anchor":l};if(r5(t)){var u="",c=t.fontStyle,h=e5(t.fontSize);if(!parseFloat(h))return;var d=t.fontFamily||W3,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),gT(s,r.transform),dT(s,t,r,e),pT(s,r),e.animation&&em(r,s,e),ar("text",r.id+"",s,void 0,a)}}function gR(r,e){if(r instanceof Ft)return Zk(r,e);if(r instanceof lr)return EW(r,e);if(r instanceof Qu)return RW(r,e)}function IW(r,e,t){var a=r.style;if(NH(a)){var n=PH(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=kh(a.shadowColor),y=p.opacity,m=p.color,_=d/2/s,b=d/2/u,S=_+" "+b;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=ar("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ar("feDropShadow","",{dx:c/s,dy:h/u,stdDeviation:S,"flood-color":m,"flood-opacity":y})]),i[n]=o}e.filter=Cy(o)}}function qk(r,e,t,a){var n=r[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(xP(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(bP(n))i="radialGradient",o.cx=Et(n.x,.5),o.cy=Et(n.y,.5),o.r=Et(n.r,.5);else return;for(var l=n.colorStops,s=[],u=0,c=l.length;u<c;++u){var h=db(l[u].offset)*100+"%",d=l[u].color,p=kh(d),y=p.color,m=p.opacity,_={offset:h};_["stop-color"]=y,m<1&&(_["stop-opacity"]=m),s.push(ar("stop",u+"",_))}var b=ar(i,"",o,s),S=vT(b),w=a.gradientCache,A=w[S];A||(A=a.zrId+"-g"+a.gradientIdx++,w[S]=A,o.id=A,a.defs[A]=ar(i,A,o,s)),e[t]=Cy(A)}function $k(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(_P(n)){var d=n.imageWidth,p=n.imageHeight,y=void 0,m=n.image;if(vt(m)?y=m:Xk(m)?y=m.src:Wk(m)&&(y=m.toDataURL()),typeof Image>"u"){var _="Image width/height must been given explictly in svg-ssr renderer.";Rr(d,_),Rr(p,_)}else if(d==null||p==null){var b=function(O,P){if(O){var B=O.elm,G=d||P.width,H=p||P.height;O.tag==="pattern"&&(u?(H=1,G/=i.width):c&&(G=1,H/=i.height)),O.attrs.width=G,O.attrs.height=H,B&&(B.setAttribute("width",G),B.setAttribute("height",H))}},S=dw(y,null,r,function(O){s||b(D,O),b(h,O)});S&&S.width&&S.height&&(d=d||S.width,p=p||S.height)}h=ar("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=TP(n);M&&(o.patternTransform=M);var D=ar("pattern","",o,[h]),L=vT(D),E=a.patternCache,R=E[L];R||(R=a.zrId+"-p"+a.patternIdx++,E[L]=R,o.id=R,D=a.defs[R]=ar("pattern",R,o,[h])),e[t]=Cy(R)}}function OW(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]=ar("clipPath",i,o,[Zk(r,t)])}e["clip-path"]=Cy(i)}function yR(r){return document.createTextNode(r)}function Fl(r,e,t){r.insertBefore(e,t)}function mR(r,e){r.removeChild(e)}function _R(r,e){r.appendChild(e)}function Kk(r){return r.parentNode}function Qk(r){return r.nextSibling}function G_(r,e){r.textContent=e}var xR=58,NW=120,PW=ar("","");function oS(r){return r===void 0}function Nn(r){return r!==void 0}function zW(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 sh(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function $h(r){var e,t=r.children,a=r.tag;if(Nn(a)){var n=r.elm=Fk(a);if(yT(PW,r),it(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&_R(n,$h(i))}else Nn(r.text)&&!St(r.text)&&_R(n,yR(r.text))}else r.elm=yR(r.text);return r.elm}function Jk(r,e,t,a,n){for(;a<=n;++a){var i=t[a];i!=null&&Fl(r,$h(i),e)}}function Qg(r,e,t,a){for(;t<=a;++t){var n=e[t];if(n!=null)if(Nn(n.tag)){var i=Kk(n.elm);mR(i,n.elm)}else mR(r,n.elm)}}function yT(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)!==NW?a.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?a.setAttributeNS(pW,t,o):t.charCodeAt(3)===xR?a.setAttributeNS(gW,t,o):t.charCodeAt(5)===xR?a.setAttributeNS(Uk,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function kW(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]:sh(o,u)?(Nu(o,u),o=e[++a],u=t[++n]):sh(l,c)?(Nu(l,c),l=e[--i],c=t[--s]):sh(o,c)?(Nu(o,c),Fl(r,o.elm,Qk(l.elm)),o=e[++a],c=t[--s]):sh(l,u)?(Nu(l,u),Fl(r,l.elm,o.elm),l=e[--i],u=t[++n]):(oS(h)&&(h=zW(e,a,i)),d=h[u.key],oS(d)?Fl(r,$h(u),o.elm):(p=e[d],p.tag!==u.tag?Fl(r,$h(u),o.elm):(Nu(p,u),e[d]=void 0,Fl(r,p.elm,o.elm))),u=t[++n]);(a<=i||n<=s)&&(a>i?(y=t[s+1]==null?null:t[s+1].elm,Jk(r,y,t,n,s)):Qg(r,e,a,i))}function Nu(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(yT(r,e),oS(e.text)?Nn(a)&&Nn(n)?a!==n&&kW(t,a,n):Nn(n)?(Nn(r.text)&&G_(t,""),Jk(t,null,n,0,n.length-1)):Nn(a)?Qg(t,a,0,a.length-1):Nn(r.text)&&G_(t,""):r.text!==e.text&&(Nn(a)&&Qg(t,a,0,a.length-1),G_(t,e.text)))}function BW(r,e){if(sh(r,e))Nu(r,e);else{var t=r.elm,a=Kk(t);$h(e),a!==null&&(Fl(a,e.elm,Qk(t)),Qg(a,[r],0,0))}return e}var VW=0,GW=(function(){function r(e,t,a){if(this.type="svg",this.refreshHover=bR(),this.configLayer=bR(),this.storage=t,this._opts=a=rt({},a),this.root=e,this._id="zr"+VW++,this._oldVNode=uR(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=Fk("svg");yT(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",BW(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return gR(e,iS(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=iS(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=HW(a,n,this._backgroundColor,i);l&&o.push(l);var s=e.compress?null:this._mainVNode=ar("g","main",{},[]);this._paintList(t,i,s?s.children:o),s&&o.push(s);var u=ot(jt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(ar("defs","defs",{},u)),e.animation){var c=_W(i.cssNodes,i.cssAnims,{newline:!0});if(c){var h=ar("style","stl",{},[],c);o.push(h)}}return uR(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},vT(this.renderToVNode({animation:Et(e.cssAnimation,!0),emphasis:Et(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Et(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 S={};OW(d[b],S,t);var w=ar("g","clip-g-"+u++,S,[]);(l?l.children:a).push(w),i[o++]=w,l=w}s=d;var A=gR(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=Vu(n,0,a),t=Vu(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(iw(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=kH(t),t&&a+"base64,"+t):a+"charset=UTF-8,"+encodeURIComponent(t)},r})();function bR(r){return function(){}}function HW(r,e,t,a){var n;if(t&&t!=="none")if(n=ar("rect","bg",{width:r,height:e,x:"0",y:"0"}),SP(t))qk({fill:t},n.attrs,"fill",a);else if(iw(t))$k({style:{fill:t},dirty:Ne,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=kh(t),o=i.color,l=i.opacity;n.attrs.fill=o,l<1&&(n.attrs["fill-opacity"]=l)}return n}function UW(r){r.registerPainter("svg",GW)}function SR(r,e,t){var a=mn.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 H_=(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||Lg,typeof t=="string"?o=SR(t,a,n):St(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var l=o.style;return l&&(tw(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=SR("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(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var w=new kt(0,0,0,0);w.copy(S),o.push(w)}else{for(var A=!1,M=1/0,D=0,L=0;L<o.length;++L){var E=o[L];if(E.intersect(S)){var R=new kt(0,0,0,0);R.copy(E),R.union(S),o[L]=R,A=!0;break}else if(s){u.copy(S),u.union(E);var O=S.width*S.height,P=E.width*E.height,B=u.width*u.height,G=B-O-P;G<M&&(M=G,D=L)}}if(s&&(o[D].union(S),A=!0),!A){var w=new kt(0,0,0,0);w.copy(S),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&pa||!p)?d.getPrevPaintRect():null;y&&c(y);var m=p&&(d.__dirty&pa||!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,S){if(o.clearRect(m,_,b,S),a&&a!=="transparent"){var w=void 0;if(lv(a)){var A=a.global||a.__width===b&&a.__height===S;w=A&&a.__canvasGradient||qb(o,a,{x:0,y:0,width:b,height:S}),a.__canvasGradient=w,a.__width=b,a.__height=S}else Q3(a)&&(a.scaleX=a.scaleX||h,a.scaleY=a.scaleY||h,w=$b(o,a,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=w||a,o.fillRect(m,_,b,S),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(p,m,_,b,S),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})($a),wR=1e5,Nl=314159,Mp=.01,FW=.001;function jW(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function YW(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 XW=(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||Lg,this._singleCanvas=i,this.root=e;var o=e.style;o&&(tw(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 H_(c,this,this.dpr);p.__builtin__=!0,p.initContext(),s[Nl]=p,p.zlevel=Nl,l.push(Nl),this._domRoot=e}else{this._width=Vu(e,0,a),this._height=Vu(e,1,a);var u=this._domRoot=YW(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(wR)),i||(i=a.ctx,i.save()),Ql(i,l,n,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(wR)},r.prototype.paintOne=function(e,t){Zw(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;wg(function(){s._paintList(e,t,a,n)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Nl).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,S=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,S);else if(w===_.__startIndex){var L=e[w];(!L.incremental||!L.notClear||a)&&_.clear(!1,D,S)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=_.__startIndex);var E,R=function(G){var H={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(E=w;E<_.__endIndex;E++){var F=e[E];if(F.__inHover&&(h=!0),n._doPaintEl(F,_,o,G,H,E===_.__endIndex-1),A){var k=Date.now()-M;if(k>15)break}}H.prevElClipPaths&&b.restore()};if(S)if(S.length===0)E=_.__endIndex;else for(var O=p.dpr,P=0;P<S.length;++P){var B=S[P];b.save(),b.beginPath(),b.rect(B.x*O,B.y*O,B.width*O,B.height*O),b.clip(),R(B),b.restore()}else b.save(),R(),b.restore();_.__drawIndex=E,_.__drawIndex<_.__endIndex&&(c=!1)},p=this,y=0;y<i.length;y++)d(y);return Ut.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))&&(Ql(l,e,i,o),e.setPrevPaintRect(s))}else Ql(l,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Nl);var a=this._layers[e];return a||(a=new H_("zr_"+e,this,this.dpr),a.zlevel=e,a.__builtin__=!0,this._layerConfig[e]?It(a,this._layerConfig[e],!0):this._layerConfig[e-Mp]&&It(a,this._layerConfig[e-Mp],!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]&&jW(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+FW,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Mp:0),this._needsManuallyCompositing),c.__builtin__||xy("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&pa&&!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+Mp){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=Vu(i,0,n),t=Vu(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(Nl).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[Nl].dom;var t=new H_("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];Ql(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 WW(r){r.registerPainter("canvas",XW)}var ZW=(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 Zn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new Ct,n=Ve("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=Ve(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 rf(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=tf(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(tf(r,e,t[o]));return i.join(" ")}}function tB(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 bv=(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=Ve(t,-1,-1,2,2,null,o);l.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=qW,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(){Ri(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),bn(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 S=i&&i.itemModel?i.itemModel:t.getItemModel(a),w=S.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),h=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),p=w.get("blurScope"),y=w.get("disabled"),m=ir(S),_=w.getShallow("scale"),b=S.getShallow("cursor")}var A=t.getItemVisual(a,"symbolRotate");l.attr("rotation",(A||0)*Math.PI/180||0);var M=bs(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 lr){var E=l.style;l.useStyle(rt({image:E.image,x:E.x,y:E.y,width:E.width,height:E.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 R=t.getItemVisual(a,"liftZ"),O=this._z2;R!=null?O==null&&(this._z2=l.z2,l.z2+=R):O!=null&&(l.z2=O,this._z2=null);var P=o&&o.useNameLabel;br(l,m,{labelFetcher:s,labelDataIndex:a,defaultText:B,inheritColor:L,defaultOpacity:D.opacity});function B(F){return P?t.getName(F):rf(t,F)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var G=l.ensureState("emphasis");G.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;G.scaleX=this._sizeX*H,G.scaleY=this._sizeY*H,this.setSymbolScale(1),Re(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 wf(t.getItemVisual(a,"symbolSize"))},e})(Ct);function qW(r,e){this.parent.drift(r,e)}function U_(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 TR(r){return r!=null&&!St(r)&&(r={isIgnore:r}),r||{}}function AR(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:ir(e),cursorStyle:e.get("cursor")}}var Sv=(function(){function r(e){this.group=new Ct,this._SymbolCtor=e||bv}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=TR(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,l=t.disableAnimation,s=AR(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(U_(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(!U_(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=AR(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=TR(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(U_(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){Yo(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 eB(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=$W(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 $W(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 rB(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 KW(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 QW(r,e,t,a,n,i,o,l){for(var s=KW(r,e),u=[],c=[],h=[],d=[],p=[],y=[],m=[],_=eB(n,e,o),b=r.getLayout("points")||[],S=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 E=b[D],R=b[D+1],O=S[L],P=S[L+1];(isNaN(E)||isNaN(R))&&(E=O,R=P),u.push(E,R),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 B=A.idx,G=_.dataDimsForPoint,H=n.dataToPoint([e.get(G[0],B),e.get(G[1],B)]);L=B*2,u.push(H[0],H[1]),c.push(S[L],S[L+1]);var F=rB(_,n,e,B);h.push(F[0],F[1]),d.push(a[L],a[L+1]),m.push(e.getRawIndex(B));break;case"-":M=!1}M&&(p.push(A),y.push(y.length))}y.sort(function(ct,bt){return m[ct]-m[bt]});for(var k=u.length,j=Bn(k),Y=Bn(k),$=Bn(k),tt=Bn(k),U=[],w=0;w<y.length;w++){var W=y[w],at=w*2,lt=W*2;j[at]=u[lt],j[at+1]=u[lt+1],Y[at]=c[lt],Y[at+1]=c[lt+1],$[at]=h[lt],$[at+1]=h[lt+1],tt[at]=d[lt],tt[at+1]=d[lt+1],U[w]=p[W]}return{current:j,next:Y,stackedOnCurrent:$,stackedOnNext:tt,status:U}}var go=Math.min,yo=Math.max;function is(r,e){return isNaN(r)||isNaN(e)}function lS(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],S=e[m*2+1];if(m>=n||m<0)break;if(is(b,S)){if(s){m+=i;continue}break}if(m===t)r[i>0?"moveTo":"lineTo"](b,S),h=b,d=S;else{var w=b-u,A=S-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===S&&_<a;)_++,M+=i,m+=i,D=e[M*2],L=e[M*2+1],b=e[m*2],S=e[m*2+1],w=b-u,A=S-c;var E=_+1;if(s)for(;is(D,L)&&E<a;)E++,M+=i,D=e[M*2],L=e[M*2+1];var R=.5,O=0,P=0,B=void 0,G=void 0;if(E>=a||is(D,L))p=b,y=S;else{O=D-u,P=L-c;var H=b-u,F=D-b,k=S-c,j=L-S,Y=void 0,$=void 0;if(l==="x"){Y=Math.abs(H),$=Math.abs(F);var tt=O>0?1:-1;p=b-tt*Y*o,y=S,B=b+tt*$*o,G=S}else if(l==="y"){Y=Math.abs(k),$=Math.abs(j);var U=P>0?1:-1;p=b,y=S-U*Y*o,B=b,G=S+U*$*o}else Y=Math.sqrt(H*H+k*k),$=Math.sqrt(F*F+j*j),R=$/($+Y),p=b-O*o*(1-R),y=S-P*o*(1-R),B=b+O*o*R,G=S+P*o*R,B=go(B,yo(D,b)),G=go(G,yo(L,S)),B=yo(B,go(D,b)),G=yo(G,go(L,S)),O=B-b,P=G-S,p=b-O*Y/$,y=S-P*Y/$,p=go(p,yo(u,b)),y=go(y,yo(c,S)),p=yo(p,go(u,b)),y=yo(y,go(c,S)),O=b-p,P=S-y,B=b+O*$/Y,G=S+P*$/Y}r.bezierCurveTo(h,d,p,y,b,S),h=B,d=G}else r.lineTo(b,S)}u=b,c=S,m+=i}return _}var aB=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),JW=(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 aB},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&is(n[o*2-2],n[o*2-1]);o--);for(;i<o&&is(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=lS(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=Yn.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,S=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++],S=i[h++];var M=u?Ag(l,p,m,b,t,c):Ag(s,y,_,S,t,c);if(M>0)for(var D=0;D<M;D++){var L=c[D];if(L<=1&&L>=0){var A=u?er(s,y,_,S,L):er(l,p,m,b,L);return u?[t,A]:[A,t]}}l=b,s=S;break}}},e})(Ft),tZ=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(aB),nB=(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 tZ},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&&is(n[l*2-2],n[l*2-1]);l--);for(;o<l&&is(n[o*2],n[o*2+1]);o++);}for(;o<l;){var u=lS(t,n,o,l,l,1,a.smooth,s,a.connectNulls);lS(t,i,o+u-1,u,l,-1,a.stackedOnSmooth,s,a.connectNulls),o+=u+1,t.closePath()}},e})(Ft);function iB(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 oB(r,e,t){var a=r.getArea(),n=Oe(a.r0,1),i=Oe(a.r,1),o=new Ir({shape:{cx:Oe(r.cx,1),cy:Oe(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 wv(r,e,t,a,n){if(r){if(r.type==="polar")return oB(r,e,t);if(r.type==="cartesian2d")return iB(r,e,t,a,n)}else return null;return null}function Ss(r,e){return r.type===e}function CR(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function DR(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 MR(r,e){var t=DR(r),a=t[0],n=t[1],i=DR(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 LR(r){return Qt(r)?r:r?.5:0}function eZ(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=Bn(a*2),i=0;i<a;i++){var o=rB(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 rZ(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=nw(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 aZ(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=rZ(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 S=new vf(0,0,0,0,d,!0);return S[n]=m,S[n+"2"]=_,S}}}function nZ(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&iZ(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 iZ(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(bv.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function oZ(r,e){return isNaN(r)||isNaN(e)}function lZ(r){for(var e=r.length/2;e>0&&oZ(r[e*2-2],r[e*2-1]);e--);return e-1}function ER(r,e){return[r[e*2],r[e*2+1]]}function sZ(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 lB(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 F_(r,e,t,a){if(Ss(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),l={lastFrameIndex:0},s=lB(a)?function(p,y){r._endLabelOnDuring(p,y,o,l,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),c=iB(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 oB(e,t,a)}function uZ(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 fZ=(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 Sv;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"),S=!u.isEmpty(),w=u.get("origin"),A=eB(i,l,w),M=S&&eZ(i,l,A),D=t.get("showSymbol"),L=t.get("connectNulls"),E=D&&!h&&nZ(t,l,i),R=this._data;R&&R.eachItemGraphicEl(function(ct,bt){ct.__temp&&(o.remove(ct),R.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 B=aZ(l,i,n)||l.getVisual("style")[l.getVisual("drawType")];if(!(y&&d.type===i.type&&O===this._step))D&&p.updateData(l,{isIgnore:E,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),S?m=this._newPolygon(c,M):m&&(_.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(t,i,hs(B)),_.setClipPath(F_(this,i,!0,t));else{S&&!m?m=this._newPolygon(c,M):m&&!S&&(_.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(t,i,hs(B));var G=_.getClipPath();if(G){var H=F_(this,i,!1,t);De(G,{shape:H.shape},t)}else _.setClipPath(F_(this,i,!0,t));D&&p.updateData(l,{isIgnore:E,clipShape:P,disableAnimation:!0,getSymbolPoint:function(ct){return[c[ct*2],c[ct*2+1]]}}),(!CR(this._stackedOnPoints,M)||!CR(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 F=t.getModel("emphasis"),k=F.get("focus"),j=F.get("blurScope"),Y=F.get("disabled");if(y.useStyle(xt(s.getLineStyle(),{fill:"none",stroke:B,lineJoin:"bevel"})),xr(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,Re(y,k,j,Y);var tt=LR(t.get("smooth")),U=t.get("smoothMonotone");if(y.setShape({smooth:tt,smoothMonotone:U,connectNulls:L}),m){var W=l.getCalculationInfo("stackedOnSeries"),at=0;m.useStyle(xt(u.getAreaStyle(),{fill:B,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),W&&(at=LR(W.get("smooth"))),m.setShape({smooth:tt,stackedOnSmooth:at,smoothMonotone:U,connectNulls:L}),xr(m,t,"areaStyle"),Mt(m).seriesIndex=t.seriesIndex,Re(m,k,j,Y)}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=us(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 bv(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=us(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;Ig(this._polyline,t),a&&Ig(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new JW({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 nB({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,S=void 0,w=void 0;if(n)if(o){var A=n,M=a.pointToCoord(_);i?(b=A.startAngle,S=A.endAngle,w=-M[1]/180*Math.PI):(b=A.r0,S=A.r,w=M[0])}else{var D=n;i?(b=D.x,S=D.x+D.width,w=p.x):(b=D.y+D.height,S=D.y,w=p.y)}var L=S===b?0:(w-b)/(S-b);s&&(L=1-L);var E=_t(h)?h(y):c*L+d,R=m.getSymbolPath(),O=R.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:E}),R.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(lB(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=lZ(s);c>=0&&(br(l,ir(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(h,d,p){return p!=null?tB(o,p):rf(o,h)},enableTextSetter:!0},uZ(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(),S=_.inverse,w=a.shape,A=S?b?w.x:w.y+w.height:b?w.x+w.width:w.y,M=(b?m:0)*(S?-1:1),D=(b?0:-m)*(S?-1:1),L=b?"x":"y",E=sZ(h,A,L),R=E.range,O=R[1]-R[0],P=void 0;if(O>=1){if(O>1&&!p){var B=ER(h,R[0]);u.attr({x:B[0]+M,y:B[1]+D}),o&&(P=d.getRawValue(R[0]))}else{var B=c.getPointOn(A,L);B&&u.attr({x:B[0]+M,y:B[1]+D});var G=d.getRawValue(R[0]),H=d.getRawValue(R[1]);o&&(P=jP(n,y,G,H,E.t))}i.lastFrameIndex=R[0]}else{var F=t===1||i.lastFrameIndex>0?R[0]:0,B=ER(h,F);o&&(P=d.getRawValue(F)),u.attr({x:B[0]+M,y:B[1]+D})}if(o){var k=gf(u);typeof k.setLabelText=="function"&&k.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,l,s){var u=this._polyline,c=this._polygon,h=t.hostModel,d=QW(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)),MR(p,m)>3e3||c&&MR(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 S=[],w=d.status,A=0;A<w.length;A++){var M=w[A].cmd;if(M==="="){var D=t.getItemGraphicEl(w[A].idx1);D&&S.push({el:D,ptIdx:A})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var L=u.shape.__points,E=0;E<S.length;E++){var R=S[E].el,O=S[E].ptIdx*2;R.x=L[O],R.y=L[O+1],R.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 Tv(r,e){return{seriesType:r,plan:bf(),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&&Bn(m*s),b=[],S=[],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,S)}else b[0]=c.get(h,w),b[1]=c.get(d,w),M=n.dataToPoint(b,null,S);o?(_[A++]=M[0],_[A++]=M[1]):y.setItemLayout(w,M.slice())}o&&y.setLayout("points",_)}}}}}}var cZ={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]}},hZ=function(r){return Math.round(r.length/2)};function sB(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=cZ[i]:_t(i)&&(y=i),y&&e.setData(n.downSample(n.mapDimension(u.dim),1/p,y,hZ))}}}}}function vZ(r){r.registerChartView(fZ),r.registerSeriesModel(ZW),r.registerLayout(Tv("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,sB("line"))}var Kh=(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 Zn(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 S=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<_)S=D;else if(S!=null&&L>_){w=(D+S)/2;break}M===1&&(A=L-y[0].tickValue)}w==null&&(S?S&&(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(Kh);var dZ=(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 Zn(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(Kh.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})(Kh),pZ=(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})(),Jg=(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 pZ},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),S=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,S*u+i,s,h-Math.PI*2,h-Math.PI,!d),o!==0&&t.arc(n,i,o,h,c,d)},e})(Ft);function gZ(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Eg(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,S=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",E="top";switch(l){case"startArc":M=c+(p-s)*w(b),D=h+(p-s)*A(b),L="center",E="top";break;case"insideStartArc":M=c+(p+s)*w(b),D=h+(p+s)*A(b),L="center",E="bottom";break;case"startAngle":M=c+y*w(m)+Lp(m,s+S,!1),D=h+y*A(m)+Ep(m,s+S,!1),L="right",E="middle";break;case"insideStartAngle":M=c+y*w(m)+Lp(m,-s+S,!1),D=h+y*A(m)+Ep(m,-s+S,!1),L="left",E="middle";break;case"middle":M=c+y*w(b),D=h+y*A(b),L="center",E="middle";break;case"endArc":M=c+(d+s)*w(b),D=h+(d+s)*A(b),L="center",E="bottom";break;case"insideEndArc":M=c+(d-s)*w(b),D=h+(d-s)*A(b),L="center",E="top";break;case"endAngle":M=c+y*w(_)+Lp(_,s+S,!0),D=h+y*A(_)+Ep(_,s+S,!0),L="left",E="middle";break;case"insideEndAngle":M=c+y*w(_)+Lp(_,-s+S,!0),D=h+y*A(_)+Ep(_,-s+S,!0),L="right",E="middle";break;default:return Eg(a,n,i)}return a=a||{},a.x=M,a.y=D,a.align=L,a.verticalAlign=E,a}}function yZ(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 Lp(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Ep(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Jl(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 xn(i,n)})}}var j_=Math.max,Y_=Math.min;function mZ(r,e){var t=r.getArea&&r.getArea();if(Ss(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 _Z=(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){Yo(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=xZ(t,u);p&&this._enableRealtimeSort(p,l,n);var y=t.get("clip",!0)||p,m=mZ(u,l);o.removeClipPath();var _=t.get("roundCap",!0),b=t.get("showBackground",!0),S=t.getModel("backgroundStyle"),w=S.get("borderRadius")||0,A=[],M=this._backgroundEls,D=i&&i.isInitSort,L=i&&i.type==="changeAxisOrder";function E(P){var B=Rp[u.type](l,P),G=DZ(u,h,B);return G.useStyle(S.getItemStyle()),u.type==="cartesian2d"?G.setShape("r",w):G.setShape("cornerRadius",w),A[P]=G,G}l.diff(s).add(function(P){var B=l.getItemModel(P),G=Rp[u.type](l,P,B);if(b&&E(P),!(!l.hasValue(P)||!PR[u.type](G))){var H=!1;y&&(H=RR[u.type](m,G));var F=IR[u.type](t,l,P,G,h,d,c.model,!1,_);p&&(F.forceLabelAnimation=!0),zR(F,l,P,B,G,t,h,u.type==="polar"),D?F.attr({shape:G}):p?OR(p,d,F,G,P,h,!1,!1):De(F,{shape:G},t,P),l.setItemGraphicEl(P,F),o.add(F),F.ignore=H}}).update(function(P,B){var G=l.getItemModel(P),H=Rp[u.type](l,P,G);if(b){var F=void 0;M.length===0?F=E(B):(F=M[B],F.useStyle(S.getItemStyle()),u.type==="cartesian2d"?F.setShape("r",w):F.setShape("cornerRadius",w),A[P]=F);var k=Rp[u.type](l,P),j=fB(h,k,u);Jt(F,{shape:j},d,P)}var Y=s.getItemGraphicEl(B);if(!l.hasValue(P)||!PR[u.type](H)){o.remove(Y);return}var $=!1;if(y&&($=RR[u.type](m,H),$&&o.remove(Y)),Y?bn(Y):Y=IR[u.type](t,l,P,H,h,d,c.model,!!Y,_),p&&(Y.forceLabelAnimation=!0),L){var tt=Y.getTextContent();if(tt){var U=gf(tt);U.prevValue!=null&&(U.prevValue=U.value)}}else zR(Y,l,P,G,H,t,h,u.type==="polar");D?Y.attr({shape:H}):p?OR(p,d,Y,H,P,h,!0,L):Jt(Y,{shape:H},t,P,null),l.setItemGraphicEl(P,Y),Y.ignore=$,o.add(Y)}).remove(function(P){var B=s.getItemGraphicEl(P);B&&Hh(B,t,P)}).execute();var R=this._backgroundGroup||(this._backgroundGroup=new Ct);R.removeAll();for(var O=0;O<A.length;++O)R.add(A[O]);o.add(R),this._backgroundEls=A,this._data=l},e.prototype._renderLarge=function(t,a,n){this._clear(),BR(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),BR(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&wv(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){Hh(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),RR={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=j_(e.x,r.x),l=Y_(e.x+e.width,n),s=j_(e.y,r.y),u=Y_(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=Y_(e.r,r.r),i=j_(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}},IR={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?Jg:Ir,c=new u({shape:a,z2:1});c.name="item";var h=uB(n);if(c.calculateTextPosition=gZ(h,{isRoundCap:u===Jg}),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 xZ(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 OR(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 NR(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var bZ=["x","y","width","height"],SZ=["cx","cy","r","startAngle","endAngle"],PR={cartesian2d:function(r){return!NR(r,bZ)},polar:function(r){return!NR(r,SZ)}},Rp={cartesian2d:function(r,e,t){var a=r.getItemLayout(e),n=t?TZ(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 wZ(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function uB(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 zR(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=Jl(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=ir(a);br(r,y,{labelFetcher:i,labelDataIndex:t,defaultText:rf(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,yZ(r,_==="outside"?p:_,uB(o),a.get(["label","rotate"]))}M5(m,y,i.getRawValue(t),function(S){return tB(e,S)});var b=a.getModel(["emphasis"]);Re(r,b.get("focus"),b.get("blurScope"),b.get("disabled")),xr(r,a),wZ(n)&&(r.style.fill="none",r.style.stroke="none",N(r.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function TZ(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 AZ=(function(){function r(){}return r})(),kR=(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 AZ},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})(Ft);function BR(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 kR({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 kR({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",VR),h.on("mousemove",VR)),t&&t.push(h)}var VR=Zy(function(r){var e=this,t=CZ(e,r.offsetX,r.offsetY);Mt(e).dataIndex=t>=0?t:null},30,!1);function CZ(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 fB(r,e,t){if(Ss(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 DZ(r,e,t){var a=r.type==="polar"?Ir:Wt;return new a({shape:fB(e,t,r),silent:!0,z2:0})}function MZ(r){r.registerChartView(_Z),r.registerSeriesModel(dZ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Rt(pk,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gk("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,sB("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 GR=Math.PI*2,Ip=Math.PI/180;function cB(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function hB(r,e){var t=cB(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 LZ(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=cB(a,t),l=hB(a,t),s=l.cx,u=l.cy,c=l.r,h=l.r0,d=-a.get("startAngle")*Ip,p=a.get("endAngle"),y=a.get("padAngle")*Ip;p=p==="auto"?d-GR:-p*Ip;var m=a.get("minAngle")*Ip,_=m+y,b=0;n.each(i,function(j){!isNaN(j)&&b++});var S=n.getSum(i),w=Math.PI/(S||b)*2,A=a.get("clockwise"),M=a.get("roseType"),D=a.get("stillShowZeroSum"),L=n.getDataExtent(i);L[0]=0;var E=A?1:-1,R=[d,p],O=E*y/2;pw(R,!A),d=R[0],p=R[1];var P=vB(a);P.startAngle=d,P.endAngle=p,P.clockwise=A;var B=Math.abs(p-d),G=B,H=0,F=d;if(n.setLayout({viewRect:o,r:c}),n.each(i,function(j,Y){var $;if(isNaN(j)){n.setItemLayout(Y,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:A,cx:s,cy:u,r0:h,r:M?NaN:c});return}M!=="area"?$=S===0&&D?w:j*w:$=B/b,$<_?($=_,G-=_):H+=j;var tt=F+E*$,U=0,W=0;y>$?(U=F+E*$/2,W=U):(U=F+O,W=tt-O),n.setItemLayout(Y,{angle:$,startAngle:U,endAngle:W,clockwise:A,cx:s,cy:u,r0:h,r:M?oe(j,L,[h,c]):c}),F=tt}),G<GR&&b)if(G<=.001){var k=B/b;n.each(i,function(j,Y){if(!isNaN(j)){var $=n.getItemLayout(Y);$.angle=k;var tt=0,U=0;k<y?(tt=d+E*(Y+1/2)*k,U=tt):(tt=d+E*Y*k+O,U=d+E*(Y+1)*k-O),$.startAngle=tt,$.endAngle=U}})}else w=G/H,F=d,n.each(i,function(j,Y){if(!isNaN(j)){var $=n.getItemLayout(Y),tt=$.angle===_?_:j*w,U=0,W=0;tt<y?(U=F+E*tt/2,W=U):(U=F+O,W=F+E*tt-O),$.startAngle=U,$.endAngle=W,F+=E*tt}})})}var vB=$t();function Av(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 EZ=Math.PI/180;function HR(r,e,t,a,n,i,o,l,s,u){if(r.length<2)return;function c(m){for(var _=m.rB,b=_*_,S=0;S<m.list.length;S++){var w=m.list[S],A=Math.abs(w.label.y-t),M=a+w.len,D=M*M,L=Math.sqrt(Math.abs((1-A*A/b)*D)),E=e+(L+w.len2)*n,R=E-w.label.x,O=w.targetTextWidth-R*n;dB(w,O,!0),w.label.x=E}}function h(m){for(var _={list:[],maxY:0},b={list:[],maxY:0},S=0;S<m.length;S++)if(m[S].labelAlignTo==="none"){var w=m[S],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,E=Math.abs(D)<L?Math.sqrt(M*M/(1-D*D/L/L)):L;A.rB=E,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}kk(r,s,s+o)&&h(r)}function RZ(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;X_(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(!X_(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=_,dB(y,_)}}HR(u,e,t,a,1,n,i,o,l,h),HR(s,e,t,a,-1,n,i,o,l,c);for(var d=0;d<r.length;d++){var y=r[d];if(!X_(y)&&y.linePoints){var p=y.label,m=y.linePoints,b=y.labelAlignTo==="edge",S=p.style.padding,w=S?S[1]+S[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 dB(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 X_(r){return r.position==="center"}function IZ(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*EZ,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),E=L.shape,R=L.getTextContent(),O=L.getTextGuideLine(),P=e.getItemModel(D),B=P.getModel("label"),G=B.get("position")||P.get(["emphasis","label","position"]),H=B.get("distanceToLabelLine"),F=B.get("alignTo"),k=ht(B.get("edgeDistance"),u),j=B.get("bleedMargin"),Y=P.getModel("labelLine"),$=Y.get("length");$=ht($,u);var tt=Y.get("length2");if(tt=ht(tt,u),Math.abs(E.endAngle-E.startAngle)<o){N(R.states,p),R.ignore=!0,O&&(N(O.states,p),O.ignore=!0);return}if(y(R)){var U=(E.startAngle+E.endAngle)/2,W=Math.cos(U),at=Math.sin(U),lt,ct,bt,Pt;a=E.cx,n=E.cy;var wt=G==="inside"||G==="inner";if(G==="center")lt=E.cx,ct=E.cy,Pt="center";else{var pt=(wt?(E.r+E.r0)/2*W:E.r*W)+a,Ot=(wt?(E.r+E.r0)/2*at:E.r*at)+n;if(lt=pt+W*3,ct=Ot+at*3,!wt){var yt=pt+W*($+s-E.r),Dt=Ot+at*($+s-E.r),ce=yt+(W<0?-1:1)*tt,Zt=Dt;F==="edge"?lt=W<0?c+k:c+u-k:lt=ce+(W<0?-H:H),ct=Zt,bt=[[pt,Ot],[yt,Dt],[ce,Zt]]}Pt=wt?"center":F==="edge"?W>0?"right":"left":W>0?"left":"right"}var ue=Math.PI,ye=0,Ge=B.get("rotate");if(Qt(Ge))ye=Ge*(ue/180);else if(G==="center")ye=0;else if(Ge==="radial"||Ge===!0){var Sr=W<0?-U+ue:-U;ye=Sr}else if(Ge==="tangential"&&G!=="outside"&&G!=="outer"){var sr=Math.atan2(W,at);sr<0&&(sr=ue*2+sr);var en=at>0;en&&(sr=ue+sr),ye=sr-ue}if(i=!!ye,R.x=lt,R.y=ct,R.rotation=ye,R.setStyle({verticalAlign:"middle"}),wt){R.setStyle({align:Pt});var Mf=R.states.select;Mf&&(Mf.x+=R.x,Mf.y+=R.y)}else{var wa=R.getBoundingRect().clone();wa.applyTransform(R.getComputedTransform());var Ev=(R.style.margin||0)+2.1;wa.y-=Ev/2,wa.height+=Ev,t.push({label:R,labelLine:O,position:G,len:$,len2:tt,minTurnAngle:Y.get("minTurnAngle"),maxSurfaceAngle:Y.get("maxSurfaceAngle"),surfaceNormal:new zt(W,at),linePoints:bt,textAlign:Pt,labelDistance:H,labelAlignTo:F,edgeDistance:k,bleedMargin:j,rect:wa,unconstrainedWidth:wa.width,labelStyleWidth:R.style.width})}L.setTextConfig({inside:wt})}}),!i&&r.get("avoidLabelOverlap")&&RZ(t,a,n,s,u,d,c,h);for(var m=0;m<t.length;m++){var _=t[m],b=_.label,S=_.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(S){var M=_.linePoints;w||!M?(N(S.states,p),S.ignore=!0):(Nk(M,_.minTurnAngle),eW(M,_.surfaceNormal,_.maxSurfaceAngle),S.setShape({points:M}),b.__hostTarget.textGuideLineConfig={anchor:new zt(M[0][0],M[0][1])})}}}var OZ=(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(Jl(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 bn(o),Jt(o,{shape:h},l,a);o.useStyle(t.getItemVisual(a,"style")),xr(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)},Jl(u.getModel("itemStyle"),c)),rt(o.ensureState("select"),{x:m,y:_,shape:Jl(s.getModel(["select","itemStyle"]),c)}),rt(o.ensureState("blur"),{shape:Jl(s.getModel(["blur","itemStyle"]),c)});var S=o.getTextGuideLine(),w=o.getTextContent();S&&rt(S.ensureState("select"),{x:m,y:_}),rt(w.ensureState("select"),{x:m,y:_}),Re(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;br(i,ir(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 Pr,this.setTextGuideLine(p)),fT(this,cT(o),{stroke:u,opacity:dn(l.get(["lineStyle","opacity"]),c,1)})}},e})(Ir),NZ=(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=vB(t),p=new Ir({shape:rt(hB(t,n),d)});p.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,s.add(p)}o.diff(l).add(function(y){var m=new OZ(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);Hh(m,t,y)}).execute(),IZ(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 Df(r,e,t){e=it(e)&&{coordDimensions:e}||rt({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=Tf(a,e).dimensions,i=new Er(n,r);return i.initData(a,t),i}var Cv=(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})(),PZ=$t(),zZ=(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 Cv(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 Df(this,{coordDimensions:["value"],encodeDefaulter:Rt(Bw,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=PZ(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(s){o.push(s)}),i=n.seats=PP(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){ss(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 kZ(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 BZ(r){r.registerChartView(NZ),r.registerSeriesModel(zZ),Rz("pie",r.registerAction),r.registerLayout(Rt(LZ,"pie")),r.registerProcessor(Av("pie")),r.registerProcessor(kZ("pie"))}var VZ=(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 Zn(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),pB=4,GZ=(function(){function r(){}return r})(),HZ=(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 GZ},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]<pB,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})(Ft),UZ=(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 HZ({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=Ve(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<pB;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})(),FZ=(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=Tv("").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 UZ:new Sv,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),jZ=(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),sS=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ye).models[0]},e.type="cartesian2dAxis",e})(Ht);Pe(sS,Cf);var gB={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)"]}}},YZ=It({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},gB),mT=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}}},gB),XZ=It({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},mT),WZ=xt({logBase:10},mT);const yB={category:YZ,value:mT,time:XZ,log:WZ};var ZZ={value:1,category:1,time:1,log:1};function af(r,e,t,a){N(ZZ,function(n,i){var o=It(It({},yB[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=Fh(this),p=d?mf(c):{},y=h.getTheme();It(c,y.get(i+"Axis")),It(c,this.getDefaultOption()),c.type=UR(c),d&&Go(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=tS.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",UR)}function UR(r){return r.type||(r.data?"category":"value")}var qZ=(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})(),uS=["x","y"];function FR(r){return r.type==="interval"||r.type==="time"}var $Z=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=uS,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!FR(t)||!FR(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=ys([],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})(qZ),KZ=(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})(tn);function fS(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),rr(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 jR(r){return r.get("coordinateSystem")==="cartesian2d"}function YR(r){var e={xAxisModel:null,yAxisModel:null};return N(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ye).models[0];e[a]=i}),e}var W_=Math.log;function mB(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=bk(r,e),u=s.extent,c=s.fixMin,h=s.fixMax;if(r.type==="log"){var d=W_(r.base);u=[W_(u[0])/d,W_(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=I_(y),_=u[0]+y*o;else if(h)for(m=u[1]-y*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)y=I_(y),m=u[1]-y*o;else{var b=r.getTicks().length-1;b>o&&(y=I_(y));var S=y*o;_=Math.ceil(u[1]/y)*y,m=Oe(_-S),m<0&&u[0]>=0?(m=0,_=Oe(S)):_>0&&u[1]<=0&&(_=0,m=-Oe(S))}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 QZ=(function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=uS,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=jt(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;eS(m)&&y.get("alignTicks")&&y.get("interval")==null?c.push(p):(vs(m,y),eS(m)&&(l=p))}c.length&&(l||(l=c.pop(),vs(l.scale,l.model)),N(c,function(_){mB(_.scale,_.model,l.scale)}))}}n(a.x),n(a.y);var i={};N(a.x,function(o){XR(a,"y",o,i)}),N(a.y,function(o){XR(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=mX(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]),JZ(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]}St(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",Ye).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",Ye).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 $Z(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(Z_(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 KZ(c,xv(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(jR(n)){var i=YR(n),o=i.xAxisModel,l=i.yAxisModel;if(!Z_(o,t)||!Z_(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(jR(n)){var i=YR(n),o=i.xAxisModel,l=i.yAxisModel,s=o.getCoordSysModel(),u=s.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,l.componentIndex)}}),a},r.dimensions=uS,r})();function Z_(r,e){return r.getCoordSysModel()===e}function XR(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)WR(n[s])&&(i=n[s]);else for(var u in n)if(n.hasOwnProperty(u)&&WR(n[u])&&!a[c(n[u])]){i=n[u];break}i&&(a[c(i)]=!0);function c(h){return h.dim+"_"+h.index}}function WR(r){return r&&r.type!=="category"&&r.type!=="time"&&yX(r)}function JZ(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,xt(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!!ZR[e]},r.prototype.add=function(e){ZR[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var n=sw(t-e),i,o;return Ku(n)?(o=a>0?"top":"bottom",i="center"):Ku(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})(),ZR={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});Ju(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=bs(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,S){if(d[S]!=="none"&&d[S]!=null){var w=Ve(d[S],-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=rq(t,a,e,r),i=nq(t,a,e,r);if(eq(e,i,n),aq(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Pk(ot(i,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));Bk(o)}},axisName:function(r,e,t,a){var n=rr(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,$R(i)?r.labelOffset+o*s:0],d,p=e.get("nameRotate");p!=null&&(p=p*Do/180);var y;$R(i)?d=Ur.innerTextLayout(r.rotation,p??r.rotation,o):(d=tq(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,S=rr(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:S,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(ms({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 tq(r,e,t,a){var n=sw(t-r),i,o,l=a[0]>a[1],s=e==="start"&&!l||e!=="start"&&l;return Ku(n-Do/2)?(o=s?"bottom":"top",i="center"):Ku(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 eq(r,e,t){if(!Sk(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?(Pa(i),Pa(u)):qR(i,o)&&(a?(Pa(o),Pa(c)):(Pa(i),Pa(u))),n===!1?(Pa(l),Pa(h)):qR(s,l)&&(n?(Pa(s),Pa(d)):(Pa(l),Pa(h)))}}function Pa(r){r&&(r.ignore=!0)}function qR(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var n=uv([]);return jo(n,n,-r.rotation),t.applyTransform(Hn([],n,r.getLocalTransform())),a.applyTransform(Hn([],n,e.getLocalTransform())),t.intersect(a)}}function $R(r){return r==="middle"||r==="center"}function _B(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});Ju(c.shape,c.style.lineWidth),c.anid=n+"_"+r[s].tickValue,i.push(c)}return i}function rq(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=_B(u,e.transform,s,xt(l.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)r.add(c[h]);return c}}function aq(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=xt(l.getLineStyle(),xt(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var h=_B(o[c],e.transform,s,u,"minorticks_"+c),d=0;d<h.length;d++)r.add(h[d])}}function nq(r,e,t,a){var n=t.axis,i=rr(a.axisLabelShow,t.get(["axisLabel","show"]));if(!(!i||n.scale.isBlank())){var o=t.getModel("axisLabel"),l=o.get("margin"),s=n.getViewLabels(),u=(rr(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,S=m.formattedLabel,w=m.rawLabel,A=o;if(h&&h[b]){var M=h[b];St(M)&&M.textStyle&&(A=new ee(M.textStyle,o,t.ecModel))}var D=A.getTextColor()||t.get(["axisLine","lineStyle","color"]),L=n.dataToCoord(b),E=A.getShallow("align",!0)||c.textAlign,R=Et(A.getShallow("alignMinLabel",!0),E),O=Et(A.getShallow("alignMaxLabel",!0),E),P=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||c.textVerticalAlign,B=Et(A.getShallow("verticalAlignMinLabel",!0),P),G=Et(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:S,align:_===0?R:_===s.length-1?O:E,verticalAlign:_===0?B:_===s.length-1?G:P,fill:_t(D)?D(n.type==="category"?w:n.type==="value"?b+"":b,_):D})});if(H.anid="label_"+b,ms({el:H,componentModel:t,itemName:S,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:w,tickIndex:_}}),y){var F=Ur.makeAxisEventDataBase(t);F.targetType="axisLabel",F.value=w,F.tickIndex=_,n.type==="category"&&(F.dataIndex=b),Mt(H).eventData=F}e.add(H),H.updateTransform(),d.push(H),r.add(H),H.decomposeTransform()}),d}}function iq(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return oq(t,r,e),t.seriesInvolved&&sq(t,r),t}function oq(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=Qh(l.model),u=r.coordSysAxesInfo[s]={};r.coordSysMap[s]=l;var c=l.model,h=c.getModel("tooltip",a);if(N(l.getAxes(),Rt(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,Rt(m,p?"cross":!0,d)),p&&N(y.otherAxes,Rt(m,"cross",!1))}function m(_,b,S){var w=S.model.getModel("axisPointer",n),A=w.get("show");if(!(!A||A==="auto"&&!_&&!cS(w))){b==null&&(b=w.get("triggerTooltip")),w=_?lq(S,h,n,e,_,b):w;var M=w.get("snap"),D=w.get("triggerEmphasis"),L=Qh(S.model),E=b||M||S.type==="category",R=r.axesInfo[L]={key:L,axis:S,coordSys:l,axisPointerModel:w,triggerTooltip:b,triggerEmphasis:D,involveSeries:E,snap:M,useHandle:cS(w),seriesModels:[],linkGroup:null};u[L]=R,r.seriesInvolved=r.seriesInvolved||E;var O=uq(i,S);if(O!=null){var P=o[O]||(o[O]={axesInfo:{}});P.axesInfo[L]=R,P.mapper=i[O].mapper,R.linkGroup=P}}}})}function lq(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&&xt(u,h.textStyle)}}return r.model.getModel("axisPointer",new ee(s,t,a))}function sq(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[Qh(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 uq(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(q_(i[a+"AxisId"],t.id)||q_(i[a+"AxisIndex"],t.componentIndex)||q_(i[a+"AxisName"],t.name))return n}}function q_(r,e){return r==="all"||it(r)&&Bt(r,e)>=0||r===e}function fq(r){var e=_T(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=cS(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 _T(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Qh(r)]}function cq(r){var e=_T(r);return e&&e.axisPointerModel}function cS(r){return!!r.get(["handle","show"])}function Qh(r){return r.type+"||"+r.id}var KR={},ws=(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&&fq(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=cq(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){KR[t]=a},e.getAxisPointerClass=function(t){return t&&KR[t]},e.type="axis",e})(we),hS=$t();function xB(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=hS(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 S=n.toGlobalCoord(u[y].coord),w=void 0,A=void 0,M=void 0,D=void 0;n.isHorizontal()?(w=_,A=s.y,M=S-w,D=s.height,_=w+M):(w=s.x,A=_,M=s.width,D=S-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:xt({fill:l[p]},b),autoBatch:!0,silent:!0})),p=(p+1)%c}hS(r).splitAreaColors=d}}}function bB(r){hS(r).splitAreaColors=null}var hq=["axisLine","axisTickLabel","axisName"],vq=["splitArea","splitLine","minorSplitLine"],SB=(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=fS(l,t),u=new Ur(t,rt({handleAutoShown:function(h){for(var d=l.coordinateSystem.getCartesians(),p=0;p<d.length;p++)if(eS(d[p].getOtherAxis(t.axis).scale))return!0;return!1}},s));N(hq,u.add,u),this._axisGroup.add(u.getGroup()),N(vq,function(h){t.get([h,"show"])&&dq[h](this,this._axisGroup,t,l)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||yv(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){bB(this)},e.type="cartesianAxis",e})(ws),dq={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 S=n.toGlobalCoord(p[b].coord);if(!(b===0&&!s||b===p.length-1&&!u)){var w=p[b].tickValue;h?(y[0]=S,y[1]=c.y,m[0]=S,m[1]=c.y+c.height):(y[0]=c.x,y[1]=S,m[0]=c.x+c.width,m[1]=S);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:xt({stroke:l[A]},_),silent:!0});Ju(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});Ju(_.shape,d.lineWidth),e.add(_)}},splitArea:function(r,e,t,a){xB(r,e,t,a)}},wB=(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})(SB),pq=(function(r){Z(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=wB.type,t}return e.type="yAxis",e})(SB),gq=(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:xt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(we),QR={offset:0};function TB(r){r.registerComponentView(gq),r.registerComponentModel(jZ),r.registerCoordinateSystem("cartesian2d",QZ),af(r,"x",sS,QR),af(r,"y",sS,QR),r.registerComponentView(wB),r.registerComponentView(pq),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function yq(r){Gt(TB),r.registerSeriesModel(VZ),r.registerChartView(FZ),r.registerLayout(Tv("scatter"))}function mq(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]=JR(c)?c:tI(n)})}),t.each(function(o){var l=K3(a[o],function(s){return JR(s)})||tI(n);a[o].push(l.slice()),t.setItemLayout(o,a[o])})}})}function JR(r){return!isNaN(r[0])&&!isNaN(r[1])}function tI(r){return[r.cx,r.cy]}function _q(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 xq=(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=wf(d.getItemVisual(p,"symbolSize")),_=Ve(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 S=0;S<p.length-1;S++){var w=u(m,_);w&&(w.__dimIdx=S,d[S]?(w.setPosition(d[S]),_s[b?"initProps":"updateProps"](w,{x:p[S][0],y:p[S][1]},t,_)):w.setPosition(p[S]),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 Or,m=new Pr,_={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,S=new Ct;b.add(m),b.add(y),b.add(S),c(m.shape.points,p,S,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),S={shape:{points:l.getItemLayout(d)}};S.shape.points&&(c(m.shape.points,S.shape.points,b,l,d,!1),bn(_),bn(m),Jt(m,S,t),Jt(_,S,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),S=l.getItemVisual(p,"style"),w=S.fill;o.add(d),m.useStyle(xt(y.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:w})),xr(m,y,"lineStyle"),xr(_,y,"areaStyle");var A=y.getModel("areaStyle"),M=A.isEmpty()&&A.parentModel.isEmpty();_.ignore=M,N(["emphasis","select","blur"],function(E){var R=y.getModel([E,"areaStyle"]),O=R.isEmpty()&&R.parentModel.isEmpty();_.ensureState(E).ignore=O&&M}),_.useStyle(xt(A.getAreaStyle(),{fill:w,opacity:.7,decal:S.decal}));var D=y.getModel("emphasis"),L=D.getModel("itemStyle").getItemStyle();b.eachChild(function(E){if(E instanceof lr){var R=E.style;E.useStyle(rt({image:R.image,x:R.x,y:R.y,width:R.width,height:R.height},S))}else E.useStyle(S),E.setColor(w),E.style.strokeNoScale=!0;var O=E.ensureState("emphasis");O.style=Tt(L);var P=l.getStore().get(l.getDimensionIndex(E.__dimIdx),p);(P==null||isNaN(P))&&(P=""),br(E,ir(y),{labelFetcher:l.hostModel,labelDataIndex:p,labelDimIndex:E.__dimIdx,defaultText:P,inheritColor:w,defaultOpacity:S.opacity})}),Re(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),bq=(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 Cv(dt(this.getData,this),dt(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return Df(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=_z(this,t);return or("section",{header:u,sortBlocks:!0,blocks:ot(l,function(h){var d=i.get(i.mapDimension(h.dim),t);return or("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),Uc=yB.value;function Op(r,e){return xt({show:e},r)}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.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=xt({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 S=new ee(_,null,this.ecModel);return Pe(S,Cf.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},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"}},Uc.axisLine),axisLabel:Op(Uc.axisLabel,!1),axisTick:Op(Uc.axisTick,!1),splitLine:Op(Uc.splitLine,!0),splitArea:Op(Uc.splitArea,!0),indicator:[]},e})(Ht),wq=["axisLine","axisTickLabel","axisName"],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=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(wq,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 S(F,k,j){var Y=j%k.length;return F[Y]=F[Y]||[],Y}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=S(_,y,D);_[L].push(new Xn({shape:{cx:A,cy:M,r:w[D].coord}}))}if(h&&D<w.length-1){var L=S(b,m,D);b[L].push(new cf({shape:{cx:A,cy:M,r0:w[D].coord,r:w[D+1].coord}}))}}else for(var E,R=ot(n,function(F,k){var j=F.getTicksCoords();return E=E==null?j.length-1:Math.min(j.length-1,E),ot(j,function(Y){return a.coordToPoint(Y.coord,k)})}),O=[],D=0;D<=E;D++){for(var P=[],B=0;B<n.length;B++)P.push(R[B][D]);if(P[0]&&P.push(P[0].slice()),c){var L=S(_,y,D);_[L].push(new Pr({shape:{points:P}}))}if(h&&O){var L=S(b,m,D-1);b[L].push(new Or({shape:{points:P.concat(O)}}))}O=P.slice().reverse()}var G=s.getLineStyle(),H=u.getAreaStyle();N(b,function(F,k){this.group.add(ga(F,{style:xt({stroke:"none",fill:m[k%m.length]},H),silent:!0}))},this),N(_,function(F,k){this.group.add(ga(F,{style:xt({fill:"none",stroke:y[k%y.length]},G),silent:!0}))},this)},e.type="radar",e})(we),Aq=(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})(tn),Cq=(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 Aq(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){mB(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 Dq(r){r.registerCoordinateSystem("radar",Cq),r.registerComponentModel(Sq),r.registerComponentView(Tq),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 Mq(r){Gt(Dq),r.registerChartView(xq),r.registerSeriesModel(bq),r.registerLayout(mq),r.registerProcessor(Av("radar")),r.registerPreprocessor(_q)}var eI="\0_ec_interaction_mutex";function Lq(r,e,t){var a=xT(r);a[e]=t}function Eq(r,e,t){var a=xT(r),n=a[e];n===t&&(a[e]=null)}function rI(r,e){return!!xT(r)[e]}function xT(r){return r[eI]||(r[eI]={})}Sn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ne);var Dv=(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=xt(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(!IM(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||!cg("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||rI(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&&Ei(t.event),AB(this,"pan","moveOnMouseMove",t,{dx:l,dy:s,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){IM(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=cg("zoomOnMouseWheel",t,this._opt),n=cg("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;$_(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);$_(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:d,originX:l,originY:s,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!rI(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;$_(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e})($a);function $_(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Ei(a.event),AB(r,e,t,a,n))}function AB(r,e,t,a,n){n.isAvailableBehavior=dt(cg,null,t,a),r.trigger(e,n)}function cg(r,e,t){var a=t[r];return!r||a&&(!vt(a)||e.event[a+"Key"])}function bT(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function ST(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 Rq={axisPointer:1,tooltip:1,brush:1};function rm(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!Rq.hasOwnProperty(a.mainType)&&n&&n.model!==t}function CB(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 K_,ty={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"},aI=jt(ty),ey={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nI=jt(ey),Iq=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=CB(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),da(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Pq(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(o){var d=am(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=MB(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=K_[l];if(c&&gt(K_,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=iI[l];if(p&&gt(iI,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 Qu({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});za(t,a),da(e,a,this._defsUsePending,!1,!1),Oq(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(){K_={g:function(e,t){var a=new Ct;return za(t,a),da(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new Wt;return za(t,a),da(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 Xn;return za(t,a),da(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 za(t,a),da(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 dv;return za(t,a),da(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=sI(a));var i=new Or({shape:{points:n||[]},silent:!0});return za(t,i),da(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=sI(a));var i=new Pr({shape:{points:n||[]},silent:!0});return za(t,i),da(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new lr;return za(t,a),da(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 za(t,l),da(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 za(t,l),da(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=g5(a);return za(t,n),da(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),iI={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 vf(e,t,a,n);return oI(r,i),lI(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 Sw(e,t,a);return oI(r,n),lI(r,n),n}};function oI(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function lI(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={};DB(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function za(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),xt(e.__inheritedStyle,r.__inheritedStyle))}function sI(r){for(var e=am(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 da(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},l={};r.nodeType===1&&(Bq(r,e),DB(r,o,l),a||Vq(r,o,l)),i.style=i.style||{},o.fill!=null&&(i.style.fill=uI(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=uI(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(am(o.lineDash),function(s){return parseFloat(s)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Oq(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 Nq=/^url\(\s*#(.*?)\)/;function uI(r,e,t,a){var n=t&&t.match(Nq);if(n){var i=Xa(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function Pq(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var zq=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function am(r){return r.match(zq)||[]}var kq=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Q_=Math.PI/180;function Bq(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(kq,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=am(o);switch(n=n||aa(),l){case"translate":_n(n,n,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":Ay(n,n,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":jo(n,n,-parseFloat(s[0])*Q_,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(s[0])*Q_);Hn(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(s[0])*Q_);Hn(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 fI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function DB(r,e,t){var a=r.getAttribute("style");if(a){fI.lastIndex=0;for(var n;(n=fI.exec(a))!=null;){var i=n[1],o=gt(ty,i)?ty[i]:null;o&&(e[o]=n[2]);var l=gt(ey,i)?ey[i]:null;l&&(t[l]=n[2])}}}function Vq(r,e,t){for(var a=0;a<aI.length;a++){var n=aI[a],i=r.getAttribute(n);i!=null&&(e[ty[n]]=i)}for(var a=0;a<nI.length;a++){var n=nI[a],i=r.getAttribute(n);i!=null&&(t[ey[n]]=i)}}function MB(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 Gq(r,e){var t=new Iq;return t.parse(r,e)}var Hq=mt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Uq=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=mt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=CB(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=jq(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&&Gq(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Rr(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=MB(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(_){Hq.get(_.svgNodeTagLower)!=null&&(m.push(_),Fq(_.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 Fq(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function jq(r){var e=[],t=mt();return N(r,function(a){if(a.namedFrom==null){var n=new EX(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var vS=[126,25],cI="南海诸岛",kl=[[[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 Pl=0;Pl<kl.length;Pl++)for(var Su=0;Su<kl[Pl].length;Su++)kl[Pl][Su][0]/=10.5,kl[Pl][Su][1]/=-10.5/.75,kl[Pl][Su][0]+=vS[0],kl[Pl][Su][1]+=vS[1];function Yq(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===cI)return;e.push(new Tk(cI,ot(kl,function(a){return{type:"polygon",exterior:a}}),vS))}}var Xq={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Wq(r,e){if(r==="china"){var t=Xq[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 Zq=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function qq(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Zq[0]})}var $q="name",Kq=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=mt(),this._mapName=e,this._specialAreas=a,this._geoJSON=Jq(t)}return r.prototype.load=function(e,t){t=t||$q;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:Qq(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?aS(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
88
+ `+i.message)}return Yq(t,n),N(n,function(i){var o=i.name;Wq(t,i),qq(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 Qq(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 Jq(r){return vt(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Fc=mt();const zi={registerMap:function(r,e,t){if(e.svg){var a=new Uq(r,e.svg);Fc.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new Kq(r,n,t);Fc.set(r,a)}},getGeoResource:function(r){return Fc.get(r)},getMapForUser:function(r){var e=Fc.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=Fc.get(r);if(a)return a.load(e,t)}};var wT=["rect","circle","line","ellipse","polygon","polyline","path"],t$=mt(wT),e$=mt(wT.concat(["g"])),r$=mt(wT.concat(["g"])),LB=$t();function Np(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function hI(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var EB=(function(){function r(e){var t=new Ct;this.uid=yf("ec_map_draw"),this._controller=new Dv(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,S=_.regionModel;if(!m){m=t.set(y,new Ct),n.add(m),b=l?l.indexOfName(y):null,S=e.isGeo?o.getRegionModel(y):l?l.getItemModel(b):null;var w=S.get("silent",!0);w!=null&&(m.silent=w),a.set(y,{dataIdx:b,regionModel:S})}var A=[],M=[];N(p.geometries,function(E){if(E.type==="polygon"){var R=[E.exterior].concat(E.interiors||[]);u&&(R=mI(R,u)),N(R,function(P){A.push(new Or(d(P)))})}else{var O=E.points;u&&(O=mI(O,u,!0)),N(O,function(P){M.push(new Pr(d(P)))})}});var D=c(p.getCenter(),s&&s.project);function L(E,R){if(E.length){var O=new zy({culling:!0,segmentIgnoreThreshold:1,shape:{paths:E}});m.add(O),vI(e,O,b,S),dI(e,O,y,S,o,b,D),R&&(hI(O),N(O.states,hI))}}L(A),L(M,!0)}),t.each(function(p,y){var m=a.get(y),_=m.dataIdx,b=m.regionModel;pI(e,p,y,b,o,_),gI(e,p,y,b,o),yI(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);t$.get(c)!=null&&h instanceof qa&&vI(e,h,d,p),h instanceof qa&&(h.culling=!0);var y=p.get("silent",!0);if(y!=null&&(h.silent=y),h.z2EmphasisLift=0,!o.namedFrom&&(r$.get(c)!=null&&dI(e,h,l,p,s,d,null),pI(e,h,l,p,s,d),gI(e,h,l,p,s),e$.get(c)!=null)){var m=yI(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){cs(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,bT(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,ST(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])&&!rm(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=LB(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 vI(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=Np(n),u=Np(i),c=Np(l),h=Np(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=ef(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,cs(e)}function dI(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;br(e,ir(a),{labelFetcher:d,labelDataIndex:h,defaultText:t},p);var y=e.getTextContent();if(y&&(LB(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 pI(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 gI(r,e,t,a,n){r.data||ms({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function yI(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Re(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&VU(e,n,t),o}function mI(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 a$=(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 EB(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 Xn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+h*9,cy:c[1],r:3},silent:!0,z2:8+(h?0:ff+1)});if(!h){var p=t.mainSeries.getData(),y=i.getName(s),m=p.indexOfName(y),_=i.getItemModel(s),b=_.getModel("label"),S=p.getItemGraphicEl(m);br(d,ir(_),{labelFetcher:{getFormattedLabel:function(w,A){return t.getFormattedLabel(m,A)}},defaultText:y}),d.disableLabelAnimation=!0,b.get("position")||d.setTextConfig({position:"bottom"}),S.onHoverStateChange=function(w){Ig(d,w)}}o.add(d)}}})},e.type="map",e})(fe),n$=(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=Df(this,{coordDimensions:["value"],encodeDefaulter:Rt(Bw,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 or("section",{header:u.join(", "),noHeader:!u.length,blocks:[or("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=Ve(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 i$(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 o$(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=i$(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 l$(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 _I=hr,Mv=(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(),Ty(this.transform||(this.transform=[]),a.transform||aa()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],ys(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?_I(n,t,i):Dr(n,t)},e.prototype.pointToData=function(t){var a=this.invTransform;return a?_I([],t,a):[t[0],t[1]]},e.prototype.convertToPixel=function(t,a,n){var i=xI(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=xI(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 xI(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var s$={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},RB=["lng","lat"],dS=(function(r){Z(e,r);function e(t,a,n){var i=r.call(this,t)||this;i.dimensions=RB,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$[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:Et(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=bI(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=bI(a);return i===this?i.pointToData(n):null},e})(Mv);Pe(dS,Mv);function bI(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Ye).models[0]||{}).coordinateSystem:null}function SI(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,E,R){for(var O=E-D,P=R-L,B=0;B<=100;B++){var G=B/100,H=i.project([D+O*G,L+P*G]);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,S,w;d&&p&&(S=[ht(d[0],y),ht(d[1],m)],w=ht(p,Math.min(y,m)),!isNaN(S[0])&&!isNaN(S[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=S[1]-A.height/2,A.x=S[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 u$(r,e){N(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var f$=(function(){function r(){this.dimensions=RB}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 dS(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=SI,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 dS(l,l,rt({nameMap:by(s)},n(o[0])));u.zoomLimit=rr.apply(null,ot(o,function(c){return c.get("scaleLimit")})),a.push(u),u.resize=SI,u.resize(o[0],t),N(o,function(c){c.coordinateSystem=u,u$(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})(),IB=new f$,c$=(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),ss(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=IB.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=Za(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 wI(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function TT(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(wI(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(wI(r,l),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var h$=(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 EB(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;$l(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 v$(r,e,t){zi.registerMap(r,e,t)}function OB(r){r.registerCoordinateSystem("geo",IB),r.registerComponentModel(c$),r.registerComponentView(h$),r.registerImpl("registerMap",v$),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=TT(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 d$(r){Gt(OB),r.registerChartView(a$),r.registerSeriesModel(n$),r.registerLayout(l$),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,o$),Rz("map",r.registerAction)}function p$(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 g$(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);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=x$(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function y$(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function TI(r){return arguments.length?r:w$}function uh(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function m$(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function _$(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 x$(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=J_(l),i=tx(i),l&&i;){n=J_(n),o=tx(o),n.hierNode.ancestor=r;var d=l.hierNode.prelim+h-i.hierNode.prelim-u+a(l,i);d>0&&(S$(b$(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&&!J_(n)&&(n.hierNode.thread=l,n.hierNode.modifier+=h-s),i&&!tx(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=r)}return t}function J_(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function tx(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function b$(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function S$(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 w$(r,e){return r.parentNode===e.parentNode?1:2}var T$=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),A$=(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 T$},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})(Ft),C$=(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 Dv(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){AI(i,c)&&CI(i,c,null,l,t)}).update(function(c,h){var d=u.getItemGraphicEl(h);if(!AI(i,c)){d&&MI(u,h,d,l,t);return}CI(i,c,d,l,t)}).remove(function(c){var h=u.getItemGraphicEl(c);h&&MI(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=[];Oy(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 Mv;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)&&!rm(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){bT(l,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){ST(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 AI(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function CI(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 bv(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],S=b.getLayout(),w=b.children.length,A=void 0,M=void 0;if(m.x===S.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-S.y,D.x-S.x),A<0&&(A=Math.PI*2+A),M=D.x<S.x,M&&(A=A-Math.PI)}else A=Math.atan2(m.y-S.y,m.x-S.x),A<0&&(A=Math.PI*2+A),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(M=m.x<S.x,M&&(A=A-Math.PI)):(M=m.x>S.x,M||(A=A-Math.PI));var L=M?"left":"right",E=l.getModel("label"),R=E.get("rotate"),O=R*(Math.PI/180),P=_.getTextContent();P&&(_.setTextConfig({position:E.get("position")||L,rotation:R==null?-A:O,origin:"center"}),P.setStyle("verticalAlign","middle"))}var B=l.get(["emphasis","focus"]),G=B==="relative"?$u(o.getAncestorsIndices(),o.getDescendantIndices()):B==="ancestor"?o.getAncestorsIndices():B==="descendant"?o.getDescendantIndices():null;G&&(Mt(t).focus=G),D$(n,o,c,t,y,p,m,a),t.__edge&&(t.onHoverStateChange=function(H){if(H!=="blur"){var F=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);F&&F.hoverState===vv||Ig(t.__edge,H)}})}function D$(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 hf({shape:pS(c,h,d,n,n)})),Jt(m,{shape:pS(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=[],S=0;S<_.length;S++){var w=_[S].getLayout();b.push([w.x,w.y])}m||(m=a.__edge=new A$({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(xt({strokeNoScale:!0,fill:null},y)),xr(m,s,"lineStyle"),cs(m),l.add(m))}function DI(r,e,t,a,n){var i=e.tree.root,o=NB(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:pS(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 NB(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 MI(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,l=NB(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){DI(u,r,a,n,s)}),DI(i,r,a,n,s)}function pS(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=uh(u,h),y=uh(u,h+(d-h)*t),m=uh(c,d+(h-d)*t),_=uh(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 Wa=$t();function PB(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,zB(e,t,r),N(t,function(a){N(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,Rt(M$,r))})}),e.wrapMethod("cloneShallow",Rt(E$,r)),N(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,Rt(L$,r))}),Rr(t[e.dataType]===e)}function M$(r,e){if(O$(this)){var t=rt({},Wa(this).datas);t[this.dataType]=e,zB(e,t,r)}else AT(e,this.dataType,Wa(this).mainData,r);return e}function L$(r,e){return r.struct&&r.struct.update(),e}function E$(r,e){return N(Wa(e).datas,function(t,a){t!==e&&AT(t.cloneShallow(),a,e,r)}),e}function R$(r){var e=Wa(this).mainData;return r==null||e==null?e:Wa(e).datas[r]}function I$(){var r=Wa(this).mainData;return r==null?[{data:r}]:ot(jt(Wa(r).datas),function(e){return{type:e,data:Wa(r).datas[e]}})}function O$(r){return Wa(r).mainData===r}function zB(r,e,t){Wa(r).datas={},N(e,function(a,n){AT(a,n,r,t)})}function AT(r,e,t,a){Wa(t).datas[e]=r,Wa(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=R$,r.getLinkedDataAll=I$}var N$=(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})(),CT=(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 N$(Ke(c.name,""),n);h?P$(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=Tf(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Er(s,t);return u.initData(i),a&&a(u),PB({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r})();function P$(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function Jh(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 kB(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function DT(r,e){var t=kB(r);return Bt(t,e)>=0}function nm(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 z$=(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=CT.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 or("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=nm(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 k$(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 jc(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 B$(r,e){r.eachSeriesByType("tree",function(t){V$(t,e)})}function V$(r,e){var t=m$(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=TI(function(w,A){return(w.parentNode===A.parentNode?1:2)/w.depth})):(n=t.width,i=t.height,o=TI());var l=r.getData().tree.root,s=l.children[0];if(s){p$(l),k$(s,g$,o),l.hierNode.modifier=-s.hierNode.prelim,jc(s,y$);var u=s,c=s,h=s;jc(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),jc(s,function(w){_=(w.getLayout().x+p)*y,b=(w.depth-1)*m;var A=uh(_,b);w.setLayout({x:A.x,y:A.y,rawX:_,rawY:b},!0)});else{var S=r.getOrient();S==="RL"||S==="LR"?(m=i/(c.getLayout().x+d+p),y=n/(h.depth-1||1),jc(s,function(w){b=(w.getLayout().x+p)*m,_=S==="LR"?(w.depth-1)*y:n-(w.depth-1)*y,w.setLayout({x:_,y:b},!0)})):(S==="TB"||S==="BT")&&(y=n/(c.getLayout().x+d+p),m=i/(h.depth-1||1),jc(s,function(w){_=(w.getLayout().x+p)*y,b=S==="TB"?(w.depth-1)*m:i-(w.depth-1)*m,w.setLayout({x:_,y:b},!0)}))}}}function G$(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 H$(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=TT(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}function U$(r){r.registerChartView(C$),r.registerSeriesModel(z$),r.registerLayout(B$),r.registerVisual(G$),H$(r)}var LI=["treemapZoomToNode","treemapRender","treemapMove"];function F$(r){for(var e=0;e<LI.length;e++)r.registerAction({type:LI[e],update:"updateView"},Ne);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=Jh(t,l,i);if(s){var u=i.getViewRoot();u&&(t.direction=DT(u,s.node)?"rollUp":"drillDown"),i.resetViewRoot(s.node)}}})}function BB(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 j$=(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};VB(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},l=new ee({itemStyle:o},this,a);i=t.levels=Y$(i,a);var s=ot(i||[],function(h){return new ee(h,l,a)},this),u=CT.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 or("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=nm(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(){BB(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 VB(r){var e=0;N(r.children,function(a){VB(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 Y$(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 X$=8,EI=8,ex=5,W$=(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),jy(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+X$*2,t.emptyItemWidth);t.totalWidth+=l+EI,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=V9(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,S=_.width,w=_.text;d>h.width&&(d-=S-u,S=u,w=null);var A=new Or({shape:{points:Z$(s,0,S,c,m===p.length-1,m===0)},style:xt(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Xt({style:_e(i,{text:w})}),textConfig:{position:"inside"},z2:ff*1e4,onclick:Rt(l,b)});A.disableLabelAnimation=!0,A.getTextContent().ensureState("emphasis").style=_e(o,{text:w}),A.ensureState("emphasis").style=y,Re(A,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(A),q$(A,e,b),s+=S+EI}},r.prototype.remove=function(){this.group.removeAll()},r})();function Z$(r,e,t,a,n,i){var o=[[n?r:r-ex,e],[r+t,e],[r+t,e+a],[n?r:r-ex,e+a]];return!i&&o.splice(2,0,[r+t+ex,e+a/2]),!n&&o.push([r,e+a/2]),o}function q$(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&&nm(t,e)}}var $$=(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 K$(){return new $$}var gS=Ct,RI=Wt,II=3,OI="label",NI="upperLabel",Q$=ff*10,J$=ff*2,tK=ff*3,Bl=fs([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),PI=function(r){var e=Bl(r);return e.stroke=e.fill=e.lineWidth=null,e},ry=$t(),eK=(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=Yc(),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=Jh(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 gS,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=Yc(),s=Yc(),u=this._storage,c=[];function h(S,w,A,M){return rK(a,s,u,n,l,c,S,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(S,w,A,M,D){M?(w=S,N(S,function(R,O){!R.isRemoved()&&E(O,O)})):new Oi(w,S,L,L).add(E).update(E).remove(Rt(E,null)).execute();function L(R){return R.getId()}function E(R,O){var P=R!=null?S[R]:null,B=O!=null?w[O]:null,G=h(P,B,A,D);G&&m(P&&P.viewChildren||[],B&&B.viewChildren||[],G,M,D+1)}}function _(S){var w=Yc();return S&&N(S,function(A,M){var D=w[M];N(A,function(L){L&&(D.push(L),ry(L).willDelete=!0)})}),w}function b(){N(d,function(S){N(S,function(w){w.parent&&w.parent.remove(w)})}),N(c,function(S){S.invisible=!0,S.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=K$();N(a.willDeleteEls,function(h,d){N(h,function(p,y){if(!p.invisible){var m=p.parent,_,b=ry(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 S=0,w=0;b.willDelete||(S=b.nodeWidth/2,w=b.nodeHeight/2),_=d==="nodeGroup"?{x:S,y:w,style:{opacity:0}}:{shape:{x:S,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 Dv(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)>II||Math.abs(t.dy)>II)){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 _=aa();_n(_,_,[-a,-n]),Ay(_,_,[y,y]),_n(_,_,[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&&Bg(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 W$(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(DT(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Yc(),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 Yc(){return{nodeGroup:[],background:[],content:[]}}function rK(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(),S=l&&l.getRawIndex(),w=o.viewChildren,A=c.upperHeight,M=w&&w.length,D=d.getModel("itemStyle"),L=d.getModel(["emphasis","itemStyle"]),E=d.getModel(["blur","itemStyle"]),R=d.getModel(["select","itemStyle"]),O=D.get("borderRadius")||0,P=ct("nodeGroup",gS);if(!P)return;if(s.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),ry(P).nodeWidth=p,ry(P).nodeHeight=y,c.isAboveViewRoot)return P;var B=ct("background",RI,u,J$);B&&tt(P,B,M&&c.upperLabelHeight);var G=d.getModel("emphasis"),H=G.get("focus"),F=G.get("blurScope"),k=G.get("disabled"),j=H==="ancestor"?o.getAncestorsIndices():H==="descendant"?o.getDescendantIndices():H;if(M)Gh(P)&&Zl(P,!1),B&&(Zl(B,!k),h.setItemGraphicEl(o.dataIndex,B),Nb(B,j,F));else{var Y=ct("content",RI,u,tK);Y&&U(P,Y),B.disableMorphing=!0,B&&Gh(B)&&Zl(B,!1),Zl(P,!k),h.setItemGraphicEl(o.dataIndex,P);var $=d.getShallow("cursor");$&&Y.attr("cursor",$),Nb(P,j,F)}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=PI(D);Zt.fill=ce;var ue=Bl(L);ue.fill=L.get("borderColor");var ye=Bl(E);ye.fill=E.get("borderColor");var Ge=Bl(R);if(Ge.fill=R.get("borderColor"),Ot){var Sr=p-2*m;at(pt,ce,Dt.opacity,{x:m,y:0,width:Sr,height:A})}else pt.removeTextContent();pt.setStyle(Zt),pt.ensureState("emphasis").style=ue,pt.ensureState("blur").style=ye,pt.ensureState("select").style=Ge,cs(pt)}wt.add(pt)}function U(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=PI(D);ue.fill=Zt,ue.decal=ce.decal;var ye=Bl(L),Ge=Bl(E),Sr=Bl(R);at(pt,Zt,ce.opacity,null),pt.setStyle(ue),pt.ensureState("emphasis").style=ye,pt.ensureState("blur").style=Ge,pt.ensureState("select").style=Sr,cs(pt)}wt.add(pt)}function W(wt){!wt.invisible&&i.push(wt)}function at(wt,pt,Ot,yt){var Dt=d.getModel(yt?NI:OI),ce=Ke(d.get("name"),null),Zt=Dt.getShallow("show");br(wt,ir(d,yt?NI:OI),{defaultText:Zt?ce:null,inheritColor:pt,defaultOpacity:Ot,labelFetcher:r,labelDataIndex:o.dataIndex});var ue=wt.getTextContent();if(ue){var ye=ue.style,Ge=wy(ye.padding||0);yt&&(wt.setTextConfig({layoutRect:yt}),ue.disableLabelLayout=!0),ue.beforeUpdate=function(){var sr=Math.max((yt?yt.width:wt.shape.width)-Ge[1]-Ge[3],0),en=Math.max((yt?yt.height:wt.shape.height)-Ge[0]-Ge[2],0);(ye.width!==sr||ye.height!==en)&&ue.setStyle({width:sr,height:en})},ye.truncateMinChar=2,ye.lineOverflow="truncate",lt(ye,yt,c);var Sr=ue.getState("emphasis");lt(Sr?Sr.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=S!=null&&t[wt][S],ce=n[wt];return Dt?(t[wt][S]=null,bt(ce,Dt)):_||(Dt=new pt,Dt instanceof qa&&(Dt.z2=aK(Ot,yt)),Pt(ce,Dt)),e[wt][b]=Dt}function bt(wt,pt){var Ot=wt[b]={};pt instanceof gS?(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 aK(r,e){return r*Q$+e}var tv=N,nK=St,ay=-1,nr=(function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=Tt(e);this.type=a,this.mappingMethod=t,this._normalizeData=lK[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(rx(n),iK(n)):t==="category"?n.categories?oK(n):rx(n,!0):(Rr(t!=="linear"||n.dataExtent),rx(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 jt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){St(e)?N(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=it(e)?[]:St(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&&tv(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(nK(e)){var t=[];tv(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(zp(h[1],e,c[1]))return o}else if(c[1]===1/0){if(zp(h[0],c[0],e))return o}else if(zp(h[0],c[0],e)&&zp(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:Xc("color"),getColorMapper:function(){var e=this.option;return dt(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),fh.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=mh(t,e.parsedVisual,n),i?n:gn(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return gn(mh(e,this.option.parsedVisual),"rgba")},category:fh,piecewise:function(e,t){var a=mS.call(this,t);return a==null&&(a=gn(mh(e,this.option.parsedVisual),"rgba")),a},fixed:Vl}},colorHue:Pp(function(e,t){return Fu(e,t)}),colorSaturation:Pp(function(e,t){return Fu(e,null,t)}),colorLightness:Pp(function(e,t){return Fu(e,null,null,t)}),colorAlpha:Pp(function(e,t){return Ph(e,t)}),decal:{applyVisual:Xc("decal"),_normalizedToVisual:{linear:null,category:fh,piecewise:null,fixed:null}},opacity:{applyVisual:Xc("opacity"),_normalizedToVisual:yS([0,1])},liftZ:{applyVisual:Xc("liftZ"),_normalizedToVisual:{linear:Vl,category:Vl,piecewise:Vl,fixed:Vl}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:zI,category:fh,piecewise:function(e,t){var a=mS.call(this,t);return a==null&&(a=zI.call(this,e)),a},fixed:Vl}},symbolSize:{applyVisual:Xc("symbolSize"),_normalizedToVisual:yS([0,1])}},r})();function iK(r){var e=r.pieceList;r.hasSpecialVisual=!1,N(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function oK(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(tv(e,function(o,l){t[o]=l}),!it(a)){var n=[];St(a)?tv(a,function(o,l){var s=t[l];n[s??ay]=o}):n[ay]=a,a=GB(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function rx(r,e){var t=r.visual,a=[];St(t)?tv(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]),GB(r,a)}function Pp(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:yS([0,1])}}function zI(r){var e=this.option.visual;return e[Math.round(oe(r,[0,1],[0,e.length-1],!0))]||{}}function Xc(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function fh(r){var e=this.option.visual;return e[this.option.loop&&r!==ay?r%e.length:r]}function Vl(){return this.option.visual[0]}function yS(r){return{linear:function(e){return oe(e,r,this.option.visual,!0)},category:fh,piecewise:function(e,t){var a=mS.call(this,t);return a==null&&(a=oe(e,r,this.option.visual,!0)),a},fixed:Vl}}function mS(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=nr.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function GB(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=ot(e,function(t){var a=Hr(t);return a||[0,0,0,1]})),e}var lK={linear:function(r){return oe(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=nr.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??ay},fixed:Ne};function zp(r,e,t){return r?e<=t:e<t}var sK="itemStyle",HB=$t();const uK={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||UB(t,{},r.getViewRoot().getAncestors(),r)}};function UB(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(sK),s=fK(l,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=l.get("borderColor"),h=l.get("borderColorSaturation"),d;h!=null&&(d=kI(s),c=cK(h,d)),u.stroke=c;var p=r.viewChildren;if(!p||!p.length)d=kI(s),u.fill=d;else{var y=hK(r,n,i,l,s,p);N(p,function(m,_){if(m.depth>=t.length||m===t[m.depth]){var b=vK(n,s,m,_,y,a);UB(m,b,t,a)}})}}}function fK(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 kI(r){var e=ax(r,"color");if(e){var t=ax(r,"colorAlpha"),a=ax(r,"colorSaturation");return a&&(e=Fu(e,null,null,a)),t&&(e=Ph(e,t)),e}}function cK(r,e){return e!=null?Fu(e,null,null,r):null}function ax(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function hK(r,e,t,a,n,i){if(!(!i||!i.length)){var o=nx(e,"color")||n.color!=null&&n.color!=="none"&&(nx(e,"colorAlpha")||nx(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 nr(h);return HB(d).drColorMappingBy=c,d}}}function nx(r,e){var t=r.get(e);return it(t)&&t.length?{name:e,range:t}:null}function vK(r,e,t,a,n,i){var o=rt({},e);if(n){var l=n.type,s=l==="color"&&HB(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 ev=Math.max,ny=Math.min,BI=rr,MT=N,FB=["itemStyle","borderWidth"],dK=["itemStyle","gapWidth"],pK=["upperLabel","show"],gK=["upperLabel","height"];const yK={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(BI(l.width,s[0]),n),c=ht(BI(l.height,s[1]),i),h=a&&a.type,d=["treemapZoomToNode","treemapRootToNode"],p=Jh(a,d,r),y=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,m=r.getViewRoot(),_=kB(m);if(h!=="treemapMove"){var b=h==="treemapZoomToNode"?wK(r,p,m,u,c):y?[y.width,y.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var w={squareRatio:o.squareRatio,sort:S,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),jB(m,w,!1,0),A=m.getLayout(),MT(_,function(D,L){var E=(_[L+1]||m).getValue();D.setLayout(rt({dataExtent:[E,E],borderWidth:0,upperHeight:0},A))})}var M=r.getData().tree.root;M.setLayout(TK(l,y,p),!0),r.setLayoutInfo(l),YB(M,new kt(-l.x,-l.y,n,i),_,m,0)}};function jB(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(FB),u=l.get(dK)/2,c=XB(l),h=Math.max(s,c),d=s-u,p=h-u;r.setLayout({borderWidth:s,upperHeight:h,upperLabelHeight:c},!0),n=ev(n-2*d,0),i=ev(i-d-p,0);var y=n*i,m=mK(r,l,y,e,t,a);if(m.length){var _={x:d,y:p,width:n,height:i},b=ny(n,i),S=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=SK(w,b,e.squareRatio);L<=S?(A++,S=L):(w.area-=w.pop().getLayout().area,VI(w,b,_,u,!1),b=ny(_.width,_.height),w.length=w.area=0,S=1/0)}if(w.length&&VI(w,b,_,u,!0),!t){var E=l.get("childrenVisibleMin");E!=null&&y<E&&(t=!0)}for(var A=0,M=m.length;A<M;A++)jB(m[A],e,t,a+1)}}}function mK(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()}),xK(o,l);var u=bK(e,o,l);if(u.sum===0)return r.viewChildren=[];if(u.sum=_K(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 _K(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 xK(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 bK(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],MT(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 SK(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?ev(u*a/s,s/(u*n)):1/0}function VI(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]]=ev(c-2*a,0),b=t[l[i]]+t[s[i]]-u,S=h===d-1||b<m?b:m,w=y[s[i]]=ev(S-2*a,0);y[l[o]]=t[l[o]]+ny(a,_/2),y[l[i]]=u+ny(a,w/2),u+=S,p.setLayout(y,!0)}t[l[o]]+=c,t[s[o]]-=c}function wK(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(FB),b=Math.max(_,XB(m));u+=4*_*_+(3*_+b)*Math.pow(u,.5),u>Ab&&(u=Ab),i=l}u<s&&(u=s);var S=Math.pow(u/s,.5);return[a*S,n*S]}function TK(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 YB(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);MT(r.viewChildren||[],function(u){YB(u,s,t,a,n+1)})}}function XB(r){return r.get(pK)?r.get(gK):0}function AK(r){r.registerSeriesModel(j$),r.registerChartView(eK),r.registerVisual(uK),r.registerLayout(yK),F$(r)}function CK(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 DK(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 kp(r){return r instanceof Array||(r=[r,r]),r}function MK(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=kp(e.get("edgeSymbol")),i=kp(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=kp(l.getShallow("symbol",!0)),c=kp(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 _S="-->",im=function(r){return r.get("autoCurveness")||null},WB=function(r,e){var t=im(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},rv=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(_S)},ZB=function(r){var e=r.split(_S);return[e[0],e[2],e[1]].join(_S)},LK=function(r,e){var t=rv(r.node1,r.node2,e);return e.__edgeMap[t]},EK=function(r,e){var t=xS(rv(r.node1,r.node2,e),e),a=xS(rv(r.node2,r.node1,e),e);return t+a},xS=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function RK(r){im(r)&&(r.__curvenessList=[],r.__edgeMap={},WB(r))}function IK(r,e,t,a){if(im(t)){var n=rv(r,e,t),i=t.__edgeMap,o=i[ZB(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 LT(r,e,t,a){var n=im(e),i=it(n);if(!n)return null;var o=LK(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=EK(r,e);WB(e,u),r.lineStyle=r.lineStyle||{};var c=rv(r.node1,r.node2,e),h=e.__curvenessList,d=i||u%2?0:1;if(o.isForward)return h[d+l];var p=ZB(c),y=xS(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 qB(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")])}),ET(t,r)}}function ET(r,e){r.eachEdge(function(t,a){var n=dn(t.getModel().get(["lineStyle","curveness"]),-LT(t,e,a,!0),0),i=Gn(t.node1.getLayout()),o=Gn(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 OK(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])}ET(i.graph,t)}else(!a||a==="none")&&qB(t)})}function ch(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 hh(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var GI=Math.PI,ix=[];function RT(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];gs(m,m),ph(m,m,c),t.setLayout([s+m[0],u+m[1]],!0);var _=r.get(["circular","rotateLabel"]);$B(t,_,s,u)}NK[e](r,l,o,c,s,u,h),l.eachEdge(function(b,S){var w=dn(b.getModel().get(["lineStyle","curveness"]),LT(b,r,S),0),A=Gn(b.node1.getLayout()),M=Gn(b.node2.getLayout()),D,L=(A[0]+M[0])/2,E=(A[1]+M[1])/2;+w&&(w*=3,D=[s*w+L*(1-w),u*w+E*(1-w)]),b.setLayout([A,M,D])})}}}var NK={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;ix.length=o;var s=ch(r);e.eachNode(function(h){var d=hh(h);isNaN(d)&&(d=2),d<0&&(d=0),d*=s;var p=Math.asin(d/2/a);isNaN(p)&&(p=GI/2),ix[h.dataIndex]=p,l+=p*2});var u=(2*GI-l)/o/2,c=0;e.eachNode(function(h){var d=u+ix[h.dataIndex];c+=d,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([a*Math.cos(c)+n,a*Math.sin(c)+i]),c+=d})}};function $B(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 PK(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&RT(e,"symbolSize")})}var wu=bg;function zK(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=Fo(o*(Math.random()-.5)+s[0],l*(Math.random()-.5)+s[1])),h.pp=Gn(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=[],S=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=Ih(b)-A.d,E=D.w/(M.w+D.w);isNaN(E)&&(E=0),gs(b,b),!M.fixed&&wu(M.p,M.p,b,E*L*p),!D.fixed&&wu(D.p,D.p,b,-(1-E)*L*p)}}for(var w=0;w<S;w++){var R=a[w];R.fixed||(wo(b,s,R.p),wu(R.p,R.p,b,u*p))}for(var w=0;w<S;w++)for(var M=a[w],O=w+1;O<S;O++){var D=a[O];wo(b,D.p,M.p);var L=Ih(b);L===0&&(aP(b,Math.random()-.5,Math.random()-.5),L=1);var P=(M.rep+D.rep)/L/L;!M.fixed&&wu(M.pp,M.pp,b,P),!D.fixed&&wu(D.pp,D.pp,b,-P)}for(var B=[],w=0;w<S;w++){var R=a[w];R.fixed||(wo(B,R.p,R.pp),wu(R.p,R.p,B,p),Dr(R.pp,R.p))}p=p*.992;var G=p<.01;m&&m(a,n,G),_&&_(G)}}}function kK(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"?qB(e):s==="circular"&&RT(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(),E=dn(M.getModel().get(["lineStyle","curveness"]),-LT(M,e,A,!0),0);return{n1:m[M.node1.dataIndex],n2:m[M.node2.dataIndex],d:D,curveness:E,ignoreForceLayout:L.get("ignoreForceLayout")}}),b=t.getBoundingRect(),S=zK(m,_,{rect:b,gravity:l.get("gravity"),friction:l.get("friction")});S.beforeStep(function(w,A){for(var M=0,D=w.length;M<D;M++)w[M].fixed&&Dr(w[M].p,n.getNodeByIndex(M).getLayout())}),S.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 E=A[D],R=n.getEdgeByIndex(D),O=E.n1.p,P=E.n2.p,B=R.getLayout();B=B?B.slice():[],B[0]=B[0]||[],B[1]=B[1]||[],Dr(B[0],O),Dr(B[1],P),+E.curveness&&(B[2]=[(O[0]+P[0])/2-(O[1]-P[1])*E.curveness,(O[1]+P[1])/2-(P[0]-O[0])*E.curveness]),R.setLayout(B)}}),e.forceLayout=S,e.preservedPoints=a,S.step()}else e.forceLayout=null})}function BK(r,e,t){var a=rt(r.getBoxLayoutParams(),{aspect:t});return Xe(a,{width:e.getWidth(),height:e.getHeight()})}function VK(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=[];Oy(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=BK(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 Mv;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 HI=Qe.prototype,ox=hf.prototype,KB=(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})(KB);function lx(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var GK=(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 KB},e.prototype.buildPath=function(t,a){lx(a)?HI.buildPath.call(this,t,a):ox.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return lx(this.shape)?HI.pointAt.call(this,t):ox.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=lx(a)?[a.x2-a.x1,a.y2-a.y1]:ox.tangentAt.call(this,t);return gs(n,n)},e})(Ft),sx=["fromSymbol","toSymbol"];function UI(r){return"_"+r+"Type"}function FI(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=wf(n),u=bs(o||0,s);return a+s+u+(i||"")+(l||"")}function jI(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=wf(n),u=bs(o||0,s),c=Ve(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 HK(r){var e=new GK({name:"line",subPixelOptimize:!0});return bS(e.shape,r),e}function bS(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 IT=(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=HK(o);l.shape.percent=0,De(l,{shape:{percent:1}},i,a),this.add(l),N(sx,function(s){var u=jI(s,t,a);this.add(u),this[UI(s)]=FI(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:{}};bS(s.shape,l),Jt(o,s,i,a),N(sx,function(u){var c=FI(u,t,a),h=UI(u);if(this[h]!==c){this.remove(this.childOfName(u));var d=jI(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=ir(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(sx,function(D){var L=this.childOfName(D);if(L){L.setColor(b),L.style.opacity=_.opacity;for(var E=0;E<jr.length;E++){var R=jr[E],O=o.getState(R);if(O){var P=O.style||{},B=L.ensureState(R),G=B.style||(B.style={});P.stroke!=null&&(G[L.__isEmptyBrush?"stroke":"fill"]=P.stroke),P.opacity!=null&&(G.opacity=P.opacity)}}L.markRedraw()}},this);var S=i.getRawValue(a);br(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(D,L){return i.getFormattedLabel(D,L,t.dataType)}},inheritColor:b||"#000",defaultOpacity:_.opacity,defaultText:(S==null?t.getName(a):isFinite(S)?Oe(S):S)+""});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}),Re(this,d,p,h)},e.prototype.highlight=function(){Ri(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");bS(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);gs(d,d);function p(O,P){var B=O.__specifiedRotation;if(B==null){var G=s.tangentAt(P);O.attr("rotation",(P===1?-1:1)*Math.PI/2-Math.atan2(G[1],G[0]))}else O.attr("rotation",B)}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,S=_[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 E=-Math.atan2(A[1],A[0]);h[0]<c[0]&&(E=Math.PI+E),i.rotation=E}var R=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":R=-S,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":R=S,m="top";break;default:R=0,m="middle"}switch(i.__position){case"end":i.x=d[0]*b+h[0],i.y=d[1]*S+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]*S+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]+R,y=A[0]<0?"right":"left",i.originX=-b*L,i.originY=-R;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=D[0],i.y=D[1]+R,y="center",i.originY=-R;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-b*L+h[0],i.y=h[1]+R,y=A[0]>=0?"right":"left",i.originX=b*L,i.originY=-R;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||y})}},e})(Ct),OT=(function(){function r(e){this.group=new Ct,this._LineCtor=e||IT}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=YI(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=YI(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(l){!l.isGroup&&!UK(l)&&(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(ux(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){Yo(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(ux(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(!ux(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 UK(r){return r.animators&&r.animators.length>0}function YI(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:ir(e)}}function XI(r){return isNaN(r[0])||isNaN(r[1])}function ux(r){return r&&!XI(r[0])&&!XI(r[1])}var fx=[],cx=[],hx=[],Tu=cr,vx=Eo,WI=Math.abs;function ZI(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){fx[0]=Tu(a[0],n[0],i[0],c),fx[1]=Tu(a[1],n[1],i[1],c);var h=WI(vx(fx,e)-s);h<o&&(o=h,l=c)}for(var d=0;d<32;d++){var p=l+u;cx[0]=Tu(a[0],n[0],i[0],l),cx[1]=Tu(a[1],n[1],i[1],l),hx[0]=Tu(a[0],n[0],i[0],p),hx[1]=Tu(a[1],n[1],i[1],p);var h=vx(cx,e)-s;if(WI(h)<.01)break;var y=vx(hx,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 dx(r,e){var t=[],a=Oh,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=[Gn(u[0]),Gn(u[1])],u[2]&&u.__original.push(Gn(u[2])));var d=u.__original;if(u[2]!=null){if(Dr(n[0],d[0]),Dr(n[1],d[2]),Dr(n[2],d[1]),c&&c!=="none"){var p=hh(l.node1),y=ZI(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=hh(l.node2),y=ZI(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]}Dr(u[0],n[0]),Dr(u[1],n[2]),Dr(u[2],n[1])}else{if(Dr(i[0],d[0]),Dr(i[1],d[1]),wo(o,i[1],i[0]),gs(o,o),c&&c!=="none"){var p=hh(l.node1);bg(i[0],i[0],o,p*e)}if(h&&h!=="none"){var p=hh(l.node2);bg(i[1],i[1],o,-p*e)}Dr(u[0],i[0]),Dr(u[1],i[1])}})}function qI(r){return r.type==="view"}var FK=(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 Sv,i=new OT,o=this.group;this._controller=new Dv(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)}dx(t.getGraph(),ch(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(R){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),RT(t,"symbolSize",w,[R.offsetX,R.offsetY]),i.updateLayout(t);break;case"none":default:h.setItemLayout(A,[M.x,M.y]),ET(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){p&&p.setUnfixed(A)}),M.setDraggable(L,!!D.get("cursor"));var E=D.get(["emphasis","focus"]);E==="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"),S=h.getLayout("cy");h.graph.eachNode(function(w){$B(w,_,b,S)}),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)&&!rm(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){bT(l,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){ST(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(),dx(t.getGraph(),ch(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=ch(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){dx(t.getGraph(),ch(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 Au(r){return"_EC_"+r}var jK=(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[Au(e)]){var n=new Gl(e,t);return n.hostGraph=this,this.nodes.push(n),a[Au(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[Au(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 Gl||(e=n[Au(e)]),t instanceof Gl||(t=n[Au(t)]),!(!e||!t)){var o=e.id+"-"+t.id,l=new QB(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 Gl&&(e=e.id),t instanceof Gl&&(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 Gl||(t=this._nodesMap[Au(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})(),Gl=(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})(),QB=(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 JB(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)}}}Pe(Gl,JB("hostGraph","data"));Pe(QB,JB("hostGraph","edgeData"));function t4(r,e,t,a,n){for(var i=new jK(a),o=0;o<r.length;o++)i.addNode(rr(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(rr(Ke(c.id,null),h+" > "+d)),u++)}var p=t.get("coordinateSystem"),y;if(p==="cartesian2d"||p==="polar")y=Zn(r,t);else{var m=xf.get(p),_=m?m.dimensions||[]:[];Bt(_,"value")<0&&_.concat(["value"]);var b=Tf(r,{coordDimensions:_,encodeDefine:t.getEncode()}).dimensions;y=new Er(b,t),y.initData(r)}var S=new Er(["value"],t);return S.initData(s,l),n&&n(y,S),PB({mainData:y,struct:i,structAttr:"graph",datas:{node:y,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var YK=(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 Cv(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),ss(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){RK(this);var l=t4(i,n,this,!0,s);return N(l.edges,function(u){IK(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),or("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var h=bz({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),XK={type:"graphRoam",event:"graphRoam",update:"none"};function WK(r){r.registerChartView(FK),r.registerSeriesModel(YK),r.registerProcessor(CK),r.registerVisual(DK),r.registerVisual(MK),r.registerLayout(OK),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,PK),r.registerLayout(kK),r.registerCoordinateSystem("graphView",{dimensions:Mv.dimensions,create:VK}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ne),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ne),r.registerAction(XK,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=n.coordinateSystem,o=TT(i,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}var ZK=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),qK=(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 ZK},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})(Ft);function $K(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 Bp(r,e){var t=r==null?"":r+"";return e&&(vt(e)?t=e.replace("{value}",t):_t(e)&&(t=e(r))),t}var KK=(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=$K(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?Jg:Ir,y=h.get("show"),m=h.getModel("lineStyle"),_=m.get("width"),b=[u,c];pw(b,!s),u=b[0],c=b[1];for(var S=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+S*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(R){return l.add(R)});var E=function(R){if(R<=0)return i[0][1];var O;for(O=0;O<i.length;O++)if(i[O][0]>=R&&(O===0?0:i[O-1][0])<R)return i[O][1];return i[O-1][1]};this._renderTicks(t,a,n,E,o,u,c,s,_),this._renderTitleAndDetail(t,a,n,E,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,E,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"),S=t.getModel("axisTick"),w=t.getModel("axisLabel"),A=t.get("splitNumber"),M=S.get("splitNumber"),D=ht(b.get("length"),y),L=ht(S.get("length"),y),E=l,R=(s-l)/A,O=R/M,P=b.getModel("lineStyle").getLineStyle(),B=S.getModel("lineStyle").getLineStyle(),G=b.get("distance"),H,F,k=0;k<=A;k++){if(H=Math.cos(E),F=Math.sin(E),b.get("show")){var j=G?G+c:c,Y=new Qe({shape:{x1:H*(y-j)+d,y1:F*(y-j)+p,x2:H*(y-D-j)+d,y2:F*(y-D-j)+p},style:P,silent:!0});P.stroke==="auto"&&Y.setStyle({stroke:i(k/A)}),h.add(Y)}if(w.get("show")){var j=w.get("distance")+G,$=Bp(Oe(k/A*(_-m)+m),w.get("formatter")),tt=i(k/A),U=H*(y-D-j)+d,W=F*(y-D-j)+p,at=w.get("rotate"),lt=0;at==="radial"?(lt=-E+2*Math.PI,lt>Math.PI/2&&(lt+=Math.PI)):at==="tangential"?lt=-E-Math.PI/2:Qt(at)&&(lt=at*Math.PI/180),lt===0?h.add(new Xt({style:_e(w,{text:$,x:U,y:W,verticalAlign:F<-.8?"top":F>.8?"bottom":"middle",align:H<-.4?"left":H>.4?"right":"center"},{inheritColor:tt}),silent:!0})):h.add(new Xt({style:_e(w,{text:$,x:U,y:W,verticalAlign:"middle",align:"center"},{inheritColor:tt}),silent:!0,originX:U,originY:W,rotation:lt}))}if(S.get("show")&&k!==A){var j=S.get("distance");j=j?j+c:c;for(var ct=0;ct<=M;ct++){H=Math.cos(E),F=Math.sin(E);var bt=new Qe({shape:{x1:H*(y-j)+d,y1:F*(y-j)+p,x2:H*(y-L-j)+d,y2:F*(y-L-j)+p},silent:!0,style:B});B.stroke==="auto"&&bt.setStyle({stroke:i((k+ct/M)/A)}),h.add(bt),E+=O}E-=O}else E+=R}},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"),S=t.getData(),w=S.mapDimension("value"),A=+t.get("min"),M=+t.get("max"),D=[A,M],L=[l,s];function E(O,P){var B=S.getItemModel(O),G=B.getModel("pointer"),H=ht(G.get("width"),o.r),F=ht(G.get("length"),o.r),k=t.get(["pointer","icon"]),j=G.get("offsetCenter"),Y=ht(j[0],o.r),$=ht(j[1],o.r),tt=G.get("keepAspect"),U;return k?U=Ve(k,Y-H/2,$-F,H,F,null,tt):U=new qK({shape:{angle:-Math.PI/2,width:H,r:F,x:Y,y:$}}),U.rotation=-(P+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function R(O,P){var B=_.get("roundCap"),G=B?Jg:Ir,H=_.get("overlap"),F=H?_.get("width"):c/S.count(),k=H?o.r-F:o.r-(O+1)*F,j=H?o.r:o.r-O*F,Y=new G({shape:{startAngle:l,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:j}});return H&&(Y.z2=oe(S.get(w,O),[A,M],[100,0],!0)),Y}(b||m)&&(S.diff(d).add(function(O){var P=S.get(w,O);if(m){var B=E(O,l);De(B,{rotation:-((isNaN(+P)?L[0]:oe(P,D,L,!0))+Math.PI/2)},t),h.add(B),S.setItemGraphicEl(O,B)}if(b){var G=R(O,l),H=_.get("clip");De(G,{shape:{endAngle:oe(P,D,L,H)}},t),h.add(G),Rb(t.seriesIndex,S.dataType,O,G),y[O]=G}}).update(function(O,P){var B=S.get(w,O);if(m){var G=d.getItemGraphicEl(P),H=G?G.rotation:l,F=E(O,H);F.rotation=H,Jt(F,{rotation:-((isNaN(+B)?L[0]:oe(B,D,L,!0))+Math.PI/2)},t),h.add(F),S.setItemGraphicEl(O,F)}if(b){var k=p[P],j=k?k.shape.endAngle:l,Y=R(O,j),$=_.get("clip");Jt(Y,{shape:{endAngle:oe(B,D,L,$)}},t),h.add(Y),Rb(t.seriesIndex,S.dataType,O,Y),y[O]=Y}}).execute(),S.each(function(O){var P=S.getItemModel(O),B=P.getModel("emphasis"),G=B.get("focus"),H=B.get("blurScope"),F=B.get("disabled");if(m){var k=S.getItemGraphicEl(O),j=S.getItemVisual(O,"style"),Y=j.fill;if(k instanceof lr){var $=k.style;k.useStyle(rt({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},j))}else k.useStyle(j),k.type!=="pointer"&&k.setColor(Y);k.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),k.style.fill==="auto"&&k.setStyle("fill",i(oe(S.get(w,O),D,[0,1],!0))),k.z2EmphasisLift=0,xr(k,P),Re(k,G,H,F)}if(b){var tt=y[O];tt.useStyle(S.getItemVisual(O,"style")),tt.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),tt.z2EmphasisLift=0,xr(tt,P),Re(tt,G,H,F)}}),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=Ve(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,S){p[b]=l._titleEls[S],y[b]=l._detailEls[S]}).execute(),s.each(function(b){var S=s.getItemModel(b),w=s.get(u,b),A=new Ct,M=i(oe(w,[c,h],[0,1],!0)),D=S.getModel("title");if(D.get("show")){var L=D.get("offsetCenter"),E=o.cx+ht(L[0],o.r),R=o.cy+ht(L[1],o.r),O=p[b];O.attr({z2:_?0:2,style:_e(D,{x:E,y:R,text:s.getName(b),align:"center",verticalAlign:"middle"},{inheritColor:M})}),A.add(O)}var P=S.getModel("detail");if(P.get("show")){var B=P.get("offsetCenter"),G=o.cx+ht(B[0],o.r),H=o.cy+ht(B[1],o.r),F=ht(P.get("width"),o.r),k=ht(P.get("height"),o.r),j=t.get(["progress","show"])?s.getItemVisual(b,"style").fill:M,O=y[b],Y=P.get("formatter");O.attr({z2:_?0:2,style:_e(P,{x:G,y:H,text:Bp(w,Y),width:isNaN(F)?null:F,height:isNaN(k)?null:k,align:"center",verticalAlign:"middle"},{inheritColor:j})}),M5(O,{normal:P},w,function(tt){return Bp(tt,Y)}),m&&L5(O,b,s,t,{getFormattedLabel:function(tt,U,W,at,lt,ct){return Bp(ct?ct.interpolatedValue:w,Y)}}),A.add(O)}d.add(A)}),this.group.add(d),this._titleEls=p,this._detailEls=y},e.type="gauge",e})(fe),QK=(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 Df(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 JK(r){r.registerChartView(KK),r.registerSeriesModel(QK)}var tQ=["itemStyle","opacity"],eQ=(function(r){Z(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new Pr,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(tQ);c=c??1,n||bn(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),xr(i,l),this._updateLabel(t,a),Re(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;br(o,ir(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}),fT(n,cT(s),{stroke:d})},e})(Or),rQ=(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 eQ(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);Hh(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),aQ=(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 Cv(dt(this.getData,this),dt(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Df(this,{coordDimensions:["value"],encodeDefaulter:Rt(Bw,this)})},e.prototype._defaultLabelLine=function(t){ss(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 nQ(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function iQ(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 oQ(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,S=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,S=_-w,p=S-5,h="center"):o==="bottom"?(m=(u[1][0]+u[2][0])/2,_=(u[1][1]+u[2][1])/2,S=_+w,p=S+5,h="center"):o==="rightTop"?(m=t==="horizontal"?u[3][0]:u[1][0],_=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(S=_-w,p=S-5,h="center"):(b=m+w,d=b+5,h="top")):o==="rightBottom"?(m=u[2][0],_=u[2][1],t==="horizontal"?(S=_+w,p=S+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"?(S=_-w,p=S-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"?(S=_+w,p=S+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"?(S=_+w,p=S+5,h="center"):(b=m+w,d=b+5,h="left")),t==="horizontal"?(b=m,d=b):(S=_,p=S),y=[[m,_],[b,S]]}s.label={linePoints:y,x:d,y:p,verticalAlign:"middle",textAlign:h,inside:c}})}function lQ(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=nQ(t,e),l=t.get("orient"),s=o.width,u=o.height,c=iQ(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"),S=t.get("gap"),w=l==="horizontal"?s:u,A=(w-S*(a.count()-1))/a.count(),M=function(H,F){if(l==="horizontal"){var k=a.get(n,H)||0,j=oe(k,[m,_],p,!0),Y=void 0;switch(b){case"top":Y=d;break;case"center":Y=d+(u-j)/2;break;case"bottom":Y=d+(u-j);break}return[[F,Y],[F,Y+j]]}var $=a.get(n,H)||0,tt=oe($,[m,_],p,!0),U;switch(b){case"left":U=h;break;case"center":U=h+(s-tt)/2;break;case"right":U=h+s-tt;break}return[[U,F],[U+tt,F]]};i==="ascending"&&(A=-A,S=-S,l==="horizontal"?h+=s:d+=u,c=c.reverse());for(var D=0;D<c.length;D++){var L=c[D],E=c[D+1],R=a.getItemModel(L);if(l==="horizontal"){var O=R.get(["itemStyle","width"]);O==null?O=A:(O=ht(O,s),i==="ascending"&&(O=-O));var P=M(L,h),B=M(E,h+O);h+=O+S,a.setItemLayout(L,{points:P.concat(B.slice().reverse())})}else{var G=R.get(["itemStyle","height"]);G==null?G=A:(G=ht(G,u),i==="ascending"&&(G=-G));var P=M(L,d),B=M(E,d+G);d+=G+S,a.setItemLayout(L,{points:P.concat(B.slice().reverse())})}}oQ(a)})}function sQ(r){r.registerChartView(rQ),r.registerSeriesModel(aQ),r.registerLayout(lQ),r.registerProcessor(Av("funnel"))}var uQ=.3,fQ=(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=KI(t);l.diff(s).add(d).update(p).remove(y).execute();function d(_){var b=$I(l,o,_,c,u);px(b,l,_,h)}function p(_,b){var S=s.getItemGraphicEl(b),w=e4(l,_,c,u);l.setItemGraphicEl(_,S),Jt(S,{shape:{points:w}},t,_),bn(S),px(S,l,_,h)}function y(_){var b=s.getItemGraphicEl(_);o.remove(b)}if(!this._initialized){this._initialized=!0;var m=cQ(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=KI(a),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var h=$I(i,this._dataGroup,c,l,o);h.incremental=!0,px(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 cQ(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 e4(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],l=r.get(r.mapDimension(o),e);hQ(l,a.getAxis(o).type)||n.push(a.dataToPoint(l,o))}return n}function $I(r,e,t,a,n){var i=e4(r,t,a,n),o=new Pr({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function KI(r){var e=r.get("smooth",!0);return e===!0&&(e=uQ),e=jn(e),qu(e)&&(e=0),{smooth:e}}function px(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");xr(r,n,"lineStyle"),Re(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function hQ(r,e){return e==="category"?r==null:r==null||isNaN(r)}var vQ=(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 Zn(null,this,{useEncodeDefaulter:dt(dQ,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 dQ(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return N(e.dimensions,function(a){var n=pQ(a);t[a]=n}),t}}function pQ(r){return+r.replace("dim","")}var gQ=["lineStyle","opacity"],yQ={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(gQ,!0);u!=null&&(s=u)}var c=i.ensureUniqueItemVisual(l,"style");c.opacity=s},n.start,n.end)}}}};function mQ(r){_Q(r),xQ(r)}function _Q(r){if(!r.parallel){var e=!1;N(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function xQ(r){var e=de(r.parallelAxis);N(e,function(t){if(St(t)){var a=t.parallelIndex||0,n=de(r.parallel)[a];n&&n.parallelAxisDefault&&It(t,n.parallelAxisDefault,!1)}})}var bQ=5,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._model=t,this._api=n,this._handlers||(this._handlers={},N(wQ,function(i,o){n.getZr().on(o,this._handlers[o]=dt(i,this))},this)),Sf(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){Yh(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),wQ={mousedown:function(r){gx(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(gx(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>bQ)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||!gx(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 gx(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}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(){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),AQ=(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})(tn);function Ts(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=Cu(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var l=Math.abs(e[1]-e[0]);l=Cu(l,[0,o]),n=i=Cu(l,[n,i]),a=0}e[0]=Cu(e[0],t),e[1]=Cu(e[1],t);var s=yx(e,a);e[a]+=r;var u=n||0,c=t.slice();s.sign<0?c[0]+=u:c[1]-=u,e[a]=Cu(e[a],c);var h;return h=yx(e,a),n!=null&&(h.sign!==s.sign||h.span<n)&&(e[1-a]=e[a]+s.sign*n),h=yx(e,a),i!=null&&h.span>i&&(e[1-a]=e[a]+h.sign*i),e}function yx(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 Cu(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var mx=N,r4=Math.min,a4=Math.max,QI=Math.floor,CQ=Math.ceil,JI=Oe,DQ=Math.PI,MQ=(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;mx(n,function(o,l){var s=i[l],u=t.getComponent("parallelAxis",s),c=this._axesMap.set(o,new AQ(o,xv(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();mx(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),vs(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=Vp(e.get("axisExpandWidth"),s),h=Vp(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=Vp(p[1]-p[0],s),p[1]=p[0]+y;else{y=Vp(c*(h-1),s);var m=e.get("axisExpandCenter")||QI(u/2);p=[c*m-y/2],p[1]=p[0]+y}var _=(l-y)/(u-h);_<3&&(_=0);var b=[QI(JI(p[0]/c,1))+1,CQ(JI(p[1]/c,1))-1],S=_/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:S}},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])}),mx(a,function(o,l){var s=(n.axisExpandable?EQ:LQ)(l,n),u={horizontal:{x:s.position,y:n.axisLength},vertical:{x:0,y:s.position}},c={horizontal:DQ/2,vertical:0},h=[u[i].x+e.x,u[i].y+e.y],d=c[i],p=aa();jo(p,p,d),_n(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 yn([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?Ts(s,n,o,"all"):u="none";else{var p=n[1]-n[0],y=o[1]*l/p;n=[a4(0,y-p/2)],n[1]=r4(o[1],n[0]+p),n[0]=n[1]-p}return{axisExpandWindow:n,behavior:u}},r})();function Vp(r,e){return r4(a4(r,e[0]),e[1])}function LQ(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function EQ(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 RQ(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new MQ(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",Ye).models[0];a.coordinateSystem=n.coordinateSystem}}),t}var IQ={create:RQ},SS=(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 fs([["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--)ya(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);Pe(SS,Cf);var ds=!0,av=Math.min,nf=Math.max,OQ=Math.pow,NQ=1e4,PQ=6,zQ=6,tO="globalPan",kQ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},BQ={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},eO={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},VQ=0,NT=(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_"+VQ++,N(XQ,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||Lq(a,tO,this._uid),N(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=It(Tt(eO),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Eq(t,tO,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(eO),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]):i4(o,n4(o,y));PT(o,m)}}function h(d){n[d]!==l&&o.group.remove(n[d])}},e.prototype.unmount=function(){return this.enableBrush(!1),wS(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})($a);function n4(r,e){var t=om[e.brushType].createCover(r,e);return t.__brushOption=e,l4(t,e),r.group.add(t),t}function i4(r,e){var t=zT(e);return t.endCreating&&(t.endCreating(r,e),l4(e,e.__brushOption)),e}function o4(r,e){var t=e.__brushOption;zT(e).updateCoverShape(r,e,t.range,t)}function l4(r,e){var t=e.z;t==null&&(t=NQ),r.traverse(function(a){a.z=t,a.z2=t})}function PT(r,e){zT(e).updateCommon(r,e),o4(r,e)}function zT(r){return om[r.__brushOption.brushType]}function kT(r,e,t){var a=r._panels;if(!a)return ds;var n,i=r._transform;return N(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function s4(r,e){var t=r._panels;if(!t)return ds;var a=e.__brushOption.panelId;return a!=null?t[a]:ds}function wS(r){var e=r._covers,t=e.length;return N(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function ps(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 GQ(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=OQ(n*n+i*i,.5);return o>PQ}function u4(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function f4(r,e,t,a){var n=new Ct;return n.add(new Wt({name:"main",style:BT(t),silent:!0,draggable:!0,cursor:"move",drift:Rt(rO,r,e,n,["n","s","w","e"]),ondragend:Rt(ps,e,{isEnd:!0})})),N(a,function(i){n.add(new Wt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Rt(rO,r,e,n,i),ondragend:Rt(ps,e,{isEnd:!0})}))}),n}function c4(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=nf(n,zQ),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;gi(r,e,"main",o,l,y,m),a.transformable&&(gi(r,e,"w",s,u,i,b),gi(r,e,"e",d,u,i,b),gi(r,e,"n",s,u,_,i),gi(r,e,"s",s,p,_,i),gi(r,e,"nw",s,u,i,i),gi(r,e,"ne",d,u,i,i),gi(r,e,"sw",s,p,i,i),gi(r,e,"se",d,p,i,i))}function TS(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(BT(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?AS(r,i[0]):UQ(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?BQ[l]+"-resize":null})})}function gi(r,e,t,a,n,i,o){var l=e.childOfName(t);l&&l.setShape(jQ(VT(r,e,[[a,n],[a+i,n+o]])))}function BT(r){return xt({strokeNoScale:!0},r.brushStyle)}function h4(r,e,t,a){var n=[av(r,t),av(e,a)],i=[nf(r,t),nf(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function HQ(r){return Oo(r.group)}function AS(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=By(t[e],HQ(r));return a[n]}function UQ(r,e){var t=[AS(r,e[0]),AS(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function rO(r,e,t,a,n,i){var o=t.__brushOption,l=r.toRectRange(o.range),s=v4(e,n,i);N(a,function(u){var c=kQ[u];l[c[0]][c[1]]+=s[c[0]]}),o.range=r.fromRectRange(h4(l[0][0],l[1][0],l[0][1],l[1][1])),PT(e,t),ps(e,{isEnd:!1})}function FQ(r,e,t,a){var n=e.__brushOption.range,i=v4(r,t,a);N(n,function(o){o[0]+=i[0],o[1]+=i[1]}),PT(r,e),ps(r,{isEnd:!1})}function v4(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 VT(r,e,t){var a=s4(r,e);return a&&a!==ds?a.clipPath(t,r._transform):Tt(t)}function jQ(r){var e=av(r[0][0],r[1][0]),t=av(r[0][1],r[1][1]),a=nf(r[0][0],r[1][0]),n=nf(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function YQ(r,e,t){if(!(!r._brushType||WQ(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=kT(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var l=n[o].__brushOption;if(i&&(i===ds||l.panelId===i.panelId)&&om[l.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}function CS(r){var e=r.event;e.preventDefault&&e.preventDefault()}function DS(r,e,t){return r.childOfName("main").contain(e,t)}function d4(r,e,t,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,l;if(r._track.push(t.slice()),GQ(r)||n){if(i&&!n){o.brushMode==="single"&&wS(r);var s=Tt(o);s.brushType=aO(s.brushType,i),s.panelId=i===ds?null:i.panelId,n=r._creatingCover=n4(r,s),r._covers.push(n)}if(n){var u=om[aO(r._brushType,i)],c=n.__brushOption;c.range=u.getCreatingRange(VT(r,n,r._track)),a&&(i4(r,n),u.updateCommon(r,n)),o4(r,n),l={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&kT(r,e,t)&&wS(r)&&(l={isEnd:a,removeOnClick:!0});return l}function aO(r,e){return r==="auto"?e.defaultBrushType:r}var XQ={mousedown:function(r){if(this._dragging)nO(this,r);else if(!r.target||!r.target.draggable){CS(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=kT(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(YQ(this,r,a),this._dragging){CS(r);var n=d4(this,r,a,!1);n&&ps(this,n)}},mouseup:function(r){nO(this,r)}};function nO(r,e){if(r._dragging){CS(e);var t=e.offsetX,a=e.offsetY,n=r.group.transformCoordToLocal(t,a),i=d4(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&ps(r,i)}}function WQ(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var om={lineX:iO(0),lineY:iO(1),rect:{createCover:function(r,e){function t(a){return a}return f4({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=u4(r);return h4(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){c4(r,e,t,a)},updateCommon:TS,contain:DS},polygon:{createCover:function(r,e){var t=new Ct;return t.add(new Pr({name:"main",style:BT(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Or({name:"main",draggable:!0,drift:Rt(FQ,r,e),ondragend:Rt(ps,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:VT(r,e,t)})},updateCommon:TS,contain:DS}};function iO(r){return{createCover:function(e,t){return f4({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=u4(e),a=av(t[0][r],t[1][r]),n=nf(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=s4(e,t);if(o!==ds&&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(),c4(e,t,s,n)},updateCommon:TS,contain:DS}}function p4(r){return r=GT(r),function(e){return Cw(e,r)}}function g4(r,e){return r=GT(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 y4(r,e,t){var a=GT(r);return function(n,i){return a.contain(i[0],i[1])&&!rm(n,e,t)}}function GT(r){return kt.create(r)}var ZQ=["axisLine","axisTickLabel","axisName"],qQ=(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 NT(a.getZr())).on("brush",dt(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!$Q(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=QQ(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(ZQ,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(p,u,t,l,c,n),yv(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:p4(h),isTargetByCursor:y4(h,l,i),getLinearBrushOtherExtent:g4(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(KQ(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 $Q(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function KQ(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 QQ(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var JQ={type:"axisAreaSelect",event:"axisAreaSelected"};function tJ(r){r.registerAction(JQ,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 eJ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function m4(r){r.registerComponentView(SQ),r.registerComponentModel(TQ),r.registerCoordinateSystem("parallel",IQ),r.registerPreprocessor(mQ),r.registerComponentModel(SS),r.registerComponentView(qQ),af(r,"parallel",SS,eJ),tJ(r)}function rJ(r){Gt(m4),r.registerChartView(fQ),r.registerSeriesModel(vQ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,yQ)}var aJ=(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})(),nJ=(function(r){Z(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new aJ},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(){Ri(this)},e.prototype.downplay=function(){Ii(this)},e})(Ft),iJ=(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 nJ,_=Mt(m);_.dataIndex=y.dataIndex,_.seriesIndex=t.seriesIndex,_.dataType="edge";var b=y.getModel(),S=b.getModel("lineStyle"),w=S.get("curveness"),A=y.node1.getLayout(),M=y.node1.getModel(),D=M.get("localX"),L=M.get("localY"),E=y.node2.getLayout(),R=y.node2.getModel(),O=R.get("localX"),P=R.get("localY"),B=y.getLayout(),G,H,F,k,j,Y,$,tt;m.shape.extent=Math.max(1,B.dy),m.shape.orient=p,p==="vertical"?(G=(D!=null?D*u:A.x)+B.sy,H=(L!=null?L*c:A.y)+A.dy,F=(O!=null?O*u:E.x)+B.ty,k=P!=null?P*c:E.y,j=G,Y=H*(1-w)+k*w,$=F,tt=H*w+k*(1-w)):(G=(D!=null?D*u:A.x)+A.dx,H=(L!=null?L*c:A.y)+B.sy,F=O!=null?O*u:E.x,k=(P!=null?P*c:E.y)+B.ty,j=G*(1-w)+F*w,Y=H,$=G*w+F*(1-w),tt=k),m.setShape({x1:G,y1:H,x2:F,y2:k,cpx1:j,cpy1:Y,cpx2:$,cpy2:tt}),m.useStyle(S.getItemStyle()),oO(m.style,p,y);var U=""+b.get("value"),W=ir(b,"edgeLabel");br(m,W,{labelFetcher:{getFormattedLabel:function(ct,bt,Pt,wt,pt,Ot){return t.getFormattedLabel(ct,bt,"edge",wt,dn(pt,W.normal&&W.normal.get("formatter"),U),Ot)}},labelDataIndex:y.dataIndex,defaultText:U}),m.setTextConfig({position:"inside"});var at=b.getModel("emphasis");xr(m,b,"lineStyle",function(ct){var bt=ct.getItemStyle();return oO(bt,p,y),bt}),l.add(m),d.setItemGraphicEl(y.dataIndex,m);var lt=at.get("focus");Re(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"),S=_.get("localY"),w=_.getModel("emphasis"),A=_.get(["itemStyle","borderRadius"])||0,M=new Wt({shape:{x:b!=null?b*u:m.x,y:S!=null?S*c:m.y,width:m.dx,height:m.dy,r:A},style:_.getModel("itemStyle").getItemStyle(),z2:10});br(M,ir(_),{labelFetcher:{getFormattedLabel:function(L,E){return t.getFormattedLabel(L,E,"node")}},labelDataIndex:y.dataIndex,defaultText:y.id}),M.disableLabelAnimation=!0,M.setStyle("fill",y.getVisual("color")),M.setStyle("decal",y.getVisual("style").decal),xr(M,_),l.add(M),h.setItemGraphicEl(y.dataIndex,M),Mt(M).dataType="node";var D=w.get("focus");Re(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,S){i._focusAdjacencyDisabled=!0,this.shape.x+=b,this.shape.y+=S,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(oJ(l.getBoundingRect(),t,function(){l.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e})(fe);function oO(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 vf(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function oJ(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 lJ=(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=t4(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,S=m.levelModels[b];S&&(p.parentModel=S)}return p}),d.wrapMethod("getItemModel",function(p,y){var m=p.parentModel,_=m.getGraph().getEdgeByIndex(y),b=_.node1.getLayout();if(b){var S=b.depth,w=m.levelModels[S];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 or("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 or("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 sJ(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=uJ(t,e);t.layoutInfo=i;var o=i.width,l=i.height,s=t.getGraph(),u=s.nodes,c=s.edges;cJ(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");fJ(u,c,a,n,o,l,d,p,y)})}function uJ(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function fJ(r,e,t,a,n,i,o,l,s){hJ(r,e,t,n,i,l,s),gJ(r,e,i,n,a,o,l),AJ(r,l)}function cJ(r){N(r,function(e){var t=zo(e.outEdges,iy),a=zo(e.inEdges,iy),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function hJ(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 S=0;S<m.outEdges.length;S++){var w=m.outEdges[S],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"&&vJ(r,o,i,L);var E=i==="vertical"?(n-t)/L:(a-t)/L;pJ(r,E,i)}function _4(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function vJ(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){_4(h)||h.setLayout({depth:Math.max(0,a-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&dJ(r,a)}function dJ(r,e){N(r,function(t){!_4(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function pJ(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 gJ(r,e,t,a,n,i,o){var l=yJ(r,o);mJ(l,e,t,a,n,o),_x(l,n,t,a,o);for(var s=1;i>0;i--)s*=.99,_J(l,s,o),_x(l,n,t,a,o),TJ(l,s,o),_x(l,n,t,a,o)}function yJ(r,e){var t=[],a=e==="vertical"?"y":"x",n=Db(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 mJ(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 _x(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 _J(r,e,t){N(r.slice().reverse(),function(a){N(a,function(n){if(n.outEdges.length){var i=zo(n.outEdges,xJ,t)/zo(n.outEdges,iy);if(isNaN(i)){var o=n.outEdges.length;i=o?zo(n.outEdges,bJ,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 xJ(r,e){return Ho(r.node2,e)*r.getValue()}function bJ(r,e){return Ho(r.node2,e)}function SJ(r,e){return Ho(r.node1,e)*r.getValue()}function wJ(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 iy(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 TJ(r,e,t){N(r,function(a){N(a,function(n){if(n.inEdges.length){var i=zo(n.inEdges,SJ,t)/zo(n.inEdges,iy);if(isNaN(i)){var o=n.inEdges.length;i=o?zo(n.inEdges,wJ,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 AJ(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 CJ(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 nr({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 DJ(r){r.registerChartView(iJ),r.registerSeriesModel(lJ),r.registerLayout(sJ),r.registerVisual(CJ),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 x4=(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 S=this.defaultValueDimensions,w=[{name:h,type:Zg(y),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Zg(m),dimsDef:S.slice()}];return Df(this,{coordDimensions:w,dimensionsCount:S.length+1,encodeDefaulter:Rt(Z5,w,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r})(),b4=(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);Pe(b4,x4,!0);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.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=lO(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?(bn(h),S4(d,h,i,u)):h=lO(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),LJ=(function(){function r(){}return r})(),EJ=(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 LJ},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})(Ft);function lO(r,e,t,a,n){var i=r.ends,o=new EJ({shape:{points:n?RJ(i,a,r):i}});return S4(r,o,e,t,n),o}function S4(r,e,t,a,n){var i=t.hostModel,o=_s[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");xr(e,l),Re(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function RJ(r,e,t){return ot(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}var Lh=N;function IJ(r){var e=OJ(r);Lh(e,function(t){var a=t.seriesModels;a.length&&(NJ(t),Lh(a,function(n,i){PJ(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}function OJ(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 NJ(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;Lh(t,function(y){s=Math.max(s,y.getData().count())});var u=e.getExtent();l=Math.abs(u[1]-u[0])/s}Lh(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;Lh(t,function(y,m){i.push(p),p+=h+d,n.push(Math.min(Math.max(d,o[m][0]),o[m][1]))})}function PJ(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),S=[];A(S,m,!1),A(S,_,!0),S.push(y,m,b,_),M(S,y),M(S,b),M(S,p),n.setItemLayout(h,{initBaseline:p[l],ends:S})}function w(D,L,E){var R=n.get(L,E),O=[];O[o]=D,O[l]=R;var P;return isNaN(D)||isNaN(R)?P=[NaN,NaN]:(P=a.dataToPoint(O),P[o]+=e),P}function A(D,L,E){var R=L.slice(),O=L.slice();R[o]+=i,O[o]-=i,E?D.push(R,O):D.push(O,R)}function M(D,L){var E=L.slice(),R=L.slice();E[o]-=i,R[o]+=i,D.push(E,R)}}function zJ(r,e){e=e||{};for(var t=[],a=[],n=e.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var l=ya(r[o].slice()),s=ag(l,.25),u=ag(l,.5),c=ag(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 S=0;S<l.length;S++){var w=l[S];if(w<y||w>m){var A=[b,w];a.push(A)}}}return{boxData:t,outliers:a}}var kJ={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Nr){var a="";le(a)}var n=zJ(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function BJ(r){r.registerSeriesModel(b4),r.registerChartView(MJ),r.registerLayout(IJ),r.registerTransform(kJ)}var VJ=["itemStyle","borderColor"],GJ=["itemStyle","borderColor0"],HJ=["itemStyle","borderColorDoji"],UJ=["itemStyle","color"],FJ=["itemStyle","color0"];function HT(r,e){return e.get(r>0?UJ:FJ)}function UT(r,e){return e.get(r===0?HJ:r>0?VJ:GJ)}var jJ={seriesType:"candlestick",plan:bf(),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=HT(l,o),s.stroke=UT(l,o)||s.fill;var u=n.ensureUniqueItemVisual(i,"style");rt(u,s)}}}}}},YJ=["color","borderColor"],XJ=(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){Yo(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&&sO(u,h))return;var d=xx(h,c,!0);De(d,{shape:{points:h.ends}},t,c),bx(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&&sO(u,p)){i.remove(d);return}d?(Jt(d,{shape:{points:p.ends}},t,c),bn(d)):d=xx(p),bx(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(),uO(t,this.group);var a=t.get("clip",!0)?wv(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=xx(l);bx(s,n,o,i),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},e.prototype._incrementalRenderLarge=function(t,a){uO(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),WJ=(function(){function r(){}return r})(),ZJ=(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 WJ},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})(Ft);function xx(r,e,t){var a=r.ends;return new ZJ({shape:{points:t?qJ(a,r):a},z2:100})}function sO(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 bx(r,e,t,a){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,xr(r,n);var i=e.getItemLayout(t).sign;N(r.states,function(l,s){var u=n.getModel(s),c=HT(i,u),h=UT(i,u)||c,d=l.style||(l.style={});c&&(d.fill=c),h&&(d.stroke=h)});var o=n.getModel("emphasis");Re(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function qJ(r,e){return ot(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var $J=(function(){function r(){}return r})(),Sx=(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 $J},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})(Ft);function uO(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new Sx({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var l=new Sx({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(l);var s=new Sx({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(s),Tx(1,o,r),Tx(-1,l,r),Tx(0,s,r),a&&(o.incremental=!0,l.incremental=!0),t&&t.push(o,l)}function Tx(r,e,t,a){var n=UT(r,t)||HT(r,t),i=t.getModel("itemStyle").getItemStyle(YJ);e.useStyle(i),e.style.fill=null,e.style.stroke=n}var w4=(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);Pe(w4,x4,!0);function KJ(r){!r||!it(r.series)||N(r.series,function(e){St(e)&&e.type==="k"&&(e.type="candlestick")})}var QJ={seriesType:"candlestick",plan:bf(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=JJ(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,S=_.getStore();(b=m.next())!=null;){var w=S.get(l,b),A=S.get(u,b),M=S.get(c,b),D=S.get(h,b),L=S.get(d,b),E=Math.min(A,M),R=Math.max(A,M),O=j(E,w),P=j(R,w),B=j(D,w),G=j(L,w),H=[];Y(H,P,0),Y(H,O,1),H.push(tt(G),tt(P),tt(B),tt(O));var F=_.getItemModel(b),k=!!F.get(["itemStyle","borderColorDoji"]);_.setItemLayout(b,{sign:fO(S,b,A,M,c,k),initBaseline:A>M?P[i]:O[i],ends:H,brushRect:$(D,L,w)})}function j(U,W){var at=[];return at[n]=W,at[i]=U,isNaN(W)||isNaN(U)?[NaN,NaN]:e.dataToPoint(at)}function Y(U,W,at){var lt=W.slice(),ct=W.slice();lt[n]=og(lt[n]+a/2,1,!1),ct[n]=og(ct[n]-a/2,1,!0),at?U.push(lt,ct):U.push(ct,lt)}function $(U,W,at){var lt=j(U,at),ct=j(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(U){return U[n]=og(U[n],1),U}}function y(m,_){for(var b=Bn(m.count*4),S=0,w,A=[],M=[],D,L=_.getStore(),E=!!r.get(["itemStyle","borderColorDoji"]);(D=m.next())!=null;){var R=L.get(l,D),O=L.get(u,D),P=L.get(c,D),B=L.get(h,D),G=L.get(d,D);if(isNaN(R)||isNaN(B)||isNaN(G)){b[S++]=NaN,S+=3;continue}b[S++]=fO(L,D,O,P,c,E),A[n]=R,A[i]=B,w=e.dataToPoint(A,null,M),b[S++]=w?w[0]:NaN,b[S++]=w?w[1]:NaN,A[i]=G,w=e.dataToPoint(A,null,M),b[S++]=w?w[1]:NaN}_.setLayout("largePoints",b)}}};function fO(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 JJ(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(Et(r.get("barMaxWidth"),n),n),o=ht(Et(r.get("barMinWidth"),1),n),l=r.get("barWidth");return l!=null?ht(l,n):Math.max(Math.min(n/2,i),o)}function ttt(r){r.registerChartView(XJ),r.registerSeriesModel(w4),r.registerPreprocessor(KJ),r.registerVisual(jJ),r.registerLayout(QJ)}function cO(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 ett=(function(r){Z(e,r);function e(t,a){var n=r.call(this)||this,i=new bv(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=Ve(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)}cO(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}}cO(n,t)},e.prototype.highlight=function(){Ri(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=wf(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=bs(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,Re(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(Ct),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.init=function(){this._symbolDraw=new Sv(ett)},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=Tv("").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=oP(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(fe),att=(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 Zn(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 ntt(r){r.registerChartView(rtt),r.registerSeriesModel(att),r.registerLayout(Tv("effectScatter"))}var T4=(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 IT(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=Ve(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=rr(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=cb;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),A4=(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 Pr({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,Re(this,s,u,c)},e.prototype.updateLayout=function(t,a){var n=this.childAt(0);n.setShape("points",t.getItemLayout(a))},e})(Ct),itt=(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 A4(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})(T4),ott=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),ltt=(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 ott},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(KP(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})(Ft),stt=(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 ltt({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})(),C4={seriesType:"lines",plan:bf(),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 S=m.get(["lineStyle","curveness"]);+S&&(_[2]=[(_[0][0]+_[1][0])/2-(_[0][1]-_[1][1])*S,(_[0][1]+_[1][1])/2-(_[1][0]-_[0][0])*S])}i.setItemLayout(c,_)}}}}}},utt=(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)&&wv(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=C4.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 stt:new OT(o?i?itt:A4:i?T4:IT),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),ftt=typeof Uint32Array>"u"?Array:Uint32Array,ctt=typeof Float64Array>"u"?Array:Float64Array;function hO(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),by([n,t[0],t[1]])}))}var htt=(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||[],hO(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(hO(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=$u(this._flatCoords,a.flatCoords),this._flatCoordsOffset=$u(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 ftt(n),o=new ctt(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),or("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 Gp(r){return r instanceof Array||(r=[r,r]),r}var vtt={seriesType:"lines",reset:function(r){var e=Gp(r.get("symbol")),t=Gp(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=Gp(l.getShallow("symbol",!0)),u=Gp(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 dtt(r){r.registerChartView(utt),r.registerSeriesModel(htt),r.registerLayout(C4),r.registerVisual(vtt)}var ptt=256,gtt=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=mn.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],S=m[2],w=n(S);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,E=this.minOpacity,R=this.maxOpacity,O=R-E;D<L;){var w=M[D+3]/256,P=Math.floor(w*(ptt-1))*4;if(w>0){var B=o(w)?s:u;w>0&&(w=w*O+E),M[D++]=B[P],M[D++]=B[P+1],M[D++]=B[P+2],M[D++]=B[P+3]*w*256}else D+=4}return d.putImageData(A,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=mn.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 ytt(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 mtt(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 vO(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var _tt=(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()):vO(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&&(vO(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Yo(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var l=t.coordinateSystem,s=Ss(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(),S=t.getModel(["blur","itemStyle"]).getItemStyle(),w=t.getModel(["select","itemStyle"]).getItemStyle(),A=t.get(["itemStyle","borderRadius"]),M=ir(t),D=t.getModel("emphasis"),L=D.get("focus"),E=D.get("blurScope"),R=D.get("disabled"),O=s?[_.mapDimension("x"),_.mapDimension("y"),_.mapDimension("value")]:[_.mapDimension("time"),_.mapDimension("value")],P=n;P<i;P++){var B=void 0,G=_.getItemVisual(P,"style");if(s){var H=_.get(O[0],P),F=_.get(O[1],P);if(isNaN(_.get(O[2],P))||isNaN(H)||isNaN(F)||H<h[0]||H>h[1]||F<d[0]||F>d[1])continue;var k=l.dataToPoint([H,F]);B=new Wt({shape:{x:k[0]-u/2,y:k[1]-c/2,width:u,height:c},style:G})}else{if(isNaN(_.get(O[1],P)))continue;B=new Wt({z2:1,shape:l.dataToRect([_.get(O[0],P)]).contentShape,style:G})}if(_.hasItemOption){var j=_.getItemModel(P),Y=j.getModel("emphasis");b=Y.getModel("itemStyle").getItemStyle(),S=j.getModel(["blur","itemStyle"]).getItemStyle(),w=j.getModel(["select","itemStyle"]).getItemStyle(),A=j.get(["itemStyle","borderRadius"]),L=Y.get("focus"),E=Y.get("blurScope"),R=Y.get("disabled"),M=ir(j)}B.shape.r=A;var $=t.getRawValue(P),tt="-";$&&$[2]!=null&&(tt=$[2]+""),br(B,M,{labelFetcher:t,labelDataIndex:P,defaultOpacity:G.opacity,defaultText:tt}),B.ensureState("emphasis").style=b,B.ensureState("blur").style=S,B.ensureState("select").style=w,Re(B,L,E,R),B.incremental=o,o&&(B.states.emphasis.hoverLayer=!0),m.add(B),_.setItemGraphicEl(P,B),this._progressiveEls&&this._progressiveEls.push(B)}},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 gtt;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,S=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],w=s.mapArray(S,function(L,E,R){var O=t.dataToPoint([L,E]);return O[0]-=d,O[1]-=p,O.push(R),O}),A=n.getExtent(),M=n.type==="visualMap.continuous"?mtt(A,n.option.range):ytt(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 lr({style:{width:_,height:b,x:d,y:p,image:u.canvas},silent:!0});this.group.add(D)},e.type="heatmap",e})(fe),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.getInitialData=function(t,a){return Zn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=xf.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 btt(r){r.registerChartView(_tt),r.registerSeriesModel(xtt)}var Stt=["itemStyle","borderWidth"],dO=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ax=new Xn,wtt=(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:dO[+c],categoryDim:dO[1-+c]};o.diff(l).add(function(y){if(o.hasValue(y)){var m=gO(o,y),_=pO(o,y,m,d),b=yO(o,d,_);o.setItemGraphicEl(y,b),i.add(b),_O(b,d,_)}}).update(function(y,m){var _=l.getItemGraphicEl(m);if(!o.hasValue(y)){i.remove(_);return}var b=gO(o,y),S=pO(o,y,b,d),w=I4(o,S);_&&w!==_.__pictorialShapeStr&&(i.remove(_),o.setItemGraphicEl(y,null),_=null),_?Ett(_,d,S):_=yO(o,d,S,!0),o.setItemGraphicEl(y,_),_.__pictorialSymbolMeta=S,i.add(_),_O(_,d,S)}).remove(function(y){var m=l.getItemGraphicEl(y);m&&mO(l,y,m.__pictorialSymbolMeta.animationModel,m)}).execute();var p=t.get("clip",!0)?wv(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){mO(i,Mt(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e})(fe);function pO(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};Ttt(t,i,n,a,d),Att(r,e,n,i,o,d.boundingLength,d.pxSign,c,a,d),Ctt(t,d.symbolScale,u,a,d);var p=d.symbolSize,y=bs(t.get("symbolOffset"),p);return Dtt(t,p,n,i,o,y,l,d.valueLineWidth,d.boundingLength,d.repeatCutLength,a,d),d}function Ttt(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=[Cx(l,o[0])-s,Cx(l,o[1])-s];h[1]<h[0]&&h.reverse(),c=h[u]}else o!=null?c=Cx(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 Cx(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function Att(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 Ctt(r,e,t,a,n){var i=r.get(Stt)||0;i&&(Ax.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Ax.updateTransform(),i/=Ax.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function Dtt(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),S=rr(r.get("symbolMargin"),"15%")+"",w=!1;S.lastIndexOf("!")===S.length-1&&(w=!0,S=S.slice(0,S.length-1));var A=ht(S,e[p.index]),M=Math.max(m+A*2,0),D=w?0:A*2,L=fw(a),E=L?a:xO((b+D)/M),R=b-E*m;A=R/2/(w?E:Math.max(E-1,1)),M=m+A*2,D=w?0:A*2,!L&&a!=="fixed"&&(E=u?xO((Math.abs(u)+D)/M):0),_=E*M-D,h.repeatTimes=E,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 B=h.bundlePosition=[];B[d.index]=t[d.xy],B[p.index]=t[p.xy];var G=h.barRectShape=rt({},t);G[p.wh]=y*Math.max(Math.abs(t[p.wh]),Math.abs(P[p.index]+O)),G[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 D4(r){var e=r.symbolPatternSize,t=Ve(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function M4(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(FT(r,function(m){m.__pictorialAnimationIndex=c,m.__pictorialRepeatTimes=u,c<u?Zu(m,null,y(c),t,a):Zu(m,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(m)}),c++});c<u;c++){var d=D4(t);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,n.add(d);var p=y(c);Zu(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,S=m;return(t.symbolRepeatDirection==="start"?b>0:b<0)&&(S=u-1-m),_[s.index]=h*(S-u/2+.5)+l[s.index],{x:_[0],y:_[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function L4(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Zu(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=D4(t),n.add(i),Zu(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 E4(r,e,t){var a=rt({},e.barRectShape),n=r.__pictorialBarRect;n?Zu(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 R4(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],_s[a?"updateProps":"initProps"](n,{shape:u},l,s)}}}function gO(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=Mtt,t.isAnimationEnabled=Ltt,t}function Mtt(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Ltt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function yO(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?M4(n,e,t):L4(n,e,t),E4(n,t,a),R4(n,e,t,a),n.__pictorialShapeStr=I4(r,t),n.__pictorialSymbolMeta=t,n}function Ett(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?M4(r,e,t,!0):L4(r,e,t,!0),E4(r,t,!0),R4(r,e,t,!0)}function mO(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];FT(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 I4(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function FT(r,e,t){N(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Zu(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&_s[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function _O(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");FT(r,function(m){if(m instanceof lr){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,br(y,ir(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:rf(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:p}),Re(r,c,h,i.get("disabled"))}function xO(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var Rtt=(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(Kh.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})(Kh);function Itt(r){r.registerChartView(wtt),r.registerSeriesModel(Rtt),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Rt(pk,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gk("pictorialBar"))}var Ott=(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,S){var w=o._layers;if(_==="remove"){l.remove(w[b]);return}for(var A=[],M=[],D,L=s[b].indices,E=0;E<L.length;E++){var R=i.getItemLayout(L[E]),O=R.x,P=R.y0,B=R.y;A.push(O,P),M.push(O,P+B),D=i.getItemVisual(L[E],"style")}var G,H=i.getItemLayout(L[0]),F=t.getModel("label"),k=F.get("margin"),j=t.getModel("emphasis");if(_==="add"){var Y=y[b]=new Ct;G=new nB({shape:{points:A,stackedOnPoints:M,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),Y.add(G),l.add(Y),t.isAnimationEnabled()&&G.setClipPath(Ntt(G.getBoundingRect(),t,function(){G.removeClipPath()}))}else{var Y=w[S];G=Y.childAt(0),l.add(Y),y[b]=Y,Jt(G,{shape:{points:A,stackedOnPoints:M}},t),bn(G)}br(G,ir(t),{labelDataIndex:L[E-1],defaultText:i.getName(L[E-1]),inheritColor:D.fill},{normal:{verticalAlign:"middle"}}),G.setTextConfig({position:null,local:!0});var $=G.getTextContent();$&&($.x=H.x-k,$.y=H.y0+H.y/2),G.useStyle(D),i.setItemGraphicEl(b,G),xr(G,t),Re(G,j.get("focus"),j.get("blurScope"),j.get("disabled"))}this._layersSeries=s,this._layers=y},e.type="themeRiver",e})(fe);function Ntt(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 Dx=2,Ptt=(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 Cv(dt(this.getData,this),dt(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=Db(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",Ye).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][Dx]),u.get(l[h][Dx])||(u.set(l[h][Dx],c),c++);var d=Tf(l,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Zg(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=Db(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 or("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 ztt(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];bO(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];bO(a,t,c)}a.setLayout("layoutInfo",i)})}function bO(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 S=a.dataToPoint(r.get(i,b));return S[1]=r.get(o,b),S})}),s=ktt(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 ktt(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 Btt(r){r.registerChartView(Ott),r.registerSeriesModel(Ptt),r.registerLayout(ztt),r.registerProcessor(Av("themeRiver"))}var Vtt=2,Gtt=4,SO=(function(r){Z(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=Vtt,o.textConfig={inside:!0},Mt(o).seriesIndex=a.seriesIndex;var l=new Xt({z2:Gtt,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=ef(p,o));var y=Jl(s.getModel("itemStyle"),h,!0);rt(h,y),N(jr,function(S){var w=l.ensureState(S),A=s.getModel([S,"itemStyle"]);w.style=A.getItemStyle();var M=Jl(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),bn(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"?$u(a.getAncestorsIndices(),a.getDescendantIndices()):_==="ancestor"?a.getAncestorsIndices():_==="descendant"?a.getDescendantIndices():_;Re(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(Vh,function(b){var S=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(S,{},null,b!=="normal",!0),M&&(A.style.text=M);var D=S.get("show");D!=null&&!w&&(A.ignore=!D);var L=_(S,"position"),E=w?h:h.states[b],R=E.style.fill;E.textConfig={outsideFill:S.get("color")==="inherit"?R:null,inside:L!=="outside"};var O,P=_(S,"distance")||0,B=_(S,"align"),G=_(S,"rotate"),H=Math.PI*.5,F=Math.PI*1.5,k=ma(G==="tangential"?Math.PI/2-s:s),j=k>H&&!Ku(k-H)&&k<F;L==="outside"?(O=o.r+P,B=j?"right":"left"):!B||B==="center"?(l===2*Math.PI&&o.r0===0?O=0:O=(o.r+o.r0)/2,B="center"):B==="left"?(O=o.r0+P,B=j?"right":"left"):B==="right"&&(O=o.r-P,B=j?"left":"right"),A.style.align=B,A.style.verticalAlign=_(S,"verticalAlign")||"middle",A.x=O*u+o.cx,A.y=O*c+o.cy;var Y=0;G==="radial"?Y=ma(-s)+(j?Math.PI:0):G==="tangential"?Y=ma(Math.PI/2-s)+(j?Math.PI:0):Qt(G)&&(Y=G*Math.PI/180),A.rotation=ma(Y)});function _(b,S){var w=b.get(S);return w??i.get(S)}d.dirtyStyle()},e})(Ir),MS="sunburstRootToNode",wO="sunburstHighlight",Htt="sunburstUnhighlight";function Utt(r){r.registerAction({type:MS,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=Jh(e,[MS],n);if(o){var l=n.getViewRoot();l&&(e.direction=DT(l,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:wO,update:"none"},function(e,t,a){e=rt({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=Jh(e,[wO],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(rt(e,{type:"highlight"}))}),r.registerAction({type:Htt,update:"updateView"},function(e,t,a){e=rt({},e),a.dispatchAction(rt(e,{type:"downplay"}))})}var Ftt=(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(S){d.push(S)});var p=this._oldChildren||[];y(d,p),b(s,u),this._initEvents(),this._oldChildren=d;function y(S,w){if(S.length===0&&w.length===0)return;new Oi(w,S,A,A).add(M).update(M).remove(Rt(M,null)).execute();function A(D){return D.getId()}function M(D,L){var E=D==null?null:S[D],R=L==null?null:w[L];m(E,R)}}function m(S,w){if(!h&&S&&!S.getValue()&&(S=null),S!==s&&w!==s){if(w&&w.piece)S?(w.piece.updateData(!1,S,t,a,n),l.setItemGraphicEl(S.dataIndex,w.piece)):_(w);else if(S){var A=new SO(S,t,a,n);c.add(A),l.setItemGraphicEl(S.dataIndex,A)}}}function _(S){S&&S.piece&&(c.remove(S.piece),S.piece=null)}function b(S,w){w.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,t,a,n):(o.virtualPiece=new SO(S,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";Bg(u,c)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:MS,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),jtt=(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};O4(n);var i=this._levelModels=ot(t.levels||[],function(s){return new ee(s,this,a)},this),o=CT.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=nm(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(){BB(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 O4(r){var e=0;N(r.children,function(a){O4(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 TO=Math.PI/180;function Ytt(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")*TO,y=a.get("minAngle")*TO,m=a.getData().tree.root,_=a.getViewRoot(),b=_.depth,S=a.get("sort");S!=null&&N4(_,S);var w=0;N(_.children,function(k){!isNaN(k.getValue())&&w++});var A=_.getValue(),M=Math.PI/(A||w)*2,D=_.depth>0,L=_.height-(D?-1:1),E=(d-h)/(L||1),R=a.get("clockwise"),O=a.get("stillShowZeroSum"),P=R?1:-1,B=function(k,j){if(k){var Y=j;if(k!==m){var $=k.getValue(),tt=A===0&&O?M:$*M;tt<y&&(tt=y),Y=j+P*tt;var U=k.depth-b-(D?-1:1),W=h+E*U,at=h+E*(U+1),lt=a.getLevelModel(k);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))}k.setLayout({angle:tt,startAngle:j,endAngle:Y,clockwise:R,cx:u,cy:c,r0:W,r:at})}if(k.children&&k.children.length){var wt=0;N(k.children,function(pt){wt+=B(pt,j+wt)})}return Y-j}};if(D){var G=h,H=h+E,F=Math.PI*2;m.setLayout({angle:F,startAngle:p,endAngle:p+F,clockwise:R,cx:u,cy:c,r0:G,r:H})}B(_,p)})}function N4(r,e){var t=r.children||[];r.children=Xtt(t,e),t.length&&N(r.children,function(a){N4(a,e)})}function Xtt(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 Wtt(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=Cg(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 Ztt(r){r.registerChartView(Ftt),r.registerSeriesModel(jtt),r.registerLayout(Rt(Ytt,"sunburst")),r.registerProcessor(Rt(Av,"sunburst")),r.registerVisual(Wtt),Utt(r)}var AO={color:"fill",borderColor:"stroke"},qtt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Mi=$t(),$tt=(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 Zn(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 Ktt(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 Qtt(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(Ktt,r)}}}function Jtt(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 tet(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(Jtt,r)}}}function eet(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 ret(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(eet,r)}}}function aet(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 net(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(aet,r)}}}function iet(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 P4(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||gt(r,"text")))}function z4(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 CO(o,r),N(o.rich,function(s){CO(s,s)}),{textConfig:n,textContent:i}}function CO(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 DO(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";MO(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){MO(l,l)}),a}function MO(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 k4={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LO=jt(k4);Za(Fn,function(r,e){return r[e]=1,r},{});Fn.join(", ");var oy=["","style","shape","extra"],of=$t();function jT(r,e,t,a,n){var i=r+"Animation",o=df(r,a,n)||{},l=of(e).userDuring;return o.duration>0&&(o.during=l?dt(cet,{el:e,userDuring:l}):null,o.setToFinal=!0,o.scope=r),rt(o,t[i]),o}function hg(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,l=t.isAnimationEnabled(),s=of(r),u=e.style;s.userDuring=e.during;var c={},h={};if(vet(r,e,h),RO("shape",e,h),RO("extra",e,h),!i&&l&&(het(r,e,c),EO("shape",r,e,c),EO("extra",r,e,c),det(r,e,u,c)),h.style=u,oet(r,h,o),uet(r,e),l)if(i){var d={};N(oy,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=jT("enter",r,e,t,n);p.duration>0&&r.animateFrom(d,p)}else set(r,e,n||0,t,c);B4(r,e),u?r.dirty():r.markRedraw()}function B4(r,e){for(var t=of(r).leaveToProps,a=0;a<oy.length;a++){var n=oy[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=of(r).leaveToProps={}),n&&(t[n]=t[n]||{}),rt(n?t[n]:t,i.leaveTo))}}function lm(r,e,t,a){if(r){var n=r.parent,i=of(r).leaveToProps;if(i){var o=jT("update",r,e,t,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function os(r){return r==="all"}function oet(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 set(r,e,t,a,n){if(n){var i=jT("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function uet(r,e){gt(e,"silent")&&(r.silent=e.silent),gt(e,"ignore")&&(r.ignore=e.ignore),r instanceof qa&&gt(e,"invisible")&&(r.invisible=e.invisible),r instanceof Ft&&gt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var In={},fet={setTransform:function(r,e){return In.el[r]=e,this},getTransform:function(r){return In.el[r]},setShape:function(r,e){var t=In.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=In.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=In.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=In.el.style;if(e)return e[r]},setExtra:function(r,e){var t=In.el.extra||(In.el.extra={});return t[r]=e,this},getExtra:function(r){var e=In.el.extra;if(e)return e[r]}};function cet(){var r=this,e=r.el;if(e){var t=of(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}In.el=e,a(fet)}}function EO(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]={}),os(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(os(l)||Bt(l,r)>=0){!o&&(o=a[r]={});for(var p=jt(i),c=0;c<p.length;c++){var h=p[c],d=i[h];pet(n[h],d)&&(o[h]=d)}}}}}function RO(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=jt(a),o=0;o<i.length;o++){var l=i[o];n[l]=_h(a[l])}}function het(r,e,t){for(var a=e.transition,n=os(a)?Fn: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 vet(r,e,t){for(var a=0;a<LO.length;a++){var n=LO[a],i=k4[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<Fn.length;a++){var l=Fn[a];e[l]!=null&&(t[l]=e[l])}}function det(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,l=e.transition;if(o&&!os(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&&(os(l)||os(o)||Bt(l,"style")>=0)){var d=r.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=a.style={});for(var y=jt(t),u=0;u<y.length;u++){var c=y[u];if(p[c]){var h=n[c];i[c]=h}}}}}}}function pet(r,e){return _r(r)?r!==e:r!=null&&isFinite(r)}var V4=$t(),get=["percent","easing","shape","style","extra"];function G4(r){r.stopAnimation("keyframe"),r.attr(V4(r))}function ly(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(it(e)){N(e,function(l){ly(r,l,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=df("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=V4(r);N(oy,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=jt(h);if(l||(d=te(d,function(m){return Bt(get,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",YT="blur",XT="select",Uo=[Mo,Li,YT,XT],Mx={normal:["itemStyle"],emphasis:[Li,"itemStyle"],blur:[YT,"itemStyle"],select:[XT,"itemStyle"]},Lx={normal:["label"],emphasis:[Li,"label"],blur:[YT,"label"],select:[XT,"label"]},yet=["x","y"],met="e\0\0",ka={normal:{},emphasis:{},blur:{},select:{}},_et={cartesian2d:Qtt,geo:tet,single:ret,polar:net,calendar:iet};function LS(r){return r instanceof Ft}function ES(r){return r instanceof qa}function xet(r,e){e.copyTransform(r),ES(e)&&ES(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,LS(e)&&LS(r)&&e.setShape(r.shape))}var bet=(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=IO(t,l,a,n);o||s.removeAll(),l.diff(o).add(function(h){Ex(n,null,h,u(h,i),t,s,l)}).remove(function(h){var d=o.getItemGraphicEl(h);d&&lm(d,Mi(d).option,t)}).update(function(h,d){var p=o.getItemGraphicEl(d);Ex(n,p,h,u(h,i),t,s,l)}).execute();var c=t.get("clip",!0)?wv(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=IO(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=Ex(null,null,h,s(h,o),a,this.group,l);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(t){Yo(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 WT(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=F4(a);t=gv(i,null,n,a.layout||"center"),Mi(t).customPathData=i}else if(e==="image")t=new lr({}),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=ky(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 ZT(r,e,t,a,n,i,o){G4(e);var l=n&&n.normal.cfg;l&&e.setTextConfig(l),a&&a.transition==null&&(a.transition=yet);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=LS(e)?s.decal:null;r&&h&&(h.dirty=!0,c=ef(h,r)),s.__decalPattern=c}if(ES(e)&&s){var c=s.__decalPattern;c&&(s.decal=c)}hg(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),ly(e,a.keyframeAnimation,i)}function H4(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),cs(i)}}function wet(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<Uo.length;l++)Tet(a,e,Uo[l])}}function Tet(r,e,t){var a=t===Mo,n=a?e:sy(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function IO(r,e,t,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):_et[i.type](i));for(var l=xt({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:B,font:G},o.api||{}),s={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:Aet(r.getData())},u,c,h={},d={},p={},y={},m=0;m<Uo.length;m++){var _=Uo[m];p[_]=r.getModel(Mx[_]),y[_]=r.getModel(Lx[_])}function b(H){return H===u?c||(c=e.getItemModel(H)):e.getItemModel(H)}function S(H,F){return e.hasItemOption?H===u?h[F]||(h[F]=b(H).getModel(Mx[F])):b(H).getModel(Mx[F]):p[F]}function w(H,F){return e.hasItemOption?H===u?d[F]||(d[F]=b(H).getModel(Lx[F])):b(H).getModel(Lx[F]):y[F]}return function(H,F){return u=H,c=null,h={},d={},n&&n(xt({dataIndexInside:H,dataIndex:e.getRawIndex(H),actionType:F?F.type:null},s),l)};function A(H,F){return F==null&&(F=u),e.getStore().get(e.getDimensionIndex(H||0),F)}function M(H,F){F==null&&(F=u),H=H||0;var k=e.getDimensionInfo(H);if(!k){var j=e.getDimensionIndex(H);return j>=0?e.getStore().get(j,F):void 0}var Y=e.get(k.name,F),$=k&&k.ordinalMeta;return $?$.categories[Y]:Y}function D(H,F){F==null&&(F=u);var k=e.getItemVisual(F,"style"),j=k&&k.fill,Y=k&&k.opacity,$=S(F,Mo).getItemStyle();j!=null&&($.fill=j),Y!=null&&($.opacity=Y);var tt={inheritColor:vt(j)?j:"#000"},U=w(F,Mo),W=_e(U,null,tt,!1,!0);W.text=U.getShallow("show")?Et(r.getFormattedLabel(F,Mo),rf(e,F)):null;var at=zg(U,tt,!1);return R(H,$),$=DO($,W,at),H&&E($,H),$.legacy=!0,$}function L(H,F){F==null&&(F=u);var k=S(F,Li).getItemStyle(),j=w(F,Li),Y=_e(j,null,null,!0,!0);Y.text=j.getShallow("show")?dn(r.getFormattedLabel(F,Li),r.getFormattedLabel(F,Mo),rf(e,F)):null;var $=zg(j,null,!0);return R(H,k),k=DO(k,Y,$),H&&E(k,H),k.legacy=!0,k}function E(H,F){for(var k in F)gt(F,k)&&(H[k]=F[k])}function R(H,F){H&&(H.textFill&&(F.textFill=H.textFill),H.textPosition&&(F.textPosition=H.textPosition))}function O(H,F){if(F==null&&(F=u),gt(AO,H)){var k=e.getItemVisual(F,"style");return k?k[AO[H]]:null}if(gt(qtt,H))return e.getItemVisual(F,H)}function P(H){if(i.type==="cartesian2d"){var F=i.getBaseAxis();return QY(xt({axis:F},H))}}function B(){return t.getCurrentSeriesIndices()}function G(H){return Dw(H,t)}}function Aet(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 Ex(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&&Re(l,a.focus,a.blurScope,a.emphasisDisabled),l}function qT(r,e,t,a,n,i){var o=-1,l=e;e&&U4(e,a,n)&&(o=Bt(i.childrenRef(),e),e=null);var s=!e,u=e;u?u.clearStates():(u=WT(a),l&&xet(l,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ka.normal.cfg=ka.normal.conOpt=ka.emphasis.cfg=ka.emphasis.conOpt=ka.blur.cfg=ka.blur.conOpt=ka.select.cfg=ka.select.conOpt=null,ka.isLegacy=!1,Det(u,t,a,n,s,ka),Cet(u,t,a,n,s),ZT(r,u,t,a,ka,n,s),gt(a,"info")&&(Mi(u).info=a.info);for(var c=0;c<Uo.length;c++){var h=Uo[c];if(h!==Mo){var d=sy(a,h),p=$T(a,d,h);H4(h,u,d,p,ka)}}return wet(u,a,n),a.type==="group"&&Met(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function U4(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"&&Iet(i)&&F4(i)!==a.customPathData||n==="image"&&gt(o,"image")&&o.image!==a.customImagePath}function Cet(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&&U4(o,i,a)&&(o=null),o||(o=WT(i),r.setClipPath(o)),ZT(null,o,e,i,null,a,n)}}function Det(r,e,t,a,n,i){if(!r.isGroup){OO(t,null,i),OO(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=WT(o),r.setTextContent(c)),ZT(null,c,e,o,null,a,n);for(var h=o&&o.style,d=0;d<Uo.length;d++){var p=Uo[d];if(p!==Mo){var y=i[p].conOpt;H4(p,c,y,$T(o,y,p),null)}}h?c.dirty():c.markRedraw()}}}}function OO(r,e,t){var a=e?sy(r,e):r,n=e?$T(r,a,Li):r.style,i=r.type,o=a?a.textConfig:null,l=r.textContent,s=l?e?sy(l,e):l:null;if(n&&(t.isLegacy||P4(n,i,!!o,!!s))){t.isLegacy=!0;var u=z4(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 sy(r,e){return e?r?r[e]:null:r}function $T(r,e,t){var a=e&&e.style;return a==null&&t===Li&&r&&(a=r.styleEmphasis),a}function Met(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){Eet({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);Let(e,y,n)}}}function Let(r,e,t){e&&lm(e,Mi(r).option,t)}function Eet(r){new Oi(r.oldChildren,r.newChildren,NO,NO,r).add(PO).update(PO).remove(Ret).execute()}function NO(r,e){var t=r&&r.name;return t??met+e}function PO(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 Ret(r){var e=this.context,t=e.oldChildren[r];t&&lm(t,Mi(t).option,e.seriesModel)}function F4(r){return r&&(r.pathData||r.d)}function Iet(r){return r&&(gt(r,"pathData")||gt(r,"d"))}function Oet(r){r.registerChartView(bet),r.registerSeriesModel($tt)}var jl=$t(),zO=Tt,Rx=dt,KT=(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=Rt(kO,t,h);this.updatePointerEl(l,u,d),this.updateLabelEl(l,u,d,t)}VO(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=_T(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 _s[i.type](zO(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=jl(e).labelEl=new Xt(zO(t.label));e.add(i),BO(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}),BO(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=pf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ei(u.event)},onmousedown:Rx(this._onHandleDragMove,this,0,0),drift:Rx(this._onHandleDragMove,this),ondragend:Rx(this._onHandleDragEnd,this)}),a.add(n)),VO(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,Sf(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,l)}},r.prototype._moveHandleToValue=function(e,t){kO(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Ix(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(Ix(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Ix(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),Yh(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 kO(r,e,t,a){j4(jl(t).lastProp,a)||(jl(t).lastProp=a,e?Jt(t,a,r):(t.stopAnimation(),t.attr(a)))}function j4(r,e){if(St(r)&&St(e)){var t=!0;return N(e,function(a,n){t=t&&j4(r[n],a)}),!!t}else return r===e}function BO(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Ix(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function VO(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 QT(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 Y4(r,e,t,a,n){var i=t.get("value"),o=X4(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),l=t.getModel("label"),s=xs(l.get("padding")||0),u=l.getFont(),c=cv(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),Net(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 Net(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 X4(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:sT(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 JT(r,e,t){var a=aa();return jo(a,a,t.rotation),_n(a,a,t.position),yn([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function W4(r,e,t,a,n,i){var o=Ur.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),Y4(e,a,n,i,{position:JT(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function t2(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function Z4(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function GO(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var Pet=(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=HO(s,l).getOtherAxis(l).getGlobalExtent(),h=l.toGlobalCoord(l.dataToCoord(a,!0));if(u&&u!=="none"){var d=QT(i),p=zet[u](l,h,c);p.style=d,t.graphicKey=p.type,t.pointer=p}var y=fS(s.model,n);W4(a,t,y,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=fS(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=JT(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=HO(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})(KT);function HO(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var zet={line:function(r,e,t){var a=t2([e,t[0]],[e,t[1]],UO(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:Z4([e-a/2,t[0]],[a,n],UO(r))}}};function UO(r){return r.dim==="x"?0:1}var ket=(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(),Bet=N;function q4(r,e,t){if(!Ut.node){var a=e.getZr();Di(a).records||(Di(a).records={}),Vet(a,e);var n=Di(a).records[r]||(Di(a).records[r]={});n.handler=t}}function Vet(r,e){if(Di(r).initialized)return;Di(r).initialized=!0,t("click",Rt(FO,"click")),t("mousemove",Rt(FO,"mousemove")),t("globalout",Het);function t(a,n){r.on(a,function(i){var o=Uet(e);Bet(Di(r).records,function(l){l&&n(l,i,o.dispatchAction)}),Get(o.pendings,e)})}}function Get(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 Het(r,e,t){r.handler("leave",null,t)}function FO(r,e,t,a){e.handler(r,t,a)}function Uet(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 RS(r,e){if(!Ut.node){var t=e.getZr(),a=(Di(t).records||{})[r];a&&(Di(t).records[r]=null)}}var Fet=(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";q4("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){RS("axisPointer",a)},e.prototype.dispose=function(t,a){RS("axisPointer",a)},e.type="axisPointer",e})(we);function $4(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=us(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 jO=$t();function jet(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){vg(n)&&(n=$4({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var s=vg(n),u=i.axesInfo,c=l.axesInfo,h=a==="leave"||vg(n),d={},p={},y={list:[],map:{}},m={showPointer:Rt(Xet,p),showTooltip:Rt(Wet,y)};N(l.coordSysMap,function(b,S){var w=s||b.containPoint(n);N(l.coordSysAxesInfo[S],function(A,M){var D=A.axis,L=Ket(u,A);if(!h&&w&&(!u||L)){var E=L&&L.value;E==null&&!s&&(E=D.pointToData(n)),E!=null&&YO(A,E,m,!1,d)}})});var _={};return N(c,function(b,S){var w=b.linkGroup;w&&!p[S]&&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,XO(A),XO(b)))),_[b.key]=L}})}),N(_,function(b,S){YO(c[S],b,m,!0,d)}),Zet(p,c,d),qet(y,n,r,o),$et(c,o,t),d}}function YO(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=Yet(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 Yet(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 Xet(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function Wet(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=Qh(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 Zet(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 qet(r,e,t,a){if(vg(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 $et(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=jO(a)[n]||{},o=jO(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 Ket(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 XO(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 vg(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Lv(r){ws.registerAxisPointerClass("CartesianAxisPointer",Pet),r.registerComponentModel(ket),r.registerComponentView(Fet),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=iq(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jet)}function Qet(r){Gt(TB),Gt(Lv)}var Jet=(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=QT(i),y=ert[d](l,s,h,c);y.style=p,t.graphicKey=y.type,t.pointer=y}var m=i.get(["label","margin"]),_=trt(a,n,i,s,m);Y4(t,n,i,o,_)},e})(KT);function trt(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=aa();jo(d,d,l),_n(d,d,[a.cx,a.cy]),u=yn([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 ert={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:t2(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:GO(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:GO(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}},rrt=(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),e2=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ye).models[0]},e.type="polarAxis",e})(Ht);Pe(e2,Cf);var art=(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})(e2),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="radiusAxis",e})(e2),r2=(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})(tn);r2.prototype.dataToRadius=tn.prototype.dataToCoord;r2.prototype.radiusToData=tn.prototype.coordToData;var irt=$t(),a2=(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=cv(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=irt(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})(tn);a2.prototype.dataToAngle=tn.prototype.dataToCoord;a2.prototype.angleToData=tn.prototype.coordToData;var K4=["radius","angle"],ort=(function(){function r(e){this.dimensions=K4,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new r2,this._angleAxis=new a2,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=WO(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=WO(t);return n===this?this.pointToData(a):null},r})();function WO(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function lrt(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 srt(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)})}}),vs(a.scale,a.model),vs(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 urt(r){return r.mainType==="angleAxis"}function ZO(r,e){var t;if(r.type=e.get("type"),r.scale=xv(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),urt(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 frt={dimensions:K4,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new ort(n+"");i.update=srt;var o=i.getRadiusAxis(),l=i.getAngleAxis(),s=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");ZO(o,s),ZO(l,u),lrt(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",Ye).models[0];a.coordinateSystem=n.coordinateSystem}}),t}},crt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Hp(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 Up(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 hrt=(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(crt,function(c){t.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine")&&vrt[c](this.group,t,i,l,s,o,u)},this)}},e.type="angleAxis",e})(ws),vrt={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=Up(t),h=c?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[h]===0?d=new _s[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 cf({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[Up(t)],u=ot(a,function(c){return new Qe({shape:Hp(t,[s,s+l],c.coord)})});r.add(ga(u,{style:xt(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[Up(t)],c=[],h=0;h<n.length;h++)for(var d=0;d<n[h].length;d++)c.push(new Qe({shape:Hp(t,[u,u+s],n[h][d].coord)}));r.add(ga(c,{style:xt(l.getModel("lineStyle").getLineStyle(),xt(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[Up(t)],_=t.coordToPoint([m+u,h.coord]),b=t.cx,S=t.cy,w=Math.abs(_[0]-b)/m<.3?"center":_[0]>b?"left":"right",A=Math.abs(_[1]-S)/m<.3?"middle":_[1]>S?"top":"bottom";if(l&&l[y]){var M=l[y];St(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:Hp(t,i,a[h].coord)}))}for(var h=0;h<c.length;h++)r.add(ga(c[h],{style:xt({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:Hp(t,i,n[u][c].coord)}));r.add(ga(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 S=_===b?a[0].coord:a[_].coord,w=u++%s.length;c[w]=c[w]||[],c[w].push(new Ir({shape:{cx:t.cx,cy:t.cy,r0:p,r:y,startAngle:d,endAngle:-S*h,clockwise:m},silent:!0})),d=-S*h}for(var _=0;_<c.length;_++)r.add(ga(c[_],{style:xt({fill:s[_%s.length]},l.getAreaStyle()),silent:!0}))}}},drt=["axisLine","axisTickLabel","axisName"],prt=["splitLine","splitArea","minorSplitLine"],grt=(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=mrt(l,t,h),y=new Ur(t,p);N(drt,y.add,y),i.add(y.getGroup()),yv(n,i,t),N(prt,function(m){t.get([m,"show"])&&!o.scale.isBlank()&&yrt[m](this.group,t,l,h,d,u,c)},this)}},e.type="radiusAxis",e})(ws),yrt={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 _s[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(ga(y[m],{style:xt({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 Xn({shape:{cx:t.cx,cy:t.cy,r:o[c][h].coord}}));r.add(ga(u,{style:xt({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 Ir({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(ga(c[d],{style:xt({fill:s[d%s.length]},l.getAreaStyle()),silent:!0}))}}};function mrt(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 Q4(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function J4(r,e){return e.dim+r.model.componentIndex}function _rt(r,e,t){var a={},n=xrt(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=J4(l,s),c=Q4(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,S=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,E=L.get("startValue"),R=y.dataToCoord(E||0),O=0,P=o.count();O<P;O++){var B=o.get(w,O),G=o.get(A,O),H=B>=0?"p":"n",F=R;M&&(a[c][G]||(a[c][G]={p:R,n:R}),F=a[c][G][H]);var k=void 0,j=void 0,Y=void 0,$=void 0;if(y.dim==="radius"){var tt=y.dataToCoord(B)-R,U=s.dataToCoord(G);Math.abs(tt)<b&&(tt=(tt<0?-1:1)*b),k=F,j=F+tt,Y=U-d,$=Y-p,M&&(a[c][G][H]=j)}else{var W=y.dataToCoord(B,D)-R,at=s.dataToCoord(G);Math.abs(W)<S&&(W=(W<0?-1:1)*S),k=at+d,j=k+p,Y=F,$=F+W,M&&(a[c][G][H]=$)}o.setItemLayout(O,{cx:m,cy:_,r0:k,r:j,startAngle:-Y*Math.PI/180,endAngle:-$*Math.PI/180,clockwise:Y>=$})}}})}function xrt(r){var e={};N(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,l=o.getBaseAxis(),s=J4(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=Q4(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 brt={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Srt={splitNumber:5},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="polar",e})(we);function Trt(r){Gt(Lv),ws.registerAxisPointerClass("PolarAxisPointer",Jet),r.registerCoordinateSystem("polar",frt),r.registerComponentModel(rrt),r.registerComponentView(wrt),af(r,"angle",art,brt),af(r,"radius",nrt,Srt),r.registerComponentView(hrt),r.registerComponentView(grt),r.registerLayout(Rt(_rt,"bar"))}function IS(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),rr(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 Art=["axisLine","axisTickLabel","axisName"],Crt=["splitArea","splitLine"],Drt=(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=IS(t),u=new Ur(t,s);N(Art,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),N(Crt,function(c){t.get([c,"show"])&&Mrt[c](this,this.group,this._axisGroup,t)},this),yv(l,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){bB(this)},e.type="singleAxis",e})(ws),Mrt={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 S=new Qe({shape:{x1:y[0],y1:y[1],x2:m[0],y2:m[1]},silent:!0});Ju(S.shape,s);var w=d++%l.length;h[w]=h[w]||[],h[w].push(S)}for(var A=o.getLineStyle(["color"]),_=0;_<h.length;++_)e.add(ga(h[_],{style:xt({stroke:l[_%l.length]},A),silent:!0}))}},splitArea:function(r,e,t,a){xB(r,t,a,a)}},dg=(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);Pe(dg,Cf.prototype);var Lrt=(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})(tn),tV=["single"],Ert=(function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=tV,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 Lrt(n,xv(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),vs(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=$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.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function Rrt(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new Ert(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",Ye).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var Irt={create:Rrt,dimensions:tV},KO=["x","y"],Ort=["width","height"],Nrt=(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=Ox(s,1-uy(l)),c=s.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var d=QT(i),p=Prt[h](l,c,u);p.style=d,t.graphicKey=p.type,t.pointer=p}var y=IS(n);W4(a,t,y,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=IS(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=JT(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=uy(o),u=Ox(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=Ox(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})(KT),Prt={line:function(r,e,t){var a=t2([e,t[0]],[e,t[1]],uy(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:Z4([e-a/2,t[0]],[a,n],uy(r))}}};function uy(r){return r.isHorizontal()?0:1}function Ox(r,e){var t=r.getRect();return[t[KO[e]],t[KO[e]]+t[Ort[e]]]}var zrt=(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 krt(r){Gt(Lv),ws.registerAxisPointerClass("SingleAxisPointer",Nrt),r.registerComponentView(zrt),r.registerComponentView(Drt),r.registerComponentModel(dg),af(r,"single",dg,dg.defaultOption),r.registerCoordinateSystem("single",Irt)}var Brt=(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=mf(t);r.prototype.init.apply(this,arguments),QO(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),QO(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 QO(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 G9(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Go(r,e,{type:"box",ignoreSize:n})}var 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.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 Pr({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?z9(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,_),S=new Xt({z2:30,style:_e(o,{text:b}),silent:o.get("silent")});S.attr(this._yearTextPositionControl(S,p[s],n,s,l)),i.add(S)}},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=Vb(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(),S=this._firstDayOfMonth[_];if(y){var w=this._firstDayPoints[_];b[p]=(w[p]+h[0][_+1][p])/2}var A=o.get("formatter"),M=l[+S.m-1],D={yyyy:S.y,yy:(S.y+"").slice(2),MM:S.m,M:+S.m,nameMap:M},L=this._formatterLabel(A,D),E=new Xt({z2:30,style:rt(_e(o,{text:L}),this._monthTextPositionControl(b,y,n,u,s)),silent:m});i.add(E)}}},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=Vb(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 S=s.getNextNDay(y,b),w=s.dataToRect([S.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),Nx=864e5,Grt=(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=xa(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+Nx))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=JO(t);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=JO(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/Nx)-Math.floor(t[0].time/Nx)+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 JO(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function Hrt(r){r.registerComponentModel(Brt),r.registerComponentView(Vrt),r.registerCoordinateSystem("calendar",Grt)}function Urt(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 tN(r,e){var t;return N(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function Frt(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}),F5(t,n),Fp(t,n),Fp(t,n,"shape"),Fp(t,n,"style"),Fp(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var eV=["transition","enterFrom","leaveTo"],jrt=eV.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Fp(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?eV:jrt,n=0;n<a.length;n++){var i=a[n];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function Yrt(r,e){if(r&&(r.hv=e.hv=[tN(e,["left","right"]),tN(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 Xrt=(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=HP(o,l,"normalMerge"),u=this._elOptionsToUpdate=[];N(s,function(c,h){var d=c.newOption;d&&(u.push(d),Urt(c,d),Frt(o,h,d),Yrt(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),eN={path:null,compoundPath:null,group:Ct,image:lr,text:Xt},Ua=$t(),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.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&&P4(y,p,!!_,!!m)){var b=z4(y,p,!0);!_&&b.textConfig&&(_=s.textConfig=b.textConfig),!m&&b.textContent&&(m=b.textContent)}var S=Zrt(s),w=s.$action||"merge",A=w==="merge",M=w==="replace";if(A){var D=!c,L=c;D?L=rN(u,d,s.type,n):(L&&(Ua(L).isNew=!1),G4(L)),L&&(hg(L,S,t,{isInit:D}),aN(L,s,o,l))}else if(M){pg(c,s,n,t);var E=rN(u,d,s.type,n);E&&(hg(E,S,t,{isInit:!0}),aN(E,s,o,l))}else w==="remove"&&(B4(c,s),pg(c,s,n,t));var R=n.get(u);if(R&&m)if(A){var O=R.getTextContent();O?O.attr(m):R.setTextContent(new Xt(m))}else M&&R.setTextContent(new Xt(m));if(R){var P=s.clipPath;if(P){var B=P.type,G=void 0,D=!1;if(A){var H=R.getClipPath();D=!H||Ua(H).type!==B,G=D?OS(B):H}else M&&(D=!0,G=OS(B));R.setClipPath(G),hg(G,P,t,{isInit:D}),ly(G,P.keyframeAnimation,t)}var F=Ua(R);R.setTextConfig(_),F.option=s,qrt(R,t,s),ms({el:R,componentModel:t,itemName:R.name,itemTooltipOption:s.tooltip}),ly(R,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),S=y===i?{width:l,height:s}:{width:b.width,height:b.height},w={},A=jy(p,h,S,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 E=u[L],R=w[E];M&&(os(M)||Bt(M,E)>=0)?D[E]=R:p[E]=R}Jt(p,D,t,0)}else p.attr(w)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){pg(n,Ua(n).option,a,t._lastGraphicModel)}),this._elMap=mt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(we);function OS(r){var e=gt(eN,r)?eN[r]:ky(r),t=new e({});return Ua(t).type=r,t}function rN(r,e,t,a){var n=OS(t);return e.add(n),a.set(r,n),Ua(n).id=r,Ua(n).isNew=!0,n}function pg(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){pg(i,e,t,a)}),lm(r,e,a),t.removeKey(Ua(r).id))}function aN(r,e,t,a){r.isGroup||N([["cursor",qa.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];gt(e,i)?r[i]=Et(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),N(jt(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 Zrt(r){return r=rt({},r),N(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(U5),function(e){delete r[e]}),r}function qrt(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 $rt(r){r.registerComponentModel(Xrt),r.registerComponentView(Wrt),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 nN=["x","y","radius","angle","single"],Krt=["cartesian2d","polar","singleAxis"];function Qrt(r){var e=r.get("coordinateSystem");return Bt(Krt,e)>=0}function Lo(r){return r+"Axis"}function Jrt(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 rV(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 Px=(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})(),nv=(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=iN(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=iN(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(nN,function(n){var i=this.getReferringComponents(Lo(n),M7);if(i.specified){a=!0;var o=new Px;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 Px;if(d.add(h.componentIndex),t.set(c,d),i=!1,c==="x"||c==="y"){var p=h.getReferringComponents("grid",Ye).models[0];p&&N(u,function(y){h.componentIndex!==y.componentIndex&&p===y.getReferringComponents("grid",Ye).models[0]&&d.add(y.componentIndex)})}}}i&&N(nN,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 Px;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 iN(r){var e={};return N(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var tat=(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})(nv),n2=(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),eat=(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})(n2),Pu=N,oN=ya,rat=(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(Qrt(t)){var a=Lo(this._dimName),n=t.getReferringComponents(a,Ye).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;Pu(["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}),oN(s),oN(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";Ts(0,d,y,"all",c["min"+b],c["max"+b]);for(var S=0;S<2;S++)p[S]=oe(d[S],y,m,!0),_&&(p[S]=n.parse(p[S]))}return{valueWindow:s,percentWindow:l}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=aat(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;Pu(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 S=h.get(d[b],p),w=!isNaN(S),A=S<o[0],M=S>o[1];if(w&&!A&&!M)return!0;w&&(_=!0),A&&(y=!0),M&&(m=!0)}return _&&y&&m})}else Pu(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)}});Pu(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;Pu(["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=lw(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 aat(r,e,t){var a=[1/0,-1/0];Pu(t,function(o){xX(a,o.getData(),e)});var n=r.getAxisModel(),i=xk(n.axis.scale,n,a).calculate();return[i.min,i.max]}var nat={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 rat(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 iat(r){r.registerAction("dataZoom",function(e,t){var a=Jrt(t,e);N(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var lN=!1;function i2(r){lN||(lN=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,nat),iat(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function oat(r){r.registerComponentModel(tat),r.registerComponentView(eat),i2(r)}var ja=(function(){function r(){}return r})(),aV={};function zu(r,e){aV[r]=e}function nV(r){return aV[r]}var lat=(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=nV(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 sat(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=Xe(a,i,n);as(e.get("orient"),r,e.get("itemGap"),o.width,o.height),jy(r,a,i,n)}function iV(r,e){var t=xs(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 uat=(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(Rt(d,null)).execute(),this._featureNames=h;function d(y,m){var _=h[y],b=h[m],S=u[_],w=new ee(S,t,t.ecModel),A;if(i&&i.newTitle!=null&&i.featureName===_&&(S.title=i.newTitle),_&&!b){if(fat(_))A={onclick:w.option.onclick,featureName:_};else{var M=nV(_);if(!M)return;A=new M}c[_]=A}else if(A=c[b],!A)return;A.uid=yf("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,E){var R=this.option,O=this.iconPaths;R.iconStatus=R.iconStatus||{},R.iconStatus[L]=E,O[L]&&(E==="emphasis"?Ri:Ii)(O[L])},A instanceof ja&&A.render&&A.render(w,a,n,i)}function p(y,m,_){var b=y.getModel("iconStyle"),S=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(E,R){var O=pf(E,{},{x:-l/2,y:-l/2,width:l,height:l});O.setStyle(b.getItemStyle());var P=O.ensureState("emphasis");P.style=S.getItemStyle();var B=new Xt({style:{text:D[R],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:Dw({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},a)},ignore:!0});O.setTextContent(B),ms({el:O,componentModel:t,itemName:R,formatterParamsExtra:{title:D[R]}}),O.__title=D[R],O.on("mouseover",function(){var G=S.getItemStyle(),H=s?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";B.setStyle({fill:S.get("textFill")||G.fill||G.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),O.setTextConfig({position:S.get("textPosition")||H}),B.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",R])!=="emphasis"&&n.leaveEmphasis(this),B.hide()}),(y.get(["iconStatus",R])==="emphasis"?Ri:Ii)(O),o.add(O),O.on("click",dt(m.onclick,m,a,n,R)),L[R]=O})}sat(o,t,n),o.add(iV(o.getBoundingRect(),t)),s||o.eachChild(function(y){var m=y.__title,_=y.ensureState("emphasis"),b=_.textConfig||(_.textConfig={}),S=y.getTextContent(),w=S&&S.ensureState("emphasis");if(w&&!_t(w)&&m){var A=w.style||(w.style={}),M=cv(m,Xt.makeFont(A)),D=y.x+o.x,L=y.y+o.y+l,E=!1;L+M.height>n.getHeight()&&(b.position="top",E=!0);var R=E?-5-M.height:l+10;D+M.width/2>n.getWidth()?(b.position=["100%",R],A.align="right"):D-M.width/2<0&&(b.position=[0,R],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 fat(r){return r.indexOf("my")===0}var cat=(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=Ut.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 S=new Blob([b]);window.navigator.msSaveOrOpenBlob(S,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>',E=window.open();E.document.write(L),E.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),sN="__ec_magicType_stack__",hat=[["line","bar"],["stack"]],vat=(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(uN[n]){var l={series:[]},s=function(h){var d=h.subType,p=h.id,y=uN[n](d,p,h,i);y&&(xt(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,S=b+"Axis",w=h.getReferringComponents(S,Ye).models[0],A=w.componentIndex;l[S]=l[S]||[];for(var M=0;M<=A;M++)l[S][A]=l[S][A]||{};l[S][A].boundaryGap=n==="bar"}}};N(hat,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),uN={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")===sN;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),It({id:e,stack:n?"":sN},a.get(["option","stack"])||{},!0)}};Sn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var sm=new Array(60).join("-"),lf=" ";function dat(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 pat(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(lf)],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(lf))}e.push(u.join(`
89
+ `))}),e.join(`
90
+
91
+ `+sm+`
92
+
93
+ `)}function gat(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+lf:"")+n.join(lf))}),a.join(`
94
+ `)}).join(`
95
+
96
+ `+sm+`
97
+
98
+ `)}function yat(r){var e=dat(r);return{value:te([pat(e.seriesGroupByCategoryAxis),gat(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
99
+
100
+ `+sm+`
101
+
102
+ `),meta:e.meta}}function fy(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mat(r){var e=r.slice(0,r.indexOf(`
103
+ `));if(e.indexOf(lf)>=0)return!0}var NS=new RegExp("["+lf+"]+","g");function _at(r){for(var e=r.split(/\n+/g),t=fy(e.shift()).split(NS),a=[],n=ot(t,function(s){return{name:s,data:[]}}),i=0;i<e.length;i++){var o=fy(e[i]).split(NS);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 xat(r){for(var e=r.split(/\n+/g),t=fy(e.shift()),a=[],n=0;n<e.length;n++){var i=fy(e[n]);if(i){var o=i.split(NS),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 bat(r,e){var t=r.split(new RegExp(`
104
+ *`+sm+`
105
+ *`,"g")),a={series:[]};return N(t,function(n,i){if(mat(n)){var o=_at(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=xat(n);a.series.push(o)}}),a}var Sat=(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=yat(t);if(_t(h)){var y=h(a.getOption());vt(y)?u.innerHTML=y:ls(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 S="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");S+=";background-color:"+i.get("buttonColor"),S+=";color:"+i.get("buttonTextColor");var M=this;function D(){n.removeChild(o),M._dom=null}fb(w,"click",D),fb(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=bat(c.value,_)}catch(E){throw D(),new Error("Data view format error "+E)}L&&a.dispatchAction({type:"changeDataView",newOption:L}),D()}),w.innerHTML=s[1],A.innerHTML=s[2],A.style.cssText=w.style.cssText=S,!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 wat(r,e){return ot(r,function(t,a){var n=e&&e[a];if(St(n)&&!it(n)){var i=St(t)&&!it(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=xt(t,n),o&&delete t.name,t}else return t})}Sn({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:wat(a.data,i)})}}),e.mergeOption(xt({series:t},r.newOption))});var oV=N,lV=$t();function Tat(r,e){var t=o2(r);oV(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 Aat(r){var e=o2(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return oV(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 Cat(r){lV(r).snapshots=null}function Dat(r){return o2(r).length}function o2(r){var e=lV(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Mat=(function(r){Z(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){Cat(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);Sn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Lat=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],l2=(function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=fN(t,e);N(Eat,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=zx[a.brushType](0,i,n);a.__rangeOffset={offset:dN[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=zx[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=zx[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?dN[a.brushType](i.values,o.offset,Rat(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:p4(n),isTargetByCursor:y4(n,e,a.coordSysModel),getLinearBrushOtherExtent:g4(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=fN(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<cN.length;s++)if(cN[s](n,o))return o}return!0},r})();function PS(r){return r[0]>r[1]&&r.reverse(),r}function fN(r,e){return bh(r,e,{includeMainTypes:Lat})}var Eat={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:hN.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:hN.geo})})}},cN=[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}],hN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Oo(r)),e}},zx={lineX:Rt(vN,0),lineY:Rt(vN,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=[PS([n[0],i[0]]),PS([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 vN(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=PS(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 dN={lineX:Rt(pN,0),lineY:Rt(pN,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 pN(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function Rat(r,e){var t=gN(r),a=gN(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 gN(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var zS=N,Iat=w7("toolbox-dataZoom_"),Oat=(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 NT(n.getZr()),this._brushController.on("brush",dt(this._onBrush,this)).mount()),zat(t,a,this,i,n),Pat(t,a)},e.prototype.onclick=function(t,a,n){Nat[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 l2(s2(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)}}),Tat(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=Ts(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=[];zS(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),Nat={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Aat(this.ecModel))}};function s2(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 Pat(r,e){r.setIconStatus("back",Dat(e)>1?"emphasis":"normal")}function zat(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 l2(s2(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)}X9("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=s2(a),o=bh(r,i);zS(o.xAxisModels,function(s){return l(s,"xAxis","xAxisIndex")}),zS(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:Iat+u+h};d[c]=h,n.push(d)}return n});function kat(r){r.registerComponentModel(lat),r.registerComponentView(uat),zu("saveAsImage",cat),zu("magicType",vat),zu("dataView",Sat),zu("dataZoom",Oat),zu("restore",Mat),Gt(oat)}var Bat=(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 sV(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function uV(r){if(Ut.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var fV=uV(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Vat=uV(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function cV(r,e){if(!r)return e;e=Pw(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function Gat(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var Hat=cV(Vat,"transition"),u2=cV(fV,"transform"),Uat="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ut.transform3dSupported?"will-change:transform;":"");function Fat(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function jat(r,e,t){if(!vt(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=hs(e);var i=Fat(t),o=Math.max(Math.round(n)*1.5,6),l="",s=u2+":",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 Yat(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+=Ut.transformSupported?","+u2+a:",left"+a+",top"+a),Hat+":"+n}function yN(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!Ut.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ut.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+u2+":"+o+";":[["top",0],["left",0],[fV,o]]}function Xat(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=Et(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 Wat(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=xz(r,"html"),d=s+"px "+u+"px "+o+"px "+l;return a.push("box-shadow:"+d),e&&n&&a.push(Yat(n,t)),i&&a.push("background-color:"+i),N(["width","color","radius"],function(p){var y="border-"+p,m=Pw(y),_=r.get(m);_!=null&&a.push(y+":"+_+(p==="color"?"":"px"))}),a.push(Xat(c)),h!=null&&a.push("padding:"+xs(h).join("px ")+"px"),a.join(";")+";"}function mN(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&K8(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 Zat=(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,Ut.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):ls(i)?i:_t(i)&&i(e.getDom()));mN(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();Va(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=Gat(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=Uat+Wat(e,!this._firstShow,this._longHide)+yN(i[0],i[1],!0)+("border-color:"+hs(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"&&!sV(a)&&(l=jat(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++)ls(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(mN(a,this._zr,this._container,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=yN(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",Ut.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})(),qat=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),xN(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;St(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:xz(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=_N(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;xN(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=xo(i.borderWidth||0),l=_N(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 xo(r){return Math.max(0,r)}function _N(r){var e=xo(r.shadowBlur||0),t=xo(r.shadowOffsetX||0),a=xo(r.shadowOffsetY||0);return{left:xo(e-t),right:xo(e+t),top:xo(e-a),bottom:xo(e+a)}}function xN(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var $at=new Wt({shape:{x:-1,y:-1,width:2,height:2}}),Kat=(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(!(Ut.node||!a.getDom())){var n=t.getComponent("tooltip"),i=this._renderMode=E7(n.get("renderMode"));this._tooltipContent=i==="richText"?new qat(a):new Zat(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,a,n){if(!(Ut.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")?Sf(this,"_updatePosition",50,"fixRate"):Yh(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");q4("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||Ut.node||!n.getDom())){var o=bN(i,n);this._ticket="";var l=i.dataByCoordSys,s=ent(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=$at;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=$4(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(bN(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=Wc([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;$l(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=Wc([a.tooltipOption],i),s=this._renderMode,u=[],c=or("section",{blocks:[],noHeader:!0}),h=[],d=new x_;N(t,function(S){N(S.dataByAxis,function(w){var A=n.getComponent(w.axisDim+"Axis",w.axisIndex),M=w.value;if(!(!A||M==null)){var D=X4(M,A.axis,n,w.seriesDataIndices,w.valueLabelOpt),L=or("section",{header:D,noHeader:!Xa(D),sortBlocks:!0,blocks:[]});c.blocks.push(L),N(w.seriesDataIndices,function(E){var R=n.getSeriesByIndex(E.seriesIndex),O=E.dataIndexInside,P=R.getDataParams(O);if(!(P.dataIndex<0)){P.axisDim=w.axisDim,P.axisIndex=w.axisIndex,P.axisType=w.axisType,P.axisId=w.axisId,P.axisValue=sT(A.axis,{value:M}),P.axisValueLabel=D,P.marker=d.makeTooltipMarker("item",hs(P.color),s);var B=sE(R.formatTooltip(O,!0,null)),G=B.frag;if(G){var H=Wc([R],i).get("valueFormatter");L.blocks.push(H?rt({valueFormatter:H},G):G)}B.text&&h.push(B.text),u.push(P)}})}})}),c.blocks.reverse(),h.reverse();var p=a.position,y=l.get("order"),m=dE(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=Wc([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),S=new x_;b.marker=S.makeTooltipMarker("item",hs(b.color),p);var w=sE(u.formatTooltip(c,!1,h)),A=m.get("order"),M=m.get("valueFormatter"),D=w.frag,L=D?dE(M?rt({valueFormatter:M},D):D,S,p,A,i.get("useUTC"),m.get("textStyle")):w.text,E="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,L,b,E,t.offsetX,t.offsetY,t.position,t.target,S)}),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=Lr(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=Wc(h,this._tooltipModel,p?{position:p}:null),m=y.get("content"),_=Math.random()+"",b=new x_;this._showOrMove(y,function(){var S=Tt(y.get("formatterParams")||{});this._showTooltipContent(y,m,S,_,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,S=b&&b.axisType&&b.axisType.indexOf("time")>=0;p=d,S&&(p=mv(b.axisValue,p,_)),p=zw(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(St(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=tnt(a,y,h,t.get("borderWidth"));n=b[0],i=b[1]}else{var b=Qat(n,i,o,u,c,d?null:20,p?null:20);n=b[0],i=b[1]}if(d&&(n-=SN(d)?h[0]/2:d==="right"?h[0]:0),p&&(i-=SN(p)?h[1]/2:p==="bottom"?h[1]:0),sV(t)){var b=Jat(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,S){var w=_[S];o=o&&b.seriesIndex===w.seriesIndex&&b.dataIndex===w.dataIndex}),i&&N(d.seriesDataIndices,function(b){var S=b.seriesIndex,w=a[S],A=i[S];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){Ut.node||!a.getDom()||(Yh(this,"_updatePosition"),this._tooltipContent.dispose(),RS("itemTooltip",a))},e.type="tooltip",e})(we);function Wc(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 bN(r,e){return r.dispatchAction||dt(e.dispatchAction,e)}function Qat(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 Jat(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 tnt(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 SN(r){return r==="center"||r==="middle"}function ent(r,e,t){var a=hw(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=hv(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 rnt(r){Gt(Lv),r.registerComponentModel(Bat),r.registerComponentView(Kat),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ne),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ne)}var ant=["rect","polygon","keep","clear"];function nnt(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),int(l),e&&!l.length&&l.push.apply(l,ant)}}function int(r){var e={};N(r,function(t){e[t]=1}),r.length=0,N(e,function(t,a){r.push(a)})}var wN=N;function TN(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function kS(r,e,t){var a={};return wN(e,function(i){var o=a[i]=n();wN(r[i],function(l,s){if(nr.isValidType(s)){var u={type:s,visual:l};t&&t(u,i),o[s]=new nr(u),s==="opacity"&&(u=Tt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new nr(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function hV(r,e,t){var a;N(t,function(n){e.hasOwnProperty(n)&&TN(e[n])&&(a=!0)}),a&&N(t,function(n){e.hasOwnProperty(n)&&TN(e[n])?r[n]=Tt(e[n]):delete r[n]})}function ont(r,e,t,a,n,i){var o={};N(r,function(h){var d=nr.prepareVisualTypes(e[h]);o[h]=d});var l;function s(h){return Xw(t,l,h)}function u(h,d){Ez(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,S=_.length;b<S;b++){var w=_[b];m[w]&&m[w].applyVisual(h,s,u)}}}function lnt(r,e,t,a){var n={};return N(r,function(i){var o=nr.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,l){var s;a!=null&&(s=l.getDimensionIndex(a));function u(M){return Xw(l,h,M)}function c(M,D){Ez(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],S=0,w=b.length;S<w;S++){var A=b[S];_[A]&&_[A].applyVisual(y,u,c)}}}}}function snt(r){var e=r.brushType,t={point:function(a){return AN[e].point(a,t,r)},rect:function(a){return AN[e].rect(a,t,r)}};return t}var AN={lineX:CN(0),lineY:CN(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])||ih(n,i,n+o,i,a)||ih(n,i,n,i+l,a)||ih(n+o,i,n+o,i+l,a)||ih(n,i+l,n+o,i+l,a))return!0}}};function CN(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,l=a[r];return Zc(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(),Zc(l[0],o)||Zc(l[1],o)||Zc(o[0],l)||Zc(o[1],l)}}}}function Zc(r,e){return e[0]<=r&&r<=e[1]}var DN=["inBrush","outOfBrush"],kx="__ecBrushSelect",BS="__ecInBrushSelectEvent";function vV(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new l2(e.option,r);t.setInputRanges(e.areas,r)})}function unt(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})}),vV(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=vnt[M.brushType],L=xt({boundingRect:D?D(M):void 0},M);return L.selectors=snt(L),L}),_=kS(o.option,DN,function(M){M.mappingMethod="fixed"});it(c)&&N(c,function(M){h[M]=1});function b(M){return c==="all"||!!h[M]}function S(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(E,R){E==="active"&&(d[R]=1)})}function A(M,D,L){if(!(!M.brushSelector||hnt(o,D))&&(N(m,function(R){o.brushTargetManager.controlSeries(R,M,r)&&L.push(R),y=y||S(L)}),b(D)&&S(L))){var E=M.getData();E.each(function(R){MN(M,L,E,R)&&(d[R]=1)})}}r.eachSeries(function(M,D){var L={seriesId:M.id,seriesIndex:D,seriesName:M.name,dataIndex:[]};s.selected.push(L);var E=p[D],R=M.getData(),O=b(D)?function(P){return d[P]?(L.dataIndex.push(R.getRawIndex(P)),"inBrush"):"outOfBrush"}:function(P){return MN(M,E,R,P)?(L.dataIndex.push(R.getRawIndex(P)),"inBrush"):"outOfBrush"};(b(D)?y:S(E))&&ont(DN,_,R,O)})}),fnt(e,n,i,a,t)}function fnt(r,e,t,a,n){if(n){var i=r.getZr();if(!i[BS]){i[kx]||(i[kx]=cnt);var o=Sf(i,kx,t,e);o(r,a)}}}function cnt(r,e){if(!r.isDisposed()){var t=r.getZr();t[BS]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[BS]=!1}}function MN(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 hnt(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(it(t)?Bt(t,e)<0:e!==t)}var vnt={rect:function(r){return LN(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&&LN(e)}};function LN(r){return new kt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var dnt=(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 NT(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){vV(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),pnt="#ddd",gnt=(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&&hV(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:pnt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=ot(t,function(a){return EN(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=EN(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 EN(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 ynt=["rect","polygon","lineX","lineY","keep","clear"],mnt=(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:ynt.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 _nt(r){r.registerComponentView(dnt),r.registerComponentModel(gnt),r.registerPreprocessor(nnt),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,unt),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"},Ne),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ne),zu("brush",mnt)}var xnt=(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),bnt=(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=Et(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(){Bg(y,"_"+t.get("target"))}),m&&p.on("click",function(){Bg(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(),S=t.getBoxLayoutParams();S.width=b.width,S.height=b.height;var w=Xe(S,{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 Snt(r){r.registerComponentModel(xnt),r.registerComponentView(bnt)}var RN=(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(uf(u),""),d;St(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),dV=(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(RN.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})(RN);Pe(dV,Xy.prototype);var wnt=(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),Tnt=(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})(tn),Bx=Math.PI,IN=$t(),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.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 or("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=Dnt(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:Bx/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*Bx/180;var S,w,A,M=d.get("position",!0),D=p&&d.get("showPlayBtn",!0),L=p&&d.get("showPrevBtn",!0),E=p&&d.get("showNextBtn",!0),R=0,O=h;M==="left"||M==="bottom"?(D&&(S=[0,0],R+=_),L&&(w=[R,0],R+=_),E&&(A=[O-y,0],O-=_)):(D&&(S=[O-y,0],O-=_),L&&(w=[0,0],R+=_),E&&(A=[O-y,0],O-=_));var P=[R,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:S,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=aa(),s=o.x,u=o.y+o.height;_n(l,l,[-s,-u]),jo(l,l,-Bx/2),_n(l,l,[s,u]),o=o.clone(),o.applyTransform(l)}var c=S(o),h=S(n.getBoundingRect()),d=S(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 S(A){return[[A.x,A.x+A.width],[A.y,A.y+A.height]]}function w(A,M,D,L,E){A[L]+=D[L][E]-M[L][E]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=Cnt(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 Tnt("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:xt({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)},_=ON(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),IN(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=xn(Et(i.get(["controlStyle",y+"BtnSize"]),o),o),S=[0,-b/2,b,b],w=Mnt(i,y+"Icon",S,{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),NN(h,u._progressLine,l,n,i,!0)},onUpdate:function(h){NN(h,u._progressLine,l,n,i)}};this._currentPointer=ON(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=ya(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 yn(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",IN(n[i]).dataIndex<=t)},e.type="timeline.slider",e})(wnt);function Cnt(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new tm({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new oT({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Pi}}function Dnt(r,e){return Xe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function Mnt(r,e,t,a){var n=a.style,i=pf(r.get(["controlStyle",e]),a||{},new kt(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function ON(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=Ve(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=wf(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var c=bs(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 NN(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 Lnt(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)}),xt({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 Ent(r){var e=r&&r.timeline;it(e)||(e=e?[e]:[]),N(e,function(t){t&&Rnt(t)})}function Rnt(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),PN(r),Yl(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Yl(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Yl(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}N(r.data||[],function(n){St(n)&&!it(n)&&(!Yl(n,"value")&&Yl(n,"name")&&(n.value=n.name),PN(n))})}function PN(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]&&!Yl(n,l)&&(n[l]=o)}),t.label&&!Yl(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function Yl(r,e){return r.hasOwnProperty(e)}function Int(r){r.registerComponentModel(dV),r.registerComponentView(Ant),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Lnt(r),r.registerPreprocessor(Ent)}function f2(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 jp(r){ss(r,"label",["show"])}var Yp=$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(Ut.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=Yp(l)[o];if(!s||!s.data){Yp(l)[o]=null;return}u?u._mergeOption(s,a,!0):(i&&jp(s),N(s.data,function(c){c instanceof Array?(jp(c[0]),jp(c[1])):jp(c)}),u=this.createMarkerModelFromSeries(s,this,a),rt(u,{mainType:this.mainType,seriesIndex:l.seriesIndex,name:l.name,createdBySelf:!0}),u.__hostSeries=l),Yp(l)[o]=u},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),l=i.getName(t);return or("section",{header:this.name,blocks:[or("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=Xy.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 Yp(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Ht);Pe(ki,Xy.prototype);var Ont=(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 VS(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Nnt(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Xp(r,e,t,a,n,i){var o=[],l=Ni(e,a),s=l?e.getCalculationInfo("stackResultDimension"):a,u=c2(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=hn(e.get(a,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,h]}var Vx={min:Rt(Xp,"min"),max:Rt(Xp,"max"),average:Rt(Xp,"average"),median:Rt(Xp,"median")};function iv(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!Nnt(e)&&!it(e.coord)&&it(n)){var i=pV(e,t,a,r);if(e=Tt(e),e.type&&Vx[e.type]&&i.baseAxis&&i.valueAxis){var o=Bt(n,i.baseAxis.dim),l=Bt(n,i.valueAxis.dim),s=Vx[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++)Vx[u[c]]&&(u[c]=c2(t,t.mapDimension(n[c]),u[c]));return e}}function pV(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(Pnt(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 Pnt(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function ov(r,e){return r&&r.containData&&e.coord&&!VS(e)?r.containData(e.coord):!0}function znt(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!VS(e)&&!VS(t)?r.containZone(e.coord,t.coord):!0}function gV(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 c2(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 Gx=$t(),h2=(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){Gx(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){!Gx(l).keep&&i.group.remove(l.group)})},e.prototype.markKeep=function(t){Gx(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?l5(s):_w(s))})}})},e.type="marker",e})(we);function zN(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 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.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ki.getMarkerModelFromSeries(i,"markPoint");o&&(zN(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 Sv),h=Bnt(o,t,a);a.setData(h),zN(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"),S=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=_v(s,"color");M.fill||(M.fill=D),h.setItemVisual(d,{symbol:y,symbolSize:m,symbolRotate:_,symbolOffset:b,symbolKeepAspect:S,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})(h2);function Bnt(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"),Rt(iv,e));r&&(i=te(i,Rt(ov,r)));var o=gV(!!r,a);return n.initData(i,null,o),n}function Vnt(r){r.registerComponentModel(Ont),r.registerComponentView(knt),r.registerPreprocessor(function(e){f2(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var Gnt=(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),Wp=$t(),Hnt=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=rr(a.yAxis,a.xAxis);else{var u=pV(a,n,e,r);l=u.valueAxis;var c=nT(n,u.valueDataDim);s=c2(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 _=[iv(r,i[0]),iv(r,i[1]),rt({},i[2])];return _[2].type=_[2].type||null,It(_[2],_[0]),It(_[2],_[1]),_};function cy(r){return!isNaN(r)&&!isFinite(r)}function kN(r,e,t,a){var n=1-r,i=a.dimensions[r];return cy(e[n])&&cy(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function Unt(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(kN(1,t,a,r)||kN(0,t,a,r)))return!0}return ov(r,e[0])&&ov(r,e[1])}function Hx(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(Ss(i,"cartesian2d")){var p=i.getAxis("x"),y=i.getAxis("y"),c=i.dimensions;cy(r.get(c[0],e))?l[0]=p.toGlobalCoord(p.getExtent()[t?0:1]):cy(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 Fnt=(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=Wp(o).from,u=Wp(o).to;s.each(function(c){Hx(s,c,!0,i,n),Hx(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 OT);this.group.add(c.group);var h=jnt(o,t,a),d=h.from,p=h.to,y=h.line;Wp(a).from=d,Wp(a).to=p,a.setData(y);var m=a.get("symbol"),_=a.get("symbolSize"),b=a.get("symbolRotate"),S=a.get("symbolOffset");it(m)||(m=[m,m]),it(_)||(_=[_,_]),it(b)||(b=[b,b]),it(S)||(S=[S,S]),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);Hx(A,M,D,t,i);var E=L.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=_v(s,"color")),A.setItemVisual(M,{symbolKeepAspect:L.get("symbolKeepAspect"),symbolOffset:Et(L.get("symbolOffset",!0),S[D?0:1]),symbolRotate:Et(L.get("symbolRotate",!0),b[D?0:1]),symbolSize:Et(L.get("symbolSize"),_[D?0:1]),symbol:Et(L.get("symbol",!0),m[D?0:1]),style:E})}this.markKeep(c),c.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e})(h2);function jnt(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"),Rt(Hnt,e,r,t));r&&(l=te(l,Rt(Unt,r)));var s=gV(!!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 Ynt(r){r.registerComponentModel(Gnt),r.registerComponentView(Fnt),r.registerPreprocessor(function(e){f2(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var Xnt=(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),Zp=$t(),Wnt=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=iv(r,n),l=iv(r,i),s=o.coord,u=l.coord;s[0]=rr(s[0],-1/0),s[1]=rr(s[1],-1/0),u[0]=rr(u[0],1/0),u[1]=rr(u[1],1/0);var c=by([{},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 hy(r){return!isNaN(r)&&!isFinite(r)}function BN(r,e,t,a){var n=1-r;return hy(e[n])&&hy(t[n])}function Znt(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 Ss(r,"cartesian2d")?t&&a&&(BN(1,t,a)||BN(0,t,a))?!0:znt(r,n,i):ov(r,n)||ov(r,i)}function VN(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(Ss(i,"cartesian2d")){var S=i.getAxis("x"),w=i.getAxis("y"),m=r.get(t[0],e),_=r.get(t[1],e);hy(m)?l[0]=S.toGlobalCoord(S.getExtent()[t[0]==="x0"?0:1]):hy(_)&&(l[1]=w.toGlobalCoord(w.getExtent()[t[1]==="y0"?0:1]))}isNaN(s)||(l[0]=s),isNaN(u)||(l[1]=u)}return l}var GN=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],qnt=(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(GN,function(h){return VN(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=$nt(o,t,a);a.setData(h),h.each(function(d){var p=ot(GN,function(E){return VN(h,d,E,t,i)}),y=o.getAxis("x").scale,m=o.getAxis("y").scale,_=y.getExtent(),b=m.getExtent(),S=[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))];ya(S),ya(w);var A=!(_[0]>S[1]||_[1]<S[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=_v(s,"color");D.fill||(D.fill=L,vt(D.fill)&&(D.fill=Ph(D.fill,.4))),D.stroke||(D.stroke=L),h.setItemVisual(d,"style",D)}),h.diff(Zp(c).data).add(function(d){var p=h.getItemLayout(d);if(!p.allClipped){var y=new Or({shape:{points:p.points}});h.setItemGraphicEl(d,y),c.group.add(y)}}).update(function(d,p){var y=Zp(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 Or({shape:{points:m.points}}),h.setItemGraphicEl(d,y),c.group.add(y))}).remove(function(d){var p=Zp(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")),br(d,ir(y),{labelFetcher:a,labelDataIndex:p,defaultText:h.getName(p)||"",inheritColor:vt(m.fill)?Ph(m.fill,1):"#000"}),xr(d,y),Re(d,null,null,y.get(["emphasis","disabled"])),Mt(d).dataModel=a}),Zp(c).data=h,c.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e})(h2);function $nt(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"),Rt(Wnt,e,r,t));r&&(l=te(l,Rt(Znt,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 Knt(r){r.registerComponentModel(Xnt),r.registerComponentView(qnt),r.registerPreprocessor(function(e){f2(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Qnt=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"])}},GS=(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,Qnt(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&&cw(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),Du=Rt,HS=N,qp=Ct,yV=(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 qp),this.group.add(this._selectorGroup=new qp),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(xt({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=iV(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)}),HS(a.getData(),function(p,y){var m=p.get("name");if(!this.newlineDisabled&&(m===""||m===`
108
+ `)){var _=new qp;_.newline=!0,u.add(_);return}var b=n.getSeriesByName(m)[0];if(!c.get(m))if(b){var S=b.getData(),w=S.getVisual("legendLineStyle")||{},A=S.getVisual("legendIcon"),M=S.getVisual("style"),D=this._createItem(b,m,y,p,a,t,w,M,A,h,i);D.on("click",Du(HN,m,null,i,d)).on("mouseover",Du(US,b.name,null,i,d)).on("mouseout",Du(FS,b.name,null,i,d)),n.ssr&&D.eachChild(function(L){var E=Mt(L);E.seriesIndex=b.seriesIndex,E.dataIndex=y,E.ssrType="legend"}),c.set(m,!0)}else n.eachRawSeries(function(L){if(!c.get(m)&&L.legendVisualProvider){var E=L.legendVisualProvider;if(!E.containName(m))return;var R=E.indexOfName(m),O=E.getItemVisual(R,"style"),P=E.getItemVisual(R,"legendIcon"),B=Hr(O.fill);B&&B[3]===0&&(B[3]=.2,O=rt(rt({},O),{fill:gn(B,"rgba")}));var G=this._createItem(L,m,y,p,a,t,{},O,P,h,i);G.on("click",Du(HN,null,m,i,d)).on("mouseover",Du(US,null,m,i,d)).on("mouseout",Du(FS,null,m,i,d)),n.ssr&&G.eachChild(function(H){var F=Mt(H);F.seriesIndex=L.seriesIndex,F.dataIndex=y,F.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();HS(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"]);br(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"),S=i.get("symbolKeepAspect"),w=i.get("icon");c=w||c||"roundRect";var A=Jnt(c,i,s,u,p,_,d),M=new qp,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:S}));else{var L=w==="inherit"&&t.getData().getVisual("symbol")?b==="inherit"?t.getData().getVisual("symbolRotate"):b:0;M.add(tit({itemWidth:y,itemHeight:m,icon:c,iconRotate:L,itemStyle:A.itemStyle,symbolKeepAspect:S}))}var E=l==="left"?y+5:-5,R=l,O=o.get("formatter"),P=a;vt(O)&&O?P=O.replace("{name}",a??""):_t(O)&&(P=O(a));var B=_?D.getTextColor():i.get("inactiveColor");M.add(new Xt({style:_e(D,{text:P,x:E,y:m/2,fill:B,align:R,verticalAlign:"middle"},{inheritColor:B})}));var G=new Wt({shape:M.getBoundingRect(),style:{fill:"transparent"}}),H=i.getModel("tooltip");return H.get("show")&&ms({el:G,componentModel:o,itemName:a,itemTooltipOption:H.option}),M.add(G),M.eachChild(function(F){F.silent=!0}),G.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();as(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){as("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",S=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[S]=Math.min(0,d[S]+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 Jnt(r,e,t,a,n,i,o){function l(_,b){_.lineWidth==="auto"&&(_.lineWidth=b.lineWidth>0?2:0),HS(_,function(S,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:ef(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 tit(r){var e=r.icon||"roundRect",t=Ve(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 HN(r,e,t,a){FS(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),US(r,e,t,a)}function mV(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 US(r,e,t,a){mV(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function FS(r,e,t,a){mV(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}function eit(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),UN(l,n),i.push(l.componentIndex)});var o={};return t.eachComponent("legend",function(l){N(n,function(s,u){l[s?"select":"unSelect"](u)}),UN(l,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function UN(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 rit(r){r.registerAction("legendToggleSelect","legendselectchanged",Rt(qc,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Rt(qc,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Rt(qc,"inverseSelect")),r.registerAction("legendSelect","legendselected",Rt(qc,"select")),r.registerAction("legendUnSelect","legendunselected",Rt(qc,"unSelect"))}function _V(r){r.registerComponentModel(GS),r.registerComponentView(yV),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,eit),r.registerSubTypeDefaulter("legend",function(){return"plain"}),rit(r)}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.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=mf(t);r.prototype.init.call(this,t,a,n),FN(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),FN(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Xo(GS.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})(GS);function FN(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,Go(e,t,{type:"box",ignoreSize:!!n})}var jN=Ct,Ux=["width","height"],Fx=["x","y"],nit=(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 jN),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new jN)},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",S=pf(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]});S.name=m,c.add(S)}},e.prototype.layoutInner=function(t,a,n,i,o,l){var s=this.getSelectorGroup(),u=t.getOrient().index,c=Ux[u],h=Fx[u],d=Ux[1-u],p=Fx[1-u];o&&as("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 S=this._layoutContentAndController(t,i,b,u,c,d,p,h);if(o){if(l==="end")_[u]+=S[c]+y;else{var w=m[c]+y;_[u]-=w,S[h]-=w}S[c]+=m[c]+y,_[1-u]+=S[p]+S[d]/2-m[d]/2,S[d]=Math.max(S[d],m[d]),S[p]=Math.min(S[p],m[p]+_[1-u]),s.x=_[0],s.y=_[1],s.markRedraw()}return S},e.prototype._layoutContentAndController=function(t,a,n,i,o,l,s,u){var c=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;as(t.get("orient"),c,t.get("itemGap"),i?n.width:null,i?null:n.height),as("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],S=[-y.x,-y.y],w=Et(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(m){var A=t.get("pageButtonPosition",!0);A==="end"?S[i]+=n[o]-y[o]:b[i]+=y[o]+w}S[1-i]+=p[l]/2-y[l]/2,c.setPosition(_),h.setPosition(b),d.setPosition(S);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]+S[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(E){E.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=Ux[o],s=Fx[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,S=m,w=null;_<=d;++_)w=A(c[_]),(!w&&S.e>b.s+i||w&&!M(w,b.s))&&(S.i>b.i?b=S:b=w,b&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=b.i),++y.pageCount)),S=w;for(var _=u-1,b=m,S=m,w=null;_>=-1;--_)w=A(c[_]),(!w||!M(S,w.s))&&b.i<S.i&&(S=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(),E=L[s]+D[s];return{s:E,e:E+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})(yV);function iit(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 oit(r){Gt(_V),r.registerComponentModel(ait),r.registerComponentView(nit),iit(r)}function lit(r){Gt(_V),Gt(oit)}var sit=(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(nv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(nv),v2=$t();function uit(r,e,t){v2(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function fit(r,e){for(var t=v2(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||xV(t,o))}}}function xV(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function cit(r,e){var t={model:e,containsPoint:Rt(vit,e),dispatchAction:Rt(hit,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Dv(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 hit(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function vit(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function dit(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 pit(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=v2(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=mt());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=rV(i);N(o.infoList,function(l){var s=l.model.uid,u=n.get(s)||n.set(s,cit(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){xV(n,i);return}var c=dit(s);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Sf(i,"dispatchAction",l.model.get("throttle",!0),"fixRate")})})}var git=(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(),uit(n,t,{pan:dt(jx.pan,this),zoom:dt(jx.zoom,this),scrollMove:dt(jx.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){fit(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(n2),jx={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var l=Yx[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(Ts(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:YN(function(r,e,t,a,n,i){var o=Yx[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:YN(function(r,e,t,a,n,i){var o=Yx[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function YN(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(Ts(s,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Yx={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 bV(r){i2(r),r.registerComponentModel(sit),r.registerComponentView(git),pit(r)}var yit=(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(nv.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})(nv),$c=Wt,XN=7,mit=1,Xx=30,_it=7,Kc="horizontal",WN="vertical",xit=5,bit=["line","bar","candlestick","scatter"],Sit={easing:"cubicOut",duration:100,delay:0},wit=(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),Sf(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(){Yh(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?_it:0,o=this._findCoordRect(),l={width:a.getWidth(),height:a.getHeight()},s=this._orient===Kc?{right:l.width-o.x-o.width,top:l.height-Xx-XN-i,width:o.width,height:Xx}:{right:XN,top:o.y,width:Xx,height:o.height},u=mf(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===WN&&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===Kc&&!o?{scaleY:s?1:-1,scaleX:1}:n===Kc&&o?{scaleY:s?1:-1,scaleX:-1}:n===WN&&!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 $c({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new $c({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),S=0,w=Math.round(o.count()/a[0]),A;o.each([s],function(R,O){if(w>0&&O%w){S+=b;return}var P=R==null||isNaN(R)||R==="",B=P?0:oe(R,h,p,!0);P&&!A&&O?(m.push([m[m.length-1][0],0]),_.push([_[_.length-1][0],0])):!P&&A&&(m.push([S,0]),_.push([S,0])),m.push([S,B]),_.push([S,B]),S+=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(R){var O=M.getModel(R?"selectedDataBackground":"dataBackground"),P=new Ct,B=new Or({shape:{points:u},segmentIgnoreThreshold:1,style:O.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),G=new Pr({shape:{points:c},segmentIgnoreThreshold:1,style:O.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(B),P.add(G),P}for(var L=0;L<3;L++){var E=D(L===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},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(bit,u.get("type"))<0)){var c=i.getComponent(Lo(o),l).axis,h=Tit(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 $c({silent:h,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new $c({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:mit,fill:"rgba(0,0,0,0)"}})),N([0,1],function(w){var A=s.get("handleIcon");!Hg[A]&&A.indexOf("path://")<0&&A.indexOf("image://")<0&&(A="path://"+A);var M=Ve(A,-1,0,2,2,null,!0);M.attr({cursor:ZN(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 E=s.get("handleColor");E!=null&&(M.style.fill=E),o.add(n[w]=M);var R=s.getModel("textStyle"),O=s.get("handleLabel")||{},P=O.show||!1;t.add(i[w]=new Xt({silent:!0,invisible:!P,style:_e(R,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:R.getTextColor(),font:R.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=Ve(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 S=Math.min(l[1]/2,Math.max(y,10));p=a.moveZone=new Wt({invisible:!0,shape:{y:l[1]-S,height:y+S}}),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:ZN(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];Ts(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=ya([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=ya(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=ya(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(y){var m=Oo(n.handles[y].parent,this.group),_=By(y===0?"right":"left",m),b=this._handleWidth/2+xit,S=yn([d[y]+(y===0?-b:b),this._size[1]/2],m);i[y].setStyle({x:S[0],y:S[1],verticalAlign:o===Kc?"middle":_,align:o===Kc?_:"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,Ei(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),l=yn([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=ya([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&&(Ei(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 $c({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?Sit:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=rV(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})(n2);function Tit(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function ZN(r){return r==="vertical"?"ns-resize":"ew-resize"}function SV(r){r.registerComponentModel(yit),r.registerComponentView(wit),i2(r)}function Ait(r){Gt(bV),Gt(SV)}var wV={get:function(r,e,t){var a=Tt((Cit[r]||{})[e]);return t&&it(a)?a[a.length-1]:a}},Cit={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=nr.mapVisual,Dit=nr.eachVisual,Mit=it,$N=N,Lit=ya,Eit=oe,vy=(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&&hV(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=kS(this.option.controller,a,t),this.targetVisuals=kS(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=Lit([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){Mit(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]={},$N(y,function(_,b){if(nr.isValidType(b)){var S=wV.get(b,"inactive",l);S!=null&&(m[b]=S,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";$N(this.stateList,function(b){var S=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?S[0]:[S[0],S[0]])),w.symbol=qN(w.symbol,function(D){return D==="none"?_:D});var A=w.symbolSize;if(A!=null){var M=-1/0;Dit(A,function(D){D>M&&(M=D)}),w.symbolSize=qN(A,function(D){return Eit(D,[0,M],[0,S[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),KN=[20,140],Rit=(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]=KN[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=KN[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=ya((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=QN(this,"outOfRange",this.getExtent()),n=QN(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(vy.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})(vy);function QN(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 TV=(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=xs(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=nr.prepareVisualTypes(h);return N(d,function(p){var y=h[p];n.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",y=h.__alphaForOpacity),nr.dependsOn(p,a)&&y&&y.applyVisual(t,u,c)}),l[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api;jy(t,a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e})(we),JN=[["left","right","width"],["top","bottom","height"]];function AV(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=JN[o],s=[0,null,10],u={},c=0;c<3;c++)u[JN[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 gg(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 On=oe,Iit=N,t3=Math.min,Wx=Math.max,Oit=12,Nit=6,Pit=(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=AV(a,this.api,i),u=n.mainGroup=this._createBarGroup(s),c=new Ct;u.add(c),c.add(n.outOfRange=e3()),c.add(n.inRange=e3(null,l?a3(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=Wx(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=xn(t.get("handleSize"),i[0]),h=Ve(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=a3(this._orient);h.attr({cursor:d,draggable:!0,drift:s,ondragend:u,onmousemove:function(b){Ei(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(),Zl(h,!0),a.add(h);var p=this.visualMapModel.textStyleModel,y=new Xt({cursor:d,draggable:!0,drift:s,onmousemove:function(b){Ei(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=xn(t.get("indicatorSize"),n[0]),s=Ve(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 lr){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:Nit)+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():r3(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=[On(a[0],n,i,!0),On(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]];Ts(a,i,o,t,0);var l=n.getExtent();this._dataInterval=[On(i[0],o,l,!0),On(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 vf(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);Iit([0,1],function(h){var d=o[h];d.setStyle("fill",a.handlesColor[h]),d.y=t[h];var p=On(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=yn(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=On(t,l,u,!0),_=s[0]-y/2,b={x:h.x,y:h.y};h.y=m,h.x=_;var S=yn(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}},E={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var R={duration:100,easing:"cubicInOut",additive:!0};h.x=b.x,h.y=b.y,h.animateTo(L,R),w.animateTo(E,R)}else h.attr(L),w.attr(E);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]=t3(Wx(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=t3(Wx(o[0],t),o[1]);var s=zit(n,l,o),u=[t-s,t+s],c=On(t,o,l,!0),h=[On(u[0],o,l,!0),On(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||r3(n))&&(p=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var y=C7(d,p);this._dispatchHighDown("downplay",gg(y[0],n)),this._dispatchHighDown("highlight",gg(y[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if($l(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",gg(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)?yn(t,o,n):By(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})(TV);function e3(r,e,t,a){return new Or({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){Ei(n.event)},ondragend:a})}function zit(r,e,t){var a=Oit/2,n=r.get("hoverLinkDataSize");return n&&(a=On(n,e,t,!0)/2),a}function r3(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function a3(r){return r==="vertical"?"ns-resize":"ew-resize"}var kit={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Bit=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},Vit=[{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(lnt(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(Git,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function Git(r,e,t,a){for(var n=e.targetVisuals[a],i=nr.prepareVisualTypes(n),o={color:_v(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 n3=N;function Hit(r){var e=r&&r.visualMap;it(e)||(e=e?[e]:[]),n3(e,function(t){if(t){Mu(t,"splitList")&&!Mu(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&it(a)&&n3(a,function(n){St(n)&&(Mu(n,"start")&&!Mu(n,"min")&&(n.min=n.start),Mu(n,"end")&&!Mu(n,"max")&&(n.max=n.end))})}})}function Mu(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var i3=!1;function CV(r){i3||(i3=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(kit,Bit),N(Vit,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Hit))}function DV(r){r.registerComponentModel(Rit),r.registerComponentView(Pit),CV(r)}var Uit=(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=[],Fit[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=nr.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]=wV.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=nr.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=nr.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(vy.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})(vy),Fit={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]}),Cb(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),o3(e,r)},pieces:function(r){var e=this.option;N(e.pieces,function(t,a){St(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=nr.retrieveVisuals(t),r.push(n)},this),o3(e,r),Cb(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 o3(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var jit=(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=rr(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 S=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:S==="outOfRange"?.5:1},silent:p}))}t.add(_)},this),h&&this._renderEndsText(t,h[1],u,d,s),as(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:gg(l.findTargetDataIndices(a),l)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return AV(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=Ve(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})(TV);function MV(r){r.registerComponentModel(Uit),r.registerComponentView(jit),CV(r)}function Yit(r){Gt(DV),Gt(MV)}var Xit={label:{enabled:!0},decal:{show:!1}},l3=$t(),Wit={};function Zit(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=Tt(Xit);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)),l3(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 S=Ub(d.ecModel,d.name,Wit,r.getSeriesCount()),w=p.getVisual("decal");p.setVisual("decal",A(w,S))}else{var y=d.getRawData(),m={},_=l3(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+"",E=Ub(d.ecModel,L,_,b),R=p.getItemVisual(D,"decal");p.setItemVisual(D,"decal",A(R,E))})}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=xt(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 S=h.get(["general","withTitle"]);_=o(S,{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(E,R){if(R<m){var O=void 0,P=E.get("name"),B=P?"withName":"withoutName";O=d>1?h.get(["series","multiple",B]):h.get(["series","single",B]),O=o(O,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:s(E.subType)});var G=E.getData();if(G.count()>p){var H=h.get(["data","partialData"]);O+=o(H,{displayCnt:p})}else O+=h.get(["data","allData"]);for(var F=h.get(["data","separator","middle"]),k=h.get(["data","separator","end"]),j=h.get(["data","excludeDimensionId"]),Y=[],$=0;$<G.count();$++)if($<p){var tt=G.getName($),U=j?te(G.getValues($),function(at,lt){return Bt(j,lt)===-1}):G.getValues($),W=h.get(["data",tt?"withName":"withoutName"]);Y.push(o(W,{name:tt,value:U.join(F)}))}O+=Y.join(F)+k,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 qit(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 $it(r){r.registerPreprocessor(qit),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Zit)}var s3={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Kit=(function(){function r(e){var t=this._condVal=vt(e)?new RegExp(e):J3(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})(),Qit=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),Jit=(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})(),tot=(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})(),eot=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),rot=(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 d2(r,e){if(r===!0||r===!1){var t=new Qit;return t.value=r,t}var a="";return LV(r)||le(a),r.and?u3("and",r,e):r.or?u3("or",r,e):r.not?aot(r,e):not(r,e)}function u3(r,e,t){var a=e[r],n="";it(a)||le(n),a.length||le(n);var i=r==="and"?new Jit:new tot;return i.children=ot(a,function(o){return d2(o,t)}),i.children.length||le(n),i}function aot(r,e){var t=r.not,a="";LV(t)||le(a);var n=new eot;return n.child=d2(t,e),n.child||le(a),n}function not(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=jt(r),o=r.parser,l=o?lz(o):null,s=0;s<i.length;s++){var u=i[s];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=gt(s3,u)?s3[u]:u,h=r[u],d=l?l(h):h,p=DF(c,d)||c==="reg"&&new Kit(d);p||le(t),n.push(p)}}n.length||le(t);var y=new rot;return y.valueGetterParam=a,y.valueParser=l,y.getValue=e.getValue,y.subCondList=n,y}function LV(r){return St(r)&&!_r(r)}var iot=(function(){function r(e,t){this._cond=d2(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function oot(r,e){return new iot(r,e)}var lot={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=oot(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}}},sot={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 S=p?lz(p):null;p&&!S&&le(a),i.push({dimIdx:b.index,parser:S,comparator:new uz(d,y)})});var o=e.sourceFormat;o!==Nr&&o!==Ja&&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 uot(r){r.registerTransform(lot),r.registerTransform(sot)}var fot=(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 vz(this),hE(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),hE(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Un},e})(Ht),cot=(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 hot(r){r.registerComponentModel(fot),r.registerComponentView(cot)}var Rn=Yn.CMD;function Gu(r,e){return Math.abs(r-e)<1e-5}function jS(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,l=0,s=0;function u(G,H){n&&n.length>2&&a.push(n),n=[G,H]}function c(G,H,F,k){Gu(G,F)&&Gu(H,k)||n.push(G,H,F,k,F,k)}function h(G,H,F,k,j,Y){var $=Math.abs(H-G),tt=Math.tan($/4)*4/3,U=H<G?-1:1,W=Math.cos(G),at=Math.sin(G),lt=Math.cos(H),ct=Math.sin(H),bt=W*j+F,Pt=at*Y+k,wt=lt*j+F,pt=ct*Y+k,Ot=j*tt*U,yt=Y*tt*U;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[_++],S=_===1;switch(S&&(i=e[_],o=e[_+1],l=i,s=o,(b===Rn.L||b===Rn.C||b===Rn.Q)&&(n=[l,s])),b){case Rn.M:i=l=e[_++],o=s=e[_++],u(l,s);break;case Rn.L:d=e[_++],p=e[_++],c(i,o,d,p),i=d,o=p;break;case Rn.C:n.push(e[_++],e[_++],e[_++],e[_++],i=e[_++],o=e[_++]);break;case Rn.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 Rn.A:var w=e[_++],A=e[_++],M=e[_++],D=e[_++],L=e[_++],E=e[_++]+L;_+=1;var R=!e[_++];d=Math.cos(L)*M+w,p=Math.sin(L)*D+A,S?(l=d,s=p,u(l,s)):c(i,o,d,p),i=Math.cos(E)*M+w,o=Math.sin(E)*D+A;for(var O=(R?-1:1)*Math.PI/2,P=L;R?P>E:P<E;P+=O){var B=R?Math.max(P+O,E):Math.min(P+O,E);h(P,B,w,A,M,D)}break;case Rn.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 Rn.Z:n&&c(i,o,l,s),i=l,o=s;break}}return n&&n.length>2&&a.push(n),a}function YS(r,e,t,a,n,i,o,l,s,u){if(Gu(r,t)&&Gu(e,a)&&Gu(n,o)&&Gu(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,S=i-l,w=m*m+_*_,A=b*b+S*S;if(w<h&&A<h){s.push(o,l);return}var M=d*m+p*_,D=-d*b-p*S,L=w-M*M,E=A-D*D;if(L<h&&M>=0&&E<h&&D>=0){s.push(o,l);return}var R=[],O=[];Bo(r,t,n,o,.5,R),Bo(e,a,i,l,.5,O),YS(R[0],O[0],R[1],O[1],R[2],O[2],R[3],O[3],s,u),YS(R[4],O[4],R[5],O[5],R[6],O[6],R[7],O[7],s,u)}function vot(r,e){var t=jS(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++];YS(l,s,c,h,d,p,y,m,o,e),l=y,s=m}a.push(o)}return a}function EV(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 f3(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=EV([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 dot(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=EV([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 c3(r,e,t,a){return r*a-t*e}function pot(r,e,t,a,n,i,o,l){var s=t-r,u=a-e,c=o-n,h=l-i,d=c3(c,h,s,u);if(Math.abs(d)<1e-6)return null;var p=r-n,y=e-i,m=c3(p,y,c,h)/d;return m<0||m>1?null:new zt(m*s+r,m*u+e)}function got(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 Lu(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function yot(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],l=r[(i+1)%a],s=pot(o[0],o[1],l[0],l[1],e.x,e.y,t.x,t.y);s&&n.push({projPt:got(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++)Lu(y,r[i].slice());Lu(y,p),Lu(y,d);for(var i=c.idx+1;i<=u.idx+a;i++)Lu(m,r[i%a].slice());return Lu(m,d),Lu(m,p),[{points:y},{points:m}]}function h3(r){var e=r.points,t=[],a=[];Oy(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),yot(e,u,c)}function dy(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);dy(r,i[0],n,a),dy(r,i[1],t-n,a)}return a}function mot(r,e){for(var t=[],a=0;a<e;a++)t.push(bw(r));return t}function _ot(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function xot(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function bot(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":dot(a,e,t),n=Wt;break;case"sector":f3(a,e,t),n=Ir;break;case"circle":f3({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=Ir;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(vot(r.getUpdatedPathProxy(),o),function(b){return xot(b)}),s=l.length;if(s===0)dy(h3,{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 S=[],w=[];Oy(b,S,w);var A=(w[1]-S[1])*(w[0]-S[0]);return c+=A,{poly:b,area:A}});h.sort(function(b,S){return S.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||(dy(h3,{points:p.poly},y,t),d-=y)}}n=Or;break}if(!n)return mot(r,e);for(var m=[],u=0;u<t.length;u++){var _=new n;_.setShape(t[u]),_ot(r,_),m.push(_)}return m}function Sot(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++],S=o[p++],w=o[p++],A=o[p++],M=o[p++];if(d<=0){h.push(_,b,S,w,A,M);continue}for(var D=Math.min(d,c-1)+1,L=1;L<=D;L++){var E=L/D;Bo(y,_,S,A,E,n),Bo(m,b,w,M,E,i),y=n[3],m=i[3],h.push(n[1],i[1],n[2],i[2],y,m),_=n[5],b=i[5],S=n[6],w=i[6]}d-=D-1}return o===r?[h,e]:[r,h]}function v3(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 wot(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=Sot(s,u),c=t[0],h=t[1],a=c,n=h):(h=v3(n||s,s),c=s):(c=v3(a||u,u),h=u),i.push(c),o.push(h)}return[i,o]}function d3(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 Tot(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],S=_-y,w=b-m;h+=S*S+w*w}h<i&&(i=h,o=u)}return o}function Aot(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 Cot(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var l=r[o],s=e[o],u=d3(l),c=d3(s);i==null&&(i=u[2]<0!=c[2]<0);var h=[],d=[],p=0,y=1/0,m=[],_=l.length;i&&(l=Aot(l));for(var b=Tot(l,s,u,c)*6,S=_-2,w=0;w<S;w+=2){var A=(b+w)%S+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),E=Math.cos(D),R=0,w=0;w<l.length;w+=2){var O=h[w],P=h[w+1],B=s[w]-c[0],G=s[w+1]-c[1],H=B*E-G*L,F=B*L+G*E;m[w]=H,m[w+1]=F;var k=H-O,j=F-P;R+=k*k+j*j}if(R<y){y=R,p=D;for(var Y=0;Y<m.length;Y++)d[Y]=m[Y]}}n.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return n}function py(r){return r.__isCombineMorphing}var RV="__mOriginal_";function gy(r,e,t){var a=RV+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 Eh(r,e){var t=RV+e;r[t]&&(r[e]=r[t],r[t]=null)}function p3(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 IV(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=wot(jS(t),jS(a)),i=n[0],o=n[1],l=r.getComputedTransform(),s=e.getComputedTransform();function u(){this.transform=null}l&&p3(i,l),s&&p3(o,s),gy(e,"updateTransform",{replace:u}),e.transform=null;var c=Cot(i,o,10,Math.PI),h=[];gy(e,"buildPath",{replace:function(d){for(var p=e.__morphT,y=1-p,m=[],_=0;_<c.length;_++){var b=c[_],S=b.from,w=b.to,A=b.rotation*p,M=b.fromCp,D=b.toCp,L=Math.sin(A),E=Math.cos(A);gh(m,M,D,p);for(var R=0;R<S.length;R+=2){var O=S[R],P=S[R+1],B=w[R],G=w[R+1],H=O*y+B*p,F=P*y+G*p;h[R]=H*E-F*L+m[0],h[R+1]=H*L+F*E+m[1]}var k=h[0],j=h[1];d.moveTo(k,j);for(var R=2;R<S.length;){var B=h[R++],G=h[R++],Y=h[R++],$=h[R++],tt=h[R++],U=h[R++];k===B&&j===G&&Y===tt&&$===U?d.lineTo(tt,U):d.bezierCurveTo(B,G,Y,$,tt,U),k=tt,j=U}}}})}function p2(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;IV(r,e),e.__morphT=0;function i(){Eh(e,"buildPath"),Eh(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},xt({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function Dot(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 yy(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:Dot(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 OV(r){return bot(r.path,r.count)}function XS(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Mot(r,e,t){var a=[];function n(M){for(var D=0;D<M.length;D++){var L=M[D];py(L)?n(L.childrenRef()):L instanceof Ft&&a.push(L)}}n(r);var i=a.length;if(!i)return XS();var o=t.dividePath||OV,l=o({path:e,count:i});if(l.length!==i)return console.error("Invalid morphing: unmatched splitted path"),XS();a=yy(a),l=yy(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||IV(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)}gy(e,"addSelfToZr",{after:function(M){m(M)}}),gy(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,Eh(e,"addSelfToZr"),Eh(e,"removeSelfFromZr")}var b=l.length;if(c)for(var S=b,w=function(){S--,S===0&&(_(),s&&s())},d=0;d<b;d++){var A=c?xt({delay:(t.delay||0)+c(d,b,a[d],l[d]),done:w},t):t;p2(a[d],l[d],A)}else e.__morphT=0,e.animateTo({__morphT:1},xt({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++)Eh(r[M],"updateTransform");s&&s()}},t));return e.__zr&&m(e.__zr),{fromIndividuals:a,toIndividuals:l,count:b}}function Lot(r,e,t){var a=e.length,n=[],i=t.dividePath||OV;function o(p){for(var y=0;y<p.length;y++){var m=p[y];py(m)?o(m.childrenRef()):m instanceof Ft&&n.push(m)}}if(py(r)){o(r.childrenRef());var l=n.length;if(l<a)for(var s=0,u=l;u<a;u++)n.push(bw(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"),XS()}n=yy(n),e=yy(e);for(var h=t.individualDelay,u=0;u<a;u++){var d=h?xt({delay:(t.delay||0)+h(u,a,n[u],e[u])},t):t;p2(n[u],e[u],d)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function g3(r){return it(r[0])}function y3(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 Eot={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=bw(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Zx(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=df("update",a,n);if(!(o&&o.duration>0))return;var l=a.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},o),u,c;g3(r)&&(u=r,c=e),g3(e)&&(u=e,c=r);function h(b,S,w,A,M){var D=b.many,L=b.one;if(D.length===1&&!M){var E=S?D[0]:L,R=S?L:D[0];if(py(E))h({many:[E],one:R},!0,w,A,!0);else{var O=l?xt({delay:l(w,A)},s):s;p2(E,R,O),i(E,R,E,R,O)}}else for(var P=xt({dividePath:Eot[t],individualDelay:l&&function(j,Y,$,tt){return l(j+w,A)}},s),B=S?Mot(D,L,P):Lot(L,D,P),G=B.fromIndividuals,H=B.toIndividuals,F=G.length,k=0;k<F;k++){var O=l?xt({delay:l(k,F)},s):s;i(G[k],H[k],S?D[k]:b.one,S?b.one:D[k],O)}}for(var d=u?u===r:r.length>e.length,p=u?y3(c,u):y3(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 Hl(r){if(!r)return[];if(it(r)){for(var e=[],t=0;t<r.length;t++)e.push(Hl(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof Ft&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var NV=1e4,Rot=0,m3=1,_3=2,Iot=$t();function Oot(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 Not(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 x3(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=Oot(r,n);if(i){var o=Not(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 b3(r){var e=[];return N(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>NV))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:x3(a,o,n,!1),childGroupId:x3(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function qx(r,e,t){r.traverse(function(a){a instanceof Ft&&De(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function $x(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 Pot(r,e,t){var a=df("update",t,e);a&&r.traverse(function(n){if(n instanceof qa){var i=c9(n);i&&n.animateFrom({style:i},a)}})}function zot(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 PV(r,e,t){var a=b3(r),n=b3(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=Rot,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=m3;break}var d=n[c].childGroupId;if(d&&s.get(d)){l=_3;break}}function p(w,A){return function(M){var D=M.data,L=M.dataIndex;return A?D.getId(L):w?l===m3?M.childGroupId:M.groupId:l===_3?M.childGroupId:M.groupId}}var y=zot(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 S(w,A){var M=a[A],D=n[w],L=D.data.hostModel,E=M.data.getItemGraphicEl(M.dataIndex),R=D.data.getItemGraphicEl(D.dataIndex);if(E===R){R&&Pot(R,D.dataIndex,L);return}E&&m[E.id]||R&&(Eu(R),E?(Eu(E),$x(E),o=!0,Zx(Hl(E),Hl(R),D.divide,L,w,i)):qx(R,L,w))}new Oi(a,n,p(!0,y),p(!1,y),null,"multiple").update(S).updateManyToOne(function(w,A){var M=n[w],D=M.data,L=D.hostModel,E=D.getItemGraphicEl(M.dataIndex),R=te(ot(A,function(O){return a[O].data.getItemGraphicEl(a[O].dataIndex)}),function(O){return O&&O!==E&&!m[O.id]});E&&(Eu(E),R.length?(N(R,function(O){Eu(O),$x(O)}),o=!0,Zx(Hl(R),Hl(E),M.divide,L,w,i)):qx(E,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(R){return n[R].data.getItemGraphicEl(n[R].dataIndex)}),function(R){return R&&R!==D}),E=n[w[0]].data.hostModel;L.length&&(N(L,function(R){return Eu(R)}),D?(Eu(D),$x(D),o=!0,Zx(Hl(D),Hl(L),M.divide,E,w[0],i)):N(L,function(R){return qx(R,E,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){S(w[M],A[D])}).execute()}).execute(),o&&N(e,function(w){var A=w.data,M=A.hostModel,D=M&&t.getViewOfSeriesModel(M),L=df("update",M,0);D&&M.isAnimationEnabled()&&L&&L.duration>0&&D.group.traverse(function(E){E instanceof Ft&&!E.animators.length&&E.animateFrom({style:{opacity:0}},L)})})}function S3(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function w3(r){return it(r)?r.sort().join(","):r}function So(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function kot(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=S3(i),c=w3(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=S3(i),u=w3(s),c=a.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:So(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:So(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:So(m.data),data:m.data})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{dataGroupId:o,data:l,divide:So(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:So(d.data)}],newSeries:[]},t.set(d.key,p)),p.newSeries.push({dataGroupId:o,data:l,divide:So(l)})}}}}),t}function T3(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 Bot(r,e,t,a){var n=[],i=[];N(de(r.from),function(o){var l=T3(e.oldSeries,o);l>=0&&n.push({dataGroupId:e.oldDataGroupIds[l],data:e.oldData[l],divide:So(e.oldData[l]),groupIdDim:o.dimension})}),N(de(r.to),function(o){var l=T3(t.updatedSeries,o);if(l>=0){var s=t.updatedSeries[l].getData();i.push({dataGroupId:e.oldDataGroupIds[l],data:s,divide:So(s),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&PV(n,i,a)}function Vot(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][ug]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=Iot(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)N(de(i),function(p){Bot(p,n,a,t)});else{var o=kot(n,a);N(o.keys(),function(p){var y=o.get(p);PV(y.oldSeries,y.newSeries,t)})}N(a.updatedSeries,function(p){p[ug]&&(p[ug]=!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()<NV&&(s.push(l[h]),u.push(l[h].get("dataGroupId")),c.push(d))}})}Gt([WW]);Gt([UW]);Gt([vZ,MZ,BZ,yq,Mq,d$,U$,AK,WK,JK,sQ,rJ,DJ,BJ,ttt,ntt,dtt,btt,Itt,Btt,Ztt,Oet]);Gt(Qet);Gt(Trt);Gt(OB);Gt(krt);Gt(m4);Gt(Hrt);Gt($rt);Gt(kat);Gt(rnt);Gt(Lv);Gt(_nt);Gt(Snt);Gt(Int);Gt(Vnt);Gt(Ynt);Gt(Knt);Gt(lit);Gt(Ait);Gt(bV);Gt(SV);Gt(Yit);Gt(DV);Gt(MV);Gt($it);Gt(uot);Gt(hot);Gt(Vot);Gt(sW);const Got=Object.freeze(Object.defineProperty({__proto__:null,Axis:tn,ChartView:fe,ComponentModel:Ht,ComponentView:we,List:Er,Model:ee,PRIORITY:Uz,SeriesModel:pe,color:EH,connect:yY,dataTool:TY,dependencies:Jj,disConnect:mY,disconnect:$z,dispose:_Y,env:Ut,extendChartView:qX,extendComponentModel:XX,extendComponentView:WX,extendSeriesModel:ZX,format:PX,getCoordinateSystemDimensions:bY,getInstanceByDom:Qw,getInstanceById:xY,getMap:wY,graphic:NX,helper:CX,init:gY,innerDrawElementOnCanvas:Zw,matrix:sH,number:IX,parseGeoJSON:aS,parseGeoJson:aS,registerAction:Sn,registerCoordinateSystem:Jz,registerLayout:tk,registerLoading:aT,registerLocale:Ew,registerMap:ek,registerPostInit:Kz,registerPostUpdate:Qz,registerPreprocessor:tT,registerProcessor:eT,registerTheme:Jw,registerTransform:rk,registerUpdateLifecycle:$y,registerVisual:Wo,setCanvasCreator:SY,setPlatformAPI:Z3,throttle:Zy,time:OX,use:Gt,util:zX,vector:Z8,version:Qj,zrUtil:H8,zrender:c7},Symbol.toStringTag,{value:"Module"}));var yi={},mi={},Kx={},A3;function Hot(){return A3||(A3=1,(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var e=1;r.default=function(){return"".concat(e++)}})(Kx)),Kx}var Qc={},Jc={},Qx={},C3;function zV(){return C3||(C3=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)}}})(Qx)),Qx}var _i={},D3;function g2(){return D3||(D3=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.SizeSensorId=_i.SensorTabIndex=_i.SensorClassName=void 0,_i.SizeSensorId="size-sensor-id",_i.SensorClassName="size-sensor-object",_i.SensorTabIndex="-1"),_i}var M3;function Uot(){if(M3)return Jc;M3=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.createSensor=void 0;var r=t(zV()),e=g2();function t(a){return a&&a.__esModule?a:{default:a}}return Jc.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}},Jc}var th={},L3;function Fot(){if(L3)return th;L3=1,Object.defineProperty(th,"__esModule",{value:!0}),th.createSensor=void 0;var r=g2(),e=t(zV());function t(a){return a&&a.__esModule?a:{default:a}}return th.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}},th}var E3;function jot(){if(E3)return Qc;E3=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.createSensor=void 0;var r=Uot(),e=Fot();return Qc.createSensor=typeof ResizeObserver<"u"?e.createSensor:r.createSensor,Qc}var R3;function Yot(){if(R3)return mi;R3=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.removeSensor=mi.getSensor=mi.Sensors=void 0;var r=a(Hot()),e=jot(),t=g2();function a(o){return o&&o.__esModule?o:{default:o}}var n=mi.Sensors={};function i(o){o&&n[o]&&delete n[o]}return mi.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},mi.removeSensor=function(l){var s=l.element.getAttribute(t.SizeSensorId);l.destroy(),i(s)},mi}var I3;function Xot(){if(I3)return yi;I3=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.ver=yi.clear=yi.bind=void 0;var r=Yot();return yi.bind=function(t,a){var n=(0,r.getSensor)(t);return n.bind(a),function(){n.unbind(a)}},yi.clear=function(t){var a=(0,r.getSensor)(t);(0,r.removeSensor)(a)},yi.ver="1.0.3",yi}var O3=Xot();function N3(r,e){var t={};return e.forEach(function(a){t[a]=r[a]}),t}function Jx(r){return typeof r=="function"}function Wot(r){return typeof r=="string"}var tb,P3;function Zot(){return P3||(P3=1,tb=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}),tb}var qot=Zot();const Ru=F3(qot);var $ot=(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(!(Jx(a)&&!a(t,this.props))){if(!Ru(t.theme,this.props.theme)||!Ru(t.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();Ru(t.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var i=["option","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption"];Ru(N3(this.props,i),N3(t,i))||this.updateEChartsOption(),(!Ru(t.style,this.props.style)||!Ru(t.className,this.props.className))&&this.resize()}},e.prototype.componentWillUnmount=function(){this.dispose()},e.prototype.initEchartsInstance=function(){return CM(this,void 0,void 0,function(){var t=this;return DM(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=vh({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{O3.clear(this.ele)}catch(t){console.warn(t)}this.echarts.dispose(this.ele)}},e.prototype.renderNewEcharts=function(){return CM(this,void 0,void 0,function(){var t,a,n,i,o,l,s=this;return DM(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||{}),Jx(n)&&n(l),this.ele&&o&&O3.bind(this.ele,function(){s.resize()}),[2]}})})},e.prototype.bindEvents=function(t,a){var n=this,i=function(l,s){if(Wot(l)&&Jx(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=T8(a,["style","className","echarts","option","theme","notMerge","replaceMerge","lazyUpdate","showLoading","loadingOption","opts","onChartReady","onEvents","shouldSetOption","autoResize"]),s=vh({height:300},n);return o8.createElement("div",vh({ref:function(u){t.ele=u},style:s,className:"echarts-for-react ".concat(o)},l))},e})(Fe.PureComponent),ba=(function(r){Z(e,r);function e(t){var a=r.call(this,t)||this;return a.echarts=Got,a}return e})($ot);const Sa={backgroundColor:"transparent",textStyle:{color:"#94a3b8"},legend:{textStyle:{color:"#94a3b8"}},title:{textStyle:{color:"#e0e6ed"}}},$p=[["#1d4ed8","#60a5fa"],["#7c3aed","#c084fc"],["#16a34a","#4ade80"],["#b45309","#fbbf24"],["#dc2626","#f87171"]];function Kot({tasks:r,prdPhases:e}){const t=[],a={};for(const u of r){const c=u.stageName||"未分类";a[c]||(t.push(c),a[c]={count:0,prd:u.prdPhase||""}),a[c].count++}const n={},i=e||[...new Set(r.map(u=>u.prdPhase).filter(Boolean))];i.forEach((u,c)=>{n[u]=$p[c%$p.length]});const o=t,l=t.map(u=>a[u].count),s={...Sa,tooltip:{trigger:"axis"},grid:{left:10,right:30,top:5,bottom:5,containLabel:!0},yAxis:{type:"category",data:[...o].reverse(),axisLabel:{color:"#6b7b8d",fontSize:10},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:[...l].reverse().map((u,c)=>{const h=t.length-1-c,d=a[t[h]].prd,[p,y]=n[d]||$p[0];return{value:u,itemStyle:{borderRadius:[0,4,4,0],color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:p},{offset:1,color:y}]}}}}),label:{show:!0,position:"right",color:"#94a3b8",fontSize:11,fontWeight:600},barWidth:"55%"}]};return z.jsxs("div",{children:[z.jsx(ba,{option:s,style:{height:Math.max(300,o.length*40)}}),i.length>0&&z.jsx("div",{className:"flex gap-4 justify-center mt-3",children:i.map(u=>{const[c,h]=n[u]||$p[0];return z.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-[#6b7b8d]",children:[z.jsx("span",{className:"w-2.5 h-2.5 rounded-sm inline-block",style:{background:`linear-gradient(180deg, ${h}, ${c})`}}),u]},u)})})]})}const z3=["#ef4444","#f59e0b","#06b6d4","#a855f7","#3b82f6","#22c55e","#f97316","#ec4899"];function Qot({deviations:r}){const e={};for(const i of r){const o=X3(i.rootCauseCategory);e[o]=(e[o]||0)+1}let t=0;const a=Object.entries(e).sort((i,o)=>o[1]-i[1]).map(([i,o])=>({value:o,name:i,itemStyle:{color:z3[t++%z3.length]}}));if(a.length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无偏差数据"});const n={...Sa,tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},series:[{type:"pie",radius:["42%","70%"],center:["50%","52%"],label:{color:"#94a3b8",fontSize:12},data:a,emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,0.3)"}}}]};return z.jsx(ba,{option:n,style:{height:320}})}const Jot={"UI/间距":"#f59e0b","布局/结构":"#3b82f6",组件使用:"#a855f7","i18n/国际化":"#06b6d4",逻辑错误:"#ef4444","流程/缓存":"#22c55e",其他:"#94a3b8"};function tlt({deviations:r}){const e={};for(const o of r){const l=_g(o.deviationCategory);e[l]=(e[l]||0)+1}if(Object.keys(e).length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无偏差数据"});const t=Object.entries(e).sort((o,l)=>o[1]-l[1]),a=t.map(([o])=>o),n=t.map(([o,l])=>({value:l,itemStyle:{color:Jot[o]||"#94a3b8"}})),i={...Sa,tooltip:{trigger:"axis"},grid:{left:20,right:20,top:10,bottom:5,containLabel:!0},yAxis:{type:"category",data:a,axisLabel:{color:"#6b7b8d",fontSize:11},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:n,label:{show:!0,position:"right",color:"#94a3b8",fontSize:12},barWidth:"45%",itemStyle:{borderRadius:[0,4,4,0]}}]};return z.jsx(ba,{option:i,style:{height:320}})}const elt=/\.(md|mdx|txt|docx|doc|pdf|png|jpg|jpeg|svg|ico)$/i;function k3(r){return!!r&&!elt.test(r)}function rlt({deviations:r,bugs:e}){const t={};for(const l of r)if(l.files)for(const s of l.files)k3(s)&&(t[s]=(t[s]||0)+1);for(const l of e)if(l.files)for(const s of l.files)k3(s)&&(t[s]=(t[s]||0)+1);const a=Object.entries(t).sort((l,s)=>l[1]-s[1]),n=a.map(([l])=>l),i=a.map(([,l])=>l);if(n.length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无文件热点数据"});const o={...Sa,tooltip:{trigger:"axis"},grid:{left:20,right:30,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"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:i.map(l=>({value:l,itemStyle:{borderRadius:[0,4,4,0],color:l>=10?"#ef4444":l>=5?"#f59e0b":l>=3?"#3b82f6":"#22c55e"}})),label:{show:!0,position:"right",color:"#94a3b8",fontSize:11},barWidth:"50%"}]};return z.jsx(ba,{option:o,style:{height:Math.max(200,n.length*30)}})}function alt({deviations:r,rules:e}){var s,u;if(r.length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无趋势数据"});const t=4,a=[],n=[],i=[];for(let c=0;c<r.length;c+=t){const h=r.slice(c,c+t),d=((s=h[0])==null?void 0:s.deviationId)||"",p=((u=h[h.length-1])==null?void 0:u.deviationId)||"";a.push(d===p?d:`${d}
110
+ ~${p}`),n.push(h.length)}const o=r.map(c=>c.deviationId);for(let c=0;c<a.length;c++){const h=Math.min((c+1)*t,r.length),d=new Set(o.slice(0,h)),p=e.filter(y=>y.status!=="pending"&&y.sourceDeviation&&d.has(y.sourceDeviation)).length;i.push(p)}const l={...Sa,tooltip:{trigger:"axis"},grid:{left:20,right:20,top:30,bottom:30,containLabel:!0},legend:{data:["偏差数量","累计规则"],textStyle:{color:"#6b7b8d"},top:0},xAxis:{type:"category",data:a,axisLabel:{color:"#6b7b8d",fontSize:10},axisLine:{lineStyle:{color:"#1e2d3d"}}},yAxis:[{type:"value",name:"数量",axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}},nameTextStyle:{color:"#6b7b8d"}},{type:"value",name:"规则",axisLabel:{color:"#6b7b8d"},splitLine:{show:!1},nameTextStyle:{color:"#6b7b8d"}}],series:[{name:"偏差数量",type:"bar",data:n,itemStyle:{color:"#f59e0b",borderRadius:[4,4,0,0]},barWidth:"40%"},{name:"累计规则",type:"line",yAxisIndex:1,data:i,lineStyle:{color:"#22c55e",width:2},itemStyle:{color:"#22c55e"},symbol:"circle",symbolSize:8}]};return z.jsx(ba,{option:l,style:{height:320}})}const nlt={"code-generation":"代码生成","bug-fix":"Bug 修复","deviation-fix":"偏差修复","self-review":"自检审查","task-split":"任务拆分","requirement-analysis":"需求分析"},B3=["#3b82f6","#ef4444","#f59e0b","#a855f7","#06b6d4","#22c55e","#ec4899","#f97316"];function eb(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function ilt({metrics:r}){const e=r.nodeTimeBreakdown;if(!e||Object.keys(e).length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无节点耗时数据"});const t=Object.entries(e).sort((o,l)=>o[1]-l[1]),a=t.map(([o])=>nlt[o]||o),n=t.map(([,o])=>o),i={...Sa,tooltip:{trigger:"axis",formatter:o=>{const l=Array.isArray(o)?o[0]:o;return`${l.name}: ${eb(l.value)}`}},grid:{left:20,right:40,top:10,bottom:5,containLabel:!0},yAxis:{type:"category",data:a,axisLabel:{color:"#6b7b8d",fontSize:11},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d",formatter:o=>eb(o)},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:n.map((o,l)=>({value:o,itemStyle:{borderRadius:[0,4,4,0],color:B3[l%B3.length]}})),label:{show:!0,position:"right",color:"#94a3b8",fontSize:11,formatter:o=>eb(o.value)},barWidth:"50%"}]};return z.jsx(ba,{option:i,style:{height:Math.max(200,a.length*45)}})}function rb(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function olt({tasks:r}){const e=r.filter(o=>o.startedAt&&o.completedAt).map(o=>({id:o.taskId,title:o.title,seconds:(new Date(o.completedAt).getTime()-new Date(o.startedAt).getTime())/1e3})).filter(o=>o.seconds>0).sort((o,l)=>l.seconds-o.seconds).slice(0,10);if(e.length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无任务耗时数据"});const t=[...e].reverse(),a=t.map(o=>`${o.id} ${o.title.length>12?o.title.slice(0,12)+"...":o.title}`),n=t.map(o=>o.seconds),i={...Sa,tooltip:{trigger:"axis",formatter:o=>{const l=Array.isArray(o)?o[0]:o,s=t.find(u=>l.name.startsWith(u.id));return`${(s==null?void 0:s.title)||l.name}: ${rb(l.value)}`}},grid:{left:20,right:40,top:10,bottom:5,containLabel:!0},yAxis:{type:"category",data:a,axisLabel:{color:"#6b7b8d",fontSize:10},axisLine:{lineStyle:{color:"#1e2d3d"}}},xAxis:{type:"value",axisLabel:{color:"#6b7b8d",formatter:o=>rb(o)},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:n.map(o=>({value:o,itemStyle:{borderRadius:[0,4,4,0],color:o>=3600?"#ef4444":o>=1800?"#f59e0b":o>=600?"#3b82f6":"#22c55e"}})),label:{show:!0,position:"right",color:"#94a3b8",fontSize:11,formatter:o=>rb(o.value)},barWidth:"50%"}]};return z.jsx(ba,{option:i,style:{height:Math.max(250,e.length*35)}})}const V3=["#3b82f6","#22c55e","#f59e0b","#a855f7","#06b6d4","#ef4444","#ec4899","#f97316"];function llt(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function slt({workflow:r}){const e={};for(const i of r)if(i.startTime&&i.endTime){const o=(new Date(i.endTime).getTime()-new Date(i.startTime).getTime())/1e3;o>0&&(e[i.stage]=(e[i.stage]||0)+o)}const t=Object.entries(e).filter(([,i])=>i>0);if(t.length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无阶段耗时数据"});const a=t.map(([i,o],l)=>({name:i,value:Math.round(o),itemStyle:{color:V3[l%V3.length]}})),n={...Sa,tooltip:{trigger:"item",formatter:i=>`${i.name}: ${llt(i.value)} (${i.percent.toFixed(1)}%)`},series:[{type:"pie",radius:["42%","70%"],center:["50%","52%"],label:{color:"#94a3b8",fontSize:11,formatter:i=>`${i.name}
111
+ ${i.percent.toFixed(1)}%`},data:a,emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,0.3)"}}}]};return z.jsx(ba,{option:n,style:{height:320}})}function ult({reviews:r}){var i,o;if(r.length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无自检数据"});const e=3,t=[],a=[];for(let l=0;l<r.length;l+=e){const s=r.slice(l,l+e),u=((i=s[0])==null?void 0:i.reviewId)||"",c=((o=s[s.length-1])==null?void 0:o.reviewId)||"";t.push(u===c?u:`${u}~${c}`);const h=s.filter(d=>d.result==="pass").length;a.push(Math.round(h/s.length*100))}const n={...Sa,tooltip:{trigger:"axis",formatter:l=>{const s=Array.isArray(l)?l[0]:l;return`${s.name}: ${s.value}%`}},grid:{left:20,right:20,top:30,bottom:30,containLabel:!0},xAxis:{type:"category",data:t,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:a,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 z.jsx(ba,{option:n,style:{height:320}})}const G3=["#ef4444","#f59e0b","#3b82f6","#a855f7","#06b6d4","#22c55e","#ec4899","#f97316"];function flt({reviews:r}){const e={};for(const l of r)if(l.issues)for(const s of l.issues){const u=s.length>30?s.slice(0,30)+"...":s;e[u]=(e[u]||0)+1}const t=Object.entries(e).sort((l,s)=>l[1]-s[1]);if(t.length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无自检问题数据"});const a=t.slice(-10),n=a.map(([l])=>l),i=a.map(([,l])=>l),o={...Sa,tooltip:{trigger:"axis"},grid:{left:20,right:30,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"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{type:"bar",data:i.map((l,s)=>({value:l,itemStyle:{borderRadius:[0,4,4,0],color:G3[s%G3.length]}})),label:{show:!0,position:"right",color:"#94a3b8",fontSize:11},barWidth:"50%"}]};return z.jsx(ba,{option:o,style:{height:Math.max(250,a.length*35)}})}const clt={critical:"#dc2626",high:"#ef4444",medium:"#f59e0b",low:"#3b82f6"},hlt={critical:"严重",high:"高",medium:"中",low:"低"};function vlt({bugs:r}){const e={};for(const o of r)e[o.severity]=(e[o.severity]||0)+1;if(Object.entries(e).length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无缺陷数据"});const n=["critical","high","medium","low"].filter(o=>e[o]).map(o=>({name:hlt[o]||o,value:e[o],itemStyle:{color:clt[o]||"#94a3b8"}})),i={...Sa,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 z.jsx(ba,{option:i,style:{height:320}})}const Kp={},H3=[{bg:"#1e3a5f",text:"#60a5fa"},{bg:"#3b1f5e",text:"#c084fc"},{bg:"#14532d",text:"#4ade80"},{bg:"#422006",text:"#fbbf24"}];function ab(r){if(!Kp[r]){const e=Object.keys(Kp).length;Kp[r]=H3[e%H3.length]}return Kp[r]}function dlt({items:r,prdPhases:e}){return e&&e.forEach(t=>ab(t)),r.length===0?z.jsx("div",{className:"text-[#6b7b8d] text-sm py-8 text-center",children:"暂无时间线数据"}):z.jsx("div",{className:"px-5 max-h-[420px] overflow-y-auto",children:r.map((t,a)=>z.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:[z.jsx("div",{className:"text-[11px] text-[#6b7b8d] min-w-[46px] shrink-0",children:j3(t.timestamp)}),z.jsxs("div",{className:"text-xs",children:[t.title,t.prdPhase&&z.jsx("span",{className:"inline-block px-2 py-0.5 rounded ml-1.5 text-[11px]",style:{backgroundColor:ab(t.prdPhase).bg,color:ab(t.prdPhase).text},children:t.prdPhase})]})]},a))})}function plt({rules:r,deviations:e}){const t=r.filter(n=>n.status!=="pending"),a=r.filter(n=>n.status==="pending");return r.length===0?z.jsx("div",{className:"text-[#6b7b8d] text-sm py-4 text-center",children:"暂无沉淀规则"}):z.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"来源"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"类别"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[200px]",children:"规则"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[150px]",children:"目标文件"})]})}),z.jsxs("tbody",{children:[t.map(n=>{const i=e.find(l=>l.deviationId===n.sourceDeviation),o=i?_g(i.deviationCategory):"";return z.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:n.sourceDeviation}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:o&&z.jsx("span",{className:"inline-block px-2 py-0.5 rounded text-[11px] font-medium bg-[#1e3a5f] text-[#60a5fa]",children:o})}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[200px]",children:n.content}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d] min-w-[150px]",children:n.file})]},n.ruleId)}),a.map(n=>{const i=e.find(l=>l.deviationId===n.sourceDeviation),o=i?_g(i.deviationCategory):"";return z.jsxs("tr",{className:"hover:bg-[#1a2e40] opacity-60",children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:n.sourceDeviation}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:z.jsx("span",{className:"inline-block px-2 py-0.5 rounded text-[11px] font-medium bg-[#1e2d3d] text-[#94a3b8]",children:o})}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[200px]",children:n.content}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d] italic min-w-[150px]",children:"(待沉淀)"})]},n.ruleId)})]})]})}function glt({reviews:r}){const[e,t]=Fe.useState(null);return r.length===0?z.jsx("div",{className:"text-[#6b7b8d] text-sm py-4 text-center",children:"暂无自检报告"}):z.jsxs(z.Fragment,{children:[z.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[80px]",children:"编号"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"日期"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[200px]",children:"范围"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium min-w-[100px]",children:"问题数"})]})}),z.jsx("tbody",{children:r.map(a=>z.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[80px]",children:a.reviewId}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[100px]",children:j3(a.reviewedAt)}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] min-w-[200px]",children:a.scope}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:a.issueCount>0?z.jsxs("span",{className:"text-amber-500 cursor-pointer hover:underline",onClick:()=>t(a),children:[a.issueCount," 个问题"]}):z.jsx("span",{className:"text-green-500",children:"0"})})]},a.reviewId))})]}),z.jsx(xi,{title:`自检详情 — ${e==null?void 0:e.reviewId}`,open:!!e,onClose:()=>t(null),children:e&&z.jsxs("div",{className:"space-y-3 text-[13px]",children:[z.jsxs("div",{children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"范围:"}),e.scope]}),z.jsxs("div",{children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"日期:"}),Y3(e.reviewedAt)]}),z.jsxs("div",{children:[z.jsx("span",{className:"text-[#6b7b8d]",children:"问题数:"}),z.jsx("span",{className:"text-amber-500",children:e.issueCount})]}),e.issues&&e.issues.length>0&&z.jsxs("div",{className:"pt-3 border-t border-[#1e2d3d] space-y-2",children:[z.jsx("div",{className:"text-[#6b7b8d] text-xs",children:"问题列表:"}),e.issues.map((a,n)=>z.jsx("div",{className:"text-xs pl-3 border-l-2 border-[#1e2d3d] text-[#e0e6ed]",children:a},n))]})]})})]})}const U3=["#3b82f6","#22c55e","#f59e0b","#a855f7","#06b6d4","#ef4444","#ec4899","#f97316"];function ylt({developers:r}){if(r.length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无团队数据"});const e=r.slice(0,10),t=e.map(n=>n.name),a={...Sa,tooltip:{trigger:"axis"},legend:{data:["完成任务","偏差数","Bug 数"],textStyle:{color:"#6b7b8d"},top:0},grid:{left:20,right:20,top:40,bottom:5,containLabel:!0},xAxis:{type:"category",data:t,axisLabel:{color:"#6b7b8d",fontSize:11},axisLine:{lineStyle:{color:"#1e2d3d"}}},yAxis:{type:"value",axisLabel:{color:"#6b7b8d"},splitLine:{lineStyle:{color:"#1e2d3d"}}},series:[{name:"完成任务",type:"bar",data:e.map((n,i)=>({value:n.completedTasks,itemStyle:{color:U3[i%U3.length]}})),barWidth:"20%",itemStyle:{borderRadius:[4,4,0,0]}},{name:"偏差数",type:"bar",data:e.map(n=>({value:n.deviations,itemStyle:{color:"#f59e0b"}})),barWidth:"20%",itemStyle:{borderRadius:[4,4,0,0]}},{name:"Bug 数",type:"bar",data:e.map(n=>({value:n.bugs,itemStyle:{color:"#ef4444"}})),barWidth:"20%",itemStyle:{borderRadius:[4,4,0,0]}}]};return z.jsx(ba,{option:a,style:{height:320}})}const mlt={completed:"#22c55e","in-progress":"#f59e0b",pending:"#6b7b8d",failed:"#ef4444"},_lt={completed:"已完成","in-progress":"进行中",in_progress:"进行中",pending:"待开始",failed:"失败"};function xlt({runs:r}){const e={};for(const i of r){const o=i.status||"pending";e[o]=(e[o]||0)+1}const t=Object.entries(e);if(t.length===0)return z.jsx("div",{className:"h-80 flex items-center justify-center text-[#6b7b8d] text-sm",children:"暂无需求数据"});const a=t.map(([i,o])=>({name:_lt[i]||i,value:o,itemStyle:{color:mlt[i]||"#94a3b8"}})),n={...Sa,tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},series:[{type:"pie",radius:["42%","70%"],center:["50%","52%"],label:{color:"#94a3b8",fontSize:12},data:a,emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0,0,0,0.3)"}}}]};return z.jsx(ba,{option:n,style:{height:320}})}function blt(r){return r<60?`${Math.round(r)}s`:r<3600?`${Math.round(r/60)}m`:`${(r/3600).toFixed(1)}h`}function Slt(r){const e={};for(const t of r)for(const a of t.developers)if(!e[a.name])e[a.name]={...a,modules:[...a.modules]};else{const n=e[a.name];n.tasks+=a.tasks,n.completedTasks+=a.completedTasks,n.bugs+=a.bugs,n.deviations+=a.deviations,n.linesAdded+=a.linesAdded,n.linesRemoved+=a.linesRemoved,n.actualWorkSeconds+=a.actualWorkSeconds,n.totalTokens+=a.totalTokens;for(const i of a.modules)n.modules.includes(i)||n.modules.push(i)}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 wlt({data:r,onSelectBranch:e}){const t=r.runs,a=Slt(t),n=t.reduce((y,m)=>y+m.totals.tasks,0),i=t.reduce((y,m)=>y+m.totals.completedTasks,0),o=t.reduce((y,m)=>y+m.totals.bugs,0),l=t.reduce((y,m)=>y+m.totals.deviations,0),s=t.reduce((y,m)=>y+m.totals.linesAdded,0),u=t.reduce((y,m)=>y+m.totals.totalTokens,0),c=t.filter(y=>y.status!=="completed").length,h=t.filter(y=>y.status==="completed").length,d=[{label:"总需求数",value:`${t.length}`,color:"text-blue-500"},{label:"进行中",value:`${c}`,color:"text-amber-500"},{label:"已完成",value:`${h}`,color:"text-green-500"},{label:"任务完成",value:`${i}/${n}`,color:"text-cyan-500"},{label:"总偏差",value:`${l}`,color:"text-amber-500"},{label:"总缺陷",value:`${o}`,color:"text-red-500"},{label:"代码行数",value:s>1e3?`${(s/1e3).toFixed(1)}k`:`${s}`,color:"text-purple-500"},{label:"Tokens",value:u>1e6?`${(u/1e6).toFixed(1)}M`:u>1e3?`${(u/1e3).toFixed(0)}k`:`${u}`,color:"text-teal-500"}],p=t.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 z.jsxs("div",{children:[z.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=>z.jsxs("div",{className:"bg-[#162231] border border-[#1e2d3d] rounded-[10px] px-5 py-[18px] text-center",children:[z.jsx("div",{className:`text-[28px] font-bold mb-1 ${y.color}`,children:y.value}),z.jsx("div",{className:"text-xs text-[#6b7b8d] uppercase tracking-wide",children:y.label})]},y.label))}),z.jsxs("div",{className:"grid grid-cols-2 gap-4 px-8 pb-5 max-md:grid-cols-1",children:[z.jsx(tr,{title:"需求状态分布",children:z.jsx(xlt,{runs:t})}),z.jsx(tr,{title:"团队效率对比",children:z.jsx(ylt,{developers:a})}),z.jsx(tr,{title:"需求列表",full:!0,children:z.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"分支"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"标题"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"状态"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"任务"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"偏差"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"Bug"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"开发者"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"开始时间"})]})}),z.jsx("tbody",{children:t.map(y=>z.jsxs("tr",{className:"hover:bg-[#1a2e40] cursor-pointer",onClick:()=>e(y.branch),children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-blue-400 hover:underline",children:y.branch}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:y.title||"-"}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:z.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})}),z.jsxs("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:[y.totals.completedTasks,"/",y.totals.tasks]}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-amber-500",children:y.totals.deviations}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-red-500",children:y.totals.bugs}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d]",children:y.developers.map(m=>m.name).join(", ")}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d]",children:mg(y.startTime)})]},y.branch))})]})}),z.jsx(tr,{title:"团队成员汇总",full:!0,children:z.jsxs("table",{className:"w-full border-collapse text-[13px]",children:[z.jsx("thead",{children:z.jsxs("tr",{children:[z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"开发者"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"任务"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"偏差"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"Bug"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"+行数"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"AI 工时"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"Tokens"}),z.jsx("th",{className:"text-left px-3 py-2 text-[#6b7b8d] border-b border-[#1e2d3d] font-medium",children:"模块"})]})}),z.jsx("tbody",{children:a.map(y=>z.jsxs("tr",{className:"hover:bg-[#1a2e40]",children:[z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] font-medium text-[#e0e6ed]",children:y.name}),z.jsxs("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:[z.jsx("span",{className:"text-green-500",children:y.completedTasks}),"/",y.tasks]}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-amber-500",children:y.deviations}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-red-500",children:y.bugs}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d]",children:y.linesAdded.toLocaleString()}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-teal-500",children:blt(y.actualWorkSeconds)}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d]",children:y.totalTokens>1e3?`${(y.totalTokens/1e3).toFixed(0)}k`:y.totalTokens}),z.jsx("td",{className:"px-3 py-2 border-b border-[#1e2d3d] text-xs text-[#6b7b8d]",children:y.modules.join(", ")||"-"})]},y.name))})]})}),p.length>0&&z.jsx(tr,{title:"业务价值亮点",full:!0,children:z.jsx("div",{className:"space-y-3",children:p.map((y,m)=>z.jsxs("div",{className:"flex items-start gap-3 py-2 border-b border-[#1e2d3d] last:border-b-0",children:[z.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"?"AI":"手动"}),z.jsx("div",{className:"flex-1 text-[13px] text-[#e0e6ed]",children:y.content}),z.jsxs("div",{className:"text-[11px] text-[#6b7b8d] shrink-0",children:[z.jsx("span",{className:"text-blue-400",children:y.branch})," ",mg(y.createdAt)]})]},m))})})]})]})}function Tlt(){const{runs:r,currentRunId:e,setCurrentRunId:t,runData:a,loading:n,connected:i}=m8(),{data:o,loading:l}=_8(),s=e===yg;if(n&&!a&&!s)return z.jsx("div",{className:"min-h-screen flex items-center justify-center text-[#6b7b8d]",children:"加载中..."});if(s&&l&&!o)return z.jsx("div",{className:"min-h-screen flex items-center justify-center text-[#6b7b8d]",children:"加载中..."});const u=c=>{const h=r.find(d=>d.branch===c);h&&t(h.runId)};return!s&&!a?z.jsxs("div",{children:[z.jsx(D1,{runs:r,currentRunId:e,onSelectRun:t,meta:null,connected:i}),z.jsxs("div",{className:"text-center py-20 text-[#6b7b8d]",children:[z.jsx("h2",{className:"text-lg mb-2 text-[#e0e6ed]",children:"暂无运行数据"}),z.jsxs("p",{children:["使用 ",z.jsx("code",{className:"bg-[#162231] px-2 py-0.5 rounded text-[13px]",children:"aidevos start FEATURE-001"})," 开始一次开发运行"]})]})]}):s?z.jsxs("div",{children:[z.jsx(D1,{runs:r,currentRunId:e,onSelectRun:t,meta:null,connected:i}),o?z.jsx(wlt,{data:o,onSelectBranch:u}):z.jsxs("div",{className:"text-center py-20 text-[#6b7b8d]",children:[z.jsx("h2",{className:"text-lg mb-2 text-[#e0e6ed]",children:"暂无项目总览数据"}),z.jsxs("p",{children:["使用 ",z.jsx("code",{className:"bg-[#162231] px-2 py-0.5 rounded text-[13px]",children:"aidevos reindex"})," 生成项目索引"]})]}),z.jsx("div",{className:"text-center py-6 text-[#3d4f5f] text-xs border-t border-[#1e2d3d] mt-5",children:"AIDevOS 项目总览"})]}):z.jsxs("div",{children:[z.jsx(D1,{runs:r,currentRunId:e,onSelectRun:t,meta:a.meta,connected:i}),z.jsx(w8,{data:a}),z.jsxs("div",{className:"grid grid-cols-2 gap-4 px-8 pb-5 max-md:grid-cols-1",children:[z.jsx(tr,{title:"各节点累计耗时",children:z.jsx(ilt,{metrics:a.metrics})}),z.jsx(tr,{title:"任务耗时排行 TOP 10",children:z.jsx(olt,{tasks:a.tasks})}),z.jsx(tr,{title:"阶段时间分布",children:z.jsx(slt,{workflow:a.workflow})}),z.jsx(tr,{title:"开发时间线",children:z.jsx(dlt,{items:a.timeline,prdPhases:a.meta.prdPhases})}),z.jsx(tr,{title:"各阶段任务完成情况",children:z.jsx(Kot,{tasks:a.tasks,prdPhases:a.meta.prdPhases})}),z.jsx(tr,{title:"首次通过率趋势",children:z.jsx(ult,{reviews:a.reviews})}),z.jsx(tr,{title:"偏差根因分析",children:z.jsx(Qot,{deviations:a.deviations})}),z.jsx(tr,{title:"偏差类别分布",children:z.jsx(tlt,{deviations:a.deviations})}),z.jsx(tr,{title:"Bug 严重度分布",children:z.jsx(vlt,{bugs:a.bugs})}),z.jsx(tr,{title:"自检问题分类",children:z.jsx(flt,{reviews:a.reviews})}),z.jsx(tr,{title:"文件修改热点(偏差/缺陷修复)",children:z.jsx(rlt,{deviations:a.deviations,bugs:a.bugs})}),z.jsx(tr,{title:"偏差数量与规则沉淀趋势",children:z.jsx(alt,{deviations:a.deviations,rules:a.rules})}),z.jsx(tr,{title:"偏差沉淀的规则",full:!0,children:z.jsx(plt,{rules:a.rules,deviations:a.deviations})}),z.jsx(tr,{title:"自检报告汇总",full:!0,children:z.jsx(glt,{reviews:a.reviews})})]}),z.jsx("div",{className:"text-center py-6 text-[#3d4f5f] text-xs border-t border-[#1e2d3d] mt-5",children:"AIDevOS AI 开发质量看板"})]})}v8.createRoot(document.getElementById("root")).render(z.jsx(Fe.StrictMode,{children:z.jsx(Tlt,{})}));